From 0dec745f9b8f27d951bb685599b16ecda5d247a4 Mon Sep 17 00:00:00 2001 From: Azure CLI Bot Date: Tue, 8 Jun 2021 13:49:25 +0800 Subject: [PATCH] [AutoRelease] t2-rdbms-2021-06-03-12642 (#19065) * CodeGen from PR 14608 in Azure/azure-rest-api-specs Mariadb t2 config (#14608) * sql t2 readme config * readme config * Update readme.python.md * conflient resolve * mariadb readme config * readme.python config * track1 del Co-authored-by: msyyc <70930885+msyyc@users.noreply.github.com> * version,CHANGELOG * test * test config * changelog config * _version confgi * version * Update CHANGELOG.md Co-authored-by: SDKAuto Co-authored-by: msyyc <70930885+msyyc@users.noreply.github.com> Co-authored-by: PythonSdkPipelines Co-authored-by: Zed <601306339@qq.com> --- sdk/rdbms/azure-mgmt-rdbms/CHANGELOG.md | 4 + sdk/rdbms/azure-mgmt-rdbms/_meta.json | 13 +- .../azure/mgmt/rdbms/_version.py | 2 +- .../azure/mgmt/rdbms/mariadb/__init__.py | 3 + .../mgmt/rdbms/mariadb/_configuration.py | 3 +- .../mariadb/_maria_db_management_client.py | 19 + .../azure/mgmt/rdbms/mariadb/_metadata.json | 167 + .../azure/mgmt/rdbms/mariadb/_version.py | 9 + .../mgmt/rdbms/mariadb/aio/_configuration.py | 3 +- .../aio/_maria_db_management_client.py | 18 + .../aio/operations/_advisors_operations.py | 4 +- .../_check_name_availability_operations.py | 2 +- .../operations/_configurations_operations.py | 12 +- .../aio/operations/_databases_operations.py | 20 +- .../operations/_firewall_rules_operations.py | 20 +- ...ation_based_performance_tier_operations.py | 2 +- ...on_sessions_operation_status_operations.py | 2 +- ...ended_action_sessions_result_operations.py | 2 +- .../aio/operations/_log_files_operations.py | 2 +- .../_maria_db_management_client_operations.py | 10 +- .../mariadb/aio/operations/_operations.py | 2 +- ...private_endpoint_connections_operations.py | 28 +- .../_private_link_resources_operations.py | 4 +- .../aio/operations/_query_texts_operations.py | 4 +- .../_recommended_actions_operations.py | 4 +- .../_recoverable_servers_operations.py | 2 +- .../aio/operations/_replicas_operations.py | 2 +- ...erver_based_performance_tier_operations.py | 2 +- .../_server_parameters_operations.py | 8 +- ...rver_security_alert_policies_operations.py | 87 +- .../aio/operations/_servers_operations.py | 58 +- .../_top_query_statistics_operations.py | 4 +- .../_virtual_network_rules_operations.py | 20 +- .../operations/_wait_statistics_operations.py | 4 +- .../mgmt/rdbms/mariadb/models/__init__.py | 5 + .../_maria_db_management_client_enums.py | 13 +- .../mgmt/rdbms/mariadb/models/_models.py | 177 +- .../mgmt/rdbms/mariadb/models/_models_py3.py | 196 +- .../operations/_configurations_operations.py | 4 +- .../operations/_databases_operations.py | 8 +- .../operations/_firewall_rules_operations.py | 8 +- .../_maria_db_management_client_operations.py | 4 +- ...private_endpoint_connections_operations.py | 12 +- .../_server_parameters_operations.py | 4 +- ...rver_security_alert_policies_operations.py | 82 +- .../mariadb/operations/_servers_operations.py | 28 +- .../_virtual_network_rules_operations.py | 8 +- .../azure/mgmt/rdbms/postgresql/_version.py | 2 +- .../postgresql_flexibleservers/_version.py | 2 +- .../test_cli_mgmt_mariadb.test_mariadb.yaml | 2697 ---------------- .../test_cli_mgmt_mysql.test_mysql.yaml | 2729 ----------------- .../tests/test_cli_mgmt_mariadb.py | 1 + .../tests/test_cli_mgmt_mysql.py | 1 + 53 files changed, 811 insertions(+), 5716 deletions(-) create mode 100644 sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mariadb/_metadata.json create mode 100644 sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mariadb/_version.py delete mode 100644 sdk/rdbms/azure-mgmt-rdbms/tests/recordings/test_cli_mgmt_mariadb.test_mariadb.yaml delete mode 100644 sdk/rdbms/azure-mgmt-rdbms/tests/recordings/test_cli_mgmt_mysql.test_mysql.yaml diff --git a/sdk/rdbms/azure-mgmt-rdbms/CHANGELOG.md b/sdk/rdbms/azure-mgmt-rdbms/CHANGELOG.md index 3a40d3660ce3..e3c38d9d58a1 100644 --- a/sdk/rdbms/azure-mgmt-rdbms/CHANGELOG.md +++ b/sdk/rdbms/azure-mgmt-rdbms/CHANGELOG.md @@ -1,5 +1,9 @@ # Release History +## 8.1.0 (2021-06-08) + + - New models and operations for mariadb + ## 8.1.0b4 (2021-04-29) **Features** diff --git a/sdk/rdbms/azure-mgmt-rdbms/_meta.json b/sdk/rdbms/azure-mgmt-rdbms/_meta.json index ef4eebce6e02..dfe36a6bd651 100644 --- a/sdk/rdbms/azure-mgmt-rdbms/_meta.json +++ b/sdk/rdbms/azure-mgmt-rdbms/_meta.json @@ -1,8 +1,11 @@ { - "autorest": "3.3.0", - "use": "@autorest/python@5.6.6", - "commit": "62e437e7b686c6f4fbc3e7f8b34749899932c221", + "autorest": "3.4.2", + "use": [ + "@autorest/python@5.8.0", + "@autorest/modelerfour@4.19.2" + ], + "commit": "5b141b3de81d3a38ee2406e1a9db5a9ecd08ff7d", "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" + "autorest_command": "autorest specification/mariadb/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.8.0 --use=@autorest/modelerfour@4.19.2 --version=3.4.2", + "readme": "specification/mariadb/resource-manager/readme.md" } \ No newline at end of file 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 c75f127a72fa..9d6b829337f5 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.0b4" +VERSION = "8.1.0" diff --git a/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mariadb/__init__.py b/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mariadb/__init__.py index ca75b7a11931..5f61173da894 100644 --- a/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mariadb/__init__.py +++ b/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mariadb/__init__.py @@ -7,6 +7,9 @@ # -------------------------------------------------------------------------- from ._maria_db_management_client import MariaDBManagementClient +from ._version import VERSION + +__version__ = VERSION __all__ = ['MariaDBManagementClient'] try: diff --git a/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mariadb/_configuration.py b/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mariadb/_configuration.py index 525b1bfaf7d1..1504213dd71f 100644 --- a/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mariadb/_configuration.py +++ b/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mariadb/_configuration.py @@ -12,13 +12,14 @@ from azure.core.pipeline import policies from azure.mgmt.core.policies import ARMHttpLoggingPolicy +from ._version import VERSION + if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports from typing import Any from azure.core.credentials import TokenCredential -VERSION = "unknown" class MariaDBManagementClientConfiguration(Configuration): """Configuration for MariaDBManagementClient. diff --git a/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mariadb/_maria_db_management_client.py b/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mariadb/_maria_db_management_client.py index 1f4921e7f690..ef2d7cd10911 100644 --- a/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mariadb/_maria_db_management_client.py +++ b/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mariadb/_maria_db_management_client.py @@ -16,6 +16,7 @@ from typing import Any, Optional from azure.core.credentials import TokenCredential + from azure.core.pipeline.transport import HttpRequest, HttpResponse from ._configuration import MariaDBManagementClientConfiguration from .operations import ServersOperations @@ -167,6 +168,24 @@ def __init__( self.server_security_alert_policies = ServerSecurityAlertPoliciesOperations( self._client, self._config, self._serialize, self._deserialize) + def _send_request(self, http_request, **kwargs): + # type: (HttpRequest, Any) -> HttpResponse + """Runs the network request through the client's chained policies. + + :param http_request: The network request you want to make. Required. + :type http_request: ~azure.core.pipeline.transport.HttpRequest + :keyword bool stream: Whether the response payload will be streamed. Defaults to True. + :return: The response of your network call. Does not do error handling on your response. + :rtype: ~azure.core.pipeline.transport.HttpResponse + """ + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), + } + http_request.url = self._client.format_url(http_request.url, **path_format_arguments) + stream = kwargs.pop("stream", True) + pipeline_response = self._client._pipeline.run(http_request, stream=stream, **kwargs) + return pipeline_response.http_response + def close(self): # type: () -> None self._client.close() diff --git a/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mariadb/_metadata.json b/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mariadb/_metadata.json new file mode 100644 index 000000000000..dbe446a8c691 --- /dev/null +++ b/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mariadb/_metadata.json @@ -0,0 +1,167 @@ +{ + "chosen_version": "", + "total_api_version_list": ["2018-06-01", "2020-01-01"], + "client": { + "name": "MariaDBManagementClient", + "filename": "_maria_db_management_client", + "description": "The Microsoft Azure management API provides create, read, update, and delete functionality for Azure MariaDB resources including servers, databases, firewall rules, VNET rules, log files and configurations with new business model.", + "base_url": "\u0027https://management.azure.com\u0027", + "custom_base_url": null, + "azure_arm": true, + "has_lro_operations": true, + "client_side_validation": false, + "sync_imports": "{\"typing\": {\"azurecore\": {\"azure.core.credentials\": [\"TokenCredential\"]}}, \"regular\": {\"azurecore\": {\"azure.profiles\": [\"KnownProfiles\", \"ProfileDefinition\"], \"azure.profiles.multiapiclient\": [\"MultiApiClientMixin\"], \"msrest\": [\"Deserializer\", \"Serializer\"], \"azure.mgmt.core\": [\"ARMPipelineClient\"]}, \"local\": {\"._configuration\": [\"MariaDBManagementClientConfiguration\"], \"._operations_mixin\": [\"MariaDBManagementClientOperationsMixin\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}, \"azurecore\": {\"azure.core.pipeline.transport\": [\"HttpRequest\", \"HttpResponse\"]}}}", + "async_imports": "{\"typing\": {\"azurecore\": {\"azure.core.credentials_async\": [\"AsyncTokenCredential\"]}}, \"regular\": {\"azurecore\": {\"azure.profiles\": [\"KnownProfiles\", \"ProfileDefinition\"], \"azure.profiles.multiapiclient\": [\"MultiApiClientMixin\"], \"msrest\": [\"Deserializer\", \"Serializer\"], \"azure.mgmt.core\": [\"AsyncARMPipelineClient\"]}, \"local\": {\"._configuration\": [\"MariaDBManagementClientConfiguration\"], \"._operations_mixin\": [\"MariaDBManagementClientOperationsMixin\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}, \"azurecore\": {\"azure.core.pipeline.transport\": [\"AsyncHttpResponse\", \"HttpRequest\"]}}}" + }, + "global_parameters": { + "sync": { + "credential": { + "signature": "credential, # type: \"TokenCredential\"", + "description": "Credential needed for the client to connect to Azure.", + "docstring_type": "~azure.core.credentials.TokenCredential", + "required": true + }, + "subscription_id": { + "signature": "subscription_id, # type: str", + "description": "The ID of the target subscription.", + "docstring_type": "str", + "required": true + } + }, + "async": { + "credential": { + "signature": "credential: \"AsyncTokenCredential\",", + "description": "Credential needed for the client to connect to Azure.", + "docstring_type": "~azure.core.credentials_async.AsyncTokenCredential", + "required": true + }, + "subscription_id": { + "signature": "subscription_id: str,", + "description": "The ID of the target subscription.", + "docstring_type": "str", + "required": true + } + }, + "constant": { + }, + "call": "credential, subscription_id", + "service_client_specific": { + "sync": { + "api_version": { + "signature": "api_version=None, # type: Optional[str]", + "description": "API version to use if no profile is provided, or if missing in profile.", + "docstring_type": "str", + "required": false + }, + "base_url": { + "signature": "base_url=None, # type: Optional[str]", + "description": "Service URL", + "docstring_type": "str", + "required": false + }, + "profile": { + "signature": "profile=KnownProfiles.default, # type: KnownProfiles", + "description": "A profile definition, from KnownProfiles to dict.", + "docstring_type": "azure.profiles.KnownProfiles", + "required": false + } + }, + "async": { + "api_version": { + "signature": "api_version: Optional[str] = None,", + "description": "API version to use if no profile is provided, or if missing in profile.", + "docstring_type": "str", + "required": false + }, + "base_url": { + "signature": "base_url: Optional[str] = None,", + "description": "Service URL", + "docstring_type": "str", + "required": false + }, + "profile": { + "signature": "profile: KnownProfiles = KnownProfiles.default,", + "description": "A profile definition, from KnownProfiles to dict.", + "docstring_type": "azure.profiles.KnownProfiles", + "required": false + } + } + } + }, + "config": { + "credential": true, + "credential_scopes": ["https://management.azure.com/.default"], + "credential_default_policy_type": "BearerTokenCredentialPolicy", + "credential_default_policy_type_has_async_version": true, + "credential_key_header_name": null, + "sync_imports": "{\"regular\": {\"azurecore\": {\"azure.core.configuration\": [\"Configuration\"], \"azure.core.pipeline\": [\"policies\"], \"azure.mgmt.core.policies\": [\"ARMHttpLoggingPolicy\"]}, \"local\": {\"._version\": [\"VERSION\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\"]}}, \"typing\": {\"azurecore\": {\"azure.core.credentials\": [\"TokenCredential\"]}}}", + "async_imports": "{\"regular\": {\"azurecore\": {\"azure.core.configuration\": [\"Configuration\"], \"azure.core.pipeline\": [\"policies\"], \"azure.mgmt.core.policies\": [\"ARMHttpLoggingPolicy\"]}, \"local\": {\".._version\": [\"VERSION\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\"]}}, \"typing\": {\"azurecore\": {\"azure.core.credentials_async\": [\"AsyncTokenCredential\"]}}}" + }, + "operation_groups": { + "servers": "ServersOperations", + "replicas": "ReplicasOperations", + "firewall_rules": "FirewallRulesOperations", + "virtual_network_rules": "VirtualNetworkRulesOperations", + "databases": "DatabasesOperations", + "configurations": "ConfigurationsOperations", + "server_parameters": "ServerParametersOperations", + "log_files": "LogFilesOperations", + "recoverable_servers": "RecoverableServersOperations", + "server_based_performance_tier": "ServerBasedPerformanceTierOperations", + "location_based_performance_tier": "LocationBasedPerformanceTierOperations", + "check_name_availability": "CheckNameAvailabilityOperations", + "operations": "Operations", + "query_texts": "QueryTextsOperations", + "top_query_statistics": "TopQueryStatisticsOperations", + "wait_statistics": "WaitStatisticsOperations", + "advisors": "AdvisorsOperations", + "recommended_actions": "RecommendedActionsOperations", + "location_based_recommended_action_sessions_operation_status": "LocationBasedRecommendedActionSessionsOperationStatusOperations", + "location_based_recommended_action_sessions_result": "LocationBasedRecommendedActionSessionsResultOperations", + "private_endpoint_connections": "PrivateEndpointConnectionsOperations", + "private_link_resources": "PrivateLinkResourcesOperations", + "server_security_alert_policies": "ServerSecurityAlertPoliciesOperations" + }, + "operation_mixins": { + "sync_imports": "{\"regular\": {\"azurecore\": {\"azure.core.exceptions\": [\"ClientAuthenticationError\", \"HttpResponseError\", \"ResourceExistsError\", \"ResourceNotFoundError\", \"map_error\"], \"azure.mgmt.core.exceptions\": [\"ARMErrorFormat\"], \"azure.core.pipeline\": [\"PipelineResponse\"], \"azure.core.pipeline.transport\": [\"HttpRequest\", \"HttpResponse\"], \"azure.core.polling\": [\"LROPoller\", \"NoPolling\", \"PollingMethod\"], \"azure.mgmt.core.polling.arm_polling\": [\"ARMPolling\"]}, \"stdlib\": {\"warnings\": [null]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Callable\", \"Dict\", \"Generic\", \"Optional\", \"TypeVar\", \"Union\"]}}}", + "async_imports": "{\"regular\": {\"azurecore\": {\"azure.core.exceptions\": [\"ClientAuthenticationError\", \"HttpResponseError\", \"ResourceExistsError\", \"ResourceNotFoundError\", \"map_error\"], \"azure.mgmt.core.exceptions\": [\"ARMErrorFormat\"], \"azure.core.pipeline\": [\"PipelineResponse\"], \"azure.core.pipeline.transport\": [\"AsyncHttpResponse\", \"HttpRequest\"], \"azure.core.polling\": [\"AsyncLROPoller\", \"AsyncNoPolling\", \"AsyncPollingMethod\"], \"azure.mgmt.core.polling.async_arm_polling\": [\"AsyncARMPolling\"]}, \"stdlib\": {\"warnings\": [null]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Callable\", \"Dict\", \"Generic\", \"Optional\", \"TypeVar\", \"Union\"]}}}", + "operations": { + "reset_query_performance_insight_data" : { + "sync": { + "signature": "def reset_query_performance_insight_data(\n self,\n resource_group_name, # type: str\n server_name, # type: str\n **kwargs # type: Any\n):\n", + "doc": "\"\"\"Reset data for Query Performance Insight.\n\n:param resource_group_name: The name of the resource group. The name is case insensitive.\n:type resource_group_name: str\n:param server_name: The name of the server.\n:type server_name: str\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: QueryPerformanceInsightResetDataResult, or the result of cls(response)\n:rtype: ~azure.mgmt.rdbms.mariadb.models.QueryPerformanceInsightResetDataResult\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" + }, + "async": { + "coroutine": true, + "signature": "async def reset_query_performance_insight_data(\n self,\n resource_group_name: str,\n server_name: str,\n **kwargs: Any\n) -\u003e \"_models.QueryPerformanceInsightResetDataResult\":\n", + "doc": "\"\"\"Reset data for Query Performance Insight.\n\n:param resource_group_name: The name of the resource group. The name is case insensitive.\n:type resource_group_name: str\n:param server_name: The name of the server.\n:type server_name: str\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: QueryPerformanceInsightResetDataResult, or the result of cls(response)\n:rtype: ~azure.mgmt.rdbms.mariadb.models.QueryPerformanceInsightResetDataResult\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" + }, + "call": "resource_group_name, server_name" + }, + "_create_recommended_action_session_initial" : { + "sync": { + "signature": "def _create_recommended_action_session_initial(\n self,\n resource_group_name, # type: str\n server_name, # type: str\n advisor_name, # type: str\n database_name, # type: str\n **kwargs # type: Any\n):\n", + "doc": "\"\"\"\n\n:param resource_group_name: The name of the resource group. The name is case insensitive.\n:type resource_group_name: str\n:param server_name: The name of the server.\n:type server_name: str\n:param advisor_name: The advisor name for recommendation action.\n:type advisor_name: str\n:param database_name: The name of the database.\n:type database_name: str\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: None, or the result of cls(response)\n:rtype: None\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" + }, + "async": { + "coroutine": true, + "signature": "async def _create_recommended_action_session_initial(\n self,\n resource_group_name: str,\n server_name: str,\n advisor_name: str,\n database_name: str,\n **kwargs: Any\n) -\u003e None:\n", + "doc": "\"\"\"\n\n:param resource_group_name: The name of the resource group. The name is case insensitive.\n:type resource_group_name: str\n:param server_name: The name of the server.\n:type server_name: str\n:param advisor_name: The advisor name for recommendation action.\n:type advisor_name: str\n:param database_name: The name of the database.\n:type database_name: str\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: None, or the result of cls(response)\n:rtype: None\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" + }, + "call": "resource_group_name, server_name, advisor_name, database_name" + }, + "begin_create_recommended_action_session" : { + "sync": { + "signature": "def begin_create_recommended_action_session(\n self,\n resource_group_name, # type: str\n server_name, # type: str\n advisor_name, # type: str\n database_name, # type: str\n **kwargs # type: Any\n):\n", + "doc": "\"\"\"Create recommendation action session for the advisor.\n\n:param resource_group_name: The name of the resource group. The name is case insensitive.\n:type resource_group_name: str\n:param server_name: The name of the server.\n:type server_name: str\n:param advisor_name: The advisor name for recommendation action.\n:type advisor_name: str\n:param database_name: The name of the database.\n:type database_name: str\n:keyword callable cls: A custom type or function that will be passed the direct response\n:keyword str continuation_token: A continuation token to restart a poller from a saved state.\n:keyword polling: By default, your polling method will be ARMPolling.\n Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.\n:paramtype polling: bool or ~azure.core.polling.PollingMethod\n:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.\n:return: An instance of LROPoller that returns either None or the result of cls(response)\n:rtype: ~azure.core.polling.LROPoller[None]\n:raises ~azure.core.exceptions.HttpResponseError:\n\"\"\"" + }, + "async": { + "coroutine": true, + "signature": "async def begin_create_recommended_action_session(\n self,\n resource_group_name: str,\n server_name: str,\n advisor_name: str,\n database_name: str,\n **kwargs: Any\n) -\u003e AsyncLROPoller[None]:\n", + "doc": "\"\"\"Create recommendation action session for the advisor.\n\n:param resource_group_name: The name of the resource group. The name is case insensitive.\n:type resource_group_name: str\n:param server_name: The name of the server.\n:type server_name: str\n:param advisor_name: The advisor name for recommendation action.\n:type advisor_name: str\n:param database_name: The name of the database.\n:type database_name: str\n:keyword callable cls: A custom type or function that will be passed the direct response\n:keyword str continuation_token: A continuation token to restart a poller from a saved state.\n:keyword polling: By default, your polling method will be AsyncARMPolling.\n Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.\n:paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod\n:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.\n:return: An instance of AsyncLROPoller that returns either None or the result of cls(response)\n:rtype: ~azure.core.polling.AsyncLROPoller[None]\n:raises ~azure.core.exceptions.HttpResponseError:\n\"\"\"" + }, + "call": "resource_group_name, server_name, advisor_name, database_name" + } + } + } +} \ No newline at end of file diff --git a/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mariadb/_version.py b/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mariadb/_version.py new file mode 100644 index 000000000000..920456322fa1 --- /dev/null +++ b/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mariadb/_version.py @@ -0,0 +1,9 @@ +# 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. +# -------------------------------------------------------------------------- + +VERSION = "8.1.0" diff --git a/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mariadb/aio/_configuration.py b/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mariadb/aio/_configuration.py index c0d225abc0e5..26c510686b11 100644 --- a/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mariadb/aio/_configuration.py +++ b/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mariadb/aio/_configuration.py @@ -12,11 +12,12 @@ from azure.core.pipeline import policies from azure.mgmt.core.policies import ARMHttpLoggingPolicy +from .._version import VERSION + if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports from azure.core.credentials_async import AsyncTokenCredential -VERSION = "unknown" class MariaDBManagementClientConfiguration(Configuration): """Configuration for MariaDBManagementClient. diff --git a/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mariadb/aio/_maria_db_management_client.py b/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mariadb/aio/_maria_db_management_client.py index 0e15a045002a..d6370c9d2a64 100644 --- a/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mariadb/aio/_maria_db_management_client.py +++ b/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mariadb/aio/_maria_db_management_client.py @@ -8,6 +8,7 @@ from typing import Any, Optional, TYPE_CHECKING +from azure.core.pipeline.transport import AsyncHttpResponse, HttpRequest from azure.mgmt.core import AsyncARMPipelineClient from msrest import Deserializer, Serializer @@ -164,6 +165,23 @@ def __init__( self.server_security_alert_policies = ServerSecurityAlertPoliciesOperations( 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. + + :param http_request: The network request you want to make. Required. + :type http_request: ~azure.core.pipeline.transport.HttpRequest + :keyword bool stream: Whether the response payload will be streamed. Defaults to True. + :return: The response of your network call. Does not do error handling on your response. + :rtype: ~azure.core.pipeline.transport.AsyncHttpResponse + """ + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), + } + http_request.url = self._client.format_url(http_request.url, **path_format_arguments) + stream = kwargs.pop("stream", True) + pipeline_response = await self._client._pipeline.run(http_request, stream=stream, **kwargs) + return pipeline_response.http_response + async def close(self) -> None: await self._client.close() diff --git a/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mariadb/aio/operations/_advisors_operations.py b/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mariadb/aio/operations/_advisors_operations.py index 84d6e6c921e9..b649899b8aff 100644 --- a/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mariadb/aio/operations/_advisors_operations.py +++ b/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mariadb/aio/operations/_advisors_operations.py @@ -46,7 +46,7 @@ async def get( resource_group_name: str, server_name: str, advisor_name: str, - **kwargs + **kwargs: Any ) -> "_models.Advisor": """Get a recommendation action advisor. @@ -107,7 +107,7 @@ def list_by_server( self, resource_group_name: str, server_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.AdvisorsResultList"]: """List recommendation action advisors. diff --git a/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mariadb/aio/operations/_check_name_availability_operations.py b/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mariadb/aio/operations/_check_name_availability_operations.py index fe80dcee5104..0b53ce6f39e7 100644 --- a/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mariadb/aio/operations/_check_name_availability_operations.py +++ b/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mariadb/aio/operations/_check_name_availability_operations.py @@ -43,7 +43,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: async def execute( self, name_availability_request: "_models.NameAvailabilityRequest", - **kwargs + **kwargs: Any ) -> "_models.NameAvailability": """Check the availability of name for resource. diff --git a/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mariadb/aio/operations/_configurations_operations.py b/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mariadb/aio/operations/_configurations_operations.py index 35a100435eb2..95f31eeee388 100644 --- a/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mariadb/aio/operations/_configurations_operations.py +++ b/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mariadb/aio/operations/_configurations_operations.py @@ -49,7 +49,7 @@ async def _create_or_update_initial( server_name: str, configuration_name: str, parameters: "_models.Configuration", - **kwargs + **kwargs: Any ) -> Optional["_models.Configuration"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.Configuration"]] error_map = { @@ -106,7 +106,7 @@ async def begin_create_or_update( server_name: str, configuration_name: str, parameters: "_models.Configuration", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.Configuration"]: """Updates a configuration of a server. @@ -120,8 +120,8 @@ async def begin_create_or_update( :type parameters: ~azure.mgmt.rdbms.mariadb.models.Configuration :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: True for ARMPolling, False for no polling, or a - polling object for personal polling strategy + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 Configuration or the result of cls(response) @@ -181,7 +181,7 @@ async def get( resource_group_name: str, server_name: str, configuration_name: str, - **kwargs + **kwargs: Any ) -> "_models.Configuration": """Gets information about a configuration of server. @@ -242,7 +242,7 @@ def list_by_server( self, resource_group_name: str, server_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.ConfigurationListResult"]: """List all the configurations in a given server. diff --git a/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mariadb/aio/operations/_databases_operations.py b/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mariadb/aio/operations/_databases_operations.py index da11cbfa53ec..86f51286acd7 100644 --- a/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mariadb/aio/operations/_databases_operations.py +++ b/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mariadb/aio/operations/_databases_operations.py @@ -49,7 +49,7 @@ async def _create_or_update_initial( server_name: str, database_name: str, parameters: "_models.Database", - **kwargs + **kwargs: Any ) -> Optional["_models.Database"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.Database"]] error_map = { @@ -109,7 +109,7 @@ async def begin_create_or_update( server_name: str, database_name: str, parameters: "_models.Database", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.Database"]: """Creates a new database or updates an existing database. @@ -123,8 +123,8 @@ async def begin_create_or_update( :type parameters: ~azure.mgmt.rdbms.mariadb.models.Database :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: True for ARMPolling, False for no polling, or a - polling object for personal polling strategy + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 Database or the result of cls(response) @@ -184,7 +184,7 @@ async def _delete_initial( resource_group_name: str, server_name: str, database_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -230,7 +230,7 @@ async def begin_delete( resource_group_name: str, server_name: str, database_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Deletes a database. @@ -242,8 +242,8 @@ async def begin_delete( :type database_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: True for ARMPolling, False for no polling, or a - polling object for personal polling strategy + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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) @@ -299,7 +299,7 @@ async def get( resource_group_name: str, server_name: str, database_name: str, - **kwargs + **kwargs: Any ) -> "_models.Database": """Gets information about a database. @@ -360,7 +360,7 @@ def list_by_server( self, resource_group_name: str, server_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.DatabaseListResult"]: """List all the databases in a given server. diff --git a/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mariadb/aio/operations/_firewall_rules_operations.py b/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mariadb/aio/operations/_firewall_rules_operations.py index f21d0d1de644..7ed604a0b61c 100644 --- a/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mariadb/aio/operations/_firewall_rules_operations.py +++ b/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mariadb/aio/operations/_firewall_rules_operations.py @@ -49,7 +49,7 @@ async def _create_or_update_initial( server_name: str, firewall_rule_name: str, parameters: "_models.FirewallRule", - **kwargs + **kwargs: Any ) -> Optional["_models.FirewallRule"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.FirewallRule"]] error_map = { @@ -109,7 +109,7 @@ async def begin_create_or_update( server_name: str, firewall_rule_name: str, parameters: "_models.FirewallRule", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.FirewallRule"]: """Creates a new firewall rule or updates an existing firewall rule. @@ -123,8 +123,8 @@ async def begin_create_or_update( :type parameters: ~azure.mgmt.rdbms.mariadb.models.FirewallRule :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: True for ARMPolling, False for no polling, or a - polling object for personal polling strategy + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 FirewallRule or the result of cls(response) @@ -184,7 +184,7 @@ async def _delete_initial( resource_group_name: str, server_name: str, firewall_rule_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -230,7 +230,7 @@ async def begin_delete( resource_group_name: str, server_name: str, firewall_rule_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Deletes a server firewall rule. @@ -242,8 +242,8 @@ async def begin_delete( :type firewall_rule_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: True for ARMPolling, False for no polling, or a - polling object for personal polling strategy + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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) @@ -299,7 +299,7 @@ async def get( resource_group_name: str, server_name: str, firewall_rule_name: str, - **kwargs + **kwargs: Any ) -> "_models.FirewallRule": """Gets information about a server firewall rule. @@ -360,7 +360,7 @@ def list_by_server( self, resource_group_name: str, server_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.FirewallRuleListResult"]: """List all the firewall rules in a given server. diff --git a/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mariadb/aio/operations/_location_based_performance_tier_operations.py b/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mariadb/aio/operations/_location_based_performance_tier_operations.py index 9fa3e18ac34a..5d08c93a18cc 100644 --- a/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mariadb/aio/operations/_location_based_performance_tier_operations.py +++ b/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mariadb/aio/operations/_location_based_performance_tier_operations.py @@ -44,7 +44,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: def list( self, location_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.PerformanceTierListResult"]: """List all the performance tiers at specified location in a given subscription. diff --git a/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mariadb/aio/operations/_location_based_recommended_action_sessions_operation_status_operations.py b/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mariadb/aio/operations/_location_based_recommended_action_sessions_operation_status_operations.py index ecdf27415255..b62f737c26b0 100644 --- a/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mariadb/aio/operations/_location_based_recommended_action_sessions_operation_status_operations.py +++ b/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mariadb/aio/operations/_location_based_recommended_action_sessions_operation_status_operations.py @@ -44,7 +44,7 @@ async def get( self, location_name: str, operation_id: str, - **kwargs + **kwargs: Any ) -> "_models.RecommendedActionSessionsOperationStatus": """Recommendation action session operation status. diff --git a/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mariadb/aio/operations/_location_based_recommended_action_sessions_result_operations.py b/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mariadb/aio/operations/_location_based_recommended_action_sessions_result_operations.py index 8b3ab71b5590..60ef8e8d8482 100644 --- a/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mariadb/aio/operations/_location_based_recommended_action_sessions_result_operations.py +++ b/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mariadb/aio/operations/_location_based_recommended_action_sessions_result_operations.py @@ -45,7 +45,7 @@ def list( self, location_name: str, operation_id: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.RecommendationActionsResultList"]: """Recommendation action session operation result. diff --git a/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mariadb/aio/operations/_log_files_operations.py b/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mariadb/aio/operations/_log_files_operations.py index 39f44a9e768d..b612b969d8eb 100644 --- a/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mariadb/aio/operations/_log_files_operations.py +++ b/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mariadb/aio/operations/_log_files_operations.py @@ -45,7 +45,7 @@ def list_by_server( self, resource_group_name: str, server_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.LogFileListResult"]: """List all the log files in a given server. diff --git a/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mariadb/aio/operations/_maria_db_management_client_operations.py b/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mariadb/aio/operations/_maria_db_management_client_operations.py index 2d3b99b523b1..c71be72d3132 100644 --- a/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mariadb/aio/operations/_maria_db_management_client_operations.py +++ b/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mariadb/aio/operations/_maria_db_management_client_operations.py @@ -26,7 +26,7 @@ async def reset_query_performance_insight_data( self, resource_group_name: str, server_name: str, - **kwargs + **kwargs: Any ) -> "_models.QueryPerformanceInsightResetDataResult": """Reset data for Query Performance Insight. @@ -86,7 +86,7 @@ async def _create_recommended_action_session_initial( server_name: str, advisor_name: str, database_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -132,7 +132,7 @@ async def begin_create_recommended_action_session( server_name: str, advisor_name: str, database_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Create recommendation action session for the advisor. @@ -146,8 +146,8 @@ async def begin_create_recommended_action_session( :type database_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: True for ARMPolling, False for no polling, or a - polling object for personal polling strategy + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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) diff --git a/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mariadb/aio/operations/_operations.py b/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mariadb/aio/operations/_operations.py index fc3837f14471..2fa75451c42f 100644 --- a/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mariadb/aio/operations/_operations.py +++ b/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mariadb/aio/operations/_operations.py @@ -42,7 +42,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: async def list( self, - **kwargs + **kwargs: Any ) -> "_models.OperationListResult": """Lists all of the available REST API operations. diff --git a/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mariadb/aio/operations/_private_endpoint_connections_operations.py b/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mariadb/aio/operations/_private_endpoint_connections_operations.py index d89fdbe5f841..269395b56784 100644 --- a/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mariadb/aio/operations/_private_endpoint_connections_operations.py +++ b/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mariadb/aio/operations/_private_endpoint_connections_operations.py @@ -48,7 +48,7 @@ async def get( resource_group_name: str, server_name: str, private_endpoint_connection_name: str, - **kwargs + **kwargs: Any ) -> "_models.PrivateEndpointConnection": """Gets a private endpoint connection. @@ -111,7 +111,7 @@ async def _create_or_update_initial( server_name: str, private_endpoint_connection_name: str, parameters: "_models.PrivateEndpointConnection", - **kwargs + **kwargs: Any ) -> Optional["_models.PrivateEndpointConnection"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.PrivateEndpointConnection"]] error_map = { @@ -168,7 +168,7 @@ async def begin_create_or_update( server_name: str, private_endpoint_connection_name: str, parameters: "_models.PrivateEndpointConnection", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.PrivateEndpointConnection"]: """Approve or reject a private endpoint connection with a given name. @@ -182,8 +182,8 @@ async def begin_create_or_update( :type parameters: ~azure.mgmt.rdbms.mariadb.models.PrivateEndpointConnection :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: True for ARMPolling, False for no polling, or a - polling object for personal polling strategy + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 PrivateEndpointConnection or the result of cls(response) @@ -243,7 +243,7 @@ async def _delete_initial( resource_group_name: str, server_name: str, private_endpoint_connection_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -289,7 +289,7 @@ async def begin_delete( resource_group_name: str, server_name: str, private_endpoint_connection_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Deletes a private endpoint connection with a given name. @@ -301,8 +301,8 @@ async def begin_delete( :type private_endpoint_connection_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: True for ARMPolling, False for no polling, or a - polling object for personal polling strategy + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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) @@ -359,7 +359,7 @@ async def _update_tags_initial( server_name: str, private_endpoint_connection_name: str, parameters: "_models.TagsObject", - **kwargs + **kwargs: Any ) -> "_models.PrivateEndpointConnection": cls = kwargs.pop('cls', None) # type: ClsType["_models.PrivateEndpointConnection"] error_map = { @@ -414,7 +414,7 @@ async def begin_update_tags( server_name: str, private_endpoint_connection_name: str, parameters: "_models.TagsObject", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.PrivateEndpointConnection"]: """Updates tags on private endpoint connection. @@ -431,8 +431,8 @@ async def begin_update_tags( :type parameters: ~azure.mgmt.rdbms.mariadb.models.TagsObject :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: True for ARMPolling, False for no polling, or a - polling object for personal polling strategy + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 PrivateEndpointConnection or the result of cls(response) @@ -491,7 +491,7 @@ def list_by_server( self, resource_group_name: str, server_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.PrivateEndpointConnectionListResult"]: """Gets all private endpoint connections on a server. diff --git a/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mariadb/aio/operations/_private_link_resources_operations.py b/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mariadb/aio/operations/_private_link_resources_operations.py index 9457e80ac678..8f770dab87a2 100644 --- a/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mariadb/aio/operations/_private_link_resources_operations.py +++ b/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mariadb/aio/operations/_private_link_resources_operations.py @@ -45,7 +45,7 @@ def list_by_server( self, resource_group_name: str, server_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.PrivateLinkResourceListResult"]: """Gets the private link resources for MariaDB server. @@ -120,7 +120,7 @@ async def get( resource_group_name: str, server_name: str, group_name: str, - **kwargs + **kwargs: Any ) -> "_models.PrivateLinkResource": """Gets a private link resource for MariaDB server. diff --git a/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mariadb/aio/operations/_query_texts_operations.py b/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mariadb/aio/operations/_query_texts_operations.py index 02f7c105c91e..b10f2d804c4a 100644 --- a/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mariadb/aio/operations/_query_texts_operations.py +++ b/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mariadb/aio/operations/_query_texts_operations.py @@ -46,7 +46,7 @@ async def get( resource_group_name: str, server_name: str, query_id: str, - **kwargs + **kwargs: Any ) -> "_models.QueryText": """Retrieve the Query-Store query texts for the queryId. @@ -108,7 +108,7 @@ def list_by_server( resource_group_name: str, server_name: str, query_ids: List[str], - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.QueryTextsResultList"]: """Retrieve the Query-Store query texts for specified queryIds. diff --git a/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mariadb/aio/operations/_recommended_actions_operations.py b/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mariadb/aio/operations/_recommended_actions_operations.py index 2a6cfb3f9f8e..5870001185a9 100644 --- a/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mariadb/aio/operations/_recommended_actions_operations.py +++ b/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mariadb/aio/operations/_recommended_actions_operations.py @@ -47,7 +47,7 @@ async def get( server_name: str, advisor_name: str, recommended_action_name: str, - **kwargs + **kwargs: Any ) -> "_models.RecommendationAction": """Retrieve recommended actions from the advisor. @@ -113,7 +113,7 @@ def list_by_server( server_name: str, advisor_name: str, session_id: Optional[str] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.RecommendationActionsResultList"]: """Retrieve recommended actions from the advisor. diff --git a/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mariadb/aio/operations/_recoverable_servers_operations.py b/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mariadb/aio/operations/_recoverable_servers_operations.py index 1fb5755fd096..182c81c5451c 100644 --- a/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mariadb/aio/operations/_recoverable_servers_operations.py +++ b/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mariadb/aio/operations/_recoverable_servers_operations.py @@ -44,7 +44,7 @@ async def get( self, resource_group_name: str, server_name: str, - **kwargs + **kwargs: Any ) -> "_models.RecoverableServerResource": """Gets a recoverable MariaDB Server. diff --git a/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mariadb/aio/operations/_replicas_operations.py b/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mariadb/aio/operations/_replicas_operations.py index f9d81b942732..dc96c75b1edf 100644 --- a/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mariadb/aio/operations/_replicas_operations.py +++ b/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mariadb/aio/operations/_replicas_operations.py @@ -45,7 +45,7 @@ def list_by_server( self, resource_group_name: str, server_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.ServerListResult"]: """List all the replicas for a given server. diff --git a/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mariadb/aio/operations/_server_based_performance_tier_operations.py b/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mariadb/aio/operations/_server_based_performance_tier_operations.py index 863c4ae41900..b12eff8e8071 100644 --- a/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mariadb/aio/operations/_server_based_performance_tier_operations.py +++ b/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mariadb/aio/operations/_server_based_performance_tier_operations.py @@ -45,7 +45,7 @@ def list( self, resource_group_name: str, server_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.PerformanceTierListResult"]: """List all the performance tiers for a MariaDB server. diff --git a/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mariadb/aio/operations/_server_parameters_operations.py b/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mariadb/aio/operations/_server_parameters_operations.py index e0a4937d7995..5dc184499de8 100644 --- a/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mariadb/aio/operations/_server_parameters_operations.py +++ b/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mariadb/aio/operations/_server_parameters_operations.py @@ -47,7 +47,7 @@ async def _list_update_configurations_initial( resource_group_name: str, server_name: str, value: "_models.ConfigurationListResult", - **kwargs + **kwargs: Any ) -> Optional["_models.ConfigurationListResult"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.ConfigurationListResult"]] error_map = { @@ -102,7 +102,7 @@ async def begin_list_update_configurations( resource_group_name: str, server_name: str, value: "_models.ConfigurationListResult", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.ConfigurationListResult"]: """Update a list of configurations in a given server. @@ -114,8 +114,8 @@ async def begin_list_update_configurations( :type value: ~azure.mgmt.rdbms.mariadb.models.ConfigurationListResult :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: True for ARMPolling, False for no polling, or a - polling object for personal polling strategy + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 ConfigurationListResult or the result of cls(response) diff --git a/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mariadb/aio/operations/_server_security_alert_policies_operations.py b/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mariadb/aio/operations/_server_security_alert_policies_operations.py index bfb9e1f20363..ad91d76675a7 100644 --- a/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mariadb/aio/operations/_server_security_alert_policies_operations.py +++ b/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mariadb/aio/operations/_server_security_alert_policies_operations.py @@ -5,9 +5,10 @@ # 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, Union +from typing import Any, AsyncIterable, Callable, Dict, Generic, Optional, TypeVar, Union 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 @@ -47,7 +48,7 @@ async def get( resource_group_name: str, server_name: str, security_alert_policy_name: Union[str, "_models.SecurityAlertPolicyName"], - **kwargs + **kwargs: Any ) -> "_models.ServerSecurityAlertPolicy": """Get a server's security alert policy. @@ -110,7 +111,7 @@ async def _create_or_update_initial( server_name: str, security_alert_policy_name: Union[str, "_models.SecurityAlertPolicyName"], parameters: "_models.ServerSecurityAlertPolicy", - **kwargs + **kwargs: Any ) -> Optional["_models.ServerSecurityAlertPolicy"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.ServerSecurityAlertPolicy"]] error_map = { @@ -167,7 +168,7 @@ async def begin_create_or_update( server_name: str, security_alert_policy_name: Union[str, "_models.SecurityAlertPolicyName"], parameters: "_models.ServerSecurityAlertPolicy", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.ServerSecurityAlertPolicy"]: """Creates or updates a threat detection policy. @@ -181,8 +182,8 @@ async def begin_create_or_update( :type parameters: ~azure.mgmt.rdbms.mariadb.models.ServerSecurityAlertPolicy :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: True for ARMPolling, False for no polling, or a - polling object for personal polling strategy + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 ServerSecurityAlertPolicy or the result of cls(response) @@ -236,3 +237,77 @@ 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.DBforMariaDB/servers/{serverName}/securityAlertPolicies/{securityAlertPolicyName}'} # type: ignore + + def list_by_server( + self, + resource_group_name: str, + server_name: str, + **kwargs: Any + ) -> AsyncIterable["_models.ServerSecurityAlertPolicyListResult"]: + """Get the server's threat detection policies. + + :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 ServerSecurityAlertPolicyListResult or the result of cls(response) + :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.rdbms.mariadb.models.ServerSecurityAlertPolicyListResult] + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.ServerSecurityAlertPolicyListResult"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2018-06-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 = { + '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'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), + } + 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('ServerSecurityAlertPolicyListResult', 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.DBforMariaDB/servers/{serverName}/securityAlertPolicies'} # type: ignore diff --git a/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mariadb/aio/operations/_servers_operations.py b/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mariadb/aio/operations/_servers_operations.py index 69f60469e1fb..b3371f81fee2 100644 --- a/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mariadb/aio/operations/_servers_operations.py +++ b/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mariadb/aio/operations/_servers_operations.py @@ -48,7 +48,7 @@ async def _create_initial( resource_group_name: str, server_name: str, parameters: "_models.ServerForCreate", - **kwargs + **kwargs: Any ) -> Optional["_models.Server"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.Server"]] error_map = { @@ -106,7 +106,7 @@ async def begin_create( resource_group_name: str, server_name: str, parameters: "_models.ServerForCreate", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.Server"]: """Creates a new server or updates an existing server. The update action will overwrite the existing server. @@ -119,8 +119,8 @@ async def begin_create( :type parameters: ~azure.mgmt.rdbms.mariadb.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: True for ARMPolling, False for no polling, or a - polling object for personal polling strategy + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 Server or the result of cls(response) @@ -178,7 +178,7 @@ async def _update_initial( resource_group_name: str, server_name: str, parameters: "_models.ServerUpdateParameters", - **kwargs + **kwargs: Any ) -> Optional["_models.Server"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.Server"]] error_map = { @@ -233,7 +233,7 @@ async def begin_update( resource_group_name: str, server_name: str, parameters: "_models.ServerUpdateParameters", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.Server"]: """Updates an existing server. The request body can contain one to many of the properties present in the normal server definition. @@ -246,8 +246,8 @@ async def begin_update( :type parameters: ~azure.mgmt.rdbms.mariadb.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: True for ARMPolling, False for no polling, or a - polling object for personal polling strategy + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 Server or the result of cls(response) @@ -304,7 +304,7 @@ async def _delete_initial( self, resource_group_name: str, server_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -348,7 +348,7 @@ async def begin_delete( self, resource_group_name: str, server_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Deletes a server. @@ -358,8 +358,8 @@ async def begin_delete( :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: True for ARMPolling, False for no polling, or a - polling object for personal polling strategy + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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) @@ -412,7 +412,7 @@ async def get( self, resource_group_name: str, server_name: str, - **kwargs + **kwargs: Any ) -> "_models.Server": """Gets information about a server. @@ -469,7 +469,7 @@ async def get( def list_by_resource_group( self, resource_group_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.ServerListResult"]: """List all the servers in a given resource group. @@ -538,7 +538,7 @@ async def get_next(next_link=None): def list( self, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.ServerListResult"]: """List all the servers in a given subscription. @@ -606,7 +606,7 @@ async def _restart_initial( self, resource_group_name: str, server_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -650,7 +650,7 @@ async def begin_restart( self, resource_group_name: str, server_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Restarts a server. @@ -660,8 +660,8 @@ async def begin_restart( :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: True for ARMPolling, False for no polling, or a - polling object for personal polling strategy + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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) @@ -714,7 +714,7 @@ async def _start_initial( self, resource_group_name: str, server_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -747,7 +747,7 @@ async def _start_initial( if response.status_code not in [200, 202]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(_models.CloudErrorAutoGenerated, response) + error = self._deserialize.failsafe_deserialize(_models.CloudErrorAutoGenerated, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) if cls: @@ -759,7 +759,7 @@ async def begin_start( self, resource_group_name: str, server_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Starts a stopped server. @@ -769,8 +769,8 @@ async def begin_start( :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: True for ARMPolling, False for no polling, or a - polling object for personal polling strategy + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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) @@ -823,7 +823,7 @@ async def _stop_initial( self, resource_group_name: str, server_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -856,7 +856,7 @@ async def _stop_initial( if response.status_code not in [200, 202]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(_models.CloudErrorAutoGenerated, response) + error = self._deserialize.failsafe_deserialize(_models.CloudErrorAutoGenerated, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) if cls: @@ -868,7 +868,7 @@ async def begin_stop( self, resource_group_name: str, server_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Stops a running server. @@ -878,8 +878,8 @@ async def begin_stop( :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: True for ARMPolling, False for no polling, or a - polling object for personal polling strategy + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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) diff --git a/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mariadb/aio/operations/_top_query_statistics_operations.py b/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mariadb/aio/operations/_top_query_statistics_operations.py index 7c67b5a302a4..112b66cd0f3d 100644 --- a/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mariadb/aio/operations/_top_query_statistics_operations.py +++ b/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mariadb/aio/operations/_top_query_statistics_operations.py @@ -46,7 +46,7 @@ async def get( resource_group_name: str, server_name: str, query_statistic_id: str, - **kwargs + **kwargs: Any ) -> "_models.QueryStatistic": """Retrieve the query statistic for specified identifier. @@ -108,7 +108,7 @@ def list_by_server( resource_group_name: str, server_name: str, parameters: "_models.TopQueryStatisticsInput", - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.TopQueryStatisticsResultList"]: """Retrieve the Query-Store top queries for specified metric and aggregation. diff --git a/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mariadb/aio/operations/_virtual_network_rules_operations.py b/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mariadb/aio/operations/_virtual_network_rules_operations.py index f930458d539b..1ad782eef698 100644 --- a/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mariadb/aio/operations/_virtual_network_rules_operations.py +++ b/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mariadb/aio/operations/_virtual_network_rules_operations.py @@ -48,7 +48,7 @@ async def get( resource_group_name: str, server_name: str, virtual_network_rule_name: str, - **kwargs + **kwargs: Any ) -> "_models.VirtualNetworkRule": """Gets a virtual network rule. @@ -111,7 +111,7 @@ async def _create_or_update_initial( server_name: str, virtual_network_rule_name: str, parameters: "_models.VirtualNetworkRule", - **kwargs + **kwargs: Any ) -> Optional["_models.VirtualNetworkRule"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.VirtualNetworkRule"]] error_map = { @@ -171,7 +171,7 @@ async def begin_create_or_update( server_name: str, virtual_network_rule_name: str, parameters: "_models.VirtualNetworkRule", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.VirtualNetworkRule"]: """Creates or updates an existing virtual network rule. @@ -185,8 +185,8 @@ async def begin_create_or_update( :type parameters: ~azure.mgmt.rdbms.mariadb.models.VirtualNetworkRule :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: True for ARMPolling, False for no polling, or a - polling object for personal polling strategy + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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 VirtualNetworkRule or the result of cls(response) @@ -246,7 +246,7 @@ async def _delete_initial( resource_group_name: str, server_name: str, virtual_network_rule_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { @@ -290,7 +290,7 @@ async def begin_delete( resource_group_name: str, server_name: str, virtual_network_rule_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Deletes the virtual network rule with the given name. @@ -302,8 +302,8 @@ async def begin_delete( :type virtual_network_rule_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: True for ARMPolling, False for no polling, or a - polling object for personal polling strategy + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in 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) @@ -358,7 +358,7 @@ def list_by_server( self, resource_group_name: str, server_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.VirtualNetworkRuleListResult"]: """Gets a list of virtual network rules in a server. diff --git a/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mariadb/aio/operations/_wait_statistics_operations.py b/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mariadb/aio/operations/_wait_statistics_operations.py index aea27c85500e..5d0053ac17de 100644 --- a/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mariadb/aio/operations/_wait_statistics_operations.py +++ b/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mariadb/aio/operations/_wait_statistics_operations.py @@ -46,7 +46,7 @@ async def get( resource_group_name: str, server_name: str, wait_statistics_id: str, - **kwargs + **kwargs: Any ) -> "_models.WaitStatistic": """Retrieve wait statistics for specified identifier. @@ -108,7 +108,7 @@ def list_by_server( resource_group_name: str, server_name: str, parameters: "_models.WaitStatisticsInput", - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.WaitStatisticsResultList"]: """Retrieve wait statistics for specified aggregation window. diff --git a/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mariadb/models/__init__.py b/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mariadb/models/__init__.py index 97fd21465cac..3b9745dc5250 100644 --- a/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mariadb/models/__init__.py +++ b/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mariadb/models/__init__.py @@ -57,6 +57,7 @@ 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 StorageProfile @@ -120,6 +121,7 @@ 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 StorageProfile # type: ignore @@ -136,6 +138,7 @@ from ._maria_db_management_client_enums import ( CreateMode, GeoRedundantBackup, + MinimalTlsVersionEnum, OperationOrigin, PrivateEndpointProvisioningState, PrivateLinkServiceConnectionStateActionsRequire, @@ -203,6 +206,7 @@ 'ServerPropertiesForReplica', 'ServerPropertiesForRestore', 'ServerSecurityAlertPolicy', + 'ServerSecurityAlertPolicyListResult', 'ServerUpdateParameters', 'Sku', 'StorageProfile', @@ -217,6 +221,7 @@ 'WaitStatisticsResultList', 'CreateMode', 'GeoRedundantBackup', + 'MinimalTlsVersionEnum', 'OperationOrigin', 'PrivateEndpointProvisioningState', 'PrivateLinkServiceConnectionStateActionsRequire', diff --git a/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mariadb/models/_maria_db_management_client_enums.py b/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mariadb/models/_maria_db_management_client_enums.py index c39df09b0bc1..1328b53abf2d 100644 --- a/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mariadb/models/_maria_db_management_client_enums.py +++ b/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mariadb/models/_maria_db_management_client_enums.py @@ -42,6 +42,15 @@ class GeoRedundantBackup(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): ENABLED = "Enabled" 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. """ @@ -113,8 +122,8 @@ class ServerVersion(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): """The version of a server. """ - FIVE6 = "5.6" - FIVE7 = "5.7" + TEN2 = "10.2" + TEN3 = "10.3" class SkuTier(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): """The tier of the particular SKU, e.g. Basic. diff --git a/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mariadb/models/_models.py b/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mariadb/models/_models.py index 63b4475667cd..d4f7142fc7a8 100644 --- a/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mariadb/models/_models.py +++ b/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mariadb/models/_models.py @@ -47,7 +47,41 @@ def __init__( self.type = None -class Advisor(Resource): +class ProxyResource(Resource): + """The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location. + + 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 + """ + + _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'}, + } + + def __init__( + self, + **kwargs + ): + super(ProxyResource, self).__init__(**kwargs) + + +class Advisor(ProxyResource): """Represents a recommendation action advisor. Variables are only populated by the server, and will be ignored when sending a request. @@ -61,7 +95,7 @@ class Advisor(Resource): "Microsoft.Storage/storageAccounts". :vartype type: str :param properties: The properties of a recommendation action advisor. - :type properties: object + :type properties: any """ _validation = { @@ -134,7 +168,7 @@ def __init__( self.error = kwargs.get('error', None) -class Configuration(Resource): +class Configuration(ProxyResource): """Represents a Configuration. Variables are only populated by the server, and will be ignored when sending a request. @@ -215,7 +249,7 @@ def __init__( self.value = kwargs.get('value', None) -class Database(Resource): +class Database(ProxyResource): """Represents a Database. Variables are only populated by the server, and will be ignored when sending a request. @@ -284,7 +318,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: any """ _validation = { @@ -351,7 +385,7 @@ def __init__( self.additional_info = None -class FirewallRule(Resource): +class FirewallRule(ProxyResource): """Represents a server firewall rule. Variables are only populated by the server, and will be ignored when sending a request. @@ -418,7 +452,7 @@ def __init__( self.value = kwargs.get('value', None) -class LogFile(Resource): +class LogFile(ProxyResource): """Represents a log file. Variables are only populated by the server, and will be ignored when sending a request. @@ -563,7 +597,7 @@ class Operation(msrest.serialization.Model): "user", "system". :vartype origin: str or ~azure.mgmt.rdbms.mariadb.models.OperationOrigin :ivar properties: Additional descriptions for the operation. - :vartype properties: dict[str, object] + :vartype properties: dict[str, any] """ _validation = { @@ -768,7 +802,7 @@ def __init__( self.min_storage_mb = kwargs.get('min_storage_mb', None) -class PrivateEndpointConnection(Resource): +class PrivateEndpointConnection(ProxyResource): """A private endpoint connection. Variables are only populated by the server, and will be ignored when sending a request. @@ -866,7 +900,7 @@ def __init__( self.id = kwargs.get('id', None) -class PrivateLinkResource(Resource): +class PrivateLinkResource(ProxyResource): """A private link resource. Variables are only populated by the server, and will be ignored when sending a request. @@ -1002,40 +1036,6 @@ def __init__( self.actions_required = None -class ProxyResource(Resource): - """The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location. - - 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 - """ - - _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'}, - } - - def __init__( - self, - **kwargs - ): - super(ProxyResource, self).__init__(**kwargs) - - class QueryPerformanceInsightResetDataResult(msrest.serialization.Model): """Result of Query Performance Insight data reset. @@ -1061,7 +1061,7 @@ def __init__( self.message = kwargs.get('message', None) -class QueryStatistic(Resource): +class QueryStatistic(ProxyResource): """Represents a Query Statistic. Variables are only populated by the server, and will be ignored when sending a request. @@ -1135,7 +1135,7 @@ def __init__( self.metric_value_unit = kwargs.get('metric_value_unit', None) -class QueryText(Resource): +class QueryText(ProxyResource): """Represents a Query Text. Variables are only populated by the server, and will be ignored when sending a request. @@ -1207,7 +1207,7 @@ def __init__( self.next_link = None -class RecommendationAction(Resource): +class RecommendationAction(ProxyResource): """Represents a Recommendation Action. Variables are only populated by the server, and will be ignored when sending a request. @@ -1330,7 +1330,7 @@ def __init__( self.status = kwargs.get('status', None) -class RecoverableServerResource(Resource): +class RecoverableServerResource(ProxyResource): """A recoverable server resource. Variables are only populated by the server, and will be ignored when sending a request. @@ -1463,11 +1463,14 @@ class Server(TrackedResource): :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: "5.6", "5.7". + :param version: Server version. Possible values include: "10.2", "10.3". :type version: str or ~azure.mgmt.rdbms.mariadb.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.mariadb.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.mariadb.models.MinimalTlsVersionEnum :param user_visible_state: A state of a server that is visible to user. Possible values include: "Ready", "Dropping", "Disabled". :type user_visible_state: str or ~azure.mgmt.rdbms.mariadb.models.ServerState @@ -1511,6 +1514,7 @@ class Server(TrackedResource): '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'}, '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'}, @@ -1531,6 +1535,7 @@ def __init__( 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.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) @@ -1714,11 +1719,14 @@ class ServerPropertiesForCreate(msrest.serialization.Model): All required parameters must be populated in order to send to Azure. - :param version: Server version. Possible values include: "5.6", "5.7". + :param version: Server version. Possible values include: "10.2", "10.3". :type version: str or ~azure.mgmt.rdbms.mariadb.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.mariadb.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.mariadb.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". @@ -1737,6 +1745,7 @@ class ServerPropertiesForCreate(msrest.serialization.Model): _attribute_map = { 'version': {'key': 'version', 'type': 'str'}, 'ssl_enforcement': {'key': 'sslEnforcement', 'type': 'str'}, + 'minimal_tls_version': {'key': 'minimalTlsVersion', 'type': 'str'}, 'public_network_access': {'key': 'publicNetworkAccess', 'type': 'str'}, 'storage_profile': {'key': 'storageProfile', 'type': 'StorageProfile'}, 'create_mode': {'key': 'createMode', 'type': 'str'}, @@ -1753,6 +1762,7 @@ def __init__( 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.public_network_access = kwargs.get('public_network_access', None) self.storage_profile = kwargs.get('storage_profile', None) self.create_mode = None # type: Optional[str] @@ -1763,11 +1773,14 @@ class ServerPropertiesForDefaultCreate(ServerPropertiesForCreate): All required parameters must be populated in order to send to Azure. - :param version: Server version. Possible values include: "5.6", "5.7". + :param version: Server version. Possible values include: "10.2", "10.3". :type version: str or ~azure.mgmt.rdbms.mariadb.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.mariadb.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.mariadb.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". @@ -1793,6 +1806,7 @@ class ServerPropertiesForDefaultCreate(ServerPropertiesForCreate): _attribute_map = { 'version': {'key': 'version', 'type': 'str'}, 'ssl_enforcement': {'key': 'sslEnforcement', 'type': 'str'}, + 'minimal_tls_version': {'key': 'minimalTlsVersion', 'type': 'str'}, 'public_network_access': {'key': 'publicNetworkAccess', 'type': 'str'}, 'storage_profile': {'key': 'storageProfile', 'type': 'StorageProfile'}, 'create_mode': {'key': 'createMode', 'type': 'str'}, @@ -1815,11 +1829,14 @@ class ServerPropertiesForGeoRestore(ServerPropertiesForCreate): All required parameters must be populated in order to send to Azure. - :param version: Server version. Possible values include: "5.6", "5.7". + :param version: Server version. Possible values include: "10.2", "10.3". :type version: str or ~azure.mgmt.rdbms.mariadb.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.mariadb.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.mariadb.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". @@ -1841,6 +1858,7 @@ class ServerPropertiesForGeoRestore(ServerPropertiesForCreate): _attribute_map = { 'version': {'key': 'version', 'type': 'str'}, 'ssl_enforcement': {'key': 'sslEnforcement', 'type': 'str'}, + 'minimal_tls_version': {'key': 'minimalTlsVersion', 'type': 'str'}, 'public_network_access': {'key': 'publicNetworkAccess', 'type': 'str'}, 'storage_profile': {'key': 'storageProfile', 'type': 'StorageProfile'}, 'create_mode': {'key': 'createMode', 'type': 'str'}, @@ -1861,11 +1879,14 @@ class ServerPropertiesForReplica(ServerPropertiesForCreate): All required parameters must be populated in order to send to Azure. - :param version: Server version. Possible values include: "5.6", "5.7". + :param version: Server version. Possible values include: "10.2", "10.3". :type version: str or ~azure.mgmt.rdbms.mariadb.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.mariadb.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.mariadb.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". @@ -1887,6 +1908,7 @@ class ServerPropertiesForReplica(ServerPropertiesForCreate): _attribute_map = { 'version': {'key': 'version', 'type': 'str'}, 'ssl_enforcement': {'key': 'sslEnforcement', 'type': 'str'}, + 'minimal_tls_version': {'key': 'minimalTlsVersion', 'type': 'str'}, 'public_network_access': {'key': 'publicNetworkAccess', 'type': 'str'}, 'storage_profile': {'key': 'storageProfile', 'type': 'StorageProfile'}, 'create_mode': {'key': 'createMode', 'type': 'str'}, @@ -1907,11 +1929,14 @@ class ServerPropertiesForRestore(ServerPropertiesForCreate): All required parameters must be populated in order to send to Azure. - :param version: Server version. Possible values include: "5.6", "5.7". + :param version: Server version. Possible values include: "10.2", "10.3". :type version: str or ~azure.mgmt.rdbms.mariadb.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.mariadb.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.mariadb.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". @@ -1937,6 +1962,7 @@ class ServerPropertiesForRestore(ServerPropertiesForCreate): _attribute_map = { 'version': {'key': 'version', 'type': 'str'}, 'ssl_enforcement': {'key': 'sslEnforcement', 'type': 'str'}, + 'minimal_tls_version': {'key': 'minimalTlsVersion', 'type': 'str'}, 'public_network_access': {'key': 'publicNetworkAccess', 'type': 'str'}, 'storage_profile': {'key': 'storageProfile', 'type': 'StorageProfile'}, 'create_mode': {'key': 'createMode', 'type': 'str'}, @@ -1954,7 +1980,7 @@ def __init__( self.restore_point_in_time = kwargs['restore_point_in_time'] -class ServerSecurityAlertPolicy(Resource): +class ServerSecurityAlertPolicy(ProxyResource): """A server security alert policy. Variables are only populated by the server, and will be ignored when sending a request. @@ -2021,6 +2047,36 @@ def __init__( 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.mariadb.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. @@ -2032,11 +2088,14 @@ class ServerUpdateParameters(msrest.serialization.Model): :type storage_profile: ~azure.mgmt.rdbms.mariadb.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: "5.6", "5.7". + :param version: The version of a server. Possible values include: "10.2", "10.3". :type version: str or ~azure.mgmt.rdbms.mariadb.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.mariadb.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.mariadb.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". @@ -2052,6 +2111,7 @@ class ServerUpdateParameters(msrest.serialization.Model): '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'}, } @@ -2067,6 +2127,7 @@ def __init__( 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) @@ -2247,7 +2308,7 @@ def __init__( self.next_link = None -class VirtualNetworkRule(Resource): +class VirtualNetworkRule(ProxyResource): """A virtual network rule. Variables are only populated by the server, and will be ignored when sending a request. @@ -2326,7 +2387,7 @@ def __init__( self.next_link = None -class WaitStatistic(Resource): +class WaitStatistic(ProxyResource): """Represents a Wait Statistic. Variables are only populated by the server, and will be ignored when sending a request. diff --git a/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mariadb/models/_models_py3.py b/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mariadb/models/_models_py3.py index 750eecbf360a..0c8578f6d31c 100644 --- a/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mariadb/models/_models_py3.py +++ b/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mariadb/models/_models_py3.py @@ -7,7 +7,7 @@ # -------------------------------------------------------------------------- import datetime -from typing import Dict, List, Optional, Union +from typing import Any, Dict, List, Optional, Union from azure.core.exceptions import HttpResponseError import msrest.serialization @@ -52,7 +52,41 @@ def __init__( self.type = None -class Advisor(Resource): +class ProxyResource(Resource): + """The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location. + + 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 + """ + + _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'}, + } + + def __init__( + self, + **kwargs + ): + super(ProxyResource, self).__init__(**kwargs) + + +class Advisor(ProxyResource): """Represents a recommendation action advisor. Variables are only populated by the server, and will be ignored when sending a request. @@ -66,7 +100,7 @@ class Advisor(Resource): "Microsoft.Storage/storageAccounts". :vartype type: str :param properties: The properties of a recommendation action advisor. - :type properties: object + :type properties: any """ _validation = { @@ -85,7 +119,7 @@ class Advisor(Resource): def __init__( self, *, - properties: Optional[object] = None, + properties: Optional[Any] = None, **kwargs ): super(Advisor, self).__init__(**kwargs) @@ -143,7 +177,7 @@ def __init__( self.error = error -class Configuration(Resource): +class Configuration(ProxyResource): """Represents a Configuration. Variables are only populated by the server, and will be ignored when sending a request. @@ -229,7 +263,7 @@ def __init__( self.value = value -class Database(Resource): +class Database(ProxyResource): """Represents a Database. Variables are only populated by the server, and will be ignored when sending a request. @@ -303,7 +337,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: any """ _validation = { @@ -370,7 +404,7 @@ def __init__( self.additional_info = None -class FirewallRule(Resource): +class FirewallRule(ProxyResource): """Represents a server firewall rule. Variables are only populated by the server, and will be ignored when sending a request. @@ -442,7 +476,7 @@ def __init__( self.value = value -class LogFile(Resource): +class LogFile(ProxyResource): """Represents a log file. Variables are only populated by the server, and will be ignored when sending a request. @@ -599,7 +633,7 @@ class Operation(msrest.serialization.Model): "user", "system". :vartype origin: str or ~azure.mgmt.rdbms.mariadb.models.OperationOrigin :ivar properties: Additional descriptions for the operation. - :vartype properties: dict[str, object] + :vartype properties: dict[str, any] """ _validation = { @@ -826,7 +860,7 @@ def __init__( self.min_storage_mb = min_storage_mb -class PrivateEndpointConnection(Resource): +class PrivateEndpointConnection(ProxyResource): """A private endpoint connection. Variables are only populated by the server, and will be ignored when sending a request. @@ -929,7 +963,7 @@ def __init__( self.id = id -class PrivateLinkResource(Resource): +class PrivateLinkResource(ProxyResource): """A private link resource. Variables are only populated by the server, and will be ignored when sending a request. @@ -1068,40 +1102,6 @@ def __init__( self.actions_required = None -class ProxyResource(Resource): - """The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location. - - 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 - """ - - _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'}, - } - - def __init__( - self, - **kwargs - ): - super(ProxyResource, self).__init__(**kwargs) - - class QueryPerformanceInsightResetDataResult(msrest.serialization.Model): """Result of Query Performance Insight data reset. @@ -1130,7 +1130,7 @@ def __init__( self.message = message -class QueryStatistic(Resource): +class QueryStatistic(ProxyResource): """Represents a Query Statistic. Variables are only populated by the server, and will be ignored when sending a request. @@ -1215,7 +1215,7 @@ def __init__( self.metric_value_unit = metric_value_unit -class QueryText(Resource): +class QueryText(ProxyResource): """Represents a Query Text. Variables are only populated by the server, and will be ignored when sending a request. @@ -1290,7 +1290,7 @@ def __init__( self.next_link = None -class RecommendationAction(Resource): +class RecommendationAction(ProxyResource): """Represents a Recommendation Action. Variables are only populated by the server, and will be ignored when sending a request. @@ -1426,7 +1426,7 @@ def __init__( self.status = status -class RecoverableServerResource(Resource): +class RecoverableServerResource(ProxyResource): """A recoverable server resource. Variables are only populated by the server, and will be ignored when sending a request. @@ -1562,11 +1562,14 @@ class Server(TrackedResource): :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: "5.6", "5.7". + :param version: Server version. Possible values include: "10.2", "10.3". :type version: str or ~azure.mgmt.rdbms.mariadb.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.mariadb.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.mariadb.models.MinimalTlsVersionEnum :param user_visible_state: A state of a server that is visible to user. Possible values include: "Ready", "Dropping", "Disabled". :type user_visible_state: str or ~azure.mgmt.rdbms.mariadb.models.ServerState @@ -1610,6 +1613,7 @@ class Server(TrackedResource): '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'}, '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'}, @@ -1630,6 +1634,7 @@ def __init__( 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, user_visible_state: Optional[Union[str, "ServerState"]] = None, fully_qualified_domain_name: Optional[str] = None, earliest_restore_date: Optional[datetime.datetime] = None, @@ -1645,6 +1650,7 @@ def __init__( self.administrator_login = administrator_login self.version = version self.ssl_enforcement = ssl_enforcement + self.minimal_tls_version = minimal_tls_version self.user_visible_state = user_visible_state self.fully_qualified_domain_name = fully_qualified_domain_name self.earliest_restore_date = earliest_restore_date @@ -1841,11 +1847,14 @@ class ServerPropertiesForCreate(msrest.serialization.Model): All required parameters must be populated in order to send to Azure. - :param version: Server version. Possible values include: "5.6", "5.7". + :param version: Server version. Possible values include: "10.2", "10.3". :type version: str or ~azure.mgmt.rdbms.mariadb.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.mariadb.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.mariadb.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". @@ -1864,6 +1873,7 @@ class ServerPropertiesForCreate(msrest.serialization.Model): _attribute_map = { 'version': {'key': 'version', 'type': 'str'}, 'ssl_enforcement': {'key': 'sslEnforcement', 'type': 'str'}, + 'minimal_tls_version': {'key': 'minimalTlsVersion', 'type': 'str'}, 'public_network_access': {'key': 'publicNetworkAccess', 'type': 'str'}, 'storage_profile': {'key': 'storageProfile', 'type': 'StorageProfile'}, 'create_mode': {'key': 'createMode', 'type': 'str'}, @@ -1878,6 +1888,7 @@ def __init__( *, 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, storage_profile: Optional["StorageProfile"] = None, **kwargs @@ -1885,6 +1896,7 @@ def __init__( super(ServerPropertiesForCreate, self).__init__(**kwargs) self.version = version self.ssl_enforcement = ssl_enforcement + self.minimal_tls_version = minimal_tls_version self.public_network_access = public_network_access self.storage_profile = storage_profile self.create_mode = None # type: Optional[str] @@ -1895,11 +1907,14 @@ class ServerPropertiesForDefaultCreate(ServerPropertiesForCreate): All required parameters must be populated in order to send to Azure. - :param version: Server version. Possible values include: "5.6", "5.7". + :param version: Server version. Possible values include: "10.2", "10.3". :type version: str or ~azure.mgmt.rdbms.mariadb.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.mariadb.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.mariadb.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". @@ -1925,6 +1940,7 @@ class ServerPropertiesForDefaultCreate(ServerPropertiesForCreate): _attribute_map = { 'version': {'key': 'version', 'type': 'str'}, 'ssl_enforcement': {'key': 'sslEnforcement', 'type': 'str'}, + 'minimal_tls_version': {'key': 'minimalTlsVersion', 'type': 'str'}, 'public_network_access': {'key': 'publicNetworkAccess', 'type': 'str'}, 'storage_profile': {'key': 'storageProfile', 'type': 'StorageProfile'}, 'create_mode': {'key': 'createMode', 'type': 'str'}, @@ -1939,11 +1955,12 @@ def __init__( 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, public_network_access: Optional[Union[str, "PublicNetworkAccessEnum"]] = None, storage_profile: Optional["StorageProfile"] = None, **kwargs ): - super(ServerPropertiesForDefaultCreate, self).__init__(version=version, ssl_enforcement=ssl_enforcement, public_network_access=public_network_access, storage_profile=storage_profile, **kwargs) + super(ServerPropertiesForDefaultCreate, self).__init__(version=version, ssl_enforcement=ssl_enforcement, minimal_tls_version=minimal_tls_version, 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 @@ -1954,11 +1971,14 @@ class ServerPropertiesForGeoRestore(ServerPropertiesForCreate): All required parameters must be populated in order to send to Azure. - :param version: Server version. Possible values include: "5.6", "5.7". + :param version: Server version. Possible values include: "10.2", "10.3". :type version: str or ~azure.mgmt.rdbms.mariadb.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.mariadb.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.mariadb.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". @@ -1980,6 +2000,7 @@ class ServerPropertiesForGeoRestore(ServerPropertiesForCreate): _attribute_map = { 'version': {'key': 'version', 'type': 'str'}, 'ssl_enforcement': {'key': 'sslEnforcement', 'type': 'str'}, + 'minimal_tls_version': {'key': 'minimalTlsVersion', 'type': 'str'}, 'public_network_access': {'key': 'publicNetworkAccess', 'type': 'str'}, 'storage_profile': {'key': 'storageProfile', 'type': 'StorageProfile'}, 'create_mode': {'key': 'createMode', 'type': 'str'}, @@ -1992,11 +2013,12 @@ def __init__( 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, public_network_access: Optional[Union[str, "PublicNetworkAccessEnum"]] = None, storage_profile: Optional["StorageProfile"] = None, **kwargs ): - super(ServerPropertiesForGeoRestore, self).__init__(version=version, ssl_enforcement=ssl_enforcement, public_network_access=public_network_access, storage_profile=storage_profile, **kwargs) + super(ServerPropertiesForGeoRestore, self).__init__(version=version, ssl_enforcement=ssl_enforcement, minimal_tls_version=minimal_tls_version, public_network_access=public_network_access, storage_profile=storage_profile, **kwargs) self.create_mode = 'GeoRestore' # type: str self.source_server_id = source_server_id @@ -2006,11 +2028,14 @@ class ServerPropertiesForReplica(ServerPropertiesForCreate): All required parameters must be populated in order to send to Azure. - :param version: Server version. Possible values include: "5.6", "5.7". + :param version: Server version. Possible values include: "10.2", "10.3". :type version: str or ~azure.mgmt.rdbms.mariadb.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.mariadb.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.mariadb.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". @@ -2032,6 +2057,7 @@ class ServerPropertiesForReplica(ServerPropertiesForCreate): _attribute_map = { 'version': {'key': 'version', 'type': 'str'}, 'ssl_enforcement': {'key': 'sslEnforcement', 'type': 'str'}, + 'minimal_tls_version': {'key': 'minimalTlsVersion', 'type': 'str'}, 'public_network_access': {'key': 'publicNetworkAccess', 'type': 'str'}, 'storage_profile': {'key': 'storageProfile', 'type': 'StorageProfile'}, 'create_mode': {'key': 'createMode', 'type': 'str'}, @@ -2044,11 +2070,12 @@ def __init__( 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, public_network_access: Optional[Union[str, "PublicNetworkAccessEnum"]] = None, storage_profile: Optional["StorageProfile"] = None, **kwargs ): - super(ServerPropertiesForReplica, self).__init__(version=version, ssl_enforcement=ssl_enforcement, public_network_access=public_network_access, storage_profile=storage_profile, **kwargs) + super(ServerPropertiesForReplica, self).__init__(version=version, ssl_enforcement=ssl_enforcement, minimal_tls_version=minimal_tls_version, public_network_access=public_network_access, storage_profile=storage_profile, **kwargs) self.create_mode = 'Replica' # type: str self.source_server_id = source_server_id @@ -2058,11 +2085,14 @@ class ServerPropertiesForRestore(ServerPropertiesForCreate): All required parameters must be populated in order to send to Azure. - :param version: Server version. Possible values include: "5.6", "5.7". + :param version: Server version. Possible values include: "10.2", "10.3". :type version: str or ~azure.mgmt.rdbms.mariadb.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.mariadb.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.mariadb.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". @@ -2088,6 +2118,7 @@ class ServerPropertiesForRestore(ServerPropertiesForCreate): _attribute_map = { 'version': {'key': 'version', 'type': 'str'}, 'ssl_enforcement': {'key': 'sslEnforcement', 'type': 'str'}, + 'minimal_tls_version': {'key': 'minimalTlsVersion', 'type': 'str'}, 'public_network_access': {'key': 'publicNetworkAccess', 'type': 'str'}, 'storage_profile': {'key': 'storageProfile', 'type': 'StorageProfile'}, 'create_mode': {'key': 'createMode', 'type': 'str'}, @@ -2102,17 +2133,18 @@ def __init__( 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, public_network_access: Optional[Union[str, "PublicNetworkAccessEnum"]] = None, storage_profile: Optional["StorageProfile"] = None, **kwargs ): - super(ServerPropertiesForRestore, self).__init__(version=version, ssl_enforcement=ssl_enforcement, public_network_access=public_network_access, storage_profile=storage_profile, **kwargs) + super(ServerPropertiesForRestore, self).__init__(version=version, ssl_enforcement=ssl_enforcement, minimal_tls_version=minimal_tls_version, 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 ServerSecurityAlertPolicy(Resource): +class ServerSecurityAlertPolicy(ProxyResource): """A server security alert policy. Variables are only populated by the server, and will be ignored when sending a request. @@ -2187,6 +2219,36 @@ def __init__( self.retention_days = retention_days +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.mariadb.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. @@ -2198,11 +2260,14 @@ class ServerUpdateParameters(msrest.serialization.Model): :type storage_profile: ~azure.mgmt.rdbms.mariadb.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: "5.6", "5.7". + :param version: The version of a server. Possible values include: "10.2", "10.3". :type version: str or ~azure.mgmt.rdbms.mariadb.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.mariadb.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.mariadb.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". @@ -2218,6 +2283,7 @@ class ServerUpdateParameters(msrest.serialization.Model): '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'}, } @@ -2231,6 +2297,7 @@ def __init__( 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 @@ -2242,6 +2309,7 @@ def __init__( 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 @@ -2442,7 +2510,7 @@ def __init__( self.next_link = None -class VirtualNetworkRule(Resource): +class VirtualNetworkRule(ProxyResource): """A virtual network rule. Variables are only populated by the server, and will be ignored when sending a request. @@ -2524,7 +2592,7 @@ def __init__( self.next_link = None -class WaitStatistic(Resource): +class WaitStatistic(ProxyResource): """Represents a Wait Statistic. Variables are only populated by the server, and will be ignored when sending a request. diff --git a/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mariadb/operations/_configurations_operations.py b/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mariadb/operations/_configurations_operations.py index 1deec716484a..3cc43d78c8f4 100644 --- a/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mariadb/operations/_configurations_operations.py +++ b/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mariadb/operations/_configurations_operations.py @@ -126,8 +126,8 @@ def begin_create_or_update( :type parameters: ~azure.mgmt.rdbms.mariadb.models.Configuration :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: True for ARMPolling, False for no polling, or a - polling object for personal polling strategy + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 Configuration or the result of cls(response) diff --git a/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mariadb/operations/_databases_operations.py b/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mariadb/operations/_databases_operations.py index bf1eecad5ffc..5e8a3ab66a01 100644 --- a/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mariadb/operations/_databases_operations.py +++ b/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mariadb/operations/_databases_operations.py @@ -129,8 +129,8 @@ def begin_create_or_update( :type parameters: ~azure.mgmt.rdbms.mariadb.models.Database :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: True for ARMPolling, False for no polling, or a - polling object for personal polling strategy + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 Database or the result of cls(response) @@ -250,8 +250,8 @@ def begin_delete( :type database_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: True for ARMPolling, False for no polling, or a - polling object for personal polling strategy + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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) diff --git a/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mariadb/operations/_firewall_rules_operations.py b/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mariadb/operations/_firewall_rules_operations.py index db9d9854f058..f621d66b4bdf 100644 --- a/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mariadb/operations/_firewall_rules_operations.py +++ b/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mariadb/operations/_firewall_rules_operations.py @@ -129,8 +129,8 @@ def begin_create_or_update( :type parameters: ~azure.mgmt.rdbms.mariadb.models.FirewallRule :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: True for ARMPolling, False for no polling, or a - polling object for personal polling strategy + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 FirewallRule or the result of cls(response) @@ -250,8 +250,8 @@ def begin_delete( :type firewall_rule_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: True for ARMPolling, False for no polling, or a - polling object for personal polling strategy + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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) diff --git a/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mariadb/operations/_maria_db_management_client_operations.py b/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mariadb/operations/_maria_db_management_client_operations.py index 7f538959c85e..b028f5b7d1ae 100644 --- a/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mariadb/operations/_maria_db_management_client_operations.py +++ b/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mariadb/operations/_maria_db_management_client_operations.py @@ -153,8 +153,8 @@ def begin_create_recommended_action_session( :type database_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: True for ARMPolling, False for no polling, or a - polling object for personal polling strategy + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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) diff --git a/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mariadb/operations/_private_endpoint_connections_operations.py b/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mariadb/operations/_private_endpoint_connections_operations.py index 1541d0718c8e..a9985f5e8097 100644 --- a/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mariadb/operations/_private_endpoint_connections_operations.py +++ b/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mariadb/operations/_private_endpoint_connections_operations.py @@ -189,8 +189,8 @@ def begin_create_or_update( :type parameters: ~azure.mgmt.rdbms.mariadb.models.PrivateEndpointConnection :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: True for ARMPolling, False for no polling, or a - polling object for personal polling strategy + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 PrivateEndpointConnection or the result of cls(response) @@ -310,8 +310,8 @@ def begin_delete( :type private_endpoint_connection_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: True for ARMPolling, False for no polling, or a - polling object for personal polling strategy + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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) @@ -442,8 +442,8 @@ def begin_update_tags( :type parameters: ~azure.mgmt.rdbms.mariadb.models.TagsObject :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: True for ARMPolling, False for no polling, or a - polling object for personal polling strategy + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 PrivateEndpointConnection or the result of cls(response) diff --git a/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mariadb/operations/_server_parameters_operations.py b/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mariadb/operations/_server_parameters_operations.py index c66b89aa5595..5929b5d5996a 100644 --- a/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mariadb/operations/_server_parameters_operations.py +++ b/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mariadb/operations/_server_parameters_operations.py @@ -120,8 +120,8 @@ def begin_list_update_configurations( :type value: ~azure.mgmt.rdbms.mariadb.models.ConfigurationListResult :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: True for ARMPolling, False for no polling, or a - polling object for personal polling strategy + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 ConfigurationListResult or the result of cls(response) diff --git a/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mariadb/operations/_server_security_alert_policies_operations.py b/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mariadb/operations/_server_security_alert_policies_operations.py index e4024d9760dd..47c0e2fd4176 100644 --- a/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mariadb/operations/_server_security_alert_policies_operations.py +++ b/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mariadb/operations/_server_security_alert_policies_operations.py @@ -9,6 +9,7 @@ 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.core.polling import LROPoller, NoPolling, PollingMethod @@ -19,7 +20,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports - from typing import Any, Callable, Dict, Generic, Optional, TypeVar, Union + from typing import Any, Callable, Dict, Generic, Iterable, Optional, TypeVar, Union T = TypeVar('T') ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] @@ -188,8 +189,8 @@ def begin_create_or_update( :type parameters: ~azure.mgmt.rdbms.mariadb.models.ServerSecurityAlertPolicy :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: True for ARMPolling, False for no polling, or a - polling object for personal polling strategy + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 ServerSecurityAlertPolicy or the result of cls(response) @@ -243,3 +244,78 @@ 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.DBforMariaDB/servers/{serverName}/securityAlertPolicies/{securityAlertPolicyName}'} # type: ignore + + def list_by_server( + self, + resource_group_name, # type: str + server_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> Iterable["_models.ServerSecurityAlertPolicyListResult"] + """Get the server's threat detection policies. + + :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 ServerSecurityAlertPolicyListResult or the result of cls(response) + :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.rdbms.mariadb.models.ServerSecurityAlertPolicyListResult] + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.ServerSecurityAlertPolicyListResult"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2018-06-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 = { + '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'), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1), + } + 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('ServerSecurityAlertPolicyListResult', 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.DBforMariaDB/servers/{serverName}/securityAlertPolicies'} # type: ignore diff --git a/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mariadb/operations/_servers_operations.py b/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mariadb/operations/_servers_operations.py index ca23ee7ddff8..966a5d6a3e62 100644 --- a/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mariadb/operations/_servers_operations.py +++ b/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mariadb/operations/_servers_operations.py @@ -125,8 +125,8 @@ def begin_create( :type parameters: ~azure.mgmt.rdbms.mariadb.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: True for ARMPolling, False for no polling, or a - polling object for personal polling strategy + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 Server or the result of cls(response) @@ -254,8 +254,8 @@ def begin_update( :type parameters: ~azure.mgmt.rdbms.mariadb.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: True for ARMPolling, False for no polling, or a - polling object for personal polling strategy + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 Server or the result of cls(response) @@ -368,8 +368,8 @@ def begin_delete( :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: True for ARMPolling, False for no polling, or a - polling object for personal polling strategy + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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) @@ -675,8 +675,8 @@ def begin_restart( :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: True for ARMPolling, False for no polling, or a - polling object for personal polling strategy + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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) @@ -763,7 +763,7 @@ def _start_initial( if response.status_code not in [200, 202]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(_models.CloudErrorAutoGenerated, response) + error = self._deserialize.failsafe_deserialize(_models.CloudErrorAutoGenerated, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) if cls: @@ -786,8 +786,8 @@ def begin_start( :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: True for ARMPolling, False for no polling, or a - polling object for personal polling strategy + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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) @@ -874,7 +874,7 @@ def _stop_initial( if response.status_code not in [200, 202]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(_models.CloudErrorAutoGenerated, response) + error = self._deserialize.failsafe_deserialize(_models.CloudErrorAutoGenerated, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) if cls: @@ -897,8 +897,8 @@ def begin_stop( :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: True for ARMPolling, False for no polling, or a - polling object for personal polling strategy + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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) diff --git a/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mariadb/operations/_virtual_network_rules_operations.py b/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mariadb/operations/_virtual_network_rules_operations.py index 86c1831df57e..78eac2a7cb56 100644 --- a/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mariadb/operations/_virtual_network_rules_operations.py +++ b/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mariadb/operations/_virtual_network_rules_operations.py @@ -192,8 +192,8 @@ def begin_create_or_update( :type parameters: ~azure.mgmt.rdbms.mariadb.models.VirtualNetworkRule :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: True for ARMPolling, False for no polling, or a - polling object for personal polling strategy + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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 VirtualNetworkRule or the result of cls(response) @@ -311,8 +311,8 @@ def begin_delete( :type virtual_network_rule_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: True for ARMPolling, False for no polling, or a - polling object for personal polling strategy + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in 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) 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 45a7b5ff7e38..920456322fa1 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.0b4" +VERSION = "8.1.0" 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 45a7b5ff7e38..920456322fa1 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.0b4" +VERSION = "8.1.0" 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 deleted file mode 100644 index cffcf785b2ec..000000000000 --- a/sdk/rdbms/azure-mgmt-rdbms/tests/recordings/test_cli_mgmt_mariadb.test_mariadb.yaml +++ /dev/null @@ -1,2697 +0,0 @@ -interactions: -- request: - body: '{"sku": {"name": "GP_Gen5_2", "tier": "GeneralPurpose", "capacity": 2, - "family": "Gen5"}, "properties": {"sslEnforcement": "Enabled", "storageProfile": - {"backupRetentionDays": 7, "geoRedundantBackup": "Enabled", "storageMB": 128000}, - "createMode": "Default", "administratorLogin": "cloudsa", "administratorLoginPassword": - "pass$w0rd"}, "location": "eastus", "tags": {"elastic_server": "1"}}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '390' - Content-Type: - - application/json - 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: PUT - 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-29T05:10:58.05Z"}' - headers: - azure-asyncoperation: - - 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: - - '73' - content-type: - - application/json; charset=utf-8 - date: - - 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/2b7e83eb-8014-4a15-af8c-ddb4d14ac148?api-version=2018-06-01 - 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: - - '1199' - status: - code: 202 - message: Accepted -- 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/2b7e83eb-8014-4a15-af8c-ddb4d14ac148?api-version=2018-06-01 - response: - body: - string: '{"name":"2b7e83eb-8014-4a15-af8c-ddb4d14ac148","status":"Succeeded","startTime":"2021-04-29T05:10:58.05Z"}' - headers: - cache-control: - - no-cache - content-length: - - '106' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 29 Apr 2021 05:11:58 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/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-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 - content-length: - - '981' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 29 Apr 2021 05:11:58 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: '{"properties": {"createMode": "Replica", "sourceServerId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_mariadb_test_mariadbf2c70db8/providers/Microsoft.DBforMariaDB/servers/testserver21827"}, - "location": "eastus"}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '256' - Content-Type: - - application/json - 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: PUT - 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-29T05:12:00.207Z"}' - headers: - azure-asyncoperation: - - 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: - - '88' - content-type: - - application/json; charset=utf-8 - date: - - 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/6a184df9-736b-4d72-9f7e-71f61f7c9578?api-version=2018-06-01 - 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: 202 - message: Accepted -- 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/6a184df9-736b-4d72-9f7e-71f61f7c9578?api-version=2018-06-01 - response: - body: - string: '{"name":"6a184df9-736b-4d72-9f7e-71f61f7c9578","status":"InProgress","startTime":"2021-04-29T05:12:00.207Z"}' - headers: - cache-control: - - no-cache - content-length: - - '108' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 29 Apr 2021 05:12:29 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/6a184df9-736b-4d72-9f7e-71f61f7c9578?api-version=2018-06-01 - response: - body: - string: '{"name":"6a184df9-736b-4d72-9f7e-71f61f7c9578","status":"InProgress","startTime":"2021-04-29T05:12:00.207Z"}' - headers: - cache-control: - - no-cache - content-length: - - '108' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 29 Apr 2021 05:13:00 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/6a184df9-736b-4d72-9f7e-71f61f7c9578?api-version=2018-06-01 - response: - body: - string: '{"name":"6a184df9-736b-4d72-9f7e-71f61f7c9578","status":"InProgress","startTime":"2021-04-29T05:12:00.207Z"}' - headers: - cache-control: - - no-cache - content-length: - - '108' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 29 Apr 2021 05:13:30 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/6a184df9-736b-4d72-9f7e-71f61f7c9578?api-version=2018-06-01 - response: - body: - string: '{"name":"6a184df9-736b-4d72-9f7e-71f61f7c9578","status":"InProgress","startTime":"2021-04-29T05:12:00.207Z"}' - headers: - cache-control: - - no-cache - content-length: - - '108' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 29 Apr 2021 05:13:59 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/6a184df9-736b-4d72-9f7e-71f61f7c9578?api-version=2018-06-01 - response: - body: - string: '{"name":"6a184df9-736b-4d72-9f7e-71f61f7c9578","status":"InProgress","startTime":"2021-04-29T05:12:00.207Z"}' - headers: - cache-control: - - no-cache - content-length: - - '108' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 29 Apr 2021 05:14:30 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/6a184df9-736b-4d72-9f7e-71f61f7c9578?api-version=2018-06-01 - response: - body: - string: '{"name":"6a184df9-736b-4d72-9f7e-71f61f7c9578","status":"InProgress","startTime":"2021-04-29T05:12:00.207Z"}' - headers: - cache-control: - - no-cache - content-length: - - '108' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 29 Apr 2021 05:14:59 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/6a184df9-736b-4d72-9f7e-71f61f7c9578?api-version=2018-06-01 - response: - body: - string: '{"name":"6a184df9-736b-4d72-9f7e-71f61f7c9578","status":"InProgress","startTime":"2021-04-29T05:12:00.207Z"}' - headers: - cache-control: - - no-cache - content-length: - - '108' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 29 Apr 2021 05:15:30 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/6a184df9-736b-4d72-9f7e-71f61f7c9578?api-version=2018-06-01 - response: - body: - string: '{"name":"6a184df9-736b-4d72-9f7e-71f61f7c9578","status":"InProgress","startTime":"2021-04-29T05:12:00.207Z"}' - headers: - cache-control: - - no-cache - content-length: - - '108' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 29 Apr 2021 05:16:00 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/6a184df9-736b-4d72-9f7e-71f61f7c9578?api-version=2018-06-01 - response: - body: - string: '{"name":"6a184df9-736b-4d72-9f7e-71f61f7c9578","status":"InProgress","startTime":"2021-04-29T05:12:00.207Z"}' - headers: - cache-control: - - no-cache - content-length: - - '108' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 29 Apr 2021 05:16:30 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/6a184df9-736b-4d72-9f7e-71f61f7c9578?api-version=2018-06-01 - response: - body: - string: '{"name":"6a184df9-736b-4d72-9f7e-71f61f7c9578","status":"InProgress","startTime":"2021-04-29T05:12:00.207Z"}' - headers: - cache-control: - - no-cache - content-length: - - '108' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 29 Apr 2021 05:17:00 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/6a184df9-736b-4d72-9f7e-71f61f7c9578?api-version=2018-06-01 - response: - body: - string: '{"name":"6a184df9-736b-4d72-9f7e-71f61f7c9578","status":"InProgress","startTime":"2021-04-29T05:12:00.207Z"}' - headers: - cache-control: - - no-cache - content-length: - - '108' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 29 Apr 2021 05:17:31 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/6a184df9-736b-4d72-9f7e-71f61f7c9578?api-version=2018-06-01 - response: - body: - string: '{"name":"6a184df9-736b-4d72-9f7e-71f61f7c9578","status":"InProgress","startTime":"2021-04-29T05:12:00.207Z"}' - headers: - cache-control: - - no-cache - content-length: - - '108' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 29 Apr 2021 05:18:00 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/6a184df9-736b-4d72-9f7e-71f61f7c9578?api-version=2018-06-01 - response: - body: - string: '{"name":"6a184df9-736b-4d72-9f7e-71f61f7c9578","status":"InProgress","startTime":"2021-04-29T05:12:00.207Z"}' - headers: - cache-control: - - no-cache - content-length: - - '108' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 29 Apr 2021 05:18:31 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/6a184df9-736b-4d72-9f7e-71f61f7c9578?api-version=2018-06-01 - response: - body: - string: '{"name":"6a184df9-736b-4d72-9f7e-71f61f7c9578","status":"InProgress","startTime":"2021-04-29T05:12:00.207Z"}' - headers: - cache-control: - - no-cache - content-length: - - '108' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 29 Apr 2021 05:19:00 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/6a184df9-736b-4d72-9f7e-71f61f7c9578?api-version=2018-06-01 - response: - body: - string: '{"name":"6a184df9-736b-4d72-9f7e-71f61f7c9578","status":"InProgress","startTime":"2021-04-29T05:12:00.207Z"}' - headers: - cache-control: - - no-cache - content-length: - - '108' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 29 Apr 2021 05:19:31 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/6a184df9-736b-4d72-9f7e-71f61f7c9578?api-version=2018-06-01 - response: - body: - string: '{"name":"6a184df9-736b-4d72-9f7e-71f61f7c9578","status":"InProgress","startTime":"2021-04-29T05:12:00.207Z"}' - headers: - cache-control: - - no-cache - content-length: - - '108' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 29 Apr 2021 05:20:01 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/6a184df9-736b-4d72-9f7e-71f61f7c9578?api-version=2018-06-01 - response: - body: - string: '{"name":"6a184df9-736b-4d72-9f7e-71f61f7c9578","status":"Succeeded","startTime":"2021-04-29T05:12:00.207Z"}' - headers: - cache-control: - - no-cache - content-length: - - '107' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 29 Apr 2021 05:20:31 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/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-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: - - '1132' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 29 Apr 2021 05:20:31 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: '{"properties": {"charset": "utf8", "collation": "utf8_general_ci"}}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '67' - Content-Type: - - application/json - 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: PUT - 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-29T05:20:31.863Z"}' - headers: - azure-asyncoperation: - - 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: - - '82' - content-type: - - application/json; charset=utf-8 - date: - - 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/1db6e64a-404a-4703-8821-b0dacd82e24e?api-version=2018-06-01 - 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: - - '1197' - status: - code: 202 - message: Accepted -- 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/1db6e64a-404a-4703-8821-b0dacd82e24e?api-version=2018-06-01 - response: - body: - string: '{"name":"1db6e64a-404a-4703-8821-b0dacd82e24e","status":"Succeeded","startTime":"2021-04-29T05:20:31.863Z"}' - headers: - cache-control: - - no-cache - content-length: - - '107' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 29 Apr 2021 05:20:46 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/resourceGroups/test_cli_mgmt_mariadb_test_mariadbf2c70db8/providers/Microsoft.DBForMariaDB/servers/testserver21827/databases/testdatabase21827?api-version=2018-06-01 - response: - body: - string: '{"properties":{"charset":"utf8","collation":"utf8_general_ci"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_mariadb_test_mariadbf2c70db8/providers/Microsoft.DBforMariaDB/servers/testserver21827/databases/testdatabase21827","name":"testdatabase21827","type":"Microsoft.DBforMariaDB/servers/databases"}' - headers: - cache-control: - - no-cache - content-length: - - '347' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 29 Apr 2021 05:20:46 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: '{"properties": {"startIpAddress": "0.0.0.0", "endIpAddress": "255.255.255.255"}}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '80' - Content-Type: - - application/json - 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: PUT - 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-29T05:20:47.38Z"}' - headers: - azure-asyncoperation: - - 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: - - '86' - content-type: - - application/json; charset=utf-8 - date: - - 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/22158098-5c07-4cbc-8cc2-265d21e1c542?api-version=2018-06-01 - 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: - - '1196' - status: - code: 202 - message: Accepted -- 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/22158098-5c07-4cbc-8cc2-265d21e1c542?api-version=2018-06-01 - response: - body: - string: '{"name":"22158098-5c07-4cbc-8cc2-265d21e1c542","status":"Succeeded","startTime":"2021-04-29T05:20:47.38Z"}' - headers: - cache-control: - - no-cache - content-length: - - '106' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 29 Apr 2021 05:21:01 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/resourceGroups/test_cli_mgmt_mariadb_test_mariadbf2c70db8/providers/Microsoft.DBForMariaDB/servers/testserver21827/firewallRules/firewallrule?api-version=2018-06-01 - response: - body: - string: '{"properties":{"startIpAddress":"0.0.0.0","endIpAddress":"255.255.255.255"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_mariadb_test_mariadbf2c70db8/providers/Microsoft.DBforMariaDB/servers/testserver21827/firewallRules/firewallrule","name":"firewallrule","type":"Microsoft.DBforMariaDB/servers/firewallRules"}' - headers: - cache-control: - - no-cache - content-length: - - '358' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 29 Apr 2021 05:21:01 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: '{"properties": {"state": "Enabled"}}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '36' - Content-Type: - - application/json - 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: PUT - 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-29T05:21:02.817Z"}' - headers: - azure-asyncoperation: - - 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: - - '88' - content-type: - - application/json; charset=utf-8 - date: - - 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/4d0f4d29-04bd-4f12-9203-2f6dcf4e480c?api-version=2018-06-01 - 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: - - '1195' - status: - code: 202 - message: Accepted -- 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/East%20US/securityAlertPoliciesAzureAsyncOperation/4d0f4d29-04bd-4f12-9203-2f6dcf4e480c?api-version=2018-06-01 - response: - body: - string: '{"name":"4d0f4d29-04bd-4f12-9203-2f6dcf4e480c","status":"Succeeded","startTime":"2021-04-29T05:21:02.817Z"}' - headers: - cache-control: - - no-cache - content-length: - - '107' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 29 Apr 2021 05:21:05 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/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-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 - content-length: - - '527' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 29 Apr 2021 05:21:05 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: '{"properties": {"state": "Disabled"}}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '37' - Content-Type: - - application/json - 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: PUT - 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-29T05:21:06.067Z"}' - headers: - azure-asyncoperation: - - 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: - - '88' - content-type: - - application/json; charset=utf-8 - date: - - 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/b01d6bac-c6b9-4055-987e-1dd6d60a20e3?api-version=2018-06-01 - 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: - - '1194' - status: - code: 202 - message: Accepted -- 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/East%20US/securityAlertPoliciesAzureAsyncOperation/b01d6bac-c6b9-4055-987e-1dd6d60a20e3?api-version=2018-06-01 - response: - body: - string: '{"name":"b01d6bac-c6b9-4055-987e-1dd6d60a20e3","status":"Succeeded","startTime":"2021-04-29T05:21:06.067Z"}' - headers: - cache-control: - - no-cache - content-length: - - '107' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 29 Apr 2021 05:21:08 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/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-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 - content-length: - - '528' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 29 Apr 2021 05:21:08 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - 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/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-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 - content-length: - - '528' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 29 Apr 2021 05:21:08 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - 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/resourceGroups/test_cli_mgmt_mariadb_test_mariadbf2c70db8/providers/Microsoft.DBForMariaDB/servers/testserver21827/firewallRules/firewallrule?api-version=2018-06-01 - response: - body: - string: '{"properties":{"startIpAddress":"0.0.0.0","endIpAddress":"255.255.255.255"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_mariadb_test_mariadbf2c70db8/providers/Microsoft.DBforMariaDB/servers/testserver21827/firewallRules/firewallrule","name":"firewallrule","type":"Microsoft.DBforMariaDB/servers/firewallRules"}' - headers: - cache-control: - - no-cache - content-length: - - '358' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 29 Apr 2021 05:21:08 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - 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/resourceGroups/test_cli_mgmt_mariadb_test_mariadbf2c70db8/providers/Microsoft.DBForMariaDB/servers/testserver21827/databases/testdatabase21827?api-version=2018-06-01 - response: - body: - string: '{"properties":{"charset":"utf8","collation":"utf8_general_ci"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_mariadb_test_mariadbf2c70db8/providers/Microsoft.DBforMariaDB/servers/testserver21827/databases/testdatabase21827","name":"testdatabase21827","type":"Microsoft.DBforMariaDB/servers/databases"}' - headers: - cache-control: - - no-cache - content-length: - - '347' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 29 Apr 2021 05:21:08 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - 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/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-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 - content-length: - - '983' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 29 Apr 2021 05:21:08 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - 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/providers/Microsoft.DBForMariaDB/operations?api-version=2018-06-01 - response: - body: - string: '{"value":[{"name":"Microsoft.DBforMariaDB/servers/securityAlertPolicies/read","display":{"provider":"Microsoft - DB for MariaDB","resource":"Server Threat Detection Policy","operation":"Get - server threat detection policy","description":"Retrieve details of the server - threat detection policy configured on a given server"}},{"name":"Microsoft.DBforMariaDB/servers/securityAlertPolicies/write","display":{"provider":"Microsoft - DB for MariaDB","resource":"Server Threat Detection Policy","operation":"Update - server threat detection policy","description":"Change the server threat detection - policy for a given server"}},{"name":"Microsoft.DBforMariaDB/servers/securityAlertPolicies/read","display":{"provider":"Microsoft - DB for MariaDB","resource":"Server Threat Detection Policy","operation":"List - server threat detection policies","description":"Retrieve a list of server - threat detection policies configured for a given server"}},{"name":"Microsoft.DBforMariaDB/locations/securityAlertPoliciesOperationResults/read","display":{"provider":"Microsoft - DB for MariaDB","resource":"Server threat detection operation result","operation":"List/Get - Server threat detection operation result.","description":"Return the list - of Server threat detection operation result."}},{"name":"Microsoft.DBforMariaDB/servers/keys/read","display":{"provider":"Microsoft - DB for MariaDB","resource":"Azure Database for MariaDB Server Keys","operation":"List/Get - Azure Database for MariaDB Server Key(s)","description":"Return the list of - server keys or gets the properties for the specified server key."}},{"name":"Microsoft.DBforMariaDB/servers/keys/write","display":{"provider":"Microsoft - DB for MariaDB","resource":"Azure Database for MariaDB Server Keys","operation":"Create/Update - Azure Database for MariaDB Server Keys","description":"Creates a key with - the specified parameters or update the properties or tags for the specified - server key."}},{"name":"Microsoft.DBforMariaDB/servers/keys/delete","display":{"provider":"Microsoft - DB for MariaDB","resource":"Azure Database for MariaDB Server Keys","operation":"Delete - Azure Database for MariaDB Server Key","description":"Deletes an existing - server key."}},{"name":"Microsoft.DBforMariaDB/locations/serverKeyAzureAsyncOperation/read","display":{"provider":"Microsoft - DB for MariaDB","resource":"Data Encryption server key operation","operation":"Data - Encryption server keys operation","description":"Gets in-progress operations - on data encryption server keys"}},{"name":"Microsoft.DBforMariaDB/locations/serverKeyOperationResults/read","display":{"provider":"Microsoft - DB for MariaDB","resource":"Data Encryption server key operation","operation":"Data - Encryption server keys operation","description":"Gets in-progress operations - on transparent data encryption server keys"}},{"name":"Microsoft.DBforMariaDB/servers/start/action","display":{"provider":"Microsoft - DB for MariaDB","resource":"MariaDB Server","operation":"Start MariaDB Server","description":"Starts - a specific server."}},{"name":"Microsoft.DBforMariaDB/servers/stop/action","display":{"provider":"Microsoft - DB for MariaDB","resource":"MariaDB Server","operation":"Stop MariaDB Server","description":"Stops - a specific server."}},{"name":"Microsoft.DBforMariaDB/servers/advisors/read","display":{"provider":"Microsoft - DB for MariaDB","resource":"Advisors","operation":"Return the list of advisors","description":"Return - the list of advisors"}},{"name":"Microsoft.DBforMariaDB/servers/advisors/read","display":{"provider":"Microsoft - DB for MariaDB","resource":"Advisors","operation":"Return an advisor","description":"Return - an advisor"}},{"name":"Microsoft.DBforMariaDB/servers/advisors/recommendedActions/read","display":{"provider":"Microsoft - DB for MariaDB","resource":"Recommended Actions","operation":"Return the list - of recommended actions","description":"Return the list of recommended actions"}},{"name":"Microsoft.DBforMariaDB/servers/advisors/recommendedActions/read","display":{"provider":"Microsoft - DB for MariaDB","resource":"Recommended Actions","operation":"Return the list - of recommended actions","description":"Return the list of recommended actions"}},{"name":"Microsoft.DBforMariaDB/servers/advisors/recommendedActions/read","display":{"provider":"Microsoft - DB for MariaDB","resource":"Recommended Actions","operation":"Return a recommended - action","description":"Return a recommended action"}},{"name":"Microsoft.DBforMariaDB/servers/advisors/createRecommendedActionSession/action","display":{"provider":"Microsoft - DB for MariaDB","resource":"Recommended Actions","operation":"Create a new - recommendation action session","description":"Create a new recommendation - action session"}},{"name":"Microsoft.DBforMariaDB/servers/resetQueryPerformanceInsightData/action","display":{"provider":"Microsoft - DB for MariaDB","resource":"Reset Query Performance Insight data","operation":"Reset - Query Performance Insight data","description":"Reset Query Performance Insight - data"}},{"name":"Microsoft.DBforMariaDB/servers/queryTexts/action","display":{"provider":"Microsoft - DB for MariaDB","resource":"Query Texts","operation":"List query texts for - a list of queries","description":"Return the texts for a list of queries"}},{"name":"Microsoft.DBforMariaDB/servers/queryTexts/action","display":{"provider":"Microsoft - DB for MariaDB","resource":"Query Texts","operation":"Return the text of a - query","description":"Return the text of a query"}},{"name":"Microsoft.DBforMariaDB/servers/topQueryStatistics/read","display":{"provider":"Microsoft - DB for MariaDB","resource":"Top Query Statistics","operation":"List/Get Query - Statistic(s) for top queries","description":"Return the list of Query Statistics - for the top queries."}},{"name":"Microsoft.DBforMariaDB/servers/topQueryStatistics/read","display":{"provider":"Microsoft - DB for MariaDB","resource":"Top Query Statistics","operation":"Get a Query - Statistic","description":"Return a Query Statistic"}},{"name":"Microsoft.DBforMariaDB/servers/waitStatistics/read","display":{"provider":"Microsoft - DB for MariaDB","resource":"Wait Statistics","operation":"List Wait Statistics - for an instance","description":"Return wait statistics for an instance"}},{"name":"Microsoft.DBforMariaDB/servers/waitStatistics/read","display":{"provider":"Microsoft - DB for MariaDB","resource":"Wait Statistics","operation":"Return a wait statistic","description":"Return - a wait statistic"}},{"name":"Microsoft.DBforMariaDB/servers/privateEndpointConnectionsApproval/action","display":{"provider":"Microsoft - DB for MariaDB","resource":"Private Endpoint Connections Approval","operation":"Private - Endpoint Connections Approval","description":"Determines if user is allowed - to approve a private endpoint connection"}},{"name":"Microsoft.DBforMariaDB/privateEndpointConnectionsApproval/action","display":{"provider":"Microsoft - DB for MariaDB","resource":"Private Endpoint Connections Approval","operation":"Private - Endpoint Connections Approval","description":"Determines if user is allowed - to approve a private endpoint connection"}},{"name":"Microsoft.DBforMariaDB/servers/privateLinkResources/read","display":{"provider":"Microsoft - DB for MariaDB","resource":"Azure Database for MariaDB private link resource","operation":"Get - the private link resources for the corresponding MariaDB Server","description":"Get - the private link resources for the corresponding MariaDB Server"}},{"name":"Microsoft.DBforMariaDB/servers/privateEndpointConnections/read","display":{"provider":"Microsoft - DB for MariaDB","resource":"Azure Database for MariaDB private endpoint connection","operation":"List/Get - Azure Database for MariaDB private endpoint connection","description":"Returns - the list of private endpoint connections or gets the properties for the specified - private endpoint connection."}},{"name":"Microsoft.DBforMariaDB/servers/privateEndpointConnections/delete","display":{"provider":"Microsoft - DB for MariaDB","resource":"Azure Database for MariaDB private endpoint connection","operation":"Delete - Azure Database for MariaDB private endpoint connection","description":"Deletes - an existing private endpoint connection"}},{"name":"Microsoft.DBforMariaDB/servers/privateEndpointConnections/write","display":{"provider":"Microsoft - DB for MariaDB","resource":"Azure Database for MariaDB private endpoint connection","operation":"Approve - or Reject Azure Database for MariaDB private endpoint connection","description":"Approves - or rejects an existing private endpoint connection"}},{"name":"Microsoft.DBforMariaDB/locations/privateEndpointConnectionOperationResults/read","display":{"provider":"Microsoft - DB for MariaDB","resource":"Azure Database for MariaDB private endpoint connection","operation":"Get - private endpoint connection operation status","description":"Gets the result - for a private endpoint connection operation"}},{"name":"Microsoft.DBforMariaDB/locations/privateEndpointConnectionAzureAsyncOperation/read","display":{"provider":"Microsoft - DB for MariaDB","resource":"Azure Database for MariaDB private endpoint connection","operation":"Get - private endpoint connection operation status","description":"Gets the result - for a private endpoint connection operation"}},{"name":"Microsoft.DBforMariaDB/locations/privateEndpointConnectionProxyOperationResults/read","display":{"provider":"Microsoft - DB for MariaDB","resource":"Azure Database for MariaDB Private Endpoint Connection - Proxy","operation":"Get private endpoint connection proxy operation status","description":"Gets - the result for a private endpoint connection proxy operation"}},{"name":"Microsoft.DBforMariaDB/servers/privateEndpointConnectionProxies/validate/action","display":{"provider":"Microsoft - DB for MariaDB","resource":"Azure Database for MariaDB Private Endpoint Connection - Proxy","operation":"Validate Azure Database for MariaDB Private Endpoint Connection - Creation by NRP","description":"Validates a private endpoint connection create - call from NRP side"}},{"name":"Microsoft.DBforMariaDB/servers/privateEndpointConnectionProxies/read","display":{"provider":"Microsoft - DB for MariaDB","resource":"Azure Database for MariaDB Private Endpoint Connection - Proxy","operation":"List/Get Azure Database for MariaDB Private Endpoint Connection - Proxy","description":"Returns the list of private endpoint connection proxies - or gets the properties for the specified private endpoint connection proxy."}},{"name":"Microsoft.DBforMariaDB/servers/privateEndpointConnectionProxies/write","display":{"provider":"Microsoft - DB for MariaDB","resource":"Azure Database for MariaDB Private Endpoint Connection - Proxy","operation":"Create/Update Azure Database for MariaDB Private Endpoint - Connection Proxy","description":"Creates a private endpoint connection proxy - with the specified parameters or updates the properties or tags for the specified - private endpoint connection proxy."}},{"name":"Microsoft.DBforMariaDB/servers/privateEndpointConnectionProxies/delete","display":{"provider":"Microsoft - DB for MariaDB","resource":"Azure Database for MariaDB Private Endpoint Connection - Proxy","operation":"Delete Azure Database for MariaDB Private Endpoint Connection - Proxy","description":"Deletes an existing private endpoint connection proxy"}},{"name":"Microsoft.DBforMariaDB/locations/privateEndpointConnectionProxyAzureAsyncOperation/read","display":{"provider":"Microsoft - DB for MariaDB","resource":"Azure Database for MariaDB Private Endpoint Connection - Proxy","operation":"Get private endpoint connection proxy operation status","description":"Gets - the result for a private endpoint connection proxy operation"}},{"name":"Microsoft.DBforMariaDB/locations/performanceTiers/read","display":{"provider":"Microsoft - DB for MariaDB","resource":"Performance Tiers","operation":"List Performance - Tiers","description":"Returns the list of Performance Tiers available."}},{"name":"Microsoft.DBforMariaDB/servers/administrators/read","display":{"provider":"Microsoft - DB for MariaDB","resource":"Administrator of MariaDB server.","operation":"Get - Administrators of MariaDB server.","description":"Gets a list of MariaDB server - administrators."}},{"name":"Microsoft.DBforMariaDB/servers/administrators/write","display":{"provider":"Microsoft - DB for MariaDB","resource":"Administrator of MariaDB server.","operation":"Create/Update - Administrator of MariaDB server.","description":"Creates or updates MariaDB - server administrator with the specified parameters."}},{"name":"Microsoft.DBforMariaDB/servers/administrators/delete","display":{"provider":"Microsoft - DB for MariaDB","resource":"Administrator of MariaDB server.","operation":"Delete - Administrator of MariaDB server.","description":"Deletes an existing administrator - of MariaDB server."}},{"name":"Microsoft.DBforMariaDB/locations/administratorAzureAsyncOperation/read","display":{"provider":"Microsoft - DB for MariaDB","resource":"Administrator opertiaons of MariaDB server.","operation":"MariaDB - server administrator operation","description":"Gets in-progress operations - on MariaDB server administrators"}},{"name":"Microsoft.DBforMariaDB/locations/administratorOperationResults/read","display":{"provider":"Microsoft - DB for MariaDB","resource":"MariaDB server operation results","operation":"Get - MariaDB server operation results","description":"Return MariaDB Server administrator - operation results"}},{"name":"Microsoft.DBforMariaDB/servers/recoverableServers/read","display":{"provider":"Microsoft - DB for MariaDB","resource":"Recoverable MariaDB Server","operation":"Get Recoverable - MariaDB Server info","description":"Return the recoverable MariaDB Server - info"}},{"name":"Microsoft.DBforMariaDB/servers/replicas/read","display":{"provider":"Microsoft - DB for MariaDB","resource":"MariaDB Server","operation":"Get MariaDB read - replicas","description":"Get read replicas of a MariaDB server"}},{"name":"Microsoft.DBforMariaDB/locations/operationResults/read","display":{"provider":"Microsoft - DB for MariaDB","resource":"MariaDB ResourceGroup based Server Operation Results","operation":"Get - MariaDB ResourceGroup based Server Operation Results ","description":"Return - ResourceGroup based MariaDB Server Operation Results"}},{"name":"Microsoft.DBforMariaDB/servers/read","display":{"provider":"Microsoft - DB for MariaDB","resource":"MariaDB Server","operation":"List/Get MariaDB - Servers","description":"Return the list of servers or gets the properties - for the specified server."}},{"name":"Microsoft.DBforMariaDB/servers/write","display":{"provider":"Microsoft - DB for MariaDB","resource":"MariaDB Server","operation":"Create/Update MariaDB - Server","description":"Creates a server with the specified parameters or update - the properties or tags for the specified server."}},{"name":"Microsoft.DBforMariaDB/servers/delete","display":{"provider":"Microsoft - DB for MariaDB","resource":"MariaDB Server","operation":"Delete MariaDB Server","description":"Deletes - an existing server."}},{"name":"Microsoft.DBforMariaDB/servers/performanceTiers/read","display":{"provider":"Microsoft - DB for MariaDB","resource":"Performance Tiers","operation":"List Performance - Tiers","description":"Returns the list of Performance Tiers available."}},{"name":"Microsoft.DBforMariaDB/locations/operationResults/read","display":{"provider":"Microsoft - DB for MariaDB","resource":"MariaDB Server Operation Results","operation":"Get - MariaDB Server Operation Results","description":"Return MariaDB Server Operation - Results"}},{"name":"Microsoft.DBforMariaDB/servers/restart/action","display":{"provider":"Microsoft - DB for MariaDB","resource":"MariaDB Server","operation":"Restart MariaDB Server","description":"Restarts - a specific server."}},{"name":"Microsoft.DBforMariaDB/locations/securityAlertPoliciesAzureAsyncOperation/read","display":{"provider":"Microsoft - DB for MariaDB","resource":"Server threat detection operation result","operation":"List/Get - Server threat detection operation result.","description":"Return the list - of Server threat detection operation result."}},{"name":"Microsoft.DBforMariaDB/register/action","display":{"provider":"Microsoft - DB for MariaDB","resource":"Microsoft Database For MariaDB Resource Provider","operation":"Register - MariaDB Resource Provider","description":"Register MariaDB Resource Provider"}},{"name":"Microsoft.DBforMariaDB/servers/updateConfigurations/action","display":{"provider":"Microsoft - DB for MariaDB","resource":"MariaDB Server","operation":"Batch Update Server - Configurations","description":"Update configurations for the specified server"}},{"name":"Microsoft.DBforMariaDB/checkNameAvailability/action","display":{"provider":"Microsoft - DB for MariaDB","resource":"MariaDB Server","operation":"Check Server Name - Availability","description":"Verify whether given server name is available - for provisioning worldwide for a given subscription."}},{"name":"Microsoft.DBforMariaDB/servers/configurations/read","display":{"provider":"Microsoft - DB for MariaDB","resource":"Configurations","operation":"List/Get Configurations","description":"Return - the list of configurations for a server or gets the properties for the specified - configuration."}},{"name":"Microsoft.DBforMariaDB/servers/configurations/write","display":{"provider":"Microsoft - DB for MariaDB","resource":"Configurations","operation":"Update Configuration","description":"Update - the value for the specified configuration"}},{"name":"Microsoft.DBforMariaDB/servers/logFiles/read","display":{"provider":"Microsoft - DB for MariaDB","resource":"MariaDB LogFiles","operation":"List/Get MySQL - LogFiles","description":"Return the list of MariaDB LogFiles."}},{"name":"Microsoft.DBforMariaDB/servers/virtualNetworkRules/read","display":{"provider":"Microsoft - DB for MariaDB","resource":"Virtual Network Rules","operation":"List/Get Virtual - Network Rule(s)","description":"Return the list of virtual network rules or - gets the properties for the specified virtual network rule."}},{"name":"Microsoft.DBforMariaDB/servers/virtualNetworkRules/write","display":{"provider":"Microsoft - DB for MariaDB","resource":"Virtual Network Rules","operation":"Create/Update - Virtual Network Rule","description":"Creates a virtual network rule with the - specified parameters or update the properties or tags for the specified virtual - network rule."}},{"name":"Microsoft.DBforMariaDB/servers/virtualNetworkRules/delete","display":{"provider":"Microsoft - DB for MariaDB","resource":"Virtual Network Rules","operation":"Delete Virtual - Network Rule","description":"Deletes an existing Virtual Network Rule"}},{"name":"Microsoft.DBforMariaDB/locations/azureAsyncOperation/read","display":{"provider":"Microsoft - DB for MariaDB","resource":"MariaDB Server Operation Results","operation":"Get - MariaDB Server Operation Results","description":"Return MariaDB Server Operation - Results"}},{"name":"Microsoft.DBforMariaDB/servers/databases/read","display":{"provider":"Microsoft - DB for MariaDB","resource":"MariaDB Databases","operation":"List/Get MySQL - Database","description":"Return the list of MariaDB Databases or gets the - properties for the specified Database."}},{"name":"Microsoft.DBforMariaDB/servers/databases/write","display":{"provider":"Microsoft - DB for MariaDB","resource":"MariaDB Databases","operation":"Create/Update - MariaDB Database","description":"Creates a MariaDB Database with the specified - parameters or update the properties for the specified Database."}},{"name":"Microsoft.DBforMariaDB/servers/databases/delete","display":{"provider":"Microsoft - DB for MariaDB","resource":"MariaDB Databases","operation":"Delete MariaDB - Database","description":"Deletes an existing MariaDB Database."}},{"name":"Microsoft.DBforMariaDB/servers/firewallRules/read","display":{"provider":"Microsoft - DB for MariaDB","resource":"Firewall Rules","operation":"List/Get Firewall - Rules","description":"Return the list of firewall rules for a server or gets - the properties for the specified firewall rule."}},{"name":"Microsoft.DBforMariaDB/servers/firewallRules/write","display":{"provider":"Microsoft - DB for MariaDB","resource":"Firewall Rules","operation":"Create/Update Firewall - Rule","description":"Creates a firewall rule with the specified parameters - or update an existing rule."}},{"name":"Microsoft.DBforMariaDB/servers/firewallRules/delete","display":{"provider":"Microsoft - DB for MariaDB","resource":"Firewall Rules","operation":"Delete Firewall Rule","description":"Deletes - an existing firewall rule."}},{"name":"Microsoft.DBforMariaDB/performanceTiers/read","display":{"provider":"Microsoft - DB for MariaDB","resource":"Performance Tiers","operation":"List Performance - Tiers","description":"Returns the list of Performance Tiers available."}},{"name":"Microsoft.DBforMariaDB/operations/read","display":{"provider":"Microsoft - DB for MariaDB","resource":"MariaDB Operations","operation":"List/Get MariaDB - Operations","description":"Return the list of MariaDB Operations."}},{"name":"Microsoft.DBforMariaDB/servers/providers/Microsoft.Insights/metricDefinitions/read","display":{"provider":"Microsoft - DB for MariaDB","resource":"Database Metric Definition","operation":"Get database - metric definitions","description":"Return types of metrics that are available - for databases"},"properties":{"serviceSpecification":{"metricSpecifications":[{"name":"cpu_percent","displayName":"CPU - percent","displayDescription":"CPU percent","unit":"Percent","aggregationType":"Average","supportedAggregationTypes":["Average","Maximum","Minimum"],"fillGapWithZero":false,"category":"Saturation"},{"name":"memory_percent","displayName":"Memory - percent","displayDescription":"Memory percent","unit":"Percent","aggregationType":"Average","supportedAggregationTypes":["Average","Maximum","Minimum"],"fillGapWithZero":false,"category":"Saturation"},{"name":"io_consumption_percent","displayName":"IO - percent","displayDescription":"IO percent","unit":"Percent","aggregationType":"Average","supportedAggregationTypes":["Average","Maximum","Minimum"],"fillGapWithZero":false,"category":"Saturation"},{"name":"storage_percent","displayName":"Storage - percent","displayDescription":"Storage percent","unit":"Percent","aggregationType":"Average","supportedAggregationTypes":["Average","Maximum","Minimum"],"fillGapWithZero":false,"category":"Saturation"},{"name":"storage_used","displayName":"Storage - used","displayDescription":"Storage used","unit":"Bytes","aggregationType":"Average","supportedAggregationTypes":["Average","Maximum","Minimum"],"fillGapWithZero":false,"category":"Saturation"},{"name":"storage_limit","displayName":"Storage - limit","displayDescription":"Storage limit","unit":"Bytes","aggregationType":"Maximum","supportedAggregationTypes":["Maximum"],"fillGapWithZero":false,"category":"Saturation"},{"name":"serverlog_storage_percent","displayName":"Server - Log storage percent","displayDescription":"Server Log storage percent","unit":"Percent","aggregationType":"Average","supportedAggregationTypes":["Average","Maximum","Minimum"],"fillGapWithZero":false,"category":"Saturation"},{"name":"serverlog_storage_usage","displayName":"Server - Log storage used","displayDescription":"Server Log storage used","unit":"Bytes","aggregationType":"Average","supportedAggregationTypes":["Average","Maximum","Minimum"],"fillGapWithZero":false,"category":"Saturation"},{"name":"serverlog_storage_limit","displayName":"Server - Log storage limit","displayDescription":"Server Log storage limit","unit":"Bytes","aggregationType":"Maximum","supportedAggregationTypes":["Maximum"],"fillGapWithZero":false,"category":"Saturation"},{"name":"active_connections","displayName":"Active - Connections","displayDescription":"Active Connections","unit":"Count","aggregationType":"Average","supportedAggregationTypes":["Average","Maximum","Minimum"],"fillGapWithZero":false,"category":"Traffic"},{"name":"connections_failed","displayName":"Failed - Connections","displayDescription":"Failed Connections","unit":"Count","aggregationType":"Total","supportedAggregationTypes":["Total"],"fillGapWithZero":false,"category":"Errors"},{"name":"seconds_behind_master","displayName":"Replication - lag in seconds","displayDescription":"Replication lag in seconds","unit":"Count","aggregationType":"Maximum","supportedAggregationTypes":["Average","Maximum","Minimum"],"fillGapWithZero":false,"category":"Latency"},{"name":"backup_storage_used","displayName":"Backup - Storage used","displayDescription":"Backup Storage used","unit":"Bytes","aggregationType":"Average","supportedAggregationTypes":["Average","Maximum","Minimum"],"supportedTimeGrainTypes":["PT15M","PT30M","PT1H","PT6H","PT12H","P1D"],"fillGapWithZero":false,"category":"Saturation"},{"name":"network_bytes_egress","displayName":"Network - Out","displayDescription":"Network Out across active connections","unit":"Bytes","aggregationType":"Total","supportedAggregationTypes":["Total"],"fillGapWithZero":false,"category":"Traffic"},{"name":"network_bytes_ingress","displayName":"Network - In","displayDescription":"Network In across active connections","unit":"Bytes","aggregationType":"Total","supportedAggregationTypes":["Total"],"fillGapWithZero":false,"category":"Traffic"}]}}},{"name":"Microsoft.DBforMariaDB/servers/providers/Microsoft.Insights/logDefinitions/read","display":{"provider":"Microsoft - DB for MariaDB","resource":"The log definition of servers","operation":"Read - the log definitions","description":"Gets the available logs for MariaDB servers"},"properties":{"serviceSpecification":{"logSpecifications":[{"name":"MySqlSlowLogs","displayName":"MariaDB - Server Logs","blobDuration":"PT1H"},{"name":"MySqlAuditLogs","displayName":"MariaDB - Audit Logs","blobDuration":"PT1H"}]}}},{"name":"Microsoft.DBforMariaDB/servers/providers/Microsoft.Insights/diagnosticSettings/read","display":{"provider":"Microsoft - DB for MariaDB","resource":"Database Metric Definition","operation":"Read - diagnostic setting","description":"Gets the disagnostic setting for the resource"}},{"name":"Microsoft.DBforMariaDB/servers/providers/Microsoft.Insights/diagnosticSettings/write","display":{"provider":"Microsoft - DB for MariaDB","resource":"Database Metric Definition","operation":"Write - diagnostic setting","description":"Creates or updates the diagnostic setting - for the resource"}}]}' - headers: - cache-control: - - no-cache - content-length: - - '26160' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 29 Apr 2021 05:21:10 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - 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: POST - 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-29T05:21:10.317Z"}' - headers: - azure-asyncoperation: - - 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: - - '75' - content-type: - - application/json; charset=utf-8 - date: - - 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/7d2fda93-3d0f-46b0-8dc1-211661d664e3?api-version=2018-06-01 - 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: - - '1199' - status: - code: 202 - message: Accepted -- 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":"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:21:25 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":"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:21:39 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":"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:21:54 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":"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 - content-length: - - '107' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 29 Apr 2021 05:22:25 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/operationResults/7d2fda93-3d0f-46b0-8dc1-211661d664e3?api-version=2018-06-01 - response: - body: - string: '' - headers: - cache-control: - - no-cache - content-length: - - '0' - date: - - Thu, 29 Apr 2021 05:22:25 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: '{}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '2' - Content-Type: - - application/json - 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: PATCH - 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-29T05:22:25.813Z"}' - headers: - azure-asyncoperation: - - 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: - - '74' - content-type: - - application/json; charset=utf-8 - date: - - 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/65eb4230-8548-48c2-81ae-b3720c3e2a04?api-version=2018-06-01 - 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: - - '1193' - status: - code: 202 - message: Accepted -- 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/65eb4230-8548-48c2-81ae-b3720c3e2a04?api-version=2018-06-01 - response: - body: - string: '{"name":"65eb4230-8548-48c2-81ae-b3720c3e2a04","status":"Succeeded","startTime":"2021-04-29T05:22:25.813Z"}' - headers: - cache-control: - - no-cache - content-length: - - '107' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 29 Apr 2021 05:23: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/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-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 - content-length: - - '983' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 29 Apr 2021 05:23: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: '{"name": "name1f2c70db8", "type": "Microsoft.DBforMariaDB"}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '59' - Content-Type: - - application/json - 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: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBForMariaDB/checkNameAvailability?api-version=2018-06-01 - response: - body: - string: '{"nameAvailable":true,"message":""}' - headers: - cache-control: - - no-cache - content-length: - - '35' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 29 Apr 2021 05:23:28 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1198' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - 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: DELETE - 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-29T05:23:28.66Z"}' - headers: - azure-asyncoperation: - - 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: - - '83' - content-type: - - application/json; charset=utf-8 - date: - - 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/1496f7af-9212-4034-9bd5-23e0f54476d0?api-version=2018-06-01 - 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-deletes: - - '14999' - status: - code: 202 - message: Accepted -- 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/1496f7af-9212-4034-9bd5-23e0f54476d0?api-version=2018-06-01 - response: - body: - string: '{"name":"1496f7af-9212-4034-9bd5-23e0f54476d0","status":"Succeeded","startTime":"2021-04-29T05:23:28.66Z"}' - headers: - cache-control: - - no-cache - content-length: - - '106' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 29 Apr 2021 05:23:44 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - 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: DELETE - 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-29T05:23:45.143Z"}' - headers: - azure-asyncoperation: - - 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: - - '80' - content-type: - - application/json; charset=utf-8 - date: - - 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/88d610ed-a132-4f3e-b1c1-5487b8a479f6?api-version=2018-06-01 - 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-deletes: - - '14998' - status: - code: 202 - message: Accepted -- 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/88d610ed-a132-4f3e-b1c1-5487b8a479f6?api-version=2018-06-01 - response: - body: - string: '{"name":"88d610ed-a132-4f3e-b1c1-5487b8a479f6","status":"Succeeded","startTime":"2021-04-29T05:23:45.143Z"}' - headers: - cache-control: - - no-cache - content-length: - - '107' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 29 Apr 2021 05:23:59 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - 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: DELETE - 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-29T05:24:00.377Z"}' - headers: - azure-asyncoperation: - - 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: - - '72' - content-type: - - application/json; charset=utf-8 - date: - - 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/05feb03a-4ccf-40b0-8303-ad1ce64e30c6?api-version=2018-06-01 - 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-deletes: - - '14997' - status: - code: 202 - message: Accepted -- 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/05feb03a-4ccf-40b0-8303-ad1ce64e30c6?api-version=2018-06-01 - response: - body: - string: '{"name":"05feb03a-4ccf-40b0-8303-ad1ce64e30c6","status":"Succeeded","startTime":"2021-04-29T05:24:00.377Z"}' - headers: - cache-control: - - no-cache - content-length: - - '107' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 29 Apr 2021 05:24:14 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 -version: 1 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 deleted file mode 100644 index 5b0bc12f1767..000000000000 --- a/sdk/rdbms/azure-mgmt-rdbms/tests/recordings/test_cli_mgmt_mysql.test_mysql.yaml +++ /dev/null @@ -1,2729 +0,0 @@ -interactions: -- request: - body: '{"sku": {"name": "GP_Gen5_2", "tier": "GeneralPurpose", "capacity": 2, - "family": "Gen5"}, "properties": {"sslEnforcement": "Enabled", "storageProfile": - {"backupRetentionDays": 7, "geoRedundantBackup": "Enabled", "storageMB": 128000}, - "createMode": "Default", "administratorLogin": "cloudsa", "administratorLoginPassword": - "pass$w0rd"}, "location": "eastus", "tags": {"elastic_server": "1"}}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '390' - Content-Type: - - application/json - 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: PUT - 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-29T05:24:17.913Z"}' - headers: - azure-asyncoperation: - - 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: - - '74' - content-type: - - application/json; charset=utf-8 - date: - - 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/b71af493-14ad-48fe-9c8f-ab71673e7336?api-version=2017-12-01 - 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: - - '1199' - status: - code: 202 - message: Accepted -- 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/b71af493-14ad-48fe-9c8f-ab71673e7336?api-version=2017-12-01 - response: - body: - string: '{"name":"b71af493-14ad-48fe-9c8f-ab71673e7336","status":"InProgress","startTime":"2021-04-29T05:24:17.913Z"}' - headers: - cache-control: - - no-cache - content-length: - - '108' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 29 Apr 2021 05:25:18 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/b71af493-14ad-48fe-9c8f-ab71673e7336?api-version=2017-12-01 - response: - body: - string: '{"name":"b71af493-14ad-48fe-9c8f-ab71673e7336","status":"Succeeded","startTime":"2021-04-29T05:24:17.913Z"}' - headers: - cache-control: - - no-cache - content-length: - - '107' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 29 Apr 2021 05:26:18 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/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-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 - content-length: - - '970' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 29 Apr 2021 05:26:18 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: '{"properties": {"createMode": "Replica", "sourceServerId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_mysql_test_mysqlc1430c84/providers/Microsoft.DBforMySQL/servers/testserver21341"}, - "location": "eastus"}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '250' - Content-Type: - - application/json - 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: PUT - 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-29T05:26:20.4Z"}' - headers: - azure-asyncoperation: - - 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: - - '86' - content-type: - - application/json; charset=utf-8 - date: - - 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/90261ce2-782c-4044-a070-3ce7b3e5e60a?api-version=2017-12-01 - 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: 202 - message: Accepted -- 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/90261ce2-782c-4044-a070-3ce7b3e5e60a?api-version=2017-12-01 - response: - body: - string: '{"name":"90261ce2-782c-4044-a070-3ce7b3e5e60a","status":"InProgress","startTime":"2021-04-29T05:26:20.4Z"}' - headers: - cache-control: - - no-cache - content-length: - - '106' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 29 Apr 2021 05:26:50 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/90261ce2-782c-4044-a070-3ce7b3e5e60a?api-version=2017-12-01 - response: - body: - string: '{"name":"90261ce2-782c-4044-a070-3ce7b3e5e60a","status":"InProgress","startTime":"2021-04-29T05:26:20.4Z"}' - headers: - cache-control: - - no-cache - content-length: - - '106' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 29 Apr 2021 05:27:20 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/90261ce2-782c-4044-a070-3ce7b3e5e60a?api-version=2017-12-01 - response: - body: - string: '{"name":"90261ce2-782c-4044-a070-3ce7b3e5e60a","status":"InProgress","startTime":"2021-04-29T05:26:20.4Z"}' - headers: - cache-control: - - no-cache - content-length: - - '106' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 29 Apr 2021 05:27:50 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/90261ce2-782c-4044-a070-3ce7b3e5e60a?api-version=2017-12-01 - response: - body: - string: '{"name":"90261ce2-782c-4044-a070-3ce7b3e5e60a","status":"InProgress","startTime":"2021-04-29T05:26:20.4Z"}' - headers: - cache-control: - - no-cache - content-length: - - '106' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 29 Apr 2021 05:28:20 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/90261ce2-782c-4044-a070-3ce7b3e5e60a?api-version=2017-12-01 - response: - body: - string: '{"name":"90261ce2-782c-4044-a070-3ce7b3e5e60a","status":"InProgress","startTime":"2021-04-29T05:26:20.4Z"}' - headers: - cache-control: - - no-cache - content-length: - - '106' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 29 Apr 2021 05:28:49 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/90261ce2-782c-4044-a070-3ce7b3e5e60a?api-version=2017-12-01 - response: - body: - string: '{"name":"90261ce2-782c-4044-a070-3ce7b3e5e60a","status":"InProgress","startTime":"2021-04-29T05:26:20.4Z"}' - headers: - cache-control: - - no-cache - content-length: - - '106' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 29 Apr 2021 05:29:20 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/90261ce2-782c-4044-a070-3ce7b3e5e60a?api-version=2017-12-01 - response: - body: - string: '{"name":"90261ce2-782c-4044-a070-3ce7b3e5e60a","status":"InProgress","startTime":"2021-04-29T05:26:20.4Z"}' - headers: - cache-control: - - no-cache - content-length: - - '106' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 29 Apr 2021 05:29:50 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/90261ce2-782c-4044-a070-3ce7b3e5e60a?api-version=2017-12-01 - response: - body: - string: '{"name":"90261ce2-782c-4044-a070-3ce7b3e5e60a","status":"InProgress","startTime":"2021-04-29T05:26:20.4Z"}' - headers: - cache-control: - - no-cache - content-length: - - '106' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 29 Apr 2021 05:30:20 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/90261ce2-782c-4044-a070-3ce7b3e5e60a?api-version=2017-12-01 - response: - body: - string: '{"name":"90261ce2-782c-4044-a070-3ce7b3e5e60a","status":"InProgress","startTime":"2021-04-29T05:26:20.4Z"}' - headers: - cache-control: - - no-cache - content-length: - - '106' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 29 Apr 2021 05:30:51 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/90261ce2-782c-4044-a070-3ce7b3e5e60a?api-version=2017-12-01 - response: - body: - string: '{"name":"90261ce2-782c-4044-a070-3ce7b3e5e60a","status":"InProgress","startTime":"2021-04-29T05:26:20.4Z"}' - headers: - cache-control: - - no-cache - content-length: - - '106' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 29 Apr 2021 05:31:20 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/90261ce2-782c-4044-a070-3ce7b3e5e60a?api-version=2017-12-01 - response: - body: - string: '{"name":"90261ce2-782c-4044-a070-3ce7b3e5e60a","status":"InProgress","startTime":"2021-04-29T05:26:20.4Z"}' - headers: - cache-control: - - no-cache - content-length: - - '106' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 29 Apr 2021 05:31:51 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/90261ce2-782c-4044-a070-3ce7b3e5e60a?api-version=2017-12-01 - response: - body: - string: '{"name":"90261ce2-782c-4044-a070-3ce7b3e5e60a","status":"InProgress","startTime":"2021-04-29T05:26:20.4Z"}' - headers: - cache-control: - - no-cache - content-length: - - '106' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 29 Apr 2021 05:32:20 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/90261ce2-782c-4044-a070-3ce7b3e5e60a?api-version=2017-12-01 - response: - body: - string: '{"name":"90261ce2-782c-4044-a070-3ce7b3e5e60a","status":"InProgress","startTime":"2021-04-29T05:26:20.4Z"}' - headers: - cache-control: - - no-cache - content-length: - - '106' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 29 Apr 2021 05:32:51 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/90261ce2-782c-4044-a070-3ce7b3e5e60a?api-version=2017-12-01 - response: - body: - string: '{"name":"90261ce2-782c-4044-a070-3ce7b3e5e60a","status":"InProgress","startTime":"2021-04-29T05:26:20.4Z"}' - headers: - cache-control: - - no-cache - content-length: - - '106' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 29 Apr 2021 05:33:20 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/90261ce2-782c-4044-a070-3ce7b3e5e60a?api-version=2017-12-01 - response: - body: - string: '{"name":"90261ce2-782c-4044-a070-3ce7b3e5e60a","status":"InProgress","startTime":"2021-04-29T05:26:20.4Z"}' - headers: - cache-control: - - no-cache - content-length: - - '106' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 29 Apr 2021 05:33:50 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/90261ce2-782c-4044-a070-3ce7b3e5e60a?api-version=2017-12-01 - response: - body: - string: '{"name":"90261ce2-782c-4044-a070-3ce7b3e5e60a","status":"InProgress","startTime":"2021-04-29T05:26:20.4Z"}' - headers: - cache-control: - - no-cache - content-length: - - '106' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 29 Apr 2021 05:34:21 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/90261ce2-782c-4044-a070-3ce7b3e5e60a?api-version=2017-12-01 - response: - body: - string: '{"name":"90261ce2-782c-4044-a070-3ce7b3e5e60a","status":"Succeeded","startTime":"2021-04-29T05:26:20.4Z"}' - headers: - cache-control: - - no-cache - content-length: - - '105' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 29 Apr 2021 05:34:51 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/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-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 - content-length: - - '1116' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 29 Apr 2021 05:34:52 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: '{"properties": {"charset": "utf8", "collation": "utf8_general_ci"}}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '67' - Content-Type: - - application/json - 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: PUT - 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-29T05:34:52.253Z"}' - headers: - azure-asyncoperation: - - 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: - - '82' - content-type: - - application/json; charset=utf-8 - date: - - 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/4477c8b2-2295-4955-bdeb-e016be9749fe?api-version=2017-12-01 - 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: - - '1197' - status: - code: 202 - message: Accepted -- 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/4477c8b2-2295-4955-bdeb-e016be9749fe?api-version=2017-12-01 - response: - body: - string: '{"name":"4477c8b2-2295-4955-bdeb-e016be9749fe","status":"Succeeded","startTime":"2021-04-29T05:34:52.253Z"}' - headers: - cache-control: - - no-cache - content-length: - - '107' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 29 Apr 2021 05:35:07 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/resourceGroups/test_cli_mgmt_mysql_test_mysqlc1430c84/providers/Microsoft.DBForMySQL/servers/testserver21341/databases/testdatabase21341?api-version=2017-12-01 - response: - body: - string: '{"properties":{"charset":"utf8","collation":"utf8_general_ci"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_mysql_test_mysqlc1430c84/providers/Microsoft.DBforMySQL/servers/testserver21341/databases/testdatabase21341","name":"testdatabase21341","type":"Microsoft.DBforMySQL/servers/databases"}' - headers: - cache-control: - - no-cache - content-length: - - '339' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 29 Apr 2021 05:35:07 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: '{"properties": {"startIpAddress": "0.0.0.0", "endIpAddress": "255.255.255.255"}}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '80' - Content-Type: - - application/json - 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: PUT - 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-29T05:35:08.003Z"}' - headers: - azure-asyncoperation: - - 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: - - '87' - content-type: - - application/json; charset=utf-8 - date: - - 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/44edac2f-92eb-4184-9e90-70946d198a48?api-version=2017-12-01 - 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: - - '1196' - status: - code: 202 - message: Accepted -- 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/44edac2f-92eb-4184-9e90-70946d198a48?api-version=2017-12-01 - response: - body: - string: '{"name":"44edac2f-92eb-4184-9e90-70946d198a48","status":"Succeeded","startTime":"2021-04-29T05:35:08.003Z"}' - headers: - cache-control: - - no-cache - content-length: - - '107' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 29 Apr 2021 05:35:22 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/resourceGroups/test_cli_mgmt_mysql_test_mysqlc1430c84/providers/Microsoft.DBForMySQL/servers/testserver21341/firewallRules/firewallrule?api-version=2017-12-01 - response: - body: - string: '{"properties":{"startIpAddress":"0.0.0.0","endIpAddress":"255.255.255.255"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_mysql_test_mysqlc1430c84/providers/Microsoft.DBforMySQL/servers/testserver21341/firewallRules/firewallrule","name":"firewallrule","type":"Microsoft.DBforMySQL/servers/firewallRules"}' - headers: - cache-control: - - no-cache - content-length: - - '350' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 29 Apr 2021 05:35:22 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: '{"properties": {"state": "Enabled"}}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '36' - Content-Type: - - application/json - 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: PUT - 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-29T05:35:23.753Z"}' - headers: - azure-asyncoperation: - - 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: - - '88' - content-type: - - application/json; charset=utf-8 - date: - - 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/a841244f-8cce-4a6a-ae99-700b06499321?api-version=2017-12-01 - 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: - - '1195' - status: - code: 202 - message: Accepted -- 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/East%20US/securityAlertPoliciesAzureAsyncOperation/a841244f-8cce-4a6a-ae99-700b06499321?api-version=2017-12-01 - response: - body: - string: '{"name":"a841244f-8cce-4a6a-ae99-700b06499321","status":"Succeeded","startTime":"2021-04-29T05:35:23.753Z"}' - headers: - cache-control: - - no-cache - content-length: - - '107' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 29 Apr 2021 05:35: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/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-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' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 29 Apr 2021 05:35: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: '{"properties": {"state": "Disabled"}}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '37' - Content-Type: - - application/json - 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: PUT - 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-29T05:35:27.223Z"}' - headers: - azure-asyncoperation: - - 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: - - '88' - content-type: - - application/json; charset=utf-8 - date: - - 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/86381ce2-511d-4577-8303-6d5568c781a0?api-version=2017-12-01 - 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: - - '1194' - status: - code: 202 - message: Accepted -- 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/East%20US/securityAlertPoliciesAzureAsyncOperation/86381ce2-511d-4577-8303-6d5568c781a0?api-version=2017-12-01 - response: - body: - string: '{"name":"86381ce2-511d-4577-8303-6d5568c781a0","status":"Succeeded","startTime":"2021-04-29T05:35:27.223Z"}' - headers: - cache-control: - - no-cache - content-length: - - '107' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 29 Apr 2021 05:35:29 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/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-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: - - '520' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 29 Apr 2021 05:35:29 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - 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/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-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: - - '520' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 29 Apr 2021 05:35:29 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - 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/resourceGroups/test_cli_mgmt_mysql_test_mysqlc1430c84/providers/Microsoft.DBForMySQL/servers/testserver21341/firewallRules/firewallrule?api-version=2017-12-01 - response: - body: - string: '{"properties":{"startIpAddress":"0.0.0.0","endIpAddress":"255.255.255.255"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_mysql_test_mysqlc1430c84/providers/Microsoft.DBforMySQL/servers/testserver21341/firewallRules/firewallrule","name":"firewallrule","type":"Microsoft.DBforMySQL/servers/firewallRules"}' - headers: - cache-control: - - no-cache - content-length: - - '350' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 29 Apr 2021 05:35:29 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - 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/resourceGroups/test_cli_mgmt_mysql_test_mysqlc1430c84/providers/Microsoft.DBForMySQL/servers/testserver21341/databases/testdatabase21341?api-version=2017-12-01 - response: - body: - string: '{"properties":{"charset":"utf8","collation":"utf8_general_ci"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_mysql_test_mysqlc1430c84/providers/Microsoft.DBforMySQL/servers/testserver21341/databases/testdatabase21341","name":"testdatabase21341","type":"Microsoft.DBforMySQL/servers/databases"}' - headers: - cache-control: - - no-cache - content-length: - - '339' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 29 Apr 2021 05:35:30 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - 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/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-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 - content-length: - - '972' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 29 Apr 2021 05:35:30 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - 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/providers/Microsoft.DBForMySQL/operations?api-version=2017-12-01 - response: - body: - string: '{"value":[{"name":"Microsoft.DBforMySQL/servers/securityAlertPolicies/read","display":{"provider":"Microsoft - DB for MySQL","resource":"Server Threat Detection Policy","operation":"Get - server threat detection policy","description":"Retrieve details of the server - threat detection policy configured on a given server"}},{"name":"Microsoft.DBforMySQL/servers/securityAlertPolicies/write","display":{"provider":"Microsoft - DB for MySQL","resource":"Server Threat Detection Policy","operation":"Update - server threat detection policy","description":"Change the server threat detection - policy for a given server"}},{"name":"Microsoft.DBforMySQL/servers/securityAlertPolicies/read","display":{"provider":"Microsoft - DB for MySQL","resource":"Server Threat Detection Policy","operation":"List - server threat detection policies","description":"Retrieve a list of server - threat detection policies configured for a given server"}},{"name":"Microsoft.DBforMySQL/locations/securityAlertPoliciesOperationResults/read","display":{"provider":"Microsoft - DB for MySQL","resource":"Server threat detection operation result","operation":"List/Get - Server threat detection operation result.","description":"Return the list - of Server threat detection operation result."}},{"name":"Microsoft.DBforMySQL/servers/keys/read","display":{"provider":"Microsoft - DB for MySQL","resource":"Azure Database for MySQL Server Keys","operation":"List/Get - Azure Database for MySQL Server Key(s)","description":"Return the list of - server keys or gets the properties for the specified server key."}},{"name":"Microsoft.DBforMySQL/servers/keys/write","display":{"provider":"Microsoft - DB for MySQL","resource":"Azure Database for MySQL Server Keys","operation":"Create/Update - Azure Database for MySQL Server Keys","description":"Creates a key with the - specified parameters or update the properties or tags for the specified server - key."}},{"name":"Microsoft.DBforMySQL/servers/keys/delete","display":{"provider":"Microsoft - DB for MySQL","resource":"Azure Database for MySQL Server Keys","operation":"Delete - Azure Database for MySQL Server Key","description":"Deletes an existing server - key."}},{"name":"Microsoft.DBforMySQL/locations/serverKeyAzureAsyncOperation/read","display":{"provider":"Microsoft - DB for MySQL","resource":"Data Encryption server key operation","operation":"Data - Encryption server keys operation","description":"Gets in-progress operations - on transparent data encryption server keys"}},{"name":"Microsoft.DBforMySQL/locations/serverKeyOperationResults/read","display":{"provider":"Microsoft - DB for MySQL","resource":"Data Encryption server key operation","operation":"Data - Encryption server keys operation","description":"Gets in-progress operations - on data encryption server keys"}},{"name":"Microsoft.DBforMySQL/servers/exports/write","display":{"provider":"Microsoft - DB for MySQL","resource":"MySQL Server"}},{"name":"Microsoft.DBforMySQL/servers/exports/read","display":{"provider":"Microsoft - DB for MySQL","resource":"MySQL Server"}},{"name":"Microsoft.DBforMySQL/servers/exports/read","display":{"provider":"Microsoft - DB for MySQL","resource":"MySQL Server"}},{"name":"Microsoft.DBforMySQL/servers/upgrade/action","display":{"provider":"Microsoft - DB for MySQL","resource":"MySQL Server"}},{"name":"Microsoft.DBforMySQL/servers/start/action","display":{"provider":"Microsoft - DB for MySQL","resource":"MySQL Server","operation":"Start MySQL Server","description":"Starts - a specific server."}},{"name":"Microsoft.DBforMySQL/servers/stop/action","display":{"provider":"Microsoft - DB for MySQL","resource":"MySQL Server","operation":"Stop MySQL Server","description":"Stops - a specific server."}},{"name":"Microsoft.DBforMySQL/servers/advisors/read","display":{"provider":"Microsoft - DB for MySQL","resource":"Advisors","operation":"Return the list of advisors","description":"Return - the list of advisors"}},{"name":"Microsoft.DBforMySQL/servers/advisors/read","display":{"provider":"Microsoft - DB for MySQL","resource":"Advisors","operation":"Return an advisor","description":"Return - an advisor"}},{"name":"Microsoft.DBforMySQL/servers/advisors/recommendedActions/read","display":{"provider":"Microsoft - DB for MySQL","resource":"Recommended Actions","operation":"Return the list - of recommended actions","description":"Return the list of recommended actions"}},{"name":"Microsoft.DBforMySQL/servers/advisors/recommendedActions/read","display":{"provider":"Microsoft - DB for MySQL","resource":"Recommended Actions","operation":"Return the list - of recommended actions","description":"Return the list of recommended actions"}},{"name":"Microsoft.DBforMySQL/servers/advisors/recommendedActions/read","display":{"provider":"Microsoft - DB for MySQL","resource":"Recommended Actions","operation":"Return a recommended - action","description":"Return a recommended action"}},{"name":"Microsoft.DBforMySQL/servers/advisors/createRecommendedActionSession/action","display":{"provider":"Microsoft - DB for MySQL","resource":"Recommended Actions","operation":"Create a new recommendation - action session","description":"Create a new recommendation action session"}},{"name":"Microsoft.DBforMySQL/privateEndpointConnectionsApproval/action","display":{"provider":"Microsoft - DB for MySQL","resource":"Private Endpoint Connections Approval","operation":"Private - Endpoint Connections Approval","description":"Determines if user is allowed - to approve a private endpoint connection"}},{"name":"Microsoft.DBforMySQL/servers/privateEndpointConnectionsApproval/action","display":{"provider":"Microsoft - DB for MySQL","resource":"Private Endpoint Connections Approval","operation":"Private - Endpoint Connections Approval","description":"Determines if user is allowed - to approve a private endpoint connection"}},{"name":"Microsoft.DBforMySQL/servers/privateEndpointConnections/read","display":{"provider":"Microsoft - DB for MySQL","resource":"Azure Database for MySQL private endpoint connection","operation":"List/Get - Azure Database for MySQL private endpoint connection","description":"Returns - the list of private endpoint connections or gets the properties for the specified - private endpoint connection."}},{"name":"Microsoft.DBforMySQL/servers/privateEndpointConnections/delete","display":{"provider":"Microsoft - DB for MySQL","resource":"Azure Database for MySQL private endpoint connection","operation":"Delete - Azure Database for MySQL private endpoint connection","description":"Deletes - an existing private endpoint connection"}},{"name":"Microsoft.DBforMySQL/servers/privateEndpointConnections/write","display":{"provider":"Microsoft - DB for MySQL","resource":"Azure Database for MySQL private endpoint connection","operation":"Approve - or Reject Azure Database for MySQL private endpoint connection","description":"Approves - or rejects an existing private endpoint connection"}},{"name":"Microsoft.DBforMySQL/locations/privateEndpointConnectionOperationResults/read","display":{"provider":"Microsoft - DB for MySQL","resource":"Azure Database for MySQL private endpoint connection","operation":"Get - private endpoint connection operation status","description":"Gets the result - for a private endpoint connection operation"}},{"name":"Microsoft.DBforMySQL/locations/privateEndpointConnectionAzureAsyncOperation/read","display":{"provider":"Microsoft - DB for MySQL","resource":"Azure Database for MySQL private endpoint connection","operation":"Get - private endpoint connection operation status","description":"Gets the result - for a private endpoint connection operation"}},{"name":"Microsoft.DBforMySQL/locations/privateEndpointConnectionProxyOperationResults/read","display":{"provider":"Microsoft - DB for MySQL","resource":"Azure Database for MySQL Private Endpoint Connection - Proxy","operation":"Get private endpoint connection proxy operation status","description":"Gets - the result for a private endpoint connection proxy operation"}},{"name":"Microsoft.DBforMySQL/servers/privateEndpointConnectionProxies/validate/action","display":{"provider":"Microsoft - DB for MySQL","resource":"Azure Database for MySQL Private Endpoint Connection - Proxy","operation":"Validate Azure Database for MySQL Private Endpoint Connection - Creation by NRP","description":"Validates a private endpoint connection create - call from NRP side"}},{"name":"Microsoft.DBforMySQL/servers/privateEndpointConnectionProxies/read","display":{"provider":"Microsoft - DB for MySQL","resource":"Azure Database for MySQL Private Endpoint Connection - Proxy","operation":"List/Get Azure Database for MySQL Private Endpoint Connection - Proxy","description":"Returns the list of private endpoint connection proxies - or gets the properties for the specified private endpoint connection proxy."}},{"name":"Microsoft.DBforMySQL/servers/privateEndpointConnectionProxies/write","display":{"provider":"Microsoft - DB for MySQL","resource":"Azure Database for MySQL Private Endpoint Connection - Proxy","operation":"Create/Update Azure Database for MySQL Private Endpoint - Connection Proxy","description":"Creates a private endpoint connection proxy - with the specified parameters or updates the properties or tags for the specified - private endpoint connection proxy."}},{"name":"Microsoft.DBforMySQL/servers/privateEndpointConnectionProxies/delete","display":{"provider":"Microsoft - DB for MySQL","resource":"Azure Database for MySQL Private Endpoint Connection - Proxy","operation":"Delete Azure Database for MySQL Private Endpoint Connection - Proxy","description":"Deletes an existing private endpoint connection proxy"}},{"name":"Microsoft.DBforMySQL/locations/privateEndpointConnectionProxyAzureAsyncOperation/read","display":{"provider":"Microsoft - DB for MySQL","resource":"Azure Database for MySQL Private Endpoint Connection - Proxy","operation":"Get private endpoint connection proxy operation status","description":"Gets - the result for a private endpoint connection proxy operation"}},{"name":"Microsoft.DBforMySQL/servers/privateLinkResources/read","display":{"provider":"Microsoft - DB for MySQL","resource":"Azure Database for MySQL private link resource","operation":"Get - the private link resources for the corresponding MySQL Server","description":"Get - the private link resources for the corresponding MySQL Server"}},{"name":"Microsoft.DBforMySQL/servers/resetQueryPerformanceInsightData/action","display":{"provider":"Microsoft - DB for MySQL","resource":"Reset Query Performance Insight data","operation":"Reset - Query Performance Insight data","description":"Reset Query Performance Insight - data"}},{"name":"Microsoft.DBforMySQL/servers/queryTexts/action","display":{"provider":"Microsoft - DB for MySQL","resource":"Query Texts","operation":"List query texts for a - list of queries","description":"Return the texts for a list of queries"}},{"name":"Microsoft.DBforMySQL/servers/queryTexts/action","display":{"provider":"Microsoft - DB for MySQL","resource":"Query Texts","operation":"Return the text of a query","description":"Return - the text of a query"}},{"name":"Microsoft.DBforMySQL/servers/topQueryStatistics/read","display":{"provider":"Microsoft - DB for MySQL","resource":"Top Query Statistics","operation":"List/Get Query - Statistic(s) for top queries","description":"Return the list of Query Statistics - for the top queries."}},{"name":"Microsoft.DBforMySQL/servers/topQueryStatistics/read","display":{"provider":"Microsoft - DB for MySQL","resource":"Top Query Statistics","operation":"Get a Query Statistic","description":"Return - a Query Statistic"}},{"name":"Microsoft.DBforMySQL/servers/waitStatistics/read","display":{"provider":"Microsoft - DB for MySQL","resource":"Wait Statistics","operation":"List Wait Statistics - for an instance","description":"Return wait statistics for an instance"}},{"name":"Microsoft.DBforMySQL/servers/waitStatistics/read","display":{"provider":"Microsoft - DB for MySQL","resource":"Wait Statistics","operation":"Return a wait statistic","description":"Return - a wait statistic"}},{"name":"Microsoft.DBforMySQL/locations/performanceTiers/read","display":{"provider":"Microsoft - DB for MySQL","resource":"Performance Tiers","operation":"List Performance - Tiers","description":"Returns the list of Performance Tiers available."}},{"name":"Microsoft.DBforMySQL/servers/recoverableServers/read","display":{"provider":"Microsoft - DB for MySQL","resource":"Recoverable MySQL Server","operation":"Get Recoverable - MySQL Server info","description":"Return the recoverable MySQL Server info"}},{"name":"Microsoft.DBforMySQL/servers/replicas/read","display":{"provider":"Microsoft - DB for MySQL","resource":"MySQL Server","operation":"Get MySQL read replicas","description":"Get - read replicas of a MySQL server"}},{"name":"Microsoft.DBforMySQL/locations/operationResults/read","display":{"provider":"Microsoft - DB for MySQL","resource":"MySQL ResourceGroup based Server Operation Results","operation":"Get - MySQL ResourceGroup based Server Operation Results ","description":"Return - ResourceGroup based MySQL Server Operation Results"}},{"name":"Microsoft.DBforMySQL/servers/read","display":{"provider":"Microsoft - DB for MySQL","resource":"MySQL Server","operation":"List/Get MySQL Servers","description":"Return - the list of servers or gets the properties for the specified server."}},{"name":"Microsoft.DBforMySQL/servers/write","display":{"provider":"Microsoft - DB for MySQL","resource":"MySQL Server","operation":"Create/Update MySQL Server","description":"Creates - a server with the specified parameters or update the properties or tags for - the specified server."}},{"name":"Microsoft.DBforMySQL/servers/delete","display":{"provider":"Microsoft - DB for MySQL","resource":"MySQL Server","operation":"Delete MySQL Server","description":"Deletes - an existing server."}},{"name":"Microsoft.DBforMySQL/servers/performanceTiers/read","display":{"provider":"Microsoft - DB for MySQL","resource":"Performance Tiers","operation":"List Performance - Tiers","description":"Returns the list of Performance Tiers available."}},{"name":"Microsoft.DBforMySQL/locations/operationResults/read","display":{"provider":"Microsoft - DB for MySQL","resource":"MySQL Server Operation Results","operation":"Get - MySQL Server Operation Results","description":"Return MySQL Server Operation - Results"}},{"name":"Microsoft.DBforMySQL/servers/restart/action","display":{"provider":"Microsoft - DB for MySQL","resource":"MySQL Server","operation":"Restart MySQL Server","description":"Restarts - a specific server."}},{"name":"Microsoft.DBforMySQL/locations/securityAlertPoliciesAzureAsyncOperation/read","display":{"provider":"Microsoft - DB for MySQL","resource":"Server threat detection operation result","operation":"List/Get - Server threat detection operation result.","description":"Return the list - of Server threat detection operation result."}},{"name":"Microsoft.DBforMySQL/servers/administrators/read","display":{"provider":"Microsoft - DB for MySQL","resource":"Administrator of MySQL server.","operation":"Get - Administrators of MySQL server.","description":"Gets a list of MySQL server - administrators."}},{"name":"Microsoft.DBforMySQL/servers/administrators/write","display":{"provider":"Microsoft - DB for MySQL","resource":"Administrator of MySQL server.","operation":"Create/Update - Administrator of MySQL server.","description":"Creates or updates MySQL server - administrator with the specified parameters."}},{"name":"Microsoft.DBforMySQL/servers/administrators/delete","display":{"provider":"Microsoft - DB for MySQL","resource":"Administrator of MySQL server.","operation":"Delete - Administrator of MySQL server.","description":"Deletes an existing administrator - of MySQL server."}},{"name":"Microsoft.DBforMySQL/locations/administratorAzureAsyncOperation/read","display":{"provider":"Microsoft - DB for MySQL","resource":"Administrator opertiaons of MySQL server.","operation":"MySQL - server administrator operation","description":"Gets in-progress operations - on MySQL server administrators"}},{"name":"Microsoft.DBforMySQL/locations/administratorOperationResults/read","display":{"provider":"Microsoft - DB for MySQL","resource":"MySQL server operation results","operation":"Get - MySQL server operation results","description":"Return MySQL Server administrator - operation results"}},{"name":"Microsoft.DBforMySQL/register/action","display":{"provider":"Microsoft - DB for MySQL","resource":"Microsoft Database For MySQL Resource Provider","operation":"Register - MySQL Resource Provider","description":"Register MySQL Resource Provider"}},{"name":"Microsoft.DBforMySQL/servers/updateConfigurations/action","display":{"provider":"Microsoft - DB for MySQL","resource":"MySQL Server","operation":"Batch Update Server Configurations","description":"Update - configurations for the specified server"}},{"name":"Microsoft.DBforMySQL/checkNameAvailability/action","display":{"provider":"Microsoft - DB for MySQL","resource":"MySQL Server","operation":"Check Server Name Availability","description":"Verify - whether given server name is available for provisioning worldwide for a given - subscription."}},{"name":"Microsoft.DBforMySQL/servers/configurations/read","display":{"provider":"Microsoft - DB for MySQL","resource":"Configurations","operation":"List/Get Configurations","description":"Return - the list of configurations for a server or gets the properties for the specified - configuration."}},{"name":"Microsoft.DBforMySQL/servers/configurations/write","display":{"provider":"Microsoft - DB for MySQL","resource":"Configurations","operation":"Update Configuration","description":"Update - the value for the specified configuration"}},{"name":"Microsoft.DBforMySQL/servers/logFiles/read","display":{"provider":"Microsoft - DB for MySQL","resource":"MySQL LogFiles","operation":"List/Get MySQL LogFiles","description":"Return - the list of MySQL LogFiles."}},{"name":"Microsoft.DBforMySQL/servers/virtualNetworkRules/read","display":{"provider":"Microsoft - DB for MySQL","resource":"Virtual Network Rules","operation":"List/Get Virtual - Network Rule(s)","description":"Return the list of virtual network rules or - gets the properties for the specified virtual network rule."}},{"name":"Microsoft.DBforMySQL/servers/virtualNetworkRules/write","display":{"provider":"Microsoft - DB for MySQL","resource":"Virtual Network Rules","operation":"Create/Update - Virtual Network Rule","description":"Creates a virtual network rule with the - specified parameters or update the properties or tags for the specified virtual - network rule."}},{"name":"Microsoft.DBforMySQL/servers/virtualNetworkRules/delete","display":{"provider":"Microsoft - DB for MySQL","resource":"Virtual Network Rules","operation":"Delete Virtual - Network Rule","description":"Deletes an existing Virtual Network Rule"}},{"name":"Microsoft.DBforMySQL/locations/azureAsyncOperation/read","display":{"provider":"Microsoft - DB for MySQL","resource":"MySQL Server Operation Results","operation":"Get - MySQL Server Operation Results","description":"Return MySQL Server Operation - Results"}},{"name":"Microsoft.DBforMySQL/servers/databases/read","display":{"provider":"Microsoft - DB for MySQL","resource":"MySQL Databases","operation":"List/Get MySQL Database","description":"Return - the list of MySQL Databases or gets the properties for the specified Database."}},{"name":"Microsoft.DBforMySQL/servers/databases/write","display":{"provider":"Microsoft - DB for MySQL","resource":"MySQL Databases","operation":"Create/Update MySQL - Database","description":"Creates a MySQL Database with the specified parameters - or update the properties for the specified Database."}},{"name":"Microsoft.DBforMySQL/servers/databases/delete","display":{"provider":"Microsoft - DB for MySQL","resource":"MySQL Databases","operation":"Delete MySQL Database","description":"Deletes - an existing MySQL Database."}},{"name":"Microsoft.DBforMySQL/servers/firewallRules/read","display":{"provider":"Microsoft - DB for MySQL","resource":"Firewall Rules","operation":"List/Get Firewall Rules","description":"Return - the list of firewall rules for a server or gets the properties for the specified - firewall rule."}},{"name":"Microsoft.DBforMySQL/servers/firewallRules/write","display":{"provider":"Microsoft - DB for MySQL","resource":"Firewall Rules","operation":"Create/Update Firewall - Rule","description":"Creates a firewall rule with the specified parameters - or update an existing rule."}},{"name":"Microsoft.DBforMySQL/servers/firewallRules/delete","display":{"provider":"Microsoft - DB for MySQL","resource":"Firewall Rules","operation":"Delete Firewall Rule","description":"Deletes - an existing firewall rule."}},{"name":"Microsoft.DBforMySQL/performanceTiers/read","display":{"provider":"Microsoft - DB for MySQL","resource":"Performance Tiers","operation":"List Performance - Tiers","description":"Returns the list of Performance Tiers available."}},{"name":"Microsoft.DBforMySQL/operations/read","display":{"provider":"Microsoft - DB for MySQL","resource":"MySQL Operations","operation":"List/Get MySQL Operations","description":"Return - the list of MySQL Operations."}},{"name":"Microsoft.DBforMySQL/servers/providers/Microsoft.Insights/metricDefinitions/read","display":{"provider":"Microsoft - DB for MySQL","resource":"Database Metric Definition","operation":"Get database - metric definitions","description":"Return types of metrics that are available - for databases"},"properties":{"serviceSpecification":{"metricSpecifications":[{"name":"cpu_percent","displayName":"CPU - percent","displayDescription":"CPU percent","unit":"Percent","aggregationType":"Average","supportedAggregationTypes":["Average","Maximum","Minimum"],"fillGapWithZero":false,"category":"Saturation"},{"name":"memory_percent","displayName":"Memory - percent","displayDescription":"Memory percent","unit":"Percent","aggregationType":"Average","supportedAggregationTypes":["Average","Maximum","Minimum"],"fillGapWithZero":false,"category":"Saturation"},{"name":"io_consumption_percent","displayName":"IO - percent","displayDescription":"IO percent","unit":"Percent","aggregationType":"Average","supportedAggregationTypes":["Average","Maximum","Minimum"],"fillGapWithZero":false,"category":"Saturation"},{"name":"storage_percent","displayName":"Storage - percent","displayDescription":"Storage percent","unit":"Percent","aggregationType":"Average","supportedAggregationTypes":["Average","Maximum","Minimum"],"fillGapWithZero":false,"category":"Saturation"},{"name":"storage_used","displayName":"Storage - used","displayDescription":"Storage used","unit":"Bytes","aggregationType":"Average","supportedAggregationTypes":["Average","Maximum","Minimum"],"fillGapWithZero":false,"category":"Saturation"},{"name":"storage_limit","displayName":"Storage - limit","displayDescription":"Storage limit","unit":"Bytes","aggregationType":"Maximum","supportedAggregationTypes":["Maximum"],"fillGapWithZero":false,"category":"Saturation"},{"name":"serverlog_storage_percent","displayName":"Server - Log storage percent","displayDescription":"Server Log storage percent","unit":"Percent","aggregationType":"Average","supportedAggregationTypes":["Average","Maximum","Minimum"],"fillGapWithZero":false,"category":"Saturation"},{"name":"serverlog_storage_usage","displayName":"Server - Log storage used","displayDescription":"Server Log storage used","unit":"Bytes","aggregationType":"Average","supportedAggregationTypes":["Average","Maximum","Minimum"],"fillGapWithZero":false,"category":"Saturation"},{"name":"serverlog_storage_limit","displayName":"Server - Log storage limit","displayDescription":"Server Log storage limit","unit":"Bytes","aggregationType":"Maximum","supportedAggregationTypes":["Maximum"],"fillGapWithZero":false,"category":"Saturation"},{"name":"active_connections","displayName":"Active - Connections","displayDescription":"Active Connections","unit":"Count","aggregationType":"Average","supportedAggregationTypes":["Average","Maximum","Minimum"],"fillGapWithZero":false,"category":"Traffic"},{"name":"connections_failed","displayName":"Failed - Connections","displayDescription":"Failed Connections","unit":"Count","aggregationType":"Total","supportedAggregationTypes":["Total"],"fillGapWithZero":false,"category":"Errors"},{"name":"seconds_behind_master","displayName":"Replication - lag in seconds","displayDescription":"Replication lag in seconds","unit":"Count","aggregationType":"Maximum","supportedAggregationTypes":["Average","Maximum","Minimum"],"fillGapWithZero":false,"category":"Latency"},{"name":"backup_storage_used","displayName":"Backup - Storage used","displayDescription":"Backup Storage used","unit":"Bytes","aggregationType":"Average","supportedAggregationTypes":["Average","Maximum","Minimum"],"supportedTimeGrainTypes":["PT15M","PT30M","PT1H","PT6H","PT12H","P1D"],"fillGapWithZero":false,"category":"Saturation"},{"name":"network_bytes_egress","displayName":"Network - Out","displayDescription":"Network Out across active connections","unit":"Bytes","aggregationType":"Total","supportedAggregationTypes":["Total"],"fillGapWithZero":false,"category":"Traffic"},{"name":"network_bytes_ingress","displayName":"Network - In","displayDescription":"Network In across active connections","unit":"Bytes","aggregationType":"Total","supportedAggregationTypes":["Total"],"fillGapWithZero":false,"category":"Traffic"}]}}},{"name":"Microsoft.DBforMySQL/servers/providers/Microsoft.Insights/logDefinitions/read","display":{"provider":"Microsoft - DB for MySQL","resource":"The log definition of servers","operation":"Read - the log definitions","description":"Gets the available logs for MySQL servers"},"properties":{"serviceSpecification":{"logSpecifications":[{"name":"MySqlSlowLogs","displayName":"MySQL - Server Logs","blobDuration":"PT1H"},{"name":"MySqlAuditLogs","displayName":"MySQL - Audit Logs","blobDuration":"PT1H"}]}}},{"name":"Microsoft.DBforMySQL/servers/providers/Microsoft.Insights/diagnosticSettings/read","display":{"provider":"Microsoft - DB for MySQL","resource":"Database Metric Definition","operation":"Read diagnostic - setting","description":"Gets the disagnostic setting for the resource"}},{"name":"Microsoft.DBforMySQL/servers/providers/Microsoft.Insights/diagnosticSettings/write","display":{"provider":"Microsoft - DB for MySQL","resource":"Database Metric Definition","operation":"Write diagnostic - setting","description":"Creates or updates the diagnostic setting for the - resource"}},{"name":"Microsoft.DBforMySQL/flexibleServers/providers/Microsoft.Insights/metricDefinitions/read","display":{"provider":"Microsoft - DB for MySQL","resource":"Database Metric Definition","operation":"Get database - metric definitions","description":"Return types of metrics that are available - for databases"},"properties":{"serviceSpecification":{"metricSpecifications":[{"name":"cpu_percent","displayName":"Host - CPU Percent","displayDescription":"Host CPU Percent","unit":"Percent","aggregationType":"Maximum","supportedAggregationTypes":["Average","Maximum","Minimum"],"fillGapWithZero":false,"category":"Saturation"},{"name":"memory_percent","displayName":"Host - Memory Percent","displayDescription":"Host Memory Percent","unit":"Percent","aggregationType":"Maximum","supportedAggregationTypes":["Average","Maximum","Minimum"],"fillGapWithZero":false,"category":"Saturation"},{"name":"network_bytes_egress","displayName":"Host - Network Out","displayDescription":"Host Network egress in bytes","unit":"Bytes","aggregationType":"Total","supportedAggregationTypes":["Total"],"fillGapWithZero":false,"category":"Traffic"},{"name":"network_bytes_ingress","displayName":"Host - Network In","displayDescription":"Host Network ingress in bytes","unit":"Bytes","aggregationType":"Total","supportedAggregationTypes":["Total"],"fillGapWithZero":false,"category":"Traffic"},{"name":"active_connections","displayName":"Active - Connections","displayDescription":"Active Connections","unit":"Count","aggregationType":"Maximum","supportedAggregationTypes":["Average","Maximum","Minimum"],"fillGapWithZero":false,"category":"Traffic"},{"name":"total_connections","displayName":"Total - Connections","displayDescription":"Total Connections","unit":"Count","aggregationType":"Total","supportedAggregationTypes":["Total"],"fillGapWithZero":false,"category":"Traffic"},{"name":"aborted_connections","displayName":"Aborted - Connections","displayDescription":"Aborted Connections","unit":"Count","aggregationType":"Total","supportedAggregationTypes":["Total"],"fillGapWithZero":false,"category":"Errors"},{"name":"Queries","displayName":"Queries","displayDescription":"Queries","unit":"Count","aggregationType":"Total","supportedAggregationTypes":["Total"],"fillGapWithZero":false,"category":"Traffic"},{"name":"io_consumption_percent","displayName":"IO - Percent","displayDescription":"IO Percent","unit":"Percent","aggregationType":"Maximum","supportedAggregationTypes":["Average","Maximum","Minimum"],"fillGapWithZero":false,"category":"Saturation"},{"name":"storage_percent","displayName":"Storage - Percent","displayDescription":"Storage Percent","unit":"Percent","aggregationType":"Maximum","supportedAggregationTypes":["Average","Maximum","Minimum"],"fillGapWithZero":false,"category":"Saturation"},{"name":"storage_used","displayName":"Storage - Used","displayDescription":"Storage Used","unit":"Bytes","aggregationType":"Maximum","supportedAggregationTypes":["Average","Maximum","Minimum"],"fillGapWithZero":false,"category":"Saturation"},{"name":"storage_limit","displayName":"Storage - Limit","displayDescription":"Storage Limit","unit":"Bytes","aggregationType":"Maximum","supportedAggregationTypes":["Maximum"],"fillGapWithZero":false,"category":"Saturation"},{"name":"backup_storage_used","displayName":"Backup - Storage Used","displayDescription":"Backup Storage Used","unit":"Bytes","aggregationType":"Maximum","supportedAggregationTypes":["Average","Maximum","Minimum"],"supportedTimeGrainTypes":["PT15M","PT30M","PT1H","PT6H","PT12H","P1D"],"fillGapWithZero":false,"category":"Saturation"},{"name":"replication_lag","displayName":"Replication - Lag In Seconds","displayDescription":"Replication lag in seconds","unit":"Seconds","aggregationType":"Maximum","supportedAggregationTypes":["Average","Maximum","Minimum"],"fillGapWithZero":false,"category":"Latency"}]}}},{"name":"Microsoft.DBforMySQL/flexibleServers/providers/Microsoft.Insights/logDefinitions/read","display":{"provider":"Microsoft - DB for MySQL","resource":"The log definition of servers","operation":"Read - the log definitions","description":"Gets the available logs for MySQL servers"},"properties":{"serviceSpecification":{"logSpecifications":[{"name":"MySqlSlowLogs","displayName":"MySQL - Slow Logs","blobDuration":"PT1H"},{"name":"MySqlAuditLogs","displayName":"MySQL - Audit Logs","blobDuration":"PT1H"}]}}},{"name":"Microsoft.DBforMySQL/flexibleServers/providers/Microsoft.Insights/diagnosticSettings/read","display":{"provider":"Microsoft - DB for MySQL","resource":"Database Metric Definition","operation":"Read diagnostic - setting","description":"Gets the disagnostic setting for the resource"}},{"name":"Microsoft.DBforMySQL/flexibleServers/providers/Microsoft.Insights/diagnosticSettings/write","display":{"provider":"Microsoft - DB for MySQL","resource":"Database Metric Definition","operation":"Write diagnostic - setting","description":"Creates or updates the diagnostic setting for the - resource"}},{"name":"Microsoft.DBforMySQL/flexibleServers/read","display":{"provider":"Microsoft - DB for MySQL","resource":"MySQL Server","operation":"List/Get MySQL Servers","description":"Return - the list of servers or gets the properties for the specified server."}},{"name":"Microsoft.DBforMySQL/flexibleServers/write","display":{"provider":"Microsoft - DB for MySQL","resource":"MySQL Server","operation":"Create/Update MySQL Server","description":"Creates - a server with the specified parameters or update the properties or tags for - the specified server."}},{"name":"Microsoft.DBforMySQL/flexibleServers/delete","display":{"provider":"Microsoft - DB for MySQL","resource":"MySQL Server","operation":"Delete MySQL Server","description":"Deletes - an existing server."}}]}' - headers: - cache-control: - - no-cache - content-length: - - '31882' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 29 Apr 2021 05:35:30 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - 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: POST - 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-29T05:35:31.643Z"}' - headers: - azure-asyncoperation: - - 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: - - '75' - content-type: - - application/json; charset=utf-8 - date: - - 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/188e6ae5-03c2-4434-92f7-e51f332844c2?api-version=2017-12-01 - 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: - - '1199' - status: - code: 202 - message: Accepted -- 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/188e6ae5-03c2-4434-92f7-e51f332844c2?api-version=2017-12-01 - response: - body: - string: '{"name":"188e6ae5-03c2-4434-92f7-e51f332844c2","status":"InProgress","startTime":"2021-04-29T05:35:31.643Z"}' - headers: - cache-control: - - no-cache - content-length: - - '108' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 29 Apr 2021 05:35:46 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/188e6ae5-03c2-4434-92f7-e51f332844c2?api-version=2017-12-01 - response: - body: - string: '{"name":"188e6ae5-03c2-4434-92f7-e51f332844c2","status":"InProgress","startTime":"2021-04-29T05:35:31.643Z"}' - headers: - cache-control: - - no-cache - content-length: - - '108' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 29 Apr 2021 05:36:01 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/188e6ae5-03c2-4434-92f7-e51f332844c2?api-version=2017-12-01 - response: - body: - string: '{"name":"188e6ae5-03c2-4434-92f7-e51f332844c2","status":"InProgress","startTime":"2021-04-29T05:35:31.643Z"}' - headers: - cache-control: - - no-cache - content-length: - - '108' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 29 Apr 2021 05:36:16 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - 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/188e6ae5-03c2-4434-92f7-e51f332844c2?api-version=2017-12-01 - response: - body: - string: '{"name":"188e6ae5-03c2-4434-92f7-e51f332844c2","status":"Succeeded","startTime":"2021-04-29T05:35:31.643Z"}' - headers: - cache-control: - - no-cache - content-length: - - '107' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 29 Apr 2021 05:36:32 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/operationResults/188e6ae5-03c2-4434-92f7-e51f332844c2?api-version=2017-12-01 - response: - body: - string: '' - headers: - cache-control: - - no-cache - content-length: - - '0' - date: - - Thu, 29 Apr 2021 05:36:32 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: '{}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '2' - Content-Type: - - application/json - 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: PATCH - 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-29T05:36:32.387Z"}' - headers: - azure-asyncoperation: - - 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: - - '74' - content-type: - - application/json; charset=utf-8 - date: - - 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/01e1e0ee-75d5-4252-a452-f95b1d7093b7?api-version=2017-12-01 - 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: - - '1193' - status: - code: 202 - message: Accepted -- 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/01e1e0ee-75d5-4252-a452-f95b1d7093b7?api-version=2017-12-01 - response: - body: - string: '{"name":"01e1e0ee-75d5-4252-a452-f95b1d7093b7","status":"Succeeded","startTime":"2021-04-29T05:36:32.387Z"}' - headers: - cache-control: - - no-cache - content-length: - - '107' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 29 Apr 2021 05:37:33 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/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-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 - content-length: - - '972' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 29 Apr 2021 05:37:33 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: '{"name": "name1c1430c84", "type": "Microsoft.DBforMySQL"}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '57' - Content-Type: - - application/json - 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: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBForMySQL/checkNameAvailability?api-version=2017-12-01 - response: - body: - string: '{"nameAvailable":true,"message":""}' - headers: - cache-control: - - no-cache - content-length: - - '35' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 29 Apr 2021 05:37:34 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1198' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - 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: DELETE - 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-29T05:37:34.883Z"}' - headers: - azure-asyncoperation: - - 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: - - '84' - content-type: - - application/json; charset=utf-8 - date: - - 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/f2e7e1f7-6a37-468d-85aa-363a2145761c?api-version=2017-12-01 - 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-deletes: - - '14999' - status: - code: 202 - message: Accepted -- 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/f2e7e1f7-6a37-468d-85aa-363a2145761c?api-version=2017-12-01 - response: - body: - string: '{"name":"f2e7e1f7-6a37-468d-85aa-363a2145761c","status":"Succeeded","startTime":"2021-04-29T05:37:34.883Z"}' - headers: - cache-control: - - no-cache - content-length: - - '107' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 29 Apr 2021 05:37:50 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 - Content-Length: - - '0' - 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: DELETE - 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-29T05:37:51.26Z"}' - headers: - azure-asyncoperation: - - 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: - - '79' - content-type: - - application/json; charset=utf-8 - date: - - 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/83306d53-bdcc-4e8c-871e-c9e03ab7909c?api-version=2017-12-01 - 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-deletes: - - '14998' - status: - code: 202 - message: Accepted -- 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/83306d53-bdcc-4e8c-871e-c9e03ab7909c?api-version=2017-12-01 - response: - body: - string: '{"name":"83306d53-bdcc-4e8c-871e-c9e03ab7909c","status":"Succeeded","startTime":"2021-04-29T05:37:51.26Z"}' - headers: - cache-control: - - no-cache - content-length: - - '106' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 29 Apr 2021 05:38:06 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 - Content-Length: - - '0' - 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: DELETE - 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-29T05:38:06.527Z"}' - headers: - azure-asyncoperation: - - 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: - - '72' - content-type: - - application/json; charset=utf-8 - date: - - 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/3f0d3b5e-03cf-4174-8e2f-224209731bde?api-version=2017-12-01 - 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-deletes: - - '14997' - status: - code: 202 - message: Accepted -- 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/3f0d3b5e-03cf-4174-8e2f-224209731bde?api-version=2017-12-01 - response: - body: - string: '{"name":"3f0d3b5e-03cf-4174-8e2f-224209731bde","status":"Succeeded","startTime":"2021-04-29T05:38:06.527Z"}' - headers: - cache-control: - - no-cache - content-length: - - '107' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 29 Apr 2021 05:38:21 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 -version: 1 diff --git a/sdk/rdbms/azure-mgmt-rdbms/tests/test_cli_mgmt_mariadb.py b/sdk/rdbms/azure-mgmt-rdbms/tests/test_cli_mgmt_mariadb.py index 0e0611b6d7b5..34d2cb2e32d8 100644 --- a/sdk/rdbms/azure-mgmt-rdbms/tests/test_cli_mgmt_mariadb.py +++ b/sdk/rdbms/azure-mgmt-rdbms/tests/test_cli_mgmt_mariadb.py @@ -47,6 +47,7 @@ def setUp(self): azure.mgmt.rdbms.mariadb.MariaDBManagementClient ) + @unittest.skip('hard to test') @ResourceGroupPreparer(location=AZURE_LOCATION) def test_mariadb(self, resource_group): SERVER_NAME = "testserver21827" diff --git a/sdk/rdbms/azure-mgmt-rdbms/tests/test_cli_mgmt_mysql.py b/sdk/rdbms/azure-mgmt-rdbms/tests/test_cli_mgmt_mysql.py index cd68dcfbe7ed..196dadb6241a 100644 --- a/sdk/rdbms/azure-mgmt-rdbms/tests/test_cli_mgmt_mysql.py +++ b/sdk/rdbms/azure-mgmt-rdbms/tests/test_cli_mgmt_mysql.py @@ -47,6 +47,7 @@ def setUp(self): azure.mgmt.rdbms.mysql.MySQLManagementClient ) + @unittest.skip('hard to test') @ResourceGroupPreparer(location=AZURE_LOCATION) def test_mysql(self, resource_group): SERVER_NAME = "testserver21341"