|
| 1 | +# coding=utf-8 |
| 2 | +# -------------------------------------------------------------------------- |
| 3 | +# Copyright (c) Microsoft Corporation. All rights reserved. |
| 4 | +# Licensed under the MIT License. See License.txt in the project root for |
| 5 | +# license information. |
| 6 | +# |
| 7 | +# Code generated by Microsoft (R) AutoRest Code Generator. |
| 8 | +# Changes may cause incorrect behavior and will be lost if the code is |
| 9 | +# regenerated. |
| 10 | +# -------------------------------------------------------------------------- |
| 11 | + |
| 12 | +from .proxy_resource_py3 import ProxyResource |
| 13 | + |
| 14 | + |
| 15 | +class ManagedBackupShortTermRetentionPolicy(ProxyResource): |
| 16 | + """A short term retention policy. |
| 17 | +
|
| 18 | + Variables are only populated by the server, and will be ignored when |
| 19 | + sending a request. |
| 20 | +
|
| 21 | + :ivar id: Resource ID. |
| 22 | + :vartype id: str |
| 23 | + :ivar name: Resource name. |
| 24 | + :vartype name: str |
| 25 | + :ivar type: Resource type. |
| 26 | + :vartype type: str |
| 27 | + :param retention_days: The backup retention period in days. This is how |
| 28 | + many days Point-in-Time Restore will be supported. |
| 29 | + :type retention_days: int |
| 30 | + """ |
| 31 | + |
| 32 | + _validation = { |
| 33 | + 'id': {'readonly': True}, |
| 34 | + 'name': {'readonly': True}, |
| 35 | + 'type': {'readonly': True}, |
| 36 | + } |
| 37 | + |
| 38 | + _attribute_map = { |
| 39 | + 'id': {'key': 'id', 'type': 'str'}, |
| 40 | + 'name': {'key': 'name', 'type': 'str'}, |
| 41 | + 'type': {'key': 'type', 'type': 'str'}, |
| 42 | + 'retention_days': {'key': 'properties.retentionDays', 'type': 'int'}, |
| 43 | + } |
| 44 | + |
| 45 | + def __init__(self, *, retention_days: int=None, **kwargs) -> None: |
| 46 | + super(ManagedBackupShortTermRetentionPolicy, self).__init__(**kwargs) |
| 47 | + self.retention_days = retention_days |
0 commit comments