From 3f10acd4e9bb91898e508376bebc03a0d77666d1 Mon Sep 17 00:00:00 2001 From: msyyc <70930885+msyyc@users.noreply.github.com> Date: Thu, 29 Oct 2020 10:01:26 +0800 Subject: [PATCH] [T1] sql 2020 10 29 (#14822) * Generated from 18068a88771f5df534aacf246416dcab4e1ff3d0 * test,version, changelog Co-authored-by: SDK Automation --- sdk/sql/azure-mgmt-sql/CHANGELOG.md | 20 + .../azure/mgmt/sql/models/__init__.py | 42 +- .../azure/mgmt/sql/models/_models.py | 62 ++- .../azure/mgmt/sql/models/_models_py3.py | 70 ++- .../models/_sql_management_client_enums.py | 186 +++---- .../sql/operations/_databases_operations.py | 500 ++++++++---------- .../operations/_elastic_pools_operations.py | 12 +- .../azure-mgmt-sql/azure/mgmt/sql/version.py | 2 +- .../test_mgmt_sql.test_database.yaml | 90 ++-- .../recordings/test_mgmt_sql.test_server.yaml | 149 ++++-- 10 files changed, 602 insertions(+), 531 deletions(-) diff --git a/sdk/sql/azure-mgmt-sql/CHANGELOG.md b/sdk/sql/azure-mgmt-sql/CHANGELOG.md index f92081b8a08d..329280194796 100644 --- a/sdk/sql/azure-mgmt-sql/CHANGELOG.md +++ b/sdk/sql/azure-mgmt-sql/CHANGELOG.md @@ -1,4 +1,24 @@ # Release History + +## 0.23.0 (2020-10-29) + +**Features** + + - Model Database has a new parameter secondary_type + - Model Database has a new parameter maintenance_configuration_id + - Model Database has a new parameter high_availability_replica_count + - Model DatabaseUpdate has a new parameter secondary_type + - Model DatabaseUpdate has a new parameter maintenance_configuration_id + - Model DatabaseUpdate has a new parameter high_availability_replica_count + - Model ElasticPoolUpdate has a new parameter maintenance_configuration_id + - Model ElasticPool has a new parameter maintenance_configuration_id + +**Breaking changes** + + - Model Database no longer has parameter read_replica_count + - Model DatabaseUpdate no longer has parameter read_replica_count + - Removed operation DatabasesOperations.list_inaccessible_by_server + ## 0.22.0 (2020-10-09) **Features** diff --git a/sdk/sql/azure-mgmt-sql/azure/mgmt/sql/models/__init__.py b/sdk/sql/azure-mgmt-sql/azure/mgmt/sql/models/__init__.py index 68ab5a939e20..9ffa3e957b21 100644 --- a/sdk/sql/azure-mgmt-sql/azure/mgmt/sql/models/__init__.py +++ b/sdk/sql/azure-mgmt-sql/azure/mgmt/sql/models/__init__.py @@ -517,8 +517,6 @@ RestorePointType, SensitivityLabelRank, ManagementOperationState, - ElasticPoolState, - ElasticPoolLicenseType, VulnerabilityAssessmentScanTriggerType, VulnerabilityAssessmentScanState, InstanceFailoverGroupReplicationRole, @@ -526,13 +524,6 @@ PrivateLinkServiceConnectionStateStatus, PrivateLinkServiceConnectionStateActionsRequire, PrivateEndpointProvisioningState, - CreateMode, - SampleName, - DatabaseStatus, - CatalogCollationType, - DatabaseLicenseType, - DatabaseReadScale, - StorageAccountType, IdentityType, ServerPublicNetworkAccess, CheckNameAvailabilityReason, @@ -547,15 +538,24 @@ SyncDirection, SyncMemberState, ManagedDatabaseStatus, + CatalogCollationType, ManagedDatabaseCreateMode, ManagedServerCreateMode, ManagedInstanceLicenseType, ManagedInstanceProxyOverride, + StorageAccountType, StorageKeyType, + CreateMode, + SampleName, + DatabaseStatus, + DatabaseLicenseType, + DatabaseReadScale, + SecondaryType, + ElasticPoolState, + ElasticPoolLicenseType, LongTermRetentionDatabaseState, VulnerabilityAssessmentPolicyBaselineName, SensitivityLabelSource, - ReplicaType, CapabilityGroup, DatabaseState1, DatabaseState2, @@ -563,6 +563,7 @@ DatabaseState4, DatabaseState5, DatabaseState6, + ReplicaType, ) __all__ = [ @@ -883,8 +884,6 @@ 'RestorePointType', 'SensitivityLabelRank', 'ManagementOperationState', - 'ElasticPoolState', - 'ElasticPoolLicenseType', 'VulnerabilityAssessmentScanTriggerType', 'VulnerabilityAssessmentScanState', 'InstanceFailoverGroupReplicationRole', @@ -892,13 +891,6 @@ 'PrivateLinkServiceConnectionStateStatus', 'PrivateLinkServiceConnectionStateActionsRequire', 'PrivateEndpointProvisioningState', - 'CreateMode', - 'SampleName', - 'DatabaseStatus', - 'CatalogCollationType', - 'DatabaseLicenseType', - 'DatabaseReadScale', - 'StorageAccountType', 'IdentityType', 'ServerPublicNetworkAccess', 'CheckNameAvailabilityReason', @@ -913,15 +905,24 @@ 'SyncDirection', 'SyncMemberState', 'ManagedDatabaseStatus', + 'CatalogCollationType', 'ManagedDatabaseCreateMode', 'ManagedServerCreateMode', 'ManagedInstanceLicenseType', 'ManagedInstanceProxyOverride', + 'StorageAccountType', 'StorageKeyType', + 'CreateMode', + 'SampleName', + 'DatabaseStatus', + 'DatabaseLicenseType', + 'DatabaseReadScale', + 'SecondaryType', + 'ElasticPoolState', + 'ElasticPoolLicenseType', 'LongTermRetentionDatabaseState', 'VulnerabilityAssessmentPolicyBaselineName', 'SensitivityLabelSource', - 'ReplicaType', 'CapabilityGroup', 'DatabaseState1', 'DatabaseState2', @@ -929,4 +930,5 @@ 'DatabaseState4', 'DatabaseState5', 'DatabaseState6', + 'ReplicaType', ] diff --git a/sdk/sql/azure-mgmt-sql/azure/mgmt/sql/models/_models.py b/sdk/sql/azure-mgmt-sql/azure/mgmt/sql/models/_models.py index af1a9b2380c1..83aad5c8dc5e 100644 --- a/sdk/sql/azure-mgmt-sql/azure/mgmt/sql/models/_models.py +++ b/sdk/sql/azure-mgmt-sql/azure/mgmt/sql/models/_models.py @@ -619,16 +619,21 @@ class Database(TrackedResource): may be routed to a readonly secondary replica in the same region. Possible values include: 'Enabled', 'Disabled' :type read_scale: str or ~azure.mgmt.sql.models.DatabaseReadScale - :param read_replica_count: The number of readonly secondary replicas - associated with the database. - :type read_replica_count: int + :param high_availability_replica_count: The number of secondary replicas + associated with the database that are used to provide high availability. + :type high_availability_replica_count: int + :param secondary_type: The secondary type of the database if it is a + secondary. Valid values are Geo and Named. Possible values include: + 'Geo', 'Named' + :type secondary_type: str or ~azure.mgmt.sql.models.SecondaryType :ivar current_sku: The name and tier of the SKU. :vartype current_sku: ~azure.mgmt.sql.models.Sku :param auto_pause_delay: Time in minutes after which database is automatically paused. A value of -1 means that automatic pause is disabled :type auto_pause_delay: int :param storage_account_type: The storage account type used to store - backups for this database. Possible values include: 'GRS', 'LRS', 'ZRS' + backups for this database. Currently the only supported option is GRS + (GeoRedundantStorage). Possible values include: 'GRS', 'LRS', 'ZRS' :type storage_account_type: str or ~azure.mgmt.sql.models.StorageAccountType :param min_capacity: Minimal capacity that database will always have @@ -640,6 +645,10 @@ class Database(TrackedResource): :ivar resumed_date: The date when database was resumed by user action or database login (ISO8601 format). Null if the database is paused. :vartype resumed_date: datetime + :param maintenance_configuration_id: Maintenance configuration id assigned + to the database. This configuration defines the period when the + maintenance updates will be rolled out. + :type maintenance_configuration_id: str """ _validation = { @@ -697,13 +706,15 @@ class Database(TrackedResource): 'max_log_size_bytes': {'key': 'properties.maxLogSizeBytes', 'type': 'long'}, 'earliest_restore_date': {'key': 'properties.earliestRestoreDate', 'type': 'iso-8601'}, 'read_scale': {'key': 'properties.readScale', 'type': 'str'}, - 'read_replica_count': {'key': 'properties.readReplicaCount', 'type': 'int'}, + 'high_availability_replica_count': {'key': 'properties.highAvailabilityReplicaCount', 'type': 'int'}, + 'secondary_type': {'key': 'properties.secondaryType', 'type': 'str'}, 'current_sku': {'key': 'properties.currentSku', 'type': 'Sku'}, 'auto_pause_delay': {'key': 'properties.autoPauseDelay', 'type': 'int'}, 'storage_account_type': {'key': 'properties.storageAccountType', 'type': 'str'}, 'min_capacity': {'key': 'properties.minCapacity', 'type': 'float'}, 'paused_date': {'key': 'properties.pausedDate', 'type': 'iso-8601'}, 'resumed_date': {'key': 'properties.resumedDate', 'type': 'iso-8601'}, + 'maintenance_configuration_id': {'key': 'properties.maintenanceConfigurationId', 'type': 'str'}, } def __init__(self, **kwargs): @@ -736,13 +747,15 @@ def __init__(self, **kwargs): self.max_log_size_bytes = None self.earliest_restore_date = None self.read_scale = kwargs.get('read_scale', None) - self.read_replica_count = kwargs.get('read_replica_count', None) + self.high_availability_replica_count = kwargs.get('high_availability_replica_count', None) + self.secondary_type = kwargs.get('secondary_type', None) self.current_sku = None self.auto_pause_delay = kwargs.get('auto_pause_delay', None) self.storage_account_type = kwargs.get('storage_account_type', None) self.min_capacity = kwargs.get('min_capacity', None) self.paused_date = None self.resumed_date = None + self.maintenance_configuration_id = kwargs.get('maintenance_configuration_id', None) class DatabaseAutomaticTuning(ProxyResource): @@ -1270,16 +1283,21 @@ class DatabaseUpdate(Model): may be routed to a readonly secondary replica in the same region. Possible values include: 'Enabled', 'Disabled' :type read_scale: str or ~azure.mgmt.sql.models.DatabaseReadScale - :param read_replica_count: The number of readonly secondary replicas - associated with the database. - :type read_replica_count: int + :param high_availability_replica_count: The number of secondary replicas + associated with the database that are used to provide high availability. + :type high_availability_replica_count: int + :param secondary_type: The secondary type of the database if it is a + secondary. Valid values are Geo and Named. Possible values include: + 'Geo', 'Named' + :type secondary_type: str or ~azure.mgmt.sql.models.SecondaryType :ivar current_sku: The name and tier of the SKU. :vartype current_sku: ~azure.mgmt.sql.models.Sku :param auto_pause_delay: Time in minutes after which database is automatically paused. A value of -1 means that automatic pause is disabled :type auto_pause_delay: int :param storage_account_type: The storage account type used to store - backups for this database. Possible values include: 'GRS', 'LRS', 'ZRS' + backups for this database. Currently the only supported option is GRS + (GeoRedundantStorage). Possible values include: 'GRS', 'LRS', 'ZRS' :type storage_account_type: str or ~azure.mgmt.sql.models.StorageAccountType :param min_capacity: Minimal capacity that database will always have @@ -1291,6 +1309,10 @@ class DatabaseUpdate(Model): :ivar resumed_date: The date when database was resumed by user action or database login (ISO8601 format). Null if the database is paused. :vartype resumed_date: datetime + :param maintenance_configuration_id: Maintenance configuration id assigned + to the database. This configuration defines the period when the + maintenance updates will be rolled out. + :type maintenance_configuration_id: str :param tags: Resource tags. :type tags: dict[str, str] """ @@ -1337,13 +1359,15 @@ class DatabaseUpdate(Model): 'max_log_size_bytes': {'key': 'properties.maxLogSizeBytes', 'type': 'long'}, 'earliest_restore_date': {'key': 'properties.earliestRestoreDate', 'type': 'iso-8601'}, 'read_scale': {'key': 'properties.readScale', 'type': 'str'}, - 'read_replica_count': {'key': 'properties.readReplicaCount', 'type': 'int'}, + 'high_availability_replica_count': {'key': 'properties.highAvailabilityReplicaCount', 'type': 'int'}, + 'secondary_type': {'key': 'properties.secondaryType', 'type': 'str'}, 'current_sku': {'key': 'properties.currentSku', 'type': 'Sku'}, 'auto_pause_delay': {'key': 'properties.autoPauseDelay', 'type': 'int'}, 'storage_account_type': {'key': 'properties.storageAccountType', 'type': 'str'}, 'min_capacity': {'key': 'properties.minCapacity', 'type': 'float'}, 'paused_date': {'key': 'properties.pausedDate', 'type': 'iso-8601'}, 'resumed_date': {'key': 'properties.resumedDate', 'type': 'iso-8601'}, + 'maintenance_configuration_id': {'key': 'properties.maintenanceConfigurationId', 'type': 'str'}, 'tags': {'key': 'tags', 'type': '{str}'}, } @@ -1375,13 +1399,15 @@ def __init__(self, **kwargs): self.max_log_size_bytes = None self.earliest_restore_date = None self.read_scale = kwargs.get('read_scale', None) - self.read_replica_count = kwargs.get('read_replica_count', None) + self.high_availability_replica_count = kwargs.get('high_availability_replica_count', None) + self.secondary_type = kwargs.get('secondary_type', None) self.current_sku = None self.auto_pause_delay = kwargs.get('auto_pause_delay', None) self.storage_account_type = kwargs.get('storage_account_type', None) self.min_capacity = kwargs.get('min_capacity', None) self.paused_date = None self.resumed_date = None + self.maintenance_configuration_id = kwargs.get('maintenance_configuration_id', None) self.tags = kwargs.get('tags', None) @@ -1884,6 +1910,10 @@ class ElasticPool(TrackedResource): :param license_type: The license type to apply for this elastic pool. Possible values include: 'LicenseIncluded', 'BasePrice' :type license_type: str or ~azure.mgmt.sql.models.ElasticPoolLicenseType + :param maintenance_configuration_id: Maintenance configuration id assigned + to the elastic pool. This configuration defines the period when the + maintenance updates will be rolled out. + :type maintenance_configuration_id: str """ _validation = { @@ -1910,6 +1940,7 @@ class ElasticPool(TrackedResource): 'per_database_settings': {'key': 'properties.perDatabaseSettings', 'type': 'ElasticPoolPerDatabaseSettings'}, 'zone_redundant': {'key': 'properties.zoneRedundant', 'type': 'bool'}, 'license_type': {'key': 'properties.licenseType', 'type': 'str'}, + 'maintenance_configuration_id': {'key': 'properties.maintenanceConfigurationId', 'type': 'str'}, } def __init__(self, **kwargs): @@ -1922,6 +1953,7 @@ def __init__(self, **kwargs): self.per_database_settings = kwargs.get('per_database_settings', None) self.zone_redundant = kwargs.get('zone_redundant', None) self.license_type = kwargs.get('license_type', None) + self.maintenance_configuration_id = kwargs.get('maintenance_configuration_id', None) class ElasticPoolActivity(ProxyResource): @@ -2530,6 +2562,10 @@ class ElasticPoolUpdate(Model): :param license_type: The license type to apply for this elastic pool. Possible values include: 'LicenseIncluded', 'BasePrice' :type license_type: str or ~azure.mgmt.sql.models.ElasticPoolLicenseType + :param maintenance_configuration_id: Maintenance configuration id assigned + to the elastic pool. This configuration defines the period when the + maintenance updates will be rolled out. + :type maintenance_configuration_id: str :param tags: Resource tags. :type tags: dict[str, str] """ @@ -2540,6 +2576,7 @@ class ElasticPoolUpdate(Model): 'per_database_settings': {'key': 'properties.perDatabaseSettings', 'type': 'ElasticPoolPerDatabaseSettings'}, 'zone_redundant': {'key': 'properties.zoneRedundant', 'type': 'bool'}, 'license_type': {'key': 'properties.licenseType', 'type': 'str'}, + 'maintenance_configuration_id': {'key': 'properties.maintenanceConfigurationId', 'type': 'str'}, 'tags': {'key': 'tags', 'type': '{str}'}, } @@ -2550,6 +2587,7 @@ def __init__(self, **kwargs): self.per_database_settings = kwargs.get('per_database_settings', None) self.zone_redundant = kwargs.get('zone_redundant', None) self.license_type = kwargs.get('license_type', None) + self.maintenance_configuration_id = kwargs.get('maintenance_configuration_id', None) self.tags = kwargs.get('tags', None) diff --git a/sdk/sql/azure-mgmt-sql/azure/mgmt/sql/models/_models_py3.py b/sdk/sql/azure-mgmt-sql/azure/mgmt/sql/models/_models_py3.py index 5dd2def32735..4fa019f23e8f 100644 --- a/sdk/sql/azure-mgmt-sql/azure/mgmt/sql/models/_models_py3.py +++ b/sdk/sql/azure-mgmt-sql/azure/mgmt/sql/models/_models_py3.py @@ -619,16 +619,21 @@ class Database(TrackedResource): may be routed to a readonly secondary replica in the same region. Possible values include: 'Enabled', 'Disabled' :type read_scale: str or ~azure.mgmt.sql.models.DatabaseReadScale - :param read_replica_count: The number of readonly secondary replicas - associated with the database. - :type read_replica_count: int + :param high_availability_replica_count: The number of secondary replicas + associated with the database that are used to provide high availability. + :type high_availability_replica_count: int + :param secondary_type: The secondary type of the database if it is a + secondary. Valid values are Geo and Named. Possible values include: + 'Geo', 'Named' + :type secondary_type: str or ~azure.mgmt.sql.models.SecondaryType :ivar current_sku: The name and tier of the SKU. :vartype current_sku: ~azure.mgmt.sql.models.Sku :param auto_pause_delay: Time in minutes after which database is automatically paused. A value of -1 means that automatic pause is disabled :type auto_pause_delay: int :param storage_account_type: The storage account type used to store - backups for this database. Possible values include: 'GRS', 'LRS', 'ZRS' + backups for this database. Currently the only supported option is GRS + (GeoRedundantStorage). Possible values include: 'GRS', 'LRS', 'ZRS' :type storage_account_type: str or ~azure.mgmt.sql.models.StorageAccountType :param min_capacity: Minimal capacity that database will always have @@ -640,6 +645,10 @@ class Database(TrackedResource): :ivar resumed_date: The date when database was resumed by user action or database login (ISO8601 format). Null if the database is paused. :vartype resumed_date: datetime + :param maintenance_configuration_id: Maintenance configuration id assigned + to the database. This configuration defines the period when the + maintenance updates will be rolled out. + :type maintenance_configuration_id: str """ _validation = { @@ -697,16 +706,18 @@ class Database(TrackedResource): 'max_log_size_bytes': {'key': 'properties.maxLogSizeBytes', 'type': 'long'}, 'earliest_restore_date': {'key': 'properties.earliestRestoreDate', 'type': 'iso-8601'}, 'read_scale': {'key': 'properties.readScale', 'type': 'str'}, - 'read_replica_count': {'key': 'properties.readReplicaCount', 'type': 'int'}, + 'high_availability_replica_count': {'key': 'properties.highAvailabilityReplicaCount', 'type': 'int'}, + 'secondary_type': {'key': 'properties.secondaryType', 'type': 'str'}, 'current_sku': {'key': 'properties.currentSku', 'type': 'Sku'}, 'auto_pause_delay': {'key': 'properties.autoPauseDelay', 'type': 'int'}, 'storage_account_type': {'key': 'properties.storageAccountType', 'type': 'str'}, 'min_capacity': {'key': 'properties.minCapacity', 'type': 'float'}, 'paused_date': {'key': 'properties.pausedDate', 'type': 'iso-8601'}, 'resumed_date': {'key': 'properties.resumedDate', 'type': 'iso-8601'}, + 'maintenance_configuration_id': {'key': 'properties.maintenanceConfigurationId', 'type': 'str'}, } - def __init__(self, *, location: str, tags=None, sku=None, create_mode=None, collation: str=None, max_size_bytes: int=None, sample_name=None, elastic_pool_id: str=None, source_database_id: str=None, restore_point_in_time=None, source_database_deletion_date=None, recovery_services_recovery_point_id: str=None, long_term_retention_backup_resource_id: str=None, recoverable_database_id: str=None, restorable_dropped_database_id: str=None, catalog_collation=None, zone_redundant: bool=None, license_type=None, read_scale=None, read_replica_count: int=None, auto_pause_delay: int=None, storage_account_type=None, min_capacity: float=None, **kwargs) -> None: + def __init__(self, *, location: str, tags=None, sku=None, create_mode=None, collation: str=None, max_size_bytes: int=None, sample_name=None, elastic_pool_id: str=None, source_database_id: str=None, restore_point_in_time=None, source_database_deletion_date=None, recovery_services_recovery_point_id: str=None, long_term_retention_backup_resource_id: str=None, recoverable_database_id: str=None, restorable_dropped_database_id: str=None, catalog_collation=None, zone_redundant: bool=None, license_type=None, read_scale=None, high_availability_replica_count: int=None, secondary_type=None, auto_pause_delay: int=None, storage_account_type=None, min_capacity: float=None, maintenance_configuration_id: str=None, **kwargs) -> None: super(Database, self).__init__(location=location, tags=tags, **kwargs) self.sku = sku self.kind = None @@ -736,13 +747,15 @@ def __init__(self, *, location: str, tags=None, sku=None, create_mode=None, coll self.max_log_size_bytes = None self.earliest_restore_date = None self.read_scale = read_scale - self.read_replica_count = read_replica_count + self.high_availability_replica_count = high_availability_replica_count + self.secondary_type = secondary_type self.current_sku = None self.auto_pause_delay = auto_pause_delay self.storage_account_type = storage_account_type self.min_capacity = min_capacity self.paused_date = None self.resumed_date = None + self.maintenance_configuration_id = maintenance_configuration_id class DatabaseAutomaticTuning(ProxyResource): @@ -1270,16 +1283,21 @@ class DatabaseUpdate(Model): may be routed to a readonly secondary replica in the same region. Possible values include: 'Enabled', 'Disabled' :type read_scale: str or ~azure.mgmt.sql.models.DatabaseReadScale - :param read_replica_count: The number of readonly secondary replicas - associated with the database. - :type read_replica_count: int + :param high_availability_replica_count: The number of secondary replicas + associated with the database that are used to provide high availability. + :type high_availability_replica_count: int + :param secondary_type: The secondary type of the database if it is a + secondary. Valid values are Geo and Named. Possible values include: + 'Geo', 'Named' + :type secondary_type: str or ~azure.mgmt.sql.models.SecondaryType :ivar current_sku: The name and tier of the SKU. :vartype current_sku: ~azure.mgmt.sql.models.Sku :param auto_pause_delay: Time in minutes after which database is automatically paused. A value of -1 means that automatic pause is disabled :type auto_pause_delay: int :param storage_account_type: The storage account type used to store - backups for this database. Possible values include: 'GRS', 'LRS', 'ZRS' + backups for this database. Currently the only supported option is GRS + (GeoRedundantStorage). Possible values include: 'GRS', 'LRS', 'ZRS' :type storage_account_type: str or ~azure.mgmt.sql.models.StorageAccountType :param min_capacity: Minimal capacity that database will always have @@ -1291,6 +1309,10 @@ class DatabaseUpdate(Model): :ivar resumed_date: The date when database was resumed by user action or database login (ISO8601 format). Null if the database is paused. :vartype resumed_date: datetime + :param maintenance_configuration_id: Maintenance configuration id assigned + to the database. This configuration defines the period when the + maintenance updates will be rolled out. + :type maintenance_configuration_id: str :param tags: Resource tags. :type tags: dict[str, str] """ @@ -1337,17 +1359,19 @@ class DatabaseUpdate(Model): 'max_log_size_bytes': {'key': 'properties.maxLogSizeBytes', 'type': 'long'}, 'earliest_restore_date': {'key': 'properties.earliestRestoreDate', 'type': 'iso-8601'}, 'read_scale': {'key': 'properties.readScale', 'type': 'str'}, - 'read_replica_count': {'key': 'properties.readReplicaCount', 'type': 'int'}, + 'high_availability_replica_count': {'key': 'properties.highAvailabilityReplicaCount', 'type': 'int'}, + 'secondary_type': {'key': 'properties.secondaryType', 'type': 'str'}, 'current_sku': {'key': 'properties.currentSku', 'type': 'Sku'}, 'auto_pause_delay': {'key': 'properties.autoPauseDelay', 'type': 'int'}, 'storage_account_type': {'key': 'properties.storageAccountType', 'type': 'str'}, 'min_capacity': {'key': 'properties.minCapacity', 'type': 'float'}, 'paused_date': {'key': 'properties.pausedDate', 'type': 'iso-8601'}, 'resumed_date': {'key': 'properties.resumedDate', 'type': 'iso-8601'}, + 'maintenance_configuration_id': {'key': 'properties.maintenanceConfigurationId', 'type': 'str'}, 'tags': {'key': 'tags', 'type': '{str}'}, } - def __init__(self, *, sku=None, create_mode=None, collation: str=None, max_size_bytes: int=None, sample_name=None, elastic_pool_id: str=None, source_database_id: str=None, restore_point_in_time=None, source_database_deletion_date=None, recovery_services_recovery_point_id: str=None, long_term_retention_backup_resource_id: str=None, recoverable_database_id: str=None, restorable_dropped_database_id: str=None, catalog_collation=None, zone_redundant: bool=None, license_type=None, read_scale=None, read_replica_count: int=None, auto_pause_delay: int=None, storage_account_type=None, min_capacity: float=None, tags=None, **kwargs) -> None: + def __init__(self, *, sku=None, create_mode=None, collation: str=None, max_size_bytes: int=None, sample_name=None, elastic_pool_id: str=None, source_database_id: str=None, restore_point_in_time=None, source_database_deletion_date=None, recovery_services_recovery_point_id: str=None, long_term_retention_backup_resource_id: str=None, recoverable_database_id: str=None, restorable_dropped_database_id: str=None, catalog_collation=None, zone_redundant: bool=None, license_type=None, read_scale=None, high_availability_replica_count: int=None, secondary_type=None, auto_pause_delay: int=None, storage_account_type=None, min_capacity: float=None, maintenance_configuration_id: str=None, tags=None, **kwargs) -> None: super(DatabaseUpdate, self).__init__(**kwargs) self.sku = sku self.create_mode = create_mode @@ -1375,13 +1399,15 @@ def __init__(self, *, sku=None, create_mode=None, collation: str=None, max_size_ self.max_log_size_bytes = None self.earliest_restore_date = None self.read_scale = read_scale - self.read_replica_count = read_replica_count + self.high_availability_replica_count = high_availability_replica_count + self.secondary_type = secondary_type self.current_sku = None self.auto_pause_delay = auto_pause_delay self.storage_account_type = storage_account_type self.min_capacity = min_capacity self.paused_date = None self.resumed_date = None + self.maintenance_configuration_id = maintenance_configuration_id self.tags = tags @@ -1884,6 +1910,10 @@ class ElasticPool(TrackedResource): :param license_type: The license type to apply for this elastic pool. Possible values include: 'LicenseIncluded', 'BasePrice' :type license_type: str or ~azure.mgmt.sql.models.ElasticPoolLicenseType + :param maintenance_configuration_id: Maintenance configuration id assigned + to the elastic pool. This configuration defines the period when the + maintenance updates will be rolled out. + :type maintenance_configuration_id: str """ _validation = { @@ -1910,9 +1940,10 @@ class ElasticPool(TrackedResource): 'per_database_settings': {'key': 'properties.perDatabaseSettings', 'type': 'ElasticPoolPerDatabaseSettings'}, 'zone_redundant': {'key': 'properties.zoneRedundant', 'type': 'bool'}, 'license_type': {'key': 'properties.licenseType', 'type': 'str'}, + 'maintenance_configuration_id': {'key': 'properties.maintenanceConfigurationId', 'type': 'str'}, } - def __init__(self, *, location: str, tags=None, sku=None, max_size_bytes: int=None, per_database_settings=None, zone_redundant: bool=None, license_type=None, **kwargs) -> None: + def __init__(self, *, location: str, tags=None, sku=None, max_size_bytes: int=None, per_database_settings=None, zone_redundant: bool=None, license_type=None, maintenance_configuration_id: str=None, **kwargs) -> None: super(ElasticPool, self).__init__(location=location, tags=tags, **kwargs) self.sku = sku self.kind = None @@ -1922,6 +1953,7 @@ def __init__(self, *, location: str, tags=None, sku=None, max_size_bytes: int=No self.per_database_settings = per_database_settings self.zone_redundant = zone_redundant self.license_type = license_type + self.maintenance_configuration_id = maintenance_configuration_id class ElasticPoolActivity(ProxyResource): @@ -2530,6 +2562,10 @@ class ElasticPoolUpdate(Model): :param license_type: The license type to apply for this elastic pool. Possible values include: 'LicenseIncluded', 'BasePrice' :type license_type: str or ~azure.mgmt.sql.models.ElasticPoolLicenseType + :param maintenance_configuration_id: Maintenance configuration id assigned + to the elastic pool. This configuration defines the period when the + maintenance updates will be rolled out. + :type maintenance_configuration_id: str :param tags: Resource tags. :type tags: dict[str, str] """ @@ -2540,16 +2576,18 @@ class ElasticPoolUpdate(Model): 'per_database_settings': {'key': 'properties.perDatabaseSettings', 'type': 'ElasticPoolPerDatabaseSettings'}, 'zone_redundant': {'key': 'properties.zoneRedundant', 'type': 'bool'}, 'license_type': {'key': 'properties.licenseType', 'type': 'str'}, + 'maintenance_configuration_id': {'key': 'properties.maintenanceConfigurationId', 'type': 'str'}, 'tags': {'key': 'tags', 'type': '{str}'}, } - def __init__(self, *, sku=None, max_size_bytes: int=None, per_database_settings=None, zone_redundant: bool=None, license_type=None, tags=None, **kwargs) -> None: + def __init__(self, *, sku=None, max_size_bytes: int=None, per_database_settings=None, zone_redundant: bool=None, license_type=None, maintenance_configuration_id: str=None, tags=None, **kwargs) -> None: super(ElasticPoolUpdate, self).__init__(**kwargs) self.sku = sku self.max_size_bytes = max_size_bytes self.per_database_settings = per_database_settings self.zone_redundant = zone_redundant self.license_type = license_type + self.maintenance_configuration_id = maintenance_configuration_id self.tags = tags diff --git a/sdk/sql/azure-mgmt-sql/azure/mgmt/sql/models/_sql_management_client_enums.py b/sdk/sql/azure-mgmt-sql/azure/mgmt/sql/models/_sql_management_client_enums.py index 0551ac2a58a4..f2c7c9c31115 100644 --- a/sdk/sql/azure-mgmt-sql/azure/mgmt/sql/models/_sql_management_client_enums.py +++ b/sdk/sql/azure-mgmt-sql/azure/mgmt/sql/models/_sql_management_client_enums.py @@ -430,19 +430,6 @@ class ManagementOperationState(str, Enum): cancelled = "Cancelled" -class ElasticPoolState(str, Enum): - - creating = "Creating" - ready = "Ready" - disabled = "Disabled" - - -class ElasticPoolLicenseType(str, Enum): - - license_included = "LicenseIncluded" - base_price = "BasePrice" - - class VulnerabilityAssessmentScanTriggerType(str, Enum): on_demand = "OnDemand" @@ -491,77 +478,6 @@ class PrivateEndpointProvisioningState(str, Enum): rejecting = "Rejecting" -class CreateMode(str, Enum): - - default = "Default" - copy = "Copy" - secondary = "Secondary" - point_in_time_restore = "PointInTimeRestore" - restore = "Restore" - recovery = "Recovery" - restore_external_backup = "RestoreExternalBackup" - restore_external_backup_secondary = "RestoreExternalBackupSecondary" - restore_long_term_retention_backup = "RestoreLongTermRetentionBackup" - online_secondary = "OnlineSecondary" - - -class SampleName(str, Enum): - - adventure_works_lt = "AdventureWorksLT" - wide_world_importers_std = "WideWorldImportersStd" - wide_world_importers_full = "WideWorldImportersFull" - - -class DatabaseStatus(str, Enum): - - online = "Online" - restoring = "Restoring" - recovery_pending = "RecoveryPending" - recovering = "Recovering" - suspect = "Suspect" - offline = "Offline" - standby = "Standby" - shutdown = "Shutdown" - emergency_mode = "EmergencyMode" - auto_closed = "AutoClosed" - copying = "Copying" - creating = "Creating" - inaccessible = "Inaccessible" - offline_secondary = "OfflineSecondary" - pausing = "Pausing" - paused = "Paused" - resuming = "Resuming" - scaling = "Scaling" - offline_changing_dw_performance_tiers = "OfflineChangingDwPerformanceTiers" - online_changing_dw_performance_tiers = "OnlineChangingDwPerformanceTiers" - disabled = "Disabled" - - -class CatalogCollationType(str, Enum): - - database_default = "DATABASE_DEFAULT" - sql_latin1_general_cp1_ci_as = "SQL_Latin1_General_CP1_CI_AS" - - -class DatabaseLicenseType(str, Enum): - - license_included = "LicenseIncluded" - base_price = "BasePrice" - - -class DatabaseReadScale(str, Enum): - - enabled = "Enabled" - disabled = "Disabled" - - -class StorageAccountType(str, Enum): - - grs = "GRS" - lrs = "LRS" - zrs = "ZRS" - - class IdentityType(str, Enum): system_assigned = "SystemAssigned" @@ -678,6 +594,12 @@ class ManagedDatabaseStatus(str, Enum): updating = "Updating" +class CatalogCollationType(str, Enum): + + database_default = "DATABASE_DEFAULT" + sql_latin1_general_cp1_ci_as = "SQL_Latin1_General_CP1_CI_AS" + + class ManagedDatabaseCreateMode(str, Enum): default = "Default" @@ -706,12 +628,96 @@ class ManagedInstanceProxyOverride(str, Enum): default = "Default" +class StorageAccountType(str, Enum): + + grs = "GRS" + lrs = "LRS" + zrs = "ZRS" + + class StorageKeyType(str, Enum): shared_access_key = "SharedAccessKey" storage_access_key = "StorageAccessKey" +class CreateMode(str, Enum): + + default = "Default" + copy = "Copy" + secondary = "Secondary" + point_in_time_restore = "PointInTimeRestore" + restore = "Restore" + recovery = "Recovery" + restore_external_backup = "RestoreExternalBackup" + restore_external_backup_secondary = "RestoreExternalBackupSecondary" + restore_long_term_retention_backup = "RestoreLongTermRetentionBackup" + online_secondary = "OnlineSecondary" + + +class SampleName(str, Enum): + + adventure_works_lt = "AdventureWorksLT" + wide_world_importers_std = "WideWorldImportersStd" + wide_world_importers_full = "WideWorldImportersFull" + + +class DatabaseStatus(str, Enum): + + online = "Online" + restoring = "Restoring" + recovery_pending = "RecoveryPending" + recovering = "Recovering" + suspect = "Suspect" + offline = "Offline" + standby = "Standby" + shutdown = "Shutdown" + emergency_mode = "EmergencyMode" + auto_closed = "AutoClosed" + copying = "Copying" + creating = "Creating" + inaccessible = "Inaccessible" + offline_secondary = "OfflineSecondary" + pausing = "Pausing" + paused = "Paused" + resuming = "Resuming" + scaling = "Scaling" + offline_changing_dw_performance_tiers = "OfflineChangingDwPerformanceTiers" + online_changing_dw_performance_tiers = "OnlineChangingDwPerformanceTiers" + disabled = "Disabled" + + +class DatabaseLicenseType(str, Enum): + + license_included = "LicenseIncluded" + base_price = "BasePrice" + + +class DatabaseReadScale(str, Enum): + + enabled = "Enabled" + disabled = "Disabled" + + +class SecondaryType(str, Enum): + + geo = "Geo" + named = "Named" + + +class ElasticPoolState(str, Enum): + + creating = "Creating" + ready = "Ready" + disabled = "Disabled" + + +class ElasticPoolLicenseType(str, Enum): + + license_included = "LicenseIncluded" + base_price = "BasePrice" + + class LongTermRetentionDatabaseState(str, Enum): all = "All" @@ -731,12 +737,6 @@ class SensitivityLabelSource(str, Enum): recommended = "recommended" -class ReplicaType(str, Enum): - - primary = "Primary" - readable_secondary = "ReadableSecondary" - - class CapabilityGroup(str, Enum): supported_editions = "supportedEditions" @@ -786,3 +786,9 @@ class DatabaseState6(str, Enum): all = "All" live = "Live" deleted = "Deleted" + + +class ReplicaType(str, Enum): + + primary = "Primary" + readable_secondary = "ReadableSecondary" diff --git a/sdk/sql/azure-mgmt-sql/azure/mgmt/sql/operations/_databases_operations.py b/sdk/sql/azure-mgmt-sql/azure/mgmt/sql/operations/_databases_operations.py index 9a2ede8bd103..006b378c2ec8 100644 --- a/sdk/sql/azure-mgmt-sql/azure/mgmt/sql/operations/_databases_operations.py +++ b/sdk/sql/azure-mgmt-sql/azure/mgmt/sql/operations/_databases_operations.py @@ -201,6 +201,115 @@ def internal_paging(next_link=None): return deserialized list_metric_definitions.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/metricDefinitions'} + + def _export_initial( + self, resource_group_name, server_name, database_name, parameters, custom_headers=None, raw=False, **operation_config): + api_version = "2020-02-02-preview" + + # Construct URL + url = self.export.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'serverName': self._serialize.url("server_name", server_name, 'str'), + 'databaseName': self._serialize.url("database_name", database_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct body + body_content = self._serialize.body(parameters, 'ExportDatabaseDefinition') + + # Construct and send request + request = self._client.post(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200, 202]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('ImportExportOperationResult', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def export( + self, resource_group_name, server_name, database_name, parameters, custom_headers=None, raw=False, polling=True, **operation_config): + """Exports a database. + + :param resource_group_name: The name of the resource group that + contains the resource. You can obtain this value from the Azure + Resource Manager API or the portal. + :type resource_group_name: str + :param server_name: The name of the server. + :type server_name: str + :param database_name: The name of the database. + :type database_name: str + :param parameters: The database export request parameters. + :type parameters: ~azure.mgmt.sql.models.ExportDatabaseDefinition + :param dict custom_headers: headers that will be added to the request + :param bool raw: The poller return type is ClientRawResponse, the + direct response alongside the deserialized response + :param polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :return: An instance of LROPoller that returns + ImportExportOperationResult or + ClientRawResponse if raw==True + :rtype: + ~msrestazure.azure_operation.AzureOperationPoller[~azure.mgmt.sql.models.ImportExportOperationResult] + or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[~azure.mgmt.sql.models.ImportExportOperationResult]] + :raises: :class:`CloudError` + """ + raw_result = self._export_initial( + resource_group_name=resource_group_name, + server_name=server_name, + database_name=database_name, + parameters=parameters, + custom_headers=custom_headers, + raw=True, + **operation_config + ) + + def get_long_running_output(response): + deserialized = self._deserialize('ImportExportOperationResult', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + lro_delay = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + export.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/export'} + def list_by_server( self, resource_group_name, server_name, custom_headers=None, raw=False, **operation_config): """Gets a list of databases. @@ -221,7 +330,7 @@ def list_by_server( ~azure.mgmt.sql.models.DatabasePaged[~azure.mgmt.sql.models.Database] :raises: :class:`CloudError` """ - api_version = "2019-06-01-preview" + api_version = "2020-08-01-preview" def prepare_request(next_link=None): if not next_link: @@ -299,7 +408,7 @@ def get( ~msrest.pipeline.ClientRawResponse :raises: :class:`CloudError` """ - api_version = "2019-06-01-preview" + api_version = "2020-08-01-preview" # Construct URL url = self.get.metadata['url'] @@ -348,7 +457,7 @@ def get( def _create_or_update_initial( self, resource_group_name, server_name, database_name, parameters, custom_headers=None, raw=False, **operation_config): - api_version = "2019-06-01-preview" + api_version = "2020-08-01-preview" # Construct URL url = self.create_or_update.metadata['url'] @@ -458,7 +567,7 @@ def get_long_running_output(response): def _delete_initial( self, resource_group_name, server_name, database_name, custom_headers=None, raw=False, **operation_config): - api_version = "2019-06-01-preview" + api_version = "2020-08-01-preview" # Construct URL url = self.delete.metadata['url'] @@ -545,7 +654,7 @@ def get_long_running_output(response): def _update_initial( self, resource_group_name, server_name, database_name, parameters, custom_headers=None, raw=False, **operation_config): - api_version = "2019-06-01-preview" + api_version = "2020-08-01-preview" # Construct URL url = self.update.metadata['url'] @@ -672,7 +781,7 @@ def list_by_elastic_pool( ~azure.mgmt.sql.models.DatabasePaged[~azure.mgmt.sql.models.Database] :raises: :class:`CloudError` """ - api_version = "2019-06-01-preview" + api_version = "2020-08-01-preview" def prepare_request(next_link=None): if not next_link: @@ -730,9 +839,102 @@ def internal_paging(next_link=None): list_by_elastic_pool.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/elasticPools/{elasticPoolName}/databases'} + def _failover_initial( + self, resource_group_name, server_name, database_name, replica_type=None, custom_headers=None, raw=False, **operation_config): + api_version = "2020-08-01-preview" + + # Construct URL + url = self.failover.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'serverName': self._serialize.url("server_name", server_name, 'str'), + 'databaseName': self._serialize.url("database_name", database_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + if replica_type is not None: + query_parameters['replicaType'] = self._serialize.query("replica_type", replica_type, 'str') + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.post(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200, 202]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def failover( + self, resource_group_name, server_name, database_name, replica_type=None, custom_headers=None, raw=False, polling=True, **operation_config): + """Failovers a database. + + :param resource_group_name: The name of the resource group that + contains the resource. You can obtain this value from the Azure + Resource Manager API or the portal. + :type resource_group_name: str + :param server_name: The name of the server. + :type server_name: str + :param database_name: The name of the database to failover. + :type database_name: str + :param replica_type: The type of replica to be failed over. Possible + values include: 'Primary', 'ReadableSecondary' + :type replica_type: str or ~azure.mgmt.sql.models.ReplicaType + :param dict custom_headers: headers that will be added to the request + :param bool raw: The poller return type is ClientRawResponse, the + direct response alongside the deserialized response + :param polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :return: An instance of LROPoller that returns None or + ClientRawResponse if raw==True + :rtype: ~msrestazure.azure_operation.AzureOperationPoller[None] or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[None]] + :raises: :class:`CloudError` + """ + raw_result = self._failover_initial( + resource_group_name=resource_group_name, + server_name=server_name, + database_name=database_name, + replica_type=replica_type, + custom_headers=custom_headers, + raw=True, + **operation_config + ) + + def get_long_running_output(response): + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + lro_delay = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + failover.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/failover'} + + def _pause_initial( self, resource_group_name, server_name, database_name, custom_headers=None, raw=False, **operation_config): - api_version = "2019-06-01-preview" + api_version = "2020-08-01-preview" # Construct URL url = self.pause.metadata['url'] @@ -833,7 +1035,7 @@ def get_long_running_output(response): def _resume_initial( self, resource_group_name, server_name, database_name, custom_headers=None, raw=False, **operation_config): - api_version = "2019-06-01-preview" + api_version = "2020-08-01-preview" # Construct URL url = self.resume.metadata['url'] @@ -934,7 +1136,7 @@ def get_long_running_output(response): def _upgrade_data_warehouse_initial( self, resource_group_name, server_name, database_name, custom_headers=None, raw=False, **operation_config): - api_version = "2019-06-01-preview" + api_version = "2020-08-01-preview" # Construct URL url = self.upgrade_data_warehouse.metadata['url'] @@ -1043,7 +1245,7 @@ def rename( """ parameters = models.ResourceMoveDefinition(id=id) - api_version = "2019-06-01-preview" + api_version = "2020-08-01-preview" # Construct URL url = self.rename.metadata['url'] @@ -1085,281 +1287,3 @@ def rename( client_raw_response = ClientRawResponse(None, response) return client_raw_response rename.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/move'} - - def list_inaccessible_by_server( - self, resource_group_name, server_name, custom_headers=None, raw=False, **operation_config): - """Gets a list of inaccessible databases in a logical server. - - :param resource_group_name: The name of the resource group that - contains the resource. You can obtain this value from the Azure - Resource Manager API or the portal. - :type resource_group_name: str - :param server_name: The name of the server. - :type server_name: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: An iterator like instance of Database - :rtype: - ~azure.mgmt.sql.models.DatabasePaged[~azure.mgmt.sql.models.Database] - :raises: :class:`CloudError` - """ - api_version = "2019-06-01-preview" - - def prepare_request(next_link=None): - if not next_link: - # Construct URL - url = self.list_inaccessible_by_server.metadata['url'] - path_format_arguments = { - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), - 'serverName': self._serialize.url("server_name", server_name, 'str'), - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') - - else: - url = next_link - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Accept'] = 'application/json' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.get(url, query_parameters, header_parameters) - return request - - def internal_paging(next_link=None): - request = prepare_request(next_link) - - response = self._client.send(request, stream=False, **operation_config) - - if response.status_code not in [200]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - return response - - # Deserialize response - header_dict = None - if raw: - header_dict = {} - deserialized = models.DatabasePaged(internal_paging, self._deserialize.dependencies, header_dict) - - return deserialized - list_inaccessible_by_server.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/inaccessibleDatabases'} - - - def _failover_initial( - self, resource_group_name, server_name, database_name, replica_type=None, custom_headers=None, raw=False, **operation_config): - api_version = "2019-06-01-preview" - - # Construct URL - url = self.failover.metadata['url'] - path_format_arguments = { - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), - 'serverName': self._serialize.url("server_name", server_name, 'str'), - 'databaseName': self._serialize.url("database_name", database_name, 'str'), - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - if replica_type is not None: - query_parameters['replicaType'] = self._serialize.query("replica_type", replica_type, 'str') - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') - - # Construct headers - header_parameters = {} - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.post(url, query_parameters, header_parameters) - response = self._client.send(request, stream=False, **operation_config) - - if response.status_code not in [200, 202]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - def failover( - self, resource_group_name, server_name, database_name, replica_type=None, custom_headers=None, raw=False, polling=True, **operation_config): - """Failovers a database. - - :param resource_group_name: The name of the resource group that - contains the resource. You can obtain this value from the Azure - Resource Manager API or the portal. - :type resource_group_name: str - :param server_name: The name of the server. - :type server_name: str - :param database_name: The name of the database to failover. - :type database_name: str - :param replica_type: The type of replica to be failed over. Possible - values include: 'Primary', 'ReadableSecondary' - :type replica_type: str or ~azure.mgmt.sql.models.ReplicaType - :param dict custom_headers: headers that will be added to the request - :param bool raw: The poller return type is ClientRawResponse, the - direct response alongside the deserialized response - :param polling: True for ARMPolling, False for no polling, or a - polling object for personal polling strategy - :return: An instance of LROPoller that returns None or - ClientRawResponse if raw==True - :rtype: ~msrestazure.azure_operation.AzureOperationPoller[None] or - ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[None]] - :raises: :class:`CloudError` - """ - raw_result = self._failover_initial( - resource_group_name=resource_group_name, - server_name=server_name, - database_name=database_name, - replica_type=replica_type, - custom_headers=custom_headers, - raw=True, - **operation_config - ) - - def get_long_running_output(response): - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - lro_delay = operation_config.get( - 'long_running_operation_timeout', - self.config.long_running_operation_timeout) - if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) - elif polling is False: polling_method = NoPolling() - else: polling_method = polling - return LROPoller(self._client, raw_result, get_long_running_output, polling_method) - failover.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/failover'} - - - def _export_initial( - self, resource_group_name, server_name, database_name, parameters, custom_headers=None, raw=False, **operation_config): - api_version = "2020-02-02-preview" - - # Construct URL - url = self.export.metadata['url'] - path_format_arguments = { - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), - 'serverName': self._serialize.url("server_name", server_name, 'str'), - 'databaseName': self._serialize.url("database_name", database_name, 'str'), - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') - - # Construct headers - header_parameters = {} - header_parameters['Accept'] = 'application/json' - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct body - body_content = self._serialize.body(parameters, 'ExportDatabaseDefinition') - - # Construct and send request - request = self._client.post(url, query_parameters, header_parameters, body_content) - response = self._client.send(request, stream=False, **operation_config) - - if response.status_code not in [200, 202]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('ImportExportOperationResult', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - - def export( - self, resource_group_name, server_name, database_name, parameters, custom_headers=None, raw=False, polling=True, **operation_config): - """Exports a database. - - :param resource_group_name: The name of the resource group that - contains the resource. You can obtain this value from the Azure - Resource Manager API or the portal. - :type resource_group_name: str - :param server_name: The name of the server. - :type server_name: str - :param database_name: The name of the database. - :type database_name: str - :param parameters: The database export request parameters. - :type parameters: ~azure.mgmt.sql.models.ExportDatabaseDefinition - :param dict custom_headers: headers that will be added to the request - :param bool raw: The poller return type is ClientRawResponse, the - direct response alongside the deserialized response - :param polling: True for ARMPolling, False for no polling, or a - polling object for personal polling strategy - :return: An instance of LROPoller that returns - ImportExportOperationResult or - ClientRawResponse if raw==True - :rtype: - ~msrestazure.azure_operation.AzureOperationPoller[~azure.mgmt.sql.models.ImportExportOperationResult] - or - ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[~azure.mgmt.sql.models.ImportExportOperationResult]] - :raises: :class:`CloudError` - """ - raw_result = self._export_initial( - resource_group_name=resource_group_name, - server_name=server_name, - database_name=database_name, - parameters=parameters, - custom_headers=custom_headers, - raw=True, - **operation_config - ) - - def get_long_running_output(response): - deserialized = self._deserialize('ImportExportOperationResult', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - - lro_delay = operation_config.get( - 'long_running_operation_timeout', - self.config.long_running_operation_timeout) - if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) - elif polling is False: polling_method = NoPolling() - else: polling_method = polling - return LROPoller(self._client, raw_result, get_long_running_output, polling_method) - export.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/export'} diff --git a/sdk/sql/azure-mgmt-sql/azure/mgmt/sql/operations/_elastic_pools_operations.py b/sdk/sql/azure-mgmt-sql/azure/mgmt/sql/operations/_elastic_pools_operations.py index 8f780c6995e1..a932f04fb386 100644 --- a/sdk/sql/azure-mgmt-sql/azure/mgmt/sql/operations/_elastic_pools_operations.py +++ b/sdk/sql/azure-mgmt-sql/azure/mgmt/sql/operations/_elastic_pools_operations.py @@ -223,7 +223,7 @@ def list_by_server( ~azure.mgmt.sql.models.ElasticPoolPaged[~azure.mgmt.sql.models.ElasticPool] :raises: :class:`CloudError` """ - api_version = "2017-10-01-preview" + api_version = "2020-08-01-preview" def prepare_request(next_link=None): if not next_link: @@ -303,7 +303,7 @@ def get( ~msrest.pipeline.ClientRawResponse :raises: :class:`CloudError` """ - api_version = "2017-10-01-preview" + api_version = "2020-08-01-preview" # Construct URL url = self.get.metadata['url'] @@ -352,7 +352,7 @@ def get( def _create_or_update_initial( self, resource_group_name, server_name, elastic_pool_name, parameters, custom_headers=None, raw=False, **operation_config): - api_version = "2017-10-01-preview" + api_version = "2020-08-01-preview" # Construct URL url = self.create_or_update.metadata['url'] @@ -462,7 +462,7 @@ def get_long_running_output(response): def _delete_initial( self, resource_group_name, server_name, elastic_pool_name, custom_headers=None, raw=False, **operation_config): - api_version = "2017-10-01-preview" + api_version = "2020-08-01-preview" # Construct URL url = self.delete.metadata['url'] @@ -549,7 +549,7 @@ def get_long_running_output(response): def _update_initial( self, resource_group_name, server_name, elastic_pool_name, parameters, custom_headers=None, raw=False, **operation_config): - api_version = "2017-10-01-preview" + api_version = "2020-08-01-preview" # Construct URL url = self.update.metadata['url'] @@ -657,7 +657,7 @@ def get_long_running_output(response): def _failover_initial( self, resource_group_name, server_name, elastic_pool_name, custom_headers=None, raw=False, **operation_config): - api_version = "2018-06-01-preview" + api_version = "2020-08-01-preview" # Construct URL url = self.failover.metadata['url'] diff --git a/sdk/sql/azure-mgmt-sql/azure/mgmt/sql/version.py b/sdk/sql/azure-mgmt-sql/azure/mgmt/sql/version.py index 1a06e968c5c3..e0b95cf34de4 100644 --- a/sdk/sql/azure-mgmt-sql/azure/mgmt/sql/version.py +++ b/sdk/sql/azure-mgmt-sql/azure/mgmt/sql/version.py @@ -9,4 +9,4 @@ # regenerated. # -------------------------------------------------------------------------- -VERSION = "0.22.0" +VERSION = "0.23.0" diff --git a/sdk/sql/azure-mgmt-sql/tests/recordings/test_mgmt_sql.test_database.yaml b/sdk/sql/azure-mgmt-sql/tests/recordings/test_mgmt_sql.test_database.yaml index 5dc2472ccf0f..0426b85172e3 100644 --- a/sdk/sql/azure-mgmt-sql/tests/recordings/test_mgmt_sql.test_database.yaml +++ b/sdk/sql/azure-mgmt-sql/tests/recordings/test_mgmt_sql.test_database.yaml @@ -14,17 +14,17 @@ interactions: - application/json; charset=utf-8 User-Agent: - python/3.6.9 (Linux-4.19.76-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 - msrest_azure/0.6.2 azure-mgmt-sql/0.22.0 Azure-SDK-For-Python + msrest_azure/0.6.2 azure-mgmt-sql/0.23.0 Azure-SDK-For-Python accept-language: - en-US method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_sql_test_database9c310b06/providers/Microsoft.Sql/servers/mypysqlserverx9c310b06/databases/pyarmdb9c310b06?api-version=2019-06-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_sql_test_database9c310b06/providers/Microsoft.Sql/servers/mypysqlserverx9c310b06/databases/pyarmdb9c310b06?api-version=2020-08-01-preview response: body: - string: '{"operation":"CreateLogicalDatabase","startTime":"2020-10-10T03:33:07.59Z"}' + string: '{"operation":"CreateLogicalDatabase","startTime":"2020-10-28T01:53:04.01Z"}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_sql_test_database9c310b06/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/0b1923d4-9e60-4dda-a9e8-0cb317557749?api-version=2019-06-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_sql_test_database9c310b06/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/b483c173-b89b-4069-a472-b5dd00726a6d?api-version=2020-08-01-preview cache-control: - no-cache content-length: @@ -32,11 +32,11 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sat, 10 Oct 2020 03:33:07 GMT + - Wed, 28 Oct 2020 01:53:03 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_sql_test_database9c310b06/providers/Microsoft.Sql/locations/westus2/databaseOperationResults/0b1923d4-9e60-4dda-a9e8-0cb317557749?api-version=2019-06-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_sql_test_database9c310b06/providers/Microsoft.Sql/locations/westus2/databaseOperationResults/b483c173-b89b-4069-a472-b5dd00726a6d?api-version=2020-08-01-preview pragma: - no-cache server: @@ -61,12 +61,12 @@ interactions: - keep-alive User-Agent: - python/3.6.9 (Linux-4.19.76-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 - msrest_azure/0.6.2 azure-mgmt-sql/0.22.0 Azure-SDK-For-Python + msrest_azure/0.6.2 azure-mgmt-sql/0.23.0 Azure-SDK-For-Python method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_sql_test_database9c310b06/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/0b1923d4-9e60-4dda-a9e8-0cb317557749?api-version=2019-06-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_sql_test_database9c310b06/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/b483c173-b89b-4069-a472-b5dd00726a6d?api-version=2020-08-01-preview response: body: - string: '{"name":"0b1923d4-9e60-4dda-a9e8-0cb317557749","status":"InProgress","startTime":"2020-10-10T03:33:07.59Z"}' + string: '{"name":"b483c173-b89b-4069-a472-b5dd00726a6d","status":"InProgress","startTime":"2020-10-28T01:53:04.01Z"}' headers: cache-control: - no-cache @@ -75,7 +75,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sat, 10 Oct 2020 03:33:22 GMT + - Wed, 28 Oct 2020 01:53:19 GMT expires: - '-1' pragma: @@ -104,12 +104,12 @@ interactions: - keep-alive User-Agent: - python/3.6.9 (Linux-4.19.76-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 - msrest_azure/0.6.2 azure-mgmt-sql/0.22.0 Azure-SDK-For-Python + msrest_azure/0.6.2 azure-mgmt-sql/0.23.0 Azure-SDK-For-Python method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_sql_test_database9c310b06/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/0b1923d4-9e60-4dda-a9e8-0cb317557749?api-version=2019-06-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_sql_test_database9c310b06/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/b483c173-b89b-4069-a472-b5dd00726a6d?api-version=2020-08-01-preview response: body: - string: '{"name":"0b1923d4-9e60-4dda-a9e8-0cb317557749","status":"InProgress","startTime":"2020-10-10T03:33:07.59Z"}' + string: '{"name":"b483c173-b89b-4069-a472-b5dd00726a6d","status":"InProgress","startTime":"2020-10-28T01:53:04.01Z"}' headers: cache-control: - no-cache @@ -118,7 +118,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sat, 10 Oct 2020 03:33:37 GMT + - Wed, 28 Oct 2020 01:53:34 GMT expires: - '-1' pragma: @@ -147,12 +147,12 @@ interactions: - keep-alive User-Agent: - python/3.6.9 (Linux-4.19.76-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 - msrest_azure/0.6.2 azure-mgmt-sql/0.22.0 Azure-SDK-For-Python + msrest_azure/0.6.2 azure-mgmt-sql/0.23.0 Azure-SDK-For-Python method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_sql_test_database9c310b06/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/0b1923d4-9e60-4dda-a9e8-0cb317557749?api-version=2019-06-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_sql_test_database9c310b06/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/b483c173-b89b-4069-a472-b5dd00726a6d?api-version=2020-08-01-preview response: body: - string: '{"name":"0b1923d4-9e60-4dda-a9e8-0cb317557749","status":"Succeeded","startTime":"2020-10-10T03:33:07.59Z"}' + string: '{"name":"b483c173-b89b-4069-a472-b5dd00726a6d","status":"Succeeded","startTime":"2020-10-28T01:53:04.01Z"}' headers: cache-control: - no-cache @@ -161,7 +161,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sat, 10 Oct 2020 03:33:53 GMT + - Wed, 28 Oct 2020 01:53:49 GMT expires: - '-1' pragma: @@ -190,21 +190,21 @@ interactions: - keep-alive User-Agent: - python/3.6.9 (Linux-4.19.76-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 - msrest_azure/0.6.2 azure-mgmt-sql/0.22.0 Azure-SDK-For-Python + msrest_azure/0.6.2 azure-mgmt-sql/0.23.0 Azure-SDK-For-Python method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_sql_test_database9c310b06/providers/Microsoft.Sql/servers/mypysqlserverx9c310b06/databases/pyarmdb9c310b06?api-version=2019-06-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_sql_test_database9c310b06/providers/Microsoft.Sql/servers/mypysqlserverx9c310b06/databases/pyarmdb9c310b06?api-version=2020-08-01-preview response: body: - string: '{"sku":{"name":"GP_Gen5","tier":"GeneralPurpose","family":"Gen5","capacity":2},"kind":"v12.0,user,vcore","properties":{"collation":"SQL_Latin1_General_CP1_CI_AS","maxSizeBytes":34359738368,"status":"Online","databaseId":"6f2e6b81-c7d5-4eaf-9b5e-50deee72cd1c","creationDate":"2020-10-10T03:33:43.497Z","currentServiceObjectiveName":"GP_Gen5_2","requestedServiceObjectiveName":"GP_Gen5_2","defaultSecondaryLocation":"westcentralus","catalogCollation":"SQL_Latin1_General_CP1_CI_AS","zoneRedundant":false,"licenseType":"LicenseIncluded","maxLogSizeBytes":10307502080,"earliestRestoreDate":"2020-10-10T04:03:43.497Z","readScale":"Disabled","readReplicaCount":0,"currentSku":{"name":"GP_Gen5","tier":"GeneralPurpose","family":"Gen5","capacity":2},"storageAccountType":"GRS"},"location":"westus2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_sql_test_database9c310b06/providers/Microsoft.Sql/servers/mypysqlserverx9c310b06/databases/pyarmdb9c310b06","name":"pyarmdb9c310b06","type":"Microsoft.Sql/servers/databases"}' + string: '{"sku":{"name":"GP_Gen5","tier":"GeneralPurpose","family":"Gen5","capacity":2},"kind":"v12.0,user,vcore","properties":{"collation":"SQL_Latin1_General_CP1_CI_AS","maxSizeBytes":34359738368,"status":"Online","databaseId":"2203bcee-bda9-44e2-8015-2f8b16365eb0","creationDate":"2020-10-28T01:53:38.6Z","currentServiceObjectiveName":"GP_Gen5_2","requestedServiceObjectiveName":"GP_Gen5_2","defaultSecondaryLocation":"westcentralus","catalogCollation":"SQL_Latin1_General_CP1_CI_AS","zoneRedundant":false,"licenseType":"LicenseIncluded","maxLogSizeBytes":10307921510,"earliestRestoreDate":"2020-10-28T02:23:38.6Z","readScale":"Disabled","currentSku":{"name":"GP_Gen5","tier":"GeneralPurpose","family":"Gen5","capacity":2},"storageAccountType":"GRS"},"location":"westus2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_sql_test_database9c310b06/providers/Microsoft.Sql/servers/mypysqlserverx9c310b06/databases/pyarmdb9c310b06","name":"pyarmdb9c310b06","type":"Microsoft.Sql/servers/databases"}' headers: cache-control: - no-cache content-length: - - '1048' + - '1023' content-type: - application/json; charset=utf-8 date: - - Sat, 10 Oct 2020 03:33:53 GMT + - Wed, 28 Oct 2020 01:53:49 GMT expires: - '-1' pragma: @@ -233,23 +233,23 @@ interactions: - keep-alive User-Agent: - python/3.6.9 (Linux-4.19.76-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 - msrest_azure/0.6.2 azure-mgmt-sql/0.22.0 Azure-SDK-For-Python + msrest_azure/0.6.2 azure-mgmt-sql/0.23.0 Azure-SDK-For-Python accept-language: - en-US method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_sql_test_database9c310b06/providers/Microsoft.Sql/servers/mypysqlserverx9c310b06/databases/pyarmdb9c310b06?api-version=2019-06-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_sql_test_database9c310b06/providers/Microsoft.Sql/servers/mypysqlserverx9c310b06/databases/pyarmdb9c310b06?api-version=2020-08-01-preview response: body: - string: '{"sku":{"name":"GP_Gen5","tier":"GeneralPurpose","family":"Gen5","capacity":2},"kind":"v12.0,user,vcore","properties":{"collation":"SQL_Latin1_General_CP1_CI_AS","maxSizeBytes":34359738368,"status":"Online","databaseId":"6f2e6b81-c7d5-4eaf-9b5e-50deee72cd1c","creationDate":"2020-10-10T03:33:43.497Z","currentServiceObjectiveName":"GP_Gen5_2","requestedServiceObjectiveName":"GP_Gen5_2","defaultSecondaryLocation":"westcentralus","catalogCollation":"SQL_Latin1_General_CP1_CI_AS","zoneRedundant":false,"licenseType":"LicenseIncluded","maxLogSizeBytes":10307502080,"earliestRestoreDate":"2020-10-10T04:03:43.497Z","readScale":"Disabled","readReplicaCount":0,"currentSku":{"name":"GP_Gen5","tier":"GeneralPurpose","family":"Gen5","capacity":2},"storageAccountType":"GRS"},"location":"westus2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_sql_test_database9c310b06/providers/Microsoft.Sql/servers/mypysqlserverx9c310b06/databases/pyarmdb9c310b06","name":"pyarmdb9c310b06","type":"Microsoft.Sql/servers/databases"}' + string: '{"sku":{"name":"GP_Gen5","tier":"GeneralPurpose","family":"Gen5","capacity":2},"kind":"v12.0,user,vcore","properties":{"collation":"SQL_Latin1_General_CP1_CI_AS","maxSizeBytes":34359738368,"status":"Online","databaseId":"2203bcee-bda9-44e2-8015-2f8b16365eb0","creationDate":"2020-10-28T01:53:38.6Z","currentServiceObjectiveName":"GP_Gen5_2","requestedServiceObjectiveName":"GP_Gen5_2","defaultSecondaryLocation":"westcentralus","catalogCollation":"SQL_Latin1_General_CP1_CI_AS","zoneRedundant":false,"licenseType":"LicenseIncluded","maxLogSizeBytes":10307921510,"earliestRestoreDate":"2020-10-28T02:23:38.6Z","readScale":"Disabled","currentSku":{"name":"GP_Gen5","tier":"GeneralPurpose","family":"Gen5","capacity":2},"storageAccountType":"GRS"},"location":"westus2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_sql_test_database9c310b06/providers/Microsoft.Sql/servers/mypysqlserverx9c310b06/databases/pyarmdb9c310b06","name":"pyarmdb9c310b06","type":"Microsoft.Sql/servers/databases"}' headers: cache-control: - no-cache content-length: - - '1048' + - '1023' content-type: - application/json; charset=utf-8 date: - - Sat, 10 Oct 2020 03:33:54 GMT + - Wed, 28 Oct 2020 01:53:50 GMT expires: - '-1' pragma: @@ -278,23 +278,23 @@ interactions: - keep-alive User-Agent: - python/3.6.9 (Linux-4.19.76-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 - msrest_azure/0.6.2 azure-mgmt-sql/0.22.0 Azure-SDK-For-Python + msrest_azure/0.6.2 azure-mgmt-sql/0.23.0 Azure-SDK-For-Python accept-language: - en-US method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_sql_test_database9c310b06/providers/Microsoft.Sql/servers/mypysqlserverx9c310b06/databases?api-version=2019-06-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_sql_test_database9c310b06/providers/Microsoft.Sql/servers/mypysqlserverx9c310b06/databases?api-version=2020-08-01-preview response: body: - string: '{"value":[{"sku":{"name":"System","tier":"System","capacity":0},"kind":"v12.0,system","managedBy":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_sql_test_database9c310b06/providers/Microsoft.Sql/servers/mypysqlserverx9c310b06","properties":{"collation":"SQL_Latin1_General_CP1_CI_AS","maxSizeBytes":32212254720,"status":"Online","databaseId":"1e969399-f51d-49f0-b891-307ab2e37700","creationDate":"2020-10-10T03:33:01.167Z","currentServiceObjectiveName":"System2","requestedServiceObjectiveName":"System2","defaultSecondaryLocation":"westcentralus","catalogCollation":"SQL_Latin1_General_CP1_CI_AS","zoneRedundant":false,"readScale":"Disabled","readReplicaCount":0,"currentSku":{"name":"System","tier":"System","capacity":0},"storageAccountType":"GRS"},"location":"westus2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_sql_test_database9c310b06/providers/Microsoft.Sql/servers/mypysqlserverx9c310b06/databases/master","name":"master","type":"Microsoft.Sql/servers/databases"},{"sku":{"name":"GP_Gen5","tier":"GeneralPurpose","family":"Gen5","capacity":2},"kind":"v12.0,user,vcore","properties":{"collation":"SQL_Latin1_General_CP1_CI_AS","maxSizeBytes":34359738368,"status":"Online","databaseId":"6f2e6b81-c7d5-4eaf-9b5e-50deee72cd1c","creationDate":"2020-10-10T03:33:43.497Z","currentServiceObjectiveName":"GP_Gen5_2","requestedServiceObjectiveName":"GP_Gen5_2","defaultSecondaryLocation":"westcentralus","catalogCollation":"SQL_Latin1_General_CP1_CI_AS","zoneRedundant":false,"licenseType":"LicenseIncluded","maxLogSizeBytes":10307502080,"earliestRestoreDate":"2020-10-10T04:03:43.497Z","readScale":"Disabled","readReplicaCount":0,"currentSku":{"name":"GP_Gen5","tier":"GeneralPurpose","family":"Gen5","capacity":2},"storageAccountType":"GRS"},"location":"westus2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_sql_test_database9c310b06/providers/Microsoft.Sql/servers/mypysqlserverx9c310b06/databases/pyarmdb9c310b06","name":"pyarmdb9c310b06","type":"Microsoft.Sql/servers/databases"}]}' + string: '{"value":[{"sku":{"name":"System","tier":"System","capacity":0},"kind":"v12.0,system","managedBy":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_sql_test_database9c310b06/providers/Microsoft.Sql/servers/mypysqlserverx9c310b06","properties":{"collation":"SQL_Latin1_General_CP1_CI_AS","maxSizeBytes":32212254720,"status":"Online","databaseId":"ba04f048-80ad-4af5-8a6f-8aea637d0d13","creationDate":"2020-10-28T01:52:56.433Z","currentServiceObjectiveName":"System2","requestedServiceObjectiveName":"System2","defaultSecondaryLocation":"westcentralus","catalogCollation":"SQL_Latin1_General_CP1_CI_AS","zoneRedundant":false,"readScale":"Disabled","currentSku":{"name":"System","tier":"System","capacity":0},"storageAccountType":"GRS"},"location":"westus2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_sql_test_database9c310b06/providers/Microsoft.Sql/servers/mypysqlserverx9c310b06/databases/master","name":"master","type":"Microsoft.Sql/servers/databases"},{"sku":{"name":"GP_Gen5","tier":"GeneralPurpose","family":"Gen5","capacity":2},"kind":"v12.0,user,vcore","properties":{"collation":"SQL_Latin1_General_CP1_CI_AS","maxSizeBytes":34359738368,"status":"Online","databaseId":"2203bcee-bda9-44e2-8015-2f8b16365eb0","creationDate":"2020-10-28T01:53:38.6Z","currentServiceObjectiveName":"GP_Gen5_2","requestedServiceObjectiveName":"GP_Gen5_2","defaultSecondaryLocation":"westcentralus","catalogCollation":"SQL_Latin1_General_CP1_CI_AS","zoneRedundant":false,"licenseType":"LicenseIncluded","maxLogSizeBytes":10307921510,"earliestRestoreDate":"2020-10-28T02:23:38.6Z","readScale":"Disabled","currentSku":{"name":"GP_Gen5","tier":"GeneralPurpose","family":"Gen5","capacity":2},"storageAccountType":"GRS"},"location":"westus2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_sql_test_database9c310b06/providers/Microsoft.Sql/servers/mypysqlserverx9c310b06/databases/pyarmdb9c310b06","name":"pyarmdb9c310b06","type":"Microsoft.Sql/servers/databases"}]}' headers: cache-control: - no-cache content-length: - - '2094' + - '2048' content-type: - application/json; charset=utf-8 date: - - Sat, 10 Oct 2020 03:33:54 GMT + - Wed, 28 Oct 2020 01:53:51 GMT expires: - '-1' pragma: @@ -323,7 +323,7 @@ interactions: - keep-alive User-Agent: - python/3.6.9 (Linux-4.19.76-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 - msrest_azure/0.6.2 azure-mgmt-sql/0.22.0 Azure-SDK-For-Python + msrest_azure/0.6.2 azure-mgmt-sql/0.23.0 Azure-SDK-For-Python accept-language: - en-US method: GET @@ -343,7 +343,7 @@ interactions: dataserviceversion: - 3.0; date: - - Sat, 10 Oct 2020 03:33:55 GMT + - Wed, 28 Oct 2020 01:53:51 GMT server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -370,17 +370,17 @@ interactions: - '0' User-Agent: - python/3.6.9 (Linux-4.19.76-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 - msrest_azure/0.6.2 azure-mgmt-sql/0.22.0 Azure-SDK-For-Python + msrest_azure/0.6.2 azure-mgmt-sql/0.23.0 Azure-SDK-For-Python accept-language: - en-US method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_sql_test_database9c310b06/providers/Microsoft.Sql/servers/mypysqlserverx9c310b06/databases/pyarmdb9c310b06?api-version=2019-06-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_sql_test_database9c310b06/providers/Microsoft.Sql/servers/mypysqlserverx9c310b06/databases/pyarmdb9c310b06?api-version=2020-08-01-preview response: body: - string: '{"operation":"DropLogicalDatabase","startTime":"2020-10-10T03:33:55.903Z"}' + string: '{"operation":"DropLogicalDatabase","startTime":"2020-10-28T01:53:52.303Z"}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_sql_test_database9c310b06/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/9f73cbd4-9e9c-4875-bc2b-76531cc7f83a?api-version=2019-06-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_sql_test_database9c310b06/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/6dd3e4a1-0b3f-4f18-bb63-7b679df929d7?api-version=2020-08-01-preview cache-control: - no-cache content-length: @@ -388,11 +388,11 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sat, 10 Oct 2020 03:33:55 GMT + - Wed, 28 Oct 2020 01:53:52 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_sql_test_database9c310b06/providers/Microsoft.Sql/locations/westus2/databaseOperationResults/9f73cbd4-9e9c-4875-bc2b-76531cc7f83a?api-version=2019-06-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_sql_test_database9c310b06/providers/Microsoft.Sql/locations/westus2/databaseOperationResults/6dd3e4a1-0b3f-4f18-bb63-7b679df929d7?api-version=2020-08-01-preview pragma: - no-cache server: @@ -417,12 +417,12 @@ interactions: - keep-alive User-Agent: - python/3.6.9 (Linux-4.19.76-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 - msrest_azure/0.6.2 azure-mgmt-sql/0.22.0 Azure-SDK-For-Python + msrest_azure/0.6.2 azure-mgmt-sql/0.23.0 Azure-SDK-For-Python method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_sql_test_database9c310b06/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/9f73cbd4-9e9c-4875-bc2b-76531cc7f83a?api-version=2019-06-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_sql_test_database9c310b06/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/6dd3e4a1-0b3f-4f18-bb63-7b679df929d7?api-version=2020-08-01-preview response: body: - string: '{"name":"9f73cbd4-9e9c-4875-bc2b-76531cc7f83a","status":"Succeeded","startTime":"2020-10-10T03:33:55.903Z"}' + string: '{"name":"6dd3e4a1-0b3f-4f18-bb63-7b679df929d7","status":"Succeeded","startTime":"2020-10-28T01:53:52.303Z"}' headers: cache-control: - no-cache @@ -431,7 +431,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sat, 10 Oct 2020 03:34:10 GMT + - Wed, 28 Oct 2020 01:54:07 GMT expires: - '-1' pragma: diff --git a/sdk/sql/azure-mgmt-sql/tests/recordings/test_mgmt_sql.test_server.yaml b/sdk/sql/azure-mgmt-sql/tests/recordings/test_mgmt_sql.test_server.yaml index 85d4e839d3b5..f29646a218bf 100644 --- a/sdk/sql/azure-mgmt-sql/tests/recordings/test_mgmt_sql.test_server.yaml +++ b/sdk/sql/azure-mgmt-sql/tests/recordings/test_mgmt_sql.test_server.yaml @@ -15,29 +15,29 @@ interactions: - application/json; charset=utf-8 User-Agent: - python/3.6.9 (Linux-4.19.76-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 - msrest_azure/0.6.2 azure-mgmt-sql/0.22.0 Azure-SDK-For-Python + msrest_azure/0.6.2 azure-mgmt-sql/0.23.0 Azure-SDK-For-Python accept-language: - en-US method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_sql_test_server87460a68/providers/Microsoft.Sql/servers/tstpysqlserverx87460a68?api-version=2019-06-01-preview response: body: - string: '{"operation":"UpsertLogicalServer","startTime":"2020-10-10T03:34:26.78Z"}' + string: '{"operation":"UpsertLogicalServer","startTime":"2020-10-28T01:54:19.523Z"}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_sql_test_server87460a68/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/bdd08c0f-dd39-42ca-a274-d9afe764f757?api-version=2019-06-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_sql_test_server87460a68/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/7cb2f6b7-ecfc-4ed3-9eee-f2f559060c6f?api-version=2019-06-01-preview cache-control: - no-cache content-length: - - '73' + - '74' content-type: - application/json; charset=utf-8 date: - - Sat, 10 Oct 2020 03:34:26 GMT + - Wed, 28 Oct 2020 01:54:19 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_sql_test_server87460a68/providers/Microsoft.Sql/locations/westus2/serverOperationResults/bdd08c0f-dd39-42ca-a274-d9afe764f757?api-version=2019-06-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_sql_test_server87460a68/providers/Microsoft.Sql/locations/westus2/serverOperationResults/7cb2f6b7-ecfc-4ed3-9eee-f2f559060c6f?api-version=2019-06-01-preview pragma: - no-cache server: @@ -62,21 +62,21 @@ interactions: - keep-alive User-Agent: - python/3.6.9 (Linux-4.19.76-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 - msrest_azure/0.6.2 azure-mgmt-sql/0.22.0 Azure-SDK-For-Python + msrest_azure/0.6.2 azure-mgmt-sql/0.23.0 Azure-SDK-For-Python method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_sql_test_server87460a68/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/bdd08c0f-dd39-42ca-a274-d9afe764f757?api-version=2019-06-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_sql_test_server87460a68/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/7cb2f6b7-ecfc-4ed3-9eee-f2f559060c6f?api-version=2019-06-01-preview response: body: - string: '{"name":"bdd08c0f-dd39-42ca-a274-d9afe764f757","status":"InProgress","startTime":"2020-10-10T03:34:26.78Z"}' + string: '{"name":"7cb2f6b7-ecfc-4ed3-9eee-f2f559060c6f","status":"InProgress","startTime":"2020-10-28T01:54:19.523Z"}' headers: cache-control: - no-cache content-length: - - '107' + - '108' content-type: - application/json; charset=utf-8 date: - - Sat, 10 Oct 2020 03:34:28 GMT + - Wed, 28 Oct 2020 01:54:21 GMT expires: - '-1' pragma: @@ -105,21 +105,21 @@ interactions: - keep-alive User-Agent: - python/3.6.9 (Linux-4.19.76-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 - msrest_azure/0.6.2 azure-mgmt-sql/0.22.0 Azure-SDK-For-Python + msrest_azure/0.6.2 azure-mgmt-sql/0.23.0 Azure-SDK-For-Python method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_sql_test_server87460a68/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/bdd08c0f-dd39-42ca-a274-d9afe764f757?api-version=2019-06-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_sql_test_server87460a68/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/7cb2f6b7-ecfc-4ed3-9eee-f2f559060c6f?api-version=2019-06-01-preview response: body: - string: '{"name":"bdd08c0f-dd39-42ca-a274-d9afe764f757","status":"InProgress","startTime":"2020-10-10T03:34:26.78Z"}' + string: '{"name":"7cb2f6b7-ecfc-4ed3-9eee-f2f559060c6f","status":"InProgress","startTime":"2020-10-28T01:54:19.523Z"}' headers: cache-control: - no-cache content-length: - - '107' + - '108' content-type: - application/json; charset=utf-8 date: - - Sat, 10 Oct 2020 03:34:29 GMT + - Wed, 28 Oct 2020 01:54:22 GMT expires: - '-1' pragma: @@ -148,21 +148,21 @@ interactions: - keep-alive User-Agent: - python/3.6.9 (Linux-4.19.76-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 - msrest_azure/0.6.2 azure-mgmt-sql/0.22.0 Azure-SDK-For-Python + msrest_azure/0.6.2 azure-mgmt-sql/0.23.0 Azure-SDK-For-Python method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_sql_test_server87460a68/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/bdd08c0f-dd39-42ca-a274-d9afe764f757?api-version=2019-06-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_sql_test_server87460a68/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/7cb2f6b7-ecfc-4ed3-9eee-f2f559060c6f?api-version=2019-06-01-preview response: body: - string: '{"name":"bdd08c0f-dd39-42ca-a274-d9afe764f757","status":"InProgress","startTime":"2020-10-10T03:34:26.78Z"}' + string: '{"name":"7cb2f6b7-ecfc-4ed3-9eee-f2f559060c6f","status":"InProgress","startTime":"2020-10-28T01:54:19.523Z"}' headers: cache-control: - no-cache content-length: - - '107' + - '108' content-type: - application/json; charset=utf-8 date: - - Sat, 10 Oct 2020 03:34:30 GMT + - Wed, 28 Oct 2020 01:54:23 GMT expires: - '-1' pragma: @@ -191,21 +191,21 @@ interactions: - keep-alive User-Agent: - python/3.6.9 (Linux-4.19.76-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 - msrest_azure/0.6.2 azure-mgmt-sql/0.22.0 Azure-SDK-For-Python + msrest_azure/0.6.2 azure-mgmt-sql/0.23.0 Azure-SDK-For-Python method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_sql_test_server87460a68/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/bdd08c0f-dd39-42ca-a274-d9afe764f757?api-version=2019-06-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_sql_test_server87460a68/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/7cb2f6b7-ecfc-4ed3-9eee-f2f559060c6f?api-version=2019-06-01-preview response: body: - string: '{"name":"bdd08c0f-dd39-42ca-a274-d9afe764f757","status":"InProgress","startTime":"2020-10-10T03:34:26.78Z"}' + string: '{"name":"7cb2f6b7-ecfc-4ed3-9eee-f2f559060c6f","status":"InProgress","startTime":"2020-10-28T01:54:19.523Z"}' headers: cache-control: - no-cache content-length: - - '107' + - '108' content-type: - application/json; charset=utf-8 date: - - Sat, 10 Oct 2020 03:34:32 GMT + - Wed, 28 Oct 2020 01:54:24 GMT expires: - '-1' pragma: @@ -234,21 +234,64 @@ interactions: - keep-alive User-Agent: - python/3.6.9 (Linux-4.19.76-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 - msrest_azure/0.6.2 azure-mgmt-sql/0.22.0 Azure-SDK-For-Python + msrest_azure/0.6.2 azure-mgmt-sql/0.23.0 Azure-SDK-For-Python method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_sql_test_server87460a68/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/bdd08c0f-dd39-42ca-a274-d9afe764f757?api-version=2019-06-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_sql_test_server87460a68/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/7cb2f6b7-ecfc-4ed3-9eee-f2f559060c6f?api-version=2019-06-01-preview response: body: - string: '{"name":"bdd08c0f-dd39-42ca-a274-d9afe764f757","status":"InProgress","startTime":"2020-10-10T03:34:26.78Z"}' + string: '{"name":"7cb2f6b7-ecfc-4ed3-9eee-f2f559060c6f","status":"InProgress","startTime":"2020-10-28T01:54:19.523Z"}' headers: cache-control: - no-cache content-length: - - '107' + - '108' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 28 Oct 2020 01:54:45 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python/3.6.9 (Linux-4.19.76-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 + msrest_azure/0.6.2 azure-mgmt-sql/0.23.0 Azure-SDK-For-Python + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_sql_test_server87460a68/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/7cb2f6b7-ecfc-4ed3-9eee-f2f559060c6f?api-version=2019-06-01-preview + response: + body: + string: '{"name":"7cb2f6b7-ecfc-4ed3-9eee-f2f559060c6f","status":"InProgress","startTime":"2020-10-28T01:54:19.523Z"}' + headers: + cache-control: + - no-cache + content-length: + - '108' content-type: - application/json; charset=utf-8 date: - - Sat, 10 Oct 2020 03:34:52 GMT + - Wed, 28 Oct 2020 01:55:05 GMT expires: - '-1' pragma: @@ -277,21 +320,21 @@ interactions: - keep-alive User-Agent: - python/3.6.9 (Linux-4.19.76-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 - msrest_azure/0.6.2 azure-mgmt-sql/0.22.0 Azure-SDK-For-Python + msrest_azure/0.6.2 azure-mgmt-sql/0.23.0 Azure-SDK-For-Python method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_sql_test_server87460a68/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/bdd08c0f-dd39-42ca-a274-d9afe764f757?api-version=2019-06-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_sql_test_server87460a68/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/7cb2f6b7-ecfc-4ed3-9eee-f2f559060c6f?api-version=2019-06-01-preview response: body: - string: '{"name":"bdd08c0f-dd39-42ca-a274-d9afe764f757","status":"Succeeded","startTime":"2020-10-10T03:34:26.78Z"}' + string: '{"name":"7cb2f6b7-ecfc-4ed3-9eee-f2f559060c6f","status":"Succeeded","startTime":"2020-10-28T01:54:19.523Z"}' headers: cache-control: - no-cache content-length: - - '106' + - '107' content-type: - application/json; charset=utf-8 date: - - Sat, 10 Oct 2020 03:35:12 GMT + - Wed, 28 Oct 2020 01:55:25 GMT expires: - '-1' pragma: @@ -320,7 +363,7 @@ interactions: - keep-alive User-Agent: - python/3.6.9 (Linux-4.19.76-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 - msrest_azure/0.6.2 azure-mgmt-sql/0.22.0 Azure-SDK-For-Python + msrest_azure/0.6.2 azure-mgmt-sql/0.23.0 Azure-SDK-For-Python method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_sql_test_server87460a68/providers/Microsoft.Sql/servers/tstpysqlserverx87460a68?api-version=2019-06-01-preview response: @@ -334,7 +377,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sat, 10 Oct 2020 03:35:12 GMT + - Wed, 28 Oct 2020 01:55:25 GMT expires: - '-1' pragma: @@ -363,7 +406,7 @@ interactions: - keep-alive User-Agent: - python/3.6.9 (Linux-4.19.76-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 - msrest_azure/0.6.2 azure-mgmt-sql/0.22.0 Azure-SDK-For-Python + msrest_azure/0.6.2 azure-mgmt-sql/0.23.0 Azure-SDK-For-Python accept-language: - en-US method: GET @@ -379,7 +422,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sat, 10 Oct 2020 03:35:12 GMT + - Wed, 28 Oct 2020 01:55:26 GMT expires: - '-1' pragma: @@ -408,7 +451,7 @@ interactions: - keep-alive User-Agent: - python/3.6.9 (Linux-4.19.76-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 - msrest_azure/0.6.2 azure-mgmt-sql/0.22.0 Azure-SDK-For-Python + msrest_azure/0.6.2 azure-mgmt-sql/0.23.0 Azure-SDK-For-Python accept-language: - en-US method: GET @@ -424,7 +467,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sat, 10 Oct 2020 03:35:12 GMT + - Wed, 28 Oct 2020 01:55:26 GMT expires: - '-1' pragma: @@ -453,7 +496,7 @@ interactions: - keep-alive User-Agent: - python/3.6.9 (Linux-4.19.76-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 - msrest_azure/0.6.2 azure-mgmt-sql/0.22.0 Azure-SDK-For-Python + msrest_azure/0.6.2 azure-mgmt-sql/0.23.0 Azure-SDK-For-Python accept-language: - en-US method: GET @@ -469,7 +512,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sat, 10 Oct 2020 03:35:13 GMT + - Wed, 28 Oct 2020 01:55:27 GMT expires: - '-1' pragma: @@ -498,7 +541,7 @@ interactions: - keep-alive User-Agent: - python/3.6.9 (Linux-4.19.76-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 - msrest_azure/0.6.2 azure-mgmt-sql/0.22.0 Azure-SDK-For-Python + msrest_azure/0.6.2 azure-mgmt-sql/0.23.0 Azure-SDK-For-Python accept-language: - en-US method: GET @@ -518,7 +561,7 @@ interactions: dataserviceversion: - 3.0; date: - - Sat, 10 Oct 2020 03:35:13 GMT + - Wed, 28 Oct 2020 01:55:27 GMT server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -547,7 +590,7 @@ interactions: - application/json; charset=utf-8 User-Agent: - python/3.6.9 (Linux-4.19.76-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 - msrest_azure/0.6.2 azure-mgmt-sql/0.22.0 Azure-SDK-For-Python + msrest_azure/0.6.2 azure-mgmt-sql/0.23.0 Azure-SDK-For-Python accept-language: - en-US method: PUT @@ -566,7 +609,7 @@ interactions: dataserviceversion: - 3.0; date: - - Sat, 10 Oct 2020 03:35:14 GMT + - Wed, 28 Oct 2020 01:55:28 GMT preference-applied: - return-content server: @@ -593,17 +636,17 @@ interactions: - '0' User-Agent: - python/3.6.9 (Linux-4.19.76-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 - msrest_azure/0.6.2 azure-mgmt-sql/0.22.0 Azure-SDK-For-Python + msrest_azure/0.6.2 azure-mgmt-sql/0.23.0 Azure-SDK-For-Python accept-language: - en-US method: DELETE uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_sql_test_server87460a68/providers/Microsoft.Sql/servers/tstpysqlserverx87460a68?api-version=2019-06-01-preview response: body: - string: '{"operation":"DropLogicalServer","startTime":"2020-10-10T03:35:16.467Z"}' + string: '{"operation":"DropLogicalServer","startTime":"2020-10-28T01:55:29.427Z"}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_sql_test_server87460a68/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/64881d57-212f-4063-be0f-582962f73b1e?api-version=2019-06-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_sql_test_server87460a68/providers/Microsoft.Sql/locations/westus2/serverAzureAsyncOperation/1414a02f-2682-4b48-ad63-37617dab8ae6?api-version=2019-06-01-preview cache-control: - no-cache content-length: @@ -611,11 +654,11 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sat, 10 Oct 2020 03:35:15 GMT + - Wed, 28 Oct 2020 01:55:29 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_sql_test_server87460a68/providers/Microsoft.Sql/locations/westus2/serverOperationResults/64881d57-212f-4063-be0f-582962f73b1e?api-version=2019-06-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_sql_test_server87460a68/providers/Microsoft.Sql/locations/westus2/serverOperationResults/1414a02f-2682-4b48-ad63-37617dab8ae6?api-version=2019-06-01-preview pragma: - no-cache server: