-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[AutoPR sql/resource-manager] Managed Instance short term retention (#…
…3691) * Generated from 258f894ffb8a75a74b243ba85ceec5e9b8a5b15e Readme.md change * Generated from ef601ecdc1fe5ad6fca6074ad521f097e99ac8a5 Merge remote-tracking branch 'origin' into readme * Generated from ef601ecdc1fe5ad6fca6074ad521f097e99ac8a5 Merge remote-tracking branch 'origin' into readme
- Loading branch information
1 parent
f63e399
commit f314648
Showing
7 changed files
with
542 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
47 changes: 47 additions & 0 deletions
47
azure-mgmt-sql/azure/mgmt/sql/models/managed_backup_short_term_retention_policy.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
# coding=utf-8 | ||
# -------------------------------------------------------------------------- | ||
# Copyright (c) Microsoft Corporation. All rights reserved. | ||
# Licensed under the MIT License. See License.txt in the project root for | ||
# license information. | ||
# | ||
# Code generated by Microsoft (R) AutoRest Code Generator. | ||
# Changes may cause incorrect behavior and will be lost if the code is | ||
# regenerated. | ||
# -------------------------------------------------------------------------- | ||
|
||
from .proxy_resource import ProxyResource | ||
|
||
|
||
class ManagedBackupShortTermRetentionPolicy(ProxyResource): | ||
"""A short term retention policy. | ||
Variables are only populated by the server, and will be ignored when | ||
sending a request. | ||
:ivar id: Resource ID. | ||
:vartype id: str | ||
:ivar name: Resource name. | ||
:vartype name: str | ||
:ivar type: Resource type. | ||
:vartype type: str | ||
:param retention_days: The backup retention period in days. This is how | ||
many days Point-in-Time Restore will be supported. | ||
:type retention_days: int | ||
""" | ||
|
||
_validation = { | ||
'id': {'readonly': True}, | ||
'name': {'readonly': True}, | ||
'type': {'readonly': True}, | ||
} | ||
|
||
_attribute_map = { | ||
'id': {'key': 'id', 'type': 'str'}, | ||
'name': {'key': 'name', 'type': 'str'}, | ||
'type': {'key': 'type', 'type': 'str'}, | ||
'retention_days': {'key': 'properties.retentionDays', 'type': 'int'}, | ||
} | ||
|
||
def __init__(self, **kwargs): | ||
super(ManagedBackupShortTermRetentionPolicy, self).__init__(**kwargs) | ||
self.retention_days = kwargs.get('retention_days', None) |
27 changes: 27 additions & 0 deletions
27
azure-mgmt-sql/azure/mgmt/sql/models/managed_backup_short_term_retention_policy_paged.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# coding=utf-8 | ||
# -------------------------------------------------------------------------- | ||
# Copyright (c) Microsoft Corporation. All rights reserved. | ||
# Licensed under the MIT License. See License.txt in the project root for | ||
# license information. | ||
# | ||
# Code generated by Microsoft (R) AutoRest Code Generator. | ||
# Changes may cause incorrect behavior and will be lost if the code is | ||
# regenerated. | ||
# -------------------------------------------------------------------------- | ||
|
||
from msrest.paging import Paged | ||
|
||
|
||
class ManagedBackupShortTermRetentionPolicyPaged(Paged): | ||
""" | ||
A paging container for iterating over a list of :class:`ManagedBackupShortTermRetentionPolicy <azure.mgmt.sql.models.ManagedBackupShortTermRetentionPolicy>` object | ||
""" | ||
|
||
_attribute_map = { | ||
'next_link': {'key': 'nextLink', 'type': 'str'}, | ||
'current_page': {'key': 'value', 'type': '[ManagedBackupShortTermRetentionPolicy]'} | ||
} | ||
|
||
def __init__(self, *args, **kwargs): | ||
|
||
super(ManagedBackupShortTermRetentionPolicyPaged, self).__init__(*args, **kwargs) |
47 changes: 47 additions & 0 deletions
47
azure-mgmt-sql/azure/mgmt/sql/models/managed_backup_short_term_retention_policy_py3.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
# coding=utf-8 | ||
# -------------------------------------------------------------------------- | ||
# Copyright (c) Microsoft Corporation. All rights reserved. | ||
# Licensed under the MIT License. See License.txt in the project root for | ||
# license information. | ||
# | ||
# Code generated by Microsoft (R) AutoRest Code Generator. | ||
# Changes may cause incorrect behavior and will be lost if the code is | ||
# regenerated. | ||
# -------------------------------------------------------------------------- | ||
|
||
from .proxy_resource_py3 import ProxyResource | ||
|
||
|
||
class ManagedBackupShortTermRetentionPolicy(ProxyResource): | ||
"""A short term retention policy. | ||
Variables are only populated by the server, and will be ignored when | ||
sending a request. | ||
:ivar id: Resource ID. | ||
:vartype id: str | ||
:ivar name: Resource name. | ||
:vartype name: str | ||
:ivar type: Resource type. | ||
:vartype type: str | ||
:param retention_days: The backup retention period in days. This is how | ||
many days Point-in-Time Restore will be supported. | ||
:type retention_days: int | ||
""" | ||
|
||
_validation = { | ||
'id': {'readonly': True}, | ||
'name': {'readonly': True}, | ||
'type': {'readonly': True}, | ||
} | ||
|
||
_attribute_map = { | ||
'id': {'key': 'id', 'type': 'str'}, | ||
'name': {'key': 'name', 'type': 'str'}, | ||
'type': {'key': 'type', 'type': 'str'}, | ||
'retention_days': {'key': 'properties.retentionDays', 'type': 'int'}, | ||
} | ||
|
||
def __init__(self, *, retention_days: int=None, **kwargs) -> None: | ||
super(ManagedBackupShortTermRetentionPolicy, self).__init__(**kwargs) | ||
self.retention_days = retention_days |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.