From 7f6cf489f92ffb05768486cda236650eacb39765 Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Mon, 20 Aug 2018 10:12:43 -0700 Subject: [PATCH] [AutoPR web/resource-manager] WebApps - Add BackupName to backup API models (#3058) * Generated from 6162973ef0993464a1806f8db5ca913f0fa5d6c8 WebApps - Add BackupName to replace non-ARM-compliant Name property on Backup API models * Generated from c8664a06cff19844eb381ad410872b34cba23b27 Revert breaking change to BackupItem. BackupItemName property will be fine in place of BackupName for now. --- azure-mgmt-web/azure/mgmt/web/models/backup_request.py | 4 ++++ azure-mgmt-web/azure/mgmt/web/models/backup_request_py3.py | 6 +++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/azure-mgmt-web/azure/mgmt/web/models/backup_request.py b/azure-mgmt-web/azure/mgmt/web/models/backup_request.py index 8d7f6e58cbb3..496fc5bd9251 100644 --- a/azure-mgmt-web/azure/mgmt/web/models/backup_request.py +++ b/azure-mgmt-web/azure/mgmt/web/models/backup_request.py @@ -28,6 +28,8 @@ class BackupRequest(ProxyOnlyResource): :type kind: str :ivar type: Resource type. :vartype type: str + :param backup_name: Name of the backup. + :type backup_name: str :param enabled: True if the backup schedule is enabled (must be included in that case), false if the backup schedule should be disabled. :type enabled: bool @@ -52,6 +54,7 @@ class BackupRequest(ProxyOnlyResource): 'name': {'key': 'name', 'type': 'str'}, 'kind': {'key': 'kind', 'type': 'str'}, 'type': {'key': 'type', 'type': 'str'}, + 'backup_name': {'key': 'properties.backupName', 'type': 'str'}, 'enabled': {'key': 'properties.enabled', 'type': 'bool'}, 'storage_account_url': {'key': 'properties.storageAccountUrl', 'type': 'str'}, 'backup_schedule': {'key': 'properties.backupSchedule', 'type': 'BackupSchedule'}, @@ -60,6 +63,7 @@ class BackupRequest(ProxyOnlyResource): def __init__(self, **kwargs): super(BackupRequest, self).__init__(**kwargs) + self.backup_name = kwargs.get('backup_name', None) self.enabled = kwargs.get('enabled', None) self.storage_account_url = kwargs.get('storage_account_url', None) self.backup_schedule = kwargs.get('backup_schedule', None) diff --git a/azure-mgmt-web/azure/mgmt/web/models/backup_request_py3.py b/azure-mgmt-web/azure/mgmt/web/models/backup_request_py3.py index ce7a46fe117f..9eaad232bb94 100644 --- a/azure-mgmt-web/azure/mgmt/web/models/backup_request_py3.py +++ b/azure-mgmt-web/azure/mgmt/web/models/backup_request_py3.py @@ -28,6 +28,8 @@ class BackupRequest(ProxyOnlyResource): :type kind: str :ivar type: Resource type. :vartype type: str + :param backup_name: Name of the backup. + :type backup_name: str :param enabled: True if the backup schedule is enabled (must be included in that case), false if the backup schedule should be disabled. :type enabled: bool @@ -52,14 +54,16 @@ class BackupRequest(ProxyOnlyResource): 'name': {'key': 'name', 'type': 'str'}, 'kind': {'key': 'kind', 'type': 'str'}, 'type': {'key': 'type', 'type': 'str'}, + 'backup_name': {'key': 'properties.backupName', 'type': 'str'}, 'enabled': {'key': 'properties.enabled', 'type': 'bool'}, 'storage_account_url': {'key': 'properties.storageAccountUrl', 'type': 'str'}, 'backup_schedule': {'key': 'properties.backupSchedule', 'type': 'BackupSchedule'}, 'databases': {'key': 'properties.databases', 'type': '[DatabaseBackupSetting]'}, } - def __init__(self, *, storage_account_url: str, kind: str=None, enabled: bool=None, backup_schedule=None, databases=None, **kwargs) -> None: + def __init__(self, *, storage_account_url: str, kind: str=None, backup_name: str=None, enabled: bool=None, backup_schedule=None, databases=None, **kwargs) -> None: super(BackupRequest, self).__init__(kind=kind, **kwargs) + self.backup_name = backup_name self.enabled = enabled self.storage_account_url = storage_account_url self.backup_schedule = backup_schedule