From d0b85c051b2f78f72987e3e0921c2b5f19de4689 Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Thu, 29 Apr 2021 05:06:40 +0000 Subject: [PATCH 1/4] CodeGen from PR 14182 in Azure/azure-rest-api-specs [python]Update readme.python.md for postgresql (#14182) * Update readme.python.md * Update readme.python.md --- sdk/rdbms/azure-mgmt-rdbms/_meta.json | 2 +- .../mgmt/rdbms/postgresql/_metadata.json | 19 +- .../_postgre_sql_management_client.py | 79 +- .../azure/mgmt/rdbms/postgresql/_version.py | 2 +- .../aio/_postgre_sql_management_client.py | 79 +- .../postgresql/aio/operations/__init__.py | 34 +- .../_check_name_availability_operations.py | 4 +- .../operations/_configurations_operations.py | 288 +-- .../aio/operations/_databases_operations.py | 30 +- .../operations/_firewall_rules_operations.py | 28 +- ..._location_based_capabilities_operations.py | 112 - .../postgresql/aio/operations/_operations.py | 4 +- .../aio/operations/_servers_operations.py | 274 +-- ...virtual_network_subnet_usage_operations.py | 103 - .../mgmt/rdbms/postgresql/models/__init__.py | 182 +- .../mgmt/rdbms/postgresql/models/_models.py | 1877 +++++++++++---- .../rdbms/postgresql/models/_models_py3.py | 2082 ++++++++++++----- .../_postgre_sql_management_client_enums.py | 139 +- .../rdbms/postgresql/operations/__init__.py | 34 +- .../_check_name_availability_operations.py | 4 +- .../operations/_configurations_operations.py | 292 +-- .../operations/_databases_operations.py | 30 +- .../operations/_firewall_rules_operations.py | 28 +- ..._location_based_capabilities_operations.py | 117 - .../postgresql/operations/_operations.py | 4 +- .../operations/_servers_operations.py | 278 +-- ...virtual_network_subnet_usage_operations.py | 108 - .../postgresql_flexibleservers/_metadata.json | 5 +- .../_postgre_sql_management_client.py | 5 + .../postgresql_flexibleservers/_version.py | 2 +- .../aio/_postgre_sql_management_client.py | 5 + .../aio/operations/__init__.py | 2 + ..._get_private_dns_zone_suffix_operations.py | 4 +- .../models/__init__.py | 2 + .../models/_models.py | 8 +- .../models/_models_py3.py | 8 +- .../_postgre_sql_management_client_enums.py | 8 + .../operations/__init__.py | 2 + ..._get_private_dns_zone_suffix_operations.py | 4 +- 39 files changed, 3792 insertions(+), 2496 deletions(-) delete mode 100644 sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/postgresql/aio/operations/_location_based_capabilities_operations.py delete mode 100644 sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/postgresql/aio/operations/_virtual_network_subnet_usage_operations.py delete mode 100644 sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/postgresql/operations/_location_based_capabilities_operations.py delete mode 100644 sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/postgresql/operations/_virtual_network_subnet_usage_operations.py rename sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/{postgresql => postgresql_flexibleservers}/aio/operations/_get_private_dns_zone_suffix_operations.py (96%) rename sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/{postgresql => postgresql_flexibleservers}/operations/_get_private_dns_zone_suffix_operations.py (96%) diff --git a/sdk/rdbms/azure-mgmt-rdbms/_meta.json b/sdk/rdbms/azure-mgmt-rdbms/_meta.json index 26b7d09d6deb..ef4eebce6e02 100644 --- a/sdk/rdbms/azure-mgmt-rdbms/_meta.json +++ b/sdk/rdbms/azure-mgmt-rdbms/_meta.json @@ -1,7 +1,7 @@ { "autorest": "3.3.0", "use": "@autorest/python@5.6.6", - "commit": "f1d8c4ebb54fdc1301eb2f2a465982cf58b54f69", + "commit": "62e437e7b686c6f4fbc3e7f8b34749899932c221", "repository_url": "https://github.com/Azure/azure-rest-api-specs", "autorest_command": "autorest specification/postgresql/resource-manager/readme.md --multiapi --python --python-mode=update --python-sdks-folder=/home/vsts/work/1/s/azure-sdk-for-python/sdk --track2 --use=@autorest/python@5.6.6 --version=3.3.0", "readme": "specification/postgresql/resource-manager/readme.md" diff --git a/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/postgresql/_metadata.json b/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/postgresql/_metadata.json index bd177b54ed26..f4e4b34029ff 100644 --- a/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/postgresql/_metadata.json +++ b/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/postgresql/_metadata.json @@ -1,6 +1,6 @@ { "chosen_version": "", - "total_api_version_list": ["2020-02-14-preview", "2020-11-05-preview", "2021-03-31-privatepreview"], + "total_api_version_list": ["2017-12-01", "2018-06-01", "2020-01-01"], "client": { "name": "PostgreSQLManagementClient", "filename": "_postgre_sql_management_client", @@ -99,13 +99,22 @@ }, "operation_groups": { "servers": "ServersOperations", + "replicas": "ReplicasOperations", "firewall_rules": "FirewallRulesOperations", + "virtual_network_rules": "VirtualNetworkRulesOperations", + "databases": "DatabasesOperations", "configurations": "ConfigurationsOperations", + "server_parameters": "ServerParametersOperations", + "log_files": "LogFilesOperations", + "server_administrators": "ServerAdministratorsOperations", + "recoverable_servers": "RecoverableServersOperations", + "server_based_performance_tier": "ServerBasedPerformanceTierOperations", + "location_based_performance_tier": "LocationBasedPerformanceTierOperations", "check_name_availability": "CheckNameAvailabilityOperations", - "location_based_capabilities": "LocationBasedCapabilitiesOperations", - "virtual_network_subnet_usage": "VirtualNetworkSubnetUsageOperations", "operations": "Operations", - "databases": "DatabasesOperations", - "get_private_dns_zone_suffix": "GetPrivateDnsZoneSuffixOperations" + "server_security_alert_policies": "ServerSecurityAlertPoliciesOperations", + "private_endpoint_connections": "PrivateEndpointConnectionsOperations", + "private_link_resources": "PrivateLinkResourcesOperations", + "server_keys": "ServerKeysOperations" } } \ No newline at end of file diff --git a/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/postgresql/_postgre_sql_management_client.py b/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/postgresql/_postgre_sql_management_client.py index afa8013d2d89..b8b2b4fa4509 100644 --- a/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/postgresql/_postgre_sql_management_client.py +++ b/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/postgresql/_postgre_sql_management_client.py @@ -20,14 +20,23 @@ from ._configuration import PostgreSQLManagementClientConfiguration from .operations import ServersOperations +from .operations import ReplicasOperations from .operations import FirewallRulesOperations +from .operations import VirtualNetworkRulesOperations +from .operations import DatabasesOperations from .operations import ConfigurationsOperations +from .operations import ServerParametersOperations +from .operations import LogFilesOperations +from .operations import ServerAdministratorsOperations +from .operations import RecoverableServersOperations +from .operations import ServerBasedPerformanceTierOperations +from .operations import LocationBasedPerformanceTierOperations from .operations import CheckNameAvailabilityOperations -from .operations import LocationBasedCapabilitiesOperations -from .operations import VirtualNetworkSubnetUsageOperations from .operations import Operations -from .operations import DatabasesOperations -from .operations import GetPrivateDnsZoneSuffixOperations +from .operations import ServerSecurityAlertPoliciesOperations +from .operations import PrivateEndpointConnectionsOperations +from .operations import PrivateLinkResourcesOperations +from .operations import ServerKeysOperations from . import models @@ -36,22 +45,40 @@ class PostgreSQLManagementClient(object): :ivar servers: ServersOperations operations :vartype servers: azure.mgmt.rdbms.postgresql.operations.ServersOperations + :ivar replicas: ReplicasOperations operations + :vartype replicas: azure.mgmt.rdbms.postgresql.operations.ReplicasOperations :ivar firewall_rules: FirewallRulesOperations operations :vartype firewall_rules: azure.mgmt.rdbms.postgresql.operations.FirewallRulesOperations + :ivar virtual_network_rules: VirtualNetworkRulesOperations operations + :vartype virtual_network_rules: azure.mgmt.rdbms.postgresql.operations.VirtualNetworkRulesOperations + :ivar databases: DatabasesOperations operations + :vartype databases: azure.mgmt.rdbms.postgresql.operations.DatabasesOperations :ivar configurations: ConfigurationsOperations operations :vartype configurations: azure.mgmt.rdbms.postgresql.operations.ConfigurationsOperations + :ivar server_parameters: ServerParametersOperations operations + :vartype server_parameters: azure.mgmt.rdbms.postgresql.operations.ServerParametersOperations + :ivar log_files: LogFilesOperations operations + :vartype log_files: azure.mgmt.rdbms.postgresql.operations.LogFilesOperations + :ivar server_administrators: ServerAdministratorsOperations operations + :vartype server_administrators: azure.mgmt.rdbms.postgresql.operations.ServerAdministratorsOperations + :ivar recoverable_servers: RecoverableServersOperations operations + :vartype recoverable_servers: azure.mgmt.rdbms.postgresql.operations.RecoverableServersOperations + :ivar server_based_performance_tier: ServerBasedPerformanceTierOperations operations + :vartype server_based_performance_tier: azure.mgmt.rdbms.postgresql.operations.ServerBasedPerformanceTierOperations + :ivar location_based_performance_tier: LocationBasedPerformanceTierOperations operations + :vartype location_based_performance_tier: azure.mgmt.rdbms.postgresql.operations.LocationBasedPerformanceTierOperations :ivar check_name_availability: CheckNameAvailabilityOperations operations :vartype check_name_availability: azure.mgmt.rdbms.postgresql.operations.CheckNameAvailabilityOperations - :ivar location_based_capabilities: LocationBasedCapabilitiesOperations operations - :vartype location_based_capabilities: azure.mgmt.rdbms.postgresql.operations.LocationBasedCapabilitiesOperations - :ivar virtual_network_subnet_usage: VirtualNetworkSubnetUsageOperations operations - :vartype virtual_network_subnet_usage: azure.mgmt.rdbms.postgresql.operations.VirtualNetworkSubnetUsageOperations :ivar operations: Operations operations :vartype operations: azure.mgmt.rdbms.postgresql.operations.Operations - :ivar databases: DatabasesOperations operations - :vartype databases: azure.mgmt.rdbms.postgresql.operations.DatabasesOperations - :ivar get_private_dns_zone_suffix: GetPrivateDnsZoneSuffixOperations operations - :vartype get_private_dns_zone_suffix: azure.mgmt.rdbms.postgresql.operations.GetPrivateDnsZoneSuffixOperations + :ivar server_security_alert_policies: ServerSecurityAlertPoliciesOperations operations + :vartype server_security_alert_policies: azure.mgmt.rdbms.postgresql.operations.ServerSecurityAlertPoliciesOperations + :ivar private_endpoint_connections: PrivateEndpointConnectionsOperations operations + :vartype private_endpoint_connections: azure.mgmt.rdbms.postgresql.operations.PrivateEndpointConnectionsOperations + :ivar private_link_resources: PrivateLinkResourcesOperations operations + :vartype private_link_resources: azure.mgmt.rdbms.postgresql.operations.PrivateLinkResourcesOperations + :ivar server_keys: ServerKeysOperations operations + :vartype server_keys: azure.mgmt.rdbms.postgresql.operations.ServerKeysOperations :param credential: Credential needed for the client to connect to Azure. :type credential: ~azure.core.credentials.TokenCredential :param subscription_id: The ID of the target subscription. @@ -80,21 +107,39 @@ def __init__( self.servers = ServersOperations( self._client, self._config, self._serialize, self._deserialize) + self.replicas = ReplicasOperations( + self._client, self._config, self._serialize, self._deserialize) self.firewall_rules = FirewallRulesOperations( self._client, self._config, self._serialize, self._deserialize) + self.virtual_network_rules = VirtualNetworkRulesOperations( + self._client, self._config, self._serialize, self._deserialize) + self.databases = DatabasesOperations( + self._client, self._config, self._serialize, self._deserialize) self.configurations = ConfigurationsOperations( self._client, self._config, self._serialize, self._deserialize) - self.check_name_availability = CheckNameAvailabilityOperations( + self.server_parameters = ServerParametersOperations( + self._client, self._config, self._serialize, self._deserialize) + self.log_files = LogFilesOperations( + self._client, self._config, self._serialize, self._deserialize) + self.server_administrators = ServerAdministratorsOperations( self._client, self._config, self._serialize, self._deserialize) - self.location_based_capabilities = LocationBasedCapabilitiesOperations( + self.recoverable_servers = RecoverableServersOperations( self._client, self._config, self._serialize, self._deserialize) - self.virtual_network_subnet_usage = VirtualNetworkSubnetUsageOperations( + self.server_based_performance_tier = ServerBasedPerformanceTierOperations( + self._client, self._config, self._serialize, self._deserialize) + self.location_based_performance_tier = LocationBasedPerformanceTierOperations( + self._client, self._config, self._serialize, self._deserialize) + self.check_name_availability = CheckNameAvailabilityOperations( self._client, self._config, self._serialize, self._deserialize) self.operations = Operations( self._client, self._config, self._serialize, self._deserialize) - self.databases = DatabasesOperations( + self.server_security_alert_policies = ServerSecurityAlertPoliciesOperations( + self._client, self._config, self._serialize, self._deserialize) + self.private_endpoint_connections = PrivateEndpointConnectionsOperations( + self._client, self._config, self._serialize, self._deserialize) + self.private_link_resources = PrivateLinkResourcesOperations( self._client, self._config, self._serialize, self._deserialize) - self.get_private_dns_zone_suffix = GetPrivateDnsZoneSuffixOperations( + self.server_keys = ServerKeysOperations( self._client, self._config, self._serialize, self._deserialize) def _send_request(self, http_request, **kwargs): diff --git a/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/postgresql/_version.py b/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/postgresql/_version.py index ab954b3972b4..e5754a47ce68 100644 --- a/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/postgresql/_version.py +++ b/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/postgresql/_version.py @@ -6,4 +6,4 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -VERSION = "8.1.0b3" +VERSION = "1.0.0b1" diff --git a/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/postgresql/aio/_postgre_sql_management_client.py b/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/postgresql/aio/_postgre_sql_management_client.py index 22184ba980c5..1ef75c65c673 100644 --- a/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/postgresql/aio/_postgre_sql_management_client.py +++ b/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/postgresql/aio/_postgre_sql_management_client.py @@ -18,14 +18,23 @@ from ._configuration import PostgreSQLManagementClientConfiguration from .operations import ServersOperations +from .operations import ReplicasOperations from .operations import FirewallRulesOperations +from .operations import VirtualNetworkRulesOperations +from .operations import DatabasesOperations from .operations import ConfigurationsOperations +from .operations import ServerParametersOperations +from .operations import LogFilesOperations +from .operations import ServerAdministratorsOperations +from .operations import RecoverableServersOperations +from .operations import ServerBasedPerformanceTierOperations +from .operations import LocationBasedPerformanceTierOperations from .operations import CheckNameAvailabilityOperations -from .operations import LocationBasedCapabilitiesOperations -from .operations import VirtualNetworkSubnetUsageOperations from .operations import Operations -from .operations import DatabasesOperations -from .operations import GetPrivateDnsZoneSuffixOperations +from .operations import ServerSecurityAlertPoliciesOperations +from .operations import PrivateEndpointConnectionsOperations +from .operations import PrivateLinkResourcesOperations +from .operations import ServerKeysOperations from .. import models @@ -34,22 +43,40 @@ class PostgreSQLManagementClient(object): :ivar servers: ServersOperations operations :vartype servers: azure.mgmt.rdbms.postgresql.aio.operations.ServersOperations + :ivar replicas: ReplicasOperations operations + :vartype replicas: azure.mgmt.rdbms.postgresql.aio.operations.ReplicasOperations :ivar firewall_rules: FirewallRulesOperations operations :vartype firewall_rules: azure.mgmt.rdbms.postgresql.aio.operations.FirewallRulesOperations + :ivar virtual_network_rules: VirtualNetworkRulesOperations operations + :vartype virtual_network_rules: azure.mgmt.rdbms.postgresql.aio.operations.VirtualNetworkRulesOperations + :ivar databases: DatabasesOperations operations + :vartype databases: azure.mgmt.rdbms.postgresql.aio.operations.DatabasesOperations :ivar configurations: ConfigurationsOperations operations :vartype configurations: azure.mgmt.rdbms.postgresql.aio.operations.ConfigurationsOperations + :ivar server_parameters: ServerParametersOperations operations + :vartype server_parameters: azure.mgmt.rdbms.postgresql.aio.operations.ServerParametersOperations + :ivar log_files: LogFilesOperations operations + :vartype log_files: azure.mgmt.rdbms.postgresql.aio.operations.LogFilesOperations + :ivar server_administrators: ServerAdministratorsOperations operations + :vartype server_administrators: azure.mgmt.rdbms.postgresql.aio.operations.ServerAdministratorsOperations + :ivar recoverable_servers: RecoverableServersOperations operations + :vartype recoverable_servers: azure.mgmt.rdbms.postgresql.aio.operations.RecoverableServersOperations + :ivar server_based_performance_tier: ServerBasedPerformanceTierOperations operations + :vartype server_based_performance_tier: azure.mgmt.rdbms.postgresql.aio.operations.ServerBasedPerformanceTierOperations + :ivar location_based_performance_tier: LocationBasedPerformanceTierOperations operations + :vartype location_based_performance_tier: azure.mgmt.rdbms.postgresql.aio.operations.LocationBasedPerformanceTierOperations :ivar check_name_availability: CheckNameAvailabilityOperations operations :vartype check_name_availability: azure.mgmt.rdbms.postgresql.aio.operations.CheckNameAvailabilityOperations - :ivar location_based_capabilities: LocationBasedCapabilitiesOperations operations - :vartype location_based_capabilities: azure.mgmt.rdbms.postgresql.aio.operations.LocationBasedCapabilitiesOperations - :ivar virtual_network_subnet_usage: VirtualNetworkSubnetUsageOperations operations - :vartype virtual_network_subnet_usage: azure.mgmt.rdbms.postgresql.aio.operations.VirtualNetworkSubnetUsageOperations :ivar operations: Operations operations :vartype operations: azure.mgmt.rdbms.postgresql.aio.operations.Operations - :ivar databases: DatabasesOperations operations - :vartype databases: azure.mgmt.rdbms.postgresql.aio.operations.DatabasesOperations - :ivar get_private_dns_zone_suffix: GetPrivateDnsZoneSuffixOperations operations - :vartype get_private_dns_zone_suffix: azure.mgmt.rdbms.postgresql.aio.operations.GetPrivateDnsZoneSuffixOperations + :ivar server_security_alert_policies: ServerSecurityAlertPoliciesOperations operations + :vartype server_security_alert_policies: azure.mgmt.rdbms.postgresql.aio.operations.ServerSecurityAlertPoliciesOperations + :ivar private_endpoint_connections: PrivateEndpointConnectionsOperations operations + :vartype private_endpoint_connections: azure.mgmt.rdbms.postgresql.aio.operations.PrivateEndpointConnectionsOperations + :ivar private_link_resources: PrivateLinkResourcesOperations operations + :vartype private_link_resources: azure.mgmt.rdbms.postgresql.aio.operations.PrivateLinkResourcesOperations + :ivar server_keys: ServerKeysOperations operations + :vartype server_keys: azure.mgmt.rdbms.postgresql.aio.operations.ServerKeysOperations :param credential: Credential needed for the client to connect to Azure. :type credential: ~azure.core.credentials_async.AsyncTokenCredential :param subscription_id: The ID of the target subscription. @@ -77,21 +104,39 @@ def __init__( self.servers = ServersOperations( self._client, self._config, self._serialize, self._deserialize) + self.replicas = ReplicasOperations( + self._client, self._config, self._serialize, self._deserialize) self.firewall_rules = FirewallRulesOperations( self._client, self._config, self._serialize, self._deserialize) + self.virtual_network_rules = VirtualNetworkRulesOperations( + self._client, self._config, self._serialize, self._deserialize) + self.databases = DatabasesOperations( + self._client, self._config, self._serialize, self._deserialize) self.configurations = ConfigurationsOperations( self._client, self._config, self._serialize, self._deserialize) - self.check_name_availability = CheckNameAvailabilityOperations( + self.server_parameters = ServerParametersOperations( + self._client, self._config, self._serialize, self._deserialize) + self.log_files = LogFilesOperations( + self._client, self._config, self._serialize, self._deserialize) + self.server_administrators = ServerAdministratorsOperations( self._client, self._config, self._serialize, self._deserialize) - self.location_based_capabilities = LocationBasedCapabilitiesOperations( + self.recoverable_servers = RecoverableServersOperations( self._client, self._config, self._serialize, self._deserialize) - self.virtual_network_subnet_usage = VirtualNetworkSubnetUsageOperations( + self.server_based_performance_tier = ServerBasedPerformanceTierOperations( + self._client, self._config, self._serialize, self._deserialize) + self.location_based_performance_tier = LocationBasedPerformanceTierOperations( + self._client, self._config, self._serialize, self._deserialize) + self.check_name_availability = CheckNameAvailabilityOperations( self._client, self._config, self._serialize, self._deserialize) self.operations = Operations( self._client, self._config, self._serialize, self._deserialize) - self.databases = DatabasesOperations( + self.server_security_alert_policies = ServerSecurityAlertPoliciesOperations( + self._client, self._config, self._serialize, self._deserialize) + self.private_endpoint_connections = PrivateEndpointConnectionsOperations( + self._client, self._config, self._serialize, self._deserialize) + self.private_link_resources = PrivateLinkResourcesOperations( self._client, self._config, self._serialize, self._deserialize) - self.get_private_dns_zone_suffix = GetPrivateDnsZoneSuffixOperations( + self.server_keys = ServerKeysOperations( self._client, self._config, self._serialize, self._deserialize) async def _send_request(self, http_request: HttpRequest, **kwargs: Any) -> AsyncHttpResponse: diff --git a/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/postgresql/aio/operations/__init__.py b/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/postgresql/aio/operations/__init__.py index d0788161037b..170155b06941 100644 --- a/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/postgresql/aio/operations/__init__.py +++ b/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/postgresql/aio/operations/__init__.py @@ -7,23 +7,41 @@ # -------------------------------------------------------------------------- from ._servers_operations import ServersOperations +from ._replicas_operations import ReplicasOperations from ._firewall_rules_operations import FirewallRulesOperations +from ._virtual_network_rules_operations import VirtualNetworkRulesOperations +from ._databases_operations import DatabasesOperations from ._configurations_operations import ConfigurationsOperations +from ._server_parameters_operations import ServerParametersOperations +from ._log_files_operations import LogFilesOperations +from ._server_administrators_operations import ServerAdministratorsOperations +from ._recoverable_servers_operations import RecoverableServersOperations +from ._server_based_performance_tier_operations import ServerBasedPerformanceTierOperations +from ._location_based_performance_tier_operations import LocationBasedPerformanceTierOperations from ._check_name_availability_operations import CheckNameAvailabilityOperations -from ._location_based_capabilities_operations import LocationBasedCapabilitiesOperations -from ._virtual_network_subnet_usage_operations import VirtualNetworkSubnetUsageOperations from ._operations import Operations -from ._databases_operations import DatabasesOperations -from ._get_private_dns_zone_suffix_operations import GetPrivateDnsZoneSuffixOperations +from ._server_security_alert_policies_operations import ServerSecurityAlertPoliciesOperations +from ._private_endpoint_connections_operations import PrivateEndpointConnectionsOperations +from ._private_link_resources_operations import PrivateLinkResourcesOperations +from ._server_keys_operations import ServerKeysOperations __all__ = [ 'ServersOperations', + 'ReplicasOperations', 'FirewallRulesOperations', + 'VirtualNetworkRulesOperations', + 'DatabasesOperations', 'ConfigurationsOperations', + 'ServerParametersOperations', + 'LogFilesOperations', + 'ServerAdministratorsOperations', + 'RecoverableServersOperations', + 'ServerBasedPerformanceTierOperations', + 'LocationBasedPerformanceTierOperations', 'CheckNameAvailabilityOperations', - 'LocationBasedCapabilitiesOperations', - 'VirtualNetworkSubnetUsageOperations', 'Operations', - 'DatabasesOperations', - 'GetPrivateDnsZoneSuffixOperations', + 'ServerSecurityAlertPoliciesOperations', + 'PrivateEndpointConnectionsOperations', + 'PrivateLinkResourcesOperations', + 'ServerKeysOperations', ] diff --git a/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/postgresql/aio/operations/_check_name_availability_operations.py b/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/postgresql/aio/operations/_check_name_availability_operations.py index 4310818e10ad..a803592eed10 100644 --- a/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/postgresql/aio/operations/_check_name_availability_operations.py +++ b/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/postgresql/aio/operations/_check_name_availability_operations.py @@ -60,7 +60,7 @@ async def execute( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-02-14-preview" + api_version = "2017-12-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -97,4 +97,4 @@ async def execute( return cls(pipeline_response, deserialized, {}) return deserialized - execute.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.DBForPostgreSql/checkNameAvailability'} # type: ignore + execute.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.DBForPostgreSQL/checkNameAvailability'} # type: ignore diff --git a/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/postgresql/aio/operations/_configurations_operations.py b/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/postgresql/aio/operations/_configurations_operations.py index c5d5a106380f..40844d5334af 100644 --- a/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/postgresql/aio/operations/_configurations_operations.py +++ b/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/postgresql/aio/operations/_configurations_operations.py @@ -43,143 +43,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: self._deserialize = deserializer self._config = config - def list_by_server( - self, - resource_group_name: str, - server_name: str, - **kwargs - ) -> AsyncIterable["_models.ConfigurationListResult"]: - """List all the configurations in a given server. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - :type resource_group_name: str - :param server_name: The name of the server. - :type server_name: str - :keyword callable cls: A custom type or function that will be passed the direct response - :return: An iterator like instance of either ConfigurationListResult or the result of cls(response) - :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.rdbms.postgresql.models.ConfigurationListResult] - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop('cls', None) # type: ClsType["_models.ConfigurationListResult"] - error_map = { - 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError - } - error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-02-14-preview" - accept = "application/json" - - def prepare_request(next_link=None): - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') - - if not next_link: - # Construct URL - url = self.list_by_server.metadata['url'] # type: ignore - path_format_arguments = { - 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), - 'serverName': self._serialize.url("server_name", server_name, 'str'), - } - url = self._client.format_url(url, **path_format_arguments) - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') - - request = self._client.get(url, query_parameters, header_parameters) - else: - url = next_link - query_parameters = {} # type: Dict[str, Any] - request = self._client.get(url, query_parameters, header_parameters) - return request - - async def extract_data(pipeline_response): - deserialized = self._deserialize('ConfigurationListResult', pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - request = prepare_request(next_link) - - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged( - get_next, extract_data - ) - list_by_server.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/flexibleServers/{serverName}/configurations'} # type: ignore - - async def get( - self, - resource_group_name: str, - server_name: str, - configuration_name: str, - **kwargs - ) -> "_models.Configuration": - """Gets information about a configuration of server. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - :type resource_group_name: str - :param server_name: The name of the server. - :type server_name: str - :param configuration_name: The name of the server configuration. - :type configuration_name: str - :keyword callable cls: A custom type or function that will be passed the direct response - :return: Configuration, or the result of cls(response) - :rtype: ~azure.mgmt.rdbms.postgresql.models.Configuration - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop('cls', None) # type: ClsType["_models.Configuration"] - error_map = { - 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError - } - error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-02-14-preview" - accept = "application/json" - - # Construct URL - url = self.get.metadata['url'] # type: ignore - path_format_arguments = { - 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), - 'serverName': self._serialize.url("server_name", server_name, 'str'), - 'configurationName': self._serialize.url("configuration_name", configuration_name, 'str'), - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') - - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') - - request = self._client.get(url, query_parameters, header_parameters) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize('Configuration', pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/flexibleServers/{serverName}/configurations/{configurationName}'} # type: ignore - - async def _update_initial( + async def _create_or_update_initial( self, resource_group_name: str, server_name: str, @@ -192,12 +56,12 @@ async def _update_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-02-14-preview" + api_version = "2017-12-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" # Construct URL - url = self._update_initial.metadata['url'] # type: ignore + url = self._create_or_update_initial.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), @@ -218,7 +82,7 @@ async def _update_initial( body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(parameters, 'Configuration') body_content_kwargs['content'] = body_content - request = self._client.patch(url, query_parameters, header_parameters, **body_content_kwargs) + request = self._client.put(url, query_parameters, header_parameters, **body_content_kwargs) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -234,9 +98,9 @@ async def _update_initial( return cls(pipeline_response, deserialized, {}) return deserialized - _update_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/flexibleServers/{serverName}/configurations/{configurationName}'} # type: ignore + _create_or_update_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSQL/servers/{serverName}/configurations/{configurationName}'} # type: ignore - async def begin_update( + async def begin_create_or_update( self, resource_group_name: str, server_name: str, @@ -272,7 +136,7 @@ async def begin_update( ) cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] if cont_token is None: - raw_result = await self._update_initial( + raw_result = await self._create_or_update_initial( resource_group_name=resource_group_name, server_name=server_name, configuration_name=configuration_name, @@ -310,4 +174,140 @@ def get_long_running_output(pipeline_response): ) else: return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) - begin_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/flexibleServers/{serverName}/configurations/{configurationName}'} # type: ignore + begin_create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSQL/servers/{serverName}/configurations/{configurationName}'} # type: ignore + + async def get( + self, + resource_group_name: str, + server_name: str, + configuration_name: str, + **kwargs + ) -> "_models.Configuration": + """Gets information about a configuration of server. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + :type resource_group_name: str + :param server_name: The name of the server. + :type server_name: str + :param configuration_name: The name of the server configuration. + :type configuration_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: Configuration, or the result of cls(response) + :rtype: ~azure.mgmt.rdbms.postgresql.models.Configuration + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.Configuration"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2017-12-01" + accept = "application/json" + + # Construct URL + url = self.get.metadata['url'] # type: ignore + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'serverName': self._serialize.url("server_name", server_name, 'str'), + 'configurationName': self._serialize.url("configuration_name", configuration_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response, error_format=ARMErrorFormat) + + deserialized = self._deserialize('Configuration', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSQL/servers/{serverName}/configurations/{configurationName}'} # type: ignore + + def list_by_server( + self, + resource_group_name: str, + server_name: str, + **kwargs + ) -> AsyncIterable["_models.ConfigurationListResult"]: + """List all the configurations in a given server. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + :type resource_group_name: str + :param server_name: The name of the server. + :type server_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: An iterator like instance of either ConfigurationListResult or the result of cls(response) + :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.rdbms.postgresql.models.ConfigurationListResult] + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.ConfigurationListResult"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2017-12-01" + accept = "application/json" + + def prepare_request(next_link=None): + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + if not next_link: + # Construct URL + url = self.list_by_server.metadata['url'] # type: ignore + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'serverName': self._serialize.url("server_name", server_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + else: + url = next_link + query_parameters = {} # type: Dict[str, Any] + request = self._client.get(url, query_parameters, header_parameters) + return request + + async def extract_data(pipeline_response): + deserialized = self._deserialize('ConfigurationListResult', pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) + return None, AsyncList(list_of_elem) + + async def get_next(next_link=None): + request = prepare_request(next_link) + + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response, error_format=ARMErrorFormat) + + return pipeline_response + + return AsyncItemPaged( + get_next, extract_data + ) + list_by_server.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSQL/servers/{serverName}/configurations'} # type: ignore diff --git a/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/postgresql/aio/operations/_databases_operations.py b/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/postgresql/aio/operations/_databases_operations.py index 13ac5ac2693b..a9153502887f 100644 --- a/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/postgresql/aio/operations/_databases_operations.py +++ b/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/postgresql/aio/operations/_databases_operations.py @@ -43,7 +43,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: self._deserialize = deserializer self._config = config - async def _create_initial( + async def _create_or_update_initial( self, resource_group_name: str, server_name: str, @@ -56,12 +56,12 @@ async def _create_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-11-05-preview" + api_version = "2017-12-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" # Construct URL - url = self._create_initial.metadata['url'] # type: ignore + url = self._create_or_update_initial.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), @@ -101,9 +101,9 @@ async def _create_initial( return cls(pipeline_response, deserialized, {}) return deserialized - _create_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/flexibleServers/{serverName}/databases/{databaseName}'} # type: ignore + _create_or_update_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSQL/servers/{serverName}/databases/{databaseName}'} # type: ignore - async def begin_create( + async def begin_create_or_update( self, resource_group_name: str, server_name: str, @@ -139,7 +139,7 @@ async def begin_create( ) cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] if cont_token is None: - raw_result = await self._create_initial( + raw_result = await self._create_or_update_initial( resource_group_name=resource_group_name, server_name=server_name, database_name=database_name, @@ -177,7 +177,7 @@ def get_long_running_output(pipeline_response): ) else: return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) - begin_create.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/flexibleServers/{serverName}/databases/{databaseName}'} # type: ignore + begin_create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSQL/servers/{serverName}/databases/{databaseName}'} # type: ignore async def _delete_initial( self, @@ -191,7 +191,7 @@ async def _delete_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-11-05-preview" + api_version = "2017-12-01" accept = "application/json" # Construct URL @@ -223,7 +223,7 @@ async def _delete_initial( if cls: return cls(pipeline_response, None, {}) - _delete_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/flexibleServers/{serverName}/databases/{databaseName}'} # type: ignore + _delete_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSQL/servers/{serverName}/databases/{databaseName}'} # type: ignore async def begin_delete( self, @@ -292,7 +292,7 @@ def get_long_running_output(pipeline_response): ) else: return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) - begin_delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/flexibleServers/{serverName}/databases/{databaseName}'} # type: ignore + begin_delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSQL/servers/{serverName}/databases/{databaseName}'} # type: ignore async def get( self, @@ -319,7 +319,7 @@ async def get( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-11-05-preview" + api_version = "2017-12-01" accept = "application/json" # Construct URL @@ -354,7 +354,7 @@ async def get( return cls(pipeline_response, deserialized, {}) return deserialized - get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/flexibleServers/{serverName}/databases/{databaseName}'} # type: ignore + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSQL/servers/{serverName}/databases/{databaseName}'} # type: ignore def list_by_server( self, @@ -378,7 +378,7 @@ def list_by_server( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-11-05-preview" + api_version = "2017-12-01" accept = "application/json" def prepare_request(next_link=None): @@ -411,7 +411,7 @@ async def extract_data(pipeline_response): list_of_elem = deserialized.value if cls: list_of_elem = cls(list_of_elem) - return deserialized.next_link or None, AsyncList(list_of_elem) + return None, AsyncList(list_of_elem) async def get_next(next_link=None): request = prepare_request(next_link) @@ -428,4 +428,4 @@ async def get_next(next_link=None): return AsyncItemPaged( get_next, extract_data ) - list_by_server.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/flexibleServers/{serverName}/databases'} # type: ignore + list_by_server.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSQL/servers/{serverName}/databases'} # type: ignore diff --git a/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/postgresql/aio/operations/_firewall_rules_operations.py b/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/postgresql/aio/operations/_firewall_rules_operations.py index 02855a47a050..37bd7bd547bd 100644 --- a/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/postgresql/aio/operations/_firewall_rules_operations.py +++ b/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/postgresql/aio/operations/_firewall_rules_operations.py @@ -56,7 +56,7 @@ async def _create_or_update_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-02-14-preview" + api_version = "2017-12-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -101,7 +101,7 @@ async def _create_or_update_initial( return cls(pipeline_response, deserialized, {}) return deserialized - _create_or_update_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/flexibleServers/{serverName}/firewallRules/{firewallRuleName}'} # type: ignore + _create_or_update_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSQL/servers/{serverName}/firewallRules/{firewallRuleName}'} # type: ignore async def begin_create_or_update( self, @@ -177,7 +177,7 @@ def get_long_running_output(pipeline_response): ) else: return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) - begin_create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/flexibleServers/{serverName}/firewallRules/{firewallRuleName}'} # type: ignore + begin_create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSQL/servers/{serverName}/firewallRules/{firewallRuleName}'} # type: ignore async def _delete_initial( self, @@ -191,7 +191,7 @@ async def _delete_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-02-14-preview" + api_version = "2017-12-01" accept = "application/json" # Construct URL @@ -223,7 +223,7 @@ async def _delete_initial( if cls: return cls(pipeline_response, None, {}) - _delete_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/flexibleServers/{serverName}/firewallRules/{firewallRuleName}'} # type: ignore + _delete_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSQL/servers/{serverName}/firewallRules/{firewallRuleName}'} # type: ignore async def begin_delete( self, @@ -232,7 +232,7 @@ async def begin_delete( firewall_rule_name: str, **kwargs ) -> AsyncLROPoller[None]: - """Deletes a PostgreSQL server firewall rule. + """Deletes a server firewall rule. :param resource_group_name: The name of the resource group. The name is case insensitive. :type resource_group_name: str @@ -292,7 +292,7 @@ def get_long_running_output(pipeline_response): ) else: return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) - begin_delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/flexibleServers/{serverName}/firewallRules/{firewallRuleName}'} # type: ignore + begin_delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSQL/servers/{serverName}/firewallRules/{firewallRuleName}'} # type: ignore async def get( self, @@ -301,7 +301,7 @@ async def get( firewall_rule_name: str, **kwargs ) -> "_models.FirewallRule": - """List all the firewall rules in a given server. + """Gets information about a server firewall rule. :param resource_group_name: The name of the resource group. The name is case insensitive. :type resource_group_name: str @@ -319,7 +319,7 @@ async def get( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-02-14-preview" + api_version = "2017-12-01" accept = "application/json" # Construct URL @@ -354,7 +354,7 @@ async def get( return cls(pipeline_response, deserialized, {}) return deserialized - get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/flexibleServers/{serverName}/firewallRules/{firewallRuleName}'} # type: ignore + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSQL/servers/{serverName}/firewallRules/{firewallRuleName}'} # type: ignore def list_by_server( self, @@ -362,7 +362,7 @@ def list_by_server( server_name: str, **kwargs ) -> AsyncIterable["_models.FirewallRuleListResult"]: - """List all the firewall rules in a given PostgreSQL server. + """List all the firewall rules in a given server. :param resource_group_name: The name of the resource group. The name is case insensitive. :type resource_group_name: str @@ -378,7 +378,7 @@ def list_by_server( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-02-14-preview" + api_version = "2017-12-01" accept = "application/json" def prepare_request(next_link=None): @@ -411,7 +411,7 @@ async def extract_data(pipeline_response): list_of_elem = deserialized.value if cls: list_of_elem = cls(list_of_elem) - return deserialized.next_link or None, AsyncList(list_of_elem) + return None, AsyncList(list_of_elem) async def get_next(next_link=None): request = prepare_request(next_link) @@ -428,4 +428,4 @@ async def get_next(next_link=None): return AsyncItemPaged( get_next, extract_data ) - list_by_server.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/flexibleServers/{serverName}/firewallRules'} # type: ignore + list_by_server.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSQL/servers/{serverName}/firewallRules'} # type: ignore diff --git a/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/postgresql/aio/operations/_location_based_capabilities_operations.py b/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/postgresql/aio/operations/_location_based_capabilities_operations.py deleted file mode 100644 index 254b00693d09..000000000000 --- a/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/postgresql/aio/operations/_location_based_capabilities_operations.py +++ /dev/null @@ -1,112 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from typing import Any, AsyncIterable, Callable, Dict, Generic, Optional, TypeVar -import warnings - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse, HttpRequest -from azure.mgmt.core.exceptions import ARMErrorFormat - -from ... import models as _models - -T = TypeVar('T') -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - -class LocationBasedCapabilitiesOperations: - """LocationBasedCapabilitiesOperations async operations. - - You should not instantiate this class directly. Instead, you should create a Client instance that - instantiates it for you and attaches it as an attribute. - - :ivar models: Alias to model classes used in this operation group. - :type models: ~azure.mgmt.rdbms.postgresql.models - :param client: Client for service requests. - :param config: Configuration of service client. - :param serializer: An object model serializer. - :param deserializer: An object model deserializer. - """ - - models = _models - - def __init__(self, client, config, serializer, deserializer) -> None: - self._client = client - self._serialize = serializer - self._deserialize = deserializer - self._config = config - - def execute( - self, - location_name: str, - **kwargs - ) -> AsyncIterable["_models.CapabilitiesListResult"]: - """Get capabilities at specified location in a given subscription. - - :param location_name: The name of the location. - :type location_name: str - :keyword callable cls: A custom type or function that will be passed the direct response - :return: An iterator like instance of either CapabilitiesListResult or the result of cls(response) - :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.rdbms.postgresql.models.CapabilitiesListResult] - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop('cls', None) # type: ClsType["_models.CapabilitiesListResult"] - error_map = { - 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError - } - error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-02-14-preview" - accept = "application/json" - - def prepare_request(next_link=None): - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') - - if not next_link: - # Construct URL - url = self.execute.metadata['url'] # type: ignore - path_format_arguments = { - 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'locationName': self._serialize.url("location_name", location_name, 'str'), - } - url = self._client.format_url(url, **path_format_arguments) - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') - - request = self._client.get(url, query_parameters, header_parameters) - else: - url = next_link - query_parameters = {} # type: Dict[str, Any] - request = self._client.get(url, query_parameters, header_parameters) - return request - - async def extract_data(pipeline_response): - deserialized = self._deserialize('CapabilitiesListResult', pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) - return deserialized.next_link or None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - request = prepare_request(next_link) - - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged( - get_next, extract_data - ) - execute.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.DBForPostgreSql/locations/{locationName}/capabilities'} # type: ignore diff --git a/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/postgresql/aio/operations/_operations.py b/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/postgresql/aio/operations/_operations.py index f2d196c080e5..2a9443646732 100644 --- a/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/postgresql/aio/operations/_operations.py +++ b/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/postgresql/aio/operations/_operations.py @@ -56,7 +56,7 @@ async def list( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-02-14-preview" + api_version = "2017-12-01" accept = "application/json" # Construct URL @@ -84,4 +84,4 @@ async def list( return cls(pipeline_response, deserialized, {}) return deserialized - list.metadata = {'url': '/providers/Microsoft.DBForPostgreSql/operations'} # type: ignore + list.metadata = {'url': '/providers/Microsoft.DBForPostgreSQL/operations'} # type: ignore diff --git a/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/postgresql/aio/operations/_servers_operations.py b/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/postgresql/aio/operations/_servers_operations.py index 5247638d4784..af91460777eb 100644 --- a/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/postgresql/aio/operations/_servers_operations.py +++ b/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/postgresql/aio/operations/_servers_operations.py @@ -47,7 +47,7 @@ async def _create_initial( self, resource_group_name: str, server_name: str, - parameters: "_models.Server", + parameters: "_models.ServerForCreate", **kwargs ) -> Optional["_models.Server"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.Server"]] @@ -55,7 +55,7 @@ async def _create_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-02-14-preview" + api_version = "2017-12-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -78,7 +78,7 @@ async def _create_initial( header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] - body_content = self._serialize.body(parameters, 'Server') + body_content = self._serialize.body(parameters, 'ServerForCreate') body_content_kwargs['content'] = body_content request = self._client.put(url, query_parameters, header_parameters, **body_content_kwargs) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) @@ -99,23 +99,23 @@ async def _create_initial( return cls(pipeline_response, deserialized, {}) return deserialized - _create_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/flexibleServers/{serverName}'} # type: ignore + _create_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSQL/servers/{serverName}'} # type: ignore async def begin_create( self, resource_group_name: str, server_name: str, - parameters: "_models.Server", + parameters: "_models.ServerForCreate", **kwargs ) -> AsyncLROPoller["_models.Server"]: - """Creates a new server. + """Creates a new server, or will overwrite an existing server. :param resource_group_name: The name of the resource group. The name is case insensitive. :type resource_group_name: str :param server_name: The name of the server. :type server_name: str :param parameters: The required parameters for creating or updating a server. - :type parameters: ~azure.mgmt.rdbms.postgresql.models.Server + :type parameters: ~azure.mgmt.rdbms.postgresql.models.ServerForCreate :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, @@ -170,13 +170,13 @@ def get_long_running_output(pipeline_response): ) else: return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) - begin_create.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/flexibleServers/{serverName}'} # type: ignore + begin_create.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSQL/servers/{serverName}'} # type: ignore async def _update_initial( self, resource_group_name: str, server_name: str, - parameters: "_models.ServerForUpdate", + parameters: "_models.ServerUpdateParameters", **kwargs ) -> Optional["_models.Server"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.Server"]] @@ -184,7 +184,7 @@ async def _update_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-02-14-preview" + api_version = "2017-12-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -207,7 +207,7 @@ async def _update_initial( header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] - body_content = self._serialize.body(parameters, 'ServerForUpdate') + body_content = self._serialize.body(parameters, 'ServerUpdateParameters') body_content_kwargs['content'] = body_content request = self._client.patch(url, query_parameters, header_parameters, **body_content_kwargs) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) @@ -225,13 +225,13 @@ async def _update_initial( return cls(pipeline_response, deserialized, {}) return deserialized - _update_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/flexibleServers/{serverName}'} # type: ignore + _update_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSQL/servers/{serverName}'} # type: ignore async def begin_update( self, resource_group_name: str, server_name: str, - parameters: "_models.ServerForUpdate", + parameters: "_models.ServerUpdateParameters", **kwargs ) -> AsyncLROPoller["_models.Server"]: """Updates an existing server. The request body can contain one to many of the properties present @@ -242,7 +242,7 @@ async def begin_update( :param server_name: The name of the server. :type server_name: str :param parameters: The required parameters for updating a server. - :type parameters: ~azure.mgmt.rdbms.postgresql.models.ServerForUpdate + :type parameters: ~azure.mgmt.rdbms.postgresql.models.ServerUpdateParameters :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, @@ -297,7 +297,7 @@ def get_long_running_output(pipeline_response): ) else: return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) - begin_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/flexibleServers/{serverName}'} # type: ignore + begin_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSQL/servers/{serverName}'} # type: ignore async def _delete_initial( self, @@ -310,7 +310,7 @@ async def _delete_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-02-14-preview" + api_version = "2017-12-01" accept = "application/json" # Construct URL @@ -341,7 +341,7 @@ async def _delete_initial( if cls: return cls(pipeline_response, None, {}) - _delete_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/flexibleServers/{serverName}'} # type: ignore + _delete_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSQL/servers/{serverName}'} # type: ignore async def begin_delete( self, @@ -405,7 +405,7 @@ def get_long_running_output(pipeline_response): ) else: return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) - begin_delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/flexibleServers/{serverName}'} # type: ignore + begin_delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSQL/servers/{serverName}'} # type: ignore async def get( self, @@ -429,7 +429,7 @@ async def get( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-02-14-preview" + api_version = "2017-12-01" accept = "application/json" # Construct URL @@ -463,7 +463,7 @@ async def get( return cls(pipeline_response, deserialized, {}) return deserialized - get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/flexibleServers/{serverName}'} # type: ignore + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSQL/servers/{serverName}'} # type: ignore def list_by_resource_group( self, @@ -484,7 +484,7 @@ def list_by_resource_group( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-02-14-preview" + api_version = "2017-12-01" accept = "application/json" def prepare_request(next_link=None): @@ -516,7 +516,7 @@ async def extract_data(pipeline_response): list_of_elem = deserialized.value if cls: list_of_elem = cls(list_of_elem) - return deserialized.next_link or None, AsyncList(list_of_elem) + return None, AsyncList(list_of_elem) async def get_next(next_link=None): request = prepare_request(next_link) @@ -533,7 +533,7 @@ async def get_next(next_link=None): return AsyncItemPaged( get_next, extract_data ) - list_by_resource_group.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/flexibleServers'} # type: ignore + list_by_resource_group.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSQL/servers'} # type: ignore def list( self, @@ -551,7 +551,7 @@ def list( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-02-14-preview" + api_version = "2017-12-01" accept = "application/json" def prepare_request(next_link=None): @@ -582,7 +582,7 @@ async def extract_data(pipeline_response): list_of_elem = deserialized.value if cls: list_of_elem = cls(list_of_elem) - return deserialized.next_link or None, AsyncList(list_of_elem) + return None, AsyncList(list_of_elem) async def get_next(next_link=None): request = prepare_request(next_link) @@ -599,7 +599,7 @@ async def get_next(next_link=None): return AsyncItemPaged( get_next, extract_data ) - list.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.DBForPostgreSql/flexibleServers'} # type: ignore + list.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.DBForPostgreSQL/servers'} # type: ignore async def _restart_initial( self, @@ -612,7 +612,7 @@ async def _restart_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-02-14-preview" + api_version = "2017-12-01" accept = "application/json" # Construct URL @@ -643,7 +643,7 @@ async def _restart_initial( if cls: return cls(pipeline_response, None, {}) - _restart_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/flexibleServers/{serverName}/restart'} # type: ignore + _restart_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSQL/servers/{serverName}/restart'} # type: ignore async def begin_restart( self, @@ -707,220 +707,4 @@ def get_long_running_output(pipeline_response): ) else: return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) - begin_restart.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/flexibleServers/{serverName}/restart'} # type: ignore - - async def _start_initial( - self, - resource_group_name: str, - server_name: str, - **kwargs - ) -> None: - cls = kwargs.pop('cls', None) # type: ClsType[None] - error_map = { - 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError - } - error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-02-14-preview" - accept = "application/json" - - # Construct URL - url = self._start_initial.metadata['url'] # type: ignore - path_format_arguments = { - 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), - 'serverName': self._serialize.url("server_name", server_name, 'str'), - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') - - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') - - request = self._client.post(url, query_parameters, header_parameters) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) - - _start_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/flexibleServers/{serverName}/start'} # type: ignore - - async def begin_start( - self, - resource_group_name: str, - server_name: str, - **kwargs - ) -> AsyncLROPoller[None]: - """Starts a server. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - :type resource_group_name: str - :param server_name: The name of the server. - :type server_name: str - :keyword callable cls: A custom type or function that will be passed the direct response - :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. - :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] - cls = kwargs.pop('cls', None) # type: ClsType[None] - lro_delay = kwargs.pop( - 'polling_interval', - self._config.polling_interval - ) - cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] - if cont_token is None: - raw_result = await self._start_initial( - resource_group_name=resource_group_name, - server_name=server_name, - cls=lambda x,y,z: x, - **kwargs - ) - - kwargs.pop('error_map', None) - kwargs.pop('content_type', None) - - def get_long_running_output(pipeline_response): - if cls: - return cls(pipeline_response, None, {}) - - path_format_arguments = { - 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), - 'serverName': self._serialize.url("server_name", server_name, 'str'), - } - - if polling is True: polling_method = AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) - elif polling is False: polling_method = AsyncNoPolling() - else: polling_method = polling - if cont_token: - return AsyncLROPoller.from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output - ) - else: - return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) - begin_start.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/flexibleServers/{serverName}/start'} # type: ignore - - async def _stop_initial( - self, - resource_group_name: str, - server_name: str, - **kwargs - ) -> None: - cls = kwargs.pop('cls', None) # type: ClsType[None] - error_map = { - 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError - } - error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-02-14-preview" - accept = "application/json" - - # Construct URL - url = self._stop_initial.metadata['url'] # type: ignore - path_format_arguments = { - 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), - 'serverName': self._serialize.url("server_name", server_name, 'str'), - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') - - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') - - request = self._client.post(url, query_parameters, header_parameters) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) - - _stop_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/flexibleServers/{serverName}/stop'} # type: ignore - - async def begin_stop( - self, - resource_group_name: str, - server_name: str, - **kwargs - ) -> AsyncLROPoller[None]: - """Stops a server. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - :type resource_group_name: str - :param server_name: The name of the server. - :type server_name: str - :keyword callable cls: A custom type or function that will be passed the direct response - :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. - :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. - :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.AsyncLROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] - cls = kwargs.pop('cls', None) # type: ClsType[None] - lro_delay = kwargs.pop( - 'polling_interval', - self._config.polling_interval - ) - cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] - if cont_token is None: - raw_result = await self._stop_initial( - resource_group_name=resource_group_name, - server_name=server_name, - cls=lambda x,y,z: x, - **kwargs - ) - - kwargs.pop('error_map', None) - kwargs.pop('content_type', None) - - def get_long_running_output(pipeline_response): - if cls: - return cls(pipeline_response, None, {}) - - path_format_arguments = { - 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), - 'serverName': self._serialize.url("server_name", server_name, 'str'), - } - - if polling is True: polling_method = AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) - elif polling is False: polling_method = AsyncNoPolling() - else: polling_method = polling - if cont_token: - return AsyncLROPoller.from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output - ) - else: - return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) - begin_stop.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/flexibleServers/{serverName}/stop'} # type: ignore + begin_restart.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSQL/servers/{serverName}/restart'} # type: ignore diff --git a/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/postgresql/aio/operations/_virtual_network_subnet_usage_operations.py b/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/postgresql/aio/operations/_virtual_network_subnet_usage_operations.py deleted file mode 100644 index 9fc5f1e1ca75..000000000000 --- a/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/postgresql/aio/operations/_virtual_network_subnet_usage_operations.py +++ /dev/null @@ -1,103 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from typing import Any, Callable, Dict, Generic, Optional, TypeVar -import warnings - -from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import AsyncHttpResponse, HttpRequest -from azure.mgmt.core.exceptions import ARMErrorFormat - -from ... import models as _models - -T = TypeVar('T') -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - -class VirtualNetworkSubnetUsageOperations: - """VirtualNetworkSubnetUsageOperations async operations. - - You should not instantiate this class directly. Instead, you should create a Client instance that - instantiates it for you and attaches it as an attribute. - - :ivar models: Alias to model classes used in this operation group. - :type models: ~azure.mgmt.rdbms.postgresql.models - :param client: Client for service requests. - :param config: Configuration of service client. - :param serializer: An object model serializer. - :param deserializer: An object model deserializer. - """ - - models = _models - - def __init__(self, client, config, serializer, deserializer) -> None: - self._client = client - self._serialize = serializer - self._deserialize = deserializer - self._config = config - - async def execute( - self, - location_name: str, - parameters: "_models.VirtualNetworkSubnetUsageParameter", - **kwargs - ) -> "_models.VirtualNetworkSubnetUsageResult": - """Get virtual network subnet usage for a given vNet resource id. - - :param location_name: The name of the location. - :type location_name: str - :param parameters: The required parameters for creating or updating a server. - :type parameters: ~azure.mgmt.rdbms.postgresql.models.VirtualNetworkSubnetUsageParameter - :keyword callable cls: A custom type or function that will be passed the direct response - :return: VirtualNetworkSubnetUsageResult, or the result of cls(response) - :rtype: ~azure.mgmt.rdbms.postgresql.models.VirtualNetworkSubnetUsageResult - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualNetworkSubnetUsageResult"] - error_map = { - 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError - } - error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-02-14-preview" - content_type = kwargs.pop("content_type", "application/json") - accept = "application/json" - - # Construct URL - url = self.execute.metadata['url'] # type: ignore - path_format_arguments = { - 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'locationName': self._serialize.url("location_name", location_name, 'str'), - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') - - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') - - body_content_kwargs = {} # type: Dict[str, Any] - body_content = self._serialize.body(parameters, 'VirtualNetworkSubnetUsageParameter') - body_content_kwargs['content'] = body_content - request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize('VirtualNetworkSubnetUsageResult', pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - execute.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.DBForPostgreSql/locations/{locationName}/checkVirtualNetworkSubnetUsage'} # type: ignore diff --git a/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/postgresql/models/__init__.py b/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/postgresql/models/__init__.py index dcd6b080799e..6700f031d93d 100644 --- a/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/postgresql/models/__init__.py +++ b/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/postgresql/models/__init__.py @@ -7,135 +7,207 @@ # -------------------------------------------------------------------------- try: - from ._models_py3 import CapabilitiesListResult - from ._models_py3 import CapabilityProperties from ._models_py3 import Configuration from ._models_py3 import ConfigurationListResult from ._models_py3 import Database from ._models_py3 import DatabaseListResult - from ._models_py3 import DelegatedSubnetUsage from ._models_py3 import ErrorAdditionalInfo from ._models_py3 import ErrorResponse from ._models_py3 import FirewallRule from ._models_py3 import FirewallRuleListResult - from ._models_py3 import Identity - from ._models_py3 import MaintenanceWindow + from ._models_py3 import LogFile + from ._models_py3 import LogFileListResult from ._models_py3 import NameAvailability from ._models_py3 import NameAvailabilityRequest from ._models_py3 import Operation from ._models_py3 import OperationDisplay from ._models_py3 import OperationListResult + from ._models_py3 import PerformanceTierListResult + from ._models_py3 import PerformanceTierProperties + from ._models_py3 import PerformanceTierServiceLevelObjectives + from ._models_py3 import PrivateEndpointConnection + from ._models_py3 import PrivateEndpointConnectionListResult + from ._models_py3 import PrivateEndpointProperty + from ._models_py3 import PrivateLinkResource + from ._models_py3 import PrivateLinkResourceListResult + from ._models_py3 import PrivateLinkResourceProperties + from ._models_py3 import PrivateLinkServiceConnectionStateProperty from ._models_py3 import ProxyResource + from ._models_py3 import RecoverableServerResource from ._models_py3 import Resource + from ._models_py3 import ResourceIdentity from ._models_py3 import Server - from ._models_py3 import ServerEditionCapability - from ._models_py3 import ServerForUpdate + from ._models_py3 import ServerAdministratorResource + from ._models_py3 import ServerAdministratorResourceListResult + from ._models_py3 import ServerForCreate + from ._models_py3 import ServerKey + from ._models_py3 import ServerKeyListResult from ._models_py3 import ServerListResult - from ._models_py3 import ServerPropertiesDelegatedSubnetArguments - from ._models_py3 import ServerPropertiesPrivateDnsZoneArguments - from ._models_py3 import ServerVersionCapability + from ._models_py3 import ServerPrivateEndpointConnection + from ._models_py3 import ServerPrivateEndpointConnectionProperties + from ._models_py3 import ServerPrivateLinkServiceConnectionStateProperty + from ._models_py3 import ServerPropertiesForCreate + from ._models_py3 import ServerPropertiesForDefaultCreate + from ._models_py3 import ServerPropertiesForGeoRestore + from ._models_py3 import ServerPropertiesForReplica + from ._models_py3 import ServerPropertiesForRestore + from ._models_py3 import ServerSecurityAlertPolicy + from ._models_py3 import ServerSecurityAlertPolicyListResult + from ._models_py3 import ServerUpdateParameters from ._models_py3 import Sku - from ._models_py3 import StorageEditionCapability - from ._models_py3 import StorageMBCapability from ._models_py3 import StorageProfile + from ._models_py3 import TagsObject from ._models_py3 import TrackedResource - from ._models_py3 import VcoreCapability - from ._models_py3 import VirtualNetworkSubnetUsageParameter - from ._models_py3 import VirtualNetworkSubnetUsageResult + from ._models_py3 import VirtualNetworkRule + from ._models_py3 import VirtualNetworkRuleListResult except (SyntaxError, ImportError): - from ._models import CapabilitiesListResult # type: ignore - from ._models import CapabilityProperties # type: ignore from ._models import Configuration # type: ignore from ._models import ConfigurationListResult # type: ignore from ._models import Database # type: ignore from ._models import DatabaseListResult # type: ignore - from ._models import DelegatedSubnetUsage # type: ignore from ._models import ErrorAdditionalInfo # type: ignore from ._models import ErrorResponse # type: ignore from ._models import FirewallRule # type: ignore from ._models import FirewallRuleListResult # type: ignore - from ._models import Identity # type: ignore - from ._models import MaintenanceWindow # type: ignore + from ._models import LogFile # type: ignore + from ._models import LogFileListResult # type: ignore from ._models import NameAvailability # type: ignore from ._models import NameAvailabilityRequest # type: ignore from ._models import Operation # type: ignore from ._models import OperationDisplay # type: ignore from ._models import OperationListResult # type: ignore + from ._models import PerformanceTierListResult # type: ignore + from ._models import PerformanceTierProperties # type: ignore + from ._models import PerformanceTierServiceLevelObjectives # type: ignore + from ._models import PrivateEndpointConnection # type: ignore + from ._models import PrivateEndpointConnectionListResult # type: ignore + from ._models import PrivateEndpointProperty # type: ignore + from ._models import PrivateLinkResource # type: ignore + from ._models import PrivateLinkResourceListResult # type: ignore + from ._models import PrivateLinkResourceProperties # type: ignore + from ._models import PrivateLinkServiceConnectionStateProperty # type: ignore from ._models import ProxyResource # type: ignore + from ._models import RecoverableServerResource # type: ignore from ._models import Resource # type: ignore + from ._models import ResourceIdentity # type: ignore from ._models import Server # type: ignore - from ._models import ServerEditionCapability # type: ignore - from ._models import ServerForUpdate # type: ignore + from ._models import ServerAdministratorResource # type: ignore + from ._models import ServerAdministratorResourceListResult # type: ignore + from ._models import ServerForCreate # type: ignore + from ._models import ServerKey # type: ignore + from ._models import ServerKeyListResult # type: ignore from ._models import ServerListResult # type: ignore - from ._models import ServerPropertiesDelegatedSubnetArguments # type: ignore - from ._models import ServerPropertiesPrivateDnsZoneArguments # type: ignore - from ._models import ServerVersionCapability # type: ignore + from ._models import ServerPrivateEndpointConnection # type: ignore + from ._models import ServerPrivateEndpointConnectionProperties # type: ignore + from ._models import ServerPrivateLinkServiceConnectionStateProperty # type: ignore + from ._models import ServerPropertiesForCreate # type: ignore + from ._models import ServerPropertiesForDefaultCreate # type: ignore + from ._models import ServerPropertiesForGeoRestore # type: ignore + from ._models import ServerPropertiesForReplica # type: ignore + from ._models import ServerPropertiesForRestore # type: ignore + from ._models import ServerSecurityAlertPolicy # type: ignore + from ._models import ServerSecurityAlertPolicyListResult # type: ignore + from ._models import ServerUpdateParameters # type: ignore from ._models import Sku # type: ignore - from ._models import StorageEditionCapability # type: ignore - from ._models import StorageMBCapability # type: ignore from ._models import StorageProfile # type: ignore + from ._models import TagsObject # type: ignore from ._models import TrackedResource # type: ignore - from ._models import VcoreCapability # type: ignore - from ._models import VirtualNetworkSubnetUsageParameter # type: ignore - from ._models import VirtualNetworkSubnetUsageResult # type: ignore + from ._models import VirtualNetworkRule # type: ignore + from ._models import VirtualNetworkRuleListResult # type: ignore from ._postgre_sql_management_client_enums import ( - ConfigurationDataType, CreateMode, - Enum8, - HAEnabledEnum, + GeoRedundantBackup, + IdentityType, + InfrastructureEncryption, + MinimalTlsVersionEnum, OperationOrigin, - ServerHAState, - ServerPublicNetworkAccessState, + PrivateEndpointProvisioningState, + PrivateLinkServiceConnectionStateActionsRequire, + PrivateLinkServiceConnectionStateStatus, + PublicNetworkAccessEnum, + SecurityAlertPolicyName, + ServerKeyType, + ServerSecurityAlertPolicyState, ServerState, ServerVersion, SkuTier, + SslEnforcementEnum, + StorageAutogrow, + VirtualNetworkRuleState, ) __all__ = [ - 'CapabilitiesListResult', - 'CapabilityProperties', 'Configuration', 'ConfigurationListResult', 'Database', 'DatabaseListResult', - 'DelegatedSubnetUsage', 'ErrorAdditionalInfo', 'ErrorResponse', 'FirewallRule', 'FirewallRuleListResult', - 'Identity', - 'MaintenanceWindow', + 'LogFile', + 'LogFileListResult', 'NameAvailability', 'NameAvailabilityRequest', 'Operation', 'OperationDisplay', 'OperationListResult', + 'PerformanceTierListResult', + 'PerformanceTierProperties', + 'PerformanceTierServiceLevelObjectives', + 'PrivateEndpointConnection', + 'PrivateEndpointConnectionListResult', + 'PrivateEndpointProperty', + 'PrivateLinkResource', + 'PrivateLinkResourceListResult', + 'PrivateLinkResourceProperties', + 'PrivateLinkServiceConnectionStateProperty', 'ProxyResource', + 'RecoverableServerResource', 'Resource', + 'ResourceIdentity', 'Server', - 'ServerEditionCapability', - 'ServerForUpdate', + 'ServerAdministratorResource', + 'ServerAdministratorResourceListResult', + 'ServerForCreate', + 'ServerKey', + 'ServerKeyListResult', 'ServerListResult', - 'ServerPropertiesDelegatedSubnetArguments', - 'ServerPropertiesPrivateDnsZoneArguments', - 'ServerVersionCapability', + 'ServerPrivateEndpointConnection', + 'ServerPrivateEndpointConnectionProperties', + 'ServerPrivateLinkServiceConnectionStateProperty', + 'ServerPropertiesForCreate', + 'ServerPropertiesForDefaultCreate', + 'ServerPropertiesForGeoRestore', + 'ServerPropertiesForReplica', + 'ServerPropertiesForRestore', + 'ServerSecurityAlertPolicy', + 'ServerSecurityAlertPolicyListResult', + 'ServerUpdateParameters', 'Sku', - 'StorageEditionCapability', - 'StorageMBCapability', 'StorageProfile', + 'TagsObject', 'TrackedResource', - 'VcoreCapability', - 'VirtualNetworkSubnetUsageParameter', - 'VirtualNetworkSubnetUsageResult', - 'ConfigurationDataType', + 'VirtualNetworkRule', + 'VirtualNetworkRuleListResult', 'CreateMode', - 'Enum8', - 'HAEnabledEnum', + 'GeoRedundantBackup', + 'IdentityType', + 'InfrastructureEncryption', + 'MinimalTlsVersionEnum', 'OperationOrigin', - 'ServerHAState', - 'ServerPublicNetworkAccessState', + 'PrivateEndpointProvisioningState', + 'PrivateLinkServiceConnectionStateActionsRequire', + 'PrivateLinkServiceConnectionStateStatus', + 'PublicNetworkAccessEnum', + 'SecurityAlertPolicyName', + 'ServerKeyType', + 'ServerSecurityAlertPolicyState', 'ServerState', 'ServerVersion', 'SkuTier', + 'SslEnforcementEnum', + 'StorageAutogrow', + 'VirtualNetworkRuleState', ] diff --git a/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/postgresql/models/_models.py b/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/postgresql/models/_models.py index c766263004f2..3b5e4bab4f09 100644 --- a/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/postgresql/models/_models.py +++ b/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/postgresql/models/_models.py @@ -9,67 +9,6 @@ import msrest.serialization -class CapabilitiesListResult(msrest.serialization.Model): - """location capability. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar value: A list of supported capabilities. - :vartype value: list[~azure.mgmt.rdbms.postgresql.models.CapabilityProperties] - :ivar next_link: Link to retrieve next page of results. - :vartype next_link: str - """ - - _validation = { - 'value': {'readonly': True}, - 'next_link': {'readonly': True}, - } - - _attribute_map = { - 'value': {'key': 'value', 'type': '[CapabilityProperties]'}, - 'next_link': {'key': 'nextLink', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(CapabilitiesListResult, self).__init__(**kwargs) - self.value = None - self.next_link = None - - -class CapabilityProperties(msrest.serialization.Model): - """Location capabilities. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar zone: zone name. - :vartype zone: str - :ivar supported_flexible_server_editions: - :vartype supported_flexible_server_editions: - list[~azure.mgmt.rdbms.postgresql.models.ServerEditionCapability] - """ - - _validation = { - 'zone': {'readonly': True}, - 'supported_flexible_server_editions': {'readonly': True}, - } - - _attribute_map = { - 'zone': {'key': 'zone', 'type': 'str'}, - 'supported_flexible_server_editions': {'key': 'supportedFlexibleServerEditions', 'type': '[ServerEditionCapability]'}, - } - - def __init__( - self, - **kwargs - ): - super(CapabilityProperties, self).__init__(**kwargs) - self.zone = None - self.supported_flexible_server_editions = None - - class Resource(msrest.serialization.Model): """Common fields that are returned in the response for all Azure Resource Manager resources. @@ -160,9 +99,8 @@ class Configuration(ProxyResource): :vartype description: str :ivar default_value: Default value of the configuration. :vartype default_value: str - :ivar data_type: Data type of the configuration. Possible values include: "Boolean", "Numeric", - "Integer", "Enumeration". - :vartype data_type: str or ~azure.mgmt.rdbms.postgresql.models.ConfigurationDataType + :ivar data_type: Data type of the configuration. + :vartype data_type: str :ivar allowed_values: Allowed values of the configuration. :vartype allowed_values: str :param source: Source of the configuration. @@ -209,13 +147,10 @@ class ConfigurationListResult(msrest.serialization.Model): :param value: The list of server configurations. :type value: list[~azure.mgmt.rdbms.postgresql.models.Configuration] - :param next_link: The link used to get the next page of operations. - :type next_link: str """ _attribute_map = { 'value': {'key': 'value', 'type': '[Configuration]'}, - 'next_link': {'key': 'nextLink', 'type': 'str'}, } def __init__( @@ -224,7 +159,6 @@ def __init__( ): super(ConfigurationListResult, self).__init__(**kwargs) self.value = kwargs.get('value', None) - self.next_link = kwargs.get('next_link', None) class Database(ProxyResource): @@ -274,13 +208,10 @@ class DatabaseListResult(msrest.serialization.Model): :param value: The list of databases housed in a server. :type value: list[~azure.mgmt.rdbms.postgresql.models.Database] - :param next_link: The link used to get the next page of databases. - :type next_link: str """ _attribute_map = { 'value': {'key': 'value', 'type': '[Database]'}, - 'next_link': {'key': 'nextLink', 'type': 'str'}, } def __init__( @@ -289,37 +220,6 @@ def __init__( ): super(DatabaseListResult, self).__init__(**kwargs) self.value = kwargs.get('value', None) - self.next_link = kwargs.get('next_link', None) - - -class DelegatedSubnetUsage(msrest.serialization.Model): - """Delegated subnet usage data. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar subnet_name: name of the subnet. - :vartype subnet_name: str - :ivar usage: Number of used delegated subnets. - :vartype usage: long - """ - - _validation = { - 'subnet_name': {'readonly': True}, - 'usage': {'readonly': True}, - } - - _attribute_map = { - 'subnet_name': {'key': 'subnetName', 'type': 'str'}, - 'usage': {'key': 'usage', 'type': 'long'}, - } - - def __init__( - self, - **kwargs - ): - super(DelegatedSubnetUsage, self).__init__(**kwargs) - self.subnet_name = None - self.usage = None class ErrorAdditionalInfo(msrest.serialization.Model): @@ -330,7 +230,7 @@ class ErrorAdditionalInfo(msrest.serialization.Model): :ivar type: The additional info type. :vartype type: str :ivar info: The additional info. - :vartype info: object + :vartype info: str """ _validation = { @@ -340,7 +240,7 @@ class ErrorAdditionalInfo(msrest.serialization.Model): _attribute_map = { 'type': {'key': 'type', 'type': 'str'}, - 'info': {'key': 'info', 'type': 'object'}, + 'info': {'key': 'info', 'type': 'str'}, } def __init__( @@ -450,13 +350,10 @@ class FirewallRuleListResult(msrest.serialization.Model): :param value: The list of firewall rules in a server. :type value: list[~azure.mgmt.rdbms.postgresql.models.FirewallRule] - :param next_link: The link used to get the next page of operations. - :type next_link: str """ _attribute_map = { 'value': {'key': 'value', 'type': '[FirewallRule]'}, - 'next_link': {'key': 'nextLink', 'type': 'str'}, } def __init__( @@ -465,74 +362,81 @@ def __init__( ): super(FirewallRuleListResult, self).__init__(**kwargs) self.value = kwargs.get('value', None) - self.next_link = kwargs.get('next_link', None) -class Identity(msrest.serialization.Model): - """Identity for the resource. +class LogFile(ProxyResource): + """Represents a log file. Variables are only populated by the server, and will be ignored when sending a request. - :ivar principal_id: The principal ID of resource identity. - :vartype principal_id: str - :ivar tenant_id: The tenant ID of resource. - :vartype tenant_id: str - :ivar type: The identity type. Default value: "SystemAssigned". + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. + :vartype id: str + :ivar name: The name of the resource. + :vartype name: str + :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + "Microsoft.Storage/storageAccounts". :vartype type: str + :param size_in_kb: Size of the log file. + :type size_in_kb: long + :ivar created_time: Creation timestamp of the log file. + :vartype created_time: ~datetime.datetime + :ivar last_modified_time: Last modified timestamp of the log file. + :vartype last_modified_time: ~datetime.datetime + :param type_properties_type: Type of the log file. + :type type_properties_type: str + :param url: The url to download the log file from. + :type url: str """ _validation = { - 'principal_id': {'readonly': True}, - 'tenant_id': {'readonly': True}, - 'type': {'constant': True}, + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'created_time': {'readonly': True}, + 'last_modified_time': {'readonly': True}, } _attribute_map = { - 'principal_id': {'key': 'principalId', 'type': 'str'}, - 'tenant_id': {'key': 'tenantId', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, 'type': {'key': 'type', 'type': 'str'}, + 'size_in_kb': {'key': 'properties.sizeInKB', 'type': 'long'}, + 'created_time': {'key': 'properties.createdTime', 'type': 'iso-8601'}, + 'last_modified_time': {'key': 'properties.lastModifiedTime', 'type': 'iso-8601'}, + 'type_properties_type': {'key': 'properties.type', 'type': 'str'}, + 'url': {'key': 'properties.url', 'type': 'str'}, } - type = "SystemAssigned" - def __init__( self, **kwargs ): - super(Identity, self).__init__(**kwargs) - self.principal_id = None - self.tenant_id = None + super(LogFile, self).__init__(**kwargs) + self.size_in_kb = kwargs.get('size_in_kb', None) + self.created_time = None + self.last_modified_time = None + self.type_properties_type = kwargs.get('type_properties_type', None) + self.url = kwargs.get('url', None) -class MaintenanceWindow(msrest.serialization.Model): - """Maintenance window of a server. +class LogFileListResult(msrest.serialization.Model): + """A list of log files. - :param custom_window: indicates whether custom window is enabled or disabled. - :type custom_window: str - :param start_hour: start hour for maintenance window. - :type start_hour: int - :param start_minute: start minute for maintenance window. - :type start_minute: int - :param day_of_week: day of week for maintenance window. - :type day_of_week: int + :param value: The list of log files. + :type value: list[~azure.mgmt.rdbms.postgresql.models.LogFile] """ _attribute_map = { - 'custom_window': {'key': 'customWindow', 'type': 'str'}, - 'start_hour': {'key': 'startHour', 'type': 'int'}, - 'start_minute': {'key': 'startMinute', 'type': 'int'}, - 'day_of_week': {'key': 'dayOfWeek', 'type': 'int'}, + 'value': {'key': 'value', 'type': '[LogFile]'}, } def __init__( self, **kwargs ): - super(MaintenanceWindow, self).__init__(**kwargs) - self.custom_window = kwargs.get('custom_window', None) - self.start_hour = kwargs.get('start_hour', None) - self.start_minute = kwargs.get('start_minute', None) - self.day_of_week = kwargs.get('day_of_week', None) + super(LogFileListResult, self).__init__(**kwargs) + self.value = kwargs.get('value', None) class NameAvailability(msrest.serialization.Model): @@ -542,17 +446,14 @@ class NameAvailability(msrest.serialization.Model): :type message: str :param name_available: Indicates whether the resource name is available. :type name_available: bool - :param name: name of the PostgreSQL server. - :type name: str - :param type: type of the server. - :type type: str + :param reason: Reason for name being unavailable. + :type reason: str """ _attribute_map = { 'message': {'key': 'message', 'type': 'str'}, 'name_available': {'key': 'nameAvailable', 'type': 'bool'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, + 'reason': {'key': 'reason', 'type': 'str'}, } def __init__( @@ -562,8 +463,7 @@ def __init__( super(NameAvailability, self).__init__(**kwargs) self.message = kwargs.get('message', None) self.name_available = kwargs.get('name_available', None) - self.name = kwargs.get('name', None) - self.type = kwargs.get('type', None) + self.reason = kwargs.get('reason', None) class NameAvailabilityRequest(msrest.serialization.Model): @@ -604,13 +504,11 @@ class Operation(msrest.serialization.Model): :vartype name: str :ivar display: The localized display information for this particular operation or action. :vartype display: ~azure.mgmt.rdbms.postgresql.models.OperationDisplay - :param is_data_action: Indicates whether the operation is a data action. - :type is_data_action: bool :ivar origin: The intended executor of the operation. Possible values include: "NotSpecified", "user", "system". :vartype origin: str or ~azure.mgmt.rdbms.postgresql.models.OperationOrigin :ivar properties: Additional descriptions for the operation. - :vartype properties: dict[str, object] + :vartype properties: dict[str, str] """ _validation = { @@ -623,9 +521,8 @@ class Operation(msrest.serialization.Model): _attribute_map = { 'name': {'key': 'name', 'type': 'str'}, 'display': {'key': 'display', 'type': 'OperationDisplay'}, - 'is_data_action': {'key': 'isDataAction', 'type': 'bool'}, 'origin': {'key': 'origin', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': '{object}'}, + 'properties': {'key': 'properties', 'type': '{str}'}, } def __init__( @@ -635,7 +532,6 @@ def __init__( super(Operation, self).__init__(**kwargs) self.name = None self.display = None - self.is_data_action = kwargs.get('is_data_action', None) self.origin = None self.properties = None @@ -683,16 +579,12 @@ def __init__( class OperationListResult(msrest.serialization.Model): """A list of resource provider operations. - :param value: Collection of available operation details. + :param value: The list of resource provider operations. :type value: list[~azure.mgmt.rdbms.postgresql.models.Operation] - :param next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :type next_link: str """ _attribute_map = { 'value': {'key': 'value', 'type': '[Operation]'}, - 'next_link': {'key': 'nextLink', 'type': 'str'}, } def __init__( @@ -701,61 +593,131 @@ def __init__( ): super(OperationListResult, self).__init__(**kwargs) self.value = kwargs.get('value', None) - self.next_link = kwargs.get('next_link', None) -class TrackedResource(Resource): - """The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location'. +class PerformanceTierListResult(msrest.serialization.Model): + """A list of performance tiers. - Variables are only populated by the server, and will be ignored when sending a request. + :param value: The list of performance tiers. + :type value: list[~azure.mgmt.rdbms.postgresql.models.PerformanceTierProperties] + """ - All required parameters must be populated in order to send to Azure. + _attribute_map = { + 'value': {'key': 'value', 'type': '[PerformanceTierProperties]'}, + } - :ivar id: Fully qualified resource ID for the resource. Ex - - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or - "Microsoft.Storage/storageAccounts". - :vartype type: str - :param tags: A set of tags. Resource tags. - :type tags: dict[str, str] - :param location: Required. The geo-location where the resource lives. - :type location: str + def __init__( + self, + **kwargs + ): + super(PerformanceTierListResult, self).__init__(**kwargs) + self.value = kwargs.get('value', None) + + +class PerformanceTierProperties(msrest.serialization.Model): + """Performance tier properties. + + :param id: ID of the performance tier. + :type id: str + :param max_backup_retention_days: Maximum Backup retention in days for the performance tier + edition. + :type max_backup_retention_days: int + :param min_backup_retention_days: Minimum Backup retention in days for the performance tier + edition. + :type min_backup_retention_days: int + :param max_storage_mb: Max storage allowed for a server. + :type max_storage_mb: int + :param min_large_storage_mb: Max storage allowed for a server. + :type min_large_storage_mb: int + :param max_large_storage_mb: Max storage allowed for a server. + :type max_large_storage_mb: int + :param min_storage_mb: Max storage allowed for a server. + :type min_storage_mb: int + :param service_level_objectives: Service level objectives associated with the performance tier. + :type service_level_objectives: + list[~azure.mgmt.rdbms.postgresql.models.PerformanceTierServiceLevelObjectives] """ - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'location': {'required': True}, + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'max_backup_retention_days': {'key': 'maxBackupRetentionDays', 'type': 'int'}, + 'min_backup_retention_days': {'key': 'minBackupRetentionDays', 'type': 'int'}, + 'max_storage_mb': {'key': 'maxStorageMB', 'type': 'int'}, + 'min_large_storage_mb': {'key': 'minLargeStorageMB', 'type': 'int'}, + 'max_large_storage_mb': {'key': 'maxLargeStorageMB', 'type': 'int'}, + 'min_storage_mb': {'key': 'minStorageMB', 'type': 'int'}, + 'service_level_objectives': {'key': 'serviceLevelObjectives', 'type': '[PerformanceTierServiceLevelObjectives]'}, } + def __init__( + self, + **kwargs + ): + super(PerformanceTierProperties, self).__init__(**kwargs) + self.id = kwargs.get('id', None) + self.max_backup_retention_days = kwargs.get('max_backup_retention_days', None) + self.min_backup_retention_days = kwargs.get('min_backup_retention_days', None) + self.max_storage_mb = kwargs.get('max_storage_mb', None) + self.min_large_storage_mb = kwargs.get('min_large_storage_mb', None) + self.max_large_storage_mb = kwargs.get('max_large_storage_mb', None) + self.min_storage_mb = kwargs.get('min_storage_mb', None) + self.service_level_objectives = kwargs.get('service_level_objectives', None) + + +class PerformanceTierServiceLevelObjectives(msrest.serialization.Model): + """Service level objectives for performance tier. + + :param id: ID for the service level objective. + :type id: str + :param edition: Edition of the performance tier. + :type edition: str + :param v_core: vCore associated with the service level objective. + :type v_core: int + :param hardware_generation: Hardware generation associated with the service level objective. + :type hardware_generation: str + :param max_backup_retention_days: Maximum Backup retention in days for the performance tier + edition. + :type max_backup_retention_days: int + :param min_backup_retention_days: Minimum Backup retention in days for the performance tier + edition. + :type min_backup_retention_days: int + :param max_storage_mb: Max storage allowed for a server. + :type max_storage_mb: int + :param min_storage_mb: Max storage allowed for a server. + :type min_storage_mb: int + """ + _attribute_map = { 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'location': {'key': 'location', 'type': 'str'}, + 'edition': {'key': 'edition', 'type': 'str'}, + 'v_core': {'key': 'vCore', 'type': 'int'}, + 'hardware_generation': {'key': 'hardwareGeneration', 'type': 'str'}, + 'max_backup_retention_days': {'key': 'maxBackupRetentionDays', 'type': 'int'}, + 'min_backup_retention_days': {'key': 'minBackupRetentionDays', 'type': 'int'}, + 'max_storage_mb': {'key': 'maxStorageMB', 'type': 'int'}, + 'min_storage_mb': {'key': 'minStorageMB', 'type': 'int'}, } def __init__( self, **kwargs ): - super(TrackedResource, self).__init__(**kwargs) - self.tags = kwargs.get('tags', None) - self.location = kwargs['location'] + super(PerformanceTierServiceLevelObjectives, self).__init__(**kwargs) + self.id = kwargs.get('id', None) + self.edition = kwargs.get('edition', None) + self.v_core = kwargs.get('v_core', None) + self.hardware_generation = kwargs.get('hardware_generation', None) + self.max_backup_retention_days = kwargs.get('max_backup_retention_days', None) + self.min_backup_retention_days = kwargs.get('min_backup_retention_days', None) + self.max_storage_mb = kwargs.get('max_storage_mb', None) + self.min_storage_mb = kwargs.get('min_storage_mb', None) -class Server(TrackedResource): - """Represents a server. +class PrivateEndpointConnection(ProxyResource): + """A private endpoint connection. Variables are only populated by the server, and will be ignored when sending a request. - All required parameters must be populated in order to send to Azure. - :ivar id: Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. :vartype id: str @@ -764,523 +726,1448 @@ class Server(TrackedResource): :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts". :vartype type: str - :param tags: A set of tags. Resource tags. - :type tags: dict[str, str] - :param location: Required. The geo-location where the resource lives. - :type location: str - :param identity: The Azure Active Directory identity of the server. - :type identity: ~azure.mgmt.rdbms.postgresql.models.Identity - :param sku: The SKU (pricing tier) of the server. - :type sku: ~azure.mgmt.rdbms.postgresql.models.Sku - :param administrator_login: The administrator's login name of a server. Can only be specified - when the server is being created (and is required for creation). - :type administrator_login: str - :param administrator_login_password: The administrator login password (required for server - creation). - :type administrator_login_password: str - :param version: PostgreSQL Server version. Possible values include: "12", "11". - :type version: str or ~azure.mgmt.rdbms.postgresql.models.ServerVersion - :ivar state: A state of a server that is visible to user. Possible values include: "Ready", - "Dropping", "Disabled", "Starting", "Stopping", "Stopped", "Updating". - :vartype state: str or ~azure.mgmt.rdbms.postgresql.models.ServerState - :ivar ha_state: A state of a HA server that is visible to user. Possible values include: - "NotEnabled", "CreatingStandby", "ReplicatingData", "FailingOver", "Healthy", - "RemovingStandby". - :vartype ha_state: str or ~azure.mgmt.rdbms.postgresql.models.ServerHAState - :ivar fully_qualified_domain_name: The fully qualified domain name of a server. - :vartype fully_qualified_domain_name: str - :param display_name: The display name of a server. - :type display_name: str - :param storage_profile: Storage profile of a server. - :type storage_profile: ~azure.mgmt.rdbms.postgresql.models.StorageProfile - :ivar public_network_access: public network access is enabled or not. Possible values include: - "Enabled", "Disabled". - :vartype public_network_access: str or - ~azure.mgmt.rdbms.postgresql.models.ServerPublicNetworkAccessState - :param maintenance_window: Maintenance window of a server. - :type maintenance_window: ~azure.mgmt.rdbms.postgresql.models.MaintenanceWindow - :param ha_enabled: stand by count value can be either enabled or disabled. Possible values - include: "Enabled", "Disabled". - :type ha_enabled: str or ~azure.mgmt.rdbms.postgresql.models.HAEnabledEnum - :param source_server_name: The source PostgreSQL server name to restore from. - :type source_server_name: str - :param source_subscription_id: The subscription id of source serve PostgreSQL server name to - restore from. - :type source_subscription_id: str - :param source_resource_group_name: The resource group name of source serve PostgreSQL server - name to restore from. - :type source_resource_group_name: str - :param point_in_time_utc: Restore point creation time (ISO8601 format), specifying the time to - restore from. - :type point_in_time_utc: ~datetime.datetime - :param availability_zone: availability Zone information of the server. - :type availability_zone: str - :ivar standby_availability_zone: availability Zone information of the server. - :vartype standby_availability_zone: str - :ivar byok_enforcement: Status showing whether the data encryption is enabled with - customer-managed keys. - :vartype byok_enforcement: str - :param delegated_subnet_arguments: - :type delegated_subnet_arguments: - ~azure.mgmt.rdbms.postgresql.models.ServerPropertiesDelegatedSubnetArguments - :param private_dns_zone_arguments: - :type private_dns_zone_arguments: - ~azure.mgmt.rdbms.postgresql.models.ServerPropertiesPrivateDnsZoneArguments - :param create_mode: The mode to create a new PostgreSQL server. Possible values include: - "Default", "PointInTimeRestore". - :type create_mode: str or ~azure.mgmt.rdbms.postgresql.models.CreateMode - :param tags_properties_tags: Application-specific metadata in the form of key-value pairs. - :type tags_properties_tags: dict[str, str] + :param private_endpoint: Private endpoint which the connection belongs to. + :type private_endpoint: ~azure.mgmt.rdbms.postgresql.models.PrivateEndpointProperty + :param private_link_service_connection_state: Connection state of the private endpoint + connection. + :type private_link_service_connection_state: + ~azure.mgmt.rdbms.postgresql.models.PrivateLinkServiceConnectionStateProperty + :ivar provisioning_state: State of the private endpoint connection. + :vartype provisioning_state: str """ _validation = { 'id': {'readonly': True}, 'name': {'readonly': True}, 'type': {'readonly': True}, - 'location': {'required': True}, - 'state': {'readonly': True}, - 'ha_state': {'readonly': True}, - 'fully_qualified_domain_name': {'readonly': True}, - 'public_network_access': {'readonly': True}, - 'standby_availability_zone': {'readonly': True}, - 'byok_enforcement': {'readonly': True}, + 'provisioning_state': {'readonly': True}, } _attribute_map = { 'id': {'key': 'id', 'type': 'str'}, 'name': {'key': 'name', 'type': 'str'}, 'type': {'key': 'type', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'location': {'key': 'location', 'type': 'str'}, - 'identity': {'key': 'identity', 'type': 'Identity'}, - 'sku': {'key': 'sku', 'type': 'Sku'}, - 'administrator_login': {'key': 'properties.administratorLogin', 'type': 'str'}, - 'administrator_login_password': {'key': 'properties.administratorLoginPassword', 'type': 'str'}, - 'version': {'key': 'properties.version', 'type': 'str'}, - 'state': {'key': 'properties.state', 'type': 'str'}, - 'ha_state': {'key': 'properties.haState', 'type': 'str'}, - 'fully_qualified_domain_name': {'key': 'properties.fullyQualifiedDomainName', 'type': 'str'}, - 'display_name': {'key': 'properties.displayName', 'type': 'str'}, - 'storage_profile': {'key': 'properties.storageProfile', 'type': 'StorageProfile'}, - 'public_network_access': {'key': 'properties.publicNetworkAccess', 'type': 'str'}, - 'maintenance_window': {'key': 'properties.maintenanceWindow', 'type': 'MaintenanceWindow'}, - 'ha_enabled': {'key': 'properties.haEnabled', 'type': 'str'}, - 'source_server_name': {'key': 'properties.sourceServerName', 'type': 'str'}, - 'source_subscription_id': {'key': 'properties.sourceSubscriptionId', 'type': 'str'}, - 'source_resource_group_name': {'key': 'properties.sourceResourceGroupName', 'type': 'str'}, - 'point_in_time_utc': {'key': 'properties.pointInTimeUTC', 'type': 'iso-8601'}, - 'availability_zone': {'key': 'properties.availabilityZone', 'type': 'str'}, - 'standby_availability_zone': {'key': 'properties.standbyAvailabilityZone', 'type': 'str'}, - 'byok_enforcement': {'key': 'properties.byokEnforcement', 'type': 'str'}, - 'delegated_subnet_arguments': {'key': 'properties.delegatedSubnetArguments', 'type': 'ServerPropertiesDelegatedSubnetArguments'}, - 'private_dns_zone_arguments': {'key': 'properties.privateDnsZoneArguments', 'type': 'ServerPropertiesPrivateDnsZoneArguments'}, - 'create_mode': {'key': 'properties.createMode', 'type': 'str'}, - 'tags_properties_tags': {'key': 'properties.tags', 'type': '{str}'}, + 'private_endpoint': {'key': 'properties.privateEndpoint', 'type': 'PrivateEndpointProperty'}, + 'private_link_service_connection_state': {'key': 'properties.privateLinkServiceConnectionState', 'type': 'PrivateLinkServiceConnectionStateProperty'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, } def __init__( self, **kwargs ): - super(Server, self).__init__(**kwargs) - self.identity = kwargs.get('identity', None) - self.sku = kwargs.get('sku', None) - self.administrator_login = kwargs.get('administrator_login', None) - self.administrator_login_password = kwargs.get('administrator_login_password', None) - self.version = kwargs.get('version', None) - self.state = None - self.ha_state = None - self.fully_qualified_domain_name = None - self.display_name = kwargs.get('display_name', None) - self.storage_profile = kwargs.get('storage_profile', None) - self.public_network_access = None - self.maintenance_window = kwargs.get('maintenance_window', None) - self.ha_enabled = kwargs.get('ha_enabled', None) - self.source_server_name = kwargs.get('source_server_name', None) - self.source_subscription_id = kwargs.get('source_subscription_id', None) - self.source_resource_group_name = kwargs.get('source_resource_group_name', None) - self.point_in_time_utc = kwargs.get('point_in_time_utc', None) - self.availability_zone = kwargs.get('availability_zone', None) - self.standby_availability_zone = None - self.byok_enforcement = None - self.delegated_subnet_arguments = kwargs.get('delegated_subnet_arguments', None) - self.private_dns_zone_arguments = kwargs.get('private_dns_zone_arguments', None) - self.create_mode = kwargs.get('create_mode', None) - self.tags_properties_tags = kwargs.get('tags_properties_tags', None) + super(PrivateEndpointConnection, self).__init__(**kwargs) + self.private_endpoint = kwargs.get('private_endpoint', None) + self.private_link_service_connection_state = kwargs.get('private_link_service_connection_state', None) + self.provisioning_state = None -class ServerEditionCapability(msrest.serialization.Model): - """Server edition capabilities. +class PrivateEndpointConnectionListResult(msrest.serialization.Model): + """A list of private endpoint connections. Variables are only populated by the server, and will be ignored when sending a request. - :ivar name: Server edition name. - :vartype name: str - :ivar supported_storage_editions: - :vartype supported_storage_editions: - list[~azure.mgmt.rdbms.postgresql.models.StorageEditionCapability] - :ivar supported_server_versions: - :vartype supported_server_versions: - list[~azure.mgmt.rdbms.postgresql.models.ServerVersionCapability] + :ivar value: Array of results. + :vartype value: list[~azure.mgmt.rdbms.postgresql.models.PrivateEndpointConnection] + :ivar next_link: Link to retrieve next page of results. + :vartype next_link: str """ _validation = { - 'name': {'readonly': True}, - 'supported_storage_editions': {'readonly': True}, - 'supported_server_versions': {'readonly': True}, + 'value': {'readonly': True}, + 'next_link': {'readonly': True}, } _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'supported_storage_editions': {'key': 'supportedStorageEditions', 'type': '[StorageEditionCapability]'}, - 'supported_server_versions': {'key': 'supportedServerVersions', 'type': '[ServerVersionCapability]'}, + 'value': {'key': 'value', 'type': '[PrivateEndpointConnection]'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, } def __init__( self, **kwargs ): - super(ServerEditionCapability, self).__init__(**kwargs) - self.name = None - self.supported_storage_editions = None - self.supported_server_versions = None + super(PrivateEndpointConnectionListResult, self).__init__(**kwargs) + self.value = None + self.next_link = None -class ServerForUpdate(msrest.serialization.Model): - """Represents a server to be updated. +class PrivateEndpointProperty(msrest.serialization.Model): + """PrivateEndpointProperty. - :param location: The location the resource resides in. - :type location: str - :param sku: The SKU (pricing tier) of the server. - :type sku: ~azure.mgmt.rdbms.postgresql.models.Sku - :param tags: A set of tags. Application-specific metadata in the form of key-value pairs. - :type tags: dict[str, str] - :param administrator_login_password: The password of the administrator login. - :type administrator_login_password: str - :param storage_profile: Storage profile of a server. - :type storage_profile: ~azure.mgmt.rdbms.postgresql.models.StorageProfile - :param ha_enabled: stand by count value can be either enabled or disabled. Possible values - include: "Enabled", "Disabled". - :type ha_enabled: str or ~azure.mgmt.rdbms.postgresql.models.HAEnabledEnum - :param maintenance_window: Maintenance window of a server. - :type maintenance_window: ~azure.mgmt.rdbms.postgresql.models.MaintenanceWindow + :param id: Resource id of the private endpoint. + :type id: str """ _attribute_map = { - 'location': {'key': 'location', 'type': 'str'}, - 'sku': {'key': 'sku', 'type': 'Sku'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'administrator_login_password': {'key': 'properties.administratorLoginPassword', 'type': 'str'}, - 'storage_profile': {'key': 'properties.storageProfile', 'type': 'StorageProfile'}, - 'ha_enabled': {'key': 'properties.haEnabled', 'type': 'str'}, - 'maintenance_window': {'key': 'properties.maintenanceWindow', 'type': 'MaintenanceWindow'}, + 'id': {'key': 'id', 'type': 'str'}, } def __init__( self, **kwargs ): - super(ServerForUpdate, self).__init__(**kwargs) - self.location = kwargs.get('location', None) - self.sku = kwargs.get('sku', None) - self.tags = kwargs.get('tags', None) - self.administrator_login_password = kwargs.get('administrator_login_password', None) - self.storage_profile = kwargs.get('storage_profile', None) - self.ha_enabled = kwargs.get('ha_enabled', None) - self.maintenance_window = kwargs.get('maintenance_window', None) + super(PrivateEndpointProperty, self).__init__(**kwargs) + self.id = kwargs.get('id', None) -class ServerListResult(msrest.serialization.Model): - """A list of servers. +class PrivateLinkResource(ProxyResource): + """A private link resource. - :param value: The list of flexible servers. - :type value: list[~azure.mgmt.rdbms.postgresql.models.Server] - :param next_link: The link used to get the next page of operations. - :type next_link: str + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. + :vartype id: str + :ivar name: The name of the resource. + :vartype name: str + :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + "Microsoft.Storage/storageAccounts". + :vartype type: str + :ivar properties: The private link resource group id. + :vartype properties: ~azure.mgmt.rdbms.postgresql.models.PrivateLinkResourceProperties """ + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'properties': {'readonly': True}, + } + _attribute_map = { - 'value': {'key': 'value', 'type': '[Server]'}, - 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'PrivateLinkResourceProperties'}, } def __init__( self, **kwargs ): - super(ServerListResult, self).__init__(**kwargs) - self.value = kwargs.get('value', None) - self.next_link = kwargs.get('next_link', None) + super(PrivateLinkResource, self).__init__(**kwargs) + self.properties = None -class ServerPropertiesDelegatedSubnetArguments(msrest.serialization.Model): - """ServerPropertiesDelegatedSubnetArguments. +class PrivateLinkResourceListResult(msrest.serialization.Model): + """A list of private link resources. - :param subnet_arm_resource_id: delegated subnet arm resource id. - :type subnet_arm_resource_id: str + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar value: Array of results. + :vartype value: list[~azure.mgmt.rdbms.postgresql.models.PrivateLinkResource] + :ivar next_link: Link to retrieve next page of results. + :vartype next_link: str """ + _validation = { + 'value': {'readonly': True}, + 'next_link': {'readonly': True}, + } + _attribute_map = { - 'subnet_arm_resource_id': {'key': 'subnetArmResourceId', 'type': 'str'}, + 'value': {'key': 'value', 'type': '[PrivateLinkResource]'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, } def __init__( self, **kwargs ): - super(ServerPropertiesDelegatedSubnetArguments, self).__init__(**kwargs) - self.subnet_arm_resource_id = kwargs.get('subnet_arm_resource_id', None) + super(PrivateLinkResourceListResult, self).__init__(**kwargs) + self.value = None + self.next_link = None -class ServerPropertiesPrivateDnsZoneArguments(msrest.serialization.Model): - """ServerPropertiesPrivateDnsZoneArguments. +class PrivateLinkResourceProperties(msrest.serialization.Model): + """Properties of a private link resource. - :param private_dns_zone_arm_resource_id: private dns zone arm resource id. - :type private_dns_zone_arm_resource_id: str + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar group_id: The private link resource group id. + :vartype group_id: str + :ivar required_members: The private link resource required member names. + :vartype required_members: list[str] """ - _attribute_map = { - 'private_dns_zone_arm_resource_id': {'key': 'privateDnsZoneArmResourceId', 'type': 'str'}, + _validation = { + 'group_id': {'readonly': True}, + 'required_members': {'readonly': True}, + } + + _attribute_map = { + 'group_id': {'key': 'groupId', 'type': 'str'}, + 'required_members': {'key': 'requiredMembers', 'type': '[str]'}, + } + + def __init__( + self, + **kwargs + ): + super(PrivateLinkResourceProperties, self).__init__(**kwargs) + self.group_id = None + self.required_members = None + + +class PrivateLinkServiceConnectionStateProperty(msrest.serialization.Model): + """PrivateLinkServiceConnectionStateProperty. + + Variables are only populated by the server, and will be ignored when sending a request. + + All required parameters must be populated in order to send to Azure. + + :param status: Required. The private link service connection status. + :type status: str + :param description: Required. The private link service connection description. + :type description: str + :ivar actions_required: The actions required for private link service connection. + :vartype actions_required: str + """ + + _validation = { + 'status': {'required': True}, + 'description': {'required': True}, + 'actions_required': {'readonly': True}, + } + + _attribute_map = { + 'status': {'key': 'status', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'actions_required': {'key': 'actionsRequired', 'type': 'str'}, } def __init__( self, **kwargs ): - super(ServerPropertiesPrivateDnsZoneArguments, self).__init__(**kwargs) - self.private_dns_zone_arm_resource_id = kwargs.get('private_dns_zone_arm_resource_id', None) + super(PrivateLinkServiceConnectionStateProperty, self).__init__(**kwargs) + self.status = kwargs['status'] + self.description = kwargs['description'] + self.actions_required = None -class ServerVersionCapability(msrest.serialization.Model): - """Server version capabilities. +class RecoverableServerResource(ProxyResource): + """A recoverable server resource. Variables are only populated by the server, and will be ignored when sending a request. - :ivar name: server version. + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. + :vartype id: str + :ivar name: The name of the resource. :vartype name: str - :ivar supported_vcores: - :vartype supported_vcores: list[~azure.mgmt.rdbms.postgresql.models.VcoreCapability] + :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + "Microsoft.Storage/storageAccounts". + :vartype type: str + :ivar last_available_backup_date_time: The last available backup date time. + :vartype last_available_backup_date_time: str + :ivar service_level_objective: The service level objective. + :vartype service_level_objective: str + :ivar edition: Edition of the performance tier. + :vartype edition: str + :ivar v_core: vCore associated with the service level objective. + :vartype v_core: int + :ivar hardware_generation: Hardware generation associated with the service level objective. + :vartype hardware_generation: str + :ivar version: The PostgreSQL version. + :vartype version: str """ _validation = { + 'id': {'readonly': True}, 'name': {'readonly': True}, - 'supported_vcores': {'readonly': True}, + 'type': {'readonly': True}, + 'last_available_backup_date_time': {'readonly': True}, + 'service_level_objective': {'readonly': True}, + 'edition': {'readonly': True}, + 'v_core': {'readonly': True}, + 'hardware_generation': {'readonly': True}, + 'version': {'readonly': True}, } _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, 'name': {'key': 'name', 'type': 'str'}, - 'supported_vcores': {'key': 'supportedVcores', 'type': '[VcoreCapability]'}, + 'type': {'key': 'type', 'type': 'str'}, + 'last_available_backup_date_time': {'key': 'properties.lastAvailableBackupDateTime', 'type': 'str'}, + 'service_level_objective': {'key': 'properties.serviceLevelObjective', 'type': 'str'}, + 'edition': {'key': 'properties.edition', 'type': 'str'}, + 'v_core': {'key': 'properties.vCore', 'type': 'int'}, + 'hardware_generation': {'key': 'properties.hardwareGeneration', 'type': 'str'}, + 'version': {'key': 'properties.version', 'type': 'str'}, } def __init__( self, **kwargs ): - super(ServerVersionCapability, self).__init__(**kwargs) - self.name = None - self.supported_vcores = None + super(RecoverableServerResource, self).__init__(**kwargs) + self.last_available_backup_date_time = None + self.service_level_objective = None + self.edition = None + self.v_core = None + self.hardware_generation = None + self.version = None -class Sku(msrest.serialization.Model): - """Sku information related properties of a server. +class ResourceIdentity(msrest.serialization.Model): + """Azure Active Directory identity configuration for a resource. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar principal_id: The Azure Active Directory principal id. + :vartype principal_id: str + :param type: The identity type. Set this to 'SystemAssigned' in order to automatically create + and assign an Azure Active Directory principal for the resource. Possible values include: + "SystemAssigned". + :type type: str or ~azure.mgmt.rdbms.postgresql.models.IdentityType + :ivar tenant_id: The Azure Active Directory tenant id. + :vartype tenant_id: str + """ + + _validation = { + 'principal_id': {'readonly': True}, + 'tenant_id': {'readonly': True}, + } + + _attribute_map = { + 'principal_id': {'key': 'principalId', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'tenant_id': {'key': 'tenantId', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(ResourceIdentity, self).__init__(**kwargs) + self.principal_id = None + self.type = kwargs.get('type', None) + self.tenant_id = None + + +class TrackedResource(Resource): + """The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location'. + + Variables are only populated by the server, and will be ignored when sending a request. All required parameters must be populated in order to send to Azure. - :param name: Required. The name of the sku, typically, tier + family + cores, e.g. - Standard_D4s_v3. - :type name: str - :param tier: Required. The tier of the particular SKU, e.g. Burstable. Possible values include: - "Burstable", "GeneralPurpose", "MemoryOptimized". - :type tier: str or ~azure.mgmt.rdbms.postgresql.models.SkuTier + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. + :vartype id: str + :ivar name: The name of the resource. + :vartype name: str + :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + "Microsoft.Storage/storageAccounts". + :vartype type: str + :param tags: A set of tags. Resource tags. + :type tags: dict[str, str] + :param location: Required. The geo-location where the resource lives. + :type location: str """ _validation = { - 'name': {'required': True}, - 'tier': {'required': True}, + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'location': {'required': True}, } _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, 'name': {'key': 'name', 'type': 'str'}, - 'tier': {'key': 'tier', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'location': {'key': 'location', 'type': 'str'}, } def __init__( self, **kwargs ): - super(Sku, self).__init__(**kwargs) - self.name = kwargs['name'] - self.tier = kwargs['tier'] + super(TrackedResource, self).__init__(**kwargs) + self.tags = kwargs.get('tags', None) + self.location = kwargs['location'] -class StorageEditionCapability(msrest.serialization.Model): - """storage edition capability. +class Server(TrackedResource): + """Represents a server. Variables are only populated by the server, and will be ignored when sending a request. - :ivar name: storage edition name. + All required parameters must be populated in order to send to Azure. + + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. + :vartype id: str + :ivar name: The name of the resource. :vartype name: str - :ivar supported_storage_mb: - :vartype supported_storage_mb: list[~azure.mgmt.rdbms.postgresql.models.StorageMBCapability] + :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + "Microsoft.Storage/storageAccounts". + :vartype type: str + :param tags: A set of tags. Resource tags. + :type tags: dict[str, str] + :param location: Required. The geo-location where the resource lives. + :type location: str + :param identity: The Azure Active Directory identity of the server. + :type identity: ~azure.mgmt.rdbms.postgresql.models.ResourceIdentity + :param sku: The SKU (pricing tier) of the server. + :type sku: ~azure.mgmt.rdbms.postgresql.models.Sku + :param administrator_login: The administrator's login name of a server. Can only be specified + when the server is being created (and is required for creation). + :type administrator_login: str + :param version: Server version. Possible values include: "9.5", "9.6", "10", "10.0", "10.2", + "11". + :type version: str or ~azure.mgmt.rdbms.postgresql.models.ServerVersion + :param ssl_enforcement: Enable ssl enforcement or not when connect to server. Possible values + include: "Enabled", "Disabled". + :type ssl_enforcement: str or ~azure.mgmt.rdbms.postgresql.models.SslEnforcementEnum + :param minimal_tls_version: Enforce a minimal Tls version for the server. Possible values + include: "TLS1_0", "TLS1_1", "TLS1_2", "TLSEnforcementDisabled". + :type minimal_tls_version: str or ~azure.mgmt.rdbms.postgresql.models.MinimalTlsVersionEnum + :ivar byok_enforcement: Status showing whether the server data encryption is enabled with + customer-managed keys. + :vartype byok_enforcement: str + :param infrastructure_encryption: Status showing whether the server enabled infrastructure + encryption. Possible values include: "Enabled", "Disabled". + :type infrastructure_encryption: str or + ~azure.mgmt.rdbms.postgresql.models.InfrastructureEncryption + :param user_visible_state: A state of a server that is visible to user. Possible values + include: "Ready", "Dropping", "Disabled", "Inaccessible". + :type user_visible_state: str or ~azure.mgmt.rdbms.postgresql.models.ServerState + :param fully_qualified_domain_name: The fully qualified domain name of a server. + :type fully_qualified_domain_name: str + :param earliest_restore_date: Earliest restore point creation time (ISO8601 format). + :type earliest_restore_date: ~datetime.datetime + :param storage_profile: Storage profile of a server. + :type storage_profile: ~azure.mgmt.rdbms.postgresql.models.StorageProfile + :param replication_role: The replication role of the server. + :type replication_role: str + :param master_server_id: The master server id of a replica server. + :type master_server_id: str + :param replica_capacity: The maximum number of replicas that a master server can have. + :type replica_capacity: int + :param public_network_access: Whether or not public network access is allowed for this server. + Value is optional but if passed in, must be 'Enabled' or 'Disabled'. Possible values include: + "Enabled", "Disabled". + :type public_network_access: str or ~azure.mgmt.rdbms.postgresql.models.PublicNetworkAccessEnum + :ivar private_endpoint_connections: List of private endpoint connections on a server. + :vartype private_endpoint_connections: + list[~azure.mgmt.rdbms.postgresql.models.ServerPrivateEndpointConnection] """ _validation = { + 'id': {'readonly': True}, 'name': {'readonly': True}, - 'supported_storage_mb': {'readonly': True}, + 'type': {'readonly': True}, + 'location': {'required': True}, + 'byok_enforcement': {'readonly': True}, + 'replica_capacity': {'minimum': 0}, + 'private_endpoint_connections': {'readonly': True}, } _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, 'name': {'key': 'name', 'type': 'str'}, - 'supported_storage_mb': {'key': 'supportedStorageMB', 'type': '[StorageMBCapability]'}, + 'type': {'key': 'type', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'location': {'key': 'location', 'type': 'str'}, + 'identity': {'key': 'identity', 'type': 'ResourceIdentity'}, + 'sku': {'key': 'sku', 'type': 'Sku'}, + 'administrator_login': {'key': 'properties.administratorLogin', 'type': 'str'}, + 'version': {'key': 'properties.version', 'type': 'str'}, + 'ssl_enforcement': {'key': 'properties.sslEnforcement', 'type': 'str'}, + 'minimal_tls_version': {'key': 'properties.minimalTlsVersion', 'type': 'str'}, + 'byok_enforcement': {'key': 'properties.byokEnforcement', 'type': 'str'}, + 'infrastructure_encryption': {'key': 'properties.infrastructureEncryption', 'type': 'str'}, + 'user_visible_state': {'key': 'properties.userVisibleState', 'type': 'str'}, + 'fully_qualified_domain_name': {'key': 'properties.fullyQualifiedDomainName', 'type': 'str'}, + 'earliest_restore_date': {'key': 'properties.earliestRestoreDate', 'type': 'iso-8601'}, + 'storage_profile': {'key': 'properties.storageProfile', 'type': 'StorageProfile'}, + 'replication_role': {'key': 'properties.replicationRole', 'type': 'str'}, + 'master_server_id': {'key': 'properties.masterServerId', 'type': 'str'}, + 'replica_capacity': {'key': 'properties.replicaCapacity', 'type': 'int'}, + 'public_network_access': {'key': 'properties.publicNetworkAccess', 'type': 'str'}, + 'private_endpoint_connections': {'key': 'properties.privateEndpointConnections', 'type': '[ServerPrivateEndpointConnection]'}, } def __init__( self, **kwargs ): - super(StorageEditionCapability, self).__init__(**kwargs) - self.name = None - self.supported_storage_mb = None + super(Server, self).__init__(**kwargs) + self.identity = kwargs.get('identity', None) + self.sku = kwargs.get('sku', None) + self.administrator_login = kwargs.get('administrator_login', None) + self.version = kwargs.get('version', None) + self.ssl_enforcement = kwargs.get('ssl_enforcement', None) + self.minimal_tls_version = kwargs.get('minimal_tls_version', None) + self.byok_enforcement = None + self.infrastructure_encryption = kwargs.get('infrastructure_encryption', None) + self.user_visible_state = kwargs.get('user_visible_state', None) + self.fully_qualified_domain_name = kwargs.get('fully_qualified_domain_name', None) + self.earliest_restore_date = kwargs.get('earliest_restore_date', None) + self.storage_profile = kwargs.get('storage_profile', None) + self.replication_role = kwargs.get('replication_role', None) + self.master_server_id = kwargs.get('master_server_id', None) + self.replica_capacity = kwargs.get('replica_capacity', None) + self.public_network_access = kwargs.get('public_network_access', None) + self.private_endpoint_connections = None -class StorageMBCapability(msrest.serialization.Model): - """storage size in MB capability. +class ServerAdministratorResource(ProxyResource): + """Represents a and external administrator to be created. Variables are only populated by the server, and will be ignored when sending a request. - :ivar name: storage MB name. + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. + :vartype id: str + :ivar name: The name of the resource. :vartype name: str - :ivar supported_iops: supported IOPS. - :vartype supported_iops: long - :ivar storage_size_mb: storage size in MB. - :vartype storage_size_mb: long + :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + "Microsoft.Storage/storageAccounts". + :vartype type: str + :ivar administrator_type: The type of administrator. Default value: "ActiveDirectory". + :vartype administrator_type: str + :param login: The server administrator login account name. + :type login: str + :param sid: The server administrator Sid (Secure ID). + :type sid: str + :param tenant_id: The server Active Directory Administrator tenant id. + :type tenant_id: str """ _validation = { + 'id': {'readonly': True}, 'name': {'readonly': True}, - 'supported_iops': {'readonly': True}, - 'storage_size_mb': {'readonly': True}, + 'type': {'readonly': True}, + 'administrator_type': {'constant': True}, } _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, 'name': {'key': 'name', 'type': 'str'}, - 'supported_iops': {'key': 'supportedIops', 'type': 'long'}, - 'storage_size_mb': {'key': 'storageSizeMB', 'type': 'long'}, + 'type': {'key': 'type', 'type': 'str'}, + 'administrator_type': {'key': 'properties.administratorType', 'type': 'str'}, + 'login': {'key': 'properties.login', 'type': 'str'}, + 'sid': {'key': 'properties.sid', 'type': 'str'}, + 'tenant_id': {'key': 'properties.tenantId', 'type': 'str'}, } + administrator_type = "ActiveDirectory" + def __init__( self, **kwargs ): - super(StorageMBCapability, self).__init__(**kwargs) - self.name = None - self.supported_iops = None - self.storage_size_mb = None + super(ServerAdministratorResource, self).__init__(**kwargs) + self.login = kwargs.get('login', None) + self.sid = kwargs.get('sid', None) + self.tenant_id = kwargs.get('tenant_id', None) -class StorageProfile(msrest.serialization.Model): - """Storage Profile properties of a server. +class ServerAdministratorResourceListResult(msrest.serialization.Model): + """The response to a list Active Directory Administrators request. - :param backup_retention_days: Backup retention days for the server. - :type backup_retention_days: int - :param storage_mb: Max storage allowed for a server. - :type storage_mb: int + :param value: The list of server Active Directory Administrators for the server. + :type value: list[~azure.mgmt.rdbms.postgresql.models.ServerAdministratorResource] """ _attribute_map = { - 'backup_retention_days': {'key': 'backupRetentionDays', 'type': 'int'}, - 'storage_mb': {'key': 'storageMB', 'type': 'int'}, + 'value': {'key': 'value', 'type': '[ServerAdministratorResource]'}, } def __init__( self, **kwargs ): - super(StorageProfile, self).__init__(**kwargs) - self.backup_retention_days = kwargs.get('backup_retention_days', None) - self.storage_mb = kwargs.get('storage_mb', None) + super(ServerAdministratorResourceListResult, self).__init__(**kwargs) + self.value = kwargs.get('value', None) + + +class ServerForCreate(msrest.serialization.Model): + """Represents a server to be created. + + All required parameters must be populated in order to send to Azure. + + :param identity: The Azure Active Directory identity of the server. + :type identity: ~azure.mgmt.rdbms.postgresql.models.ResourceIdentity + :param sku: The SKU (pricing tier) of the server. + :type sku: ~azure.mgmt.rdbms.postgresql.models.Sku + :param properties: Required. Properties of the server. + :type properties: ~azure.mgmt.rdbms.postgresql.models.ServerPropertiesForCreate + :param location: Required. The location the resource resides in. + :type location: str + :param tags: A set of tags. Application-specific metadata in the form of key-value pairs. + :type tags: dict[str, str] + """ + + _validation = { + 'properties': {'required': True}, + 'location': {'required': True}, + } + + _attribute_map = { + 'identity': {'key': 'identity', 'type': 'ResourceIdentity'}, + 'sku': {'key': 'sku', 'type': 'Sku'}, + 'properties': {'key': 'properties', 'type': 'ServerPropertiesForCreate'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + } + + def __init__( + self, + **kwargs + ): + super(ServerForCreate, self).__init__(**kwargs) + self.identity = kwargs.get('identity', None) + self.sku = kwargs.get('sku', None) + self.properties = kwargs['properties'] + self.location = kwargs['location'] + self.tags = kwargs.get('tags', None) -class VcoreCapability(msrest.serialization.Model): - """Vcores capability. +class ServerKey(ProxyResource): + """A PostgreSQL Server key. Variables are only populated by the server, and will be ignored when sending a request. - :ivar name: vCore name. + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. + :vartype id: str + :ivar name: The name of the resource. :vartype name: str - :ivar v_cores: supported vCores. - :vartype v_cores: long - :ivar supported_iops: supported IOPS. - :vartype supported_iops: long - :ivar supported_memory_per_vcore_mb: supported memory per vCore in MB. - :vartype supported_memory_per_vcore_mb: long + :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + "Microsoft.Storage/storageAccounts". + :vartype type: str + :ivar kind: Kind of encryption protector used to protect the key. + :vartype kind: str + :param server_key_type: The key type like 'AzureKeyVault'. Possible values include: + "AzureKeyVault". + :type server_key_type: str or ~azure.mgmt.rdbms.postgresql.models.ServerKeyType + :param uri: The URI of the key. + :type uri: str + :ivar creation_date: The key creation date. + :vartype creation_date: ~datetime.datetime """ _validation = { + 'id': {'readonly': True}, 'name': {'readonly': True}, - 'v_cores': {'readonly': True}, - 'supported_iops': {'readonly': True}, - 'supported_memory_per_vcore_mb': {'readonly': True}, + 'type': {'readonly': True}, + 'kind': {'readonly': True}, + 'creation_date': {'readonly': True}, } _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, 'name': {'key': 'name', 'type': 'str'}, - 'v_cores': {'key': 'vCores', 'type': 'long'}, - 'supported_iops': {'key': 'supportedIops', 'type': 'long'}, - 'supported_memory_per_vcore_mb': {'key': 'supportedMemoryPerVcoreMB', 'type': 'long'}, + 'type': {'key': 'type', 'type': 'str'}, + 'kind': {'key': 'kind', 'type': 'str'}, + 'server_key_type': {'key': 'properties.serverKeyType', 'type': 'str'}, + 'uri': {'key': 'properties.uri', 'type': 'str'}, + 'creation_date': {'key': 'properties.creationDate', 'type': 'iso-8601'}, } def __init__( self, **kwargs ): - super(VcoreCapability, self).__init__(**kwargs) - self.name = None - self.v_cores = None - self.supported_iops = None - self.supported_memory_per_vcore_mb = None + super(ServerKey, self).__init__(**kwargs) + self.kind = None + self.server_key_type = kwargs.get('server_key_type', None) + self.uri = kwargs.get('uri', None) + self.creation_date = None + + +class ServerKeyListResult(msrest.serialization.Model): + """A list of PostgreSQL Server keys. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar value: A list of PostgreSQL Server keys. + :vartype value: list[~azure.mgmt.rdbms.postgresql.models.ServerKey] + :ivar next_link: Link to retrieve next page of results. + :vartype next_link: str + """ + + _validation = { + 'value': {'readonly': True}, + 'next_link': {'readonly': True}, + } + + _attribute_map = { + 'value': {'key': 'value', 'type': '[ServerKey]'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(ServerKeyListResult, self).__init__(**kwargs) + self.value = None + self.next_link = None -class VirtualNetworkSubnetUsageParameter(msrest.serialization.Model): - """Virtual network subnet usage parameter. +class ServerListResult(msrest.serialization.Model): + """A list of servers. - :param virtual_network_arm_resource_id: Virtual network resource id. - :type virtual_network_arm_resource_id: str + :param value: The list of servers. + :type value: list[~azure.mgmt.rdbms.postgresql.models.Server] """ _attribute_map = { - 'virtual_network_arm_resource_id': {'key': 'virtualNetworkArmResourceId', 'type': 'str'}, + 'value': {'key': 'value', 'type': '[Server]'}, } def __init__( self, **kwargs ): - super(VirtualNetworkSubnetUsageParameter, self).__init__(**kwargs) - self.virtual_network_arm_resource_id = kwargs.get('virtual_network_arm_resource_id', None) + super(ServerListResult, self).__init__(**kwargs) + self.value = kwargs.get('value', None) -class VirtualNetworkSubnetUsageResult(msrest.serialization.Model): - """Virtual network subnet usage data. +class ServerPrivateEndpointConnection(msrest.serialization.Model): + """A private endpoint connection under a server. Variables are only populated by the server, and will be ignored when sending a request. - :ivar delegated_subnets_usage: - :vartype delegated_subnets_usage: - list[~azure.mgmt.rdbms.postgresql.models.DelegatedSubnetUsage] + :ivar id: Resource ID of the Private Endpoint Connection. + :vartype id: str + :ivar properties: Private endpoint connection properties. + :vartype properties: + ~azure.mgmt.rdbms.postgresql.models.ServerPrivateEndpointConnectionProperties """ _validation = { - 'delegated_subnets_usage': {'readonly': True}, + 'id': {'readonly': True}, + 'properties': {'readonly': True}, } _attribute_map = { - 'delegated_subnets_usage': {'key': 'delegatedSubnetsUsage', 'type': '[DelegatedSubnetUsage]'}, + 'id': {'key': 'id', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'ServerPrivateEndpointConnectionProperties'}, } def __init__( self, **kwargs ): - super(VirtualNetworkSubnetUsageResult, self).__init__(**kwargs) - self.delegated_subnets_usage = None + super(ServerPrivateEndpointConnection, self).__init__(**kwargs) + self.id = None + self.properties = None + + +class ServerPrivateEndpointConnectionProperties(msrest.serialization.Model): + """Properties of a private endpoint connection. + + Variables are only populated by the server, and will be ignored when sending a request. + + :param private_endpoint: Private endpoint which the connection belongs to. + :type private_endpoint: ~azure.mgmt.rdbms.postgresql.models.PrivateEndpointProperty + :param private_link_service_connection_state: Connection state of the private endpoint + connection. + :type private_link_service_connection_state: + ~azure.mgmt.rdbms.postgresql.models.ServerPrivateLinkServiceConnectionStateProperty + :ivar provisioning_state: State of the private endpoint connection. Possible values include: + "Approving", "Ready", "Dropping", "Failed", "Rejecting". + :vartype provisioning_state: str or + ~azure.mgmt.rdbms.postgresql.models.PrivateEndpointProvisioningState + """ + + _validation = { + 'provisioning_state': {'readonly': True}, + } + + _attribute_map = { + 'private_endpoint': {'key': 'privateEndpoint', 'type': 'PrivateEndpointProperty'}, + 'private_link_service_connection_state': {'key': 'privateLinkServiceConnectionState', 'type': 'ServerPrivateLinkServiceConnectionStateProperty'}, + 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(ServerPrivateEndpointConnectionProperties, self).__init__(**kwargs) + self.private_endpoint = kwargs.get('private_endpoint', None) + self.private_link_service_connection_state = kwargs.get('private_link_service_connection_state', None) + self.provisioning_state = None + + +class ServerPrivateLinkServiceConnectionStateProperty(msrest.serialization.Model): + """ServerPrivateLinkServiceConnectionStateProperty. + + Variables are only populated by the server, and will be ignored when sending a request. + + All required parameters must be populated in order to send to Azure. + + :param status: Required. The private link service connection status. Possible values include: + "Approved", "Pending", "Rejected", "Disconnected". + :type status: str or + ~azure.mgmt.rdbms.postgresql.models.PrivateLinkServiceConnectionStateStatus + :param description: Required. The private link service connection description. + :type description: str + :ivar actions_required: The actions required for private link service connection. Possible + values include: "None". + :vartype actions_required: str or + ~azure.mgmt.rdbms.postgresql.models.PrivateLinkServiceConnectionStateActionsRequire + """ + + _validation = { + 'status': {'required': True}, + 'description': {'required': True}, + 'actions_required': {'readonly': True}, + } + + _attribute_map = { + 'status': {'key': 'status', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'actions_required': {'key': 'actionsRequired', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(ServerPrivateLinkServiceConnectionStateProperty, self).__init__(**kwargs) + self.status = kwargs['status'] + self.description = kwargs['description'] + self.actions_required = None + + +class ServerPropertiesForCreate(msrest.serialization.Model): + """The properties used to create a new server. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: ServerPropertiesForDefaultCreate, ServerPropertiesForGeoRestore, ServerPropertiesForRestore, ServerPropertiesForReplica. + + All required parameters must be populated in order to send to Azure. + + :param version: Server version. Possible values include: "9.5", "9.6", "10", "10.0", "10.2", + "11". + :type version: str or ~azure.mgmt.rdbms.postgresql.models.ServerVersion + :param ssl_enforcement: Enable ssl enforcement or not when connect to server. Possible values + include: "Enabled", "Disabled". + :type ssl_enforcement: str or ~azure.mgmt.rdbms.postgresql.models.SslEnforcementEnum + :param minimal_tls_version: Enforce a minimal Tls version for the server. Possible values + include: "TLS1_0", "TLS1_1", "TLS1_2", "TLSEnforcementDisabled". + :type minimal_tls_version: str or ~azure.mgmt.rdbms.postgresql.models.MinimalTlsVersionEnum + :param infrastructure_encryption: Status showing whether the server enabled infrastructure + encryption. Possible values include: "Enabled", "Disabled". + :type infrastructure_encryption: str or + ~azure.mgmt.rdbms.postgresql.models.InfrastructureEncryption + :param public_network_access: Whether or not public network access is allowed for this server. + Value is optional but if passed in, must be 'Enabled' or 'Disabled'. Possible values include: + "Enabled", "Disabled". + :type public_network_access: str or ~azure.mgmt.rdbms.postgresql.models.PublicNetworkAccessEnum + :param storage_profile: Storage profile of a server. + :type storage_profile: ~azure.mgmt.rdbms.postgresql.models.StorageProfile + :param create_mode: Required. The mode to create a new server.Constant filled by server. + Possible values include: "Default", "PointInTimeRestore", "GeoRestore", "Replica". + :type create_mode: str or ~azure.mgmt.rdbms.postgresql.models.CreateMode + """ + + _validation = { + 'create_mode': {'required': True}, + } + + _attribute_map = { + 'version': {'key': 'version', 'type': 'str'}, + 'ssl_enforcement': {'key': 'sslEnforcement', 'type': 'str'}, + 'minimal_tls_version': {'key': 'minimalTlsVersion', 'type': 'str'}, + 'infrastructure_encryption': {'key': 'infrastructureEncryption', 'type': 'str'}, + 'public_network_access': {'key': 'publicNetworkAccess', 'type': 'str'}, + 'storage_profile': {'key': 'storageProfile', 'type': 'StorageProfile'}, + 'create_mode': {'key': 'createMode', 'type': 'str'}, + } + + _subtype_map = { + 'create_mode': {'Default': 'ServerPropertiesForDefaultCreate', 'GeoRestore': 'ServerPropertiesForGeoRestore', 'PointInTimeRestore': 'ServerPropertiesForRestore', 'Replica': 'ServerPropertiesForReplica'} + } + + def __init__( + self, + **kwargs + ): + super(ServerPropertiesForCreate, self).__init__(**kwargs) + self.version = kwargs.get('version', None) + self.ssl_enforcement = kwargs.get('ssl_enforcement', None) + self.minimal_tls_version = kwargs.get('minimal_tls_version', None) + self.infrastructure_encryption = kwargs.get('infrastructure_encryption', None) + self.public_network_access = kwargs.get('public_network_access', None) + self.storage_profile = kwargs.get('storage_profile', None) + self.create_mode = None # type: Optional[str] + + +class ServerPropertiesForDefaultCreate(ServerPropertiesForCreate): + """The properties used to create a new server. + + All required parameters must be populated in order to send to Azure. + + :param version: Server version. Possible values include: "9.5", "9.6", "10", "10.0", "10.2", + "11". + :type version: str or ~azure.mgmt.rdbms.postgresql.models.ServerVersion + :param ssl_enforcement: Enable ssl enforcement or not when connect to server. Possible values + include: "Enabled", "Disabled". + :type ssl_enforcement: str or ~azure.mgmt.rdbms.postgresql.models.SslEnforcementEnum + :param minimal_tls_version: Enforce a minimal Tls version for the server. Possible values + include: "TLS1_0", "TLS1_1", "TLS1_2", "TLSEnforcementDisabled". + :type minimal_tls_version: str or ~azure.mgmt.rdbms.postgresql.models.MinimalTlsVersionEnum + :param infrastructure_encryption: Status showing whether the server enabled infrastructure + encryption. Possible values include: "Enabled", "Disabled". + :type infrastructure_encryption: str or + ~azure.mgmt.rdbms.postgresql.models.InfrastructureEncryption + :param public_network_access: Whether or not public network access is allowed for this server. + Value is optional but if passed in, must be 'Enabled' or 'Disabled'. Possible values include: + "Enabled", "Disabled". + :type public_network_access: str or ~azure.mgmt.rdbms.postgresql.models.PublicNetworkAccessEnum + :param storage_profile: Storage profile of a server. + :type storage_profile: ~azure.mgmt.rdbms.postgresql.models.StorageProfile + :param create_mode: Required. The mode to create a new server.Constant filled by server. + Possible values include: "Default", "PointInTimeRestore", "GeoRestore", "Replica". + :type create_mode: str or ~azure.mgmt.rdbms.postgresql.models.CreateMode + :param administrator_login: Required. The administrator's login name of a server. Can only be + specified when the server is being created (and is required for creation). + :type administrator_login: str + :param administrator_login_password: Required. The password of the administrator login. + :type administrator_login_password: str + """ + + _validation = { + 'create_mode': {'required': True}, + 'administrator_login': {'required': True}, + 'administrator_login_password': {'required': True}, + } + + _attribute_map = { + 'version': {'key': 'version', 'type': 'str'}, + 'ssl_enforcement': {'key': 'sslEnforcement', 'type': 'str'}, + 'minimal_tls_version': {'key': 'minimalTlsVersion', 'type': 'str'}, + 'infrastructure_encryption': {'key': 'infrastructureEncryption', 'type': 'str'}, + 'public_network_access': {'key': 'publicNetworkAccess', 'type': 'str'}, + 'storage_profile': {'key': 'storageProfile', 'type': 'StorageProfile'}, + 'create_mode': {'key': 'createMode', 'type': 'str'}, + 'administrator_login': {'key': 'administratorLogin', 'type': 'str'}, + 'administrator_login_password': {'key': 'administratorLoginPassword', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(ServerPropertiesForDefaultCreate, self).__init__(**kwargs) + self.create_mode = 'Default' # type: str + self.administrator_login = kwargs['administrator_login'] + self.administrator_login_password = kwargs['administrator_login_password'] + + +class ServerPropertiesForGeoRestore(ServerPropertiesForCreate): + """The properties used to create a new server by restoring to a different region from a geo replicated backup. + + All required parameters must be populated in order to send to Azure. + + :param version: Server version. Possible values include: "9.5", "9.6", "10", "10.0", "10.2", + "11". + :type version: str or ~azure.mgmt.rdbms.postgresql.models.ServerVersion + :param ssl_enforcement: Enable ssl enforcement or not when connect to server. Possible values + include: "Enabled", "Disabled". + :type ssl_enforcement: str or ~azure.mgmt.rdbms.postgresql.models.SslEnforcementEnum + :param minimal_tls_version: Enforce a minimal Tls version for the server. Possible values + include: "TLS1_0", "TLS1_1", "TLS1_2", "TLSEnforcementDisabled". + :type minimal_tls_version: str or ~azure.mgmt.rdbms.postgresql.models.MinimalTlsVersionEnum + :param infrastructure_encryption: Status showing whether the server enabled infrastructure + encryption. Possible values include: "Enabled", "Disabled". + :type infrastructure_encryption: str or + ~azure.mgmt.rdbms.postgresql.models.InfrastructureEncryption + :param public_network_access: Whether or not public network access is allowed for this server. + Value is optional but if passed in, must be 'Enabled' or 'Disabled'. Possible values include: + "Enabled", "Disabled". + :type public_network_access: str or ~azure.mgmt.rdbms.postgresql.models.PublicNetworkAccessEnum + :param storage_profile: Storage profile of a server. + :type storage_profile: ~azure.mgmt.rdbms.postgresql.models.StorageProfile + :param create_mode: Required. The mode to create a new server.Constant filled by server. + Possible values include: "Default", "PointInTimeRestore", "GeoRestore", "Replica". + :type create_mode: str or ~azure.mgmt.rdbms.postgresql.models.CreateMode + :param source_server_id: Required. The source server id to restore from. + :type source_server_id: str + """ + + _validation = { + 'create_mode': {'required': True}, + 'source_server_id': {'required': True}, + } + + _attribute_map = { + 'version': {'key': 'version', 'type': 'str'}, + 'ssl_enforcement': {'key': 'sslEnforcement', 'type': 'str'}, + 'minimal_tls_version': {'key': 'minimalTlsVersion', 'type': 'str'}, + 'infrastructure_encryption': {'key': 'infrastructureEncryption', 'type': 'str'}, + 'public_network_access': {'key': 'publicNetworkAccess', 'type': 'str'}, + 'storage_profile': {'key': 'storageProfile', 'type': 'StorageProfile'}, + 'create_mode': {'key': 'createMode', 'type': 'str'}, + 'source_server_id': {'key': 'sourceServerId', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(ServerPropertiesForGeoRestore, self).__init__(**kwargs) + self.create_mode = 'GeoRestore' # type: str + self.source_server_id = kwargs['source_server_id'] + + +class ServerPropertiesForReplica(ServerPropertiesForCreate): + """The properties to create a new replica. + + All required parameters must be populated in order to send to Azure. + + :param version: Server version. Possible values include: "9.5", "9.6", "10", "10.0", "10.2", + "11". + :type version: str or ~azure.mgmt.rdbms.postgresql.models.ServerVersion + :param ssl_enforcement: Enable ssl enforcement or not when connect to server. Possible values + include: "Enabled", "Disabled". + :type ssl_enforcement: str or ~azure.mgmt.rdbms.postgresql.models.SslEnforcementEnum + :param minimal_tls_version: Enforce a minimal Tls version for the server. Possible values + include: "TLS1_0", "TLS1_1", "TLS1_2", "TLSEnforcementDisabled". + :type minimal_tls_version: str or ~azure.mgmt.rdbms.postgresql.models.MinimalTlsVersionEnum + :param infrastructure_encryption: Status showing whether the server enabled infrastructure + encryption. Possible values include: "Enabled", "Disabled". + :type infrastructure_encryption: str or + ~azure.mgmt.rdbms.postgresql.models.InfrastructureEncryption + :param public_network_access: Whether or not public network access is allowed for this server. + Value is optional but if passed in, must be 'Enabled' or 'Disabled'. Possible values include: + "Enabled", "Disabled". + :type public_network_access: str or ~azure.mgmt.rdbms.postgresql.models.PublicNetworkAccessEnum + :param storage_profile: Storage profile of a server. + :type storage_profile: ~azure.mgmt.rdbms.postgresql.models.StorageProfile + :param create_mode: Required. The mode to create a new server.Constant filled by server. + Possible values include: "Default", "PointInTimeRestore", "GeoRestore", "Replica". + :type create_mode: str or ~azure.mgmt.rdbms.postgresql.models.CreateMode + :param source_server_id: Required. The master server id to create replica from. + :type source_server_id: str + """ + + _validation = { + 'create_mode': {'required': True}, + 'source_server_id': {'required': True}, + } + + _attribute_map = { + 'version': {'key': 'version', 'type': 'str'}, + 'ssl_enforcement': {'key': 'sslEnforcement', 'type': 'str'}, + 'minimal_tls_version': {'key': 'minimalTlsVersion', 'type': 'str'}, + 'infrastructure_encryption': {'key': 'infrastructureEncryption', 'type': 'str'}, + 'public_network_access': {'key': 'publicNetworkAccess', 'type': 'str'}, + 'storage_profile': {'key': 'storageProfile', 'type': 'StorageProfile'}, + 'create_mode': {'key': 'createMode', 'type': 'str'}, + 'source_server_id': {'key': 'sourceServerId', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(ServerPropertiesForReplica, self).__init__(**kwargs) + self.create_mode = 'Replica' # type: str + self.source_server_id = kwargs['source_server_id'] + + +class ServerPropertiesForRestore(ServerPropertiesForCreate): + """The properties used to create a new server by restoring from a backup. + + All required parameters must be populated in order to send to Azure. + + :param version: Server version. Possible values include: "9.5", "9.6", "10", "10.0", "10.2", + "11". + :type version: str or ~azure.mgmt.rdbms.postgresql.models.ServerVersion + :param ssl_enforcement: Enable ssl enforcement or not when connect to server. Possible values + include: "Enabled", "Disabled". + :type ssl_enforcement: str or ~azure.mgmt.rdbms.postgresql.models.SslEnforcementEnum + :param minimal_tls_version: Enforce a minimal Tls version for the server. Possible values + include: "TLS1_0", "TLS1_1", "TLS1_2", "TLSEnforcementDisabled". + :type minimal_tls_version: str or ~azure.mgmt.rdbms.postgresql.models.MinimalTlsVersionEnum + :param infrastructure_encryption: Status showing whether the server enabled infrastructure + encryption. Possible values include: "Enabled", "Disabled". + :type infrastructure_encryption: str or + ~azure.mgmt.rdbms.postgresql.models.InfrastructureEncryption + :param public_network_access: Whether or not public network access is allowed for this server. + Value is optional but if passed in, must be 'Enabled' or 'Disabled'. Possible values include: + "Enabled", "Disabled". + :type public_network_access: str or ~azure.mgmt.rdbms.postgresql.models.PublicNetworkAccessEnum + :param storage_profile: Storage profile of a server. + :type storage_profile: ~azure.mgmt.rdbms.postgresql.models.StorageProfile + :param create_mode: Required. The mode to create a new server.Constant filled by server. + Possible values include: "Default", "PointInTimeRestore", "GeoRestore", "Replica". + :type create_mode: str or ~azure.mgmt.rdbms.postgresql.models.CreateMode + :param source_server_id: Required. The source server id to restore from. + :type source_server_id: str + :param restore_point_in_time: Required. Restore point creation time (ISO8601 format), + specifying the time to restore from. + :type restore_point_in_time: ~datetime.datetime + """ + + _validation = { + 'create_mode': {'required': True}, + 'source_server_id': {'required': True}, + 'restore_point_in_time': {'required': True}, + } + + _attribute_map = { + 'version': {'key': 'version', 'type': 'str'}, + 'ssl_enforcement': {'key': 'sslEnforcement', 'type': 'str'}, + 'minimal_tls_version': {'key': 'minimalTlsVersion', 'type': 'str'}, + 'infrastructure_encryption': {'key': 'infrastructureEncryption', 'type': 'str'}, + 'public_network_access': {'key': 'publicNetworkAccess', 'type': 'str'}, + 'storage_profile': {'key': 'storageProfile', 'type': 'StorageProfile'}, + 'create_mode': {'key': 'createMode', 'type': 'str'}, + 'source_server_id': {'key': 'sourceServerId', 'type': 'str'}, + 'restore_point_in_time': {'key': 'restorePointInTime', 'type': 'iso-8601'}, + } + + def __init__( + self, + **kwargs + ): + super(ServerPropertiesForRestore, self).__init__(**kwargs) + self.create_mode = 'PointInTimeRestore' # type: str + self.source_server_id = kwargs['source_server_id'] + self.restore_point_in_time = kwargs['restore_point_in_time'] + + +class ServerSecurityAlertPolicy(ProxyResource): + """A server security alert policy. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. + :vartype id: str + :ivar name: The name of the resource. + :vartype name: str + :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + "Microsoft.Storage/storageAccounts". + :vartype type: str + :param state: Specifies the state of the policy, whether it is enabled or disabled. Possible + values include: "Enabled", "Disabled". + :type state: str or ~azure.mgmt.rdbms.postgresql.models.ServerSecurityAlertPolicyState + :param disabled_alerts: Specifies an array of alerts that are disabled. Allowed values are: + Sql_Injection, Sql_Injection_Vulnerability, Access_Anomaly. + :type disabled_alerts: list[str] + :param email_addresses: Specifies an array of e-mail addresses to which the alert is sent. + :type email_addresses: list[str] + :param email_account_admins: Specifies that the alert is sent to the account administrators. + :type email_account_admins: bool + :param storage_endpoint: Specifies the blob storage endpoint (e.g. + https://MyAccount.blob.core.windows.net). This blob storage will hold all Threat Detection + audit logs. + :type storage_endpoint: str + :param storage_account_access_key: Specifies the identifier key of the Threat Detection audit + storage account. + :type storage_account_access_key: str + :param retention_days: Specifies the number of days to keep in the Threat Detection audit logs. + :type retention_days: int + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'state': {'key': 'properties.state', 'type': 'str'}, + 'disabled_alerts': {'key': 'properties.disabledAlerts', 'type': '[str]'}, + 'email_addresses': {'key': 'properties.emailAddresses', 'type': '[str]'}, + 'email_account_admins': {'key': 'properties.emailAccountAdmins', 'type': 'bool'}, + 'storage_endpoint': {'key': 'properties.storageEndpoint', 'type': 'str'}, + 'storage_account_access_key': {'key': 'properties.storageAccountAccessKey', 'type': 'str'}, + 'retention_days': {'key': 'properties.retentionDays', 'type': 'int'}, + } + + def __init__( + self, + **kwargs + ): + super(ServerSecurityAlertPolicy, self).__init__(**kwargs) + self.state = kwargs.get('state', None) + self.disabled_alerts = kwargs.get('disabled_alerts', None) + self.email_addresses = kwargs.get('email_addresses', None) + self.email_account_admins = kwargs.get('email_account_admins', None) + self.storage_endpoint = kwargs.get('storage_endpoint', None) + self.storage_account_access_key = kwargs.get('storage_account_access_key', None) + self.retention_days = kwargs.get('retention_days', None) + + +class ServerSecurityAlertPolicyListResult(msrest.serialization.Model): + """A list of the server's security alert policies. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar value: Array of results. + :vartype value: list[~azure.mgmt.rdbms.postgresql.models.ServerSecurityAlertPolicy] + :ivar next_link: Link to retrieve next page of results. + :vartype next_link: str + """ + + _validation = { + 'value': {'readonly': True}, + 'next_link': {'readonly': True}, + } + + _attribute_map = { + 'value': {'key': 'value', 'type': '[ServerSecurityAlertPolicy]'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(ServerSecurityAlertPolicyListResult, self).__init__(**kwargs) + self.value = None + self.next_link = None + + +class ServerUpdateParameters(msrest.serialization.Model): + """Parameters allowed to update for a server. + + :param identity: The Azure Active Directory identity of the server. + :type identity: ~azure.mgmt.rdbms.postgresql.models.ResourceIdentity + :param sku: The SKU (pricing tier) of the server. + :type sku: ~azure.mgmt.rdbms.postgresql.models.Sku + :param tags: A set of tags. Application-specific metadata in the form of key-value pairs. + :type tags: dict[str, str] + :param storage_profile: Storage profile of a server. + :type storage_profile: ~azure.mgmt.rdbms.postgresql.models.StorageProfile + :param administrator_login_password: The password of the administrator login. + :type administrator_login_password: str + :param version: The version of a server. Possible values include: "9.5", "9.6", "10", "10.0", + "10.2", "11". + :type version: str or ~azure.mgmt.rdbms.postgresql.models.ServerVersion + :param ssl_enforcement: Enable ssl enforcement or not when connect to server. Possible values + include: "Enabled", "Disabled". + :type ssl_enforcement: str or ~azure.mgmt.rdbms.postgresql.models.SslEnforcementEnum + :param minimal_tls_version: Enforce a minimal Tls version for the server. Possible values + include: "TLS1_0", "TLS1_1", "TLS1_2", "TLSEnforcementDisabled". + :type minimal_tls_version: str or ~azure.mgmt.rdbms.postgresql.models.MinimalTlsVersionEnum + :param public_network_access: Whether or not public network access is allowed for this server. + Value is optional but if passed in, must be 'Enabled' or 'Disabled'. Possible values include: + "Enabled", "Disabled". + :type public_network_access: str or ~azure.mgmt.rdbms.postgresql.models.PublicNetworkAccessEnum + :param replication_role: The replication role of the server. + :type replication_role: str + """ + + _attribute_map = { + 'identity': {'key': 'identity', 'type': 'ResourceIdentity'}, + 'sku': {'key': 'sku', 'type': 'Sku'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'storage_profile': {'key': 'properties.storageProfile', 'type': 'StorageProfile'}, + 'administrator_login_password': {'key': 'properties.administratorLoginPassword', 'type': 'str'}, + 'version': {'key': 'properties.version', 'type': 'str'}, + 'ssl_enforcement': {'key': 'properties.sslEnforcement', 'type': 'str'}, + 'minimal_tls_version': {'key': 'properties.minimalTlsVersion', 'type': 'str'}, + 'public_network_access': {'key': 'properties.publicNetworkAccess', 'type': 'str'}, + 'replication_role': {'key': 'properties.replicationRole', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(ServerUpdateParameters, self).__init__(**kwargs) + self.identity = kwargs.get('identity', None) + self.sku = kwargs.get('sku', None) + self.tags = kwargs.get('tags', None) + self.storage_profile = kwargs.get('storage_profile', None) + self.administrator_login_password = kwargs.get('administrator_login_password', None) + self.version = kwargs.get('version', None) + self.ssl_enforcement = kwargs.get('ssl_enforcement', None) + self.minimal_tls_version = kwargs.get('minimal_tls_version', None) + self.public_network_access = kwargs.get('public_network_access', None) + self.replication_role = kwargs.get('replication_role', None) + + +class Sku(msrest.serialization.Model): + """Billing information related properties of a server. + + All required parameters must be populated in order to send to Azure. + + :param name: Required. The name of the sku, typically, tier + family + cores, e.g. B_Gen4_1, + GP_Gen5_8. + :type name: str + :param tier: The tier of the particular SKU, e.g. Basic. Possible values include: "Basic", + "GeneralPurpose", "MemoryOptimized". + :type tier: str or ~azure.mgmt.rdbms.postgresql.models.SkuTier + :param capacity: The scale up/out capacity, representing server's compute units. + :type capacity: int + :param size: The size code, to be interpreted by resource as appropriate. + :type size: str + :param family: The family of hardware. + :type family: str + """ + + _validation = { + 'name': {'required': True}, + 'capacity': {'minimum': 0}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'tier': {'key': 'tier', 'type': 'str'}, + 'capacity': {'key': 'capacity', 'type': 'int'}, + 'size': {'key': 'size', 'type': 'str'}, + 'family': {'key': 'family', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(Sku, self).__init__(**kwargs) + self.name = kwargs['name'] + self.tier = kwargs.get('tier', None) + self.capacity = kwargs.get('capacity', None) + self.size = kwargs.get('size', None) + self.family = kwargs.get('family', None) + + +class StorageProfile(msrest.serialization.Model): + """Storage Profile properties of a server. + + :param backup_retention_days: Backup retention days for the server. + :type backup_retention_days: int + :param geo_redundant_backup: Enable Geo-redundant or not for server backup. Possible values + include: "Enabled", "Disabled". + :type geo_redundant_backup: str or ~azure.mgmt.rdbms.postgresql.models.GeoRedundantBackup + :param storage_mb: Max storage allowed for a server. + :type storage_mb: int + :param storage_autogrow: Enable Storage Auto Grow. Possible values include: "Enabled", + "Disabled". + :type storage_autogrow: str or ~azure.mgmt.rdbms.postgresql.models.StorageAutogrow + """ + + _attribute_map = { + 'backup_retention_days': {'key': 'backupRetentionDays', 'type': 'int'}, + 'geo_redundant_backup': {'key': 'geoRedundantBackup', 'type': 'str'}, + 'storage_mb': {'key': 'storageMB', 'type': 'int'}, + 'storage_autogrow': {'key': 'storageAutogrow', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(StorageProfile, self).__init__(**kwargs) + self.backup_retention_days = kwargs.get('backup_retention_days', None) + self.geo_redundant_backup = kwargs.get('geo_redundant_backup', None) + self.storage_mb = kwargs.get('storage_mb', None) + self.storage_autogrow = kwargs.get('storage_autogrow', None) + + +class TagsObject(msrest.serialization.Model): + """Tags object for patch operations. + + :param tags: A set of tags. Resource tags. + :type tags: dict[str, str] + """ + + _attribute_map = { + 'tags': {'key': 'tags', 'type': '{str}'}, + } + + def __init__( + self, + **kwargs + ): + super(TagsObject, self).__init__(**kwargs) + self.tags = kwargs.get('tags', None) + + +class VirtualNetworkRule(ProxyResource): + """A virtual network rule. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. + :vartype id: str + :ivar name: The name of the resource. + :vartype name: str + :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + "Microsoft.Storage/storageAccounts". + :vartype type: str + :param virtual_network_subnet_id: The ARM resource id of the virtual network subnet. + :type virtual_network_subnet_id: str + :param ignore_missing_vnet_service_endpoint: Create firewall rule before the virtual network + has vnet service endpoint enabled. + :type ignore_missing_vnet_service_endpoint: bool + :ivar state: Virtual Network Rule State. Possible values include: "Initializing", "InProgress", + "Ready", "Deleting", "Unknown". + :vartype state: str or ~azure.mgmt.rdbms.postgresql.models.VirtualNetworkRuleState + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'state': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'virtual_network_subnet_id': {'key': 'properties.virtualNetworkSubnetId', 'type': 'str'}, + 'ignore_missing_vnet_service_endpoint': {'key': 'properties.ignoreMissingVnetServiceEndpoint', 'type': 'bool'}, + 'state': {'key': 'properties.state', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(VirtualNetworkRule, self).__init__(**kwargs) + self.virtual_network_subnet_id = kwargs.get('virtual_network_subnet_id', None) + self.ignore_missing_vnet_service_endpoint = kwargs.get('ignore_missing_vnet_service_endpoint', None) + self.state = None + + +class VirtualNetworkRuleListResult(msrest.serialization.Model): + """A list of virtual network rules. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar value: Array of results. + :vartype value: list[~azure.mgmt.rdbms.postgresql.models.VirtualNetworkRule] + :ivar next_link: Link to retrieve next page of results. + :vartype next_link: str + """ + + _validation = { + 'value': {'readonly': True}, + 'next_link': {'readonly': True}, + } + + _attribute_map = { + 'value': {'key': 'value', 'type': '[VirtualNetworkRule]'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(VirtualNetworkRuleListResult, self).__init__(**kwargs) + self.value = None + self.next_link = None diff --git a/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/postgresql/models/_models_py3.py b/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/postgresql/models/_models_py3.py index f29d408b5f77..69da17b9c576 100644 --- a/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/postgresql/models/_models_py3.py +++ b/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/postgresql/models/_models_py3.py @@ -14,67 +14,6 @@ from ._postgre_sql_management_client_enums import * -class CapabilitiesListResult(msrest.serialization.Model): - """location capability. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar value: A list of supported capabilities. - :vartype value: list[~azure.mgmt.rdbms.postgresql.models.CapabilityProperties] - :ivar next_link: Link to retrieve next page of results. - :vartype next_link: str - """ - - _validation = { - 'value': {'readonly': True}, - 'next_link': {'readonly': True}, - } - - _attribute_map = { - 'value': {'key': 'value', 'type': '[CapabilityProperties]'}, - 'next_link': {'key': 'nextLink', 'type': 'str'}, - } - - def __init__( - self, - **kwargs - ): - super(CapabilitiesListResult, self).__init__(**kwargs) - self.value = None - self.next_link = None - - -class CapabilityProperties(msrest.serialization.Model): - """Location capabilities. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar zone: zone name. - :vartype zone: str - :ivar supported_flexible_server_editions: - :vartype supported_flexible_server_editions: - list[~azure.mgmt.rdbms.postgresql.models.ServerEditionCapability] - """ - - _validation = { - 'zone': {'readonly': True}, - 'supported_flexible_server_editions': {'readonly': True}, - } - - _attribute_map = { - 'zone': {'key': 'zone', 'type': 'str'}, - 'supported_flexible_server_editions': {'key': 'supportedFlexibleServerEditions', 'type': '[ServerEditionCapability]'}, - } - - def __init__( - self, - **kwargs - ): - super(CapabilityProperties, self).__init__(**kwargs) - self.zone = None - self.supported_flexible_server_editions = None - - class Resource(msrest.serialization.Model): """Common fields that are returned in the response for all Azure Resource Manager resources. @@ -165,9 +104,8 @@ class Configuration(ProxyResource): :vartype description: str :ivar default_value: Default value of the configuration. :vartype default_value: str - :ivar data_type: Data type of the configuration. Possible values include: "Boolean", "Numeric", - "Integer", "Enumeration". - :vartype data_type: str or ~azure.mgmt.rdbms.postgresql.models.ConfigurationDataType + :ivar data_type: Data type of the configuration. + :vartype data_type: str :ivar allowed_values: Allowed values of the configuration. :vartype allowed_values: str :param source: Source of the configuration. @@ -217,25 +155,20 @@ class ConfigurationListResult(msrest.serialization.Model): :param value: The list of server configurations. :type value: list[~azure.mgmt.rdbms.postgresql.models.Configuration] - :param next_link: The link used to get the next page of operations. - :type next_link: str """ _attribute_map = { 'value': {'key': 'value', 'type': '[Configuration]'}, - 'next_link': {'key': 'nextLink', 'type': 'str'}, } def __init__( self, *, value: Optional[List["Configuration"]] = None, - next_link: Optional[str] = None, **kwargs ): super(ConfigurationListResult, self).__init__(**kwargs) self.value = value - self.next_link = next_link class Database(ProxyResource): @@ -288,55 +221,20 @@ class DatabaseListResult(msrest.serialization.Model): :param value: The list of databases housed in a server. :type value: list[~azure.mgmt.rdbms.postgresql.models.Database] - :param next_link: The link used to get the next page of databases. - :type next_link: str """ _attribute_map = { 'value': {'key': 'value', 'type': '[Database]'}, - 'next_link': {'key': 'nextLink', 'type': 'str'}, } def __init__( self, *, value: Optional[List["Database"]] = None, - next_link: Optional[str] = None, **kwargs ): super(DatabaseListResult, self).__init__(**kwargs) self.value = value - self.next_link = next_link - - -class DelegatedSubnetUsage(msrest.serialization.Model): - """Delegated subnet usage data. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar subnet_name: name of the subnet. - :vartype subnet_name: str - :ivar usage: Number of used delegated subnets. - :vartype usage: long - """ - - _validation = { - 'subnet_name': {'readonly': True}, - 'usage': {'readonly': True}, - } - - _attribute_map = { - 'subnet_name': {'key': 'subnetName', 'type': 'str'}, - 'usage': {'key': 'usage', 'type': 'long'}, - } - - def __init__( - self, - **kwargs - ): - super(DelegatedSubnetUsage, self).__init__(**kwargs) - self.subnet_name = None - self.usage = None class ErrorAdditionalInfo(msrest.serialization.Model): @@ -347,7 +245,7 @@ class ErrorAdditionalInfo(msrest.serialization.Model): :ivar type: The additional info type. :vartype type: str :ivar info: The additional info. - :vartype info: object + :vartype info: str """ _validation = { @@ -357,7 +255,7 @@ class ErrorAdditionalInfo(msrest.serialization.Model): _attribute_map = { 'type': {'key': 'type', 'type': 'str'}, - 'info': {'key': 'info', 'type': 'object'}, + 'info': {'key': 'info', 'type': 'str'}, } def __init__( @@ -470,97 +368,101 @@ class FirewallRuleListResult(msrest.serialization.Model): :param value: The list of firewall rules in a server. :type value: list[~azure.mgmt.rdbms.postgresql.models.FirewallRule] - :param next_link: The link used to get the next page of operations. - :type next_link: str """ _attribute_map = { 'value': {'key': 'value', 'type': '[FirewallRule]'}, - 'next_link': {'key': 'nextLink', 'type': 'str'}, } def __init__( self, *, value: Optional[List["FirewallRule"]] = None, - next_link: Optional[str] = None, **kwargs ): super(FirewallRuleListResult, self).__init__(**kwargs) self.value = value - self.next_link = next_link -class Identity(msrest.serialization.Model): - """Identity for the resource. +class LogFile(ProxyResource): + """Represents a log file. Variables are only populated by the server, and will be ignored when sending a request. - :ivar principal_id: The principal ID of resource identity. - :vartype principal_id: str - :ivar tenant_id: The tenant ID of resource. - :vartype tenant_id: str - :ivar type: The identity type. Default value: "SystemAssigned". + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. + :vartype id: str + :ivar name: The name of the resource. + :vartype name: str + :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + "Microsoft.Storage/storageAccounts". :vartype type: str + :param size_in_kb: Size of the log file. + :type size_in_kb: long + :ivar created_time: Creation timestamp of the log file. + :vartype created_time: ~datetime.datetime + :ivar last_modified_time: Last modified timestamp of the log file. + :vartype last_modified_time: ~datetime.datetime + :param type_properties_type: Type of the log file. + :type type_properties_type: str + :param url: The url to download the log file from. + :type url: str """ _validation = { - 'principal_id': {'readonly': True}, - 'tenant_id': {'readonly': True}, - 'type': {'constant': True}, + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'created_time': {'readonly': True}, + 'last_modified_time': {'readonly': True}, } _attribute_map = { - 'principal_id': {'key': 'principalId', 'type': 'str'}, - 'tenant_id': {'key': 'tenantId', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, 'type': {'key': 'type', 'type': 'str'}, + 'size_in_kb': {'key': 'properties.sizeInKB', 'type': 'long'}, + 'created_time': {'key': 'properties.createdTime', 'type': 'iso-8601'}, + 'last_modified_time': {'key': 'properties.lastModifiedTime', 'type': 'iso-8601'}, + 'type_properties_type': {'key': 'properties.type', 'type': 'str'}, + 'url': {'key': 'properties.url', 'type': 'str'}, } - type = "SystemAssigned" - def __init__( self, + *, + size_in_kb: Optional[int] = None, + type_properties_type: Optional[str] = None, + url: Optional[str] = None, **kwargs ): - super(Identity, self).__init__(**kwargs) - self.principal_id = None - self.tenant_id = None + super(LogFile, self).__init__(**kwargs) + self.size_in_kb = size_in_kb + self.created_time = None + self.last_modified_time = None + self.type_properties_type = type_properties_type + self.url = url -class MaintenanceWindow(msrest.serialization.Model): - """Maintenance window of a server. +class LogFileListResult(msrest.serialization.Model): + """A list of log files. - :param custom_window: indicates whether custom window is enabled or disabled. - :type custom_window: str - :param start_hour: start hour for maintenance window. - :type start_hour: int - :param start_minute: start minute for maintenance window. - :type start_minute: int - :param day_of_week: day of week for maintenance window. - :type day_of_week: int + :param value: The list of log files. + :type value: list[~azure.mgmt.rdbms.postgresql.models.LogFile] """ _attribute_map = { - 'custom_window': {'key': 'customWindow', 'type': 'str'}, - 'start_hour': {'key': 'startHour', 'type': 'int'}, - 'start_minute': {'key': 'startMinute', 'type': 'int'}, - 'day_of_week': {'key': 'dayOfWeek', 'type': 'int'}, + 'value': {'key': 'value', 'type': '[LogFile]'}, } def __init__( self, *, - custom_window: Optional[str] = None, - start_hour: Optional[int] = None, - start_minute: Optional[int] = None, - day_of_week: Optional[int] = None, + value: Optional[List["LogFile"]] = None, **kwargs ): - super(MaintenanceWindow, self).__init__(**kwargs) - self.custom_window = custom_window - self.start_hour = start_hour - self.start_minute = start_minute - self.day_of_week = day_of_week + super(LogFileListResult, self).__init__(**kwargs) + self.value = value class NameAvailability(msrest.serialization.Model): @@ -570,17 +472,14 @@ class NameAvailability(msrest.serialization.Model): :type message: str :param name_available: Indicates whether the resource name is available. :type name_available: bool - :param name: name of the PostgreSQL server. - :type name: str - :param type: type of the server. - :type type: str + :param reason: Reason for name being unavailable. + :type reason: str """ _attribute_map = { 'message': {'key': 'message', 'type': 'str'}, 'name_available': {'key': 'nameAvailable', 'type': 'bool'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, + 'reason': {'key': 'reason', 'type': 'str'}, } def __init__( @@ -588,15 +487,13 @@ def __init__( *, message: Optional[str] = None, name_available: Optional[bool] = None, - name: Optional[str] = None, - type: Optional[str] = None, + reason: Optional[str] = None, **kwargs ): super(NameAvailability, self).__init__(**kwargs) self.message = message self.name_available = name_available - self.name = name - self.type = type + self.reason = reason class NameAvailabilityRequest(msrest.serialization.Model): @@ -640,13 +537,11 @@ class Operation(msrest.serialization.Model): :vartype name: str :ivar display: The localized display information for this particular operation or action. :vartype display: ~azure.mgmt.rdbms.postgresql.models.OperationDisplay - :param is_data_action: Indicates whether the operation is a data action. - :type is_data_action: bool :ivar origin: The intended executor of the operation. Possible values include: "NotSpecified", "user", "system". :vartype origin: str or ~azure.mgmt.rdbms.postgresql.models.OperationOrigin :ivar properties: Additional descriptions for the operation. - :vartype properties: dict[str, object] + :vartype properties: dict[str, str] """ _validation = { @@ -659,21 +554,17 @@ class Operation(msrest.serialization.Model): _attribute_map = { 'name': {'key': 'name', 'type': 'str'}, 'display': {'key': 'display', 'type': 'OperationDisplay'}, - 'is_data_action': {'key': 'isDataAction', 'type': 'bool'}, 'origin': {'key': 'origin', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': '{object}'}, + 'properties': {'key': 'properties', 'type': '{str}'}, } def __init__( self, - *, - is_data_action: Optional[bool] = None, **kwargs ): super(Operation, self).__init__(**kwargs) self.name = None self.display = None - self.is_data_action = is_data_action self.origin = None self.properties = None @@ -721,85 +612,167 @@ def __init__( class OperationListResult(msrest.serialization.Model): """A list of resource provider operations. - :param value: Collection of available operation details. + :param value: The list of resource provider operations. :type value: list[~azure.mgmt.rdbms.postgresql.models.Operation] - :param next_link: URL client should use to fetch the next page (per server side paging). - It's null for now, added for future use. - :type next_link: str """ _attribute_map = { 'value': {'key': 'value', 'type': '[Operation]'}, - 'next_link': {'key': 'nextLink', 'type': 'str'}, } def __init__( self, *, value: Optional[List["Operation"]] = None, - next_link: Optional[str] = None, **kwargs ): super(OperationListResult, self).__init__(**kwargs) self.value = value - self.next_link = next_link -class TrackedResource(Resource): - """The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location'. +class PerformanceTierListResult(msrest.serialization.Model): + """A list of performance tiers. - Variables are only populated by the server, and will be ignored when sending a request. + :param value: The list of performance tiers. + :type value: list[~azure.mgmt.rdbms.postgresql.models.PerformanceTierProperties] + """ - All required parameters must be populated in order to send to Azure. + _attribute_map = { + 'value': {'key': 'value', 'type': '[PerformanceTierProperties]'}, + } - :ivar id: Fully qualified resource ID for the resource. Ex - - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. - :vartype id: str - :ivar name: The name of the resource. - :vartype name: str - :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or - "Microsoft.Storage/storageAccounts". - :vartype type: str - :param tags: A set of tags. Resource tags. - :type tags: dict[str, str] - :param location: Required. The geo-location where the resource lives. - :type location: str + def __init__( + self, + *, + value: Optional[List["PerformanceTierProperties"]] = None, + **kwargs + ): + super(PerformanceTierListResult, self).__init__(**kwargs) + self.value = value + + +class PerformanceTierProperties(msrest.serialization.Model): + """Performance tier properties. + + :param id: ID of the performance tier. + :type id: str + :param max_backup_retention_days: Maximum Backup retention in days for the performance tier + edition. + :type max_backup_retention_days: int + :param min_backup_retention_days: Minimum Backup retention in days for the performance tier + edition. + :type min_backup_retention_days: int + :param max_storage_mb: Max storage allowed for a server. + :type max_storage_mb: int + :param min_large_storage_mb: Max storage allowed for a server. + :type min_large_storage_mb: int + :param max_large_storage_mb: Max storage allowed for a server. + :type max_large_storage_mb: int + :param min_storage_mb: Max storage allowed for a server. + :type min_storage_mb: int + :param service_level_objectives: Service level objectives associated with the performance tier. + :type service_level_objectives: + list[~azure.mgmt.rdbms.postgresql.models.PerformanceTierServiceLevelObjectives] """ - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'location': {'required': True}, + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'max_backup_retention_days': {'key': 'maxBackupRetentionDays', 'type': 'int'}, + 'min_backup_retention_days': {'key': 'minBackupRetentionDays', 'type': 'int'}, + 'max_storage_mb': {'key': 'maxStorageMB', 'type': 'int'}, + 'min_large_storage_mb': {'key': 'minLargeStorageMB', 'type': 'int'}, + 'max_large_storage_mb': {'key': 'maxLargeStorageMB', 'type': 'int'}, + 'min_storage_mb': {'key': 'minStorageMB', 'type': 'int'}, + 'service_level_objectives': {'key': 'serviceLevelObjectives', 'type': '[PerformanceTierServiceLevelObjectives]'}, } + def __init__( + self, + *, + id: Optional[str] = None, + max_backup_retention_days: Optional[int] = None, + min_backup_retention_days: Optional[int] = None, + max_storage_mb: Optional[int] = None, + min_large_storage_mb: Optional[int] = None, + max_large_storage_mb: Optional[int] = None, + min_storage_mb: Optional[int] = None, + service_level_objectives: Optional[List["PerformanceTierServiceLevelObjectives"]] = None, + **kwargs + ): + super(PerformanceTierProperties, self).__init__(**kwargs) + self.id = id + self.max_backup_retention_days = max_backup_retention_days + self.min_backup_retention_days = min_backup_retention_days + self.max_storage_mb = max_storage_mb + self.min_large_storage_mb = min_large_storage_mb + self.max_large_storage_mb = max_large_storage_mb + self.min_storage_mb = min_storage_mb + self.service_level_objectives = service_level_objectives + + +class PerformanceTierServiceLevelObjectives(msrest.serialization.Model): + """Service level objectives for performance tier. + + :param id: ID for the service level objective. + :type id: str + :param edition: Edition of the performance tier. + :type edition: str + :param v_core: vCore associated with the service level objective. + :type v_core: int + :param hardware_generation: Hardware generation associated with the service level objective. + :type hardware_generation: str + :param max_backup_retention_days: Maximum Backup retention in days for the performance tier + edition. + :type max_backup_retention_days: int + :param min_backup_retention_days: Minimum Backup retention in days for the performance tier + edition. + :type min_backup_retention_days: int + :param max_storage_mb: Max storage allowed for a server. + :type max_storage_mb: int + :param min_storage_mb: Max storage allowed for a server. + :type min_storage_mb: int + """ + _attribute_map = { 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'location': {'key': 'location', 'type': 'str'}, + 'edition': {'key': 'edition', 'type': 'str'}, + 'v_core': {'key': 'vCore', 'type': 'int'}, + 'hardware_generation': {'key': 'hardwareGeneration', 'type': 'str'}, + 'max_backup_retention_days': {'key': 'maxBackupRetentionDays', 'type': 'int'}, + 'min_backup_retention_days': {'key': 'minBackupRetentionDays', 'type': 'int'}, + 'max_storage_mb': {'key': 'maxStorageMB', 'type': 'int'}, + 'min_storage_mb': {'key': 'minStorageMB', 'type': 'int'}, } def __init__( self, *, - location: str, - tags: Optional[Dict[str, str]] = None, + id: Optional[str] = None, + edition: Optional[str] = None, + v_core: Optional[int] = None, + hardware_generation: Optional[str] = None, + max_backup_retention_days: Optional[int] = None, + min_backup_retention_days: Optional[int] = None, + max_storage_mb: Optional[int] = None, + min_storage_mb: Optional[int] = None, **kwargs ): - super(TrackedResource, self).__init__(**kwargs) - self.tags = tags - self.location = location + super(PerformanceTierServiceLevelObjectives, self).__init__(**kwargs) + self.id = id + self.edition = edition + self.v_core = v_core + self.hardware_generation = hardware_generation + self.max_backup_retention_days = max_backup_retention_days + self.min_backup_retention_days = min_backup_retention_days + self.max_storage_mb = max_storage_mb + self.min_storage_mb = min_storage_mb -class Server(TrackedResource): - """Represents a server. +class PrivateEndpointConnection(ProxyResource): + """A private endpoint connection. Variables are only populated by the server, and will be ignored when sending a request. - All required parameters must be populated in order to send to Azure. - :ivar id: Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. :vartype id: str @@ -808,457 +781,1440 @@ class Server(TrackedResource): :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts". :vartype type: str - :param tags: A set of tags. Resource tags. - :type tags: dict[str, str] - :param location: Required. The geo-location where the resource lives. - :type location: str - :param identity: The Azure Active Directory identity of the server. - :type identity: ~azure.mgmt.rdbms.postgresql.models.Identity - :param sku: The SKU (pricing tier) of the server. - :type sku: ~azure.mgmt.rdbms.postgresql.models.Sku - :param administrator_login: The administrator's login name of a server. Can only be specified - when the server is being created (and is required for creation). - :type administrator_login: str - :param administrator_login_password: The administrator login password (required for server - creation). - :type administrator_login_password: str - :param version: PostgreSQL Server version. Possible values include: "12", "11". - :type version: str or ~azure.mgmt.rdbms.postgresql.models.ServerVersion - :ivar state: A state of a server that is visible to user. Possible values include: "Ready", - "Dropping", "Disabled", "Starting", "Stopping", "Stopped", "Updating". - :vartype state: str or ~azure.mgmt.rdbms.postgresql.models.ServerState - :ivar ha_state: A state of a HA server that is visible to user. Possible values include: - "NotEnabled", "CreatingStandby", "ReplicatingData", "FailingOver", "Healthy", - "RemovingStandby". - :vartype ha_state: str or ~azure.mgmt.rdbms.postgresql.models.ServerHAState - :ivar fully_qualified_domain_name: The fully qualified domain name of a server. - :vartype fully_qualified_domain_name: str - :param display_name: The display name of a server. - :type display_name: str - :param storage_profile: Storage profile of a server. - :type storage_profile: ~azure.mgmt.rdbms.postgresql.models.StorageProfile - :ivar public_network_access: public network access is enabled or not. Possible values include: - "Enabled", "Disabled". - :vartype public_network_access: str or - ~azure.mgmt.rdbms.postgresql.models.ServerPublicNetworkAccessState - :param maintenance_window: Maintenance window of a server. - :type maintenance_window: ~azure.mgmt.rdbms.postgresql.models.MaintenanceWindow - :param ha_enabled: stand by count value can be either enabled or disabled. Possible values - include: "Enabled", "Disabled". - :type ha_enabled: str or ~azure.mgmt.rdbms.postgresql.models.HAEnabledEnum - :param source_server_name: The source PostgreSQL server name to restore from. - :type source_server_name: str - :param source_subscription_id: The subscription id of source serve PostgreSQL server name to - restore from. - :type source_subscription_id: str - :param source_resource_group_name: The resource group name of source serve PostgreSQL server - name to restore from. - :type source_resource_group_name: str - :param point_in_time_utc: Restore point creation time (ISO8601 format), specifying the time to - restore from. - :type point_in_time_utc: ~datetime.datetime - :param availability_zone: availability Zone information of the server. - :type availability_zone: str - :ivar standby_availability_zone: availability Zone information of the server. - :vartype standby_availability_zone: str - :ivar byok_enforcement: Status showing whether the data encryption is enabled with - customer-managed keys. - :vartype byok_enforcement: str - :param delegated_subnet_arguments: - :type delegated_subnet_arguments: - ~azure.mgmt.rdbms.postgresql.models.ServerPropertiesDelegatedSubnetArguments - :param private_dns_zone_arguments: - :type private_dns_zone_arguments: - ~azure.mgmt.rdbms.postgresql.models.ServerPropertiesPrivateDnsZoneArguments - :param create_mode: The mode to create a new PostgreSQL server. Possible values include: - "Default", "PointInTimeRestore". - :type create_mode: str or ~azure.mgmt.rdbms.postgresql.models.CreateMode - :param tags_properties_tags: Application-specific metadata in the form of key-value pairs. - :type tags_properties_tags: dict[str, str] + :param private_endpoint: Private endpoint which the connection belongs to. + :type private_endpoint: ~azure.mgmt.rdbms.postgresql.models.PrivateEndpointProperty + :param private_link_service_connection_state: Connection state of the private endpoint + connection. + :type private_link_service_connection_state: + ~azure.mgmt.rdbms.postgresql.models.PrivateLinkServiceConnectionStateProperty + :ivar provisioning_state: State of the private endpoint connection. + :vartype provisioning_state: str """ _validation = { 'id': {'readonly': True}, 'name': {'readonly': True}, 'type': {'readonly': True}, - 'location': {'required': True}, - 'state': {'readonly': True}, - 'ha_state': {'readonly': True}, - 'fully_qualified_domain_name': {'readonly': True}, - 'public_network_access': {'readonly': True}, - 'standby_availability_zone': {'readonly': True}, - 'byok_enforcement': {'readonly': True}, + 'provisioning_state': {'readonly': True}, } _attribute_map = { 'id': {'key': 'id', 'type': 'str'}, 'name': {'key': 'name', 'type': 'str'}, 'type': {'key': 'type', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'location': {'key': 'location', 'type': 'str'}, - 'identity': {'key': 'identity', 'type': 'Identity'}, - 'sku': {'key': 'sku', 'type': 'Sku'}, - 'administrator_login': {'key': 'properties.administratorLogin', 'type': 'str'}, - 'administrator_login_password': {'key': 'properties.administratorLoginPassword', 'type': 'str'}, - 'version': {'key': 'properties.version', 'type': 'str'}, - 'state': {'key': 'properties.state', 'type': 'str'}, - 'ha_state': {'key': 'properties.haState', 'type': 'str'}, - 'fully_qualified_domain_name': {'key': 'properties.fullyQualifiedDomainName', 'type': 'str'}, - 'display_name': {'key': 'properties.displayName', 'type': 'str'}, - 'storage_profile': {'key': 'properties.storageProfile', 'type': 'StorageProfile'}, - 'public_network_access': {'key': 'properties.publicNetworkAccess', 'type': 'str'}, - 'maintenance_window': {'key': 'properties.maintenanceWindow', 'type': 'MaintenanceWindow'}, - 'ha_enabled': {'key': 'properties.haEnabled', 'type': 'str'}, - 'source_server_name': {'key': 'properties.sourceServerName', 'type': 'str'}, - 'source_subscription_id': {'key': 'properties.sourceSubscriptionId', 'type': 'str'}, - 'source_resource_group_name': {'key': 'properties.sourceResourceGroupName', 'type': 'str'}, - 'point_in_time_utc': {'key': 'properties.pointInTimeUTC', 'type': 'iso-8601'}, - 'availability_zone': {'key': 'properties.availabilityZone', 'type': 'str'}, - 'standby_availability_zone': {'key': 'properties.standbyAvailabilityZone', 'type': 'str'}, - 'byok_enforcement': {'key': 'properties.byokEnforcement', 'type': 'str'}, - 'delegated_subnet_arguments': {'key': 'properties.delegatedSubnetArguments', 'type': 'ServerPropertiesDelegatedSubnetArguments'}, - 'private_dns_zone_arguments': {'key': 'properties.privateDnsZoneArguments', 'type': 'ServerPropertiesPrivateDnsZoneArguments'}, - 'create_mode': {'key': 'properties.createMode', 'type': 'str'}, - 'tags_properties_tags': {'key': 'properties.tags', 'type': '{str}'}, + 'private_endpoint': {'key': 'properties.privateEndpoint', 'type': 'PrivateEndpointProperty'}, + 'private_link_service_connection_state': {'key': 'properties.privateLinkServiceConnectionState', 'type': 'PrivateLinkServiceConnectionStateProperty'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, } def __init__( self, *, - location: str, - tags: Optional[Dict[str, str]] = None, - identity: Optional["Identity"] = None, - sku: Optional["Sku"] = None, - administrator_login: Optional[str] = None, - administrator_login_password: Optional[str] = None, - version: Optional[Union[str, "ServerVersion"]] = None, - display_name: Optional[str] = None, - storage_profile: Optional["StorageProfile"] = None, - maintenance_window: Optional["MaintenanceWindow"] = None, - ha_enabled: Optional[Union[str, "HAEnabledEnum"]] = None, - source_server_name: Optional[str] = None, - source_subscription_id: Optional[str] = None, - source_resource_group_name: Optional[str] = None, - point_in_time_utc: Optional[datetime.datetime] = None, - availability_zone: Optional[str] = None, - delegated_subnet_arguments: Optional["ServerPropertiesDelegatedSubnetArguments"] = None, - private_dns_zone_arguments: Optional["ServerPropertiesPrivateDnsZoneArguments"] = None, - create_mode: Optional[Union[str, "CreateMode"]] = None, - tags_properties_tags: Optional[Dict[str, str]] = None, + private_endpoint: Optional["PrivateEndpointProperty"] = None, + private_link_service_connection_state: Optional["PrivateLinkServiceConnectionStateProperty"] = None, **kwargs ): - super(Server, self).__init__(tags=tags, location=location, **kwargs) - self.identity = identity - self.sku = sku - self.administrator_login = administrator_login - self.administrator_login_password = administrator_login_password - self.version = version - self.state = None - self.ha_state = None - self.fully_qualified_domain_name = None - self.display_name = display_name - self.storage_profile = storage_profile - self.public_network_access = None - self.maintenance_window = maintenance_window - self.ha_enabled = ha_enabled - self.source_server_name = source_server_name - self.source_subscription_id = source_subscription_id - self.source_resource_group_name = source_resource_group_name - self.point_in_time_utc = point_in_time_utc - self.availability_zone = availability_zone - self.standby_availability_zone = None - self.byok_enforcement = None - self.delegated_subnet_arguments = delegated_subnet_arguments - self.private_dns_zone_arguments = private_dns_zone_arguments - self.create_mode = create_mode - self.tags_properties_tags = tags_properties_tags + super(PrivateEndpointConnection, self).__init__(**kwargs) + self.private_endpoint = private_endpoint + self.private_link_service_connection_state = private_link_service_connection_state + self.provisioning_state = None -class ServerEditionCapability(msrest.serialization.Model): - """Server edition capabilities. +class PrivateEndpointConnectionListResult(msrest.serialization.Model): + """A list of private endpoint connections. Variables are only populated by the server, and will be ignored when sending a request. - :ivar name: Server edition name. - :vartype name: str - :ivar supported_storage_editions: - :vartype supported_storage_editions: - list[~azure.mgmt.rdbms.postgresql.models.StorageEditionCapability] - :ivar supported_server_versions: - :vartype supported_server_versions: - list[~azure.mgmt.rdbms.postgresql.models.ServerVersionCapability] + :ivar value: Array of results. + :vartype value: list[~azure.mgmt.rdbms.postgresql.models.PrivateEndpointConnection] + :ivar next_link: Link to retrieve next page of results. + :vartype next_link: str """ _validation = { - 'name': {'readonly': True}, - 'supported_storage_editions': {'readonly': True}, - 'supported_server_versions': {'readonly': True}, + 'value': {'readonly': True}, + 'next_link': {'readonly': True}, } _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'supported_storage_editions': {'key': 'supportedStorageEditions', 'type': '[StorageEditionCapability]'}, - 'supported_server_versions': {'key': 'supportedServerVersions', 'type': '[ServerVersionCapability]'}, + 'value': {'key': 'value', 'type': '[PrivateEndpointConnection]'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, } def __init__( self, **kwargs ): - super(ServerEditionCapability, self).__init__(**kwargs) - self.name = None - self.supported_storage_editions = None - self.supported_server_versions = None + super(PrivateEndpointConnectionListResult, self).__init__(**kwargs) + self.value = None + self.next_link = None -class ServerForUpdate(msrest.serialization.Model): - """Represents a server to be updated. +class PrivateEndpointProperty(msrest.serialization.Model): + """PrivateEndpointProperty. - :param location: The location the resource resides in. - :type location: str - :param sku: The SKU (pricing tier) of the server. - :type sku: ~azure.mgmt.rdbms.postgresql.models.Sku - :param tags: A set of tags. Application-specific metadata in the form of key-value pairs. - :type tags: dict[str, str] - :param administrator_login_password: The password of the administrator login. - :type administrator_login_password: str - :param storage_profile: Storage profile of a server. - :type storage_profile: ~azure.mgmt.rdbms.postgresql.models.StorageProfile - :param ha_enabled: stand by count value can be either enabled or disabled. Possible values - include: "Enabled", "Disabled". - :type ha_enabled: str or ~azure.mgmt.rdbms.postgresql.models.HAEnabledEnum - :param maintenance_window: Maintenance window of a server. - :type maintenance_window: ~azure.mgmt.rdbms.postgresql.models.MaintenanceWindow + :param id: Resource id of the private endpoint. + :type id: str """ _attribute_map = { - 'location': {'key': 'location', 'type': 'str'}, - 'sku': {'key': 'sku', 'type': 'Sku'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'administrator_login_password': {'key': 'properties.administratorLoginPassword', 'type': 'str'}, - 'storage_profile': {'key': 'properties.storageProfile', 'type': 'StorageProfile'}, - 'ha_enabled': {'key': 'properties.haEnabled', 'type': 'str'}, - 'maintenance_window': {'key': 'properties.maintenanceWindow', 'type': 'MaintenanceWindow'}, + 'id': {'key': 'id', 'type': 'str'}, } def __init__( self, *, - location: Optional[str] = None, - sku: Optional["Sku"] = None, - tags: Optional[Dict[str, str]] = None, - administrator_login_password: Optional[str] = None, - storage_profile: Optional["StorageProfile"] = None, - ha_enabled: Optional[Union[str, "HAEnabledEnum"]] = None, - maintenance_window: Optional["MaintenanceWindow"] = None, + id: Optional[str] = None, **kwargs ): - super(ServerForUpdate, self).__init__(**kwargs) - self.location = location - self.sku = sku - self.tags = tags - self.administrator_login_password = administrator_login_password - self.storage_profile = storage_profile - self.ha_enabled = ha_enabled - self.maintenance_window = maintenance_window + super(PrivateEndpointProperty, self).__init__(**kwargs) + self.id = id -class ServerListResult(msrest.serialization.Model): - """A list of servers. +class PrivateLinkResource(ProxyResource): + """A private link resource. - :param value: The list of flexible servers. - :type value: list[~azure.mgmt.rdbms.postgresql.models.Server] - :param next_link: The link used to get the next page of operations. - :type next_link: str + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. + :vartype id: str + :ivar name: The name of the resource. + :vartype name: str + :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + "Microsoft.Storage/storageAccounts". + :vartype type: str + :ivar properties: The private link resource group id. + :vartype properties: ~azure.mgmt.rdbms.postgresql.models.PrivateLinkResourceProperties """ - _attribute_map = { - 'value': {'key': 'value', 'type': '[Server]'}, - 'next_link': {'key': 'nextLink', 'type': 'str'}, + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'properties': {'readonly': True}, } - def __init__( - self, - *, + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'PrivateLinkResourceProperties'}, + } + + def __init__( + self, + **kwargs + ): + super(PrivateLinkResource, self).__init__(**kwargs) + self.properties = None + + +class PrivateLinkResourceListResult(msrest.serialization.Model): + """A list of private link resources. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar value: Array of results. + :vartype value: list[~azure.mgmt.rdbms.postgresql.models.PrivateLinkResource] + :ivar next_link: Link to retrieve next page of results. + :vartype next_link: str + """ + + _validation = { + 'value': {'readonly': True}, + 'next_link': {'readonly': True}, + } + + _attribute_map = { + 'value': {'key': 'value', 'type': '[PrivateLinkResource]'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(PrivateLinkResourceListResult, self).__init__(**kwargs) + self.value = None + self.next_link = None + + +class PrivateLinkResourceProperties(msrest.serialization.Model): + """Properties of a private link resource. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar group_id: The private link resource group id. + :vartype group_id: str + :ivar required_members: The private link resource required member names. + :vartype required_members: list[str] + """ + + _validation = { + 'group_id': {'readonly': True}, + 'required_members': {'readonly': True}, + } + + _attribute_map = { + 'group_id': {'key': 'groupId', 'type': 'str'}, + 'required_members': {'key': 'requiredMembers', 'type': '[str]'}, + } + + def __init__( + self, + **kwargs + ): + super(PrivateLinkResourceProperties, self).__init__(**kwargs) + self.group_id = None + self.required_members = None + + +class PrivateLinkServiceConnectionStateProperty(msrest.serialization.Model): + """PrivateLinkServiceConnectionStateProperty. + + Variables are only populated by the server, and will be ignored when sending a request. + + All required parameters must be populated in order to send to Azure. + + :param status: Required. The private link service connection status. + :type status: str + :param description: Required. The private link service connection description. + :type description: str + :ivar actions_required: The actions required for private link service connection. + :vartype actions_required: str + """ + + _validation = { + 'status': {'required': True}, + 'description': {'required': True}, + 'actions_required': {'readonly': True}, + } + + _attribute_map = { + 'status': {'key': 'status', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'actions_required': {'key': 'actionsRequired', 'type': 'str'}, + } + + def __init__( + self, + *, + status: str, + description: str, + **kwargs + ): + super(PrivateLinkServiceConnectionStateProperty, self).__init__(**kwargs) + self.status = status + self.description = description + self.actions_required = None + + +class RecoverableServerResource(ProxyResource): + """A recoverable server resource. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. + :vartype id: str + :ivar name: The name of the resource. + :vartype name: str + :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + "Microsoft.Storage/storageAccounts". + :vartype type: str + :ivar last_available_backup_date_time: The last available backup date time. + :vartype last_available_backup_date_time: str + :ivar service_level_objective: The service level objective. + :vartype service_level_objective: str + :ivar edition: Edition of the performance tier. + :vartype edition: str + :ivar v_core: vCore associated with the service level objective. + :vartype v_core: int + :ivar hardware_generation: Hardware generation associated with the service level objective. + :vartype hardware_generation: str + :ivar version: The PostgreSQL version. + :vartype version: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'last_available_backup_date_time': {'readonly': True}, + 'service_level_objective': {'readonly': True}, + 'edition': {'readonly': True}, + 'v_core': {'readonly': True}, + 'hardware_generation': {'readonly': True}, + 'version': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'last_available_backup_date_time': {'key': 'properties.lastAvailableBackupDateTime', 'type': 'str'}, + 'service_level_objective': {'key': 'properties.serviceLevelObjective', 'type': 'str'}, + 'edition': {'key': 'properties.edition', 'type': 'str'}, + 'v_core': {'key': 'properties.vCore', 'type': 'int'}, + 'hardware_generation': {'key': 'properties.hardwareGeneration', 'type': 'str'}, + 'version': {'key': 'properties.version', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(RecoverableServerResource, self).__init__(**kwargs) + self.last_available_backup_date_time = None + self.service_level_objective = None + self.edition = None + self.v_core = None + self.hardware_generation = None + self.version = None + + +class ResourceIdentity(msrest.serialization.Model): + """Azure Active Directory identity configuration for a resource. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar principal_id: The Azure Active Directory principal id. + :vartype principal_id: str + :param type: The identity type. Set this to 'SystemAssigned' in order to automatically create + and assign an Azure Active Directory principal for the resource. Possible values include: + "SystemAssigned". + :type type: str or ~azure.mgmt.rdbms.postgresql.models.IdentityType + :ivar tenant_id: The Azure Active Directory tenant id. + :vartype tenant_id: str + """ + + _validation = { + 'principal_id': {'readonly': True}, + 'tenant_id': {'readonly': True}, + } + + _attribute_map = { + 'principal_id': {'key': 'principalId', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'tenant_id': {'key': 'tenantId', 'type': 'str'}, + } + + def __init__( + self, + *, + type: Optional[Union[str, "IdentityType"]] = None, + **kwargs + ): + super(ResourceIdentity, self).__init__(**kwargs) + self.principal_id = None + self.type = type + self.tenant_id = None + + +class TrackedResource(Resource): + """The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location'. + + Variables are only populated by the server, and will be ignored when sending a request. + + All required parameters must be populated in order to send to Azure. + + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. + :vartype id: str + :ivar name: The name of the resource. + :vartype name: str + :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + "Microsoft.Storage/storageAccounts". + :vartype type: str + :param tags: A set of tags. Resource tags. + :type tags: dict[str, str] + :param location: Required. The geo-location where the resource lives. + :type location: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'location': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'location': {'key': 'location', 'type': 'str'}, + } + + def __init__( + self, + *, + location: str, + tags: Optional[Dict[str, str]] = None, + **kwargs + ): + super(TrackedResource, self).__init__(**kwargs) + self.tags = tags + self.location = location + + +class Server(TrackedResource): + """Represents a server. + + Variables are only populated by the server, and will be ignored when sending a request. + + All required parameters must be populated in order to send to Azure. + + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. + :vartype id: str + :ivar name: The name of the resource. + :vartype name: str + :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + "Microsoft.Storage/storageAccounts". + :vartype type: str + :param tags: A set of tags. Resource tags. + :type tags: dict[str, str] + :param location: Required. The geo-location where the resource lives. + :type location: str + :param identity: The Azure Active Directory identity of the server. + :type identity: ~azure.mgmt.rdbms.postgresql.models.ResourceIdentity + :param sku: The SKU (pricing tier) of the server. + :type sku: ~azure.mgmt.rdbms.postgresql.models.Sku + :param administrator_login: The administrator's login name of a server. Can only be specified + when the server is being created (and is required for creation). + :type administrator_login: str + :param version: Server version. Possible values include: "9.5", "9.6", "10", "10.0", "10.2", + "11". + :type version: str or ~azure.mgmt.rdbms.postgresql.models.ServerVersion + :param ssl_enforcement: Enable ssl enforcement or not when connect to server. Possible values + include: "Enabled", "Disabled". + :type ssl_enforcement: str or ~azure.mgmt.rdbms.postgresql.models.SslEnforcementEnum + :param minimal_tls_version: Enforce a minimal Tls version for the server. Possible values + include: "TLS1_0", "TLS1_1", "TLS1_2", "TLSEnforcementDisabled". + :type minimal_tls_version: str or ~azure.mgmt.rdbms.postgresql.models.MinimalTlsVersionEnum + :ivar byok_enforcement: Status showing whether the server data encryption is enabled with + customer-managed keys. + :vartype byok_enforcement: str + :param infrastructure_encryption: Status showing whether the server enabled infrastructure + encryption. Possible values include: "Enabled", "Disabled". + :type infrastructure_encryption: str or + ~azure.mgmt.rdbms.postgresql.models.InfrastructureEncryption + :param user_visible_state: A state of a server that is visible to user. Possible values + include: "Ready", "Dropping", "Disabled", "Inaccessible". + :type user_visible_state: str or ~azure.mgmt.rdbms.postgresql.models.ServerState + :param fully_qualified_domain_name: The fully qualified domain name of a server. + :type fully_qualified_domain_name: str + :param earliest_restore_date: Earliest restore point creation time (ISO8601 format). + :type earliest_restore_date: ~datetime.datetime + :param storage_profile: Storage profile of a server. + :type storage_profile: ~azure.mgmt.rdbms.postgresql.models.StorageProfile + :param replication_role: The replication role of the server. + :type replication_role: str + :param master_server_id: The master server id of a replica server. + :type master_server_id: str + :param replica_capacity: The maximum number of replicas that a master server can have. + :type replica_capacity: int + :param public_network_access: Whether or not public network access is allowed for this server. + Value is optional but if passed in, must be 'Enabled' or 'Disabled'. Possible values include: + "Enabled", "Disabled". + :type public_network_access: str or ~azure.mgmt.rdbms.postgresql.models.PublicNetworkAccessEnum + :ivar private_endpoint_connections: List of private endpoint connections on a server. + :vartype private_endpoint_connections: + list[~azure.mgmt.rdbms.postgresql.models.ServerPrivateEndpointConnection] + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'location': {'required': True}, + 'byok_enforcement': {'readonly': True}, + 'replica_capacity': {'minimum': 0}, + 'private_endpoint_connections': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'location': {'key': 'location', 'type': 'str'}, + 'identity': {'key': 'identity', 'type': 'ResourceIdentity'}, + 'sku': {'key': 'sku', 'type': 'Sku'}, + 'administrator_login': {'key': 'properties.administratorLogin', 'type': 'str'}, + 'version': {'key': 'properties.version', 'type': 'str'}, + 'ssl_enforcement': {'key': 'properties.sslEnforcement', 'type': 'str'}, + 'minimal_tls_version': {'key': 'properties.minimalTlsVersion', 'type': 'str'}, + 'byok_enforcement': {'key': 'properties.byokEnforcement', 'type': 'str'}, + 'infrastructure_encryption': {'key': 'properties.infrastructureEncryption', 'type': 'str'}, + 'user_visible_state': {'key': 'properties.userVisibleState', 'type': 'str'}, + 'fully_qualified_domain_name': {'key': 'properties.fullyQualifiedDomainName', 'type': 'str'}, + 'earliest_restore_date': {'key': 'properties.earliestRestoreDate', 'type': 'iso-8601'}, + 'storage_profile': {'key': 'properties.storageProfile', 'type': 'StorageProfile'}, + 'replication_role': {'key': 'properties.replicationRole', 'type': 'str'}, + 'master_server_id': {'key': 'properties.masterServerId', 'type': 'str'}, + 'replica_capacity': {'key': 'properties.replicaCapacity', 'type': 'int'}, + 'public_network_access': {'key': 'properties.publicNetworkAccess', 'type': 'str'}, + 'private_endpoint_connections': {'key': 'properties.privateEndpointConnections', 'type': '[ServerPrivateEndpointConnection]'}, + } + + def __init__( + self, + *, + location: str, + tags: Optional[Dict[str, str]] = None, + identity: Optional["ResourceIdentity"] = None, + sku: Optional["Sku"] = None, + administrator_login: Optional[str] = None, + version: Optional[Union[str, "ServerVersion"]] = None, + ssl_enforcement: Optional[Union[str, "SslEnforcementEnum"]] = None, + minimal_tls_version: Optional[Union[str, "MinimalTlsVersionEnum"]] = None, + infrastructure_encryption: Optional[Union[str, "InfrastructureEncryption"]] = None, + user_visible_state: Optional[Union[str, "ServerState"]] = None, + fully_qualified_domain_name: Optional[str] = None, + earliest_restore_date: Optional[datetime.datetime] = None, + storage_profile: Optional["StorageProfile"] = None, + replication_role: Optional[str] = None, + master_server_id: Optional[str] = None, + replica_capacity: Optional[int] = None, + public_network_access: Optional[Union[str, "PublicNetworkAccessEnum"]] = None, + **kwargs + ): + super(Server, self).__init__(tags=tags, location=location, **kwargs) + self.identity = identity + self.sku = sku + self.administrator_login = administrator_login + self.version = version + self.ssl_enforcement = ssl_enforcement + self.minimal_tls_version = minimal_tls_version + self.byok_enforcement = None + self.infrastructure_encryption = infrastructure_encryption + self.user_visible_state = user_visible_state + self.fully_qualified_domain_name = fully_qualified_domain_name + self.earliest_restore_date = earliest_restore_date + self.storage_profile = storage_profile + self.replication_role = replication_role + self.master_server_id = master_server_id + self.replica_capacity = replica_capacity + self.public_network_access = public_network_access + self.private_endpoint_connections = None + + +class ServerAdministratorResource(ProxyResource): + """Represents a and external administrator to be created. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. + :vartype id: str + :ivar name: The name of the resource. + :vartype name: str + :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + "Microsoft.Storage/storageAccounts". + :vartype type: str + :ivar administrator_type: The type of administrator. Default value: "ActiveDirectory". + :vartype administrator_type: str + :param login: The server administrator login account name. + :type login: str + :param sid: The server administrator Sid (Secure ID). + :type sid: str + :param tenant_id: The server Active Directory Administrator tenant id. + :type tenant_id: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'administrator_type': {'constant': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'administrator_type': {'key': 'properties.administratorType', 'type': 'str'}, + 'login': {'key': 'properties.login', 'type': 'str'}, + 'sid': {'key': 'properties.sid', 'type': 'str'}, + 'tenant_id': {'key': 'properties.tenantId', 'type': 'str'}, + } + + administrator_type = "ActiveDirectory" + + def __init__( + self, + *, + login: Optional[str] = None, + sid: Optional[str] = None, + tenant_id: Optional[str] = None, + **kwargs + ): + super(ServerAdministratorResource, self).__init__(**kwargs) + self.login = login + self.sid = sid + self.tenant_id = tenant_id + + +class ServerAdministratorResourceListResult(msrest.serialization.Model): + """The response to a list Active Directory Administrators request. + + :param value: The list of server Active Directory Administrators for the server. + :type value: list[~azure.mgmt.rdbms.postgresql.models.ServerAdministratorResource] + """ + + _attribute_map = { + 'value': {'key': 'value', 'type': '[ServerAdministratorResource]'}, + } + + def __init__( + self, + *, + value: Optional[List["ServerAdministratorResource"]] = None, + **kwargs + ): + super(ServerAdministratorResourceListResult, self).__init__(**kwargs) + self.value = value + + +class ServerForCreate(msrest.serialization.Model): + """Represents a server to be created. + + All required parameters must be populated in order to send to Azure. + + :param identity: The Azure Active Directory identity of the server. + :type identity: ~azure.mgmt.rdbms.postgresql.models.ResourceIdentity + :param sku: The SKU (pricing tier) of the server. + :type sku: ~azure.mgmt.rdbms.postgresql.models.Sku + :param properties: Required. Properties of the server. + :type properties: ~azure.mgmt.rdbms.postgresql.models.ServerPropertiesForCreate + :param location: Required. The location the resource resides in. + :type location: str + :param tags: A set of tags. Application-specific metadata in the form of key-value pairs. + :type tags: dict[str, str] + """ + + _validation = { + 'properties': {'required': True}, + 'location': {'required': True}, + } + + _attribute_map = { + 'identity': {'key': 'identity', 'type': 'ResourceIdentity'}, + 'sku': {'key': 'sku', 'type': 'Sku'}, + 'properties': {'key': 'properties', 'type': 'ServerPropertiesForCreate'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + } + + def __init__( + self, + *, + properties: "ServerPropertiesForCreate", + location: str, + identity: Optional["ResourceIdentity"] = None, + sku: Optional["Sku"] = None, + tags: Optional[Dict[str, str]] = None, + **kwargs + ): + super(ServerForCreate, self).__init__(**kwargs) + self.identity = identity + self.sku = sku + self.properties = properties + self.location = location + self.tags = tags + + +class ServerKey(ProxyResource): + """A PostgreSQL Server key. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. + :vartype id: str + :ivar name: The name of the resource. + :vartype name: str + :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + "Microsoft.Storage/storageAccounts". + :vartype type: str + :ivar kind: Kind of encryption protector used to protect the key. + :vartype kind: str + :param server_key_type: The key type like 'AzureKeyVault'. Possible values include: + "AzureKeyVault". + :type server_key_type: str or ~azure.mgmt.rdbms.postgresql.models.ServerKeyType + :param uri: The URI of the key. + :type uri: str + :ivar creation_date: The key creation date. + :vartype creation_date: ~datetime.datetime + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'kind': {'readonly': True}, + 'creation_date': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'kind': {'key': 'kind', 'type': 'str'}, + 'server_key_type': {'key': 'properties.serverKeyType', 'type': 'str'}, + 'uri': {'key': 'properties.uri', 'type': 'str'}, + 'creation_date': {'key': 'properties.creationDate', 'type': 'iso-8601'}, + } + + def __init__( + self, + *, + server_key_type: Optional[Union[str, "ServerKeyType"]] = None, + uri: Optional[str] = None, + **kwargs + ): + super(ServerKey, self).__init__(**kwargs) + self.kind = None + self.server_key_type = server_key_type + self.uri = uri + self.creation_date = None + + +class ServerKeyListResult(msrest.serialization.Model): + """A list of PostgreSQL Server keys. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar value: A list of PostgreSQL Server keys. + :vartype value: list[~azure.mgmt.rdbms.postgresql.models.ServerKey] + :ivar next_link: Link to retrieve next page of results. + :vartype next_link: str + """ + + _validation = { + 'value': {'readonly': True}, + 'next_link': {'readonly': True}, + } + + _attribute_map = { + 'value': {'key': 'value', 'type': '[ServerKey]'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(ServerKeyListResult, self).__init__(**kwargs) + self.value = None + self.next_link = None + + +class ServerListResult(msrest.serialization.Model): + """A list of servers. + + :param value: The list of servers. + :type value: list[~azure.mgmt.rdbms.postgresql.models.Server] + """ + + _attribute_map = { + 'value': {'key': 'value', 'type': '[Server]'}, + } + + def __init__( + self, + *, value: Optional[List["Server"]] = None, - next_link: Optional[str] = None, **kwargs ): - super(ServerListResult, self).__init__(**kwargs) - self.value = value - self.next_link = next_link + super(ServerListResult, self).__init__(**kwargs) + self.value = value + + +class ServerPrivateEndpointConnection(msrest.serialization.Model): + """A private endpoint connection under a server. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar id: Resource ID of the Private Endpoint Connection. + :vartype id: str + :ivar properties: Private endpoint connection properties. + :vartype properties: + ~azure.mgmt.rdbms.postgresql.models.ServerPrivateEndpointConnectionProperties + """ + + _validation = { + 'id': {'readonly': True}, + 'properties': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'ServerPrivateEndpointConnectionProperties'}, + } + + def __init__( + self, + **kwargs + ): + super(ServerPrivateEndpointConnection, self).__init__(**kwargs) + self.id = None + self.properties = None + + +class ServerPrivateEndpointConnectionProperties(msrest.serialization.Model): + """Properties of a private endpoint connection. + + Variables are only populated by the server, and will be ignored when sending a request. + + :param private_endpoint: Private endpoint which the connection belongs to. + :type private_endpoint: ~azure.mgmt.rdbms.postgresql.models.PrivateEndpointProperty + :param private_link_service_connection_state: Connection state of the private endpoint + connection. + :type private_link_service_connection_state: + ~azure.mgmt.rdbms.postgresql.models.ServerPrivateLinkServiceConnectionStateProperty + :ivar provisioning_state: State of the private endpoint connection. Possible values include: + "Approving", "Ready", "Dropping", "Failed", "Rejecting". + :vartype provisioning_state: str or + ~azure.mgmt.rdbms.postgresql.models.PrivateEndpointProvisioningState + """ + + _validation = { + 'provisioning_state': {'readonly': True}, + } + + _attribute_map = { + 'private_endpoint': {'key': 'privateEndpoint', 'type': 'PrivateEndpointProperty'}, + 'private_link_service_connection_state': {'key': 'privateLinkServiceConnectionState', 'type': 'ServerPrivateLinkServiceConnectionStateProperty'}, + 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, + } + + def __init__( + self, + *, + private_endpoint: Optional["PrivateEndpointProperty"] = None, + private_link_service_connection_state: Optional["ServerPrivateLinkServiceConnectionStateProperty"] = None, + **kwargs + ): + super(ServerPrivateEndpointConnectionProperties, self).__init__(**kwargs) + self.private_endpoint = private_endpoint + self.private_link_service_connection_state = private_link_service_connection_state + self.provisioning_state = None + +class ServerPrivateLinkServiceConnectionStateProperty(msrest.serialization.Model): + """ServerPrivateLinkServiceConnectionStateProperty. -class ServerPropertiesDelegatedSubnetArguments(msrest.serialization.Model): - """ServerPropertiesDelegatedSubnetArguments. + Variables are only populated by the server, and will be ignored when sending a request. + + All required parameters must be populated in order to send to Azure. - :param subnet_arm_resource_id: delegated subnet arm resource id. - :type subnet_arm_resource_id: str + :param status: Required. The private link service connection status. Possible values include: + "Approved", "Pending", "Rejected", "Disconnected". + :type status: str or + ~azure.mgmt.rdbms.postgresql.models.PrivateLinkServiceConnectionStateStatus + :param description: Required. The private link service connection description. + :type description: str + :ivar actions_required: The actions required for private link service connection. Possible + values include: "None". + :vartype actions_required: str or + ~azure.mgmt.rdbms.postgresql.models.PrivateLinkServiceConnectionStateActionsRequire """ + _validation = { + 'status': {'required': True}, + 'description': {'required': True}, + 'actions_required': {'readonly': True}, + } + _attribute_map = { - 'subnet_arm_resource_id': {'key': 'subnetArmResourceId', 'type': 'str'}, + 'status': {'key': 'status', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'actions_required': {'key': 'actionsRequired', 'type': 'str'}, } def __init__( self, *, - subnet_arm_resource_id: Optional[str] = None, + status: Union[str, "PrivateLinkServiceConnectionStateStatus"], + description: str, **kwargs ): - super(ServerPropertiesDelegatedSubnetArguments, self).__init__(**kwargs) - self.subnet_arm_resource_id = subnet_arm_resource_id + super(ServerPrivateLinkServiceConnectionStateProperty, self).__init__(**kwargs) + self.status = status + self.description = description + self.actions_required = None + +class ServerPropertiesForCreate(msrest.serialization.Model): + """The properties used to create a new server. -class ServerPropertiesPrivateDnsZoneArguments(msrest.serialization.Model): - """ServerPropertiesPrivateDnsZoneArguments. + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: ServerPropertiesForDefaultCreate, ServerPropertiesForGeoRestore, ServerPropertiesForRestore, ServerPropertiesForReplica. - :param private_dns_zone_arm_resource_id: private dns zone arm resource id. - :type private_dns_zone_arm_resource_id: str + All required parameters must be populated in order to send to Azure. + + :param version: Server version. Possible values include: "9.5", "9.6", "10", "10.0", "10.2", + "11". + :type version: str or ~azure.mgmt.rdbms.postgresql.models.ServerVersion + :param ssl_enforcement: Enable ssl enforcement or not when connect to server. Possible values + include: "Enabled", "Disabled". + :type ssl_enforcement: str or ~azure.mgmt.rdbms.postgresql.models.SslEnforcementEnum + :param minimal_tls_version: Enforce a minimal Tls version for the server. Possible values + include: "TLS1_0", "TLS1_1", "TLS1_2", "TLSEnforcementDisabled". + :type minimal_tls_version: str or ~azure.mgmt.rdbms.postgresql.models.MinimalTlsVersionEnum + :param infrastructure_encryption: Status showing whether the server enabled infrastructure + encryption. Possible values include: "Enabled", "Disabled". + :type infrastructure_encryption: str or + ~azure.mgmt.rdbms.postgresql.models.InfrastructureEncryption + :param public_network_access: Whether or not public network access is allowed for this server. + Value is optional but if passed in, must be 'Enabled' or 'Disabled'. Possible values include: + "Enabled", "Disabled". + :type public_network_access: str or ~azure.mgmt.rdbms.postgresql.models.PublicNetworkAccessEnum + :param storage_profile: Storage profile of a server. + :type storage_profile: ~azure.mgmt.rdbms.postgresql.models.StorageProfile + :param create_mode: Required. The mode to create a new server.Constant filled by server. + Possible values include: "Default", "PointInTimeRestore", "GeoRestore", "Replica". + :type create_mode: str or ~azure.mgmt.rdbms.postgresql.models.CreateMode """ + _validation = { + 'create_mode': {'required': True}, + } + _attribute_map = { - 'private_dns_zone_arm_resource_id': {'key': 'privateDnsZoneArmResourceId', 'type': 'str'}, + 'version': {'key': 'version', 'type': 'str'}, + 'ssl_enforcement': {'key': 'sslEnforcement', 'type': 'str'}, + 'minimal_tls_version': {'key': 'minimalTlsVersion', 'type': 'str'}, + 'infrastructure_encryption': {'key': 'infrastructureEncryption', 'type': 'str'}, + 'public_network_access': {'key': 'publicNetworkAccess', 'type': 'str'}, + 'storage_profile': {'key': 'storageProfile', 'type': 'StorageProfile'}, + 'create_mode': {'key': 'createMode', 'type': 'str'}, + } + + _subtype_map = { + 'create_mode': {'Default': 'ServerPropertiesForDefaultCreate', 'GeoRestore': 'ServerPropertiesForGeoRestore', 'PointInTimeRestore': 'ServerPropertiesForRestore', 'Replica': 'ServerPropertiesForReplica'} } def __init__( self, *, - private_dns_zone_arm_resource_id: Optional[str] = None, + version: Optional[Union[str, "ServerVersion"]] = None, + ssl_enforcement: Optional[Union[str, "SslEnforcementEnum"]] = None, + minimal_tls_version: Optional[Union[str, "MinimalTlsVersionEnum"]] = None, + infrastructure_encryption: Optional[Union[str, "InfrastructureEncryption"]] = None, + public_network_access: Optional[Union[str, "PublicNetworkAccessEnum"]] = None, + storage_profile: Optional["StorageProfile"] = None, **kwargs ): - super(ServerPropertiesPrivateDnsZoneArguments, self).__init__(**kwargs) - self.private_dns_zone_arm_resource_id = private_dns_zone_arm_resource_id + super(ServerPropertiesForCreate, self).__init__(**kwargs) + self.version = version + self.ssl_enforcement = ssl_enforcement + self.minimal_tls_version = minimal_tls_version + self.infrastructure_encryption = infrastructure_encryption + self.public_network_access = public_network_access + self.storage_profile = storage_profile + self.create_mode = None # type: Optional[str] -class ServerVersionCapability(msrest.serialization.Model): - """Server version capabilities. +class ServerPropertiesForDefaultCreate(ServerPropertiesForCreate): + """The properties used to create a new server. - Variables are only populated by the server, and will be ignored when sending a request. + All required parameters must be populated in order to send to Azure. - :ivar name: server version. - :vartype name: str - :ivar supported_vcores: - :vartype supported_vcores: list[~azure.mgmt.rdbms.postgresql.models.VcoreCapability] + :param version: Server version. Possible values include: "9.5", "9.6", "10", "10.0", "10.2", + "11". + :type version: str or ~azure.mgmt.rdbms.postgresql.models.ServerVersion + :param ssl_enforcement: Enable ssl enforcement or not when connect to server. Possible values + include: "Enabled", "Disabled". + :type ssl_enforcement: str or ~azure.mgmt.rdbms.postgresql.models.SslEnforcementEnum + :param minimal_tls_version: Enforce a minimal Tls version for the server. Possible values + include: "TLS1_0", "TLS1_1", "TLS1_2", "TLSEnforcementDisabled". + :type minimal_tls_version: str or ~azure.mgmt.rdbms.postgresql.models.MinimalTlsVersionEnum + :param infrastructure_encryption: Status showing whether the server enabled infrastructure + encryption. Possible values include: "Enabled", "Disabled". + :type infrastructure_encryption: str or + ~azure.mgmt.rdbms.postgresql.models.InfrastructureEncryption + :param public_network_access: Whether or not public network access is allowed for this server. + Value is optional but if passed in, must be 'Enabled' or 'Disabled'. Possible values include: + "Enabled", "Disabled". + :type public_network_access: str or ~azure.mgmt.rdbms.postgresql.models.PublicNetworkAccessEnum + :param storage_profile: Storage profile of a server. + :type storage_profile: ~azure.mgmt.rdbms.postgresql.models.StorageProfile + :param create_mode: Required. The mode to create a new server.Constant filled by server. + Possible values include: "Default", "PointInTimeRestore", "GeoRestore", "Replica". + :type create_mode: str or ~azure.mgmt.rdbms.postgresql.models.CreateMode + :param administrator_login: Required. The administrator's login name of a server. Can only be + specified when the server is being created (and is required for creation). + :type administrator_login: str + :param administrator_login_password: Required. The password of the administrator login. + :type administrator_login_password: str """ _validation = { - 'name': {'readonly': True}, - 'supported_vcores': {'readonly': True}, + 'create_mode': {'required': True}, + 'administrator_login': {'required': True}, + 'administrator_login_password': {'required': True}, } _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'supported_vcores': {'key': 'supportedVcores', 'type': '[VcoreCapability]'}, + 'version': {'key': 'version', 'type': 'str'}, + 'ssl_enforcement': {'key': 'sslEnforcement', 'type': 'str'}, + 'minimal_tls_version': {'key': 'minimalTlsVersion', 'type': 'str'}, + 'infrastructure_encryption': {'key': 'infrastructureEncryption', 'type': 'str'}, + 'public_network_access': {'key': 'publicNetworkAccess', 'type': 'str'}, + 'storage_profile': {'key': 'storageProfile', 'type': 'StorageProfile'}, + 'create_mode': {'key': 'createMode', 'type': 'str'}, + 'administrator_login': {'key': 'administratorLogin', 'type': 'str'}, + 'administrator_login_password': {'key': 'administratorLoginPassword', 'type': 'str'}, } def __init__( self, + *, + administrator_login: str, + administrator_login_password: str, + version: Optional[Union[str, "ServerVersion"]] = None, + ssl_enforcement: Optional[Union[str, "SslEnforcementEnum"]] = None, + minimal_tls_version: Optional[Union[str, "MinimalTlsVersionEnum"]] = None, + infrastructure_encryption: Optional[Union[str, "InfrastructureEncryption"]] = None, + public_network_access: Optional[Union[str, "PublicNetworkAccessEnum"]] = None, + storage_profile: Optional["StorageProfile"] = None, **kwargs ): - super(ServerVersionCapability, self).__init__(**kwargs) - self.name = None - self.supported_vcores = None + super(ServerPropertiesForDefaultCreate, self).__init__(version=version, ssl_enforcement=ssl_enforcement, minimal_tls_version=minimal_tls_version, infrastructure_encryption=infrastructure_encryption, public_network_access=public_network_access, storage_profile=storage_profile, **kwargs) + self.create_mode = 'Default' # type: str + self.administrator_login = administrator_login + self.administrator_login_password = administrator_login_password -class Sku(msrest.serialization.Model): - """Sku information related properties of a server. +class ServerPropertiesForGeoRestore(ServerPropertiesForCreate): + """The properties used to create a new server by restoring to a different region from a geo replicated backup. All required parameters must be populated in order to send to Azure. - :param name: Required. The name of the sku, typically, tier + family + cores, e.g. - Standard_D4s_v3. - :type name: str - :param tier: Required. The tier of the particular SKU, e.g. Burstable. Possible values include: - "Burstable", "GeneralPurpose", "MemoryOptimized". - :type tier: str or ~azure.mgmt.rdbms.postgresql.models.SkuTier + :param version: Server version. Possible values include: "9.5", "9.6", "10", "10.0", "10.2", + "11". + :type version: str or ~azure.mgmt.rdbms.postgresql.models.ServerVersion + :param ssl_enforcement: Enable ssl enforcement or not when connect to server. Possible values + include: "Enabled", "Disabled". + :type ssl_enforcement: str or ~azure.mgmt.rdbms.postgresql.models.SslEnforcementEnum + :param minimal_tls_version: Enforce a minimal Tls version for the server. Possible values + include: "TLS1_0", "TLS1_1", "TLS1_2", "TLSEnforcementDisabled". + :type minimal_tls_version: str or ~azure.mgmt.rdbms.postgresql.models.MinimalTlsVersionEnum + :param infrastructure_encryption: Status showing whether the server enabled infrastructure + encryption. Possible values include: "Enabled", "Disabled". + :type infrastructure_encryption: str or + ~azure.mgmt.rdbms.postgresql.models.InfrastructureEncryption + :param public_network_access: Whether or not public network access is allowed for this server. + Value is optional but if passed in, must be 'Enabled' or 'Disabled'. Possible values include: + "Enabled", "Disabled". + :type public_network_access: str or ~azure.mgmt.rdbms.postgresql.models.PublicNetworkAccessEnum + :param storage_profile: Storage profile of a server. + :type storage_profile: ~azure.mgmt.rdbms.postgresql.models.StorageProfile + :param create_mode: Required. The mode to create a new server.Constant filled by server. + Possible values include: "Default", "PointInTimeRestore", "GeoRestore", "Replica". + :type create_mode: str or ~azure.mgmt.rdbms.postgresql.models.CreateMode + :param source_server_id: Required. The source server id to restore from. + :type source_server_id: str """ _validation = { - 'name': {'required': True}, - 'tier': {'required': True}, + 'create_mode': {'required': True}, + 'source_server_id': {'required': True}, } _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'tier': {'key': 'tier', 'type': 'str'}, + 'version': {'key': 'version', 'type': 'str'}, + 'ssl_enforcement': {'key': 'sslEnforcement', 'type': 'str'}, + 'minimal_tls_version': {'key': 'minimalTlsVersion', 'type': 'str'}, + 'infrastructure_encryption': {'key': 'infrastructureEncryption', 'type': 'str'}, + 'public_network_access': {'key': 'publicNetworkAccess', 'type': 'str'}, + 'storage_profile': {'key': 'storageProfile', 'type': 'StorageProfile'}, + 'create_mode': {'key': 'createMode', 'type': 'str'}, + 'source_server_id': {'key': 'sourceServerId', 'type': 'str'}, } def __init__( self, *, - name: str, - tier: Union[str, "SkuTier"], + source_server_id: str, + version: Optional[Union[str, "ServerVersion"]] = None, + ssl_enforcement: Optional[Union[str, "SslEnforcementEnum"]] = None, + minimal_tls_version: Optional[Union[str, "MinimalTlsVersionEnum"]] = None, + infrastructure_encryption: Optional[Union[str, "InfrastructureEncryption"]] = None, + public_network_access: Optional[Union[str, "PublicNetworkAccessEnum"]] = None, + storage_profile: Optional["StorageProfile"] = None, **kwargs ): - super(Sku, self).__init__(**kwargs) - self.name = name - self.tier = tier + super(ServerPropertiesForGeoRestore, self).__init__(version=version, ssl_enforcement=ssl_enforcement, minimal_tls_version=minimal_tls_version, infrastructure_encryption=infrastructure_encryption, public_network_access=public_network_access, storage_profile=storage_profile, **kwargs) + self.create_mode = 'GeoRestore' # type: str + self.source_server_id = source_server_id + + +class ServerPropertiesForReplica(ServerPropertiesForCreate): + """The properties to create a new replica. + + All required parameters must be populated in order to send to Azure. + + :param version: Server version. Possible values include: "9.5", "9.6", "10", "10.0", "10.2", + "11". + :type version: str or ~azure.mgmt.rdbms.postgresql.models.ServerVersion + :param ssl_enforcement: Enable ssl enforcement or not when connect to server. Possible values + include: "Enabled", "Disabled". + :type ssl_enforcement: str or ~azure.mgmt.rdbms.postgresql.models.SslEnforcementEnum + :param minimal_tls_version: Enforce a minimal Tls version for the server. Possible values + include: "TLS1_0", "TLS1_1", "TLS1_2", "TLSEnforcementDisabled". + :type minimal_tls_version: str or ~azure.mgmt.rdbms.postgresql.models.MinimalTlsVersionEnum + :param infrastructure_encryption: Status showing whether the server enabled infrastructure + encryption. Possible values include: "Enabled", "Disabled". + :type infrastructure_encryption: str or + ~azure.mgmt.rdbms.postgresql.models.InfrastructureEncryption + :param public_network_access: Whether or not public network access is allowed for this server. + Value is optional but if passed in, must be 'Enabled' or 'Disabled'. Possible values include: + "Enabled", "Disabled". + :type public_network_access: str or ~azure.mgmt.rdbms.postgresql.models.PublicNetworkAccessEnum + :param storage_profile: Storage profile of a server. + :type storage_profile: ~azure.mgmt.rdbms.postgresql.models.StorageProfile + :param create_mode: Required. The mode to create a new server.Constant filled by server. + Possible values include: "Default", "PointInTimeRestore", "GeoRestore", "Replica". + :type create_mode: str or ~azure.mgmt.rdbms.postgresql.models.CreateMode + :param source_server_id: Required. The master server id to create replica from. + :type source_server_id: str + """ + + _validation = { + 'create_mode': {'required': True}, + 'source_server_id': {'required': True}, + } + + _attribute_map = { + 'version': {'key': 'version', 'type': 'str'}, + 'ssl_enforcement': {'key': 'sslEnforcement', 'type': 'str'}, + 'minimal_tls_version': {'key': 'minimalTlsVersion', 'type': 'str'}, + 'infrastructure_encryption': {'key': 'infrastructureEncryption', 'type': 'str'}, + 'public_network_access': {'key': 'publicNetworkAccess', 'type': 'str'}, + 'storage_profile': {'key': 'storageProfile', 'type': 'StorageProfile'}, + 'create_mode': {'key': 'createMode', 'type': 'str'}, + 'source_server_id': {'key': 'sourceServerId', 'type': 'str'}, + } + + def __init__( + self, + *, + source_server_id: str, + version: Optional[Union[str, "ServerVersion"]] = None, + ssl_enforcement: Optional[Union[str, "SslEnforcementEnum"]] = None, + minimal_tls_version: Optional[Union[str, "MinimalTlsVersionEnum"]] = None, + infrastructure_encryption: Optional[Union[str, "InfrastructureEncryption"]] = None, + public_network_access: Optional[Union[str, "PublicNetworkAccessEnum"]] = None, + storage_profile: Optional["StorageProfile"] = None, + **kwargs + ): + super(ServerPropertiesForReplica, self).__init__(version=version, ssl_enforcement=ssl_enforcement, minimal_tls_version=minimal_tls_version, infrastructure_encryption=infrastructure_encryption, public_network_access=public_network_access, storage_profile=storage_profile, **kwargs) + self.create_mode = 'Replica' # type: str + self.source_server_id = source_server_id + + +class ServerPropertiesForRestore(ServerPropertiesForCreate): + """The properties used to create a new server by restoring from a backup. + + All required parameters must be populated in order to send to Azure. + + :param version: Server version. Possible values include: "9.5", "9.6", "10", "10.0", "10.2", + "11". + :type version: str or ~azure.mgmt.rdbms.postgresql.models.ServerVersion + :param ssl_enforcement: Enable ssl enforcement or not when connect to server. Possible values + include: "Enabled", "Disabled". + :type ssl_enforcement: str or ~azure.mgmt.rdbms.postgresql.models.SslEnforcementEnum + :param minimal_tls_version: Enforce a minimal Tls version for the server. Possible values + include: "TLS1_0", "TLS1_1", "TLS1_2", "TLSEnforcementDisabled". + :type minimal_tls_version: str or ~azure.mgmt.rdbms.postgresql.models.MinimalTlsVersionEnum + :param infrastructure_encryption: Status showing whether the server enabled infrastructure + encryption. Possible values include: "Enabled", "Disabled". + :type infrastructure_encryption: str or + ~azure.mgmt.rdbms.postgresql.models.InfrastructureEncryption + :param public_network_access: Whether or not public network access is allowed for this server. + Value is optional but if passed in, must be 'Enabled' or 'Disabled'. Possible values include: + "Enabled", "Disabled". + :type public_network_access: str or ~azure.mgmt.rdbms.postgresql.models.PublicNetworkAccessEnum + :param storage_profile: Storage profile of a server. + :type storage_profile: ~azure.mgmt.rdbms.postgresql.models.StorageProfile + :param create_mode: Required. The mode to create a new server.Constant filled by server. + Possible values include: "Default", "PointInTimeRestore", "GeoRestore", "Replica". + :type create_mode: str or ~azure.mgmt.rdbms.postgresql.models.CreateMode + :param source_server_id: Required. The source server id to restore from. + :type source_server_id: str + :param restore_point_in_time: Required. Restore point creation time (ISO8601 format), + specifying the time to restore from. + :type restore_point_in_time: ~datetime.datetime + """ + + _validation = { + 'create_mode': {'required': True}, + 'source_server_id': {'required': True}, + 'restore_point_in_time': {'required': True}, + } + + _attribute_map = { + 'version': {'key': 'version', 'type': 'str'}, + 'ssl_enforcement': {'key': 'sslEnforcement', 'type': 'str'}, + 'minimal_tls_version': {'key': 'minimalTlsVersion', 'type': 'str'}, + 'infrastructure_encryption': {'key': 'infrastructureEncryption', 'type': 'str'}, + 'public_network_access': {'key': 'publicNetworkAccess', 'type': 'str'}, + 'storage_profile': {'key': 'storageProfile', 'type': 'StorageProfile'}, + 'create_mode': {'key': 'createMode', 'type': 'str'}, + 'source_server_id': {'key': 'sourceServerId', 'type': 'str'}, + 'restore_point_in_time': {'key': 'restorePointInTime', 'type': 'iso-8601'}, + } + + def __init__( + self, + *, + source_server_id: str, + restore_point_in_time: datetime.datetime, + version: Optional[Union[str, "ServerVersion"]] = None, + ssl_enforcement: Optional[Union[str, "SslEnforcementEnum"]] = None, + minimal_tls_version: Optional[Union[str, "MinimalTlsVersionEnum"]] = None, + infrastructure_encryption: Optional[Union[str, "InfrastructureEncryption"]] = None, + public_network_access: Optional[Union[str, "PublicNetworkAccessEnum"]] = None, + storage_profile: Optional["StorageProfile"] = None, + **kwargs + ): + super(ServerPropertiesForRestore, self).__init__(version=version, ssl_enforcement=ssl_enforcement, minimal_tls_version=minimal_tls_version, infrastructure_encryption=infrastructure_encryption, public_network_access=public_network_access, storage_profile=storage_profile, **kwargs) + self.create_mode = 'PointInTimeRestore' # type: str + self.source_server_id = source_server_id + self.restore_point_in_time = restore_point_in_time -class StorageEditionCapability(msrest.serialization.Model): - """storage edition capability. +class ServerSecurityAlertPolicy(ProxyResource): + """A server security alert policy. Variables are only populated by the server, and will be ignored when sending a request. - :ivar name: storage edition name. + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. + :vartype id: str + :ivar name: The name of the resource. :vartype name: str - :ivar supported_storage_mb: - :vartype supported_storage_mb: list[~azure.mgmt.rdbms.postgresql.models.StorageMBCapability] + :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + "Microsoft.Storage/storageAccounts". + :vartype type: str + :param state: Specifies the state of the policy, whether it is enabled or disabled. Possible + values include: "Enabled", "Disabled". + :type state: str or ~azure.mgmt.rdbms.postgresql.models.ServerSecurityAlertPolicyState + :param disabled_alerts: Specifies an array of alerts that are disabled. Allowed values are: + Sql_Injection, Sql_Injection_Vulnerability, Access_Anomaly. + :type disabled_alerts: list[str] + :param email_addresses: Specifies an array of e-mail addresses to which the alert is sent. + :type email_addresses: list[str] + :param email_account_admins: Specifies that the alert is sent to the account administrators. + :type email_account_admins: bool + :param storage_endpoint: Specifies the blob storage endpoint (e.g. + https://MyAccount.blob.core.windows.net). This blob storage will hold all Threat Detection + audit logs. + :type storage_endpoint: str + :param storage_account_access_key: Specifies the identifier key of the Threat Detection audit + storage account. + :type storage_account_access_key: str + :param retention_days: Specifies the number of days to keep in the Threat Detection audit logs. + :type retention_days: int """ _validation = { + 'id': {'readonly': True}, 'name': {'readonly': True}, - 'supported_storage_mb': {'readonly': True}, + 'type': {'readonly': True}, } _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, 'name': {'key': 'name', 'type': 'str'}, - 'supported_storage_mb': {'key': 'supportedStorageMB', 'type': '[StorageMBCapability]'}, + 'type': {'key': 'type', 'type': 'str'}, + 'state': {'key': 'properties.state', 'type': 'str'}, + 'disabled_alerts': {'key': 'properties.disabledAlerts', 'type': '[str]'}, + 'email_addresses': {'key': 'properties.emailAddresses', 'type': '[str]'}, + 'email_account_admins': {'key': 'properties.emailAccountAdmins', 'type': 'bool'}, + 'storage_endpoint': {'key': 'properties.storageEndpoint', 'type': 'str'}, + 'storage_account_access_key': {'key': 'properties.storageAccountAccessKey', 'type': 'str'}, + 'retention_days': {'key': 'properties.retentionDays', 'type': 'int'}, } def __init__( self, + *, + state: Optional[Union[str, "ServerSecurityAlertPolicyState"]] = None, + disabled_alerts: Optional[List[str]] = None, + email_addresses: Optional[List[str]] = None, + email_account_admins: Optional[bool] = None, + storage_endpoint: Optional[str] = None, + storage_account_access_key: Optional[str] = None, + retention_days: Optional[int] = None, **kwargs ): - super(StorageEditionCapability, self).__init__(**kwargs) - self.name = None - self.supported_storage_mb = None + super(ServerSecurityAlertPolicy, self).__init__(**kwargs) + self.state = state + self.disabled_alerts = disabled_alerts + self.email_addresses = email_addresses + self.email_account_admins = email_account_admins + self.storage_endpoint = storage_endpoint + self.storage_account_access_key = storage_account_access_key + self.retention_days = retention_days -class StorageMBCapability(msrest.serialization.Model): - """storage size in MB capability. +class ServerSecurityAlertPolicyListResult(msrest.serialization.Model): + """A list of the server's security alert policies. Variables are only populated by the server, and will be ignored when sending a request. - :ivar name: storage MB name. - :vartype name: str - :ivar supported_iops: supported IOPS. - :vartype supported_iops: long - :ivar storage_size_mb: storage size in MB. - :vartype storage_size_mb: long + :ivar value: Array of results. + :vartype value: list[~azure.mgmt.rdbms.postgresql.models.ServerSecurityAlertPolicy] + :ivar next_link: Link to retrieve next page of results. + :vartype next_link: str """ _validation = { - 'name': {'readonly': True}, - 'supported_iops': {'readonly': True}, - 'storage_size_mb': {'readonly': True}, + 'value': {'readonly': True}, + 'next_link': {'readonly': True}, + } + + _attribute_map = { + 'value': {'key': 'value', 'type': '[ServerSecurityAlertPolicy]'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(ServerSecurityAlertPolicyListResult, self).__init__(**kwargs) + self.value = None + self.next_link = None + + +class ServerUpdateParameters(msrest.serialization.Model): + """Parameters allowed to update for a server. + + :param identity: The Azure Active Directory identity of the server. + :type identity: ~azure.mgmt.rdbms.postgresql.models.ResourceIdentity + :param sku: The SKU (pricing tier) of the server. + :type sku: ~azure.mgmt.rdbms.postgresql.models.Sku + :param tags: A set of tags. Application-specific metadata in the form of key-value pairs. + :type tags: dict[str, str] + :param storage_profile: Storage profile of a server. + :type storage_profile: ~azure.mgmt.rdbms.postgresql.models.StorageProfile + :param administrator_login_password: The password of the administrator login. + :type administrator_login_password: str + :param version: The version of a server. Possible values include: "9.5", "9.6", "10", "10.0", + "10.2", "11". + :type version: str or ~azure.mgmt.rdbms.postgresql.models.ServerVersion + :param ssl_enforcement: Enable ssl enforcement or not when connect to server. Possible values + include: "Enabled", "Disabled". + :type ssl_enforcement: str or ~azure.mgmt.rdbms.postgresql.models.SslEnforcementEnum + :param minimal_tls_version: Enforce a minimal Tls version for the server. Possible values + include: "TLS1_0", "TLS1_1", "TLS1_2", "TLSEnforcementDisabled". + :type minimal_tls_version: str or ~azure.mgmt.rdbms.postgresql.models.MinimalTlsVersionEnum + :param public_network_access: Whether or not public network access is allowed for this server. + Value is optional but if passed in, must be 'Enabled' or 'Disabled'. Possible values include: + "Enabled", "Disabled". + :type public_network_access: str or ~azure.mgmt.rdbms.postgresql.models.PublicNetworkAccessEnum + :param replication_role: The replication role of the server. + :type replication_role: str + """ + + _attribute_map = { + 'identity': {'key': 'identity', 'type': 'ResourceIdentity'}, + 'sku': {'key': 'sku', 'type': 'Sku'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'storage_profile': {'key': 'properties.storageProfile', 'type': 'StorageProfile'}, + 'administrator_login_password': {'key': 'properties.administratorLoginPassword', 'type': 'str'}, + 'version': {'key': 'properties.version', 'type': 'str'}, + 'ssl_enforcement': {'key': 'properties.sslEnforcement', 'type': 'str'}, + 'minimal_tls_version': {'key': 'properties.minimalTlsVersion', 'type': 'str'}, + 'public_network_access': {'key': 'properties.publicNetworkAccess', 'type': 'str'}, + 'replication_role': {'key': 'properties.replicationRole', 'type': 'str'}, + } + + def __init__( + self, + *, + identity: Optional["ResourceIdentity"] = None, + sku: Optional["Sku"] = None, + tags: Optional[Dict[str, str]] = None, + storage_profile: Optional["StorageProfile"] = None, + administrator_login_password: Optional[str] = None, + version: Optional[Union[str, "ServerVersion"]] = None, + ssl_enforcement: Optional[Union[str, "SslEnforcementEnum"]] = None, + minimal_tls_version: Optional[Union[str, "MinimalTlsVersionEnum"]] = None, + public_network_access: Optional[Union[str, "PublicNetworkAccessEnum"]] = None, + replication_role: Optional[str] = None, + **kwargs + ): + super(ServerUpdateParameters, self).__init__(**kwargs) + self.identity = identity + self.sku = sku + self.tags = tags + self.storage_profile = storage_profile + self.administrator_login_password = administrator_login_password + self.version = version + self.ssl_enforcement = ssl_enforcement + self.minimal_tls_version = minimal_tls_version + self.public_network_access = public_network_access + self.replication_role = replication_role + + +class Sku(msrest.serialization.Model): + """Billing information related properties of a server. + + All required parameters must be populated in order to send to Azure. + + :param name: Required. The name of the sku, typically, tier + family + cores, e.g. B_Gen4_1, + GP_Gen5_8. + :type name: str + :param tier: The tier of the particular SKU, e.g. Basic. Possible values include: "Basic", + "GeneralPurpose", "MemoryOptimized". + :type tier: str or ~azure.mgmt.rdbms.postgresql.models.SkuTier + :param capacity: The scale up/out capacity, representing server's compute units. + :type capacity: int + :param size: The size code, to be interpreted by resource as appropriate. + :type size: str + :param family: The family of hardware. + :type family: str + """ + + _validation = { + 'name': {'required': True}, + 'capacity': {'minimum': 0}, } _attribute_map = { 'name': {'key': 'name', 'type': 'str'}, - 'supported_iops': {'key': 'supportedIops', 'type': 'long'}, - 'storage_size_mb': {'key': 'storageSizeMB', 'type': 'long'}, + 'tier': {'key': 'tier', 'type': 'str'}, + 'capacity': {'key': 'capacity', 'type': 'int'}, + 'size': {'key': 'size', 'type': 'str'}, + 'family': {'key': 'family', 'type': 'str'}, } def __init__( self, + *, + name: str, + tier: Optional[Union[str, "SkuTier"]] = None, + capacity: Optional[int] = None, + size: Optional[str] = None, + family: Optional[str] = None, **kwargs ): - super(StorageMBCapability, self).__init__(**kwargs) - self.name = None - self.supported_iops = None - self.storage_size_mb = None + super(Sku, self).__init__(**kwargs) + self.name = name + self.tier = tier + self.capacity = capacity + self.size = size + self.family = family class StorageProfile(msrest.serialization.Model): @@ -1266,109 +2222,137 @@ class StorageProfile(msrest.serialization.Model): :param backup_retention_days: Backup retention days for the server. :type backup_retention_days: int + :param geo_redundant_backup: Enable Geo-redundant or not for server backup. Possible values + include: "Enabled", "Disabled". + :type geo_redundant_backup: str or ~azure.mgmt.rdbms.postgresql.models.GeoRedundantBackup :param storage_mb: Max storage allowed for a server. :type storage_mb: int + :param storage_autogrow: Enable Storage Auto Grow. Possible values include: "Enabled", + "Disabled". + :type storage_autogrow: str or ~azure.mgmt.rdbms.postgresql.models.StorageAutogrow """ _attribute_map = { 'backup_retention_days': {'key': 'backupRetentionDays', 'type': 'int'}, + 'geo_redundant_backup': {'key': 'geoRedundantBackup', 'type': 'str'}, 'storage_mb': {'key': 'storageMB', 'type': 'int'}, + 'storage_autogrow': {'key': 'storageAutogrow', 'type': 'str'}, } def __init__( self, *, backup_retention_days: Optional[int] = None, + geo_redundant_backup: Optional[Union[str, "GeoRedundantBackup"]] = None, storage_mb: Optional[int] = None, + storage_autogrow: Optional[Union[str, "StorageAutogrow"]] = None, **kwargs ): super(StorageProfile, self).__init__(**kwargs) self.backup_retention_days = backup_retention_days + self.geo_redundant_backup = geo_redundant_backup self.storage_mb = storage_mb + self.storage_autogrow = storage_autogrow -class VcoreCapability(msrest.serialization.Model): - """Vcores capability. +class TagsObject(msrest.serialization.Model): + """Tags object for patch operations. - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar name: vCore name. - :vartype name: str - :ivar v_cores: supported vCores. - :vartype v_cores: long - :ivar supported_iops: supported IOPS. - :vartype supported_iops: long - :ivar supported_memory_per_vcore_mb: supported memory per vCore in MB. - :vartype supported_memory_per_vcore_mb: long + :param tags: A set of tags. Resource tags. + :type tags: dict[str, str] """ - _validation = { - 'name': {'readonly': True}, - 'v_cores': {'readonly': True}, - 'supported_iops': {'readonly': True}, - 'supported_memory_per_vcore_mb': {'readonly': True}, - } - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'v_cores': {'key': 'vCores', 'type': 'long'}, - 'supported_iops': {'key': 'supportedIops', 'type': 'long'}, - 'supported_memory_per_vcore_mb': {'key': 'supportedMemoryPerVcoreMB', 'type': 'long'}, + 'tags': {'key': 'tags', 'type': '{str}'}, } def __init__( self, + *, + tags: Optional[Dict[str, str]] = None, **kwargs ): - super(VcoreCapability, self).__init__(**kwargs) - self.name = None - self.v_cores = None - self.supported_iops = None - self.supported_memory_per_vcore_mb = None + super(TagsObject, self).__init__(**kwargs) + self.tags = tags + +class VirtualNetworkRule(ProxyResource): + """A virtual network rule. -class VirtualNetworkSubnetUsageParameter(msrest.serialization.Model): - """Virtual network subnet usage parameter. + Variables are only populated by the server, and will be ignored when sending a request. - :param virtual_network_arm_resource_id: Virtual network resource id. - :type virtual_network_arm_resource_id: str + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. + :vartype id: str + :ivar name: The name of the resource. + :vartype name: str + :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + "Microsoft.Storage/storageAccounts". + :vartype type: str + :param virtual_network_subnet_id: The ARM resource id of the virtual network subnet. + :type virtual_network_subnet_id: str + :param ignore_missing_vnet_service_endpoint: Create firewall rule before the virtual network + has vnet service endpoint enabled. + :type ignore_missing_vnet_service_endpoint: bool + :ivar state: Virtual Network Rule State. Possible values include: "Initializing", "InProgress", + "Ready", "Deleting", "Unknown". + :vartype state: str or ~azure.mgmt.rdbms.postgresql.models.VirtualNetworkRuleState """ + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'state': {'readonly': True}, + } + _attribute_map = { - 'virtual_network_arm_resource_id': {'key': 'virtualNetworkArmResourceId', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'virtual_network_subnet_id': {'key': 'properties.virtualNetworkSubnetId', 'type': 'str'}, + 'ignore_missing_vnet_service_endpoint': {'key': 'properties.ignoreMissingVnetServiceEndpoint', 'type': 'bool'}, + 'state': {'key': 'properties.state', 'type': 'str'}, } def __init__( self, *, - virtual_network_arm_resource_id: Optional[str] = None, + virtual_network_subnet_id: Optional[str] = None, + ignore_missing_vnet_service_endpoint: Optional[bool] = None, **kwargs ): - super(VirtualNetworkSubnetUsageParameter, self).__init__(**kwargs) - self.virtual_network_arm_resource_id = virtual_network_arm_resource_id + super(VirtualNetworkRule, self).__init__(**kwargs) + self.virtual_network_subnet_id = virtual_network_subnet_id + self.ignore_missing_vnet_service_endpoint = ignore_missing_vnet_service_endpoint + self.state = None -class VirtualNetworkSubnetUsageResult(msrest.serialization.Model): - """Virtual network subnet usage data. +class VirtualNetworkRuleListResult(msrest.serialization.Model): + """A list of virtual network rules. Variables are only populated by the server, and will be ignored when sending a request. - :ivar delegated_subnets_usage: - :vartype delegated_subnets_usage: - list[~azure.mgmt.rdbms.postgresql.models.DelegatedSubnetUsage] + :ivar value: Array of results. + :vartype value: list[~azure.mgmt.rdbms.postgresql.models.VirtualNetworkRule] + :ivar next_link: Link to retrieve next page of results. + :vartype next_link: str """ _validation = { - 'delegated_subnets_usage': {'readonly': True}, + 'value': {'readonly': True}, + 'next_link': {'readonly': True}, } _attribute_map = { - 'delegated_subnets_usage': {'key': 'delegatedSubnetsUsage', 'type': '[DelegatedSubnetUsage]'}, + 'value': {'key': 'value', 'type': '[VirtualNetworkRule]'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, } def __init__( self, **kwargs ): - super(VirtualNetworkSubnetUsageResult, self).__init__(**kwargs) - self.delegated_subnets_usage = None + super(VirtualNetworkRuleListResult, self).__init__(**kwargs) + self.value = None + self.next_link = None diff --git a/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/postgresql/models/_postgre_sql_management_client_enums.py b/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/postgresql/models/_postgre_sql_management_client_enums.py index 2230483881b9..75c70a1f5abb 100644 --- a/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/postgresql/models/_postgre_sql_management_client_enums.py +++ b/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/postgresql/models/_postgre_sql_management_client_enums.py @@ -26,37 +26,49 @@ def __getattr__(cls, name): raise AttributeError(name) -class ConfigurationDataType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): - """Data type of the configuration. - """ - - BOOLEAN = "Boolean" - NUMERIC = "Numeric" - INTEGER = "Integer" - ENUMERATION = "Enumeration" - class CreateMode(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): - """The mode to create a new PostgreSQL server. + """The mode to create a new server. """ DEFAULT = "Default" POINT_IN_TIME_RESTORE = "PointInTimeRestore" + GEO_RESTORE = "GeoRestore" + REPLICA = "Replica" + +class GeoRedundantBackup(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """Enable Geo-redundant or not for server backup. + """ + + ENABLED = "Enabled" + DISABLED = "Disabled" -class Enum8(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): +class IdentityType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """The identity type. Set this to 'SystemAssigned' in order to automatically create and assign an + Azure Active Directory principal for the resource. + """ - POSTGRE_SQL = "PostgreSQL" - POSTGRE_SQL_CITUS = "PostgreSQLCitus" - MY_SQL = "MySQL" - MARIA_DB = "MariaDb" - ORACLE = "Oracle" + SYSTEM_ASSIGNED = "SystemAssigned" -class HAEnabledEnum(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): - """stand by count value can be either enabled or disabled +class InfrastructureEncryption(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """Add a second layer of encryption for your data using new encryption algorithm which gives + additional data protection. Value is optional but if passed in, must be 'Disabled' or + 'Enabled'. """ + #: Default value for single layer of encryption for data at rest. ENABLED = "Enabled" + #: Additional (2nd) layer of encryption for data at rest. DISABLED = "Disabled" +class MinimalTlsVersionEnum(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """Enforce a minimal Tls version for the server. + """ + + TLS1_0 = "TLS1_0" + TLS1_1 = "TLS1_1" + TLS1_2 = "TLS1_2" + TLS_ENFORCEMENT_DISABLED = "TLSEnforcementDisabled" + class OperationOrigin(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): """The intended executor of the operation. """ @@ -65,19 +77,51 @@ class OperationOrigin(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): USER = "user" SYSTEM = "system" -class ServerHAState(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): - """A state of a HA server that is visible to user. +class PrivateEndpointProvisioningState(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """State of the private endpoint connection. """ - NOT_ENABLED = "NotEnabled" - CREATING_STANDBY = "CreatingStandby" - REPLICATING_DATA = "ReplicatingData" - FAILING_OVER = "FailingOver" - HEALTHY = "Healthy" - REMOVING_STANDBY = "RemovingStandby" + APPROVING = "Approving" + READY = "Ready" + DROPPING = "Dropping" + FAILED = "Failed" + REJECTING = "Rejecting" + +class PrivateLinkServiceConnectionStateActionsRequire(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """The actions required for private link service connection. + """ + + NONE = "None" -class ServerPublicNetworkAccessState(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): - """public network access is enabled or not +class PrivateLinkServiceConnectionStateStatus(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """The private link service connection status. + """ + + APPROVED = "Approved" + PENDING = "Pending" + REJECTED = "Rejected" + DISCONNECTED = "Disconnected" + +class PublicNetworkAccessEnum(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """Whether or not public network access is allowed for this server. Value is optional but if + passed in, must be 'Enabled' or 'Disabled' + """ + + ENABLED = "Enabled" + DISABLED = "Disabled" + +class SecurityAlertPolicyName(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + + DEFAULT = "Default" + +class ServerKeyType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """The key type like 'AzureKeyVault'. + """ + + AZURE_KEY_VAULT = "AzureKeyVault" + +class ServerSecurityAlertPolicyState(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """Specifies the state of the policy, whether it is enabled or disabled. """ ENABLED = "Enabled" @@ -90,22 +134,47 @@ class ServerState(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): READY = "Ready" DROPPING = "Dropping" DISABLED = "Disabled" - STARTING = "Starting" - STOPPING = "Stopping" - STOPPED = "Stopped" - UPDATING = "Updating" + INACCESSIBLE = "Inaccessible" class ServerVersion(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): """The version of a server. """ - TWELVE = "12" + NINE5 = "9.5" + NINE6 = "9.6" + TEN = "10" + TEN0 = "10.0" + TEN2 = "10.2" ELEVEN = "11" class SkuTier(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): - """The tier of the particular SKU, e.g. Burstable. + """The tier of the particular SKU, e.g. Basic. """ - BURSTABLE = "Burstable" + BASIC = "Basic" GENERAL_PURPOSE = "GeneralPurpose" MEMORY_OPTIMIZED = "MemoryOptimized" + +class SslEnforcementEnum(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """Enable ssl enforcement or not when connect to server. + """ + + ENABLED = "Enabled" + DISABLED = "Disabled" + +class StorageAutogrow(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """Enable Storage Auto Grow. + """ + + ENABLED = "Enabled" + DISABLED = "Disabled" + +class VirtualNetworkRuleState(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """Virtual Network Rule State + """ + + INITIALIZING = "Initializing" + IN_PROGRESS = "InProgress" + READY = "Ready" + DELETING = "Deleting" + UNKNOWN = "Unknown" diff --git a/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/postgresql/operations/__init__.py b/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/postgresql/operations/__init__.py index d0788161037b..170155b06941 100644 --- a/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/postgresql/operations/__init__.py +++ b/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/postgresql/operations/__init__.py @@ -7,23 +7,41 @@ # -------------------------------------------------------------------------- from ._servers_operations import ServersOperations +from ._replicas_operations import ReplicasOperations from ._firewall_rules_operations import FirewallRulesOperations +from ._virtual_network_rules_operations import VirtualNetworkRulesOperations +from ._databases_operations import DatabasesOperations from ._configurations_operations import ConfigurationsOperations +from ._server_parameters_operations import ServerParametersOperations +from ._log_files_operations import LogFilesOperations +from ._server_administrators_operations import ServerAdministratorsOperations +from ._recoverable_servers_operations import RecoverableServersOperations +from ._server_based_performance_tier_operations import ServerBasedPerformanceTierOperations +from ._location_based_performance_tier_operations import LocationBasedPerformanceTierOperations from ._check_name_availability_operations import CheckNameAvailabilityOperations -from ._location_based_capabilities_operations import LocationBasedCapabilitiesOperations -from ._virtual_network_subnet_usage_operations import VirtualNetworkSubnetUsageOperations from ._operations import Operations -from ._databases_operations import DatabasesOperations -from ._get_private_dns_zone_suffix_operations import GetPrivateDnsZoneSuffixOperations +from ._server_security_alert_policies_operations import ServerSecurityAlertPoliciesOperations +from ._private_endpoint_connections_operations import PrivateEndpointConnectionsOperations +from ._private_link_resources_operations import PrivateLinkResourcesOperations +from ._server_keys_operations import ServerKeysOperations __all__ = [ 'ServersOperations', + 'ReplicasOperations', 'FirewallRulesOperations', + 'VirtualNetworkRulesOperations', + 'DatabasesOperations', 'ConfigurationsOperations', + 'ServerParametersOperations', + 'LogFilesOperations', + 'ServerAdministratorsOperations', + 'RecoverableServersOperations', + 'ServerBasedPerformanceTierOperations', + 'LocationBasedPerformanceTierOperations', 'CheckNameAvailabilityOperations', - 'LocationBasedCapabilitiesOperations', - 'VirtualNetworkSubnetUsageOperations', 'Operations', - 'DatabasesOperations', - 'GetPrivateDnsZoneSuffixOperations', + 'ServerSecurityAlertPoliciesOperations', + 'PrivateEndpointConnectionsOperations', + 'PrivateLinkResourcesOperations', + 'ServerKeysOperations', ] diff --git a/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/postgresql/operations/_check_name_availability_operations.py b/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/postgresql/operations/_check_name_availability_operations.py index 9680a06ba62e..65083a224944 100644 --- a/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/postgresql/operations/_check_name_availability_operations.py +++ b/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/postgresql/operations/_check_name_availability_operations.py @@ -65,7 +65,7 @@ def execute( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-02-14-preview" + api_version = "2017-12-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -102,4 +102,4 @@ def execute( return cls(pipeline_response, deserialized, {}) return deserialized - execute.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.DBForPostgreSql/checkNameAvailability'} # type: ignore + execute.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.DBForPostgreSQL/checkNameAvailability'} # type: ignore diff --git a/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/postgresql/operations/_configurations_operations.py b/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/postgresql/operations/_configurations_operations.py index 8b8e88be5f41..11b68670ea12 100644 --- a/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/postgresql/operations/_configurations_operations.py +++ b/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/postgresql/operations/_configurations_operations.py @@ -47,145 +47,7 @@ def __init__(self, client, config, serializer, deserializer): self._deserialize = deserializer self._config = config - def list_by_server( - self, - resource_group_name, # type: str - server_name, # type: str - **kwargs # type: Any - ): - # type: (...) -> Iterable["_models.ConfigurationListResult"] - """List all the configurations in a given server. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - :type resource_group_name: str - :param server_name: The name of the server. - :type server_name: str - :keyword callable cls: A custom type or function that will be passed the direct response - :return: An iterator like instance of either ConfigurationListResult or the result of cls(response) - :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.rdbms.postgresql.models.ConfigurationListResult] - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop('cls', None) # type: ClsType["_models.ConfigurationListResult"] - error_map = { - 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError - } - error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-02-14-preview" - accept = "application/json" - - def prepare_request(next_link=None): - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') - - if not next_link: - # Construct URL - url = self.list_by_server.metadata['url'] # type: ignore - path_format_arguments = { - 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), - 'serverName': self._serialize.url("server_name", server_name, 'str'), - } - url = self._client.format_url(url, **path_format_arguments) - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') - - request = self._client.get(url, query_parameters, header_parameters) - else: - url = next_link - query_parameters = {} # type: Dict[str, Any] - request = self._client.get(url, query_parameters, header_parameters) - return request - - def extract_data(pipeline_response): - deserialized = self._deserialize('ConfigurationListResult', pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - request = prepare_request(next_link) - - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged( - get_next, extract_data - ) - list_by_server.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/flexibleServers/{serverName}/configurations'} # type: ignore - - def get( - self, - resource_group_name, # type: str - server_name, # type: str - configuration_name, # type: str - **kwargs # type: Any - ): - # type: (...) -> "_models.Configuration" - """Gets information about a configuration of server. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - :type resource_group_name: str - :param server_name: The name of the server. - :type server_name: str - :param configuration_name: The name of the server configuration. - :type configuration_name: str - :keyword callable cls: A custom type or function that will be passed the direct response - :return: Configuration, or the result of cls(response) - :rtype: ~azure.mgmt.rdbms.postgresql.models.Configuration - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop('cls', None) # type: ClsType["_models.Configuration"] - error_map = { - 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError - } - error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-02-14-preview" - accept = "application/json" - - # Construct URL - url = self.get.metadata['url'] # type: ignore - path_format_arguments = { - 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), - 'serverName': self._serialize.url("server_name", server_name, 'str'), - 'configurationName': self._serialize.url("configuration_name", configuration_name, 'str'), - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') - - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') - - request = self._client.get(url, query_parameters, header_parameters) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize('Configuration', pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/flexibleServers/{serverName}/configurations/{configurationName}'} # type: ignore - - def _update_initial( + def _create_or_update_initial( self, resource_group_name, # type: str server_name, # type: str @@ -199,12 +61,12 @@ def _update_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-02-14-preview" + api_version = "2017-12-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" # Construct URL - url = self._update_initial.metadata['url'] # type: ignore + url = self._create_or_update_initial.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), @@ -225,7 +87,7 @@ def _update_initial( body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(parameters, 'Configuration') body_content_kwargs['content'] = body_content - request = self._client.patch(url, query_parameters, header_parameters, **body_content_kwargs) + request = self._client.put(url, query_parameters, header_parameters, **body_content_kwargs) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -241,9 +103,9 @@ def _update_initial( return cls(pipeline_response, deserialized, {}) return deserialized - _update_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/flexibleServers/{serverName}/configurations/{configurationName}'} # type: ignore + _create_or_update_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSQL/servers/{serverName}/configurations/{configurationName}'} # type: ignore - def begin_update( + def begin_create_or_update( self, resource_group_name, # type: str server_name, # type: str @@ -280,7 +142,7 @@ def begin_update( ) cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] if cont_token is None: - raw_result = self._update_initial( + raw_result = self._create_or_update_initial( resource_group_name=resource_group_name, server_name=server_name, configuration_name=configuration_name, @@ -318,4 +180,142 @@ def get_long_running_output(pipeline_response): ) else: return LROPoller(self._client, raw_result, get_long_running_output, polling_method) - begin_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/flexibleServers/{serverName}/configurations/{configurationName}'} # type: ignore + begin_create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSQL/servers/{serverName}/configurations/{configurationName}'} # type: ignore + + def get( + self, + resource_group_name, # type: str + server_name, # type: str + configuration_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> "_models.Configuration" + """Gets information about a configuration of server. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + :type resource_group_name: str + :param server_name: The name of the server. + :type server_name: str + :param configuration_name: The name of the server configuration. + :type configuration_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: Configuration, or the result of cls(response) + :rtype: ~azure.mgmt.rdbms.postgresql.models.Configuration + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.Configuration"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2017-12-01" + accept = "application/json" + + # Construct URL + url = self.get.metadata['url'] # type: ignore + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'serverName': self._serialize.url("server_name", server_name, 'str'), + 'configurationName': self._serialize.url("configuration_name", configuration_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response, error_format=ARMErrorFormat) + + deserialized = self._deserialize('Configuration', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSQL/servers/{serverName}/configurations/{configurationName}'} # type: ignore + + def list_by_server( + self, + resource_group_name, # type: str + server_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> Iterable["_models.ConfigurationListResult"] + """List all the configurations in a given server. + + :param resource_group_name: The name of the resource group. The name is case insensitive. + :type resource_group_name: str + :param server_name: The name of the server. + :type server_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: An iterator like instance of either ConfigurationListResult or the result of cls(response) + :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.rdbms.postgresql.models.ConfigurationListResult] + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.ConfigurationListResult"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2017-12-01" + accept = "application/json" + + def prepare_request(next_link=None): + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + if not next_link: + # Construct URL + url = self.list_by_server.metadata['url'] # type: ignore + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'serverName': self._serialize.url("server_name", server_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + else: + url = next_link + query_parameters = {} # type: Dict[str, Any] + request = self._client.get(url, query_parameters, header_parameters) + return request + + def extract_data(pipeline_response): + deserialized = self._deserialize('ConfigurationListResult', pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) + return None, iter(list_of_elem) + + def get_next(next_link=None): + request = prepare_request(next_link) + + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response, error_format=ARMErrorFormat) + + return pipeline_response + + return ItemPaged( + get_next, extract_data + ) + list_by_server.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSQL/servers/{serverName}/configurations'} # type: ignore diff --git a/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/postgresql/operations/_databases_operations.py b/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/postgresql/operations/_databases_operations.py index 6c6c5eca7331..92e2e78b1aca 100644 --- a/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/postgresql/operations/_databases_operations.py +++ b/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/postgresql/operations/_databases_operations.py @@ -47,7 +47,7 @@ def __init__(self, client, config, serializer, deserializer): self._deserialize = deserializer self._config = config - def _create_initial( + def _create_or_update_initial( self, resource_group_name, # type: str server_name, # type: str @@ -61,12 +61,12 @@ def _create_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-11-05-preview" + api_version = "2017-12-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" # Construct URL - url = self._create_initial.metadata['url'] # type: ignore + url = self._create_or_update_initial.metadata['url'] # type: ignore path_format_arguments = { 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), @@ -106,9 +106,9 @@ def _create_initial( return cls(pipeline_response, deserialized, {}) return deserialized - _create_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/flexibleServers/{serverName}/databases/{databaseName}'} # type: ignore + _create_or_update_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSQL/servers/{serverName}/databases/{databaseName}'} # type: ignore - def begin_create( + def begin_create_or_update( self, resource_group_name, # type: str server_name, # type: str @@ -145,7 +145,7 @@ def begin_create( ) cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] if cont_token is None: - raw_result = self._create_initial( + raw_result = self._create_or_update_initial( resource_group_name=resource_group_name, server_name=server_name, database_name=database_name, @@ -183,7 +183,7 @@ def get_long_running_output(pipeline_response): ) else: return LROPoller(self._client, raw_result, get_long_running_output, polling_method) - begin_create.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/flexibleServers/{serverName}/databases/{databaseName}'} # type: ignore + begin_create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSQL/servers/{serverName}/databases/{databaseName}'} # type: ignore def _delete_initial( self, @@ -198,7 +198,7 @@ def _delete_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-11-05-preview" + api_version = "2017-12-01" accept = "application/json" # Construct URL @@ -230,7 +230,7 @@ def _delete_initial( if cls: return cls(pipeline_response, None, {}) - _delete_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/flexibleServers/{serverName}/databases/{databaseName}'} # type: ignore + _delete_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSQL/servers/{serverName}/databases/{databaseName}'} # type: ignore def begin_delete( self, @@ -300,7 +300,7 @@ def get_long_running_output(pipeline_response): ) else: return LROPoller(self._client, raw_result, get_long_running_output, polling_method) - begin_delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/flexibleServers/{serverName}/databases/{databaseName}'} # type: ignore + begin_delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSQL/servers/{serverName}/databases/{databaseName}'} # type: ignore def get( self, @@ -328,7 +328,7 @@ def get( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-11-05-preview" + api_version = "2017-12-01" accept = "application/json" # Construct URL @@ -363,7 +363,7 @@ def get( return cls(pipeline_response, deserialized, {}) return deserialized - get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/flexibleServers/{serverName}/databases/{databaseName}'} # type: ignore + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSQL/servers/{serverName}/databases/{databaseName}'} # type: ignore def list_by_server( self, @@ -388,7 +388,7 @@ def list_by_server( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-11-05-preview" + api_version = "2017-12-01" accept = "application/json" def prepare_request(next_link=None): @@ -421,7 +421,7 @@ def extract_data(pipeline_response): list_of_elem = deserialized.value if cls: list_of_elem = cls(list_of_elem) - return deserialized.next_link or None, iter(list_of_elem) + return None, iter(list_of_elem) def get_next(next_link=None): request = prepare_request(next_link) @@ -438,4 +438,4 @@ def get_next(next_link=None): return ItemPaged( get_next, extract_data ) - list_by_server.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/flexibleServers/{serverName}/databases'} # type: ignore + list_by_server.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSQL/servers/{serverName}/databases'} # type: ignore diff --git a/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/postgresql/operations/_firewall_rules_operations.py b/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/postgresql/operations/_firewall_rules_operations.py index a6aff6b79c93..f3438dfc2cb7 100644 --- a/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/postgresql/operations/_firewall_rules_operations.py +++ b/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/postgresql/operations/_firewall_rules_operations.py @@ -61,7 +61,7 @@ def _create_or_update_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-02-14-preview" + api_version = "2017-12-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -106,7 +106,7 @@ def _create_or_update_initial( return cls(pipeline_response, deserialized, {}) return deserialized - _create_or_update_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/flexibleServers/{serverName}/firewallRules/{firewallRuleName}'} # type: ignore + _create_or_update_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSQL/servers/{serverName}/firewallRules/{firewallRuleName}'} # type: ignore def begin_create_or_update( self, @@ -183,7 +183,7 @@ def get_long_running_output(pipeline_response): ) else: return LROPoller(self._client, raw_result, get_long_running_output, polling_method) - begin_create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/flexibleServers/{serverName}/firewallRules/{firewallRuleName}'} # type: ignore + begin_create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSQL/servers/{serverName}/firewallRules/{firewallRuleName}'} # type: ignore def _delete_initial( self, @@ -198,7 +198,7 @@ def _delete_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-02-14-preview" + api_version = "2017-12-01" accept = "application/json" # Construct URL @@ -230,7 +230,7 @@ def _delete_initial( if cls: return cls(pipeline_response, None, {}) - _delete_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/flexibleServers/{serverName}/firewallRules/{firewallRuleName}'} # type: ignore + _delete_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSQL/servers/{serverName}/firewallRules/{firewallRuleName}'} # type: ignore def begin_delete( self, @@ -240,7 +240,7 @@ def begin_delete( **kwargs # type: Any ): # type: (...) -> LROPoller[None] - """Deletes a PostgreSQL server firewall rule. + """Deletes a server firewall rule. :param resource_group_name: The name of the resource group. The name is case insensitive. :type resource_group_name: str @@ -300,7 +300,7 @@ def get_long_running_output(pipeline_response): ) else: return LROPoller(self._client, raw_result, get_long_running_output, polling_method) - begin_delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/flexibleServers/{serverName}/firewallRules/{firewallRuleName}'} # type: ignore + begin_delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSQL/servers/{serverName}/firewallRules/{firewallRuleName}'} # type: ignore def get( self, @@ -310,7 +310,7 @@ def get( **kwargs # type: Any ): # type: (...) -> "_models.FirewallRule" - """List all the firewall rules in a given server. + """Gets information about a server firewall rule. :param resource_group_name: The name of the resource group. The name is case insensitive. :type resource_group_name: str @@ -328,7 +328,7 @@ def get( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-02-14-preview" + api_version = "2017-12-01" accept = "application/json" # Construct URL @@ -363,7 +363,7 @@ def get( return cls(pipeline_response, deserialized, {}) return deserialized - get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/flexibleServers/{serverName}/firewallRules/{firewallRuleName}'} # type: ignore + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSQL/servers/{serverName}/firewallRules/{firewallRuleName}'} # type: ignore def list_by_server( self, @@ -372,7 +372,7 @@ def list_by_server( **kwargs # type: Any ): # type: (...) -> Iterable["_models.FirewallRuleListResult"] - """List all the firewall rules in a given PostgreSQL server. + """List all the firewall rules in a given server. :param resource_group_name: The name of the resource group. The name is case insensitive. :type resource_group_name: str @@ -388,7 +388,7 @@ def list_by_server( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-02-14-preview" + api_version = "2017-12-01" accept = "application/json" def prepare_request(next_link=None): @@ -421,7 +421,7 @@ def extract_data(pipeline_response): list_of_elem = deserialized.value if cls: list_of_elem = cls(list_of_elem) - return deserialized.next_link or None, iter(list_of_elem) + return None, iter(list_of_elem) def get_next(next_link=None): request = prepare_request(next_link) @@ -438,4 +438,4 @@ def get_next(next_link=None): return ItemPaged( get_next, extract_data ) - list_by_server.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/flexibleServers/{serverName}/firewallRules'} # type: ignore + list_by_server.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSQL/servers/{serverName}/firewallRules'} # type: ignore diff --git a/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/postgresql/operations/_location_based_capabilities_operations.py b/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/postgresql/operations/_location_based_capabilities_operations.py deleted file mode 100644 index 1156aad9267b..000000000000 --- a/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/postgresql/operations/_location_based_capabilities_operations.py +++ /dev/null @@ -1,117 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from typing import TYPE_CHECKING -import warnings - -from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpRequest, HttpResponse -from azure.mgmt.core.exceptions import ARMErrorFormat - -from .. import models as _models - -if TYPE_CHECKING: - # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Generic, Iterable, Optional, TypeVar - - T = TypeVar('T') - ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -class LocationBasedCapabilitiesOperations(object): - """LocationBasedCapabilitiesOperations operations. - - You should not instantiate this class directly. Instead, you should create a Client instance that - instantiates it for you and attaches it as an attribute. - - :ivar models: Alias to model classes used in this operation group. - :type models: ~azure.mgmt.rdbms.postgresql.models - :param client: Client for service requests. - :param config: Configuration of service client. - :param serializer: An object model serializer. - :param deserializer: An object model deserializer. - """ - - models = _models - - def __init__(self, client, config, serializer, deserializer): - self._client = client - self._serialize = serializer - self._deserialize = deserializer - self._config = config - - def execute( - self, - location_name, # type: str - **kwargs # type: Any - ): - # type: (...) -> Iterable["_models.CapabilitiesListResult"] - """Get capabilities at specified location in a given subscription. - - :param location_name: The name of the location. - :type location_name: str - :keyword callable cls: A custom type or function that will be passed the direct response - :return: An iterator like instance of either CapabilitiesListResult or the result of cls(response) - :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.rdbms.postgresql.models.CapabilitiesListResult] - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop('cls', None) # type: ClsType["_models.CapabilitiesListResult"] - error_map = { - 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError - } - error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-02-14-preview" - accept = "application/json" - - def prepare_request(next_link=None): - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') - - if not next_link: - # Construct URL - url = self.execute.metadata['url'] # type: ignore - path_format_arguments = { - 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'locationName': self._serialize.url("location_name", location_name, 'str'), - } - url = self._client.format_url(url, **path_format_arguments) - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') - - request = self._client.get(url, query_parameters, header_parameters) - else: - url = next_link - query_parameters = {} # type: Dict[str, Any] - request = self._client.get(url, query_parameters, header_parameters) - return request - - def extract_data(pipeline_response): - deserialized = self._deserialize('CapabilitiesListResult', pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) - return deserialized.next_link or None, iter(list_of_elem) - - def get_next(next_link=None): - request = prepare_request(next_link) - - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged( - get_next, extract_data - ) - execute.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.DBForPostgreSql/locations/{locationName}/capabilities'} # type: ignore diff --git a/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/postgresql/operations/_operations.py b/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/postgresql/operations/_operations.py index 505d658abe9c..2b897906dfb4 100644 --- a/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/postgresql/operations/_operations.py +++ b/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/postgresql/operations/_operations.py @@ -61,7 +61,7 @@ def list( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-02-14-preview" + api_version = "2017-12-01" accept = "application/json" # Construct URL @@ -89,4 +89,4 @@ def list( return cls(pipeline_response, deserialized, {}) return deserialized - list.metadata = {'url': '/providers/Microsoft.DBForPostgreSql/operations'} # type: ignore + list.metadata = {'url': '/providers/Microsoft.DBForPostgreSQL/operations'} # type: ignore diff --git a/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/postgresql/operations/_servers_operations.py b/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/postgresql/operations/_servers_operations.py index 3389cf21dab1..10e0ea52e5ce 100644 --- a/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/postgresql/operations/_servers_operations.py +++ b/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/postgresql/operations/_servers_operations.py @@ -51,7 +51,7 @@ def _create_initial( self, resource_group_name, # type: str server_name, # type: str - parameters, # type: "_models.Server" + parameters, # type: "_models.ServerForCreate" **kwargs # type: Any ): # type: (...) -> Optional["_models.Server"] @@ -60,7 +60,7 @@ def _create_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-02-14-preview" + api_version = "2017-12-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -83,7 +83,7 @@ def _create_initial( header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] - body_content = self._serialize.body(parameters, 'Server') + body_content = self._serialize.body(parameters, 'ServerForCreate') body_content_kwargs['content'] = body_content request = self._client.put(url, query_parameters, header_parameters, **body_content_kwargs) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) @@ -104,24 +104,24 @@ def _create_initial( return cls(pipeline_response, deserialized, {}) return deserialized - _create_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/flexibleServers/{serverName}'} # type: ignore + _create_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSQL/servers/{serverName}'} # type: ignore def begin_create( self, resource_group_name, # type: str server_name, # type: str - parameters, # type: "_models.Server" + parameters, # type: "_models.ServerForCreate" **kwargs # type: Any ): # type: (...) -> LROPoller["_models.Server"] - """Creates a new server. + """Creates a new server, or will overwrite an existing server. :param resource_group_name: The name of the resource group. The name is case insensitive. :type resource_group_name: str :param server_name: The name of the server. :type server_name: str :param parameters: The required parameters for creating or updating a server. - :type parameters: ~azure.mgmt.rdbms.postgresql.models.Server + :type parameters: ~azure.mgmt.rdbms.postgresql.models.ServerForCreate :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. :keyword polling: Pass in True if you'd like the ARMPolling polling method, @@ -176,13 +176,13 @@ def get_long_running_output(pipeline_response): ) else: return LROPoller(self._client, raw_result, get_long_running_output, polling_method) - begin_create.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/flexibleServers/{serverName}'} # type: ignore + begin_create.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSQL/servers/{serverName}'} # type: ignore def _update_initial( self, resource_group_name, # type: str server_name, # type: str - parameters, # type: "_models.ServerForUpdate" + parameters, # type: "_models.ServerUpdateParameters" **kwargs # type: Any ): # type: (...) -> Optional["_models.Server"] @@ -191,7 +191,7 @@ def _update_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-02-14-preview" + api_version = "2017-12-01" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -214,7 +214,7 @@ def _update_initial( header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] - body_content = self._serialize.body(parameters, 'ServerForUpdate') + body_content = self._serialize.body(parameters, 'ServerUpdateParameters') body_content_kwargs['content'] = body_content request = self._client.patch(url, query_parameters, header_parameters, **body_content_kwargs) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) @@ -232,13 +232,13 @@ def _update_initial( return cls(pipeline_response, deserialized, {}) return deserialized - _update_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/flexibleServers/{serverName}'} # type: ignore + _update_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSQL/servers/{serverName}'} # type: ignore def begin_update( self, resource_group_name, # type: str server_name, # type: str - parameters, # type: "_models.ServerForUpdate" + parameters, # type: "_models.ServerUpdateParameters" **kwargs # type: Any ): # type: (...) -> LROPoller["_models.Server"] @@ -250,7 +250,7 @@ def begin_update( :param server_name: The name of the server. :type server_name: str :param parameters: The required parameters for updating a server. - :type parameters: ~azure.mgmt.rdbms.postgresql.models.ServerForUpdate + :type parameters: ~azure.mgmt.rdbms.postgresql.models.ServerUpdateParameters :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. :keyword polling: Pass in True if you'd like the ARMPolling polling method, @@ -305,7 +305,7 @@ def get_long_running_output(pipeline_response): ) else: return LROPoller(self._client, raw_result, get_long_running_output, polling_method) - begin_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/flexibleServers/{serverName}'} # type: ignore + begin_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSQL/servers/{serverName}'} # type: ignore def _delete_initial( self, @@ -319,7 +319,7 @@ def _delete_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-02-14-preview" + api_version = "2017-12-01" accept = "application/json" # Construct URL @@ -350,7 +350,7 @@ def _delete_initial( if cls: return cls(pipeline_response, None, {}) - _delete_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/flexibleServers/{serverName}'} # type: ignore + _delete_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSQL/servers/{serverName}'} # type: ignore def begin_delete( self, @@ -415,7 +415,7 @@ def get_long_running_output(pipeline_response): ) else: return LROPoller(self._client, raw_result, get_long_running_output, polling_method) - begin_delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/flexibleServers/{serverName}'} # type: ignore + begin_delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSQL/servers/{serverName}'} # type: ignore def get( self, @@ -440,7 +440,7 @@ def get( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-02-14-preview" + api_version = "2017-12-01" accept = "application/json" # Construct URL @@ -474,7 +474,7 @@ def get( return cls(pipeline_response, deserialized, {}) return deserialized - get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/flexibleServers/{serverName}'} # type: ignore + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSQL/servers/{serverName}'} # type: ignore def list_by_resource_group( self, @@ -496,7 +496,7 @@ def list_by_resource_group( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-02-14-preview" + api_version = "2017-12-01" accept = "application/json" def prepare_request(next_link=None): @@ -528,7 +528,7 @@ def extract_data(pipeline_response): list_of_elem = deserialized.value if cls: list_of_elem = cls(list_of_elem) - return deserialized.next_link or None, iter(list_of_elem) + return None, iter(list_of_elem) def get_next(next_link=None): request = prepare_request(next_link) @@ -545,7 +545,7 @@ def get_next(next_link=None): return ItemPaged( get_next, extract_data ) - list_by_resource_group.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/flexibleServers'} # type: ignore + list_by_resource_group.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSQL/servers'} # type: ignore def list( self, @@ -564,7 +564,7 @@ def list( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-02-14-preview" + api_version = "2017-12-01" accept = "application/json" def prepare_request(next_link=None): @@ -595,7 +595,7 @@ def extract_data(pipeline_response): list_of_elem = deserialized.value if cls: list_of_elem = cls(list_of_elem) - return deserialized.next_link or None, iter(list_of_elem) + return None, iter(list_of_elem) def get_next(next_link=None): request = prepare_request(next_link) @@ -612,7 +612,7 @@ def get_next(next_link=None): return ItemPaged( get_next, extract_data ) - list.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.DBForPostgreSql/flexibleServers'} # type: ignore + list.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.DBForPostgreSQL/servers'} # type: ignore def _restart_initial( self, @@ -626,7 +626,7 @@ def _restart_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-02-14-preview" + api_version = "2017-12-01" accept = "application/json" # Construct URL @@ -657,7 +657,7 @@ def _restart_initial( if cls: return cls(pipeline_response, None, {}) - _restart_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/flexibleServers/{serverName}/restart'} # type: ignore + _restart_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSQL/servers/{serverName}/restart'} # type: ignore def begin_restart( self, @@ -722,224 +722,4 @@ def get_long_running_output(pipeline_response): ) else: return LROPoller(self._client, raw_result, get_long_running_output, polling_method) - begin_restart.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/flexibleServers/{serverName}/restart'} # type: ignore - - def _start_initial( - self, - resource_group_name, # type: str - server_name, # type: str - **kwargs # type: Any - ): - # type: (...) -> None - cls = kwargs.pop('cls', None) # type: ClsType[None] - error_map = { - 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError - } - error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-02-14-preview" - accept = "application/json" - - # Construct URL - url = self._start_initial.metadata['url'] # type: ignore - path_format_arguments = { - 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), - 'serverName': self._serialize.url("server_name", server_name, 'str'), - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') - - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') - - request = self._client.post(url, query_parameters, header_parameters) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) - - _start_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/flexibleServers/{serverName}/start'} # type: ignore - - def begin_start( - self, - resource_group_name, # type: str - server_name, # type: str - **kwargs # type: Any - ): - # type: (...) -> LROPoller[None] - """Starts a server. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - :type resource_group_name: str - :param server_name: The name of the server. - :type server_name: str - :keyword callable cls: A custom type or function that will be passed the direct response - :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. - :paramtype polling: bool or ~azure.core.polling.PollingMethod - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] - cls = kwargs.pop('cls', None) # type: ClsType[None] - lro_delay = kwargs.pop( - 'polling_interval', - self._config.polling_interval - ) - cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] - if cont_token is None: - raw_result = self._start_initial( - resource_group_name=resource_group_name, - server_name=server_name, - cls=lambda x,y,z: x, - **kwargs - ) - - kwargs.pop('error_map', None) - kwargs.pop('content_type', None) - - def get_long_running_output(pipeline_response): - if cls: - return cls(pipeline_response, None, {}) - - path_format_arguments = { - 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), - 'serverName': self._serialize.url("server_name", server_name, 'str'), - } - - if polling is True: polling_method = ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) - elif polling is False: polling_method = NoPolling() - else: polling_method = polling - if cont_token: - return LROPoller.from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output - ) - else: - return LROPoller(self._client, raw_result, get_long_running_output, polling_method) - begin_start.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/flexibleServers/{serverName}/start'} # type: ignore - - def _stop_initial( - self, - resource_group_name, # type: str - server_name, # type: str - **kwargs # type: Any - ): - # type: (...) -> None - cls = kwargs.pop('cls', None) # type: ClsType[None] - error_map = { - 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError - } - error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-02-14-preview" - accept = "application/json" - - # Construct URL - url = self._stop_initial.metadata['url'] # type: ignore - path_format_arguments = { - 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), - 'serverName': self._serialize.url("server_name", server_name, 'str'), - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') - - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') - - request = self._client.post(url, query_parameters, header_parameters) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200, 202]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - if cls: - return cls(pipeline_response, None, {}) - - _stop_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/flexibleServers/{serverName}/stop'} # type: ignore - - def begin_stop( - self, - resource_group_name, # type: str - server_name, # type: str - **kwargs # type: Any - ): - # type: (...) -> LROPoller[None] - """Stops a server. - - :param resource_group_name: The name of the resource group. The name is case insensitive. - :type resource_group_name: str - :param server_name: The name of the server. - :type server_name: str - :keyword callable cls: A custom type or function that will be passed the direct response - :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. - :paramtype polling: bool or ~azure.core.polling.PollingMethod - :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. - :return: An instance of LROPoller that returns either None or the result of cls(response) - :rtype: ~azure.core.polling.LROPoller[None] - :raises ~azure.core.exceptions.HttpResponseError: - """ - polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] - cls = kwargs.pop('cls', None) # type: ClsType[None] - lro_delay = kwargs.pop( - 'polling_interval', - self._config.polling_interval - ) - cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] - if cont_token is None: - raw_result = self._stop_initial( - resource_group_name=resource_group_name, - server_name=server_name, - cls=lambda x,y,z: x, - **kwargs - ) - - kwargs.pop('error_map', None) - kwargs.pop('content_type', None) - - def get_long_running_output(pipeline_response): - if cls: - return cls(pipeline_response, None, {}) - - path_format_arguments = { - 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), - 'serverName': self._serialize.url("server_name", server_name, 'str'), - } - - if polling is True: polling_method = ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) - elif polling is False: polling_method = NoPolling() - else: polling_method = polling - if cont_token: - return LROPoller.from_continuation_token( - polling_method=polling_method, - continuation_token=cont_token, - client=self._client, - deserialization_callback=get_long_running_output - ) - else: - return LROPoller(self._client, raw_result, get_long_running_output, polling_method) - begin_stop.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/flexibleServers/{serverName}/stop'} # type: ignore + begin_restart.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSQL/servers/{serverName}/restart'} # type: ignore diff --git a/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/postgresql/operations/_virtual_network_subnet_usage_operations.py b/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/postgresql/operations/_virtual_network_subnet_usage_operations.py deleted file mode 100644 index ec98188b8ea2..000000000000 --- a/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/postgresql/operations/_virtual_network_subnet_usage_operations.py +++ /dev/null @@ -1,108 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is regenerated. -# -------------------------------------------------------------------------- -from typing import TYPE_CHECKING -import warnings - -from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error -from azure.core.pipeline import PipelineResponse -from azure.core.pipeline.transport import HttpRequest, HttpResponse -from azure.mgmt.core.exceptions import ARMErrorFormat - -from .. import models as _models - -if TYPE_CHECKING: - # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Generic, Optional, TypeVar - - T = TypeVar('T') - ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -class VirtualNetworkSubnetUsageOperations(object): - """VirtualNetworkSubnetUsageOperations operations. - - You should not instantiate this class directly. Instead, you should create a Client instance that - instantiates it for you and attaches it as an attribute. - - :ivar models: Alias to model classes used in this operation group. - :type models: ~azure.mgmt.rdbms.postgresql.models - :param client: Client for service requests. - :param config: Configuration of service client. - :param serializer: An object model serializer. - :param deserializer: An object model deserializer. - """ - - models = _models - - def __init__(self, client, config, serializer, deserializer): - self._client = client - self._serialize = serializer - self._deserialize = deserializer - self._config = config - - def execute( - self, - location_name, # type: str - parameters, # type: "_models.VirtualNetworkSubnetUsageParameter" - **kwargs # type: Any - ): - # type: (...) -> "_models.VirtualNetworkSubnetUsageResult" - """Get virtual network subnet usage for a given vNet resource id. - - :param location_name: The name of the location. - :type location_name: str - :param parameters: The required parameters for creating or updating a server. - :type parameters: ~azure.mgmt.rdbms.postgresql.models.VirtualNetworkSubnetUsageParameter - :keyword callable cls: A custom type or function that will be passed the direct response - :return: VirtualNetworkSubnetUsageResult, or the result of cls(response) - :rtype: ~azure.mgmt.rdbms.postgresql.models.VirtualNetworkSubnetUsageResult - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop('cls', None) # type: ClsType["_models.VirtualNetworkSubnetUsageResult"] - error_map = { - 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError - } - error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-02-14-preview" - content_type = kwargs.pop("content_type", "application/json") - accept = "application/json" - - # Construct URL - url = self.execute.metadata['url'] # type: ignore - path_format_arguments = { - 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), - 'locationName': self._serialize.url("location_name", location_name, 'str'), - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') - - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') - - body_content_kwargs = {} # type: Dict[str, Any] - body_content = self._serialize.body(parameters, 'VirtualNetworkSubnetUsageParameter') - body_content_kwargs['content'] = body_content - request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - deserialized = self._deserialize('VirtualNetworkSubnetUsageResult', pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - execute.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.DBForPostgreSql/locations/{locationName}/checkVirtualNetworkSubnetUsage'} # type: ignore diff --git a/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/postgresql_flexibleservers/_metadata.json b/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/postgresql_flexibleservers/_metadata.json index d3451a63a121..bd177b54ed26 100644 --- a/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/postgresql_flexibleservers/_metadata.json +++ b/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/postgresql_flexibleservers/_metadata.json @@ -1,6 +1,6 @@ { "chosen_version": "", - "total_api_version_list": ["2020-02-14-preview", "2020-11-05-preview"], + "total_api_version_list": ["2020-02-14-preview", "2020-11-05-preview", "2021-03-31-privatepreview"], "client": { "name": "PostgreSQLManagementClient", "filename": "_postgre_sql_management_client", @@ -105,6 +105,7 @@ "location_based_capabilities": "LocationBasedCapabilitiesOperations", "virtual_network_subnet_usage": "VirtualNetworkSubnetUsageOperations", "operations": "Operations", - "databases": "DatabasesOperations" + "databases": "DatabasesOperations", + "get_private_dns_zone_suffix": "GetPrivateDnsZoneSuffixOperations" } } \ No newline at end of file diff --git a/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/postgresql_flexibleservers/_postgre_sql_management_client.py b/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/postgresql_flexibleservers/_postgre_sql_management_client.py index 6cb545865aa0..0ff330675ab9 100644 --- a/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/postgresql_flexibleservers/_postgre_sql_management_client.py +++ b/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/postgresql_flexibleservers/_postgre_sql_management_client.py @@ -27,6 +27,7 @@ from .operations import VirtualNetworkSubnetUsageOperations from .operations import Operations from .operations import DatabasesOperations +from .operations import GetPrivateDnsZoneSuffixOperations from . import models @@ -49,6 +50,8 @@ class PostgreSQLManagementClient(object): :vartype operations: azure.mgmt.rdbms.postgresql_flexibleservers.operations.Operations :ivar databases: DatabasesOperations operations :vartype databases: azure.mgmt.rdbms.postgresql_flexibleservers.operations.DatabasesOperations + :ivar get_private_dns_zone_suffix: GetPrivateDnsZoneSuffixOperations operations + :vartype get_private_dns_zone_suffix: azure.mgmt.rdbms.postgresql_flexibleservers.operations.GetPrivateDnsZoneSuffixOperations :param credential: Credential needed for the client to connect to Azure. :type credential: ~azure.core.credentials.TokenCredential :param subscription_id: The ID of the target subscription. @@ -91,6 +94,8 @@ def __init__( self._client, self._config, self._serialize, self._deserialize) self.databases = DatabasesOperations( self._client, self._config, self._serialize, self._deserialize) + self.get_private_dns_zone_suffix = GetPrivateDnsZoneSuffixOperations( + self._client, self._config, self._serialize, self._deserialize) def _send_request(self, http_request, **kwargs): # type: (HttpRequest, Any) -> HttpResponse diff --git a/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/postgresql_flexibleservers/_version.py b/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/postgresql_flexibleservers/_version.py index ab954b3972b4..e5754a47ce68 100644 --- a/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/postgresql_flexibleservers/_version.py +++ b/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/postgresql_flexibleservers/_version.py @@ -6,4 +6,4 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -VERSION = "8.1.0b3" +VERSION = "1.0.0b1" diff --git a/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/postgresql_flexibleservers/aio/_postgre_sql_management_client.py b/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/postgresql_flexibleservers/aio/_postgre_sql_management_client.py index c0a7d5ad6126..fa66d8f5af29 100644 --- a/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/postgresql_flexibleservers/aio/_postgre_sql_management_client.py +++ b/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/postgresql_flexibleservers/aio/_postgre_sql_management_client.py @@ -25,6 +25,7 @@ from .operations import VirtualNetworkSubnetUsageOperations from .operations import Operations from .operations import DatabasesOperations +from .operations import GetPrivateDnsZoneSuffixOperations from .. import models @@ -47,6 +48,8 @@ class PostgreSQLManagementClient(object): :vartype operations: azure.mgmt.rdbms.postgresql_flexibleservers.aio.operations.Operations :ivar databases: DatabasesOperations operations :vartype databases: azure.mgmt.rdbms.postgresql_flexibleservers.aio.operations.DatabasesOperations + :ivar get_private_dns_zone_suffix: GetPrivateDnsZoneSuffixOperations operations + :vartype get_private_dns_zone_suffix: azure.mgmt.rdbms.postgresql_flexibleservers.aio.operations.GetPrivateDnsZoneSuffixOperations :param credential: Credential needed for the client to connect to Azure. :type credential: ~azure.core.credentials_async.AsyncTokenCredential :param subscription_id: The ID of the target subscription. @@ -88,6 +91,8 @@ def __init__( self._client, self._config, self._serialize, self._deserialize) self.databases = DatabasesOperations( self._client, self._config, self._serialize, self._deserialize) + self.get_private_dns_zone_suffix = GetPrivateDnsZoneSuffixOperations( + self._client, self._config, self._serialize, self._deserialize) async def _send_request(self, http_request: HttpRequest, **kwargs: Any) -> AsyncHttpResponse: """Runs the network request through the client's chained policies. diff --git a/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/postgresql_flexibleservers/aio/operations/__init__.py b/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/postgresql_flexibleservers/aio/operations/__init__.py index 87ee27dc72c6..d0788161037b 100644 --- a/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/postgresql_flexibleservers/aio/operations/__init__.py +++ b/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/postgresql_flexibleservers/aio/operations/__init__.py @@ -14,6 +14,7 @@ from ._virtual_network_subnet_usage_operations import VirtualNetworkSubnetUsageOperations from ._operations import Operations from ._databases_operations import DatabasesOperations +from ._get_private_dns_zone_suffix_operations import GetPrivateDnsZoneSuffixOperations __all__ = [ 'ServersOperations', @@ -24,4 +25,5 @@ 'VirtualNetworkSubnetUsageOperations', 'Operations', 'DatabasesOperations', + 'GetPrivateDnsZoneSuffixOperations', ] diff --git a/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/postgresql/aio/operations/_get_private_dns_zone_suffix_operations.py b/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/postgresql_flexibleservers/aio/operations/_get_private_dns_zone_suffix_operations.py similarity index 96% rename from sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/postgresql/aio/operations/_get_private_dns_zone_suffix_operations.py rename to sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/postgresql_flexibleservers/aio/operations/_get_private_dns_zone_suffix_operations.py index 4dcd4deb2de9..f0b6fc7141a1 100644 --- a/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/postgresql/aio/operations/_get_private_dns_zone_suffix_operations.py +++ b/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/postgresql_flexibleservers/aio/operations/_get_private_dns_zone_suffix_operations.py @@ -25,7 +25,7 @@ class GetPrivateDnsZoneSuffixOperations: instantiates it for you and attaches it as an attribute. :ivar models: Alias to model classes used in this operation group. - :type models: ~azure.mgmt.rdbms.postgresql.models + :type models: ~azure.mgmt.rdbms.postgresql_flexibleservers.models :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. @@ -48,7 +48,7 @@ async def execute( """Get private DNS zone suffix in the cloud. :param body: The required parameters for getting private DNS zone suffix based on server type. - :type body: str or ~azure.mgmt.rdbms.postgresql.models.Enum8 + :type body: str or ~azure.mgmt.rdbms.postgresql_flexibleservers.models.Enum8 :keyword callable cls: A custom type or function that will be passed the direct response :return: str, or the result of cls(response) :rtype: str diff --git a/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/postgresql_flexibleservers/models/__init__.py b/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/postgresql_flexibleservers/models/__init__.py index e72b67efb06d..dcd6b080799e 100644 --- a/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/postgresql_flexibleservers/models/__init__.py +++ b/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/postgresql_flexibleservers/models/__init__.py @@ -82,6 +82,7 @@ from ._postgre_sql_management_client_enums import ( ConfigurationDataType, CreateMode, + Enum8, HAEnabledEnum, OperationOrigin, ServerHAState, @@ -129,6 +130,7 @@ 'VirtualNetworkSubnetUsageResult', 'ConfigurationDataType', 'CreateMode', + 'Enum8', 'HAEnabledEnum', 'OperationOrigin', 'ServerHAState', diff --git a/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/postgresql_flexibleservers/models/_models.py b/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/postgresql_flexibleservers/models/_models.py index caf95f57bcb4..f9eedae1b825 100644 --- a/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/postgresql_flexibleservers/models/_models.py +++ b/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/postgresql_flexibleservers/models/_models.py @@ -331,7 +331,7 @@ class ErrorAdditionalInfo(msrest.serialization.Model): :ivar type: The additional info type. :vartype type: str :ivar info: The additional info. - :vartype info: object + :vartype info: str """ _validation = { @@ -341,7 +341,7 @@ class ErrorAdditionalInfo(msrest.serialization.Model): _attribute_map = { 'type': {'key': 'type', 'type': 'str'}, - 'info': {'key': 'info', 'type': 'object'}, + 'info': {'key': 'info', 'type': 'str'}, } def __init__( @@ -612,7 +612,7 @@ class Operation(msrest.serialization.Model): "user", "system". :vartype origin: str or ~azure.mgmt.rdbms.postgresql_flexibleservers.models.OperationOrigin :ivar properties: Additional descriptions for the operation. - :vartype properties: dict[str, object] + :vartype properties: dict[str, str] """ _validation = { @@ -627,7 +627,7 @@ class Operation(msrest.serialization.Model): 'display': {'key': 'display', 'type': 'OperationDisplay'}, 'is_data_action': {'key': 'isDataAction', 'type': 'bool'}, 'origin': {'key': 'origin', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': '{object}'}, + 'properties': {'key': 'properties', 'type': '{str}'}, } def __init__( diff --git a/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/postgresql_flexibleservers/models/_models_py3.py b/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/postgresql_flexibleservers/models/_models_py3.py index fba9afe17c69..d02a4e2a949a 100644 --- a/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/postgresql_flexibleservers/models/_models_py3.py +++ b/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/postgresql_flexibleservers/models/_models_py3.py @@ -348,7 +348,7 @@ class ErrorAdditionalInfo(msrest.serialization.Model): :ivar type: The additional info type. :vartype type: str :ivar info: The additional info. - :vartype info: object + :vartype info: str """ _validation = { @@ -358,7 +358,7 @@ class ErrorAdditionalInfo(msrest.serialization.Model): _attribute_map = { 'type': {'key': 'type', 'type': 'str'}, - 'info': {'key': 'info', 'type': 'object'}, + 'info': {'key': 'info', 'type': 'str'}, } def __init__( @@ -648,7 +648,7 @@ class Operation(msrest.serialization.Model): "user", "system". :vartype origin: str or ~azure.mgmt.rdbms.postgresql_flexibleservers.models.OperationOrigin :ivar properties: Additional descriptions for the operation. - :vartype properties: dict[str, object] + :vartype properties: dict[str, str] """ _validation = { @@ -663,7 +663,7 @@ class Operation(msrest.serialization.Model): 'display': {'key': 'display', 'type': 'OperationDisplay'}, 'is_data_action': {'key': 'isDataAction', 'type': 'bool'}, 'origin': {'key': 'origin', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': '{object}'}, + 'properties': {'key': 'properties', 'type': '{str}'}, } def __init__( diff --git a/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/postgresql_flexibleservers/models/_postgre_sql_management_client_enums.py b/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/postgresql_flexibleservers/models/_postgre_sql_management_client_enums.py index f674a37ee5c9..2230483881b9 100644 --- a/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/postgresql_flexibleservers/models/_postgre_sql_management_client_enums.py +++ b/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/postgresql_flexibleservers/models/_postgre_sql_management_client_enums.py @@ -42,6 +42,14 @@ class CreateMode(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): DEFAULT = "Default" POINT_IN_TIME_RESTORE = "PointInTimeRestore" +class Enum8(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + + POSTGRE_SQL = "PostgreSQL" + POSTGRE_SQL_CITUS = "PostgreSQLCitus" + MY_SQL = "MySQL" + MARIA_DB = "MariaDb" + ORACLE = "Oracle" + class HAEnabledEnum(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): """stand by count value can be either enabled or disabled """ diff --git a/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/postgresql_flexibleservers/operations/__init__.py b/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/postgresql_flexibleservers/operations/__init__.py index 87ee27dc72c6..d0788161037b 100644 --- a/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/postgresql_flexibleservers/operations/__init__.py +++ b/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/postgresql_flexibleservers/operations/__init__.py @@ -14,6 +14,7 @@ from ._virtual_network_subnet_usage_operations import VirtualNetworkSubnetUsageOperations from ._operations import Operations from ._databases_operations import DatabasesOperations +from ._get_private_dns_zone_suffix_operations import GetPrivateDnsZoneSuffixOperations __all__ = [ 'ServersOperations', @@ -24,4 +25,5 @@ 'VirtualNetworkSubnetUsageOperations', 'Operations', 'DatabasesOperations', + 'GetPrivateDnsZoneSuffixOperations', ] diff --git a/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/postgresql/operations/_get_private_dns_zone_suffix_operations.py b/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/postgresql_flexibleservers/operations/_get_private_dns_zone_suffix_operations.py similarity index 96% rename from sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/postgresql/operations/_get_private_dns_zone_suffix_operations.py rename to sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/postgresql_flexibleservers/operations/_get_private_dns_zone_suffix_operations.py index 134519ed2206..f407e6dbae0b 100644 --- a/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/postgresql/operations/_get_private_dns_zone_suffix_operations.py +++ b/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/postgresql_flexibleservers/operations/_get_private_dns_zone_suffix_operations.py @@ -29,7 +29,7 @@ class GetPrivateDnsZoneSuffixOperations(object): instantiates it for you and attaches it as an attribute. :ivar models: Alias to model classes used in this operation group. - :type models: ~azure.mgmt.rdbms.postgresql.models + :type models: ~azure.mgmt.rdbms.postgresql_flexibleservers.models :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. @@ -53,7 +53,7 @@ def execute( """Get private DNS zone suffix in the cloud. :param body: The required parameters for getting private DNS zone suffix based on server type. - :type body: str or ~azure.mgmt.rdbms.postgresql.models.Enum8 + :type body: str or ~azure.mgmt.rdbms.postgresql_flexibleservers.models.Enum8 :keyword callable cls: A custom type or function that will be passed the direct response :return: str, or the result of cls(response) :rtype: str From caa92cc43e8af2ab4e641465808b624d27e40bba Mon Sep 17 00:00:00 2001 From: PythonSdkPipelines Date: Thu, 29 Apr 2021 05:10:33 +0000 Subject: [PATCH 2/4] version,CHANGELOG --- sdk/rdbms/azure-mgmt-rdbms/CHANGELOG.md | 11 +++++++++++ .../azure-mgmt-rdbms/azure/mgmt/rdbms/_version.py | 2 +- .../azure/mgmt/rdbms/postgresql/_version.py | 2 +- .../mgmt/rdbms/postgresql_flexibleservers/_version.py | 2 +- shared_requirements.txt | 1 + 5 files changed, 15 insertions(+), 3 deletions(-) diff --git a/sdk/rdbms/azure-mgmt-rdbms/CHANGELOG.md b/sdk/rdbms/azure-mgmt-rdbms/CHANGELOG.md index e8131a263498..3a40d3660ce3 100644 --- a/sdk/rdbms/azure-mgmt-rdbms/CHANGELOG.md +++ b/sdk/rdbms/azure-mgmt-rdbms/CHANGELOG.md @@ -1,5 +1,16 @@ # Release History +## 8.1.0b4 (2021-04-29) + +**Features** + + - Added operation ServerSecurityAlertPoliciesOperations.list_by_server + - Added operation ServerKeysOperations.list + +**Breaking changes** + + - Removed operation ServerKeysOperations.list_by_server + ## 8.1.0b3 (2021-04-27) **Features** diff --git a/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/_version.py b/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/_version.py index 3a97600b7e2e..c75f127a72fa 100644 --- a/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/_version.py +++ b/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/_version.py @@ -5,4 +5,4 @@ # license information. # -------------------------------------------------------------------------- -VERSION = "8.1.0b3" +VERSION = "8.1.0b4" diff --git a/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/postgresql/_version.py b/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/postgresql/_version.py index e5754a47ce68..45a7b5ff7e38 100644 --- a/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/postgresql/_version.py +++ b/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/postgresql/_version.py @@ -6,4 +6,4 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -VERSION = "1.0.0b1" +VERSION = "8.1.0b4" diff --git a/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/postgresql_flexibleservers/_version.py b/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/postgresql_flexibleservers/_version.py index e5754a47ce68..45a7b5ff7e38 100644 --- a/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/postgresql_flexibleservers/_version.py +++ b/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/postgresql_flexibleservers/_version.py @@ -6,4 +6,4 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -VERSION = "1.0.0b1" +VERSION = "8.1.0b4" diff --git a/shared_requirements.txt b/shared_requirements.txt index 068e38c57abd..150ce870f984 100644 --- a/shared_requirements.txt +++ b/shared_requirements.txt @@ -264,3 +264,4 @@ opentelemetry-sdk<2.0.0,>=1.0.0 #override azure-mgmt-rdbms msrest>=0.6.21 #override azure-mgmt-peering msrest>=0.6.21 #override azure-mgmt-mixedreality msrest>=0.6.21 +#override azure-mgmt-rdbms msrest>=0.6.21 From 586e897873f54d781dcd17bef6a145786cbe1618 Mon Sep 17 00:00:00 2001 From: PythonSdkPipelines Date: Thu, 29 Apr 2021 05:38:23 +0000 Subject: [PATCH 3/4] test --- .../test_cli_mgmt_mariadb.test_mariadb.yaml | 408 +++++++------- .../test_cli_mgmt_mysql.test_mysql.yaml | 519 +++++++----------- ...t_cli_mgmt_postgresql.test_postgresql.yaml | 50 -- 3 files changed, 399 insertions(+), 578 deletions(-) delete mode 100644 sdk/rdbms/azure-mgmt-rdbms/tests/recordings/test_cli_mgmt_postgresql.test_postgresql.yaml diff --git a/sdk/rdbms/azure-mgmt-rdbms/tests/recordings/test_cli_mgmt_mariadb.test_mariadb.yaml b/sdk/rdbms/azure-mgmt-rdbms/tests/recordings/test_cli_mgmt_mariadb.test_mariadb.yaml index e8ab0f8721a4..cffcf785b2ec 100644 --- a/sdk/rdbms/azure-mgmt-rdbms/tests/recordings/test_cli_mgmt_mariadb.test_mariadb.yaml +++ b/sdk/rdbms/azure-mgmt-rdbms/tests/recordings/test_cli_mgmt_mariadb.test_mariadb.yaml @@ -23,10 +23,10 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_mariadb_test_mariadbf2c70db8/providers/Microsoft.DBForMariaDB/servers/testserver21827?api-version=2018-06-01 response: body: - string: '{"operation":"UpsertElasticServer","startTime":"2021-04-27T01:17:29.12Z"}' + string: '{"operation":"UpsertElasticServer","startTime":"2021-04-29T05:10:58.05Z"}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMariaDB/locations/eastus/azureAsyncOperation/0a8bd021-246d-4640-9c7a-66a4489449a7?api-version=2018-06-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMariaDB/locations/eastus/azureAsyncOperation/2b7e83eb-8014-4a15-af8c-ddb4d14ac148?api-version=2018-06-01 cache-control: - no-cache content-length: @@ -34,11 +34,11 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 27 Apr 2021 01:17:32 GMT + - Thu, 29 Apr 2021 05:10:58 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMariaDB/locations/eastus/operationResults/0a8bd021-246d-4640-9c7a-66a4489449a7?api-version=2018-06-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMariaDB/locations/eastus/operationResults/2b7e83eb-8014-4a15-af8c-ddb4d14ac148?api-version=2018-06-01 pragma: - no-cache server: @@ -65,10 +65,10 @@ interactions: - azsdk-python-mgmt-rdbms/unknown Python/3.8.9 (Linux-5.4.0-1046-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMariaDB/locations/eastus/azureAsyncOperation/0a8bd021-246d-4640-9c7a-66a4489449a7?api-version=2018-06-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMariaDB/locations/eastus/azureAsyncOperation/2b7e83eb-8014-4a15-af8c-ddb4d14ac148?api-version=2018-06-01 response: body: - string: '{"name":"0a8bd021-246d-4640-9c7a-66a4489449a7","status":"Succeeded","startTime":"2021-04-27T01:17:29.12Z"}' + string: '{"name":"2b7e83eb-8014-4a15-af8c-ddb4d14ac148","status":"Succeeded","startTime":"2021-04-29T05:10:58.05Z"}' headers: cache-control: - no-cache @@ -77,7 +77,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 27 Apr 2021 01:18:33 GMT + - Thu, 29 Apr 2021 05:11:58 GMT expires: - '-1' pragma: @@ -111,7 +111,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_mariadb_test_mariadbf2c70db8/providers/Microsoft.DBForMariaDB/servers/testserver21827?api-version=2018-06-01 response: body: - string: '{"sku":{"name":"GP_Gen5_2","tier":"GeneralPurpose","family":"Gen5","capacity":2},"properties":{"administratorLogin":"cloudsa","storageProfile":{"storageMB":128000,"backupRetentionDays":7,"geoRedundantBackup":"Enabled","storageAutogrow":"Disabled"},"version":"10.2","sslEnforcement":"Enabled","minimalTlsVersion":"TLSEnforcementDisabled","userVisibleState":"Ready","fullyQualifiedDomainName":"testserver21827.mariadb.database.azure.com","earliestRestoreDate":"2021-04-27T01:27:29.463+00:00","replicationRole":"None","masterServerId":"","replicaCapacity":5,"byokEnforcement":"Disabled","infrastructureEncryption":"Disabled","privateEndpointConnections":[],"publicNetworkAccess":"Enabled"},"location":"eastus","tags":{"elastic_server":"1"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_mariadb_test_mariadbf2c70db8/providers/Microsoft.DBforMariaDB/servers/testserver21827","name":"testserver21827","type":"Microsoft.DBforMariaDB/servers"}' + string: '{"sku":{"name":"GP_Gen5_2","tier":"GeneralPurpose","family":"Gen5","capacity":2},"properties":{"administratorLogin":"cloudsa","storageProfile":{"storageMB":128000,"backupRetentionDays":7,"geoRedundantBackup":"Enabled","storageAutogrow":"Disabled"},"version":"10.2","sslEnforcement":"Enabled","minimalTlsVersion":"TLSEnforcementDisabled","userVisibleState":"Ready","fullyQualifiedDomainName":"testserver21827.mariadb.database.azure.com","earliestRestoreDate":"2021-04-29T05:20:59.207+00:00","replicationRole":"None","masterServerId":"","replicaCapacity":5,"byokEnforcement":"Disabled","infrastructureEncryption":"Disabled","privateEndpointConnections":[],"publicNetworkAccess":"Enabled"},"location":"eastus","tags":{"elastic_server":"1"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_mariadb_test_mariadbf2c70db8/providers/Microsoft.DBforMariaDB/servers/testserver21827","name":"testserver21827","type":"Microsoft.DBforMariaDB/servers"}' headers: cache-control: - no-cache @@ -120,7 +120,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 27 Apr 2021 01:18:33 GMT + - Thu, 29 Apr 2021 05:11:58 GMT expires: - '-1' pragma: @@ -159,10 +159,10 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_mariadb_test_mariadbf2c70db8/providers/Microsoft.DBForMariaDB/servers/serverreplica21827?api-version=2018-06-01 response: body: - string: '{"operation":"CreateElasticServerContinuousCopy","startTime":"2021-04-27T01:18:37.397Z"}' + string: '{"operation":"CreateElasticServerContinuousCopy","startTime":"2021-04-29T05:12:00.207Z"}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMariaDB/locations/eastus/azureAsyncOperation/5fe8402f-1e18-4286-9bb6-6dc66db0ffab?api-version=2018-06-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMariaDB/locations/eastus/azureAsyncOperation/6a184df9-736b-4d72-9f7e-71f61f7c9578?api-version=2018-06-01 cache-control: - no-cache content-length: @@ -170,11 +170,11 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 27 Apr 2021 01:18:36 GMT + - Thu, 29 Apr 2021 05:11:59 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMariaDB/locations/eastus/operationResults/5fe8402f-1e18-4286-9bb6-6dc66db0ffab?api-version=2018-06-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMariaDB/locations/eastus/operationResults/6a184df9-736b-4d72-9f7e-71f61f7c9578?api-version=2018-06-01 pragma: - no-cache server: @@ -201,10 +201,10 @@ interactions: - azsdk-python-mgmt-rdbms/unknown Python/3.8.9 (Linux-5.4.0-1046-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMariaDB/locations/eastus/azureAsyncOperation/5fe8402f-1e18-4286-9bb6-6dc66db0ffab?api-version=2018-06-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMariaDB/locations/eastus/azureAsyncOperation/6a184df9-736b-4d72-9f7e-71f61f7c9578?api-version=2018-06-01 response: body: - string: '{"name":"5fe8402f-1e18-4286-9bb6-6dc66db0ffab","status":"InProgress","startTime":"2021-04-27T01:18:37.397Z"}' + string: '{"name":"6a184df9-736b-4d72-9f7e-71f61f7c9578","status":"InProgress","startTime":"2021-04-29T05:12:00.207Z"}' headers: cache-control: - no-cache @@ -213,7 +213,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 27 Apr 2021 01:19:07 GMT + - Thu, 29 Apr 2021 05:12:29 GMT expires: - '-1' pragma: @@ -244,10 +244,10 @@ interactions: - azsdk-python-mgmt-rdbms/unknown Python/3.8.9 (Linux-5.4.0-1046-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMariaDB/locations/eastus/azureAsyncOperation/5fe8402f-1e18-4286-9bb6-6dc66db0ffab?api-version=2018-06-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMariaDB/locations/eastus/azureAsyncOperation/6a184df9-736b-4d72-9f7e-71f61f7c9578?api-version=2018-06-01 response: body: - string: '{"name":"5fe8402f-1e18-4286-9bb6-6dc66db0ffab","status":"InProgress","startTime":"2021-04-27T01:18:37.397Z"}' + string: '{"name":"6a184df9-736b-4d72-9f7e-71f61f7c9578","status":"InProgress","startTime":"2021-04-29T05:12:00.207Z"}' headers: cache-control: - no-cache @@ -256,7 +256,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 27 Apr 2021 01:19:37 GMT + - Thu, 29 Apr 2021 05:13:00 GMT expires: - '-1' pragma: @@ -287,10 +287,10 @@ interactions: - azsdk-python-mgmt-rdbms/unknown Python/3.8.9 (Linux-5.4.0-1046-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMariaDB/locations/eastus/azureAsyncOperation/5fe8402f-1e18-4286-9bb6-6dc66db0ffab?api-version=2018-06-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMariaDB/locations/eastus/azureAsyncOperation/6a184df9-736b-4d72-9f7e-71f61f7c9578?api-version=2018-06-01 response: body: - string: '{"name":"5fe8402f-1e18-4286-9bb6-6dc66db0ffab","status":"InProgress","startTime":"2021-04-27T01:18:37.397Z"}' + string: '{"name":"6a184df9-736b-4d72-9f7e-71f61f7c9578","status":"InProgress","startTime":"2021-04-29T05:12:00.207Z"}' headers: cache-control: - no-cache @@ -299,7 +299,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 27 Apr 2021 01:20:08 GMT + - Thu, 29 Apr 2021 05:13:30 GMT expires: - '-1' pragma: @@ -330,10 +330,10 @@ interactions: - azsdk-python-mgmt-rdbms/unknown Python/3.8.9 (Linux-5.4.0-1046-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMariaDB/locations/eastus/azureAsyncOperation/5fe8402f-1e18-4286-9bb6-6dc66db0ffab?api-version=2018-06-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMariaDB/locations/eastus/azureAsyncOperation/6a184df9-736b-4d72-9f7e-71f61f7c9578?api-version=2018-06-01 response: body: - string: '{"name":"5fe8402f-1e18-4286-9bb6-6dc66db0ffab","status":"InProgress","startTime":"2021-04-27T01:18:37.397Z"}' + string: '{"name":"6a184df9-736b-4d72-9f7e-71f61f7c9578","status":"InProgress","startTime":"2021-04-29T05:12:00.207Z"}' headers: cache-control: - no-cache @@ -342,7 +342,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 27 Apr 2021 01:20:38 GMT + - Thu, 29 Apr 2021 05:13:59 GMT expires: - '-1' pragma: @@ -373,10 +373,10 @@ interactions: - azsdk-python-mgmt-rdbms/unknown Python/3.8.9 (Linux-5.4.0-1046-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMariaDB/locations/eastus/azureAsyncOperation/5fe8402f-1e18-4286-9bb6-6dc66db0ffab?api-version=2018-06-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMariaDB/locations/eastus/azureAsyncOperation/6a184df9-736b-4d72-9f7e-71f61f7c9578?api-version=2018-06-01 response: body: - string: '{"name":"5fe8402f-1e18-4286-9bb6-6dc66db0ffab","status":"InProgress","startTime":"2021-04-27T01:18:37.397Z"}' + string: '{"name":"6a184df9-736b-4d72-9f7e-71f61f7c9578","status":"InProgress","startTime":"2021-04-29T05:12:00.207Z"}' headers: cache-control: - no-cache @@ -385,7 +385,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 27 Apr 2021 01:21:08 GMT + - Thu, 29 Apr 2021 05:14:30 GMT expires: - '-1' pragma: @@ -416,10 +416,10 @@ interactions: - azsdk-python-mgmt-rdbms/unknown Python/3.8.9 (Linux-5.4.0-1046-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMariaDB/locations/eastus/azureAsyncOperation/5fe8402f-1e18-4286-9bb6-6dc66db0ffab?api-version=2018-06-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMariaDB/locations/eastus/azureAsyncOperation/6a184df9-736b-4d72-9f7e-71f61f7c9578?api-version=2018-06-01 response: body: - string: '{"name":"5fe8402f-1e18-4286-9bb6-6dc66db0ffab","status":"InProgress","startTime":"2021-04-27T01:18:37.397Z"}' + string: '{"name":"6a184df9-736b-4d72-9f7e-71f61f7c9578","status":"InProgress","startTime":"2021-04-29T05:12:00.207Z"}' headers: cache-control: - no-cache @@ -428,7 +428,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 27 Apr 2021 01:21:38 GMT + - Thu, 29 Apr 2021 05:14:59 GMT expires: - '-1' pragma: @@ -459,10 +459,10 @@ interactions: - azsdk-python-mgmt-rdbms/unknown Python/3.8.9 (Linux-5.4.0-1046-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMariaDB/locations/eastus/azureAsyncOperation/5fe8402f-1e18-4286-9bb6-6dc66db0ffab?api-version=2018-06-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMariaDB/locations/eastus/azureAsyncOperation/6a184df9-736b-4d72-9f7e-71f61f7c9578?api-version=2018-06-01 response: body: - string: '{"name":"5fe8402f-1e18-4286-9bb6-6dc66db0ffab","status":"InProgress","startTime":"2021-04-27T01:18:37.397Z"}' + string: '{"name":"6a184df9-736b-4d72-9f7e-71f61f7c9578","status":"InProgress","startTime":"2021-04-29T05:12:00.207Z"}' headers: cache-control: - no-cache @@ -471,7 +471,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 27 Apr 2021 01:22:09 GMT + - Thu, 29 Apr 2021 05:15:30 GMT expires: - '-1' pragma: @@ -502,10 +502,10 @@ interactions: - azsdk-python-mgmt-rdbms/unknown Python/3.8.9 (Linux-5.4.0-1046-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMariaDB/locations/eastus/azureAsyncOperation/5fe8402f-1e18-4286-9bb6-6dc66db0ffab?api-version=2018-06-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMariaDB/locations/eastus/azureAsyncOperation/6a184df9-736b-4d72-9f7e-71f61f7c9578?api-version=2018-06-01 response: body: - string: '{"name":"5fe8402f-1e18-4286-9bb6-6dc66db0ffab","status":"InProgress","startTime":"2021-04-27T01:18:37.397Z"}' + string: '{"name":"6a184df9-736b-4d72-9f7e-71f61f7c9578","status":"InProgress","startTime":"2021-04-29T05:12:00.207Z"}' headers: cache-control: - no-cache @@ -514,7 +514,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 27 Apr 2021 01:22:38 GMT + - Thu, 29 Apr 2021 05:16:00 GMT expires: - '-1' pragma: @@ -545,10 +545,10 @@ interactions: - azsdk-python-mgmt-rdbms/unknown Python/3.8.9 (Linux-5.4.0-1046-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMariaDB/locations/eastus/azureAsyncOperation/5fe8402f-1e18-4286-9bb6-6dc66db0ffab?api-version=2018-06-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMariaDB/locations/eastus/azureAsyncOperation/6a184df9-736b-4d72-9f7e-71f61f7c9578?api-version=2018-06-01 response: body: - string: '{"name":"5fe8402f-1e18-4286-9bb6-6dc66db0ffab","status":"InProgress","startTime":"2021-04-27T01:18:37.397Z"}' + string: '{"name":"6a184df9-736b-4d72-9f7e-71f61f7c9578","status":"InProgress","startTime":"2021-04-29T05:12:00.207Z"}' headers: cache-control: - no-cache @@ -557,7 +557,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 27 Apr 2021 01:23:09 GMT + - Thu, 29 Apr 2021 05:16:30 GMT expires: - '-1' pragma: @@ -588,10 +588,10 @@ interactions: - azsdk-python-mgmt-rdbms/unknown Python/3.8.9 (Linux-5.4.0-1046-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMariaDB/locations/eastus/azureAsyncOperation/5fe8402f-1e18-4286-9bb6-6dc66db0ffab?api-version=2018-06-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMariaDB/locations/eastus/azureAsyncOperation/6a184df9-736b-4d72-9f7e-71f61f7c9578?api-version=2018-06-01 response: body: - string: '{"name":"5fe8402f-1e18-4286-9bb6-6dc66db0ffab","status":"InProgress","startTime":"2021-04-27T01:18:37.397Z"}' + string: '{"name":"6a184df9-736b-4d72-9f7e-71f61f7c9578","status":"InProgress","startTime":"2021-04-29T05:12:00.207Z"}' headers: cache-control: - no-cache @@ -600,7 +600,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 27 Apr 2021 01:23:39 GMT + - Thu, 29 Apr 2021 05:17:00 GMT expires: - '-1' pragma: @@ -631,10 +631,10 @@ interactions: - azsdk-python-mgmt-rdbms/unknown Python/3.8.9 (Linux-5.4.0-1046-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMariaDB/locations/eastus/azureAsyncOperation/5fe8402f-1e18-4286-9bb6-6dc66db0ffab?api-version=2018-06-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMariaDB/locations/eastus/azureAsyncOperation/6a184df9-736b-4d72-9f7e-71f61f7c9578?api-version=2018-06-01 response: body: - string: '{"name":"5fe8402f-1e18-4286-9bb6-6dc66db0ffab","status":"InProgress","startTime":"2021-04-27T01:18:37.397Z"}' + string: '{"name":"6a184df9-736b-4d72-9f7e-71f61f7c9578","status":"InProgress","startTime":"2021-04-29T05:12:00.207Z"}' headers: cache-control: - no-cache @@ -643,7 +643,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 27 Apr 2021 01:24:09 GMT + - Thu, 29 Apr 2021 05:17:31 GMT expires: - '-1' pragma: @@ -674,10 +674,10 @@ interactions: - azsdk-python-mgmt-rdbms/unknown Python/3.8.9 (Linux-5.4.0-1046-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMariaDB/locations/eastus/azureAsyncOperation/5fe8402f-1e18-4286-9bb6-6dc66db0ffab?api-version=2018-06-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMariaDB/locations/eastus/azureAsyncOperation/6a184df9-736b-4d72-9f7e-71f61f7c9578?api-version=2018-06-01 response: body: - string: '{"name":"5fe8402f-1e18-4286-9bb6-6dc66db0ffab","status":"InProgress","startTime":"2021-04-27T01:18:37.397Z"}' + string: '{"name":"6a184df9-736b-4d72-9f7e-71f61f7c9578","status":"InProgress","startTime":"2021-04-29T05:12:00.207Z"}' headers: cache-control: - no-cache @@ -686,7 +686,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 27 Apr 2021 01:24:40 GMT + - Thu, 29 Apr 2021 05:18:00 GMT expires: - '-1' pragma: @@ -717,10 +717,10 @@ interactions: - azsdk-python-mgmt-rdbms/unknown Python/3.8.9 (Linux-5.4.0-1046-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMariaDB/locations/eastus/azureAsyncOperation/5fe8402f-1e18-4286-9bb6-6dc66db0ffab?api-version=2018-06-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMariaDB/locations/eastus/azureAsyncOperation/6a184df9-736b-4d72-9f7e-71f61f7c9578?api-version=2018-06-01 response: body: - string: '{"name":"5fe8402f-1e18-4286-9bb6-6dc66db0ffab","status":"InProgress","startTime":"2021-04-27T01:18:37.397Z"}' + string: '{"name":"6a184df9-736b-4d72-9f7e-71f61f7c9578","status":"InProgress","startTime":"2021-04-29T05:12:00.207Z"}' headers: cache-control: - no-cache @@ -729,7 +729,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 27 Apr 2021 01:25:09 GMT + - Thu, 29 Apr 2021 05:18:31 GMT expires: - '-1' pragma: @@ -760,10 +760,10 @@ interactions: - azsdk-python-mgmt-rdbms/unknown Python/3.8.9 (Linux-5.4.0-1046-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMariaDB/locations/eastus/azureAsyncOperation/5fe8402f-1e18-4286-9bb6-6dc66db0ffab?api-version=2018-06-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMariaDB/locations/eastus/azureAsyncOperation/6a184df9-736b-4d72-9f7e-71f61f7c9578?api-version=2018-06-01 response: body: - string: '{"name":"5fe8402f-1e18-4286-9bb6-6dc66db0ffab","status":"InProgress","startTime":"2021-04-27T01:18:37.397Z"}' + string: '{"name":"6a184df9-736b-4d72-9f7e-71f61f7c9578","status":"InProgress","startTime":"2021-04-29T05:12:00.207Z"}' headers: cache-control: - no-cache @@ -772,7 +772,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 27 Apr 2021 01:25:39 GMT + - Thu, 29 Apr 2021 05:19:00 GMT expires: - '-1' pragma: @@ -803,10 +803,10 @@ interactions: - azsdk-python-mgmt-rdbms/unknown Python/3.8.9 (Linux-5.4.0-1046-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMariaDB/locations/eastus/azureAsyncOperation/5fe8402f-1e18-4286-9bb6-6dc66db0ffab?api-version=2018-06-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMariaDB/locations/eastus/azureAsyncOperation/6a184df9-736b-4d72-9f7e-71f61f7c9578?api-version=2018-06-01 response: body: - string: '{"name":"5fe8402f-1e18-4286-9bb6-6dc66db0ffab","status":"InProgress","startTime":"2021-04-27T01:18:37.397Z"}' + string: '{"name":"6a184df9-736b-4d72-9f7e-71f61f7c9578","status":"InProgress","startTime":"2021-04-29T05:12:00.207Z"}' headers: cache-control: - no-cache @@ -815,7 +815,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 27 Apr 2021 01:26:10 GMT + - Thu, 29 Apr 2021 05:19:31 GMT expires: - '-1' pragma: @@ -846,10 +846,10 @@ interactions: - azsdk-python-mgmt-rdbms/unknown Python/3.8.9 (Linux-5.4.0-1046-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMariaDB/locations/eastus/azureAsyncOperation/5fe8402f-1e18-4286-9bb6-6dc66db0ffab?api-version=2018-06-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMariaDB/locations/eastus/azureAsyncOperation/6a184df9-736b-4d72-9f7e-71f61f7c9578?api-version=2018-06-01 response: body: - string: '{"name":"5fe8402f-1e18-4286-9bb6-6dc66db0ffab","status":"InProgress","startTime":"2021-04-27T01:18:37.397Z"}' + string: '{"name":"6a184df9-736b-4d72-9f7e-71f61f7c9578","status":"InProgress","startTime":"2021-04-29T05:12:00.207Z"}' headers: cache-control: - no-cache @@ -858,7 +858,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 27 Apr 2021 01:26:40 GMT + - Thu, 29 Apr 2021 05:20:01 GMT expires: - '-1' pragma: @@ -889,53 +889,10 @@ interactions: - azsdk-python-mgmt-rdbms/unknown Python/3.8.9 (Linux-5.4.0-1046-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMariaDB/locations/eastus/azureAsyncOperation/5fe8402f-1e18-4286-9bb6-6dc66db0ffab?api-version=2018-06-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMariaDB/locations/eastus/azureAsyncOperation/6a184df9-736b-4d72-9f7e-71f61f7c9578?api-version=2018-06-01 response: body: - string: '{"name":"5fe8402f-1e18-4286-9bb6-6dc66db0ffab","status":"InProgress","startTime":"2021-04-27T01:18:37.397Z"}' - headers: - cache-control: - - no-cache - content-length: - - '108' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 27 Apr 2021 01:27:11 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-mgmt-rdbms/unknown Python/3.8.9 (Linux-5.4.0-1046-azure-x86_64-with-glibc2.2.5) - VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMariaDB/locations/eastus/azureAsyncOperation/5fe8402f-1e18-4286-9bb6-6dc66db0ffab?api-version=2018-06-01 - response: - body: - string: '{"name":"5fe8402f-1e18-4286-9bb6-6dc66db0ffab","status":"Succeeded","startTime":"2021-04-27T01:18:37.397Z"}' + string: '{"name":"6a184df9-736b-4d72-9f7e-71f61f7c9578","status":"Succeeded","startTime":"2021-04-29T05:12:00.207Z"}' headers: cache-control: - no-cache @@ -944,7 +901,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 27 Apr 2021 01:27:41 GMT + - Thu, 29 Apr 2021 05:20:31 GMT expires: - '-1' pragma: @@ -978,16 +935,16 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_mariadb_test_mariadbf2c70db8/providers/Microsoft.DBForMariaDB/servers/serverreplica21827?api-version=2018-06-01 response: body: - string: '{"sku":{"name":"GP_Gen5_2","tier":"GeneralPurpose","family":"Gen5","capacity":2},"properties":{"administratorLogin":"cloudsa","storageProfile":{"storageMB":128000,"backupRetentionDays":7,"geoRedundantBackup":"Enabled","storageAutogrow":"Enabled"},"version":"10.2","sslEnforcement":"Enabled","minimalTlsVersion":"TLSEnforcementDisabled","userVisibleState":"Ready","fullyQualifiedDomainName":"serverreplica21827.mariadb.database.azure.com","earliestRestoreDate":"2021-04-27T01:29:53.757+00:00","replicationRole":"Replica","masterServerId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_mariadb_test_mariadbf2c70db8/providers/Microsoft.DBforMariaDB/servers/testserver21827","replicaCapacity":0,"byokEnforcement":"Disabled","infrastructureEncryption":"Disabled","privateEndpointConnections":[],"publicNetworkAccess":"Enabled"},"location":"eastus","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_mariadb_test_mariadbf2c70db8/providers/Microsoft.DBforMariaDB/servers/serverreplica21827","name":"serverreplica21827","type":"Microsoft.DBforMariaDB/servers"}' + string: '{"sku":{"name":"GP_Gen5_2","tier":"GeneralPurpose","family":"Gen5","capacity":2},"properties":{"administratorLogin":"cloudsa","storageProfile":{"storageMB":128000,"backupRetentionDays":7,"geoRedundantBackup":"Enabled","storageAutogrow":"Enabled"},"version":"10.2","sslEnforcement":"Enabled","minimalTlsVersion":"TLSEnforcementDisabled","userVisibleState":"Ready","fullyQualifiedDomainName":"serverreplica21827.mariadb.database.azure.com","earliestRestoreDate":"2021-04-29T05:23:13.38+00:00","replicationRole":"Replica","masterServerId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_mariadb_test_mariadbf2c70db8/providers/Microsoft.DBforMariaDB/servers/testserver21827","replicaCapacity":0,"byokEnforcement":"Disabled","infrastructureEncryption":"Disabled","privateEndpointConnections":[],"publicNetworkAccess":"Enabled"},"location":"eastus","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_mariadb_test_mariadbf2c70db8/providers/Microsoft.DBforMariaDB/servers/serverreplica21827","name":"serverreplica21827","type":"Microsoft.DBforMariaDB/servers"}' headers: cache-control: - no-cache content-length: - - '1133' + - '1132' content-type: - application/json; charset=utf-8 date: - - Tue, 27 Apr 2021 01:27:41 GMT + - Thu, 29 Apr 2021 05:20:31 GMT expires: - '-1' pragma: @@ -1025,10 +982,10 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_mariadb_test_mariadbf2c70db8/providers/Microsoft.DBForMariaDB/servers/testserver21827/databases/testdatabase21827?api-version=2018-06-01 response: body: - string: '{"operation":"UpsertElasticServerDatabase","startTime":"2021-04-27T01:27:42.237Z"}' + string: '{"operation":"UpsertElasticServerDatabase","startTime":"2021-04-29T05:20:31.863Z"}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMariaDB/locations/eastus/azureAsyncOperation/2f771309-5cdc-45a4-a7b9-d9f7be47f1a8?api-version=2018-06-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMariaDB/locations/eastus/azureAsyncOperation/1db6e64a-404a-4703-8821-b0dacd82e24e?api-version=2018-06-01 cache-control: - no-cache content-length: @@ -1036,11 +993,11 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 27 Apr 2021 01:27:41 GMT + - Thu, 29 Apr 2021 05:20:31 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMariaDB/locations/eastus/operationResults/2f771309-5cdc-45a4-a7b9-d9f7be47f1a8?api-version=2018-06-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMariaDB/locations/eastus/operationResults/1db6e64a-404a-4703-8821-b0dacd82e24e?api-version=2018-06-01 pragma: - no-cache server: @@ -1067,10 +1024,10 @@ interactions: - azsdk-python-mgmt-rdbms/unknown Python/3.8.9 (Linux-5.4.0-1046-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMariaDB/locations/eastus/azureAsyncOperation/2f771309-5cdc-45a4-a7b9-d9f7be47f1a8?api-version=2018-06-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMariaDB/locations/eastus/azureAsyncOperation/1db6e64a-404a-4703-8821-b0dacd82e24e?api-version=2018-06-01 response: body: - string: '{"name":"2f771309-5cdc-45a4-a7b9-d9f7be47f1a8","status":"Succeeded","startTime":"2021-04-27T01:27:42.237Z"}' + string: '{"name":"1db6e64a-404a-4703-8821-b0dacd82e24e","status":"Succeeded","startTime":"2021-04-29T05:20:31.863Z"}' headers: cache-control: - no-cache @@ -1079,7 +1036,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 27 Apr 2021 01:27:57 GMT + - Thu, 29 Apr 2021 05:20:46 GMT expires: - '-1' pragma: @@ -1122,7 +1079,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 27 Apr 2021 01:27:57 GMT + - Thu, 29 Apr 2021 05:20:46 GMT expires: - '-1' pragma: @@ -1160,10 +1117,10 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_mariadb_test_mariadbf2c70db8/providers/Microsoft.DBForMariaDB/servers/testserver21827/firewallRules/firewallrule?api-version=2018-06-01 response: body: - string: '{"operation":"UpsertElasticServerFirewallRules","startTime":"2021-04-27T01:27:58.04Z"}' + string: '{"operation":"UpsertElasticServerFirewallRules","startTime":"2021-04-29T05:20:47.38Z"}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMariaDB/locations/eastus/azureAsyncOperation/58934a61-261f-475c-8f28-535e6cf95648?api-version=2018-06-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMariaDB/locations/eastus/azureAsyncOperation/22158098-5c07-4cbc-8cc2-265d21e1c542?api-version=2018-06-01 cache-control: - no-cache content-length: @@ -1171,11 +1128,11 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 27 Apr 2021 01:27:58 GMT + - Thu, 29 Apr 2021 05:20:46 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMariaDB/locations/eastus/operationResults/58934a61-261f-475c-8f28-535e6cf95648?api-version=2018-06-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMariaDB/locations/eastus/operationResults/22158098-5c07-4cbc-8cc2-265d21e1c542?api-version=2018-06-01 pragma: - no-cache server: @@ -1202,10 +1159,10 @@ interactions: - azsdk-python-mgmt-rdbms/unknown Python/3.8.9 (Linux-5.4.0-1046-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMariaDB/locations/eastus/azureAsyncOperation/58934a61-261f-475c-8f28-535e6cf95648?api-version=2018-06-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMariaDB/locations/eastus/azureAsyncOperation/22158098-5c07-4cbc-8cc2-265d21e1c542?api-version=2018-06-01 response: body: - string: '{"name":"58934a61-261f-475c-8f28-535e6cf95648","status":"Succeeded","startTime":"2021-04-27T01:27:58.04Z"}' + string: '{"name":"22158098-5c07-4cbc-8cc2-265d21e1c542","status":"Succeeded","startTime":"2021-04-29T05:20:47.38Z"}' headers: cache-control: - no-cache @@ -1214,7 +1171,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 27 Apr 2021 01:28:13 GMT + - Thu, 29 Apr 2021 05:21:01 GMT expires: - '-1' pragma: @@ -1257,7 +1214,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 27 Apr 2021 01:28:13 GMT + - Thu, 29 Apr 2021 05:21:01 GMT expires: - '-1' pragma: @@ -1295,10 +1252,10 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_mariadb_test_mariadbf2c70db8/providers/Microsoft.DBforMariaDB/servers/testserver21827/securityAlertPolicies/securityalertpolicy?api-version=2018-06-01 response: body: - string: '{"operation":"UpsertServerThreatDetectionPolicy","startTime":"2021-04-27T01:28:13.797Z"}' + string: '{"operation":"UpsertServerThreatDetectionPolicy","startTime":"2021-04-29T05:21:02.817Z"}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMariaDB/locations/East%20US/securityAlertPoliciesAzureAsyncOperation/858ad394-b0e3-4e6f-a78b-4bd998cfa144?api-version=2018-06-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMariaDB/locations/East%20US/securityAlertPoliciesAzureAsyncOperation/4d0f4d29-04bd-4f12-9203-2f6dcf4e480c?api-version=2018-06-01 cache-control: - no-cache content-length: @@ -1306,11 +1263,11 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 27 Apr 2021 01:28:13 GMT + - Thu, 29 Apr 2021 05:21:01 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMariaDB/locations/East%20US/securityAlertPoliciesOperationResults/858ad394-b0e3-4e6f-a78b-4bd998cfa144?api-version=2018-06-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMariaDB/locations/East%20US/securityAlertPoliciesOperationResults/4d0f4d29-04bd-4f12-9203-2f6dcf4e480c?api-version=2018-06-01 pragma: - no-cache server: @@ -1337,10 +1294,10 @@ interactions: - azsdk-python-mgmt-rdbms/unknown Python/3.8.9 (Linux-5.4.0-1046-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMariaDB/locations/East%20US/securityAlertPoliciesAzureAsyncOperation/858ad394-b0e3-4e6f-a78b-4bd998cfa144?api-version=2018-06-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMariaDB/locations/East%20US/securityAlertPoliciesAzureAsyncOperation/4d0f4d29-04bd-4f12-9203-2f6dcf4e480c?api-version=2018-06-01 response: body: - string: '{"name":"858ad394-b0e3-4e6f-a78b-4bd998cfa144","status":"Succeeded","startTime":"2021-04-27T01:28:13.797Z"}' + string: '{"name":"4d0f4d29-04bd-4f12-9203-2f6dcf4e480c","status":"Succeeded","startTime":"2021-04-29T05:21:02.817Z"}' headers: cache-control: - no-cache @@ -1349,7 +1306,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 27 Apr 2021 01:28:16 GMT + - Thu, 29 Apr 2021 05:21:05 GMT expires: - '-1' pragma: @@ -1383,7 +1340,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_mariadb_test_mariadbf2c70db8/providers/Microsoft.DBforMariaDB/servers/testserver21827/securityAlertPolicies/securityalertpolicy?api-version=2018-06-01 response: body: - string: '{"properties":{"state":"Enabled","disabledAlerts":[""],"emailAddresses":[""],"emailAccountAdmins":false,"storageEndpoint":"","storageAccountAccessKey":"","retentionDays":0,"creationTime":"2021-04-27T01:28:13.907Z"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_mariadb_test_mariadbf2c70db8/providers/Microsoft.DBforMariaDB/servers/testserver21827/securityAlertPolicies/securityalertpolicy","name":"securityalertpolicy","type":"Microsoft.DBforMariaDB/servers/securityAlertPolicies"}' + string: '{"properties":{"state":"Enabled","disabledAlerts":[""],"emailAddresses":[""],"emailAccountAdmins":false,"storageEndpoint":"","storageAccountAccessKey":"","retentionDays":0,"creationTime":"2021-04-29T05:21:02.957Z"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_mariadb_test_mariadbf2c70db8/providers/Microsoft.DBforMariaDB/servers/testserver21827/securityAlertPolicies/securityalertpolicy","name":"securityalertpolicy","type":"Microsoft.DBforMariaDB/servers/securityAlertPolicies"}' headers: cache-control: - no-cache @@ -1392,7 +1349,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 27 Apr 2021 01:28:17 GMT + - Thu, 29 Apr 2021 05:21:05 GMT expires: - '-1' pragma: @@ -1430,10 +1387,10 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_mariadb_test_mariadbf2c70db8/providers/Microsoft.DBforMariaDB/servers/testserver21827/securityAlertPolicies/securityalertpolicy?api-version=2018-06-01 response: body: - string: '{"operation":"UpsertServerThreatDetectionPolicy","startTime":"2021-04-27T01:28:17.433Z"}' + string: '{"operation":"UpsertServerThreatDetectionPolicy","startTime":"2021-04-29T05:21:06.067Z"}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMariaDB/locations/East%20US/securityAlertPoliciesAzureAsyncOperation/fe0972dd-76da-4ae7-9562-739813e79a05?api-version=2018-06-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMariaDB/locations/East%20US/securityAlertPoliciesAzureAsyncOperation/b01d6bac-c6b9-4055-987e-1dd6d60a20e3?api-version=2018-06-01 cache-control: - no-cache content-length: @@ -1441,11 +1398,11 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 27 Apr 2021 01:28:17 GMT + - Thu, 29 Apr 2021 05:21:05 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMariaDB/locations/East%20US/securityAlertPoliciesOperationResults/fe0972dd-76da-4ae7-9562-739813e79a05?api-version=2018-06-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMariaDB/locations/East%20US/securityAlertPoliciesOperationResults/b01d6bac-c6b9-4055-987e-1dd6d60a20e3?api-version=2018-06-01 pragma: - no-cache server: @@ -1472,10 +1429,10 @@ interactions: - azsdk-python-mgmt-rdbms/unknown Python/3.8.9 (Linux-5.4.0-1046-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMariaDB/locations/East%20US/securityAlertPoliciesAzureAsyncOperation/fe0972dd-76da-4ae7-9562-739813e79a05?api-version=2018-06-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMariaDB/locations/East%20US/securityAlertPoliciesAzureAsyncOperation/b01d6bac-c6b9-4055-987e-1dd6d60a20e3?api-version=2018-06-01 response: body: - string: '{"name":"fe0972dd-76da-4ae7-9562-739813e79a05","status":"Succeeded","startTime":"2021-04-27T01:28:17.433Z"}' + string: '{"name":"b01d6bac-c6b9-4055-987e-1dd6d60a20e3","status":"Succeeded","startTime":"2021-04-29T05:21:06.067Z"}' headers: cache-control: - no-cache @@ -1484,7 +1441,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 27 Apr 2021 01:28:20 GMT + - Thu, 29 Apr 2021 05:21:08 GMT expires: - '-1' pragma: @@ -1518,7 +1475,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_mariadb_test_mariadbf2c70db8/providers/Microsoft.DBforMariaDB/servers/testserver21827/securityAlertPolicies/securityalertpolicy?api-version=2018-06-01 response: body: - string: '{"properties":{"state":"Disabled","disabledAlerts":[""],"emailAddresses":[""],"emailAccountAdmins":false,"storageEndpoint":"","storageAccountAccessKey":"","retentionDays":0,"creationTime":"2021-04-27T01:28:13.907Z"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_mariadb_test_mariadbf2c70db8/providers/Microsoft.DBforMariaDB/servers/testserver21827/securityAlertPolicies/securityalertpolicy","name":"securityalertpolicy","type":"Microsoft.DBforMariaDB/servers/securityAlertPolicies"}' + string: '{"properties":{"state":"Disabled","disabledAlerts":[""],"emailAddresses":[""],"emailAccountAdmins":false,"storageEndpoint":"","storageAccountAccessKey":"","retentionDays":0,"creationTime":"2021-04-29T05:21:02.957Z"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_mariadb_test_mariadbf2c70db8/providers/Microsoft.DBforMariaDB/servers/testserver21827/securityAlertPolicies/securityalertpolicy","name":"securityalertpolicy","type":"Microsoft.DBforMariaDB/servers/securityAlertPolicies"}' headers: cache-control: - no-cache @@ -1527,7 +1484,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 27 Apr 2021 01:28:20 GMT + - Thu, 29 Apr 2021 05:21:08 GMT expires: - '-1' pragma: @@ -1561,7 +1518,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_mariadb_test_mariadbf2c70db8/providers/Microsoft.DBforMariaDB/servers/testserver21827/securityAlertPolicies/securityalertpolicy?api-version=2018-06-01 response: body: - string: '{"properties":{"state":"Disabled","disabledAlerts":[""],"emailAddresses":[""],"emailAccountAdmins":false,"storageEndpoint":"","storageAccountAccessKey":"","retentionDays":0,"creationTime":"2021-04-27T01:28:13.907Z"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_mariadb_test_mariadbf2c70db8/providers/Microsoft.DBforMariaDB/servers/testserver21827/securityAlertPolicies/securityalertpolicy","name":"securityalertpolicy","type":"Microsoft.DBforMariaDB/servers/securityAlertPolicies"}' + string: '{"properties":{"state":"Disabled","disabledAlerts":[""],"emailAddresses":[""],"emailAccountAdmins":false,"storageEndpoint":"","storageAccountAccessKey":"","retentionDays":0,"creationTime":"2021-04-29T05:21:02.957Z"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_mariadb_test_mariadbf2c70db8/providers/Microsoft.DBforMariaDB/servers/testserver21827/securityAlertPolicies/securityalertpolicy","name":"securityalertpolicy","type":"Microsoft.DBforMariaDB/servers/securityAlertPolicies"}' headers: cache-control: - no-cache @@ -1570,7 +1527,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 27 Apr 2021 01:28:20 GMT + - Thu, 29 Apr 2021 05:21:08 GMT expires: - '-1' pragma: @@ -1613,7 +1570,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 27 Apr 2021 01:28:21 GMT + - Thu, 29 Apr 2021 05:21:08 GMT expires: - '-1' pragma: @@ -1656,7 +1613,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 27 Apr 2021 01:28:21 GMT + - Thu, 29 Apr 2021 05:21:08 GMT expires: - '-1' pragma: @@ -1690,7 +1647,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_mariadb_test_mariadbf2c70db8/providers/Microsoft.DBForMariaDB/servers/testserver21827?api-version=2018-06-01 response: body: - string: '{"sku":{"name":"GP_Gen5_2","tier":"GeneralPurpose","family":"Gen5","capacity":2},"properties":{"administratorLogin":"cloudsa","storageProfile":{"storageMB":128000,"backupRetentionDays":7,"geoRedundantBackup":"Enabled","storageAutogrow":"Disabled"},"version":"10.2","sslEnforcement":"Enabled","minimalTlsVersion":"TLSEnforcementDisabled","userVisibleState":"Ready","fullyQualifiedDomainName":"testserver21827.mariadb.database.azure.com","earliestRestoreDate":"2021-04-27T01:27:29.463+00:00","replicationRole":"Master","masterServerId":"","replicaCapacity":5,"byokEnforcement":"Disabled","infrastructureEncryption":"Disabled","privateEndpointConnections":[],"publicNetworkAccess":"Enabled"},"location":"eastus","tags":{"elastic_server":"1"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_mariadb_test_mariadbf2c70db8/providers/Microsoft.DBforMariaDB/servers/testserver21827","name":"testserver21827","type":"Microsoft.DBforMariaDB/servers"}' + string: '{"sku":{"name":"GP_Gen5_2","tier":"GeneralPurpose","family":"Gen5","capacity":2},"properties":{"administratorLogin":"cloudsa","storageProfile":{"storageMB":128000,"backupRetentionDays":7,"geoRedundantBackup":"Enabled","storageAutogrow":"Disabled"},"version":"10.2","sslEnforcement":"Enabled","minimalTlsVersion":"TLSEnforcementDisabled","userVisibleState":"Ready","fullyQualifiedDomainName":"testserver21827.mariadb.database.azure.com","earliestRestoreDate":"2021-04-29T05:20:59.207+00:00","replicationRole":"Master","masterServerId":"","replicaCapacity":5,"byokEnforcement":"Disabled","infrastructureEncryption":"Disabled","privateEndpointConnections":[],"publicNetworkAccess":"Enabled"},"location":"eastus","tags":{"elastic_server":"1"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_mariadb_test_mariadbf2c70db8/providers/Microsoft.DBforMariaDB/servers/testserver21827","name":"testserver21827","type":"Microsoft.DBforMariaDB/servers"}' headers: cache-control: - no-cache @@ -1699,7 +1656,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 27 Apr 2021 01:28:21 GMT + - Thu, 29 Apr 2021 05:21:08 GMT expires: - '-1' pragma: @@ -1966,7 +1923,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 27 Apr 2021 01:28:22 GMT + - Thu, 29 Apr 2021 05:21:10 GMT expires: - '-1' pragma: @@ -2002,10 +1959,10 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_mariadb_test_mariadbf2c70db8/providers/Microsoft.DBForMariaDB/servers/testserver21827/restart?api-version=2018-06-01 response: body: - string: '{"operation":"RestartElasticServer","startTime":"2021-04-27T01:28:22.873Z"}' + string: '{"operation":"RestartElasticServer","startTime":"2021-04-29T05:21:10.317Z"}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMariaDB/locations/eastus/azureAsyncOperation/a6e66892-262d-4ee1-95bb-f2c0de86de4d?api-version=2018-06-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMariaDB/locations/eastus/azureAsyncOperation/7d2fda93-3d0f-46b0-8dc1-211661d664e3?api-version=2018-06-01 cache-control: - no-cache content-length: @@ -2013,11 +1970,11 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 27 Apr 2021 01:28:22 GMT + - Thu, 29 Apr 2021 05:21:10 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMariaDB/locations/eastus/operationResults/a6e66892-262d-4ee1-95bb-f2c0de86de4d?api-version=2018-06-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMariaDB/locations/eastus/operationResults/7d2fda93-3d0f-46b0-8dc1-211661d664e3?api-version=2018-06-01 pragma: - no-cache server: @@ -2044,10 +2001,10 @@ interactions: - azsdk-python-mgmt-rdbms/unknown Python/3.8.9 (Linux-5.4.0-1046-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMariaDB/locations/eastus/azureAsyncOperation/a6e66892-262d-4ee1-95bb-f2c0de86de4d?api-version=2018-06-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMariaDB/locations/eastus/azureAsyncOperation/7d2fda93-3d0f-46b0-8dc1-211661d664e3?api-version=2018-06-01 response: body: - string: '{"name":"a6e66892-262d-4ee1-95bb-f2c0de86de4d","status":"InProgress","startTime":"2021-04-27T01:28:22.873Z"}' + string: '{"name":"7d2fda93-3d0f-46b0-8dc1-211661d664e3","status":"InProgress","startTime":"2021-04-29T05:21:10.317Z"}' headers: cache-control: - no-cache @@ -2056,7 +2013,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 27 Apr 2021 01:28:37 GMT + - Thu, 29 Apr 2021 05:21:25 GMT expires: - '-1' pragma: @@ -2087,10 +2044,10 @@ interactions: - azsdk-python-mgmt-rdbms/unknown Python/3.8.9 (Linux-5.4.0-1046-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMariaDB/locations/eastus/azureAsyncOperation/a6e66892-262d-4ee1-95bb-f2c0de86de4d?api-version=2018-06-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMariaDB/locations/eastus/azureAsyncOperation/7d2fda93-3d0f-46b0-8dc1-211661d664e3?api-version=2018-06-01 response: body: - string: '{"name":"a6e66892-262d-4ee1-95bb-f2c0de86de4d","status":"InProgress","startTime":"2021-04-27T01:28:22.873Z"}' + string: '{"name":"7d2fda93-3d0f-46b0-8dc1-211661d664e3","status":"InProgress","startTime":"2021-04-29T05:21:10.317Z"}' headers: cache-control: - no-cache @@ -2099,7 +2056,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 27 Apr 2021 01:28:52 GMT + - Thu, 29 Apr 2021 05:21:39 GMT expires: - '-1' pragma: @@ -2130,10 +2087,10 @@ interactions: - azsdk-python-mgmt-rdbms/unknown Python/3.8.9 (Linux-5.4.0-1046-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMariaDB/locations/eastus/azureAsyncOperation/a6e66892-262d-4ee1-95bb-f2c0de86de4d?api-version=2018-06-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMariaDB/locations/eastus/azureAsyncOperation/7d2fda93-3d0f-46b0-8dc1-211661d664e3?api-version=2018-06-01 response: body: - string: '{"name":"a6e66892-262d-4ee1-95bb-f2c0de86de4d","status":"InProgress","startTime":"2021-04-27T01:28:22.873Z"}' + string: '{"name":"7d2fda93-3d0f-46b0-8dc1-211661d664e3","status":"InProgress","startTime":"2021-04-29T05:21:10.317Z"}' headers: cache-control: - no-cache @@ -2142,7 +2099,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 27 Apr 2021 01:29:08 GMT + - Thu, 29 Apr 2021 05:21:54 GMT expires: - '-1' pragma: @@ -2173,10 +2130,53 @@ interactions: - azsdk-python-mgmt-rdbms/unknown Python/3.8.9 (Linux-5.4.0-1046-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMariaDB/locations/eastus/azureAsyncOperation/a6e66892-262d-4ee1-95bb-f2c0de86de4d?api-version=2018-06-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMariaDB/locations/eastus/azureAsyncOperation/7d2fda93-3d0f-46b0-8dc1-211661d664e3?api-version=2018-06-01 response: body: - string: '{"name":"a6e66892-262d-4ee1-95bb-f2c0de86de4d","status":"Succeeded","startTime":"2021-04-27T01:28:22.873Z"}' + string: '{"name":"7d2fda93-3d0f-46b0-8dc1-211661d664e3","status":"InProgress","startTime":"2021-04-29T05:21:10.317Z"}' + headers: + cache-control: + - no-cache + content-length: + - '108' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 29 Apr 2021 05:22:09 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-mgmt-rdbms/unknown Python/3.8.9 (Linux-5.4.0-1046-azure-x86_64-with-glibc2.2.5) + VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMariaDB/locations/eastus/azureAsyncOperation/7d2fda93-3d0f-46b0-8dc1-211661d664e3?api-version=2018-06-01 + response: + body: + string: '{"name":"7d2fda93-3d0f-46b0-8dc1-211661d664e3","status":"Succeeded","startTime":"2021-04-29T05:21:10.317Z"}' headers: cache-control: - no-cache @@ -2185,7 +2185,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 27 Apr 2021 01:29:23 GMT + - Thu, 29 Apr 2021 05:22:25 GMT expires: - '-1' pragma: @@ -2216,7 +2216,7 @@ interactions: - azsdk-python-mgmt-rdbms/unknown Python/3.8.9 (Linux-5.4.0-1046-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMariaDB/locations/eastus/operationResults/a6e66892-262d-4ee1-95bb-f2c0de86de4d?api-version=2018-06-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMariaDB/locations/eastus/operationResults/7d2fda93-3d0f-46b0-8dc1-211661d664e3?api-version=2018-06-01 response: body: string: '' @@ -2226,7 +2226,7 @@ interactions: content-length: - '0' date: - - Tue, 27 Apr 2021 01:29:23 GMT + - Thu, 29 Apr 2021 05:22:25 GMT expires: - '-1' pragma: @@ -2260,22 +2260,22 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_mariadb_test_mariadbf2c70db8/providers/Microsoft.DBForMariaDB/servers/testserver21827?api-version=2018-06-01 response: body: - string: '{"operation":"UpsertElasticServer","startTime":"2021-04-27T01:29:24.5Z"}' + string: '{"operation":"UpsertElasticServer","startTime":"2021-04-29T05:22:25.813Z"}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMariaDB/locations/eastus/azureAsyncOperation/80946d58-8ec3-4b1f-b73e-8ef57371ae21?api-version=2018-06-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMariaDB/locations/eastus/azureAsyncOperation/65eb4230-8548-48c2-81ae-b3720c3e2a04?api-version=2018-06-01 cache-control: - no-cache content-length: - - '72' + - '74' content-type: - application/json; charset=utf-8 date: - - Tue, 27 Apr 2021 01:29:25 GMT + - Thu, 29 Apr 2021 05:22:26 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMariaDB/locations/eastus/operationResults/80946d58-8ec3-4b1f-b73e-8ef57371ae21?api-version=2018-06-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMariaDB/locations/eastus/operationResults/65eb4230-8548-48c2-81ae-b3720c3e2a04?api-version=2018-06-01 pragma: - no-cache server: @@ -2302,19 +2302,19 @@ interactions: - azsdk-python-mgmt-rdbms/unknown Python/3.8.9 (Linux-5.4.0-1046-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMariaDB/locations/eastus/azureAsyncOperation/80946d58-8ec3-4b1f-b73e-8ef57371ae21?api-version=2018-06-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMariaDB/locations/eastus/azureAsyncOperation/65eb4230-8548-48c2-81ae-b3720c3e2a04?api-version=2018-06-01 response: body: - string: '{"name":"80946d58-8ec3-4b1f-b73e-8ef57371ae21","status":"Succeeded","startTime":"2021-04-27T01:29:24.5Z"}' + string: '{"name":"65eb4230-8548-48c2-81ae-b3720c3e2a04","status":"Succeeded","startTime":"2021-04-29T05:22:25.813Z"}' headers: cache-control: - no-cache content-length: - - '105' + - '107' content-type: - application/json; charset=utf-8 date: - - Tue, 27 Apr 2021 01:30:25 GMT + - Thu, 29 Apr 2021 05:23:26 GMT expires: - '-1' pragma: @@ -2348,7 +2348,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_mariadb_test_mariadbf2c70db8/providers/Microsoft.DBForMariaDB/servers/testserver21827?api-version=2018-06-01 response: body: - string: '{"sku":{"name":"GP_Gen5_2","tier":"GeneralPurpose","family":"Gen5","capacity":2},"properties":{"administratorLogin":"cloudsa","storageProfile":{"storageMB":128000,"backupRetentionDays":7,"geoRedundantBackup":"Enabled","storageAutogrow":"Disabled"},"version":"10.2","sslEnforcement":"Enabled","minimalTlsVersion":"TLSEnforcementDisabled","userVisibleState":"Ready","fullyQualifiedDomainName":"testserver21827.mariadb.database.azure.com","earliestRestoreDate":"2021-04-27T01:27:29.463+00:00","replicationRole":"Master","masterServerId":"","replicaCapacity":5,"byokEnforcement":"Disabled","infrastructureEncryption":"Disabled","privateEndpointConnections":[],"publicNetworkAccess":"Enabled"},"location":"eastus","tags":{"elastic_server":"1"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_mariadb_test_mariadbf2c70db8/providers/Microsoft.DBforMariaDB/servers/testserver21827","name":"testserver21827","type":"Microsoft.DBforMariaDB/servers"}' + string: '{"sku":{"name":"GP_Gen5_2","tier":"GeneralPurpose","family":"Gen5","capacity":2},"properties":{"administratorLogin":"cloudsa","storageProfile":{"storageMB":128000,"backupRetentionDays":7,"geoRedundantBackup":"Enabled","storageAutogrow":"Disabled"},"version":"10.2","sslEnforcement":"Enabled","minimalTlsVersion":"TLSEnforcementDisabled","userVisibleState":"Ready","fullyQualifiedDomainName":"testserver21827.mariadb.database.azure.com","earliestRestoreDate":"2021-04-29T05:20:59.207+00:00","replicationRole":"Master","masterServerId":"","replicaCapacity":5,"byokEnforcement":"Disabled","infrastructureEncryption":"Disabled","privateEndpointConnections":[],"publicNetworkAccess":"Enabled"},"location":"eastus","tags":{"elastic_server":"1"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_mariadb_test_mariadbf2c70db8/providers/Microsoft.DBforMariaDB/servers/testserver21827","name":"testserver21827","type":"Microsoft.DBforMariaDB/servers"}' headers: cache-control: - no-cache @@ -2357,7 +2357,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 27 Apr 2021 01:30:25 GMT + - Thu, 29 Apr 2021 05:23:26 GMT expires: - '-1' pragma: @@ -2404,7 +2404,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 27 Apr 2021 01:30:27 GMT + - Thu, 29 Apr 2021 05:23:28 GMT expires: - '-1' pragma: @@ -2442,10 +2442,10 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_mariadb_test_mariadbf2c70db8/providers/Microsoft.DBForMariaDB/servers/testserver21827/firewallRules/firewallrule?api-version=2018-06-01 response: body: - string: '{"operation":"DropElasticServerFirewallRule","startTime":"2021-04-27T01:30:28.03Z"}' + string: '{"operation":"DropElasticServerFirewallRule","startTime":"2021-04-29T05:23:28.66Z"}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMariaDB/locations/eastus/azureAsyncOperation/f9bc1eb4-bf3d-41fc-b1fb-0533e63e78bd?api-version=2018-06-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMariaDB/locations/eastus/azureAsyncOperation/1496f7af-9212-4034-9bd5-23e0f54476d0?api-version=2018-06-01 cache-control: - no-cache content-length: @@ -2453,11 +2453,11 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 27 Apr 2021 01:30:28 GMT + - Thu, 29 Apr 2021 05:23:29 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMariaDB/locations/eastus/operationResults/f9bc1eb4-bf3d-41fc-b1fb-0533e63e78bd?api-version=2018-06-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMariaDB/locations/eastus/operationResults/1496f7af-9212-4034-9bd5-23e0f54476d0?api-version=2018-06-01 pragma: - no-cache server: @@ -2484,10 +2484,10 @@ interactions: - azsdk-python-mgmt-rdbms/unknown Python/3.8.9 (Linux-5.4.0-1046-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMariaDB/locations/eastus/azureAsyncOperation/f9bc1eb4-bf3d-41fc-b1fb-0533e63e78bd?api-version=2018-06-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMariaDB/locations/eastus/azureAsyncOperation/1496f7af-9212-4034-9bd5-23e0f54476d0?api-version=2018-06-01 response: body: - string: '{"name":"f9bc1eb4-bf3d-41fc-b1fb-0533e63e78bd","status":"Succeeded","startTime":"2021-04-27T01:30:28.03Z"}' + string: '{"name":"1496f7af-9212-4034-9bd5-23e0f54476d0","status":"Succeeded","startTime":"2021-04-29T05:23:28.66Z"}' headers: cache-control: - no-cache @@ -2496,7 +2496,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 27 Apr 2021 01:30:43 GMT + - Thu, 29 Apr 2021 05:23:44 GMT expires: - '-1' pragma: @@ -2532,22 +2532,22 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_mariadb_test_mariadbf2c70db8/providers/Microsoft.DBForMariaDB/servers/testserver21827/databases/testdatabase21827?api-version=2018-06-01 response: body: - string: '{"operation":"DropElasticServerDatabase","startTime":"2021-04-27T01:30:44.68Z"}' + string: '{"operation":"DropElasticServerDatabase","startTime":"2021-04-29T05:23:45.143Z"}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMariaDB/locations/eastus/azureAsyncOperation/ad7db6db-f0ae-42a4-9eb9-702392498c5e?api-version=2018-06-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMariaDB/locations/eastus/azureAsyncOperation/88d610ed-a132-4f3e-b1c1-5487b8a479f6?api-version=2018-06-01 cache-control: - no-cache content-length: - - '79' + - '80' content-type: - application/json; charset=utf-8 date: - - Tue, 27 Apr 2021 01:30:44 GMT + - Thu, 29 Apr 2021 05:23:44 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMariaDB/locations/eastus/operationResults/ad7db6db-f0ae-42a4-9eb9-702392498c5e?api-version=2018-06-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMariaDB/locations/eastus/operationResults/88d610ed-a132-4f3e-b1c1-5487b8a479f6?api-version=2018-06-01 pragma: - no-cache server: @@ -2574,19 +2574,19 @@ interactions: - azsdk-python-mgmt-rdbms/unknown Python/3.8.9 (Linux-5.4.0-1046-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMariaDB/locations/eastus/azureAsyncOperation/ad7db6db-f0ae-42a4-9eb9-702392498c5e?api-version=2018-06-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMariaDB/locations/eastus/azureAsyncOperation/88d610ed-a132-4f3e-b1c1-5487b8a479f6?api-version=2018-06-01 response: body: - string: '{"name":"ad7db6db-f0ae-42a4-9eb9-702392498c5e","status":"Succeeded","startTime":"2021-04-27T01:30:44.68Z"}' + string: '{"name":"88d610ed-a132-4f3e-b1c1-5487b8a479f6","status":"Succeeded","startTime":"2021-04-29T05:23:45.143Z"}' headers: cache-control: - no-cache content-length: - - '106' + - '107' content-type: - application/json; charset=utf-8 date: - - Tue, 27 Apr 2021 01:30:59 GMT + - Thu, 29 Apr 2021 05:23:59 GMT expires: - '-1' pragma: @@ -2622,10 +2622,10 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_mariadb_test_mariadbf2c70db8/providers/Microsoft.DBForMariaDB/servers/testserver21827?api-version=2018-06-01 response: body: - string: '{"operation":"DropElasticServer","startTime":"2021-04-27T01:31:00.867Z"}' + string: '{"operation":"DropElasticServer","startTime":"2021-04-29T05:24:00.377Z"}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMariaDB/locations/eastus/azureAsyncOperation/d00a17c1-7fc6-4eb9-a094-1835ac0fff1d?api-version=2018-06-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMariaDB/locations/eastus/azureAsyncOperation/05feb03a-4ccf-40b0-8303-ad1ce64e30c6?api-version=2018-06-01 cache-control: - no-cache content-length: @@ -2633,11 +2633,11 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 27 Apr 2021 01:31:00 GMT + - Thu, 29 Apr 2021 05:23:59 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMariaDB/locations/eastus/operationResults/d00a17c1-7fc6-4eb9-a094-1835ac0fff1d?api-version=2018-06-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMariaDB/locations/eastus/operationResults/05feb03a-4ccf-40b0-8303-ad1ce64e30c6?api-version=2018-06-01 pragma: - no-cache server: @@ -2664,10 +2664,10 @@ interactions: - azsdk-python-mgmt-rdbms/unknown Python/3.8.9 (Linux-5.4.0-1046-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMariaDB/locations/eastus/azureAsyncOperation/d00a17c1-7fc6-4eb9-a094-1835ac0fff1d?api-version=2018-06-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMariaDB/locations/eastus/azureAsyncOperation/05feb03a-4ccf-40b0-8303-ad1ce64e30c6?api-version=2018-06-01 response: body: - string: '{"name":"d00a17c1-7fc6-4eb9-a094-1835ac0fff1d","status":"Succeeded","startTime":"2021-04-27T01:31:00.867Z"}' + string: '{"name":"05feb03a-4ccf-40b0-8303-ad1ce64e30c6","status":"Succeeded","startTime":"2021-04-29T05:24:00.377Z"}' headers: cache-control: - no-cache @@ -2676,7 +2676,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 27 Apr 2021 01:31:16 GMT + - Thu, 29 Apr 2021 05:24:14 GMT expires: - '-1' pragma: diff --git a/sdk/rdbms/azure-mgmt-rdbms/tests/recordings/test_cli_mgmt_mysql.test_mysql.yaml b/sdk/rdbms/azure-mgmt-rdbms/tests/recordings/test_cli_mgmt_mysql.test_mysql.yaml index 8a19350ae389..5b0bc12f1767 100644 --- a/sdk/rdbms/azure-mgmt-rdbms/tests/recordings/test_cli_mgmt_mysql.test_mysql.yaml +++ b/sdk/rdbms/azure-mgmt-rdbms/tests/recordings/test_cli_mgmt_mysql.test_mysql.yaml @@ -23,10 +23,10 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_mysql_test_mysqlc1430c84/providers/Microsoft.DBForMySQL/servers/testserver21341?api-version=2017-12-01 response: body: - string: '{"operation":"UpsertElasticServer","startTime":"2021-04-27T01:31:23.217Z"}' + string: '{"operation":"UpsertElasticServer","startTime":"2021-04-29T05:24:17.913Z"}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/4bf80610-838a-480f-8df0-cab9b6f5cbb7?api-version=2017-12-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/b71af493-14ad-48fe-9c8f-ab71673e7336?api-version=2017-12-01 cache-control: - no-cache content-length: @@ -34,11 +34,11 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 27 Apr 2021 01:31:24 GMT + - Thu, 29 Apr 2021 05:24:18 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMySQL/locations/eastus/operationResults/4bf80610-838a-480f-8df0-cab9b6f5cbb7?api-version=2017-12-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMySQL/locations/eastus/operationResults/b71af493-14ad-48fe-9c8f-ab71673e7336?api-version=2017-12-01 pragma: - no-cache server: @@ -65,10 +65,10 @@ interactions: - azsdk-python-mgmt-rdbms/unknown Python/3.8.9 (Linux-5.4.0-1046-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/4bf80610-838a-480f-8df0-cab9b6f5cbb7?api-version=2017-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/b71af493-14ad-48fe-9c8f-ab71673e7336?api-version=2017-12-01 response: body: - string: '{"name":"4bf80610-838a-480f-8df0-cab9b6f5cbb7","status":"InProgress","startTime":"2021-04-27T01:31:23.217Z"}' + string: '{"name":"b71af493-14ad-48fe-9c8f-ab71673e7336","status":"InProgress","startTime":"2021-04-29T05:24:17.913Z"}' headers: cache-control: - no-cache @@ -77,7 +77,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 27 Apr 2021 01:32:23 GMT + - Thu, 29 Apr 2021 05:25:18 GMT expires: - '-1' pragma: @@ -108,10 +108,10 @@ interactions: - azsdk-python-mgmt-rdbms/unknown Python/3.8.9 (Linux-5.4.0-1046-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/4bf80610-838a-480f-8df0-cab9b6f5cbb7?api-version=2017-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/b71af493-14ad-48fe-9c8f-ab71673e7336?api-version=2017-12-01 response: body: - string: '{"name":"4bf80610-838a-480f-8df0-cab9b6f5cbb7","status":"Succeeded","startTime":"2021-04-27T01:31:23.217Z"}' + string: '{"name":"b71af493-14ad-48fe-9c8f-ab71673e7336","status":"Succeeded","startTime":"2021-04-29T05:24:17.913Z"}' headers: cache-control: - no-cache @@ -120,7 +120,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 27 Apr 2021 01:33:23 GMT + - Thu, 29 Apr 2021 05:26:18 GMT expires: - '-1' pragma: @@ -154,7 +154,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_mysql_test_mysqlc1430c84/providers/Microsoft.DBForMySQL/servers/testserver21341?api-version=2017-12-01 response: body: - string: '{"sku":{"name":"GP_Gen5_2","tier":"GeneralPurpose","family":"Gen5","capacity":2},"properties":{"administratorLogin":"cloudsa","storageProfile":{"storageMB":128000,"backupRetentionDays":7,"geoRedundantBackup":"Enabled","storageAutogrow":"Disabled"},"version":"5.7","sslEnforcement":"Enabled","minimalTlsVersion":"TLSEnforcementDisabled","userVisibleState":"Ready","fullyQualifiedDomainName":"testserver21341.mysql.database.azure.com","earliestRestoreDate":"2021-04-27T01:41:23.513+00:00","replicationRole":"None","masterServerId":"","replicaCapacity":5,"byokEnforcement":"Disabled","privateEndpointConnections":[],"infrastructureEncryption":"Disabled","publicNetworkAccess":"Enabled"},"location":"eastus","tags":{"elastic_server":"1"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_mysql_test_mysqlc1430c84/providers/Microsoft.DBforMySQL/servers/testserver21341","name":"testserver21341","type":"Microsoft.DBforMySQL/servers"}' + string: '{"sku":{"name":"GP_Gen5_2","tier":"GeneralPurpose","family":"Gen5","capacity":2},"properties":{"administratorLogin":"cloudsa","storageProfile":{"storageMB":128000,"backupRetentionDays":7,"geoRedundantBackup":"Enabled","storageAutogrow":"Disabled"},"version":"5.7","sslEnforcement":"Enabled","minimalTlsVersion":"TLSEnforcementDisabled","userVisibleState":"Ready","fullyQualifiedDomainName":"testserver21341.mysql.database.azure.com","earliestRestoreDate":"2021-04-29T05:34:18.227+00:00","replicationRole":"None","masterServerId":"","replicaCapacity":5,"byokEnforcement":"Disabled","privateEndpointConnections":[],"infrastructureEncryption":"Disabled","publicNetworkAccess":"Enabled"},"location":"eastus","tags":{"elastic_server":"1"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_mysql_test_mysqlc1430c84/providers/Microsoft.DBforMySQL/servers/testserver21341","name":"testserver21341","type":"Microsoft.DBforMySQL/servers"}' headers: cache-control: - no-cache @@ -163,7 +163,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 27 Apr 2021 01:33:24 GMT + - Thu, 29 Apr 2021 05:26:18 GMT expires: - '-1' pragma: @@ -202,22 +202,22 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_mysql_test_mysqlc1430c84/providers/Microsoft.DBForMySQL/servers/serverreplica21341?api-version=2017-12-01 response: body: - string: '{"operation":"CreateElasticServerContinuousCopy","startTime":"2021-04-27T01:33:26.87Z"}' + string: '{"operation":"CreateElasticServerContinuousCopy","startTime":"2021-04-29T05:26:20.4Z"}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/94580159-2359-4b9e-bdea-6fa1bd08f9a2?api-version=2017-12-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/90261ce2-782c-4044-a070-3ce7b3e5e60a?api-version=2017-12-01 cache-control: - no-cache content-length: - - '87' + - '86' content-type: - application/json; charset=utf-8 date: - - Tue, 27 Apr 2021 01:33:26 GMT + - Thu, 29 Apr 2021 05:26:19 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMySQL/locations/eastus/operationResults/94580159-2359-4b9e-bdea-6fa1bd08f9a2?api-version=2017-12-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMySQL/locations/eastus/operationResults/90261ce2-782c-4044-a070-3ce7b3e5e60a?api-version=2017-12-01 pragma: - no-cache server: @@ -244,148 +244,19 @@ interactions: - azsdk-python-mgmt-rdbms/unknown Python/3.8.9 (Linux-5.4.0-1046-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/94580159-2359-4b9e-bdea-6fa1bd08f9a2?api-version=2017-12-01 - response: - body: - string: '{"name":"94580159-2359-4b9e-bdea-6fa1bd08f9a2","status":"InProgress","startTime":"2021-04-27T01:33:26.87Z"}' - headers: - cache-control: - - no-cache - content-length: - - '107' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 27 Apr 2021 01:33:56 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-mgmt-rdbms/unknown Python/3.8.9 (Linux-5.4.0-1046-azure-x86_64-with-glibc2.2.5) - VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/94580159-2359-4b9e-bdea-6fa1bd08f9a2?api-version=2017-12-01 - response: - body: - string: '{"name":"94580159-2359-4b9e-bdea-6fa1bd08f9a2","status":"InProgress","startTime":"2021-04-27T01:33:26.87Z"}' - headers: - cache-control: - - no-cache - content-length: - - '107' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 27 Apr 2021 01:34:26 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-mgmt-rdbms/unknown Python/3.8.9 (Linux-5.4.0-1046-azure-x86_64-with-glibc2.2.5) - VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/94580159-2359-4b9e-bdea-6fa1bd08f9a2?api-version=2017-12-01 - response: - body: - string: '{"name":"94580159-2359-4b9e-bdea-6fa1bd08f9a2","status":"InProgress","startTime":"2021-04-27T01:33:26.87Z"}' - headers: - cache-control: - - no-cache - content-length: - - '107' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 27 Apr 2021 01:34:57 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-mgmt-rdbms/unknown Python/3.8.9 (Linux-5.4.0-1046-azure-x86_64-with-glibc2.2.5) - VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/94580159-2359-4b9e-bdea-6fa1bd08f9a2?api-version=2017-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/90261ce2-782c-4044-a070-3ce7b3e5e60a?api-version=2017-12-01 response: body: - string: '{"name":"94580159-2359-4b9e-bdea-6fa1bd08f9a2","status":"InProgress","startTime":"2021-04-27T01:33:26.87Z"}' + string: '{"name":"90261ce2-782c-4044-a070-3ce7b3e5e60a","status":"InProgress","startTime":"2021-04-29T05:26:20.4Z"}' headers: cache-control: - no-cache content-length: - - '107' + - '106' content-type: - application/json; charset=utf-8 date: - - Tue, 27 Apr 2021 01:35:27 GMT + - Thu, 29 Apr 2021 05:26:50 GMT expires: - '-1' pragma: @@ -416,19 +287,19 @@ interactions: - azsdk-python-mgmt-rdbms/unknown Python/3.8.9 (Linux-5.4.0-1046-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/94580159-2359-4b9e-bdea-6fa1bd08f9a2?api-version=2017-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/90261ce2-782c-4044-a070-3ce7b3e5e60a?api-version=2017-12-01 response: body: - string: '{"name":"94580159-2359-4b9e-bdea-6fa1bd08f9a2","status":"InProgress","startTime":"2021-04-27T01:33:26.87Z"}' + string: '{"name":"90261ce2-782c-4044-a070-3ce7b3e5e60a","status":"InProgress","startTime":"2021-04-29T05:26:20.4Z"}' headers: cache-control: - no-cache content-length: - - '107' + - '106' content-type: - application/json; charset=utf-8 date: - - Tue, 27 Apr 2021 01:35:58 GMT + - Thu, 29 Apr 2021 05:27:20 GMT expires: - '-1' pragma: @@ -459,19 +330,19 @@ interactions: - azsdk-python-mgmt-rdbms/unknown Python/3.8.9 (Linux-5.4.0-1046-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/94580159-2359-4b9e-bdea-6fa1bd08f9a2?api-version=2017-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/90261ce2-782c-4044-a070-3ce7b3e5e60a?api-version=2017-12-01 response: body: - string: '{"name":"94580159-2359-4b9e-bdea-6fa1bd08f9a2","status":"InProgress","startTime":"2021-04-27T01:33:26.87Z"}' + string: '{"name":"90261ce2-782c-4044-a070-3ce7b3e5e60a","status":"InProgress","startTime":"2021-04-29T05:26:20.4Z"}' headers: cache-control: - no-cache content-length: - - '107' + - '106' content-type: - application/json; charset=utf-8 date: - - Tue, 27 Apr 2021 01:36:28 GMT + - Thu, 29 Apr 2021 05:27:50 GMT expires: - '-1' pragma: @@ -502,19 +373,19 @@ interactions: - azsdk-python-mgmt-rdbms/unknown Python/3.8.9 (Linux-5.4.0-1046-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/94580159-2359-4b9e-bdea-6fa1bd08f9a2?api-version=2017-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/90261ce2-782c-4044-a070-3ce7b3e5e60a?api-version=2017-12-01 response: body: - string: '{"name":"94580159-2359-4b9e-bdea-6fa1bd08f9a2","status":"InProgress","startTime":"2021-04-27T01:33:26.87Z"}' + string: '{"name":"90261ce2-782c-4044-a070-3ce7b3e5e60a","status":"InProgress","startTime":"2021-04-29T05:26:20.4Z"}' headers: cache-control: - no-cache content-length: - - '107' + - '106' content-type: - application/json; charset=utf-8 date: - - Tue, 27 Apr 2021 01:36:57 GMT + - Thu, 29 Apr 2021 05:28:20 GMT expires: - '-1' pragma: @@ -545,19 +416,19 @@ interactions: - azsdk-python-mgmt-rdbms/unknown Python/3.8.9 (Linux-5.4.0-1046-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/94580159-2359-4b9e-bdea-6fa1bd08f9a2?api-version=2017-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/90261ce2-782c-4044-a070-3ce7b3e5e60a?api-version=2017-12-01 response: body: - string: '{"name":"94580159-2359-4b9e-bdea-6fa1bd08f9a2","status":"InProgress","startTime":"2021-04-27T01:33:26.87Z"}' + string: '{"name":"90261ce2-782c-4044-a070-3ce7b3e5e60a","status":"InProgress","startTime":"2021-04-29T05:26:20.4Z"}' headers: cache-control: - no-cache content-length: - - '107' + - '106' content-type: - application/json; charset=utf-8 date: - - Tue, 27 Apr 2021 01:37:28 GMT + - Thu, 29 Apr 2021 05:28:49 GMT expires: - '-1' pragma: @@ -588,19 +459,19 @@ interactions: - azsdk-python-mgmt-rdbms/unknown Python/3.8.9 (Linux-5.4.0-1046-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/94580159-2359-4b9e-bdea-6fa1bd08f9a2?api-version=2017-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/90261ce2-782c-4044-a070-3ce7b3e5e60a?api-version=2017-12-01 response: body: - string: '{"name":"94580159-2359-4b9e-bdea-6fa1bd08f9a2","status":"InProgress","startTime":"2021-04-27T01:33:26.87Z"}' + string: '{"name":"90261ce2-782c-4044-a070-3ce7b3e5e60a","status":"InProgress","startTime":"2021-04-29T05:26:20.4Z"}' headers: cache-control: - no-cache content-length: - - '107' + - '106' content-type: - application/json; charset=utf-8 date: - - Tue, 27 Apr 2021 01:37:59 GMT + - Thu, 29 Apr 2021 05:29:20 GMT expires: - '-1' pragma: @@ -631,19 +502,19 @@ interactions: - azsdk-python-mgmt-rdbms/unknown Python/3.8.9 (Linux-5.4.0-1046-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/94580159-2359-4b9e-bdea-6fa1bd08f9a2?api-version=2017-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/90261ce2-782c-4044-a070-3ce7b3e5e60a?api-version=2017-12-01 response: body: - string: '{"name":"94580159-2359-4b9e-bdea-6fa1bd08f9a2","status":"InProgress","startTime":"2021-04-27T01:33:26.87Z"}' + string: '{"name":"90261ce2-782c-4044-a070-3ce7b3e5e60a","status":"InProgress","startTime":"2021-04-29T05:26:20.4Z"}' headers: cache-control: - no-cache content-length: - - '107' + - '106' content-type: - application/json; charset=utf-8 date: - - Tue, 27 Apr 2021 01:38:28 GMT + - Thu, 29 Apr 2021 05:29:50 GMT expires: - '-1' pragma: @@ -674,19 +545,19 @@ interactions: - azsdk-python-mgmt-rdbms/unknown Python/3.8.9 (Linux-5.4.0-1046-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/94580159-2359-4b9e-bdea-6fa1bd08f9a2?api-version=2017-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/90261ce2-782c-4044-a070-3ce7b3e5e60a?api-version=2017-12-01 response: body: - string: '{"name":"94580159-2359-4b9e-bdea-6fa1bd08f9a2","status":"InProgress","startTime":"2021-04-27T01:33:26.87Z"}' + string: '{"name":"90261ce2-782c-4044-a070-3ce7b3e5e60a","status":"InProgress","startTime":"2021-04-29T05:26:20.4Z"}' headers: cache-control: - no-cache content-length: - - '107' + - '106' content-type: - application/json; charset=utf-8 date: - - Tue, 27 Apr 2021 01:39:00 GMT + - Thu, 29 Apr 2021 05:30:20 GMT expires: - '-1' pragma: @@ -717,19 +588,19 @@ interactions: - azsdk-python-mgmt-rdbms/unknown Python/3.8.9 (Linux-5.4.0-1046-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/94580159-2359-4b9e-bdea-6fa1bd08f9a2?api-version=2017-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/90261ce2-782c-4044-a070-3ce7b3e5e60a?api-version=2017-12-01 response: body: - string: '{"name":"94580159-2359-4b9e-bdea-6fa1bd08f9a2","status":"InProgress","startTime":"2021-04-27T01:33:26.87Z"}' + string: '{"name":"90261ce2-782c-4044-a070-3ce7b3e5e60a","status":"InProgress","startTime":"2021-04-29T05:26:20.4Z"}' headers: cache-control: - no-cache content-length: - - '107' + - '106' content-type: - application/json; charset=utf-8 date: - - Tue, 27 Apr 2021 01:39:30 GMT + - Thu, 29 Apr 2021 05:30:51 GMT expires: - '-1' pragma: @@ -760,19 +631,19 @@ interactions: - azsdk-python-mgmt-rdbms/unknown Python/3.8.9 (Linux-5.4.0-1046-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/94580159-2359-4b9e-bdea-6fa1bd08f9a2?api-version=2017-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/90261ce2-782c-4044-a070-3ce7b3e5e60a?api-version=2017-12-01 response: body: - string: '{"name":"94580159-2359-4b9e-bdea-6fa1bd08f9a2","status":"InProgress","startTime":"2021-04-27T01:33:26.87Z"}' + string: '{"name":"90261ce2-782c-4044-a070-3ce7b3e5e60a","status":"InProgress","startTime":"2021-04-29T05:26:20.4Z"}' headers: cache-control: - no-cache content-length: - - '107' + - '106' content-type: - application/json; charset=utf-8 date: - - Tue, 27 Apr 2021 01:40:00 GMT + - Thu, 29 Apr 2021 05:31:20 GMT expires: - '-1' pragma: @@ -803,19 +674,19 @@ interactions: - azsdk-python-mgmt-rdbms/unknown Python/3.8.9 (Linux-5.4.0-1046-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/94580159-2359-4b9e-bdea-6fa1bd08f9a2?api-version=2017-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/90261ce2-782c-4044-a070-3ce7b3e5e60a?api-version=2017-12-01 response: body: - string: '{"name":"94580159-2359-4b9e-bdea-6fa1bd08f9a2","status":"InProgress","startTime":"2021-04-27T01:33:26.87Z"}' + string: '{"name":"90261ce2-782c-4044-a070-3ce7b3e5e60a","status":"InProgress","startTime":"2021-04-29T05:26:20.4Z"}' headers: cache-control: - no-cache content-length: - - '107' + - '106' content-type: - application/json; charset=utf-8 date: - - Tue, 27 Apr 2021 01:40:31 GMT + - Thu, 29 Apr 2021 05:31:51 GMT expires: - '-1' pragma: @@ -846,19 +717,19 @@ interactions: - azsdk-python-mgmt-rdbms/unknown Python/3.8.9 (Linux-5.4.0-1046-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/94580159-2359-4b9e-bdea-6fa1bd08f9a2?api-version=2017-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/90261ce2-782c-4044-a070-3ce7b3e5e60a?api-version=2017-12-01 response: body: - string: '{"name":"94580159-2359-4b9e-bdea-6fa1bd08f9a2","status":"InProgress","startTime":"2021-04-27T01:33:26.87Z"}' + string: '{"name":"90261ce2-782c-4044-a070-3ce7b3e5e60a","status":"InProgress","startTime":"2021-04-29T05:26:20.4Z"}' headers: cache-control: - no-cache content-length: - - '107' + - '106' content-type: - application/json; charset=utf-8 date: - - Tue, 27 Apr 2021 01:41:00 GMT + - Thu, 29 Apr 2021 05:32:20 GMT expires: - '-1' pragma: @@ -889,19 +760,19 @@ interactions: - azsdk-python-mgmt-rdbms/unknown Python/3.8.9 (Linux-5.4.0-1046-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/94580159-2359-4b9e-bdea-6fa1bd08f9a2?api-version=2017-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/90261ce2-782c-4044-a070-3ce7b3e5e60a?api-version=2017-12-01 response: body: - string: '{"name":"94580159-2359-4b9e-bdea-6fa1bd08f9a2","status":"InProgress","startTime":"2021-04-27T01:33:26.87Z"}' + string: '{"name":"90261ce2-782c-4044-a070-3ce7b3e5e60a","status":"InProgress","startTime":"2021-04-29T05:26:20.4Z"}' headers: cache-control: - no-cache content-length: - - '107' + - '106' content-type: - application/json; charset=utf-8 date: - - Tue, 27 Apr 2021 01:41:31 GMT + - Thu, 29 Apr 2021 05:32:51 GMT expires: - '-1' pragma: @@ -932,19 +803,19 @@ interactions: - azsdk-python-mgmt-rdbms/unknown Python/3.8.9 (Linux-5.4.0-1046-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/94580159-2359-4b9e-bdea-6fa1bd08f9a2?api-version=2017-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/90261ce2-782c-4044-a070-3ce7b3e5e60a?api-version=2017-12-01 response: body: - string: '{"name":"94580159-2359-4b9e-bdea-6fa1bd08f9a2","status":"InProgress","startTime":"2021-04-27T01:33:26.87Z"}' + string: '{"name":"90261ce2-782c-4044-a070-3ce7b3e5e60a","status":"InProgress","startTime":"2021-04-29T05:26:20.4Z"}' headers: cache-control: - no-cache content-length: - - '107' + - '106' content-type: - application/json; charset=utf-8 date: - - Tue, 27 Apr 2021 01:42:01 GMT + - Thu, 29 Apr 2021 05:33:20 GMT expires: - '-1' pragma: @@ -975,19 +846,19 @@ interactions: - azsdk-python-mgmt-rdbms/unknown Python/3.8.9 (Linux-5.4.0-1046-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/94580159-2359-4b9e-bdea-6fa1bd08f9a2?api-version=2017-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/90261ce2-782c-4044-a070-3ce7b3e5e60a?api-version=2017-12-01 response: body: - string: '{"name":"94580159-2359-4b9e-bdea-6fa1bd08f9a2","status":"InProgress","startTime":"2021-04-27T01:33:26.87Z"}' + string: '{"name":"90261ce2-782c-4044-a070-3ce7b3e5e60a","status":"InProgress","startTime":"2021-04-29T05:26:20.4Z"}' headers: cache-control: - no-cache content-length: - - '107' + - '106' content-type: - application/json; charset=utf-8 date: - - Tue, 27 Apr 2021 01:42:32 GMT + - Thu, 29 Apr 2021 05:33:50 GMT expires: - '-1' pragma: @@ -1018,19 +889,19 @@ interactions: - azsdk-python-mgmt-rdbms/unknown Python/3.8.9 (Linux-5.4.0-1046-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/94580159-2359-4b9e-bdea-6fa1bd08f9a2?api-version=2017-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/90261ce2-782c-4044-a070-3ce7b3e5e60a?api-version=2017-12-01 response: body: - string: '{"name":"94580159-2359-4b9e-bdea-6fa1bd08f9a2","status":"InProgress","startTime":"2021-04-27T01:33:26.87Z"}' + string: '{"name":"90261ce2-782c-4044-a070-3ce7b3e5e60a","status":"InProgress","startTime":"2021-04-29T05:26:20.4Z"}' headers: cache-control: - no-cache content-length: - - '107' + - '106' content-type: - application/json; charset=utf-8 date: - - Tue, 27 Apr 2021 01:43:01 GMT + - Thu, 29 Apr 2021 05:34:21 GMT expires: - '-1' pragma: @@ -1061,19 +932,19 @@ interactions: - azsdk-python-mgmt-rdbms/unknown Python/3.8.9 (Linux-5.4.0-1046-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/94580159-2359-4b9e-bdea-6fa1bd08f9a2?api-version=2017-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/90261ce2-782c-4044-a070-3ce7b3e5e60a?api-version=2017-12-01 response: body: - string: '{"name":"94580159-2359-4b9e-bdea-6fa1bd08f9a2","status":"Succeeded","startTime":"2021-04-27T01:33:26.87Z"}' + string: '{"name":"90261ce2-782c-4044-a070-3ce7b3e5e60a","status":"Succeeded","startTime":"2021-04-29T05:26:20.4Z"}' headers: cache-control: - no-cache content-length: - - '106' + - '105' content-type: - application/json; charset=utf-8 date: - - Tue, 27 Apr 2021 01:43:32 GMT + - Thu, 29 Apr 2021 05:34:51 GMT expires: - '-1' pragma: @@ -1107,7 +978,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_mysql_test_mysqlc1430c84/providers/Microsoft.DBForMySQL/servers/serverreplica21341?api-version=2017-12-01 response: body: - string: '{"sku":{"name":"GP_Gen5_2","tier":"GeneralPurpose","family":"Gen5","capacity":2},"properties":{"administratorLogin":"cloudsa","storageProfile":{"storageMB":128000,"backupRetentionDays":7,"geoRedundantBackup":"Enabled","storageAutogrow":"Enabled"},"version":"5.7","sslEnforcement":"Enabled","minimalTlsVersion":"TLSEnforcementDisabled","userVisibleState":"Ready","fullyQualifiedDomainName":"serverreplica21341.mysql.database.azure.com","earliestRestoreDate":"2021-04-27T01:45:34.967+00:00","replicationRole":"Replica","masterServerId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_mysql_test_mysqlc1430c84/providers/Microsoft.DBforMySQL/servers/testserver21341","replicaCapacity":0,"byokEnforcement":"Disabled","privateEndpointConnections":[],"infrastructureEncryption":"Disabled","publicNetworkAccess":"Enabled"},"location":"eastus","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_mysql_test_mysqlc1430c84/providers/Microsoft.DBforMySQL/servers/serverreplica21341","name":"serverreplica21341","type":"Microsoft.DBforMySQL/servers"}' + string: '{"sku":{"name":"GP_Gen5_2","tier":"GeneralPurpose","family":"Gen5","capacity":2},"properties":{"administratorLogin":"cloudsa","storageProfile":{"storageMB":128000,"backupRetentionDays":7,"geoRedundantBackup":"Enabled","storageAutogrow":"Enabled"},"version":"5.7","sslEnforcement":"Enabled","minimalTlsVersion":"TLSEnforcementDisabled","userVisibleState":"Ready","fullyQualifiedDomainName":"serverreplica21341.mysql.database.azure.com","earliestRestoreDate":"2021-04-29T05:37:33.777+00:00","replicationRole":"Replica","masterServerId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_mysql_test_mysqlc1430c84/providers/Microsoft.DBforMySQL/servers/testserver21341","replicaCapacity":0,"byokEnforcement":"Disabled","privateEndpointConnections":[],"infrastructureEncryption":"Disabled","publicNetworkAccess":"Enabled"},"location":"eastus","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_mysql_test_mysqlc1430c84/providers/Microsoft.DBforMySQL/servers/serverreplica21341","name":"serverreplica21341","type":"Microsoft.DBforMySQL/servers"}' headers: cache-control: - no-cache @@ -1116,7 +987,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 27 Apr 2021 01:43:32 GMT + - Thu, 29 Apr 2021 05:34:52 GMT expires: - '-1' pragma: @@ -1154,22 +1025,22 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_mysql_test_mysqlc1430c84/providers/Microsoft.DBForMySQL/servers/testserver21341/databases/testdatabase21341?api-version=2017-12-01 response: body: - string: '{"operation":"UpsertElasticServerDatabase","startTime":"2021-04-27T01:43:32.86Z"}' + string: '{"operation":"UpsertElasticServerDatabase","startTime":"2021-04-29T05:34:52.253Z"}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/8d0ed83a-f9e6-46f9-8925-05264762ec34?api-version=2017-12-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/4477c8b2-2295-4955-bdeb-e016be9749fe?api-version=2017-12-01 cache-control: - no-cache content-length: - - '81' + - '82' content-type: - application/json; charset=utf-8 date: - - Tue, 27 Apr 2021 01:43:33 GMT + - Thu, 29 Apr 2021 05:34:52 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMySQL/locations/eastus/operationResults/8d0ed83a-f9e6-46f9-8925-05264762ec34?api-version=2017-12-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMySQL/locations/eastus/operationResults/4477c8b2-2295-4955-bdeb-e016be9749fe?api-version=2017-12-01 pragma: - no-cache server: @@ -1196,19 +1067,19 @@ interactions: - azsdk-python-mgmt-rdbms/unknown Python/3.8.9 (Linux-5.4.0-1046-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/8d0ed83a-f9e6-46f9-8925-05264762ec34?api-version=2017-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/4477c8b2-2295-4955-bdeb-e016be9749fe?api-version=2017-12-01 response: body: - string: '{"name":"8d0ed83a-f9e6-46f9-8925-05264762ec34","status":"Succeeded","startTime":"2021-04-27T01:43:32.86Z"}' + string: '{"name":"4477c8b2-2295-4955-bdeb-e016be9749fe","status":"Succeeded","startTime":"2021-04-29T05:34:52.253Z"}' headers: cache-control: - no-cache content-length: - - '106' + - '107' content-type: - application/json; charset=utf-8 date: - - Tue, 27 Apr 2021 01:43:47 GMT + - Thu, 29 Apr 2021 05:35:07 GMT expires: - '-1' pragma: @@ -1251,7 +1122,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 27 Apr 2021 01:43:48 GMT + - Thu, 29 Apr 2021 05:35:07 GMT expires: - '-1' pragma: @@ -1289,10 +1160,10 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_mysql_test_mysqlc1430c84/providers/Microsoft.DBForMySQL/servers/testserver21341/firewallRules/firewallrule?api-version=2017-12-01 response: body: - string: '{"operation":"UpsertElasticServerFirewallRules","startTime":"2021-04-27T01:43:48.703Z"}' + string: '{"operation":"UpsertElasticServerFirewallRules","startTime":"2021-04-29T05:35:08.003Z"}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/23938479-9044-42d5-8d21-50831592608c?api-version=2017-12-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/44edac2f-92eb-4184-9e90-70946d198a48?api-version=2017-12-01 cache-control: - no-cache content-length: @@ -1300,11 +1171,11 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 27 Apr 2021 01:43:48 GMT + - Thu, 29 Apr 2021 05:35:07 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMySQL/locations/eastus/operationResults/23938479-9044-42d5-8d21-50831592608c?api-version=2017-12-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMySQL/locations/eastus/operationResults/44edac2f-92eb-4184-9e90-70946d198a48?api-version=2017-12-01 pragma: - no-cache server: @@ -1331,10 +1202,10 @@ interactions: - azsdk-python-mgmt-rdbms/unknown Python/3.8.9 (Linux-5.4.0-1046-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/23938479-9044-42d5-8d21-50831592608c?api-version=2017-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/44edac2f-92eb-4184-9e90-70946d198a48?api-version=2017-12-01 response: body: - string: '{"name":"23938479-9044-42d5-8d21-50831592608c","status":"Succeeded","startTime":"2021-04-27T01:43:48.703Z"}' + string: '{"name":"44edac2f-92eb-4184-9e90-70946d198a48","status":"Succeeded","startTime":"2021-04-29T05:35:08.003Z"}' headers: cache-control: - no-cache @@ -1343,7 +1214,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 27 Apr 2021 01:44:03 GMT + - Thu, 29 Apr 2021 05:35:22 GMT expires: - '-1' pragma: @@ -1386,7 +1257,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 27 Apr 2021 01:44:04 GMT + - Thu, 29 Apr 2021 05:35:22 GMT expires: - '-1' pragma: @@ -1424,10 +1295,10 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_mysql_test_mysqlc1430c84/providers/Microsoft.DBforMySQL/servers/testserver21341/securityAlertPolicies/securityalertpolicy?api-version=2017-12-01 response: body: - string: '{"operation":"UpsertServerThreatDetectionPolicy","startTime":"2021-04-27T01:44:05.187Z"}' + string: '{"operation":"UpsertServerThreatDetectionPolicy","startTime":"2021-04-29T05:35:23.753Z"}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMySQL/locations/East%20US/securityAlertPoliciesAzureAsyncOperation/c28404d3-9098-4306-bef8-625054d4c922?api-version=2017-12-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMySQL/locations/East%20US/securityAlertPoliciesAzureAsyncOperation/a841244f-8cce-4a6a-ae99-700b06499321?api-version=2017-12-01 cache-control: - no-cache content-length: @@ -1435,11 +1306,11 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 27 Apr 2021 01:44:04 GMT + - Thu, 29 Apr 2021 05:35:23 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMySQL/locations/East%20US/securityAlertPoliciesOperationResults/c28404d3-9098-4306-bef8-625054d4c922?api-version=2017-12-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMySQL/locations/East%20US/securityAlertPoliciesOperationResults/a841244f-8cce-4a6a-ae99-700b06499321?api-version=2017-12-01 pragma: - no-cache server: @@ -1466,10 +1337,10 @@ interactions: - azsdk-python-mgmt-rdbms/unknown Python/3.8.9 (Linux-5.4.0-1046-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMySQL/locations/East%20US/securityAlertPoliciesAzureAsyncOperation/c28404d3-9098-4306-bef8-625054d4c922?api-version=2017-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMySQL/locations/East%20US/securityAlertPoliciesAzureAsyncOperation/a841244f-8cce-4a6a-ae99-700b06499321?api-version=2017-12-01 response: body: - string: '{"name":"c28404d3-9098-4306-bef8-625054d4c922","status":"Succeeded","startTime":"2021-04-27T01:44:05.187Z"}' + string: '{"name":"a841244f-8cce-4a6a-ae99-700b06499321","status":"Succeeded","startTime":"2021-04-29T05:35:23.753Z"}' headers: cache-control: - no-cache @@ -1478,7 +1349,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 27 Apr 2021 01:44:08 GMT + - Thu, 29 Apr 2021 05:35:26 GMT expires: - '-1' pragma: @@ -1512,16 +1383,16 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_mysql_test_mysqlc1430c84/providers/Microsoft.DBforMySQL/servers/testserver21341/securityAlertPolicies/securityalertpolicy?api-version=2017-12-01 response: body: - string: '{"properties":{"state":"Enabled","disabledAlerts":[""],"emailAddresses":[""],"emailAccountAdmins":false,"storageEndpoint":"","storageAccountAccessKey":"","retentionDays":0,"creationTime":"2021-04-27T01:44:05.28Z"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_mysql_test_mysqlc1430c84/providers/Microsoft.DBforMySQL/servers/testserver21341/securityAlertPolicies/securityalertpolicy","name":"securityalertpolicy","type":"Microsoft.DBforMySQL/servers/securityAlertPolicies"}' + string: '{"properties":{"state":"Enabled","disabledAlerts":[""],"emailAddresses":[""],"emailAccountAdmins":false,"storageEndpoint":"","storageAccountAccessKey":"","retentionDays":0,"creationTime":"2021-04-29T05:35:23.863Z"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_mysql_test_mysqlc1430c84/providers/Microsoft.DBforMySQL/servers/testserver21341/securityAlertPolicies/securityalertpolicy","name":"securityalertpolicy","type":"Microsoft.DBforMySQL/servers/securityAlertPolicies"}' headers: cache-control: - no-cache content-length: - - '518' + - '519' content-type: - application/json; charset=utf-8 date: - - Tue, 27 Apr 2021 01:44:08 GMT + - Thu, 29 Apr 2021 05:35:26 GMT expires: - '-1' pragma: @@ -1559,22 +1430,22 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_mysql_test_mysqlc1430c84/providers/Microsoft.DBforMySQL/servers/testserver21341/securityAlertPolicies/securityalertpolicy?api-version=2017-12-01 response: body: - string: '{"operation":"UpsertServerThreatDetectionPolicy","startTime":"2021-04-27T01:44:08.86Z"}' + string: '{"operation":"UpsertServerThreatDetectionPolicy","startTime":"2021-04-29T05:35:27.223Z"}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMySQL/locations/East%20US/securityAlertPoliciesAzureAsyncOperation/eb9737b4-8946-4bc3-9095-3ab1ff76b12e?api-version=2017-12-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMySQL/locations/East%20US/securityAlertPoliciesAzureAsyncOperation/86381ce2-511d-4577-8303-6d5568c781a0?api-version=2017-12-01 cache-control: - no-cache content-length: - - '87' + - '88' content-type: - application/json; charset=utf-8 date: - - Tue, 27 Apr 2021 01:44:08 GMT + - Thu, 29 Apr 2021 05:35:26 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMySQL/locations/East%20US/securityAlertPoliciesOperationResults/eb9737b4-8946-4bc3-9095-3ab1ff76b12e?api-version=2017-12-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMySQL/locations/East%20US/securityAlertPoliciesOperationResults/86381ce2-511d-4577-8303-6d5568c781a0?api-version=2017-12-01 pragma: - no-cache server: @@ -1601,19 +1472,19 @@ interactions: - azsdk-python-mgmt-rdbms/unknown Python/3.8.9 (Linux-5.4.0-1046-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMySQL/locations/East%20US/securityAlertPoliciesAzureAsyncOperation/eb9737b4-8946-4bc3-9095-3ab1ff76b12e?api-version=2017-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMySQL/locations/East%20US/securityAlertPoliciesAzureAsyncOperation/86381ce2-511d-4577-8303-6d5568c781a0?api-version=2017-12-01 response: body: - string: '{"name":"eb9737b4-8946-4bc3-9095-3ab1ff76b12e","status":"Succeeded","startTime":"2021-04-27T01:44:08.86Z"}' + string: '{"name":"86381ce2-511d-4577-8303-6d5568c781a0","status":"Succeeded","startTime":"2021-04-29T05:35:27.223Z"}' headers: cache-control: - no-cache content-length: - - '106' + - '107' content-type: - application/json; charset=utf-8 date: - - Tue, 27 Apr 2021 01:44:11 GMT + - Thu, 29 Apr 2021 05:35:29 GMT expires: - '-1' pragma: @@ -1647,16 +1518,16 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_mysql_test_mysqlc1430c84/providers/Microsoft.DBforMySQL/servers/testserver21341/securityAlertPolicies/securityalertpolicy?api-version=2017-12-01 response: body: - string: '{"properties":{"state":"Disabled","disabledAlerts":[""],"emailAddresses":[""],"emailAccountAdmins":false,"storageEndpoint":"","storageAccountAccessKey":"","retentionDays":0,"creationTime":"2021-04-27T01:44:05.28Z"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_mysql_test_mysqlc1430c84/providers/Microsoft.DBforMySQL/servers/testserver21341/securityAlertPolicies/securityalertpolicy","name":"securityalertpolicy","type":"Microsoft.DBforMySQL/servers/securityAlertPolicies"}' + string: '{"properties":{"state":"Disabled","disabledAlerts":[""],"emailAddresses":[""],"emailAccountAdmins":false,"storageEndpoint":"","storageAccountAccessKey":"","retentionDays":0,"creationTime":"2021-04-29T05:35:23.863Z"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_mysql_test_mysqlc1430c84/providers/Microsoft.DBforMySQL/servers/testserver21341/securityAlertPolicies/securityalertpolicy","name":"securityalertpolicy","type":"Microsoft.DBforMySQL/servers/securityAlertPolicies"}' headers: cache-control: - no-cache content-length: - - '519' + - '520' content-type: - application/json; charset=utf-8 date: - - Tue, 27 Apr 2021 01:44:11 GMT + - Thu, 29 Apr 2021 05:35:29 GMT expires: - '-1' pragma: @@ -1690,16 +1561,16 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_mysql_test_mysqlc1430c84/providers/Microsoft.DBforMySQL/servers/testserver21341/securityAlertPolicies/securityalertpolicy?api-version=2017-12-01 response: body: - string: '{"properties":{"state":"Disabled","disabledAlerts":[""],"emailAddresses":[""],"emailAccountAdmins":false,"storageEndpoint":"","storageAccountAccessKey":"","retentionDays":0,"creationTime":"2021-04-27T01:44:05.28Z"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_mysql_test_mysqlc1430c84/providers/Microsoft.DBforMySQL/servers/testserver21341/securityAlertPolicies/securityalertpolicy","name":"securityalertpolicy","type":"Microsoft.DBforMySQL/servers/securityAlertPolicies"}' + string: '{"properties":{"state":"Disabled","disabledAlerts":[""],"emailAddresses":[""],"emailAccountAdmins":false,"storageEndpoint":"","storageAccountAccessKey":"","retentionDays":0,"creationTime":"2021-04-29T05:35:23.863Z"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_mysql_test_mysqlc1430c84/providers/Microsoft.DBforMySQL/servers/testserver21341/securityAlertPolicies/securityalertpolicy","name":"securityalertpolicy","type":"Microsoft.DBforMySQL/servers/securityAlertPolicies"}' headers: cache-control: - no-cache content-length: - - '519' + - '520' content-type: - application/json; charset=utf-8 date: - - Tue, 27 Apr 2021 01:44:11 GMT + - Thu, 29 Apr 2021 05:35:29 GMT expires: - '-1' pragma: @@ -1742,7 +1613,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 27 Apr 2021 01:44:12 GMT + - Thu, 29 Apr 2021 05:35:29 GMT expires: - '-1' pragma: @@ -1785,7 +1656,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 27 Apr 2021 01:44:12 GMT + - Thu, 29 Apr 2021 05:35:30 GMT expires: - '-1' pragma: @@ -1819,7 +1690,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_mysql_test_mysqlc1430c84/providers/Microsoft.DBForMySQL/servers/testserver21341?api-version=2017-12-01 response: body: - string: '{"sku":{"name":"GP_Gen5_2","tier":"GeneralPurpose","family":"Gen5","capacity":2},"properties":{"administratorLogin":"cloudsa","storageProfile":{"storageMB":128000,"backupRetentionDays":7,"geoRedundantBackup":"Enabled","storageAutogrow":"Disabled"},"version":"5.7","sslEnforcement":"Enabled","minimalTlsVersion":"TLSEnforcementDisabled","userVisibleState":"Ready","fullyQualifiedDomainName":"testserver21341.mysql.database.azure.com","earliestRestoreDate":"2021-04-27T01:41:23.513+00:00","replicationRole":"Master","masterServerId":"","replicaCapacity":5,"byokEnforcement":"Disabled","privateEndpointConnections":[],"infrastructureEncryption":"Disabled","publicNetworkAccess":"Enabled"},"location":"eastus","tags":{"elastic_server":"1"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_mysql_test_mysqlc1430c84/providers/Microsoft.DBforMySQL/servers/testserver21341","name":"testserver21341","type":"Microsoft.DBforMySQL/servers"}' + string: '{"sku":{"name":"GP_Gen5_2","tier":"GeneralPurpose","family":"Gen5","capacity":2},"properties":{"administratorLogin":"cloudsa","storageProfile":{"storageMB":128000,"backupRetentionDays":7,"geoRedundantBackup":"Enabled","storageAutogrow":"Disabled"},"version":"5.7","sslEnforcement":"Enabled","minimalTlsVersion":"TLSEnforcementDisabled","userVisibleState":"Ready","fullyQualifiedDomainName":"testserver21341.mysql.database.azure.com","earliestRestoreDate":"2021-04-29T05:34:18.227+00:00","replicationRole":"Master","masterServerId":"","replicaCapacity":5,"byokEnforcement":"Disabled","privateEndpointConnections":[],"infrastructureEncryption":"Disabled","publicNetworkAccess":"Enabled"},"location":"eastus","tags":{"elastic_server":"1"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_mysql_test_mysqlc1430c84/providers/Microsoft.DBforMySQL/servers/testserver21341","name":"testserver21341","type":"Microsoft.DBforMySQL/servers"}' headers: cache-control: - no-cache @@ -1828,7 +1699,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 27 Apr 2021 01:44:12 GMT + - Thu, 29 Apr 2021 05:35:30 GMT expires: - '-1' pragma: @@ -2127,7 +1998,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 27 Apr 2021 01:44:13 GMT + - Thu, 29 Apr 2021 05:35:30 GMT expires: - '-1' pragma: @@ -2163,22 +2034,22 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_mysql_test_mysqlc1430c84/providers/Microsoft.DBForMySQL/servers/testserver21341/restart?api-version=2017-12-01 response: body: - string: '{"operation":"RestartElasticServer","startTime":"2021-04-27T01:44:14.11Z"}' + string: '{"operation":"RestartElasticServer","startTime":"2021-04-29T05:35:31.643Z"}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/6428c4f6-1a18-419a-9fad-2caf19b5e324?api-version=2017-12-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/188e6ae5-03c2-4434-92f7-e51f332844c2?api-version=2017-12-01 cache-control: - no-cache content-length: - - '74' + - '75' content-type: - application/json; charset=utf-8 date: - - Tue, 27 Apr 2021 01:44:13 GMT + - Thu, 29 Apr 2021 05:35:30 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMySQL/locations/eastus/operationResults/6428c4f6-1a18-419a-9fad-2caf19b5e324?api-version=2017-12-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMySQL/locations/eastus/operationResults/188e6ae5-03c2-4434-92f7-e51f332844c2?api-version=2017-12-01 pragma: - no-cache server: @@ -2205,19 +2076,19 @@ interactions: - azsdk-python-mgmt-rdbms/unknown Python/3.8.9 (Linux-5.4.0-1046-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/6428c4f6-1a18-419a-9fad-2caf19b5e324?api-version=2017-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/188e6ae5-03c2-4434-92f7-e51f332844c2?api-version=2017-12-01 response: body: - string: '{"name":"6428c4f6-1a18-419a-9fad-2caf19b5e324","status":"InProgress","startTime":"2021-04-27T01:44:14.11Z"}' + string: '{"name":"188e6ae5-03c2-4434-92f7-e51f332844c2","status":"InProgress","startTime":"2021-04-29T05:35:31.643Z"}' headers: cache-control: - no-cache content-length: - - '107' + - '108' content-type: - application/json; charset=utf-8 date: - - Tue, 27 Apr 2021 01:44:28 GMT + - Thu, 29 Apr 2021 05:35:46 GMT expires: - '-1' pragma: @@ -2248,19 +2119,19 @@ interactions: - azsdk-python-mgmt-rdbms/unknown Python/3.8.9 (Linux-5.4.0-1046-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/6428c4f6-1a18-419a-9fad-2caf19b5e324?api-version=2017-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/188e6ae5-03c2-4434-92f7-e51f332844c2?api-version=2017-12-01 response: body: - string: '{"name":"6428c4f6-1a18-419a-9fad-2caf19b5e324","status":"InProgress","startTime":"2021-04-27T01:44:14.11Z"}' + string: '{"name":"188e6ae5-03c2-4434-92f7-e51f332844c2","status":"InProgress","startTime":"2021-04-29T05:35:31.643Z"}' headers: cache-control: - no-cache content-length: - - '107' + - '108' content-type: - application/json; charset=utf-8 date: - - Tue, 27 Apr 2021 01:44:51 GMT + - Thu, 29 Apr 2021 05:36:01 GMT expires: - '-1' pragma: @@ -2291,19 +2162,19 @@ interactions: - azsdk-python-mgmt-rdbms/unknown Python/3.8.9 (Linux-5.4.0-1046-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/6428c4f6-1a18-419a-9fad-2caf19b5e324?api-version=2017-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/188e6ae5-03c2-4434-92f7-e51f332844c2?api-version=2017-12-01 response: body: - string: '{"name":"6428c4f6-1a18-419a-9fad-2caf19b5e324","status":"InProgress","startTime":"2021-04-27T01:44:14.11Z"}' + string: '{"name":"188e6ae5-03c2-4434-92f7-e51f332844c2","status":"InProgress","startTime":"2021-04-29T05:35:31.643Z"}' headers: cache-control: - no-cache content-length: - - '107' + - '108' content-type: - application/json; charset=utf-8 date: - - Tue, 27 Apr 2021 01:45:06 GMT + - Thu, 29 Apr 2021 05:36:16 GMT expires: - '-1' pragma: @@ -2334,19 +2205,19 @@ interactions: - azsdk-python-mgmt-rdbms/unknown Python/3.8.9 (Linux-5.4.0-1046-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/6428c4f6-1a18-419a-9fad-2caf19b5e324?api-version=2017-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/188e6ae5-03c2-4434-92f7-e51f332844c2?api-version=2017-12-01 response: body: - string: '{"name":"6428c4f6-1a18-419a-9fad-2caf19b5e324","status":"Succeeded","startTime":"2021-04-27T01:44:14.11Z"}' + string: '{"name":"188e6ae5-03c2-4434-92f7-e51f332844c2","status":"Succeeded","startTime":"2021-04-29T05:35:31.643Z"}' headers: cache-control: - no-cache content-length: - - '106' + - '107' content-type: - application/json; charset=utf-8 date: - - Tue, 27 Apr 2021 01:45:21 GMT + - Thu, 29 Apr 2021 05:36:32 GMT expires: - '-1' pragma: @@ -2377,7 +2248,7 @@ interactions: - azsdk-python-mgmt-rdbms/unknown Python/3.8.9 (Linux-5.4.0-1046-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMySQL/locations/eastus/operationResults/6428c4f6-1a18-419a-9fad-2caf19b5e324?api-version=2017-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMySQL/locations/eastus/operationResults/188e6ae5-03c2-4434-92f7-e51f332844c2?api-version=2017-12-01 response: body: string: '' @@ -2387,7 +2258,7 @@ interactions: content-length: - '0' date: - - Tue, 27 Apr 2021 01:45:21 GMT + - Thu, 29 Apr 2021 05:36:32 GMT expires: - '-1' pragma: @@ -2421,22 +2292,22 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_mysql_test_mysqlc1430c84/providers/Microsoft.DBForMySQL/servers/testserver21341?api-version=2017-12-01 response: body: - string: '{"operation":"UpsertElasticServer","startTime":"2021-04-27T01:45:22.26Z"}' + string: '{"operation":"UpsertElasticServer","startTime":"2021-04-29T05:36:32.387Z"}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/5cecc27d-7b3a-438d-b2c2-107165a96198?api-version=2017-12-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/01e1e0ee-75d5-4252-a452-f95b1d7093b7?api-version=2017-12-01 cache-control: - no-cache content-length: - - '73' + - '74' content-type: - application/json; charset=utf-8 date: - - Tue, 27 Apr 2021 01:45:22 GMT + - Thu, 29 Apr 2021 05:36:33 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMySQL/locations/eastus/operationResults/5cecc27d-7b3a-438d-b2c2-107165a96198?api-version=2017-12-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMySQL/locations/eastus/operationResults/01e1e0ee-75d5-4252-a452-f95b1d7093b7?api-version=2017-12-01 pragma: - no-cache server: @@ -2463,19 +2334,19 @@ interactions: - azsdk-python-mgmt-rdbms/unknown Python/3.8.9 (Linux-5.4.0-1046-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/5cecc27d-7b3a-438d-b2c2-107165a96198?api-version=2017-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/01e1e0ee-75d5-4252-a452-f95b1d7093b7?api-version=2017-12-01 response: body: - string: '{"name":"5cecc27d-7b3a-438d-b2c2-107165a96198","status":"Succeeded","startTime":"2021-04-27T01:45:22.26Z"}' + string: '{"name":"01e1e0ee-75d5-4252-a452-f95b1d7093b7","status":"Succeeded","startTime":"2021-04-29T05:36:32.387Z"}' headers: cache-control: - no-cache content-length: - - '106' + - '107' content-type: - application/json; charset=utf-8 date: - - Tue, 27 Apr 2021 01:46:23 GMT + - Thu, 29 Apr 2021 05:37:33 GMT expires: - '-1' pragma: @@ -2509,7 +2380,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_mysql_test_mysqlc1430c84/providers/Microsoft.DBForMySQL/servers/testserver21341?api-version=2017-12-01 response: body: - string: '{"sku":{"name":"GP_Gen5_2","tier":"GeneralPurpose","family":"Gen5","capacity":2},"properties":{"administratorLogin":"cloudsa","storageProfile":{"storageMB":128000,"backupRetentionDays":7,"geoRedundantBackup":"Enabled","storageAutogrow":"Disabled"},"version":"5.7","sslEnforcement":"Enabled","minimalTlsVersion":"TLSEnforcementDisabled","userVisibleState":"Ready","fullyQualifiedDomainName":"testserver21341.mysql.database.azure.com","earliestRestoreDate":"2021-04-27T01:41:23.513+00:00","replicationRole":"Master","masterServerId":"","replicaCapacity":5,"byokEnforcement":"Disabled","privateEndpointConnections":[],"infrastructureEncryption":"Disabled","publicNetworkAccess":"Enabled"},"location":"eastus","tags":{"elastic_server":"1"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_mysql_test_mysqlc1430c84/providers/Microsoft.DBforMySQL/servers/testserver21341","name":"testserver21341","type":"Microsoft.DBforMySQL/servers"}' + string: '{"sku":{"name":"GP_Gen5_2","tier":"GeneralPurpose","family":"Gen5","capacity":2},"properties":{"administratorLogin":"cloudsa","storageProfile":{"storageMB":128000,"backupRetentionDays":7,"geoRedundantBackup":"Enabled","storageAutogrow":"Disabled"},"version":"5.7","sslEnforcement":"Enabled","minimalTlsVersion":"TLSEnforcementDisabled","userVisibleState":"Ready","fullyQualifiedDomainName":"testserver21341.mysql.database.azure.com","earliestRestoreDate":"2021-04-29T05:34:18.227+00:00","replicationRole":"Master","masterServerId":"","replicaCapacity":5,"byokEnforcement":"Disabled","privateEndpointConnections":[],"infrastructureEncryption":"Disabled","publicNetworkAccess":"Enabled"},"location":"eastus","tags":{"elastic_server":"1"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_mysql_test_mysqlc1430c84/providers/Microsoft.DBforMySQL/servers/testserver21341","name":"testserver21341","type":"Microsoft.DBforMySQL/servers"}' headers: cache-control: - no-cache @@ -2518,7 +2389,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 27 Apr 2021 01:46:23 GMT + - Thu, 29 Apr 2021 05:37:33 GMT expires: - '-1' pragma: @@ -2565,7 +2436,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 27 Apr 2021 01:46:24 GMT + - Thu, 29 Apr 2021 05:37:34 GMT expires: - '-1' pragma: @@ -2603,22 +2474,22 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_mysql_test_mysqlc1430c84/providers/Microsoft.DBForMySQL/servers/testserver21341/firewallRules/firewallrule?api-version=2017-12-01 response: body: - string: '{"operation":"DropElasticServerFirewallRule","startTime":"2021-04-27T01:46:25.54Z"}' + string: '{"operation":"DropElasticServerFirewallRule","startTime":"2021-04-29T05:37:34.883Z"}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/b3ffdc04-3ffe-477c-893f-86e3edbc12ed?api-version=2017-12-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/f2e7e1f7-6a37-468d-85aa-363a2145761c?api-version=2017-12-01 cache-control: - no-cache content-length: - - '83' + - '84' content-type: - application/json; charset=utf-8 date: - - Tue, 27 Apr 2021 01:46:26 GMT + - Thu, 29 Apr 2021 05:37:35 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMySQL/locations/eastus/operationResults/b3ffdc04-3ffe-477c-893f-86e3edbc12ed?api-version=2017-12-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMySQL/locations/eastus/operationResults/f2e7e1f7-6a37-468d-85aa-363a2145761c?api-version=2017-12-01 pragma: - no-cache server: @@ -2645,19 +2516,19 @@ interactions: - azsdk-python-mgmt-rdbms/unknown Python/3.8.9 (Linux-5.4.0-1046-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/b3ffdc04-3ffe-477c-893f-86e3edbc12ed?api-version=2017-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/f2e7e1f7-6a37-468d-85aa-363a2145761c?api-version=2017-12-01 response: body: - string: '{"name":"b3ffdc04-3ffe-477c-893f-86e3edbc12ed","status":"Succeeded","startTime":"2021-04-27T01:46:25.54Z"}' + string: '{"name":"f2e7e1f7-6a37-468d-85aa-363a2145761c","status":"Succeeded","startTime":"2021-04-29T05:37:34.883Z"}' headers: cache-control: - no-cache content-length: - - '106' + - '107' content-type: - application/json; charset=utf-8 date: - - Tue, 27 Apr 2021 01:46:41 GMT + - Thu, 29 Apr 2021 05:37:50 GMT expires: - '-1' pragma: @@ -2693,22 +2564,22 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_mysql_test_mysqlc1430c84/providers/Microsoft.DBForMySQL/servers/testserver21341/databases/testdatabase21341?api-version=2017-12-01 response: body: - string: '{"operation":"DropElasticServerDatabase","startTime":"2021-04-27T01:46:41.913Z"}' + string: '{"operation":"DropElasticServerDatabase","startTime":"2021-04-29T05:37:51.26Z"}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/4d6291f2-4d48-41f6-b8b5-b84f9894c2fc?api-version=2017-12-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/83306d53-bdcc-4e8c-871e-c9e03ab7909c?api-version=2017-12-01 cache-control: - no-cache content-length: - - '80' + - '79' content-type: - application/json; charset=utf-8 date: - - Tue, 27 Apr 2021 01:46:41 GMT + - Thu, 29 Apr 2021 05:37:50 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMySQL/locations/eastus/operationResults/4d6291f2-4d48-41f6-b8b5-b84f9894c2fc?api-version=2017-12-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMySQL/locations/eastus/operationResults/83306d53-bdcc-4e8c-871e-c9e03ab7909c?api-version=2017-12-01 pragma: - no-cache server: @@ -2735,19 +2606,19 @@ interactions: - azsdk-python-mgmt-rdbms/unknown Python/3.8.9 (Linux-5.4.0-1046-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/4d6291f2-4d48-41f6-b8b5-b84f9894c2fc?api-version=2017-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/83306d53-bdcc-4e8c-871e-c9e03ab7909c?api-version=2017-12-01 response: body: - string: '{"name":"4d6291f2-4d48-41f6-b8b5-b84f9894c2fc","status":"Succeeded","startTime":"2021-04-27T01:46:41.913Z"}' + string: '{"name":"83306d53-bdcc-4e8c-871e-c9e03ab7909c","status":"Succeeded","startTime":"2021-04-29T05:37:51.26Z"}' headers: cache-control: - no-cache content-length: - - '107' + - '106' content-type: - application/json; charset=utf-8 date: - - Tue, 27 Apr 2021 01:46:56 GMT + - Thu, 29 Apr 2021 05:38:06 GMT expires: - '-1' pragma: @@ -2783,10 +2654,10 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_mysql_test_mysqlc1430c84/providers/Microsoft.DBForMySQL/servers/testserver21341?api-version=2017-12-01 response: body: - string: '{"operation":"DropElasticServer","startTime":"2021-04-27T01:46:57.977Z"}' + string: '{"operation":"DropElasticServer","startTime":"2021-04-29T05:38:06.527Z"}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/d5efd543-f333-4ce8-be79-646496d77821?api-version=2017-12-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/3f0d3b5e-03cf-4174-8e2f-224209731bde?api-version=2017-12-01 cache-control: - no-cache content-length: @@ -2794,11 +2665,11 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 27 Apr 2021 01:46:57 GMT + - Thu, 29 Apr 2021 05:38:06 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMySQL/locations/eastus/operationResults/d5efd543-f333-4ce8-be79-646496d77821?api-version=2017-12-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMySQL/locations/eastus/operationResults/3f0d3b5e-03cf-4174-8e2f-224209731bde?api-version=2017-12-01 pragma: - no-cache server: @@ -2825,10 +2696,10 @@ interactions: - azsdk-python-mgmt-rdbms/unknown Python/3.8.9 (Linux-5.4.0-1046-azure-x86_64-with-glibc2.2.5) VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/d5efd543-f333-4ce8-be79-646496d77821?api-version=2017-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforMySQL/locations/eastus/azureAsyncOperation/3f0d3b5e-03cf-4174-8e2f-224209731bde?api-version=2017-12-01 response: body: - string: '{"name":"d5efd543-f333-4ce8-be79-646496d77821","status":"Succeeded","startTime":"2021-04-27T01:46:57.977Z"}' + string: '{"name":"3f0d3b5e-03cf-4174-8e2f-224209731bde","status":"Succeeded","startTime":"2021-04-29T05:38:06.527Z"}' headers: cache-control: - no-cache @@ -2837,7 +2708,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 27 Apr 2021 01:47:13 GMT + - Thu, 29 Apr 2021 05:38:21 GMT expires: - '-1' pragma: diff --git a/sdk/rdbms/azure-mgmt-rdbms/tests/recordings/test_cli_mgmt_postgresql.test_postgresql.yaml b/sdk/rdbms/azure-mgmt-rdbms/tests/recordings/test_cli_mgmt_postgresql.test_postgresql.yaml deleted file mode 100644 index 673d331dada2..000000000000 --- a/sdk/rdbms/azure-mgmt-rdbms/tests/recordings/test_cli_mgmt_postgresql.test_postgresql.yaml +++ /dev/null @@ -1,50 +0,0 @@ -interactions: -- request: - body: '{"tags": {"elastic_server": "1"}, "location": "eastus", "sku": {"name": - "B_Gen5_2", "tier": "Basic"}, "properties": {"tags": {"elastic_server": "1"}}}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '150' - Content-Type: - - application/json - User-Agent: - - azsdk-python-mgmt-rdbms/8.1.0b3 Python/3.8.9 (Linux-5.4.0-1046-azure-x86_64-with-glibc2.2.5) - VSTS_0fb41ef4-5012-48a9-bf39-4ee3de03ee35_build_2384_0 - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_postgresql_test_postgresql562b10c0/providers/Microsoft.DBForPostgreSql/flexibleServers/testserver21345?api-version=2020-02-14-preview - response: - body: - string: '{"error":{"code":"ParameterOutOfRange","message":"The value of the - ''Sku.Tier'' should be in: [Burstable, GeneralPurpose, MemoryOptimized]. Verify - that the specified parameter value is correct."}}' - headers: - cache-control: - - no-cache - content-length: - - '194' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 27 Apr 2021 01:47:17 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1198' - status: - code: 400 - message: Bad Request -version: 1 From 20e5a18be66f2795d5f86d1ca04880ff2de8a5ec Mon Sep 17 00:00:00 2001 From: msyyc <70930885+msyyc@users.noreply.github.com> Date: Thu, 29 Apr 2021 13:45:10 +0800 Subject: [PATCH 4/4] Update shared_requirements.txt --- shared_requirements.txt | 1 - 1 file changed, 1 deletion(-) diff --git a/shared_requirements.txt b/shared_requirements.txt index 150ce870f984..068e38c57abd 100644 --- a/shared_requirements.txt +++ b/shared_requirements.txt @@ -264,4 +264,3 @@ opentelemetry-sdk<2.0.0,>=1.0.0 #override azure-mgmt-rdbms msrest>=0.6.21 #override azure-mgmt-peering msrest>=0.6.21 #override azure-mgmt-mixedreality msrest>=0.6.21 -#override azure-mgmt-rdbms msrest>=0.6.21