From 63b23385638ae9be81e0d7badd91ff4511d0bcd7 Mon Sep 17 00:00:00 2001 From: SDK Automation Date: Mon, 22 Jun 2020 13:45:45 +0000 Subject: [PATCH 1/3] Update from release/v3 --- .../azure/mgmt/sql/_sql_management_client.py | 20 +-- .../azure/mgmt/sql/models/__init__.py | 37 +++-- .../azure/mgmt/sql/models/_models.py | 122 ++++++++++++--- .../azure/mgmt/sql/models/_models_py3.py | 130 +++++++++++++--- .../azure/mgmt/sql/models/_paged_models.py | 144 +++++++++++------- .../models/_sql_management_client_enums.py | 104 ++++++------- .../azure/mgmt/sql/operations/__init__.py | 8 +- ...abase_blob_auditing_policies_operations.py | 78 ++++++++++ ...erver_blob_auditing_policies_operations.py | 74 +++++++++ .../_managed_instances_operations.py | 118 ++++++++++++-- .../_replication_links_operations.py | 100 ++++++++++++ .../sql/operations/_sync_groups_operations.py | 4 +- .../operations/_sync_members_operations.py | 4 +- sdk/sql/azure-mgmt-sql/setup.py | 4 +- 14 files changed, 753 insertions(+), 194 deletions(-) diff --git a/sdk/sql/azure-mgmt-sql/azure/mgmt/sql/_sql_management_client.py b/sdk/sql/azure-mgmt-sql/azure/mgmt/sql/_sql_management_client.py index 97a8a5d8e2a4..fc95b255f436 100644 --- a/sdk/sql/azure-mgmt-sql/azure/mgmt/sql/_sql_management_client.py +++ b/sdk/sql/azure-mgmt-sql/azure/mgmt/sql/_sql_management_client.py @@ -40,8 +40,6 @@ from .operations import Operations from .operations import ServerKeysOperations from .operations import SyncAgentsOperations -from .operations import SyncGroupsOperations -from .operations import SyncMembersOperations from .operations import SubscriptionUsagesOperations from .operations import VirtualClustersOperations from .operations import VirtualNetworkRulesOperations @@ -104,6 +102,8 @@ from .operations import ManagedDatabasesOperations from .operations import ServerAzureADAdministratorsOperations from .operations import ManagedInstanceOperations +from .operations import SyncGroupsOperations +from .operations import SyncMembersOperations from . import models @@ -167,10 +167,6 @@ class SqlManagementClient(SDKClient): :vartype server_keys: azure.mgmt.sql.operations.ServerKeysOperations :ivar sync_agents: SyncAgents operations :vartype sync_agents: azure.mgmt.sql.operations.SyncAgentsOperations - :ivar sync_groups: SyncGroups operations - :vartype sync_groups: azure.mgmt.sql.operations.SyncGroupsOperations - :ivar sync_members: SyncMembers operations - :vartype sync_members: azure.mgmt.sql.operations.SyncMembersOperations :ivar subscription_usages: SubscriptionUsages operations :vartype subscription_usages: azure.mgmt.sql.operations.SubscriptionUsagesOperations :ivar virtual_clusters: VirtualClusters operations @@ -295,6 +291,10 @@ class SqlManagementClient(SDKClient): :vartype server_azure_ad_administrators: azure.mgmt.sql.operations.ServerAzureADAdministratorsOperations :ivar managed_instance_operations: ManagedInstanceOperations operations :vartype managed_instance_operations: azure.mgmt.sql.operations.ManagedInstanceOperations + :ivar sync_groups: SyncGroups operations + :vartype sync_groups: azure.mgmt.sql.operations.SyncGroupsOperations + :ivar sync_members: SyncMembers operations + :vartype sync_members: azure.mgmt.sql.operations.SyncMembersOperations :param credentials: Credentials needed for the client to connect to Azure. :type credentials: :mod:`A msrestazure Credentials @@ -369,10 +369,6 @@ def __init__( self._client, self.config, self._serialize, self._deserialize) self.sync_agents = SyncAgentsOperations( self._client, self.config, self._serialize, self._deserialize) - self.sync_groups = SyncGroupsOperations( - self._client, self.config, self._serialize, self._deserialize) - self.sync_members = SyncMembersOperations( - self._client, self.config, self._serialize, self._deserialize) self.subscription_usages = SubscriptionUsagesOperations( self._client, self.config, self._serialize, self._deserialize) self.virtual_clusters = VirtualClustersOperations( @@ -497,3 +493,7 @@ def __init__( self._client, self.config, self._serialize, self._deserialize) self.managed_instance_operations = ManagedInstanceOperations( self._client, self.config, self._serialize, self._deserialize) + self.sync_groups = SyncGroupsOperations( + self._client, self.config, self._serialize, self._deserialize) + self.sync_members = SyncMembersOperations( + self._client, self.config, self._serialize, self._deserialize) 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 e72bde3586c6..f1f1ca355cc4 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 @@ -177,6 +177,7 @@ from ._models_py3 import TrackedResource from ._models_py3 import TransparentDataEncryption from ._models_py3 import TransparentDataEncryptionActivity + from ._models_py3 import UnlinkParameters from ._models_py3 import Usage from ._models_py3 import VirtualCluster from ._models_py3 import VirtualClusterUpdate @@ -354,6 +355,7 @@ from ._models import TrackedResource from ._models import TransparentDataEncryption from ._models import TransparentDataEncryptionActivity + from ._models import UnlinkParameters from ._models import Usage from ._models import VirtualCluster from ._models import VirtualClusterUpdate @@ -375,6 +377,8 @@ from ._paged_models import ElasticPoolOperationPaged from ._paged_models import ElasticPoolPaged from ._paged_models import EncryptionProtectorPaged +from ._paged_models import ExtendedDatabaseBlobAuditingPolicyPaged +from ._paged_models import ExtendedServerBlobAuditingPolicyPaged from ._paged_models import FailoverGroupPaged from ._paged_models import FirewallRulePaged from ._paged_models import GeoBackupPolicyPaged @@ -475,11 +479,6 @@ OperationOrigin, SyncAgentState, SyncMemberDbType, - SyncGroupLogType, - SyncConflictResolutionPolicy, - SyncGroupState, - SyncDirection, - SyncMemberState, VirtualNetworkRuleState, BlobAuditingPolicyState, JobAgentState, @@ -524,6 +523,11 @@ PauseDelayTimeUnit, ManagedDatabaseStatus, ManagedDatabaseCreateMode, + SyncGroupLogType, + SyncConflictResolutionPolicy, + SyncGroupState, + SyncDirection, + SyncMemberState, LongTermRetentionDatabaseState, VulnerabilityAssessmentPolicyBaselineName, SensitivityLabelSource, @@ -705,6 +709,7 @@ 'TrackedResource', 'TransparentDataEncryption', 'TransparentDataEncryptionActivity', + 'UnlinkParameters', 'Usage', 'VirtualCluster', 'VirtualClusterUpdate', @@ -740,14 +745,11 @@ 'ServerKeyPaged', 'SyncAgentPaged', 'SyncAgentLinkedDatabasePaged', - 'SyncDatabaseIdPropertiesPaged', - 'SyncFullSchemaPropertiesPaged', - 'SyncGroupLogPropertiesPaged', - 'SyncGroupPaged', - 'SyncMemberPaged', 'SubscriptionUsagePaged', 'VirtualClusterPaged', 'VirtualNetworkRulePaged', + 'ExtendedDatabaseBlobAuditingPolicyPaged', + 'ExtendedServerBlobAuditingPolicyPaged', 'ServerBlobAuditingPolicyPaged', 'DatabaseBlobAuditingPolicyPaged', 'DatabaseVulnerabilityAssessmentPaged', @@ -791,6 +793,11 @@ 'ManagedDatabasePaged', 'ServerAzureADAdministratorPaged', 'ManagedInstanceOperationPaged', + 'SyncDatabaseIdPropertiesPaged', + 'SyncFullSchemaPropertiesPaged', + 'SyncGroupLogPropertiesPaged', + 'SyncGroupPaged', + 'SyncMemberPaged', 'ServerConnectionType', 'SecurityAlertPolicyState', 'SecurityAlertPolicyEmailAccountAdmins', @@ -825,11 +832,6 @@ 'OperationOrigin', 'SyncAgentState', 'SyncMemberDbType', - 'SyncGroupLogType', - 'SyncConflictResolutionPolicy', - 'SyncGroupState', - 'SyncDirection', - 'SyncMemberState', 'VirtualNetworkRuleState', 'BlobAuditingPolicyState', 'JobAgentState', @@ -874,6 +876,11 @@ 'PauseDelayTimeUnit', 'ManagedDatabaseStatus', 'ManagedDatabaseCreateMode', + 'SyncGroupLogType', + 'SyncConflictResolutionPolicy', + 'SyncGroupState', + 'SyncDirection', + 'SyncMemberState', 'LongTermRetentionDatabaseState', 'VulnerabilityAssessmentPolicyBaselineName', 'SensitivityLabelSource', 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 153ccd9289e9..d634bd9dd34d 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 @@ -597,8 +597,10 @@ class Database(TrackedResource): which means the replicas of this database will be spread across multiple availability zones. :type zone_redundant: bool - :param license_type: The license type to apply for this database. Possible - values include: 'LicenseIncluded', 'BasePrice' + :param license_type: The license type to apply for this database. + `LicenseIncluded` if you need a license, or `BasePrice` if you have a + license and are eligible for the Azure Hybrid Benefit. Possible values + include: 'LicenseIncluded', 'BasePrice' :type license_type: str or ~azure.mgmt.sql.models.DatabaseLicenseType :ivar max_log_size_bytes: The max log size for this database. :vartype max_log_size_bytes: long @@ -802,8 +804,17 @@ class DatabaseBlobAuditingPolicy(ProxyResource): storageEndpoint or isAzureMonitorTargetEnabled is required. :type storage_endpoint: str :param storage_account_access_key: Specifies the identifier key of the - auditing storage account. If state is Enabled and storageEndpoint is - specified, storageAccountAccessKey is required. + auditing storage account. + If state is Enabled and storageEndpoint is specified, not specifying the + storageAccountAccessKey will use SQL server system-assigned managed + identity to access the storage. + Prerequisites for using managed identity authentication: + 1. Assign SQL Server a system-assigned managed identity in Azure Active + Directory (AAD). + 2. Grant SQL Server identity access to the storage account by adding + 'Storage Blob Data Contributor' RBAC role to the server identity. + For more information, see [Auditing to storage using Managed Identity + authentication](https://go.microsoft.com/fwlink/?linkid=2114355) :type storage_account_access_key: str :param retention_days: Specifies the number of days to keep in the audit logs in the storage account. @@ -1233,8 +1244,10 @@ class DatabaseUpdate(Model): which means the replicas of this database will be spread across multiple availability zones. :type zone_redundant: bool - :param license_type: The license type to apply for this database. Possible - values include: 'LicenseIncluded', 'BasePrice' + :param license_type: The license type to apply for this database. + `LicenseIncluded` if you need a license, or `BasePrice` if you have a + license and are eligible for the Azure Hybrid Benefit. Possible values + include: 'LicenseIncluded', 'BasePrice' :type license_type: str or ~azure.mgmt.sql.models.DatabaseLicenseType :ivar max_log_size_bytes: The max log size for this database. :vartype max_log_size_bytes: long @@ -2671,8 +2684,17 @@ class ExtendedDatabaseBlobAuditingPolicy(ProxyResource): storageEndpoint or isAzureMonitorTargetEnabled is required. :type storage_endpoint: str :param storage_account_access_key: Specifies the identifier key of the - auditing storage account. If state is Enabled and storageEndpoint is - specified, storageAccountAccessKey is required. + auditing storage account. + If state is Enabled and storageEndpoint is specified, not specifying the + storageAccountAccessKey will use SQL server system-assigned managed + identity to access the storage. + Prerequisites for using managed identity authentication: + 1. Assign SQL Server a system-assigned managed identity in Azure Active + Directory (AAD). + 2. Grant SQL Server identity access to the storage account by adding + 'Storage Blob Data Contributor' RBAC role to the server identity. + For more information, see [Auditing to storage using Managed Identity + authentication](https://go.microsoft.com/fwlink/?linkid=2114355) :type storage_account_access_key: str :param retention_days: Specifies the number of days to keep in the audit logs in the storage account. @@ -2831,8 +2853,17 @@ class ExtendedServerBlobAuditingPolicy(ProxyResource): storageEndpoint or isAzureMonitorTargetEnabled is required. :type storage_endpoint: str :param storage_account_access_key: Specifies the identifier key of the - auditing storage account. If state is Enabled and storageEndpoint is - specified, storageAccountAccessKey is required. + auditing storage account. + If state is Enabled and storageEndpoint is specified, not specifying the + storageAccountAccessKey will use SQL server system-assigned managed + identity to access the storage. + Prerequisites for using managed identity authentication: + 1. Assign SQL Server a system-assigned managed identity in Azure Active + Directory (AAD). + 2. Grant SQL Server identity access to the storage account by adding + 'Storage Blob Data Contributor' RBAC role to the server identity. + For more information, see [Auditing to storage using Managed Identity + authentication](https://go.microsoft.com/fwlink/?linkid=2114355) :type storage_account_access_key: str :param retention_days: Specifies the number of days to keep in the audit logs in the storage account. @@ -4680,9 +4711,11 @@ class ManagedDatabase(TrackedResource): from external backup files. Collation, StorageContainerUri and StorageContainerSasToken must be specified. Recovery: Creates a database by restoring a geo-replicated backup. RecoverableDatabaseId must be - specified as the recoverable database resource ID to restore. Possible - values include: 'Default', 'RestoreExternalBackup', 'PointInTimeRestore', - 'Recovery', 'RestoreLongTermRetentionBackup' + specified as the recoverable database resource ID to restore. + RestoreLongTermRetentionBackup: Create a database by restoring from a long + term retention backup (longTermRetentionBackupResourceId required). + Possible values include: 'Default', 'RestoreExternalBackup', + 'PointInTimeRestore', 'Recovery', 'RestoreLongTermRetentionBackup' :type create_mode: str or ~azure.mgmt.sql.models.ManagedDatabaseCreateMode :param storage_container_uri: Conditional. If createMode is RestoreExternalBackup, this value is required. Specifies the uri of the @@ -4953,9 +4986,11 @@ class ManagedDatabaseUpdate(Model): from external backup files. Collation, StorageContainerUri and StorageContainerSasToken must be specified. Recovery: Creates a database by restoring a geo-replicated backup. RecoverableDatabaseId must be - specified as the recoverable database resource ID to restore. Possible - values include: 'Default', 'RestoreExternalBackup', 'PointInTimeRestore', - 'Recovery', 'RestoreLongTermRetentionBackup' + specified as the recoverable database resource ID to restore. + RestoreLongTermRetentionBackup: Create a database by restoring from a long + term retention backup (longTermRetentionBackupResourceId required). + Possible values include: 'Default', 'RestoreExternalBackup', + 'PointInTimeRestore', 'Recovery', 'RestoreLongTermRetentionBackup' :type create_mode: str or ~azure.mgmt.sql.models.ManagedDatabaseCreateMode :param storage_container_uri: Conditional. If createMode is RestoreExternalBackup, this value is required. Specifies the uri of the @@ -5125,6 +5160,9 @@ class ManagedInstance(TrackedResource): :param instance_pool_id: The Id of the instance pool this managed server belongs to. :type instance_pool_id: str + :param maintenance_configuration_id: Specifies maintenance configuration + id to apply to this managed instance. + :type maintenance_configuration_id: str :param minimal_tls_version: Minimal TLS version. Allowed values: 'None', '1.0', '1.1', '1.2' :type minimal_tls_version: str @@ -5166,6 +5204,7 @@ class ManagedInstance(TrackedResource): 'proxy_override': {'key': 'properties.proxyOverride', 'type': 'str'}, 'timezone_id': {'key': 'properties.timezoneId', 'type': 'str'}, 'instance_pool_id': {'key': 'properties.instancePoolId', 'type': 'str'}, + 'maintenance_configuration_id': {'key': 'properties.maintenanceConfigurationId', 'type': 'str'}, 'minimal_tls_version': {'key': 'properties.minimalTlsVersion', 'type': 'str'}, } @@ -5191,6 +5230,7 @@ def __init__(self, **kwargs): self.proxy_override = kwargs.get('proxy_override', None) self.timezone_id = kwargs.get('timezone_id', None) self.instance_pool_id = kwargs.get('instance_pool_id', None) + self.maintenance_configuration_id = kwargs.get('maintenance_configuration_id', None) self.minimal_tls_version = kwargs.get('minimal_tls_version', None) @@ -5766,6 +5806,9 @@ class ManagedInstanceUpdate(Model): :param instance_pool_id: The Id of the instance pool this managed server belongs to. :type instance_pool_id: str + :param maintenance_configuration_id: Specifies maintenance configuration + id to apply to this managed instance. + :type maintenance_configuration_id: str :param minimal_tls_version: Minimal TLS version. Allowed values: 'None', '1.0', '1.1', '1.2' :type minimal_tls_version: str @@ -5799,6 +5842,7 @@ class ManagedInstanceUpdate(Model): 'proxy_override': {'key': 'properties.proxyOverride', 'type': 'str'}, 'timezone_id': {'key': 'properties.timezoneId', 'type': 'str'}, 'instance_pool_id': {'key': 'properties.instancePoolId', 'type': 'str'}, + 'maintenance_configuration_id': {'key': 'properties.maintenanceConfigurationId', 'type': 'str'}, 'minimal_tls_version': {'key': 'properties.minimalTlsVersion', 'type': 'str'}, 'tags': {'key': 'tags', 'type': '{str}'}, } @@ -5824,6 +5868,7 @@ def __init__(self, **kwargs): self.proxy_override = kwargs.get('proxy_override', None) self.timezone_id = kwargs.get('timezone_id', None) self.instance_pool_id = kwargs.get('instance_pool_id', None) + self.maintenance_configuration_id = kwargs.get('maintenance_configuration_id', None) self.minimal_tls_version = kwargs.get('minimal_tls_version', None) self.tags = kwargs.get('tags', None) @@ -7778,8 +7823,17 @@ class ServerBlobAuditingPolicy(ProxyResource): storageEndpoint or isAzureMonitorTargetEnabled is required. :type storage_endpoint: str :param storage_account_access_key: Specifies the identifier key of the - auditing storage account. If state is Enabled and storageEndpoint is - specified, storageAccountAccessKey is required. + auditing storage account. + If state is Enabled and storageEndpoint is specified, not specifying the + storageAccountAccessKey will use SQL server system-assigned managed + identity to access the storage. + Prerequisites for using managed identity authentication: + 1. Assign SQL Server a system-assigned managed identity in Azure Active + Directory (AAD). + 2. Grant SQL Server identity access to the storage account by adding + 'Storage Blob Data Contributor' RBAC role to the server identity. + For more information, see [Auditing to storage using Managed Identity + authentication](https://go.microsoft.com/fwlink/?linkid=2114355) :type storage_account_access_key: str :param retention_days: Specifies the number of days to keep in the audit logs in the storage account. @@ -9251,6 +9305,9 @@ class SyncGroup(ProxyResource): :vartype sync_state: str or ~azure.mgmt.sql.models.SyncGroupState :param schema: Sync schema of the sync group. :type schema: ~azure.mgmt.sql.models.SyncGroupSchema + :param use_private_link_connection: If use private link connection is + enabled. + :type use_private_link_connection: bool """ _validation = { @@ -9273,6 +9330,7 @@ class SyncGroup(ProxyResource): 'hub_database_password': {'key': 'properties.hubDatabasePassword', 'type': 'str'}, 'sync_state': {'key': 'properties.syncState', 'type': 'str'}, 'schema': {'key': 'properties.schema', 'type': 'SyncGroupSchema'}, + 'use_private_link_connection': {'key': 'properties.usePrivateLinkConnection', 'type': 'bool'}, } def __init__(self, **kwargs): @@ -9285,6 +9343,7 @@ def __init__(self, **kwargs): self.hub_database_password = kwargs.get('hub_database_password', None) self.sync_state = None self.schema = kwargs.get('schema', None) + self.use_private_link_connection = kwargs.get('use_private_link_connection', None) class SyncGroupLogProperties(Model): @@ -9421,6 +9480,12 @@ class SyncMember(ProxyResource): :type sync_agent_id: str :param sql_server_database_id: SQL Server database id of the sync member. :type sql_server_database_id: str + :param sync_member_azure_database_resource_id: ARM resource id of the sync + member logical database, for sync members in Azure. + :type sync_member_azure_database_resource_id: str + :param use_private_link_connection: Whether to use private link + connection. + :type use_private_link_connection: bool :param server_name: Server name of the member database in the sync member :type server_name: str :param database_name: Database name of the member database in the sync @@ -9457,6 +9522,8 @@ class SyncMember(ProxyResource): 'database_type': {'key': 'properties.databaseType', 'type': 'str'}, 'sync_agent_id': {'key': 'properties.syncAgentId', 'type': 'str'}, 'sql_server_database_id': {'key': 'properties.sqlServerDatabaseId', 'type': 'str'}, + 'sync_member_azure_database_resource_id': {'key': 'properties.syncMemberAzureDatabaseResourceId', 'type': 'str'}, + 'use_private_link_connection': {'key': 'properties.usePrivateLinkConnection', 'type': 'bool'}, 'server_name': {'key': 'properties.serverName', 'type': 'str'}, 'database_name': {'key': 'properties.databaseName', 'type': 'str'}, 'user_name': {'key': 'properties.userName', 'type': 'str'}, @@ -9470,6 +9537,8 @@ def __init__(self, **kwargs): self.database_type = kwargs.get('database_type', None) self.sync_agent_id = kwargs.get('sync_agent_id', None) self.sql_server_database_id = kwargs.get('sql_server_database_id', None) + self.sync_member_azure_database_resource_id = kwargs.get('sync_member_azure_database_resource_id', None) + self.use_private_link_connection = kwargs.get('use_private_link_connection', None) self.server_name = kwargs.get('server_name', None) self.database_name = kwargs.get('database_name', None) self.user_name = kwargs.get('user_name', None) @@ -9609,6 +9678,23 @@ def __init__(self, **kwargs): self.percent_complete = None +class UnlinkParameters(Model): + """Represents the parameters for Unlink Replication Link request. + + :param forced_termination: Determines whether link will be terminated in a + forced or a friendly way. + :type forced_termination: bool + """ + + _attribute_map = { + 'forced_termination': {'key': 'forcedTermination', 'type': 'bool'}, + } + + def __init__(self, **kwargs): + super(UnlinkParameters, self).__init__(**kwargs) + self.forced_termination = kwargs.get('forced_termination', None) + + class Usage(Model): """ARM usage. 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 70e81e62ae62..0c5b5b9e6595 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 @@ -597,8 +597,10 @@ class Database(TrackedResource): which means the replicas of this database will be spread across multiple availability zones. :type zone_redundant: bool - :param license_type: The license type to apply for this database. Possible - values include: 'LicenseIncluded', 'BasePrice' + :param license_type: The license type to apply for this database. + `LicenseIncluded` if you need a license, or `BasePrice` if you have a + license and are eligible for the Azure Hybrid Benefit. Possible values + include: 'LicenseIncluded', 'BasePrice' :type license_type: str or ~azure.mgmt.sql.models.DatabaseLicenseType :ivar max_log_size_bytes: The max log size for this database. :vartype max_log_size_bytes: long @@ -802,8 +804,17 @@ class DatabaseBlobAuditingPolicy(ProxyResource): storageEndpoint or isAzureMonitorTargetEnabled is required. :type storage_endpoint: str :param storage_account_access_key: Specifies the identifier key of the - auditing storage account. If state is Enabled and storageEndpoint is - specified, storageAccountAccessKey is required. + auditing storage account. + If state is Enabled and storageEndpoint is specified, not specifying the + storageAccountAccessKey will use SQL server system-assigned managed + identity to access the storage. + Prerequisites for using managed identity authentication: + 1. Assign SQL Server a system-assigned managed identity in Azure Active + Directory (AAD). + 2. Grant SQL Server identity access to the storage account by adding + 'Storage Blob Data Contributor' RBAC role to the server identity. + For more information, see [Auditing to storage using Managed Identity + authentication](https://go.microsoft.com/fwlink/?linkid=2114355) :type storage_account_access_key: str :param retention_days: Specifies the number of days to keep in the audit logs in the storage account. @@ -1233,8 +1244,10 @@ class DatabaseUpdate(Model): which means the replicas of this database will be spread across multiple availability zones. :type zone_redundant: bool - :param license_type: The license type to apply for this database. Possible - values include: 'LicenseIncluded', 'BasePrice' + :param license_type: The license type to apply for this database. + `LicenseIncluded` if you need a license, or `BasePrice` if you have a + license and are eligible for the Azure Hybrid Benefit. Possible values + include: 'LicenseIncluded', 'BasePrice' :type license_type: str or ~azure.mgmt.sql.models.DatabaseLicenseType :ivar max_log_size_bytes: The max log size for this database. :vartype max_log_size_bytes: long @@ -2671,8 +2684,17 @@ class ExtendedDatabaseBlobAuditingPolicy(ProxyResource): storageEndpoint or isAzureMonitorTargetEnabled is required. :type storage_endpoint: str :param storage_account_access_key: Specifies the identifier key of the - auditing storage account. If state is Enabled and storageEndpoint is - specified, storageAccountAccessKey is required. + auditing storage account. + If state is Enabled and storageEndpoint is specified, not specifying the + storageAccountAccessKey will use SQL server system-assigned managed + identity to access the storage. + Prerequisites for using managed identity authentication: + 1. Assign SQL Server a system-assigned managed identity in Azure Active + Directory (AAD). + 2. Grant SQL Server identity access to the storage account by adding + 'Storage Blob Data Contributor' RBAC role to the server identity. + For more information, see [Auditing to storage using Managed Identity + authentication](https://go.microsoft.com/fwlink/?linkid=2114355) :type storage_account_access_key: str :param retention_days: Specifies the number of days to keep in the audit logs in the storage account. @@ -2831,8 +2853,17 @@ class ExtendedServerBlobAuditingPolicy(ProxyResource): storageEndpoint or isAzureMonitorTargetEnabled is required. :type storage_endpoint: str :param storage_account_access_key: Specifies the identifier key of the - auditing storage account. If state is Enabled and storageEndpoint is - specified, storageAccountAccessKey is required. + auditing storage account. + If state is Enabled and storageEndpoint is specified, not specifying the + storageAccountAccessKey will use SQL server system-assigned managed + identity to access the storage. + Prerequisites for using managed identity authentication: + 1. Assign SQL Server a system-assigned managed identity in Azure Active + Directory (AAD). + 2. Grant SQL Server identity access to the storage account by adding + 'Storage Blob Data Contributor' RBAC role to the server identity. + For more information, see [Auditing to storage using Managed Identity + authentication](https://go.microsoft.com/fwlink/?linkid=2114355) :type storage_account_access_key: str :param retention_days: Specifies the number of days to keep in the audit logs in the storage account. @@ -4680,9 +4711,11 @@ class ManagedDatabase(TrackedResource): from external backup files. Collation, StorageContainerUri and StorageContainerSasToken must be specified. Recovery: Creates a database by restoring a geo-replicated backup. RecoverableDatabaseId must be - specified as the recoverable database resource ID to restore. Possible - values include: 'Default', 'RestoreExternalBackup', 'PointInTimeRestore', - 'Recovery', 'RestoreLongTermRetentionBackup' + specified as the recoverable database resource ID to restore. + RestoreLongTermRetentionBackup: Create a database by restoring from a long + term retention backup (longTermRetentionBackupResourceId required). + Possible values include: 'Default', 'RestoreExternalBackup', + 'PointInTimeRestore', 'Recovery', 'RestoreLongTermRetentionBackup' :type create_mode: str or ~azure.mgmt.sql.models.ManagedDatabaseCreateMode :param storage_container_uri: Conditional. If createMode is RestoreExternalBackup, this value is required. Specifies the uri of the @@ -4953,9 +4986,11 @@ class ManagedDatabaseUpdate(Model): from external backup files. Collation, StorageContainerUri and StorageContainerSasToken must be specified. Recovery: Creates a database by restoring a geo-replicated backup. RecoverableDatabaseId must be - specified as the recoverable database resource ID to restore. Possible - values include: 'Default', 'RestoreExternalBackup', 'PointInTimeRestore', - 'Recovery', 'RestoreLongTermRetentionBackup' + specified as the recoverable database resource ID to restore. + RestoreLongTermRetentionBackup: Create a database by restoring from a long + term retention backup (longTermRetentionBackupResourceId required). + Possible values include: 'Default', 'RestoreExternalBackup', + 'PointInTimeRestore', 'Recovery', 'RestoreLongTermRetentionBackup' :type create_mode: str or ~azure.mgmt.sql.models.ManagedDatabaseCreateMode :param storage_container_uri: Conditional. If createMode is RestoreExternalBackup, this value is required. Specifies the uri of the @@ -5125,6 +5160,9 @@ class ManagedInstance(TrackedResource): :param instance_pool_id: The Id of the instance pool this managed server belongs to. :type instance_pool_id: str + :param maintenance_configuration_id: Specifies maintenance configuration + id to apply to this managed instance. + :type maintenance_configuration_id: str :param minimal_tls_version: Minimal TLS version. Allowed values: 'None', '1.0', '1.1', '1.2' :type minimal_tls_version: str @@ -5166,10 +5204,11 @@ class ManagedInstance(TrackedResource): 'proxy_override': {'key': 'properties.proxyOverride', 'type': 'str'}, 'timezone_id': {'key': 'properties.timezoneId', 'type': 'str'}, 'instance_pool_id': {'key': 'properties.instancePoolId', 'type': 'str'}, + 'maintenance_configuration_id': {'key': 'properties.maintenanceConfigurationId', 'type': 'str'}, 'minimal_tls_version': {'key': 'properties.minimalTlsVersion', 'type': 'str'}, } - def __init__(self, *, location: str, tags=None, identity=None, sku=None, managed_instance_create_mode=None, administrator_login: str=None, administrator_login_password: str=None, subnet_id: str=None, license_type=None, v_cores: int=None, storage_size_in_gb: int=None, collation: str=None, dns_zone_partner: str=None, public_data_endpoint_enabled: bool=None, source_managed_instance_id: str=None, restore_point_in_time=None, proxy_override=None, timezone_id: str=None, instance_pool_id: str=None, minimal_tls_version: str=None, **kwargs) -> None: + def __init__(self, *, location: str, tags=None, identity=None, sku=None, managed_instance_create_mode=None, administrator_login: str=None, administrator_login_password: str=None, subnet_id: str=None, license_type=None, v_cores: int=None, storage_size_in_gb: int=None, collation: str=None, dns_zone_partner: str=None, public_data_endpoint_enabled: bool=None, source_managed_instance_id: str=None, restore_point_in_time=None, proxy_override=None, timezone_id: str=None, instance_pool_id: str=None, maintenance_configuration_id: str=None, minimal_tls_version: str=None, **kwargs) -> None: super(ManagedInstance, self).__init__(location=location, tags=tags, **kwargs) self.identity = identity self.sku = sku @@ -5191,6 +5230,7 @@ def __init__(self, *, location: str, tags=None, identity=None, sku=None, managed self.proxy_override = proxy_override self.timezone_id = timezone_id self.instance_pool_id = instance_pool_id + self.maintenance_configuration_id = maintenance_configuration_id self.minimal_tls_version = minimal_tls_version @@ -5766,6 +5806,9 @@ class ManagedInstanceUpdate(Model): :param instance_pool_id: The Id of the instance pool this managed server belongs to. :type instance_pool_id: str + :param maintenance_configuration_id: Specifies maintenance configuration + id to apply to this managed instance. + :type maintenance_configuration_id: str :param minimal_tls_version: Minimal TLS version. Allowed values: 'None', '1.0', '1.1', '1.2' :type minimal_tls_version: str @@ -5799,11 +5842,12 @@ class ManagedInstanceUpdate(Model): 'proxy_override': {'key': 'properties.proxyOverride', 'type': 'str'}, 'timezone_id': {'key': 'properties.timezoneId', 'type': 'str'}, 'instance_pool_id': {'key': 'properties.instancePoolId', 'type': 'str'}, + 'maintenance_configuration_id': {'key': 'properties.maintenanceConfigurationId', 'type': 'str'}, 'minimal_tls_version': {'key': 'properties.minimalTlsVersion', 'type': 'str'}, 'tags': {'key': 'tags', 'type': '{str}'}, } - def __init__(self, *, sku=None, managed_instance_create_mode=None, administrator_login: str=None, administrator_login_password: str=None, subnet_id: str=None, license_type=None, v_cores: int=None, storage_size_in_gb: int=None, collation: str=None, dns_zone_partner: str=None, public_data_endpoint_enabled: bool=None, source_managed_instance_id: str=None, restore_point_in_time=None, proxy_override=None, timezone_id: str=None, instance_pool_id: str=None, minimal_tls_version: str=None, tags=None, **kwargs) -> None: + def __init__(self, *, sku=None, managed_instance_create_mode=None, administrator_login: str=None, administrator_login_password: str=None, subnet_id: str=None, license_type=None, v_cores: int=None, storage_size_in_gb: int=None, collation: str=None, dns_zone_partner: str=None, public_data_endpoint_enabled: bool=None, source_managed_instance_id: str=None, restore_point_in_time=None, proxy_override=None, timezone_id: str=None, instance_pool_id: str=None, maintenance_configuration_id: str=None, minimal_tls_version: str=None, tags=None, **kwargs) -> None: super(ManagedInstanceUpdate, self).__init__(**kwargs) self.sku = sku self.managed_instance_create_mode = managed_instance_create_mode @@ -5824,6 +5868,7 @@ def __init__(self, *, sku=None, managed_instance_create_mode=None, administrator self.proxy_override = proxy_override self.timezone_id = timezone_id self.instance_pool_id = instance_pool_id + self.maintenance_configuration_id = maintenance_configuration_id self.minimal_tls_version = minimal_tls_version self.tags = tags @@ -7778,8 +7823,17 @@ class ServerBlobAuditingPolicy(ProxyResource): storageEndpoint or isAzureMonitorTargetEnabled is required. :type storage_endpoint: str :param storage_account_access_key: Specifies the identifier key of the - auditing storage account. If state is Enabled and storageEndpoint is - specified, storageAccountAccessKey is required. + auditing storage account. + If state is Enabled and storageEndpoint is specified, not specifying the + storageAccountAccessKey will use SQL server system-assigned managed + identity to access the storage. + Prerequisites for using managed identity authentication: + 1. Assign SQL Server a system-assigned managed identity in Azure Active + Directory (AAD). + 2. Grant SQL Server identity access to the storage account by adding + 'Storage Blob Data Contributor' RBAC role to the server identity. + For more information, see [Auditing to storage using Managed Identity + authentication](https://go.microsoft.com/fwlink/?linkid=2114355) :type storage_account_access_key: str :param retention_days: Specifies the number of days to keep in the audit logs in the storage account. @@ -9251,6 +9305,9 @@ class SyncGroup(ProxyResource): :vartype sync_state: str or ~azure.mgmt.sql.models.SyncGroupState :param schema: Sync schema of the sync group. :type schema: ~azure.mgmt.sql.models.SyncGroupSchema + :param use_private_link_connection: If use private link connection is + enabled. + :type use_private_link_connection: bool """ _validation = { @@ -9273,9 +9330,10 @@ class SyncGroup(ProxyResource): 'hub_database_password': {'key': 'properties.hubDatabasePassword', 'type': 'str'}, 'sync_state': {'key': 'properties.syncState', 'type': 'str'}, 'schema': {'key': 'properties.schema', 'type': 'SyncGroupSchema'}, + 'use_private_link_connection': {'key': 'properties.usePrivateLinkConnection', 'type': 'bool'}, } - def __init__(self, *, interval: int=None, conflict_resolution_policy=None, sync_database_id: str=None, hub_database_user_name: str=None, hub_database_password: str=None, schema=None, **kwargs) -> None: + def __init__(self, *, interval: int=None, conflict_resolution_policy=None, sync_database_id: str=None, hub_database_user_name: str=None, hub_database_password: str=None, schema=None, use_private_link_connection: bool=None, **kwargs) -> None: super(SyncGroup, self).__init__(**kwargs) self.interval = interval self.last_sync_time = None @@ -9285,6 +9343,7 @@ def __init__(self, *, interval: int=None, conflict_resolution_policy=None, sync_ self.hub_database_password = hub_database_password self.sync_state = None self.schema = schema + self.use_private_link_connection = use_private_link_connection class SyncGroupLogProperties(Model): @@ -9421,6 +9480,12 @@ class SyncMember(ProxyResource): :type sync_agent_id: str :param sql_server_database_id: SQL Server database id of the sync member. :type sql_server_database_id: str + :param sync_member_azure_database_resource_id: ARM resource id of the sync + member logical database, for sync members in Azure. + :type sync_member_azure_database_resource_id: str + :param use_private_link_connection: Whether to use private link + connection. + :type use_private_link_connection: bool :param server_name: Server name of the member database in the sync member :type server_name: str :param database_name: Database name of the member database in the sync @@ -9457,6 +9522,8 @@ class SyncMember(ProxyResource): 'database_type': {'key': 'properties.databaseType', 'type': 'str'}, 'sync_agent_id': {'key': 'properties.syncAgentId', 'type': 'str'}, 'sql_server_database_id': {'key': 'properties.sqlServerDatabaseId', 'type': 'str'}, + 'sync_member_azure_database_resource_id': {'key': 'properties.syncMemberAzureDatabaseResourceId', 'type': 'str'}, + 'use_private_link_connection': {'key': 'properties.usePrivateLinkConnection', 'type': 'bool'}, 'server_name': {'key': 'properties.serverName', 'type': 'str'}, 'database_name': {'key': 'properties.databaseName', 'type': 'str'}, 'user_name': {'key': 'properties.userName', 'type': 'str'}, @@ -9465,11 +9532,13 @@ class SyncMember(ProxyResource): 'sync_state': {'key': 'properties.syncState', 'type': 'str'}, } - def __init__(self, *, database_type=None, sync_agent_id: str=None, sql_server_database_id: str=None, server_name: str=None, database_name: str=None, user_name: str=None, password: str=None, sync_direction=None, **kwargs) -> None: + def __init__(self, *, database_type=None, sync_agent_id: str=None, sql_server_database_id: str=None, sync_member_azure_database_resource_id: str=None, use_private_link_connection: bool=None, server_name: str=None, database_name: str=None, user_name: str=None, password: str=None, sync_direction=None, **kwargs) -> None: super(SyncMember, self).__init__(**kwargs) self.database_type = database_type self.sync_agent_id = sync_agent_id self.sql_server_database_id = sql_server_database_id + self.sync_member_azure_database_resource_id = sync_member_azure_database_resource_id + self.use_private_link_connection = use_private_link_connection self.server_name = server_name self.database_name = database_name self.user_name = user_name @@ -9609,6 +9678,23 @@ def __init__(self, **kwargs) -> None: self.percent_complete = None +class UnlinkParameters(Model): + """Represents the parameters for Unlink Replication Link request. + + :param forced_termination: Determines whether link will be terminated in a + forced or a friendly way. + :type forced_termination: bool + """ + + _attribute_map = { + 'forced_termination': {'key': 'forcedTermination', 'type': 'bool'}, + } + + def __init__(self, *, forced_termination: bool=None, **kwargs) -> None: + super(UnlinkParameters, self).__init__(**kwargs) + self.forced_termination = forced_termination + + class Usage(Model): """ARM usage. diff --git a/sdk/sql/azure-mgmt-sql/azure/mgmt/sql/models/_paged_models.py b/sdk/sql/azure-mgmt-sql/azure/mgmt/sql/models/_paged_models.py index a4d68805b28f..62947ee575a3 100644 --- a/sdk/sql/azure-mgmt-sql/azure/mgmt/sql/models/_paged_models.py +++ b/sdk/sql/azure-mgmt-sql/azure/mgmt/sql/models/_paged_models.py @@ -350,110 +350,71 @@ class SyncAgentLinkedDatabasePaged(Paged): def __init__(self, *args, **kwargs): super(SyncAgentLinkedDatabasePaged, self).__init__(*args, **kwargs) -class SyncDatabaseIdPropertiesPaged(Paged): - """ - A paging container for iterating over a list of :class:`SyncDatabaseIdProperties ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[SyncDatabaseIdProperties]'} - } - - def __init__(self, *args, **kwargs): - - super(SyncDatabaseIdPropertiesPaged, self).__init__(*args, **kwargs) -class SyncFullSchemaPropertiesPaged(Paged): - """ - A paging container for iterating over a list of :class:`SyncFullSchemaProperties ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[SyncFullSchemaProperties]'} - } - - def __init__(self, *args, **kwargs): - - super(SyncFullSchemaPropertiesPaged, self).__init__(*args, **kwargs) -class SyncGroupLogPropertiesPaged(Paged): - """ - A paging container for iterating over a list of :class:`SyncGroupLogProperties ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[SyncGroupLogProperties]'} - } - - def __init__(self, *args, **kwargs): - - super(SyncGroupLogPropertiesPaged, self).__init__(*args, **kwargs) -class SyncGroupPaged(Paged): +class SubscriptionUsagePaged(Paged): """ - A paging container for iterating over a list of :class:`SyncGroup ` object + A paging container for iterating over a list of :class:`SubscriptionUsage ` object """ _attribute_map = { 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[SyncGroup]'} + 'current_page': {'key': 'value', 'type': '[SubscriptionUsage]'} } def __init__(self, *args, **kwargs): - super(SyncGroupPaged, self).__init__(*args, **kwargs) -class SyncMemberPaged(Paged): + super(SubscriptionUsagePaged, self).__init__(*args, **kwargs) +class VirtualClusterPaged(Paged): """ - A paging container for iterating over a list of :class:`SyncMember ` object + A paging container for iterating over a list of :class:`VirtualCluster ` object """ _attribute_map = { 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[SyncMember]'} + 'current_page': {'key': 'value', 'type': '[VirtualCluster]'} } def __init__(self, *args, **kwargs): - super(SyncMemberPaged, self).__init__(*args, **kwargs) -class SubscriptionUsagePaged(Paged): + super(VirtualClusterPaged, self).__init__(*args, **kwargs) +class VirtualNetworkRulePaged(Paged): """ - A paging container for iterating over a list of :class:`SubscriptionUsage ` object + A paging container for iterating over a list of :class:`VirtualNetworkRule ` object """ _attribute_map = { 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[SubscriptionUsage]'} + 'current_page': {'key': 'value', 'type': '[VirtualNetworkRule]'} } def __init__(self, *args, **kwargs): - super(SubscriptionUsagePaged, self).__init__(*args, **kwargs) -class VirtualClusterPaged(Paged): + super(VirtualNetworkRulePaged, self).__init__(*args, **kwargs) +class ExtendedDatabaseBlobAuditingPolicyPaged(Paged): """ - A paging container for iterating over a list of :class:`VirtualCluster ` object + A paging container for iterating over a list of :class:`ExtendedDatabaseBlobAuditingPolicy ` object """ _attribute_map = { 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[VirtualCluster]'} + 'current_page': {'key': 'value', 'type': '[ExtendedDatabaseBlobAuditingPolicy]'} } def __init__(self, *args, **kwargs): - super(VirtualClusterPaged, self).__init__(*args, **kwargs) -class VirtualNetworkRulePaged(Paged): + super(ExtendedDatabaseBlobAuditingPolicyPaged, self).__init__(*args, **kwargs) +class ExtendedServerBlobAuditingPolicyPaged(Paged): """ - A paging container for iterating over a list of :class:`VirtualNetworkRule ` object + A paging container for iterating over a list of :class:`ExtendedServerBlobAuditingPolicy ` object """ _attribute_map = { 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[VirtualNetworkRule]'} + 'current_page': {'key': 'value', 'type': '[ExtendedServerBlobAuditingPolicy]'} } def __init__(self, *args, **kwargs): - super(VirtualNetworkRulePaged, self).__init__(*args, **kwargs) + super(ExtendedServerBlobAuditingPolicyPaged, self).__init__(*args, **kwargs) class ServerBlobAuditingPolicyPaged(Paged): """ A paging container for iterating over a list of :class:`ServerBlobAuditingPolicy ` object @@ -1013,3 +974,68 @@ class ManagedInstanceOperationPaged(Paged): def __init__(self, *args, **kwargs): super(ManagedInstanceOperationPaged, self).__init__(*args, **kwargs) +class SyncDatabaseIdPropertiesPaged(Paged): + """ + A paging container for iterating over a list of :class:`SyncDatabaseIdProperties ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[SyncDatabaseIdProperties]'} + } + + def __init__(self, *args, **kwargs): + + super(SyncDatabaseIdPropertiesPaged, self).__init__(*args, **kwargs) +class SyncFullSchemaPropertiesPaged(Paged): + """ + A paging container for iterating over a list of :class:`SyncFullSchemaProperties ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[SyncFullSchemaProperties]'} + } + + def __init__(self, *args, **kwargs): + + super(SyncFullSchemaPropertiesPaged, self).__init__(*args, **kwargs) +class SyncGroupLogPropertiesPaged(Paged): + """ + A paging container for iterating over a list of :class:`SyncGroupLogProperties ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[SyncGroupLogProperties]'} + } + + def __init__(self, *args, **kwargs): + + super(SyncGroupLogPropertiesPaged, self).__init__(*args, **kwargs) +class SyncGroupPaged(Paged): + """ + A paging container for iterating over a list of :class:`SyncGroup ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[SyncGroup]'} + } + + def __init__(self, *args, **kwargs): + + super(SyncGroupPaged, self).__init__(*args, **kwargs) +class SyncMemberPaged(Paged): + """ + A paging container for iterating over a list of :class:`SyncMember ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[SyncMember]'} + } + + def __init__(self, *args, **kwargs): + + super(SyncMemberPaged, self).__init__(*args, **kwargs) 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 05e8fd0e5e2b..70e7a417cdfe 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 @@ -338,58 +338,6 @@ class SyncMemberDbType(str, Enum): sql_server_database = "SqlServerDatabase" -class SyncGroupLogType(str, Enum): - - all = "All" - error = "Error" - warning = "Warning" - success = "Success" - - -class SyncConflictResolutionPolicy(str, Enum): - - hub_win = "HubWin" - member_win = "MemberWin" - - -class SyncGroupState(str, Enum): - - not_ready = "NotReady" - error = "Error" - warning = "Warning" - progressing = "Progressing" - good = "Good" - - -class SyncDirection(str, Enum): - - bidirectional = "Bidirectional" - one_way_member_to_hub = "OneWayMemberToHub" - one_way_hub_to_member = "OneWayHubToMember" - - -class SyncMemberState(str, Enum): - - sync_in_progress = "SyncInProgress" - sync_succeeded = "SyncSucceeded" - sync_failed = "SyncFailed" - disabled_tombstone_cleanup = "DisabledTombstoneCleanup" - disabled_backup_restore = "DisabledBackupRestore" - sync_succeeded_with_warnings = "SyncSucceededWithWarnings" - sync_cancelling = "SyncCancelling" - sync_cancelled = "SyncCancelled" - un_provisioned = "UnProvisioned" - provisioning = "Provisioning" - provisioned = "Provisioned" - provision_failed = "ProvisionFailed" - de_provisioning = "DeProvisioning" - de_provisioned = "DeProvisioned" - de_provision_failed = "DeProvisionFailed" - reprovisioning = "Reprovisioning" - reprovision_failed = "ReprovisionFailed" - un_reprovisioned = "UnReprovisioned" - - class VirtualNetworkRuleState(str, Enum): initializing = "Initializing" @@ -729,6 +677,58 @@ class ManagedDatabaseCreateMode(str, Enum): restore_long_term_retention_backup = "RestoreLongTermRetentionBackup" +class SyncGroupLogType(str, Enum): + + all = "All" + error = "Error" + warning = "Warning" + success = "Success" + + +class SyncConflictResolutionPolicy(str, Enum): + + hub_win = "HubWin" + member_win = "MemberWin" + + +class SyncGroupState(str, Enum): + + not_ready = "NotReady" + error = "Error" + warning = "Warning" + progressing = "Progressing" + good = "Good" + + +class SyncDirection(str, Enum): + + bidirectional = "Bidirectional" + one_way_member_to_hub = "OneWayMemberToHub" + one_way_hub_to_member = "OneWayHubToMember" + + +class SyncMemberState(str, Enum): + + sync_in_progress = "SyncInProgress" + sync_succeeded = "SyncSucceeded" + sync_failed = "SyncFailed" + disabled_tombstone_cleanup = "DisabledTombstoneCleanup" + disabled_backup_restore = "DisabledBackupRestore" + sync_succeeded_with_warnings = "SyncSucceededWithWarnings" + sync_cancelling = "SyncCancelling" + sync_cancelled = "SyncCancelled" + un_provisioned = "UnProvisioned" + provisioning = "Provisioning" + provisioned = "Provisioned" + provision_failed = "ProvisionFailed" + de_provisioning = "DeProvisioning" + de_provisioned = "DeProvisioned" + de_provision_failed = "DeProvisionFailed" + reprovisioning = "Reprovisioning" + reprovision_failed = "ReprovisionFailed" + un_reprovisioned = "UnReprovisioned" + + class LongTermRetentionDatabaseState(str, Enum): all = "All" diff --git a/sdk/sql/azure-mgmt-sql/azure/mgmt/sql/operations/__init__.py b/sdk/sql/azure-mgmt-sql/azure/mgmt/sql/operations/__init__.py index 62955cff2c6b..9dc1718f5420 100644 --- a/sdk/sql/azure-mgmt-sql/azure/mgmt/sql/operations/__init__.py +++ b/sdk/sql/azure-mgmt-sql/azure/mgmt/sql/operations/__init__.py @@ -36,8 +36,6 @@ from ._operations import Operations from ._server_keys_operations import ServerKeysOperations from ._sync_agents_operations import SyncAgentsOperations -from ._sync_groups_operations import SyncGroupsOperations -from ._sync_members_operations import SyncMembersOperations from ._subscription_usages_operations import SubscriptionUsagesOperations from ._virtual_clusters_operations import VirtualClustersOperations from ._virtual_network_rules_operations import VirtualNetworkRulesOperations @@ -100,6 +98,8 @@ from ._managed_databases_operations import ManagedDatabasesOperations from ._server_azure_ad_administrators_operations import ServerAzureADAdministratorsOperations from ._managed_instance_operations import ManagedInstanceOperations +from ._sync_groups_operations import SyncGroupsOperations +from ._sync_members_operations import SyncMembersOperations __all__ = [ 'RecoverableDatabasesOperations', @@ -129,8 +129,6 @@ 'Operations', 'ServerKeysOperations', 'SyncAgentsOperations', - 'SyncGroupsOperations', - 'SyncMembersOperations', 'SubscriptionUsagesOperations', 'VirtualClustersOperations', 'VirtualNetworkRulesOperations', @@ -193,4 +191,6 @@ 'ManagedDatabasesOperations', 'ServerAzureADAdministratorsOperations', 'ManagedInstanceOperations', + 'SyncGroupsOperations', + 'SyncMembersOperations', ] diff --git a/sdk/sql/azure-mgmt-sql/azure/mgmt/sql/operations/_extended_database_blob_auditing_policies_operations.py b/sdk/sql/azure-mgmt-sql/azure/mgmt/sql/operations/_extended_database_blob_auditing_policies_operations.py index ea9c9d8d7aaf..8603d99a6acd 100644 --- a/sdk/sql/azure-mgmt-sql/azure/mgmt/sql/operations/_extended_database_blob_auditing_policies_operations.py +++ b/sdk/sql/azure-mgmt-sql/azure/mgmt/sql/operations/_extended_database_blob_auditing_policies_operations.py @@ -185,3 +185,81 @@ def create_or_update( return deserialized create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/extendedAuditingSettings/{blobAuditingPolicyName}'} + + def list_by_database( + self, resource_group_name, server_name, database_name, custom_headers=None, raw=False, **operation_config): + """Lists extended auditing settings of 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 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 + ExtendedDatabaseBlobAuditingPolicy + :rtype: + ~azure.mgmt.sql.models.ExtendedDatabaseBlobAuditingPolicyPaged[~azure.mgmt.sql.models.ExtendedDatabaseBlobAuditingPolicy] + :raises: :class:`CloudError` + """ + def prepare_request(next_link=None): + if not next_link: + # Construct URL + url = self.list_by_database.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("self.api_version", self.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.ExtendedDatabaseBlobAuditingPolicyPaged(internal_paging, self._deserialize.dependencies, header_dict) + + return deserialized + list_by_database.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/extendedAuditingSettings'} diff --git a/sdk/sql/azure-mgmt-sql/azure/mgmt/sql/operations/_extended_server_blob_auditing_policies_operations.py b/sdk/sql/azure-mgmt-sql/azure/mgmt/sql/operations/_extended_server_blob_auditing_policies_operations.py index dff8fac62031..728bf1c26c9d 100644 --- a/sdk/sql/azure-mgmt-sql/azure/mgmt/sql/operations/_extended_server_blob_auditing_policies_operations.py +++ b/sdk/sql/azure-mgmt-sql/azure/mgmt/sql/operations/_extended_server_blob_auditing_policies_operations.py @@ -212,3 +212,77 @@ def get_long_running_output(response): else: polling_method = polling return LROPoller(self._client, raw_result, get_long_running_output, polling_method) create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/extendedAuditingSettings/{blobAuditingPolicyName}'} + + def list_by_server( + self, resource_group_name, server_name, custom_headers=None, raw=False, **operation_config): + """Lists extended auditing settings of a 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 ExtendedServerBlobAuditingPolicy + :rtype: + ~azure.mgmt.sql.models.ExtendedServerBlobAuditingPolicyPaged[~azure.mgmt.sql.models.ExtendedServerBlobAuditingPolicy] + :raises: :class:`CloudError` + """ + def prepare_request(next_link=None): + if not next_link: + # Construct URL + url = self.list_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("self.api_version", self.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.ExtendedServerBlobAuditingPolicyPaged(internal_paging, self._deserialize.dependencies, header_dict) + + return deserialized + list_by_server.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/extendedAuditingSettings'} diff --git a/sdk/sql/azure-mgmt-sql/azure/mgmt/sql/operations/_managed_instances_operations.py b/sdk/sql/azure-mgmt-sql/azure/mgmt/sql/operations/_managed_instances_operations.py index c1cb3d973264..2e49de1ea356 100644 --- a/sdk/sql/azure-mgmt-sql/azure/mgmt/sql/operations/_managed_instances_operations.py +++ b/sdk/sql/azure-mgmt-sql/azure/mgmt/sql/operations/_managed_instances_operations.py @@ -27,7 +27,6 @@ class ManagedInstancesOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: The API version to use for the request. Constant value: "2018-06-01-preview". """ models = models @@ -37,7 +36,6 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2018-06-01-preview" self.config = config @@ -61,6 +59,8 @@ def list_by_instance_pool( ~azure.mgmt.sql.models.ManagedInstancePaged[~azure.mgmt.sql.models.ManagedInstance] :raises: :class:`CloudError` """ + api_version = "2018-06-01-preview" + def prepare_request(next_link=None): if not next_link: # Construct URL @@ -74,7 +74,7 @@ def prepare_request(next_link=None): # Construct parameters query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') else: url = next_link @@ -133,6 +133,8 @@ def list_by_resource_group( ~azure.mgmt.sql.models.ManagedInstancePaged[~azure.mgmt.sql.models.ManagedInstance] :raises: :class:`CloudError` """ + api_version = "2018-06-01-preview" + def prepare_request(next_link=None): if not next_link: # Construct URL @@ -145,7 +147,7 @@ def prepare_request(next_link=None): # Construct parameters query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') else: url = next_link @@ -206,6 +208,8 @@ def get( ~msrest.pipeline.ClientRawResponse :raises: :class:`CloudError` """ + api_version = "2018-06-01-preview" + # Construct URL url = self.get.metadata['url'] path_format_arguments = { @@ -217,7 +221,7 @@ def get( # Construct parameters query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') # Construct headers header_parameters = {} @@ -252,6 +256,8 @@ def get( def _create_or_update_initial( self, resource_group_name, managed_instance_name, parameters, custom_headers=None, raw=False, **operation_config): + api_version = "2018-06-01-preview" + # Construct URL url = self.create_or_update.metadata['url'] path_format_arguments = { @@ -263,7 +269,7 @@ def _create_or_update_initial( # Construct parameters query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') # Construct headers header_parameters = {} @@ -356,6 +362,8 @@ def get_long_running_output(response): def _delete_initial( self, resource_group_name, managed_instance_name, custom_headers=None, raw=False, **operation_config): + api_version = "2018-06-01-preview" + # Construct URL url = self.delete.metadata['url'] path_format_arguments = { @@ -367,7 +375,7 @@ def _delete_initial( # Construct parameters query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') # Construct headers header_parameters = {} @@ -437,6 +445,8 @@ def get_long_running_output(response): def _update_initial( self, resource_group_name, managed_instance_name, parameters, custom_headers=None, raw=False, **operation_config): + api_version = "2018-06-01-preview" + # Construct URL url = self.update.metadata['url'] path_format_arguments = { @@ -448,7 +458,7 @@ def _update_initial( # Construct parameters query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') # Construct headers header_parameters = {} @@ -550,6 +560,8 @@ def list( ~azure.mgmt.sql.models.ManagedInstancePaged[~azure.mgmt.sql.models.ManagedInstance] :raises: :class:`CloudError` """ + api_version = "2018-06-01-preview" + def prepare_request(next_link=None): if not next_link: # Construct URL @@ -561,7 +573,7 @@ def prepare_request(next_link=None): # Construct parameters query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') else: url = next_link @@ -601,3 +613,91 @@ def internal_paging(next_link=None): return deserialized list.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Sql/managedInstances'} + + + def _failover_initial( + self, resource_group_name, managed_instance_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', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), + 'managedInstanceName': self._serialize.url("managed_instance_name", managed_instance_name, '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', min_length=1) + if replica_type is not None: + query_parameters['replicaType'] = self._serialize.query("replica_type", replica_type, '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, managed_instance_name, replica_type=None, custom_headers=None, raw=False, polling=True, **operation_config): + """Failovers a managed instance. + + :param resource_group_name: The name of the resource group. The name + is case insensitive. + :type resource_group_name: str + :param managed_instance_name: The name of the managed instance. + :type managed_instance_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, + managed_instance_name=managed_instance_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/managedInstances/{managedInstanceName}/failover'} diff --git a/sdk/sql/azure-mgmt-sql/azure/mgmt/sql/operations/_replication_links_operations.py b/sdk/sql/azure-mgmt-sql/azure/mgmt/sql/operations/_replication_links_operations.py index bebd9d62e04d..7cb1cad8ec04 100644 --- a/sdk/sql/azure-mgmt-sql/azure/mgmt/sql/operations/_replication_links_operations.py +++ b/sdk/sql/azure-mgmt-sql/azure/mgmt/sql/operations/_replication_links_operations.py @@ -354,6 +354,106 @@ def get_long_running_output(response): return LROPoller(self._client, raw_result, get_long_running_output, polling_method) failover_allow_data_loss.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/replicationLinks/{linkId}/forceFailoverAllowDataLoss'} + + def _unlink_initial( + self, resource_group_name, server_name, database_name, link_id, forced_termination=None, custom_headers=None, raw=False, **operation_config): + parameters = models.UnlinkParameters(forced_termination=forced_termination) + + # Construct URL + url = self.unlink.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), + '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'), + 'linkId': self._serialize.url("link_id", link_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + 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, 'UnlinkParameters') + + # 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 [202, 204]: + 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 unlink( + self, resource_group_name, server_name, database_name, link_id, forced_termination=None, custom_headers=None, raw=False, polling=True, **operation_config): + """Deletes a database replication link in forced or friendly way. + + :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 that has the + replication link to be failed over. + :type database_name: str + :param link_id: The ID of the replication link to be failed over. + :type link_id: str + :param forced_termination: Determines whether link will be terminated + in a forced or a friendly way. + :type forced_termination: bool + :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._unlink_initial( + resource_group_name=resource_group_name, + server_name=server_name, + database_name=database_name, + link_id=link_id, + forced_termination=forced_termination, + 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) + unlink.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/replicationLinks/{linkId}/unlink'} + def list_by_database( self, resource_group_name, server_name, database_name, custom_headers=None, raw=False, **operation_config): """Lists a database's replication links. diff --git a/sdk/sql/azure-mgmt-sql/azure/mgmt/sql/operations/_sync_groups_operations.py b/sdk/sql/azure-mgmt-sql/azure/mgmt/sql/operations/_sync_groups_operations.py index bf78088e717b..398562cffe7e 100644 --- a/sdk/sql/azure-mgmt-sql/azure/mgmt/sql/operations/_sync_groups_operations.py +++ b/sdk/sql/azure-mgmt-sql/azure/mgmt/sql/operations/_sync_groups_operations.py @@ -27,7 +27,7 @@ class SyncGroupsOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: The API version to use for the request. Constant value: "2015-05-01-preview". + :ivar api_version: The API version to use for the request. Constant value: "2019-06-01-preview". """ models = models @@ -37,7 +37,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2015-05-01-preview" + self.api_version = "2019-06-01-preview" self.config = config diff --git a/sdk/sql/azure-mgmt-sql/azure/mgmt/sql/operations/_sync_members_operations.py b/sdk/sql/azure-mgmt-sql/azure/mgmt/sql/operations/_sync_members_operations.py index 23343d374072..3bff27863a9c 100644 --- a/sdk/sql/azure-mgmt-sql/azure/mgmt/sql/operations/_sync_members_operations.py +++ b/sdk/sql/azure-mgmt-sql/azure/mgmt/sql/operations/_sync_members_operations.py @@ -27,7 +27,7 @@ class SyncMembersOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: The API version to use for the request. Constant value: "2015-05-01-preview". + :ivar api_version: The API version to use for the request. Constant value: "2019-06-01-preview". """ models = models @@ -37,7 +37,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2015-05-01-preview" + self.api_version = "2019-06-01-preview" self.config = config diff --git a/sdk/sql/azure-mgmt-sql/setup.py b/sdk/sql/azure-mgmt-sql/setup.py index e6b06f525bc1..97474e8ab13e 100644 --- a/sdk/sql/azure-mgmt-sql/setup.py +++ b/sdk/sql/azure-mgmt-sql/setup.py @@ -36,7 +36,9 @@ pass # Version extraction inspired from 'requests' -with open(os.path.join(package_folder_path, 'version.py'), 'r') as fd: +with open(os.path.join(package_folder_path, 'version.py') + if os.path.exists(os.path.join(package_folder_path, 'version.py')) + else os.path.join(package_folder_path, '_version.py'), 'r') as fd: version = re.search(r'^VERSION\s*=\s*[\'"]([^\'"]*)[\'"]', fd.read(), re.MULTILINE).group(1) From e577bfa29f966cdb09d1f83dbd947b242fa29366 Mon Sep 17 00:00:00 2001 From: Shixun Guan Date: Wed, 24 Jun 2020 13:31:48 +0800 Subject: [PATCH 2/3] update version --- sdk/sql/azure-mgmt-sql/CHANGELOG.md | 18 ++++++++++++++++-- .../azure-mgmt-sql/azure/mgmt/sql/version.py | 2 +- 2 files changed, 17 insertions(+), 3 deletions(-) diff --git a/sdk/sql/azure-mgmt-sql/CHANGELOG.md b/sdk/sql/azure-mgmt-sql/CHANGELOG.md index c965ca202c5a..b3986b916097 100644 --- a/sdk/sql/azure-mgmt-sql/CHANGELOG.md +++ b/sdk/sql/azure-mgmt-sql/CHANGELOG.md @@ -1,12 +1,26 @@ # Release History -# 0.18.0 (2020-03-23) +## 0.19.0 (2020-06-22) + +**Features** + + - Model SyncGroup has a new parameter use_private_link_connection + - Model ManagedInstanceUpdate has a new parameter maintenance_configuration_id + - Model SyncMember has a new parameter use_private_link_connection + - Model SyncMember has a new parameter sync_member_azure_database_resource_id + - Model ManagedInstance has a new parameter maintenance_configuration_id + - Added operation ExtendedDatabaseBlobAuditingPoliciesOperations.list_by_database + - Added operation ManagedInstancesOperations.failover + - Added operation ReplicationLinksOperations.unlink + - Added operation ExtendedServerBlobAuditingPoliciesOperations.list_by_server + +## 0.18.0 (2020-03-23) **Features** - Added operation group ManagedInstanceOperations -# 0.17.0 (2020-03-02) +## 0.17.0 (2020-03-02) **Features** 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 3ac694d43a9a..a7a4ecf6382e 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.18.0" +VERSION = "0.19.0" From a31a6b13a418c1050d00c10938073c7a41c747ce Mon Sep 17 00:00:00 2001 From: Shixun Guan Date: Wed, 24 Jun 2020 13:32:02 +0800 Subject: [PATCH 3/3] update recordings --- .../test_mgmt_sql.test_database.yaml | 102 +++++++------- .../recordings/test_mgmt_sql.test_server.yaml | 131 +++++++++--------- 2 files changed, 117 insertions(+), 116 deletions(-) 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 01ea3850525e..b99ab1e5b477 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 @@ -13,18 +13,18 @@ interactions: Content-Type: - application/json; charset=utf-8 User-Agent: - - python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 - msrest_azure/0.6.2 azure-mgmt-sql/0.17.0 Azure-SDK-For-Python + - python/3.8.2 (Linux-4.19.104-microsoft-standard-x86_64-with-glibc2.29) msrest/0.6.16 + msrest_azure/0.6.3 azure-mgmt-sql/0.19.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=2017-10-01-preview response: body: - string: '{"operation":"CreateLogicalDatabase","startTime":"2020-03-02T13:33:04.687Z"}' + string: '{"operation":"CreateLogicalDatabase","startTime":"2020-06-24T05:29:13.013Z"}' 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/39c5999a-b1a0-4c9b-a845-cd4de64dfb00?api-version=2017-10-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_sql_test_database9c310b06/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/875d61e7-6906-4f27-83a0-6e81c48c35e8?api-version=2017-10-01-preview cache-control: - no-cache content-length: @@ -32,11 +32,11 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 02 Mar 2020 13:33:04 GMT + - Wed, 24 Jun 2020 05:29:12 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/39c5999a-b1a0-4c9b-a845-cd4de64dfb00?api-version=2017-10-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_sql_test_database9c310b06/providers/Microsoft.Sql/locations/westus2/databaseOperationResults/875d61e7-6906-4f27-83a0-6e81c48c35e8?api-version=2017-10-01-preview pragma: - no-cache server: @@ -46,7 +46,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1198' + - '1197' status: code: 202 message: Accepted @@ -60,13 +60,13 @@ interactions: Connection: - keep-alive User-Agent: - - python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 - msrest_azure/0.6.2 azure-mgmt-sql/0.17.0 Azure-SDK-For-Python + - python/3.8.2 (Linux-4.19.104-microsoft-standard-x86_64-with-glibc2.29) msrest/0.6.16 + msrest_azure/0.6.3 azure-mgmt-sql/0.19.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/39c5999a-b1a0-4c9b-a845-cd4de64dfb00?api-version=2017-10-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/875d61e7-6906-4f27-83a0-6e81c48c35e8?api-version=2017-10-01-preview response: body: - string: '{"name":"39c5999a-b1a0-4c9b-a845-cd4de64dfb00","status":"InProgress","startTime":"2020-03-02T13:33:04.687Z"}' + string: '{"name":"875d61e7-6906-4f27-83a0-6e81c48c35e8","status":"InProgress","startTime":"2020-06-24T05:29:13.013Z"}' headers: cache-control: - no-cache @@ -75,7 +75,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 02 Mar 2020 13:33:20 GMT + - Wed, 24 Jun 2020 05:29:28 GMT expires: - '-1' pragma: @@ -103,13 +103,13 @@ interactions: Connection: - keep-alive User-Agent: - - python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 - msrest_azure/0.6.2 azure-mgmt-sql/0.17.0 Azure-SDK-For-Python + - python/3.8.2 (Linux-4.19.104-microsoft-standard-x86_64-with-glibc2.29) msrest/0.6.16 + msrest_azure/0.6.3 azure-mgmt-sql/0.19.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/39c5999a-b1a0-4c9b-a845-cd4de64dfb00?api-version=2017-10-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/875d61e7-6906-4f27-83a0-6e81c48c35e8?api-version=2017-10-01-preview response: body: - string: '{"name":"39c5999a-b1a0-4c9b-a845-cd4de64dfb00","status":"InProgress","startTime":"2020-03-02T13:33:04.687Z"}' + string: '{"name":"875d61e7-6906-4f27-83a0-6e81c48c35e8","status":"InProgress","startTime":"2020-06-24T05:29:13.013Z"}' headers: cache-control: - no-cache @@ -118,7 +118,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 02 Mar 2020 13:33:35 GMT + - Wed, 24 Jun 2020 05:29:43 GMT expires: - '-1' pragma: @@ -146,13 +146,13 @@ interactions: Connection: - keep-alive User-Agent: - - python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 - msrest_azure/0.6.2 azure-mgmt-sql/0.17.0 Azure-SDK-For-Python + - python/3.8.2 (Linux-4.19.104-microsoft-standard-x86_64-with-glibc2.29) msrest/0.6.16 + msrest_azure/0.6.3 azure-mgmt-sql/0.19.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/39c5999a-b1a0-4c9b-a845-cd4de64dfb00?api-version=2017-10-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/875d61e7-6906-4f27-83a0-6e81c48c35e8?api-version=2017-10-01-preview response: body: - string: '{"name":"39c5999a-b1a0-4c9b-a845-cd4de64dfb00","status":"Succeeded","startTime":"2020-03-02T13:33:04.687Z"}' + string: '{"name":"875d61e7-6906-4f27-83a0-6e81c48c35e8","status":"Succeeded","startTime":"2020-06-24T05:29:13.013Z"}' headers: cache-control: - no-cache @@ -161,7 +161,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 02 Mar 2020 13:33:51 GMT + - Wed, 24 Jun 2020 05:29:58 GMT expires: - '-1' pragma: @@ -189,13 +189,13 @@ interactions: Connection: - keep-alive User-Agent: - - python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 - msrest_azure/0.6.2 azure-mgmt-sql/0.17.0 Azure-SDK-For-Python + - python/3.8.2 (Linux-4.19.104-microsoft-standard-x86_64-with-glibc2.29) msrest/0.6.16 + msrest_azure/0.6.3 azure-mgmt-sql/0.19.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=2017-10-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":"6becd766-6365-417b-acec-df8f95cb5aa8","creationDate":"2020-03-02T13:33:41.56Z","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-03-02T14:03:41.56Z","readScale":"Disabled","readReplicaCount":0,"currentSku":{"name":"GP_Gen5","tier":"GeneralPurpose","family":"Gen5","capacity":2}},"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":"887a897f-bb0b-4ef2-a4fa-193a03d39c78","creationDate":"2020-06-24T05:29:49.29Z","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-06-24T05:59:49.29Z","readScale":"Disabled","readReplicaCount":0,"currentSku":{"name":"GP_Gen5","tier":"GeneralPurpose","family":"Gen5","capacity":2}},"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 @@ -204,7 +204,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 02 Mar 2020 13:33:52 GMT + - Wed, 24 Jun 2020 05:29:59 GMT expires: - '-1' pragma: @@ -232,15 +232,15 @@ interactions: Connection: - keep-alive User-Agent: - - python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 - msrest_azure/0.6.2 azure-mgmt-sql/0.17.0 Azure-SDK-For-Python + - python/3.8.2 (Linux-4.19.104-microsoft-standard-x86_64-with-glibc2.29) msrest/0.6.16 + msrest_azure/0.6.3 azure-mgmt-sql/0.19.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=2017-10-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":"6becd766-6365-417b-acec-df8f95cb5aa8","creationDate":"2020-03-02T13:33:41.56Z","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-03-02T14:03:41.56Z","readScale":"Disabled","readReplicaCount":0,"currentSku":{"name":"GP_Gen5","tier":"GeneralPurpose","family":"Gen5","capacity":2}},"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":"887a897f-bb0b-4ef2-a4fa-193a03d39c78","creationDate":"2020-06-24T05:29:49.29Z","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-06-24T05:59:49.29Z","readScale":"Disabled","readReplicaCount":0,"currentSku":{"name":"GP_Gen5","tier":"GeneralPurpose","family":"Gen5","capacity":2}},"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 @@ -249,7 +249,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 02 Mar 2020 13:33:55 GMT + - Wed, 24 Jun 2020 05:29:59 GMT expires: - '-1' pragma: @@ -277,24 +277,24 @@ interactions: Connection: - keep-alive User-Agent: - - python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 - msrest_azure/0.6.2 azure-mgmt-sql/0.17.0 Azure-SDK-For-Python + - python/3.8.2 (Linux-4.19.104-microsoft-standard-x86_64-with-glibc2.29) msrest/0.6.16 + msrest_azure/0.6.3 azure-mgmt-sql/0.19.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=2017-10-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":"5526dc88-5d35-41e4-8c2d-36f8f6d55d9e","creationDate":"2020-03-02T13:32:48.31Z","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}},"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":"6becd766-6365-417b-acec-df8f95cb5aa8","creationDate":"2020-03-02T13:33:41.56Z","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-03-02T14:03:41.56Z","readScale":"Disabled","readReplicaCount":0,"currentSku":{"name":"GP_Gen5","tier":"GeneralPurpose","family":"Gen5","capacity":2}},"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":"04ef4654-d5a8-4fda-bbd2-45d0f3085ec2","creationDate":"2020-06-24T05:29:00.367Z","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}},"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":"887a897f-bb0b-4ef2-a4fa-193a03d39c78","creationDate":"2020-06-24T05:29:49.29Z","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-06-24T05:59:49.29Z","readScale":"Disabled","readReplicaCount":0,"currentSku":{"name":"GP_Gen5","tier":"GeneralPurpose","family":"Gen5","capacity":2}},"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: - - '2037' + - '2038' content-type: - application/json; charset=utf-8 date: - - Mon, 02 Mar 2020 13:33:56 GMT + - Wed, 24 Jun 2020 05:29:59 GMT expires: - '-1' pragma: @@ -322,8 +322,8 @@ interactions: Connection: - keep-alive User-Agent: - - python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 - msrest_azure/0.6.2 azure-mgmt-sql/0.17.0 Azure-SDK-For-Python + - python/3.8.2 (Linux-4.19.104-microsoft-standard-x86_64-with-glibc2.29) msrest/0.6.16 + msrest_azure/0.6.3 azure-mgmt-sql/0.19.0 Azure-SDK-For-Python accept-language: - en-US method: GET @@ -343,7 +343,7 @@ interactions: dataserviceversion: - 3.0; date: - - Mon, 02 Mar 2020 13:33:56 GMT + - Wed, 24 Jun 2020 05:30:00 GMT server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -369,30 +369,30 @@ interactions: Content-Length: - '0' User-Agent: - - python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 - msrest_azure/0.6.2 azure-mgmt-sql/0.17.0 Azure-SDK-For-Python + - python/3.8.2 (Linux-4.19.104-microsoft-standard-x86_64-with-glibc2.29) msrest/0.6.16 + msrest_azure/0.6.3 azure-mgmt-sql/0.19.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=2017-10-01-preview response: body: - string: '{"operation":"DropLogicalDatabase","startTime":"2020-03-02T13:33:58.787Z"}' + string: '{"operation":"DropLogicalDatabase","startTime":"2020-06-24T05:30:01.24Z"}' 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/6a2b2e58-31ae-4055-9f3b-9f23de77b8c2?api-version=2017-10-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_sql_test_database9c310b06/providers/Microsoft.Sql/locations/westus2/databaseAzureAsyncOperation/28a00f10-e880-451d-bf90-8e48eb679524?api-version=2017-10-01-preview cache-control: - no-cache content-length: - - '74' + - '73' content-type: - application/json; charset=utf-8 date: - - Mon, 02 Mar 2020 13:33:57 GMT + - Wed, 24 Jun 2020 05:30:00 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/6a2b2e58-31ae-4055-9f3b-9f23de77b8c2?api-version=2017-10-01-preview + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_sql_test_database9c310b06/providers/Microsoft.Sql/locations/westus2/databaseOperationResults/28a00f10-e880-451d-bf90-8e48eb679524?api-version=2017-10-01-preview pragma: - no-cache server: @@ -416,22 +416,22 @@ interactions: Connection: - keep-alive User-Agent: - - python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 - msrest_azure/0.6.2 azure-mgmt-sql/0.17.0 Azure-SDK-For-Python + - python/3.8.2 (Linux-4.19.104-microsoft-standard-x86_64-with-glibc2.29) msrest/0.6.16 + msrest_azure/0.6.3 azure-mgmt-sql/0.19.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/6a2b2e58-31ae-4055-9f3b-9f23de77b8c2?api-version=2017-10-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/28a00f10-e880-451d-bf90-8e48eb679524?api-version=2017-10-01-preview response: body: - string: '{"name":"6a2b2e58-31ae-4055-9f3b-9f23de77b8c2","status":"Succeeded","startTime":"2020-03-02T13:33:58.787Z"}' + string: '{"name":"28a00f10-e880-451d-bf90-8e48eb679524","status":"Succeeded","startTime":"2020-06-24T05:30:01.24Z"}' headers: cache-control: - no-cache content-length: - - '107' + - '106' content-type: - application/json; charset=utf-8 date: - - Mon, 02 Mar 2020 13:34:15 GMT + - Wed, 24 Jun 2020 05:30:16 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 e47b282647b0..03080c7ffb64 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 @@ -14,18 +14,18 @@ interactions: Content-Type: - application/json; charset=utf-8 User-Agent: - - python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 - msrest_azure/0.6.2 azure-mgmt-sql/0.17.0 Azure-SDK-For-Python + - python/3.8.2 (Linux-4.19.104-microsoft-standard-x86_64-with-glibc2.29) msrest/0.6.16 + msrest_azure/0.6.3 azure-mgmt-sql/0.19.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-03-02T13:34:32.117Z"}' + string: '{"operation":"UpsertLogicalServer","startTime":"2020-06-24T05:30:28.983Z"}' 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/554e9ab2-cc46-4b6e-a7e1-ca8d93e3c8c3?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/1fc269fe-c787-44fb-b07b-f76b9bf5b146?api-version=2019-06-01-preview cache-control: - no-cache content-length: @@ -33,11 +33,11 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 02 Mar 2020 13:34:32 GMT + - Wed, 24 Jun 2020 05:30:28 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/554e9ab2-cc46-4b6e-a7e1-ca8d93e3c8c3?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/1fc269fe-c787-44fb-b07b-f76b9bf5b146?api-version=2019-06-01-preview pragma: - no-cache server: @@ -61,13 +61,13 @@ interactions: Connection: - keep-alive User-Agent: - - python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 - msrest_azure/0.6.2 azure-mgmt-sql/0.17.0 Azure-SDK-For-Python + - python/3.8.2 (Linux-4.19.104-microsoft-standard-x86_64-with-glibc2.29) msrest/0.6.16 + msrest_azure/0.6.3 azure-mgmt-sql/0.19.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/554e9ab2-cc46-4b6e-a7e1-ca8d93e3c8c3?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/1fc269fe-c787-44fb-b07b-f76b9bf5b146?api-version=2019-06-01-preview response: body: - string: '{"name":"554e9ab2-cc46-4b6e-a7e1-ca8d93e3c8c3","status":"InProgress","startTime":"2020-03-02T13:34:32.117Z"}' + string: '{"name":"1fc269fe-c787-44fb-b07b-f76b9bf5b146","status":"InProgress","startTime":"2020-06-24T05:30:28.983Z"}' headers: cache-control: - no-cache @@ -76,7 +76,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 02 Mar 2020 13:34:34 GMT + - Wed, 24 Jun 2020 05:30:29 GMT expires: - '-1' pragma: @@ -104,13 +104,13 @@ interactions: Connection: - keep-alive User-Agent: - - python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 - msrest_azure/0.6.2 azure-mgmt-sql/0.17.0 Azure-SDK-For-Python + - python/3.8.2 (Linux-4.19.104-microsoft-standard-x86_64-with-glibc2.29) msrest/0.6.16 + msrest_azure/0.6.3 azure-mgmt-sql/0.19.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/554e9ab2-cc46-4b6e-a7e1-ca8d93e3c8c3?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/1fc269fe-c787-44fb-b07b-f76b9bf5b146?api-version=2019-06-01-preview response: body: - string: '{"name":"554e9ab2-cc46-4b6e-a7e1-ca8d93e3c8c3","status":"InProgress","startTime":"2020-03-02T13:34:32.117Z"}' + string: '{"name":"1fc269fe-c787-44fb-b07b-f76b9bf5b146","status":"InProgress","startTime":"2020-06-24T05:30:28.983Z"}' headers: cache-control: - no-cache @@ -119,7 +119,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 02 Mar 2020 13:34:35 GMT + - Wed, 24 Jun 2020 05:30:31 GMT expires: - '-1' pragma: @@ -147,13 +147,13 @@ interactions: Connection: - keep-alive User-Agent: - - python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 - msrest_azure/0.6.2 azure-mgmt-sql/0.17.0 Azure-SDK-For-Python + - python/3.8.2 (Linux-4.19.104-microsoft-standard-x86_64-with-glibc2.29) msrest/0.6.16 + msrest_azure/0.6.3 azure-mgmt-sql/0.19.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/554e9ab2-cc46-4b6e-a7e1-ca8d93e3c8c3?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/1fc269fe-c787-44fb-b07b-f76b9bf5b146?api-version=2019-06-01-preview response: body: - string: '{"name":"554e9ab2-cc46-4b6e-a7e1-ca8d93e3c8c3","status":"InProgress","startTime":"2020-03-02T13:34:32.117Z"}' + string: '{"name":"1fc269fe-c787-44fb-b07b-f76b9bf5b146","status":"InProgress","startTime":"2020-06-24T05:30:28.983Z"}' headers: cache-control: - no-cache @@ -162,7 +162,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 02 Mar 2020 13:34:36 GMT + - Wed, 24 Jun 2020 05:30:32 GMT expires: - '-1' pragma: @@ -190,13 +190,13 @@ interactions: Connection: - keep-alive User-Agent: - - python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 - msrest_azure/0.6.2 azure-mgmt-sql/0.17.0 Azure-SDK-For-Python + - python/3.8.2 (Linux-4.19.104-microsoft-standard-x86_64-with-glibc2.29) msrest/0.6.16 + msrest_azure/0.6.3 azure-mgmt-sql/0.19.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/554e9ab2-cc46-4b6e-a7e1-ca8d93e3c8c3?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/1fc269fe-c787-44fb-b07b-f76b9bf5b146?api-version=2019-06-01-preview response: body: - string: '{"name":"554e9ab2-cc46-4b6e-a7e1-ca8d93e3c8c3","status":"InProgress","startTime":"2020-03-02T13:34:32.117Z"}' + string: '{"name":"1fc269fe-c787-44fb-b07b-f76b9bf5b146","status":"InProgress","startTime":"2020-06-24T05:30:28.983Z"}' headers: cache-control: - no-cache @@ -205,7 +205,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 02 Mar 2020 13:34:38 GMT + - Wed, 24 Jun 2020 05:30:33 GMT expires: - '-1' pragma: @@ -233,13 +233,13 @@ interactions: Connection: - keep-alive User-Agent: - - python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 - msrest_azure/0.6.2 azure-mgmt-sql/0.17.0 Azure-SDK-For-Python + - python/3.8.2 (Linux-4.19.104-microsoft-standard-x86_64-with-glibc2.29) msrest/0.6.16 + msrest_azure/0.6.3 azure-mgmt-sql/0.19.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/554e9ab2-cc46-4b6e-a7e1-ca8d93e3c8c3?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/1fc269fe-c787-44fb-b07b-f76b9bf5b146?api-version=2019-06-01-preview response: body: - string: '{"name":"554e9ab2-cc46-4b6e-a7e1-ca8d93e3c8c3","status":"InProgress","startTime":"2020-03-02T13:34:32.117Z"}' + string: '{"name":"1fc269fe-c787-44fb-b07b-f76b9bf5b146","status":"InProgress","startTime":"2020-06-24T05:30:28.983Z"}' headers: cache-control: - no-cache @@ -248,7 +248,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 02 Mar 2020 13:34:58 GMT + - Wed, 24 Jun 2020 05:30:55 GMT expires: - '-1' pragma: @@ -276,13 +276,13 @@ interactions: Connection: - keep-alive User-Agent: - - python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 - msrest_azure/0.6.2 azure-mgmt-sql/0.17.0 Azure-SDK-For-Python + - python/3.8.2 (Linux-4.19.104-microsoft-standard-x86_64-with-glibc2.29) msrest/0.6.16 + msrest_azure/0.6.3 azure-mgmt-sql/0.19.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/554e9ab2-cc46-4b6e-a7e1-ca8d93e3c8c3?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/1fc269fe-c787-44fb-b07b-f76b9bf5b146?api-version=2019-06-01-preview response: body: - string: '{"name":"554e9ab2-cc46-4b6e-a7e1-ca8d93e3c8c3","status":"Succeeded","startTime":"2020-03-02T13:34:32.117Z"}' + string: '{"name":"1fc269fe-c787-44fb-b07b-f76b9bf5b146","status":"Succeeded","startTime":"2020-06-24T05:30:28.983Z"}' headers: cache-control: - no-cache @@ -291,7 +291,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 02 Mar 2020 13:35:18 GMT + - Wed, 24 Jun 2020 05:31:15 GMT expires: - '-1' pragma: @@ -319,8 +319,8 @@ interactions: Connection: - keep-alive User-Agent: - - python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 - msrest_azure/0.6.2 azure-mgmt-sql/0.17.0 Azure-SDK-For-Python + - python/3.8.2 (Linux-4.19.104-microsoft-standard-x86_64-with-glibc2.29) msrest/0.6.16 + msrest_azure/0.6.3 azure-mgmt-sql/0.19.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 +334,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 02 Mar 2020 13:35:18 GMT + - Wed, 24 Jun 2020 05:31:15 GMT expires: - '-1' pragma: @@ -362,8 +362,8 @@ interactions: Connection: - keep-alive User-Agent: - - python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 - msrest_azure/0.6.2 azure-mgmt-sql/0.17.0 Azure-SDK-For-Python + - python/3.8.2 (Linux-4.19.104-microsoft-standard-x86_64-with-glibc2.29) msrest/0.6.16 + msrest_azure/0.6.3 azure-mgmt-sql/0.19.0 Azure-SDK-For-Python accept-language: - en-US method: GET @@ -379,7 +379,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 02 Mar 2020 13:35:18 GMT + - Wed, 24 Jun 2020 05:31:16 GMT expires: - '-1' pragma: @@ -407,8 +407,8 @@ interactions: Connection: - keep-alive User-Agent: - - python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 - msrest_azure/0.6.2 azure-mgmt-sql/0.17.0 Azure-SDK-For-Python + - python/3.8.2 (Linux-4.19.104-microsoft-standard-x86_64-with-glibc2.29) msrest/0.6.16 + msrest_azure/0.6.3 azure-mgmt-sql/0.19.0 Azure-SDK-For-Python accept-language: - en-US method: GET @@ -424,7 +424,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 02 Mar 2020 13:35:19 GMT + - Wed, 24 Jun 2020 05:31:16 GMT expires: - '-1' pragma: @@ -452,37 +452,38 @@ interactions: Connection: - keep-alive User-Agent: - - python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 - msrest_azure/0.6.2 azure-mgmt-sql/0.17.0 Azure-SDK-For-Python + - python/3.8.2 (Linux-4.19.104-microsoft-standard-x86_64-with-glibc2.29) msrest/0.6.16 + msrest_azure/0.6.3 azure-mgmt-sql/0.19.0 Azure-SDK-For-Python accept-language: - en-US method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Sql/servers?api-version=2019-06-01-preview response: body: - string: '{"value":[{"kind":"v12.0","properties":{"administratorLogin":"zim","version":"12.0","state":"Ready","fullyQualifiedDomainName":"zimszims.database.windows.net","privateEndpointConnections":[],"publicNetworkAccess":"Enabled"},"location":"westcentralus","tags":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/Default-Networking/providers/Microsoft.Sql/servers/zimszims","name":"zimszims","type":"Microsoft.Sql/servers"},{"kind":"v12.0","properties":{"administratorLogin":"mysecretname","version":"12.0","state":"Ready","fullyQualifiedDomainName":"tstpysqlserverx87460a68.database.windows.net","privateEndpointConnections":[],"publicNetworkAccess":"Enabled"},"location":"westus2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_sql_test_server87460a68/providers/Microsoft.Sql/servers/tstpysqlserverx87460a68","name":"tstpysqlserverx87460a68","type":"Microsoft.Sql/servers"}]}' + string: '{"value":[{"kind":"v12.0","properties":{"administratorLogin":"mysecretname","version":"12.0","state":"Ready","fullyQualifiedDomainName":"tstpysqlserverx87460a68.database.windows.net","privateEndpointConnections":[],"publicNetworkAccess":"Enabled"},"location":"westus2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_sql_test_server87460a68/providers/Microsoft.Sql/servers/tstpysqlserverx87460a68","name":"tstpysqlserverx87460a68","type":"Microsoft.Sql/servers"}]}' headers: cache-control: - no-cache content-length: - - '934' + - '499' content-type: - application/json; charset=utf-8 date: - - Mon, 02 Mar 2020 13:35:19 GMT + - Wed, 24 Jun 2020 05:31:16 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 - x-ms-original-request-ids: - - 91939caa-3583-4378-b07a-103b9c1035ad - - 510981e2-ced0-43bb-a6b6-a79371d68994 status: code: 200 message: OK @@ -496,8 +497,8 @@ interactions: Connection: - keep-alive User-Agent: - - python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 - msrest_azure/0.6.2 azure-mgmt-sql/0.17.0 Azure-SDK-For-Python + - python/3.8.2 (Linux-4.19.104-microsoft-standard-x86_64-with-glibc2.29) msrest/0.6.16 + msrest_azure/0.6.3 azure-mgmt-sql/0.19.0 Azure-SDK-For-Python accept-language: - en-US method: GET @@ -517,7 +518,7 @@ interactions: dataserviceversion: - 3.0; date: - - Mon, 02 Mar 2020 13:35:20 GMT + - Wed, 24 Jun 2020 05:31:16 GMT server: - Microsoft-HTTPAPI/2.0 strict-transport-security: @@ -545,8 +546,8 @@ interactions: Content-Type: - application/json; charset=utf-8 User-Agent: - - python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 - msrest_azure/0.6.2 azure-mgmt-sql/0.17.0 Azure-SDK-For-Python + - python/3.8.2 (Linux-4.19.104-microsoft-standard-x86_64-with-glibc2.29) msrest/0.6.16 + msrest_azure/0.6.3 azure-mgmt-sql/0.19.0 Azure-SDK-For-Python accept-language: - en-US method: PUT @@ -565,7 +566,7 @@ interactions: dataserviceversion: - 3.0; date: - - Mon, 02 Mar 2020 13:35:21 GMT + - Wed, 24 Jun 2020 05:31:17 GMT preference-applied: - return-content server: @@ -591,18 +592,18 @@ interactions: Content-Length: - '0' User-Agent: - - python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 - msrest_azure/0.6.2 azure-mgmt-sql/0.17.0 Azure-SDK-For-Python + - python/3.8.2 (Linux-4.19.104-microsoft-standard-x86_64-with-glibc2.29) msrest/0.6.16 + msrest_azure/0.6.3 azure-mgmt-sql/0.19.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-03-02T13:35:22.447Z"}' + string: '{"operation":"DropLogicalServer","startTime":"2020-06-24T05:31:18.627Z"}' 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/95e9796b-5f62-48e2-a31a-41fa66c44d1a?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/eed9c4cb-f95f-4b01-af3b-648c2135ed05?api-version=2019-06-01-preview cache-control: - no-cache content-length: @@ -610,11 +611,11 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 02 Mar 2020 13:35:22 GMT + - Wed, 24 Jun 2020 05:31:18 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/95e9796b-5f62-48e2-a31a-41fa66c44d1a?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/eed9c4cb-f95f-4b01-af3b-648c2135ed05?api-version=2019-06-01-preview pragma: - no-cache server: