diff --git a/sdk/network/azure-mgmt-dns/CHANGELOG.md b/sdk/network/azure-mgmt-dns/CHANGELOG.md index 987a49dde648..4dfdda7c6246 100644 --- a/sdk/network/azure-mgmt-dns/CHANGELOG.md +++ b/sdk/network/azure-mgmt-dns/CHANGELOG.md @@ -1,5 +1,9 @@ # Release History +## 8.0.0 (2021-04-14) + + -GA release + ## 8.0.0b1 (2021-03-10) This is beta preview version. diff --git a/sdk/network/azure-mgmt-dns/MANIFEST.in b/sdk/network/azure-mgmt-dns/MANIFEST.in index a3cb07df8765..3a9b6517412b 100644 --- a/sdk/network/azure-mgmt-dns/MANIFEST.in +++ b/sdk/network/azure-mgmt-dns/MANIFEST.in @@ -1,3 +1,4 @@ +include _meta.json recursive-include tests *.py *.yaml include *.md include azure/__init__.py diff --git a/sdk/network/azure-mgmt-dns/_meta.json b/sdk/network/azure-mgmt-dns/_meta.json new file mode 100644 index 000000000000..19cfa750a1e4 --- /dev/null +++ b/sdk/network/azure-mgmt-dns/_meta.json @@ -0,0 +1,8 @@ +{ + "autorest": "3.3.0", + "use": "@autorest/python@5.6.5", + "commit": "6fa6101166a28f1fd82d6a60b8038c9af236e2be", + "repository_url": "https://github.com/Azure/azure-rest-api-specs", + "autorest_command": "autorest specification/dns/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.5 --version=3.3.0", + "readme": "specification/dns/resource-manager/readme.md" +} \ No newline at end of file diff --git a/sdk/network/azure-mgmt-dns/azure/mgmt/dns/_configuration.py b/sdk/network/azure-mgmt-dns/azure/mgmt/dns/_configuration.py index 7396cc41e019..d071d8cb9d78 100644 --- a/sdk/network/azure-mgmt-dns/azure/mgmt/dns/_configuration.py +++ b/sdk/network/azure-mgmt-dns/azure/mgmt/dns/_configuration.py @@ -8,7 +8,7 @@ # Changes may cause incorrect behavior and will be lost if the code is # regenerated. # -------------------------------------------------------------------------- -from typing import Any +from typing import TYPE_CHECKING from azure.core.configuration import Configuration from azure.core.pipeline import policies @@ -16,6 +16,11 @@ from ._version import VERSION +if TYPE_CHECKING: + # pylint: disable=unused-import,ungrouped-imports + from typing import Any + + from azure.core.credentials import TokenCredential class DnsManagementClientConfiguration(Configuration): """Configuration for DnsManagementClient. diff --git a/sdk/network/azure-mgmt-dns/azure/mgmt/dns/_dns_management_client.py b/sdk/network/azure-mgmt-dns/azure/mgmt/dns/_dns_management_client.py index 1a6a08032b3b..018556c074ba 100644 --- a/sdk/network/azure-mgmt-dns/azure/mgmt/dns/_dns_management_client.py +++ b/sdk/network/azure-mgmt-dns/azure/mgmt/dns/_dns_management_client.py @@ -9,13 +9,22 @@ # regenerated. # -------------------------------------------------------------------------- -from azure.mgmt.core import ARMPipelineClient -from msrest import Serializer, Deserializer +from typing import TYPE_CHECKING +from azure.mgmt.core import ARMPipelineClient from azure.profiles import KnownProfiles, ProfileDefinition from azure.profiles.multiapiclient import MultiApiClientMixin +from msrest import Deserializer, Serializer + from ._configuration import DnsManagementClientConfiguration +if TYPE_CHECKING: + # pylint: disable=unused-import,ungrouped-imports + from typing import Any, Optional + + from azure.core.credentials import TokenCredential + from azure.core.pipeline.transport import HttpRequest, HttpResponse + class _SDKClient(object): def __init__(self, *args, **kwargs): """This is a fake class to support current implemetation of MultiApiClientMixin." @@ -38,9 +47,10 @@ class DnsManagementClient(MultiApiClientMixin, _SDKClient): :type credential: ~azure.core.credentials.TokenCredential :param subscription_id: Specifies the Azure subscription ID, which uniquely identifies the Microsoft Azure subscription. :type subscription_id: str - :param str api_version: API version to use if no profile is provided, or if - missing in profile. - :param str base_url: Service URL + :param api_version: API version to use if no profile is provided, or if missing in profile. + :type api_version: str + :param base_url: Service URL + :type base_url: str :param profile: A profile definition, from KnownProfiles to dict. :type profile: azure.profiles.KnownProfiles :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. @@ -59,9 +69,9 @@ def __init__( self, credential, # type: "TokenCredential" subscription_id, # type: str - api_version=None, - base_url=None, - profile=KnownProfiles.default, + api_version=None, # type: Optional[str] + base_url=None, # type: Optional[str] + profile=KnownProfiles.default, # type: KnownProfiles **kwargs # type: Any ): if not base_url: diff --git a/sdk/network/azure-mgmt-dns/azure/mgmt/dns/_version.py b/sdk/network/azure-mgmt-dns/azure/mgmt/dns/_version.py index 7cf3ebf6b364..84f10e0b7af6 100644 --- a/sdk/network/azure-mgmt-dns/azure/mgmt/dns/_version.py +++ b/sdk/network/azure-mgmt-dns/azure/mgmt/dns/_version.py @@ -9,5 +9,5 @@ # regenerated. # -------------------------------------------------------------------------- -VERSION = "8.0.0b1" +VERSION = "8.0.0" diff --git a/sdk/network/azure-mgmt-dns/azure/mgmt/dns/aio/_configuration.py b/sdk/network/azure-mgmt-dns/azure/mgmt/dns/aio/_configuration.py index 638315361f84..0a84eac865ac 100644 --- a/sdk/network/azure-mgmt-dns/azure/mgmt/dns/aio/_configuration.py +++ b/sdk/network/azure-mgmt-dns/azure/mgmt/dns/aio/_configuration.py @@ -8,7 +8,7 @@ # Changes may cause incorrect behavior and will be lost if the code is # regenerated. # -------------------------------------------------------------------------- -from typing import Any +from typing import Any, TYPE_CHECKING from azure.core.configuration import Configuration from azure.core.pipeline import policies @@ -16,6 +16,9 @@ from .._version import VERSION +if TYPE_CHECKING: + # pylint: disable=unused-import,ungrouped-imports + from azure.core.credentials_async import AsyncTokenCredential class DnsManagementClientConfiguration(Configuration): """Configuration for DnsManagementClient. @@ -31,8 +34,8 @@ class DnsManagementClientConfiguration(Configuration): def __init__( self, - credential, # type: "AsyncTokenCredential" - subscription_id, # type: str + credential: "AsyncTokenCredential", + subscription_id: str, **kwargs # type: Any ) -> None: if credential is None: diff --git a/sdk/network/azure-mgmt-dns/azure/mgmt/dns/aio/_dns_management_client.py b/sdk/network/azure-mgmt-dns/azure/mgmt/dns/aio/_dns_management_client.py index d462215a5947..a45870528b89 100644 --- a/sdk/network/azure-mgmt-dns/azure/mgmt/dns/aio/_dns_management_client.py +++ b/sdk/network/azure-mgmt-dns/azure/mgmt/dns/aio/_dns_management_client.py @@ -9,13 +9,20 @@ # regenerated. # -------------------------------------------------------------------------- -from azure.mgmt.core import AsyncARMPipelineClient -from msrest import Serializer, Deserializer +from typing import Any, Optional, TYPE_CHECKING +from azure.core.pipeline.transport import AsyncHttpResponse, HttpRequest +from azure.mgmt.core import AsyncARMPipelineClient from azure.profiles import KnownProfiles, ProfileDefinition from azure.profiles.multiapiclient import MultiApiClientMixin +from msrest import Deserializer, Serializer + from ._configuration import DnsManagementClientConfiguration +if TYPE_CHECKING: + # pylint: disable=unused-import,ungrouped-imports + from azure.core.credentials_async import AsyncTokenCredential + class _SDKClient(object): def __init__(self, *args, **kwargs): """This is a fake class to support current implemetation of MultiApiClientMixin." @@ -38,9 +45,10 @@ class DnsManagementClient(MultiApiClientMixin, _SDKClient): :type credential: ~azure.core.credentials_async.AsyncTokenCredential :param subscription_id: Specifies the Azure subscription ID, which uniquely identifies the Microsoft Azure subscription. :type subscription_id: str - :param str api_version: API version to use if no profile is provided, or if - missing in profile. - :param str base_url: Service URL + :param api_version: API version to use if no profile is provided, or if missing in profile. + :type api_version: str + :param base_url: Service URL + :type base_url: str :param profile: A profile definition, from KnownProfiles to dict. :type profile: azure.profiles.KnownProfiles :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. @@ -57,11 +65,11 @@ class DnsManagementClient(MultiApiClientMixin, _SDKClient): def __init__( self, - credential, # type: "AsyncTokenCredential" - subscription_id, # type: str - api_version=None, - base_url=None, - profile=KnownProfiles.default, + credential: "AsyncTokenCredential", + subscription_id: str, + api_version: Optional[str] = None, + base_url: Optional[str] = None, + profile: KnownProfiles = KnownProfiles.default, **kwargs # type: Any ) -> None: if not base_url: diff --git a/sdk/network/azure-mgmt-dns/azure/mgmt/dns/v2016_04_01/__init__.py b/sdk/network/azure-mgmt-dns/azure/mgmt/dns/v2016_04_01/__init__.py index 34fbcbfae313..a21e1fdf48bb 100644 --- a/sdk/network/azure-mgmt-dns/azure/mgmt/dns/v2016_04_01/__init__.py +++ b/sdk/network/azure-mgmt-dns/azure/mgmt/dns/v2016_04_01/__init__.py @@ -7,6 +7,9 @@ # -------------------------------------------------------------------------- from ._dns_management_client import DnsManagementClient +from ._version import VERSION + +__version__ = VERSION __all__ = ['DnsManagementClient'] try: diff --git a/sdk/network/azure-mgmt-dns/azure/mgmt/dns/v2016_04_01/_configuration.py b/sdk/network/azure-mgmt-dns/azure/mgmt/dns/v2016_04_01/_configuration.py index 3e19ebde305a..4bbde6c0b319 100644 --- a/sdk/network/azure-mgmt-dns/azure/mgmt/dns/v2016_04_01/_configuration.py +++ b/sdk/network/azure-mgmt-dns/azure/mgmt/dns/v2016_04_01/_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 DnsManagementClientConfiguration(Configuration): """Configuration for DnsManagementClient. diff --git a/sdk/network/azure-mgmt-dns/azure/mgmt/dns/v2016_04_01/_dns_management_client.py b/sdk/network/azure-mgmt-dns/azure/mgmt/dns/v2016_04_01/_dns_management_client.py index 13bedd153c42..029bb1d755f7 100644 --- a/sdk/network/azure-mgmt-dns/azure/mgmt/dns/v2016_04_01/_dns_management_client.py +++ b/sdk/network/azure-mgmt-dns/azure/mgmt/dns/v2016_04_01/_dns_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 DnsManagementClientConfiguration from .operations import RecordSetsOperations @@ -61,6 +62,24 @@ def __init__( self.zones = ZonesOperations( 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/network/azure-mgmt-dns/azure/mgmt/dns/v2016_04_01/_metadata.json b/sdk/network/azure-mgmt-dns/azure/mgmt/dns/v2016_04_01/_metadata.json index 27c5318d2873..851a947eeb48 100644 --- a/sdk/network/azure-mgmt-dns/azure/mgmt/dns/v2016_04_01/_metadata.json +++ b/sdk/network/azure-mgmt-dns/azure/mgmt/dns/v2016_04_01/_metadata.json @@ -9,7 +9,9 @@ "custom_base_url": null, "azure_arm": true, "has_lro_operations": true, - "client_side_validation": false + "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\": [\"DnsManagementClientConfiguration\"]}}, \"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\": [\"DnsManagementClientConfiguration\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}, \"azurecore\": {\"azure.core.pipeline.transport\": [\"AsyncHttpResponse\", \"HttpRequest\"]}}}" }, "global_parameters": { "sync": { @@ -28,13 +30,13 @@ }, "async": { "credential": { - "signature": "credential, # type: \"AsyncTokenCredential\"", + "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, # type: str", + "signature": "subscription_id: str,", "description": "The ID of the target subscription.", "docstring_type": "str", "required": true @@ -42,21 +44,61 @@ }, "constant": { }, - "call": "credential, subscription_id" + "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 + "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": { "record_sets": "RecordSetsOperations", "zones": "ZonesOperations" - }, - "operation_mixins": { - }, - "sync_imports": "None", - "async_imports": "None" + } } \ No newline at end of file diff --git a/sdk/network/azure-mgmt-dns/azure/mgmt/dns/v2016_04_01/_version.py b/sdk/network/azure-mgmt-dns/azure/mgmt/dns/v2016_04_01/_version.py new file mode 100644 index 000000000000..5673000dce3f --- /dev/null +++ b/sdk/network/azure-mgmt-dns/azure/mgmt/dns/v2016_04_01/_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.0.0b2" diff --git a/sdk/network/azure-mgmt-dns/azure/mgmt/dns/v2016_04_01/aio/_configuration.py b/sdk/network/azure-mgmt-dns/azure/mgmt/dns/v2016_04_01/aio/_configuration.py index 18caafafa738..819efcdcdc67 100644 --- a/sdk/network/azure-mgmt-dns/azure/mgmt/dns/v2016_04_01/aio/_configuration.py +++ b/sdk/network/azure-mgmt-dns/azure/mgmt/dns/v2016_04_01/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 DnsManagementClientConfiguration(Configuration): """Configuration for DnsManagementClient. diff --git a/sdk/network/azure-mgmt-dns/azure/mgmt/dns/v2016_04_01/aio/_dns_management_client.py b/sdk/network/azure-mgmt-dns/azure/mgmt/dns/v2016_04_01/aio/_dns_management_client.py index 0d012267c513..bcad725200ac 100644 --- a/sdk/network/azure-mgmt-dns/azure/mgmt/dns/v2016_04_01/aio/_dns_management_client.py +++ b/sdk/network/azure-mgmt-dns/azure/mgmt/dns/v2016_04_01/aio/_dns_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 @@ -58,6 +59,23 @@ def __init__( self.zones = ZonesOperations( 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/network/azure-mgmt-dns/azure/mgmt/dns/v2016_04_01/aio/operations/_zones_operations.py b/sdk/network/azure-mgmt-dns/azure/mgmt/dns/v2016_04_01/aio/operations/_zones_operations.py index 8f3209b48d45..7bdb708bee0c 100644 --- a/sdk/network/azure-mgmt-dns/azure/mgmt/dns/v2016_04_01/aio/operations/_zones_operations.py +++ b/sdk/network/azure-mgmt-dns/azure/mgmt/dns/v2016_04_01/aio/operations/_zones_operations.py @@ -197,8 +197,8 @@ async def begin_delete( :type if_match: 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: Pass in True if you'd like the AsyncARMPolling polling method, + False for no polling, or your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either ZoneDeleteResult or the result of cls(response) diff --git a/sdk/network/azure-mgmt-dns/azure/mgmt/dns/v2016_04_01/operations/_zones_operations.py b/sdk/network/azure-mgmt-dns/azure/mgmt/dns/v2016_04_01/operations/_zones_operations.py index 108b43d0cf5a..c7a184a37bdc 100644 --- a/sdk/network/azure-mgmt-dns/azure/mgmt/dns/v2016_04_01/operations/_zones_operations.py +++ b/sdk/network/azure-mgmt-dns/azure/mgmt/dns/v2016_04_01/operations/_zones_operations.py @@ -204,8 +204,8 @@ def begin_delete( :type if_match: 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: Pass in True if you'd like the ARMPolling polling method, + False for no polling, or your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either ZoneDeleteResult or the result of cls(response) diff --git a/sdk/network/azure-mgmt-dns/azure/mgmt/dns/v2018_03_01_preview/__init__.py b/sdk/network/azure-mgmt-dns/azure/mgmt/dns/v2018_03_01_preview/__init__.py index 34fbcbfae313..a21e1fdf48bb 100644 --- a/sdk/network/azure-mgmt-dns/azure/mgmt/dns/v2018_03_01_preview/__init__.py +++ b/sdk/network/azure-mgmt-dns/azure/mgmt/dns/v2018_03_01_preview/__init__.py @@ -7,6 +7,9 @@ # -------------------------------------------------------------------------- from ._dns_management_client import DnsManagementClient +from ._version import VERSION + +__version__ = VERSION __all__ = ['DnsManagementClient'] try: diff --git a/sdk/network/azure-mgmt-dns/azure/mgmt/dns/v2018_03_01_preview/_configuration.py b/sdk/network/azure-mgmt-dns/azure/mgmt/dns/v2018_03_01_preview/_configuration.py index 4b85d275a3f7..cb498028e61d 100644 --- a/sdk/network/azure-mgmt-dns/azure/mgmt/dns/v2018_03_01_preview/_configuration.py +++ b/sdk/network/azure-mgmt-dns/azure/mgmt/dns/v2018_03_01_preview/_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 DnsManagementClientConfiguration(Configuration): """Configuration for DnsManagementClient. diff --git a/sdk/network/azure-mgmt-dns/azure/mgmt/dns/v2018_03_01_preview/_dns_management_client.py b/sdk/network/azure-mgmt-dns/azure/mgmt/dns/v2018_03_01_preview/_dns_management_client.py index fcf6ccb9f8f0..efccda800ec4 100644 --- a/sdk/network/azure-mgmt-dns/azure/mgmt/dns/v2018_03_01_preview/_dns_management_client.py +++ b/sdk/network/azure-mgmt-dns/azure/mgmt/dns/v2018_03_01_preview/_dns_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 DnsManagementClientConfiguration from .operations import RecordSetsOperations @@ -61,6 +62,24 @@ def __init__( self.zones = ZonesOperations( 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/network/azure-mgmt-dns/azure/mgmt/dns/v2018_03_01_preview/_metadata.json b/sdk/network/azure-mgmt-dns/azure/mgmt/dns/v2018_03_01_preview/_metadata.json index 2f92fab3ba2d..688974d9598e 100644 --- a/sdk/network/azure-mgmt-dns/azure/mgmt/dns/v2018_03_01_preview/_metadata.json +++ b/sdk/network/azure-mgmt-dns/azure/mgmt/dns/v2018_03_01_preview/_metadata.json @@ -9,7 +9,9 @@ "custom_base_url": null, "azure_arm": true, "has_lro_operations": true, - "client_side_validation": false + "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\": [\"DnsManagementClientConfiguration\"]}}, \"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\": [\"DnsManagementClientConfiguration\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}, \"azurecore\": {\"azure.core.pipeline.transport\": [\"AsyncHttpResponse\", \"HttpRequest\"]}}}" }, "global_parameters": { "sync": { @@ -28,13 +30,13 @@ }, "async": { "credential": { - "signature": "credential, # type: \"AsyncTokenCredential\"", + "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, # type: str", + "signature": "subscription_id: str,", "description": "The ID of the target subscription.", "docstring_type": "str", "required": true @@ -42,21 +44,61 @@ }, "constant": { }, - "call": "credential, subscription_id" + "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 + "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": { "record_sets": "RecordSetsOperations", "zones": "ZonesOperations" - }, - "operation_mixins": { - }, - "sync_imports": "None", - "async_imports": "None" + } } \ No newline at end of file diff --git a/sdk/network/azure-mgmt-dns/azure/mgmt/dns/v2018_03_01_preview/_version.py b/sdk/network/azure-mgmt-dns/azure/mgmt/dns/v2018_03_01_preview/_version.py new file mode 100644 index 000000000000..5673000dce3f --- /dev/null +++ b/sdk/network/azure-mgmt-dns/azure/mgmt/dns/v2018_03_01_preview/_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.0.0b2" diff --git a/sdk/network/azure-mgmt-dns/azure/mgmt/dns/v2018_03_01_preview/aio/_configuration.py b/sdk/network/azure-mgmt-dns/azure/mgmt/dns/v2018_03_01_preview/aio/_configuration.py index bdbb814ae1ed..b16605df59f1 100644 --- a/sdk/network/azure-mgmt-dns/azure/mgmt/dns/v2018_03_01_preview/aio/_configuration.py +++ b/sdk/network/azure-mgmt-dns/azure/mgmt/dns/v2018_03_01_preview/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 DnsManagementClientConfiguration(Configuration): """Configuration for DnsManagementClient. diff --git a/sdk/network/azure-mgmt-dns/azure/mgmt/dns/v2018_03_01_preview/aio/_dns_management_client.py b/sdk/network/azure-mgmt-dns/azure/mgmt/dns/v2018_03_01_preview/aio/_dns_management_client.py index 561216f16f3a..acf324682771 100644 --- a/sdk/network/azure-mgmt-dns/azure/mgmt/dns/v2018_03_01_preview/aio/_dns_management_client.py +++ b/sdk/network/azure-mgmt-dns/azure/mgmt/dns/v2018_03_01_preview/aio/_dns_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 @@ -58,6 +59,23 @@ def __init__( self.zones = ZonesOperations( 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/network/azure-mgmt-dns/azure/mgmt/dns/v2018_03_01_preview/aio/operations/_zones_operations.py b/sdk/network/azure-mgmt-dns/azure/mgmt/dns/v2018_03_01_preview/aio/operations/_zones_operations.py index 3da380ae47e4..0a8e5e605719 100644 --- a/sdk/network/azure-mgmt-dns/azure/mgmt/dns/v2018_03_01_preview/aio/operations/_zones_operations.py +++ b/sdk/network/azure-mgmt-dns/azure/mgmt/dns/v2018_03_01_preview/aio/operations/_zones_operations.py @@ -192,8 +192,8 @@ async def begin_delete( :type if_match: 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: Pass in True if you'd like the AsyncARMPolling polling method, + False for no polling, or your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) diff --git a/sdk/network/azure-mgmt-dns/azure/mgmt/dns/v2018_03_01_preview/operations/_zones_operations.py b/sdk/network/azure-mgmt-dns/azure/mgmt/dns/v2018_03_01_preview/operations/_zones_operations.py index 773b93dadd92..0ff736df2b55 100644 --- a/sdk/network/azure-mgmt-dns/azure/mgmt/dns/v2018_03_01_preview/operations/_zones_operations.py +++ b/sdk/network/azure-mgmt-dns/azure/mgmt/dns/v2018_03_01_preview/operations/_zones_operations.py @@ -199,8 +199,8 @@ def begin_delete( :type if_match: 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: Pass in True if you'd like the ARMPolling polling method, + False for no polling, or your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) diff --git a/sdk/network/azure-mgmt-dns/azure/mgmt/dns/v2018_05_01/__init__.py b/sdk/network/azure-mgmt-dns/azure/mgmt/dns/v2018_05_01/__init__.py index 34fbcbfae313..a21e1fdf48bb 100644 --- a/sdk/network/azure-mgmt-dns/azure/mgmt/dns/v2018_05_01/__init__.py +++ b/sdk/network/azure-mgmt-dns/azure/mgmt/dns/v2018_05_01/__init__.py @@ -7,6 +7,9 @@ # -------------------------------------------------------------------------- from ._dns_management_client import DnsManagementClient +from ._version import VERSION + +__version__ = VERSION __all__ = ['DnsManagementClient'] try: diff --git a/sdk/network/azure-mgmt-dns/azure/mgmt/dns/v2018_05_01/_configuration.py b/sdk/network/azure-mgmt-dns/azure/mgmt/dns/v2018_05_01/_configuration.py index 425269cc68d0..c046b7b9737d 100644 --- a/sdk/network/azure-mgmt-dns/azure/mgmt/dns/v2018_05_01/_configuration.py +++ b/sdk/network/azure-mgmt-dns/azure/mgmt/dns/v2018_05_01/_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 DnsManagementClientConfiguration(Configuration): """Configuration for DnsManagementClient. diff --git a/sdk/network/azure-mgmt-dns/azure/mgmt/dns/v2018_05_01/_dns_management_client.py b/sdk/network/azure-mgmt-dns/azure/mgmt/dns/v2018_05_01/_dns_management_client.py index 84eb7937d397..089a1436d217 100644 --- a/sdk/network/azure-mgmt-dns/azure/mgmt/dns/v2018_05_01/_dns_management_client.py +++ b/sdk/network/azure-mgmt-dns/azure/mgmt/dns/v2018_05_01/_dns_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 DnsManagementClientConfiguration from .operations import RecordSetsOperations @@ -66,6 +67,24 @@ def __init__( self.dns_resource_reference = DnsResourceReferenceOperations( 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'), + } + 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/network/azure-mgmt-dns/azure/mgmt/dns/v2018_05_01/_metadata.json b/sdk/network/azure-mgmt-dns/azure/mgmt/dns/v2018_05_01/_metadata.json index 7f81bc6c1e4b..6715ff309d7c 100644 --- a/sdk/network/azure-mgmt-dns/azure/mgmt/dns/v2018_05_01/_metadata.json +++ b/sdk/network/azure-mgmt-dns/azure/mgmt/dns/v2018_05_01/_metadata.json @@ -9,7 +9,9 @@ "custom_base_url": null, "azure_arm": true, "has_lro_operations": true, - "client_side_validation": false + "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\": [\"DnsManagementClientConfiguration\"]}}, \"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\": [\"DnsManagementClientConfiguration\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}, \"azurecore\": {\"azure.core.pipeline.transport\": [\"AsyncHttpResponse\", \"HttpRequest\"]}}}" }, "global_parameters": { "sync": { @@ -28,13 +30,13 @@ }, "async": { "credential": { - "signature": "credential, # type: \"AsyncTokenCredential\"", + "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, # type: str", + "signature": "subscription_id: str,", "description": "Specifies the Azure subscription ID, which uniquely identifies the Microsoft Azure subscription.", "docstring_type": "str", "required": true @@ -42,22 +44,62 @@ }, "constant": { }, - "call": "credential, subscription_id" + "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 + "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": { "record_sets": "RecordSetsOperations", "zones": "ZonesOperations", "dns_resource_reference": "DnsResourceReferenceOperations" - }, - "operation_mixins": { - }, - "sync_imports": "None", - "async_imports": "None" + } } \ No newline at end of file diff --git a/sdk/network/azure-mgmt-dns/azure/mgmt/dns/v2018_05_01/_version.py b/sdk/network/azure-mgmt-dns/azure/mgmt/dns/v2018_05_01/_version.py new file mode 100644 index 000000000000..5673000dce3f --- /dev/null +++ b/sdk/network/azure-mgmt-dns/azure/mgmt/dns/v2018_05_01/_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.0.0b2" diff --git a/sdk/network/azure-mgmt-dns/azure/mgmt/dns/v2018_05_01/aio/_configuration.py b/sdk/network/azure-mgmt-dns/azure/mgmt/dns/v2018_05_01/aio/_configuration.py index c7393ce84be3..c2fdc75518e1 100644 --- a/sdk/network/azure-mgmt-dns/azure/mgmt/dns/v2018_05_01/aio/_configuration.py +++ b/sdk/network/azure-mgmt-dns/azure/mgmt/dns/v2018_05_01/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 DnsManagementClientConfiguration(Configuration): """Configuration for DnsManagementClient. diff --git a/sdk/network/azure-mgmt-dns/azure/mgmt/dns/v2018_05_01/aio/_dns_management_client.py b/sdk/network/azure-mgmt-dns/azure/mgmt/dns/v2018_05_01/aio/_dns_management_client.py index f4a84435efdc..37e833ed55bb 100644 --- a/sdk/network/azure-mgmt-dns/azure/mgmt/dns/v2018_05_01/aio/_dns_management_client.py +++ b/sdk/network/azure-mgmt-dns/azure/mgmt/dns/v2018_05_01/aio/_dns_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 @@ -63,6 +64,23 @@ def __init__( self.dns_resource_reference = DnsResourceReferenceOperations( 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'), + } + 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/network/azure-mgmt-dns/azure/mgmt/dns/v2018_05_01/aio/operations/_zones_operations.py b/sdk/network/azure-mgmt-dns/azure/mgmt/dns/v2018_05_01/aio/operations/_zones_operations.py index c91434a193f2..0a7d6022a51c 100644 --- a/sdk/network/azure-mgmt-dns/azure/mgmt/dns/v2018_05_01/aio/operations/_zones_operations.py +++ b/sdk/network/azure-mgmt-dns/azure/mgmt/dns/v2018_05_01/aio/operations/_zones_operations.py @@ -192,8 +192,8 @@ async def begin_delete( :type if_match: 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: Pass in True if you'd like the AsyncARMPolling polling method, + False for no polling, or your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) diff --git a/sdk/network/azure-mgmt-dns/azure/mgmt/dns/v2018_05_01/operations/_zones_operations.py b/sdk/network/azure-mgmt-dns/azure/mgmt/dns/v2018_05_01/operations/_zones_operations.py index e4edd91a912a..f3b78d9cff35 100644 --- a/sdk/network/azure-mgmt-dns/azure/mgmt/dns/v2018_05_01/operations/_zones_operations.py +++ b/sdk/network/azure-mgmt-dns/azure/mgmt/dns/v2018_05_01/operations/_zones_operations.py @@ -199,8 +199,8 @@ def begin_delete( :type if_match: 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: Pass in True if you'd like the ARMPolling polling method, + False for no polling, or your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) diff --git a/sdk/network/azure-mgmt-dns/setup.py b/sdk/network/azure-mgmt-dns/setup.py index 43ecde3ac721..45a5c181c015 100644 --- a/sdk/network/azure-mgmt-dns/setup.py +++ b/sdk/network/azure-mgmt-dns/setup.py @@ -80,7 +80,7 @@ 'azure.mgmt', ]), install_requires=[ - 'msrest>=0.5.0', + 'msrest>=0.6.21', 'azure-common~=1.1', 'azure-mgmt-core>=1.2.0,<2.0.0', ], diff --git a/sdk/network/azure-mgmt-dns/tests/recordings/test_mgmt_dns.test_private_zone.yaml b/sdk/network/azure-mgmt-dns/tests/recordings/test_mgmt_dns.test_private_zone.yaml deleted file mode 100644 index 949e76e2790d..000000000000 --- a/sdk/network/azure-mgmt-dns/tests/recordings/test_mgmt_dns.test_private_zone.yaml +++ /dev/null @@ -1,337 +0,0 @@ -interactions: -- request: - body: 'b''b\''b\\\''b\\\\\\\''{"location": "global", "properties": {"zoneType": - "Private", "registrationVirtualNetworks": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_dns_test_private_zonecd720cdc/providers/Microsoft.Network/virtualNetworks/pvtzonevnetcd720cdcreg"}], - "resolutionVirtualNetworks": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_dns_test_private_zonecd720cdc/providers/Microsoft.Network/virtualNetworks/pvtzonevnetcd720cdcres"}]}}\\\\\\\''\\\''\''''' - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['495'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.4 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.5.0 azure-mgmt-dns/2.1.0 Azure-SDK-For-Python] - accept-language: [en-US] - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_dns_test_private_zonecd720cdc/providers/Microsoft.Network/dnsZones/pydns.comcd720cdc?api-version=2018-05-01 - response: - body: {string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/test_mgmt_dns_test_private_zonecd720cdc\/providers\/Microsoft.Network\/dnszones\/pydns.comcd720cdc","name":"pydns.comcd720cdc","type":"Microsoft.Network\/dnszones","etag":"00000002-0000-0000-70eb-3b1b4149d401","location":"global","tags":{},"properties":{"maxNumberOfRecordSets":5000,"maxNumberOfRecordsPerRecordSet":null,"nameServers":null,"numberOfRecordSets":1,"registrationVirtualNetworks":[{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/test_mgmt_dns_test_private_zonecd720cdc\/providers\/Microsoft.Network\/virtualNetworks\/pvtzonevnetcd720cdcreg"}],"resolutionVirtualNetworks":[{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/test_mgmt_dns_test_private_zonecd720cdc\/providers\/Microsoft.Network\/virtualNetworks\/pvtzonevnetcd720cdcres"}],"zoneType":"Private"}}'} - headers: - cache-control: [private] - content-length: ['907'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 10 Sep 2018 20:01:48 GMT'] - etag: [00000002-0000-0000-70eb-3b1b4149d401] - server: [Microsoft-IIS/8.5] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-aspnet-version: [4.0.30319] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-resource-requests: ['11999'] - x-powered-by: [ASP.NET] - status: {code: 201, message: Created} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - User-Agent: [python/3.6.4 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.5.0 azure-mgmt-dns/2.1.0 Azure-SDK-For-Python] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_dns_test_private_zonecd720cdc/providers/Microsoft.Network/dnsZones/pydns.comcd720cdc?api-version=2018-05-01 - response: - body: {string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/test_mgmt_dns_test_private_zonecd720cdc\/providers\/Microsoft.Network\/dnszones\/pydns.comcd720cdc","name":"pydns.comcd720cdc","type":"Microsoft.Network\/dnszones","etag":"00000002-0000-0000-70eb-3b1b4149d401","location":"global","tags":{},"properties":{"maxNumberOfRecordSets":5000,"maxNumberOfRecordsPerRecordSet":null,"nameServers":null,"numberOfRecordSets":1,"registrationVirtualNetworks":[{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/test_mgmt_dns_test_private_zonecd720cdc\/providers\/Microsoft.Network\/virtualNetworks\/pvtzonevnetcd720cdcreg"}],"resolutionVirtualNetworks":[{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/test_mgmt_dns_test_private_zonecd720cdc\/providers\/Microsoft.Network\/virtualNetworks\/pvtzonevnetcd720cdcres"}],"zoneType":"Private"}}'} - headers: - cache-control: [private] - content-length: ['907'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 10 Sep 2018 20:01:48 GMT'] - etag: [00000002-0000-0000-70eb-3b1b4149d401] - server: [Microsoft-IIS/8.5] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-aspnet-version: [4.0.30319] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-resource-requests: ['499'] - x-powered-by: [ASP.NET] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - User-Agent: [python/3.6.4 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.5.0 azure-mgmt-dns/2.1.0 Azure-SDK-For-Python] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_dns_test_private_zonecd720cdc/providers/Microsoft.Network/dnsZones?api-version=2018-05-01 - response: - body: {string: '{"value":[{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/test_mgmt_dns_test_private_zonecd720cdc\/providers\/Microsoft.Network\/dnszones\/pydns.comcd720cdc","name":"pydns.comcd720cdc","type":"Microsoft.Network\/dnszones","etag":"00000002-0000-0000-70eb-3b1b4149d401","location":"global","tags":{},"properties":{"maxNumberOfRecordSets":5000,"maxNumberOfRecordsPerRecordSet":null,"nameServers":null,"numberOfRecordSets":1,"registrationVirtualNetworks":[{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/test_mgmt_dns_test_private_zonecd720cdc\/providers\/Microsoft.Network\/virtualNetworks\/pvtzonevnetcd720cdcreg"}],"resolutionVirtualNetworks":[{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/test_mgmt_dns_test_private_zonecd720cdc\/providers\/Microsoft.Network\/virtualNetworks\/pvtzonevnetcd720cdcres"}],"zoneType":"Private"}}]}'} - headers: - cache-control: [private] - content-length: ['919'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 10 Sep 2018 20:01:49 GMT'] - server: [Microsoft-IIS/8.5] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-aspnet-version: [4.0.30319] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-resource-entities-read: ['59999'] - x-ms-ratelimit-remaining-subscription-resource-requests: ['499'] - x-powered-by: [ASP.NET] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - User-Agent: [python/3.6.4 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.5.0 azure-mgmt-dns/2.1.0 Azure-SDK-For-Python] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/dnszones?api-version=2018-05-01 - response: - body: {string: '{"value":[{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/test_mgmt_dns_test_private_zonecd720cdc\/providers\/Microsoft.Network\/dnszones\/pydns.comcd720cdc","name":"pydns.comcd720cdc","type":"Microsoft.Network\/dnszones","etag":"00000002-0000-0000-70eb-3b1b4149d401","location":"global","tags":{},"properties":{"maxNumberOfRecordSets":5000,"maxNumberOfRecordsPerRecordSet":null,"nameServers":null,"numberOfRecordSets":1,"registrationVirtualNetworks":[{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/test_mgmt_dns_test_private_zonecd720cdc\/providers\/Microsoft.Network\/virtualNetworks\/pvtzonevnetcd720cdcreg"}],"resolutionVirtualNetworks":[{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/test_mgmt_dns_test_private_zonecd720cdc\/providers\/Microsoft.Network\/virtualNetworks\/pvtzonevnetcd720cdcres"}],"zoneType":"Private"}}]}'} - headers: - cache-control: [private] - content-length: ['919'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 10 Sep 2018 20:01:51 GMT'] - server: [Microsoft-IIS/8.5] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-aspnet-version: [4.0.30319] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-resource-entities-read: ['59999'] - x-ms-ratelimit-remaining-subscription-resource-requests: ['499'] - x-powered-by: [ASP.NET] - status: {code: 200, message: OK} -- request: - body: '{"properties": {"TTL": 300, "ARecords": [{"ipv4Address": "1.2.3.4"}]}}' - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['70'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.4 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.5.0 azure-mgmt-dns/2.1.0 Azure-SDK-For-Python] - accept-language: [en-US] - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_dns_test_private_zonecd720cdc/providers/Microsoft.Network/dnsZones/pydns.comcd720cdc/A/record_setcd720cdc?api-version=2018-05-01 - response: - body: {string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/test_mgmt_dns_test_private_zonecd720cdc\/providers\/Microsoft.Network\/dnszones\/pydns.comcd720cdc\/A\/record_setcd720cdc","name":"record_setcd720cdc","type":"Microsoft.Network\/dnszones\/A","etag":"76dd80c9-2569-4e19-a7a2-b2ee60a001bc","properties":{"fqdn":"record_setcd720cdc.pydns.comcd720cdc.","TTL":300,"ARecords":[{"ipv4Address":"1.2.3.4"}],"targetResource":{},"provisioningState":"Succeeded"}}'} - headers: - cache-control: [private] - content-length: ['478'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 10 Sep 2018 20:01:52 GMT'] - etag: [76dd80c9-2569-4e19-a7a2-b2ee60a001bc] - server: [Microsoft-IIS/8.5] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-aspnet-version: [4.0.30319] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-resource-requests: ['11999'] - x-powered-by: [ASP.NET] - status: {code: 201, message: Created} -- request: - body: '{"properties": {"TTL": 300, "ARecords": [{"ipv4Address": "1.2.3.4"}, {"ipv4Address": - "5.6.7.8"}]}}' - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['98'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.4 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.5.0 azure-mgmt-dns/2.1.0 Azure-SDK-For-Python] - accept-language: [en-US] - method: PATCH - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_dns_test_private_zonecd720cdc/providers/Microsoft.Network/dnsZones/pydns.comcd720cdc/A/record_setcd720cdc?api-version=2018-05-01 - response: - body: {string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/test_mgmt_dns_test_private_zonecd720cdc\/providers\/Microsoft.Network\/dnszones\/pydns.comcd720cdc\/A\/record_setcd720cdc","name":"record_setcd720cdc","type":"Microsoft.Network\/dnszones\/A","etag":"663925c8-265f-494f-86b1-f111ea5d702c","properties":{"fqdn":"record_setcd720cdc.pydns.comcd720cdc.","TTL":300,"ARecords":[{"ipv4Address":"1.2.3.4"},{"ipv4Address":"5.6.7.8"}],"targetResource":{},"provisioningState":"Succeeded"}}'} - headers: - cache-control: [private] - content-length: ['504'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 10 Sep 2018 20:01:54 GMT'] - etag: [663925c8-265f-494f-86b1-f111ea5d702c] - server: [Microsoft-IIS/8.5] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-aspnet-version: [4.0.30319] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-resource-requests: ['11999'] - x-powered-by: [ASP.NET] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - User-Agent: [python/3.6.4 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.5.0 azure-mgmt-dns/2.1.0 Azure-SDK-For-Python] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_dns_test_private_zonecd720cdc/providers/Microsoft.Network/dnsZones/pydns.comcd720cdc/A/record_setcd720cdc?api-version=2018-05-01 - response: - body: {string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/test_mgmt_dns_test_private_zonecd720cdc\/providers\/Microsoft.Network\/dnszones\/pydns.comcd720cdc\/A\/record_setcd720cdc","name":"record_setcd720cdc","type":"Microsoft.Network\/dnszones\/A","etag":"663925c8-265f-494f-86b1-f111ea5d702c","properties":{"fqdn":"record_setcd720cdc.pydns.comcd720cdc.","TTL":300,"ARecords":[{"ipv4Address":"1.2.3.4"},{"ipv4Address":"5.6.7.8"}],"targetResource":{},"provisioningState":"Unknown"}}'} - headers: - cache-control: [private] - content-length: ['502'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 10 Sep 2018 20:01:55 GMT'] - etag: [663925c8-265f-494f-86b1-f111ea5d702c] - server: [Microsoft-IIS/8.5] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-aspnet-version: [4.0.30319] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-resource-requests: ['499'] - x-powered-by: [ASP.NET] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - User-Agent: [python/3.6.4 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.5.0 azure-mgmt-dns/2.1.0 Azure-SDK-For-Python] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_dns_test_private_zonecd720cdc/providers/Microsoft.Network/dnsZones/pydns.comcd720cdc/A?api-version=2018-05-01 - response: - body: {string: '{"value":[{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/test_mgmt_dns_test_private_zonecd720cdc\/providers\/Microsoft.Network\/dnszones\/pydns.comcd720cdc\/A\/record_setcd720cdc","name":"record_setcd720cdc","type":"Microsoft.Network\/dnszones\/A","etag":"663925c8-265f-494f-86b1-f111ea5d702c","properties":{"fqdn":"record_setcd720cdc.pydns.comcd720cdc.","TTL":300,"ARecords":[{"ipv4Address":"1.2.3.4"},{"ipv4Address":"5.6.7.8"}],"targetResource":{},"provisioningState":"Unknown"}}]}'} - headers: - cache-control: [private] - content-length: ['514'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 10 Sep 2018 20:01:56 GMT'] - server: [Microsoft-IIS/8.5] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-aspnet-version: [4.0.30319] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-resource-entities-read: ['59999'] - x-ms-ratelimit-remaining-subscription-resource-requests: ['499'] - x-powered-by: [ASP.NET] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - User-Agent: [python/3.6.4 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.5.0 azure-mgmt-dns/2.1.0 Azure-SDK-For-Python] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_dns_test_private_zonecd720cdc/providers/Microsoft.Network/dnsZones/pydns.comcd720cdc/recordsets?api-version=2018-05-01 - response: - body: {string: '{"value":[{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/test_mgmt_dns_test_private_zonecd720cdc\/providers\/Microsoft.Network\/dnszones\/pydns.comcd720cdc\/SOA\/@","name":"@","type":"Microsoft.Network\/dnszones\/SOA","etag":"dce8e169-d096-4c68-b545-6bd1bfa2ed2a","properties":{"fqdn":"pydns.comcd720cdc.","TTL":3600,"SOARecord":{"email":"azuredns-hostmaster.microsoft.com","expireTime":2419200,"host":"internal.cloudapp.net","minimumTTL":300,"refreshTime":3600,"retryTime":300,"serialNumber":1},"targetResource":{},"provisioningState":"Unknown"}},{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/test_mgmt_dns_test_private_zonecd720cdc\/providers\/Microsoft.Network\/dnszones\/pydns.comcd720cdc\/A\/record_setcd720cdc","name":"record_setcd720cdc","type":"Microsoft.Network\/dnszones\/A","etag":"663925c8-265f-494f-86b1-f111ea5d702c","properties":{"fqdn":"record_setcd720cdc.pydns.comcd720cdc.","TTL":300,"ARecords":[{"ipv4Address":"1.2.3.4"},{"ipv4Address":"5.6.7.8"}],"targetResource":{},"provisioningState":"Unknown"}}]}'} - headers: - cache-control: [private] - content-length: ['1083'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 10 Sep 2018 20:01:57 GMT'] - server: [Microsoft-IIS/8.5] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-aspnet-version: [4.0.30319] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-resource-entities-read: ['59998'] - x-ms-ratelimit-remaining-subscription-resource-requests: ['499'] - x-powered-by: [ASP.NET] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['0'] - User-Agent: [python/3.6.4 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.5.0 azure-mgmt-dns/2.1.0 Azure-SDK-For-Python] - accept-language: [en-US] - method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_dns_test_private_zonecd720cdc/providers/Microsoft.Network/dnsZones/pydns.comcd720cdc/A/record_setcd720cdc?api-version=2018-05-01 - response: - body: {string: ''} - headers: - cache-control: [private] - content-length: ['0'] - date: ['Mon, 10 Sep 2018 20:01:59 GMT'] - server: [Microsoft-IIS/8.5] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-aspnet-version: [4.0.30319] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-resource-requests: ['11999'] - x-powered-by: [ASP.NET] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['0'] - User-Agent: [python/3.6.4 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.5.0 azure-mgmt-dns/2.1.0 Azure-SDK-For-Python] - accept-language: [en-US] - method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_dns_test_private_zonecd720cdc/providers/Microsoft.Network/dnsZones/pydns.comcd720cdc?api-version=2018-05-01 - response: - body: {string: ''} - headers: - azure-asyncoperation: ['https://management.azure.com:443/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_dns_test_private_zonecd720cdc/providers/Microsoft.Network/dnsOperationStatuses/delzone636722065211212079fc52f562?api-version=2018-05-01'] - cache-control: [private] - content-length: ['0'] - date: ['Mon, 10 Sep 2018 20:02:01 GMT'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_dns_test_private_zonecd720cdc/providers/Microsoft.Network/dnsOperationResults/delzone636722065211212079fc52f562?api-version=2018-05-01'] - server: [Microsoft-IIS/8.5] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-aspnet-version: [4.0.30319] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-resource-requests: ['11999'] - x-powered-by: [ASP.NET] - status: {code: 202, message: Accepted} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - User-Agent: [python/3.6.4 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.5.0 azure-mgmt-dns/2.1.0 Azure-SDK-For-Python] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_dns_test_private_zonecd720cdc/providers/Microsoft.Network/dnsOperationStatuses/delzone636722065211212079fc52f562?api-version=2018-05-01 - response: - body: {string: '{"status":"Succeeded"}'} - headers: - cache-control: [private] - content-length: ['22'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 10 Sep 2018 20:02:04 GMT'] - server: [Microsoft-IIS/8.5] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-aspnet-version: [4.0.30319] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-resource-requests: ['499'] - x-powered-by: [ASP.NET] - status: {code: 200, message: OK} -version: 1 diff --git a/sdk/network/azure-mgmt-dns/tests/recordings/test_mgmt_dns.test_public_zone.yaml b/sdk/network/azure-mgmt-dns/tests/recordings/test_mgmt_dns.test_public_zone.yaml index 18eb41b809b1..ac691199a0b0 100644 --- a/sdk/network/azure-mgmt-dns/tests/recordings/test_mgmt_dns.test_public_zone.yaml +++ b/sdk/network/azure-mgmt-dns/tests/recordings/test_mgmt_dns.test_public_zone.yaml @@ -2,334 +2,536 @@ interactions: - request: body: '{"location": "global", "properties": {"zoneType": "Public"}}' headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['60'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.4 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.5.0 azure-mgmt-dns/2.1.0 Azure-SDK-For-Python] - accept-language: [en-US] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '60' + Content-Type: + - application/json + User-Agent: + - azsdk-python-azure-mgmt-dns/8.0.0b2 Python/3.8.9 (Linux-5.4.0-1043-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_mgmt_dns_test_public_zonec0190c60/providers/Microsoft.Network/dnsZones/pydns.comc0190c60?api-version=2018-05-01 response: - body: {string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/test_mgmt_dns_test_public_zonec0190c60\/providers\/Microsoft.Network\/dnszones\/pydns.comc0190c60","name":"pydns.comc0190c60","type":"Microsoft.Network\/dnszones","etag":"00000002-0000-0000-ac28-222a4149d401","location":"global","tags":{},"properties":{"maxNumberOfRecordSets":5000,"maxNumberOfRecordsPerRecordSet":null,"nameServers":["ns1-07.azure-dns.com.","ns2-07.azure-dns.net.","ns3-07.azure-dns.org.","ns4-07.azure-dns.info."],"numberOfRecordSets":2,"zoneType":"Public"}}'} + body: + string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/test_mgmt_dns_test_public_zonec0190c60\/providers\/Microsoft.Network\/dnszones\/pydns.comc0190c60","name":"pydns.comc0190c60","type":"Microsoft.Network\/dnszones","etag":"00000002-0000-0000-595a-5d71ff30d701","location":"global","tags":{},"properties":{"maxNumberOfRecordSets":10000,"maxNumberOfRecordsPerRecordSet":null,"nameServers":["ns1-04.azure-dns.com.","ns2-04.azure-dns.net.","ns3-04.azure-dns.org.","ns4-04.azure-dns.info."],"numberOfRecordSets":2,"zoneType":"Public"}}' headers: - cache-control: [private] - content-length: ['555'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 10 Sep 2018 20:02:12 GMT'] - etag: [00000002-0000-0000-ac28-222a4149d401] - server: [Microsoft-IIS/8.5] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-aspnet-version: [4.0.30319] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-resource-requests: ['11999'] - x-powered-by: [ASP.NET] - status: {code: 201, message: Created} + cache-control: + - private + content-length: + - '561' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 14 Apr 2021 07:26:11 GMT + etag: + - 00000002-0000-0000-595a-5d71ff30d701 + server: + - Microsoft-IIS/10.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-resource-requests: + - '11999' + x-powered-by: + - ASP.NET + status: + code: 201 + message: Created - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - User-Agent: [python/3.6.4 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.5.0 azure-mgmt-dns/2.1.0 Azure-SDK-For-Python] - accept-language: [en-US] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-azure-mgmt-dns/8.0.0b2 Python/3.8.9 (Linux-5.4.0-1043-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_mgmt_dns_test_public_zonec0190c60/providers/Microsoft.Network/dnsZones/pydns.comc0190c60?api-version=2018-05-01 response: - body: {string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/test_mgmt_dns_test_public_zonec0190c60\/providers\/Microsoft.Network\/dnszones\/pydns.comc0190c60","name":"pydns.comc0190c60","type":"Microsoft.Network\/dnszones","etag":"00000002-0000-0000-ac28-222a4149d401","location":"global","tags":{},"properties":{"maxNumberOfRecordSets":5000,"maxNumberOfRecordsPerRecordSet":null,"nameServers":["ns1-07.azure-dns.com.","ns2-07.azure-dns.net.","ns3-07.azure-dns.org.","ns4-07.azure-dns.info."],"numberOfRecordSets":2,"zoneType":"Public"}}'} + body: + string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/test_mgmt_dns_test_public_zonec0190c60\/providers\/Microsoft.Network\/dnszones\/pydns.comc0190c60","name":"pydns.comc0190c60","type":"Microsoft.Network\/dnszones","etag":"00000002-0000-0000-595a-5d71ff30d701","location":"global","tags":{},"properties":{"maxNumberOfRecordSets":10000,"maxNumberOfRecordsPerRecordSet":null,"nameServers":["ns1-04.azure-dns.com.","ns2-04.azure-dns.net.","ns3-04.azure-dns.org.","ns4-04.azure-dns.info."],"numberOfRecordSets":2,"zoneType":"Public"}}' headers: - cache-control: [private] - content-length: ['555'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 10 Sep 2018 20:02:13 GMT'] - etag: [00000002-0000-0000-ac28-222a4149d401] - server: [Microsoft-IIS/8.5] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-aspnet-version: [4.0.30319] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-resource-requests: ['499'] - x-powered-by: [ASP.NET] - status: {code: 200, message: OK} + cache-control: + - private + content-length: + - '561' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 14 Apr 2021 07:26:11 GMT + etag: + - 00000002-0000-0000-595a-5d71ff30d701 + server: + - Microsoft-IIS/10.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-resource-requests: + - '499' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - User-Agent: [python/3.6.4 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.5.0 azure-mgmt-dns/2.1.0 Azure-SDK-For-Python] - accept-language: [en-US] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-azure-mgmt-dns/8.0.0b2 Python/3.8.9 (Linux-5.4.0-1043-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_mgmt_dns_test_public_zonec0190c60/providers/Microsoft.Network/dnsZones?api-version=2018-05-01 response: - body: {string: '{"value":[{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/test_mgmt_dns_test_public_zonec0190c60\/providers\/Microsoft.Network\/dnszones\/pydns.comc0190c60","name":"pydns.comc0190c60","type":"Microsoft.Network\/dnszones","etag":"00000002-0000-0000-ac28-222a4149d401","location":"global","tags":{},"properties":{"maxNumberOfRecordSets":5000,"maxNumberOfRecordsPerRecordSet":null,"nameServers":["ns1-07.azure-dns.com.","ns2-07.azure-dns.net.","ns3-07.azure-dns.org.","ns4-07.azure-dns.info."],"numberOfRecordSets":2,"zoneType":"Public"}}]}'} + body: + string: '{"value":[{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/test_mgmt_dns_test_public_zonec0190c60\/providers\/Microsoft.Network\/dnszones\/pydns.comc0190c60","name":"pydns.comc0190c60","type":"Microsoft.Network\/dnszones","etag":"00000002-0000-0000-595a-5d71ff30d701","location":"global","tags":{},"properties":{"maxNumberOfRecordSets":10000,"maxNumberOfRecordsPerRecordSet":null,"nameServers":["ns1-04.azure-dns.com.","ns2-04.azure-dns.net.","ns3-04.azure-dns.org.","ns4-04.azure-dns.info."],"numberOfRecordSets":2,"zoneType":"Public"}}]}' headers: - cache-control: [private] - content-length: ['567'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 10 Sep 2018 20:02:15 GMT'] - server: [Microsoft-IIS/8.5] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-aspnet-version: [4.0.30319] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-resource-entities-read: ['59999'] - x-ms-ratelimit-remaining-subscription-resource-requests: ['499'] - x-powered-by: [ASP.NET] - status: {code: 200, message: OK} + cache-control: + - private + content-length: + - '573' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 14 Apr 2021 07:26:12 GMT + server: + - Microsoft-IIS/10.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-resource-entities-read: + - '59999' + x-ms-ratelimit-remaining-subscription-resource-requests: + - '498' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - User-Agent: [python/3.6.4 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.5.0 azure-mgmt-dns/2.1.0 Azure-SDK-For-Python] - accept-language: [en-US] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-azure-mgmt-dns/8.0.0b2 Python/3.8.9 (Linux-5.4.0-1043-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.Network/dnszones?api-version=2018-05-01 response: - body: {string: '{"value":[{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/test_mgmt_dns_test_public_zonec0190c60\/providers\/Microsoft.Network\/dnszones\/pydns.comc0190c60","name":"pydns.comc0190c60","type":"Microsoft.Network\/dnszones","etag":"00000002-0000-0000-ac28-222a4149d401","location":"global","tags":{},"properties":{"maxNumberOfRecordSets":5000,"maxNumberOfRecordsPerRecordSet":null,"nameServers":["ns1-07.azure-dns.com.","ns2-07.azure-dns.net.","ns3-07.azure-dns.org.","ns4-07.azure-dns.info."],"numberOfRecordSets":2,"zoneType":"Public"}}]}'} + body: + string: '{"value":[{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/test_mgmt_dns_test_public_zonec0190c60\/providers\/Microsoft.Network\/dnszones\/pydns.comc0190c60","name":"pydns.comc0190c60","type":"Microsoft.Network\/dnszones","etag":"00000002-0000-0000-595a-5d71ff30d701","location":"global","tags":{},"properties":{"maxNumberOfRecordSets":10000,"maxNumberOfRecordsPerRecordSet":null,"nameServers":["ns1-04.azure-dns.com.","ns2-04.azure-dns.net.","ns3-04.azure-dns.org.","ns4-04.azure-dns.info."],"numberOfRecordSets":2,"zoneType":"Public"}}]}' headers: - cache-control: [private] - content-length: ['567'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 10 Sep 2018 20:02:15 GMT'] - server: [Microsoft-IIS/8.5] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-aspnet-version: [4.0.30319] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-resource-entities-read: ['59999'] - x-ms-ratelimit-remaining-subscription-resource-requests: ['499'] - x-powered-by: [ASP.NET] - status: {code: 200, message: OK} + cache-control: + - private + content-length: + - '573' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 14 Apr 2021 07:26:12 GMT + server: + - Microsoft-IIS/10.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-resource-entities-read: + - '59998' + x-ms-ratelimit-remaining-subscription-resource-requests: + - '497' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK - request: body: '{"properties": {"TTL": 300, "ARecords": [{"ipv4Address": "1.2.3.4"}]}}' headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['70'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.4 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.5.0 azure-mgmt-dns/2.1.0 Azure-SDK-For-Python] - accept-language: [en-US] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '70' + Content-Type: + - application/json + User-Agent: + - azsdk-python-azure-mgmt-dns/8.0.0b2 Python/3.8.9 (Linux-5.4.0-1043-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_mgmt_dns_test_public_zonec0190c60/providers/Microsoft.Network/dnsZones/pydns.comc0190c60/A/record_setc0190c60?api-version=2018-05-01 response: - body: {string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/test_mgmt_dns_test_public_zonec0190c60\/providers\/Microsoft.Network\/dnszones\/pydns.comc0190c60\/A\/record_setc0190c60","name":"record_setc0190c60","type":"Microsoft.Network\/dnszones\/A","etag":"1d5f6971-3018-4e56-b16c-b64e72d10ca2","properties":{"fqdn":"record_setc0190c60.pydns.comc0190c60.","TTL":300,"ARecords":[{"ipv4Address":"1.2.3.4"}],"targetResource":{},"provisioningState":"Succeeded"}}'} + body: + string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/test_mgmt_dns_test_public_zonec0190c60\/providers\/Microsoft.Network\/dnszones\/pydns.comc0190c60\/A\/record_setc0190c60","name":"record_setc0190c60","type":"Microsoft.Network\/dnszones\/A","etag":"ec67cbb6-3a33-498f-9c01-0c0535df775d","properties":{"fqdn":"record_setc0190c60.pydns.comc0190c60.","TTL":300,"ARecords":[{"ipv4Address":"1.2.3.4"}],"targetResource":{},"provisioningState":"Succeeded"}}' headers: - cache-control: [private] - content-length: ['477'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 10 Sep 2018 20:02:17 GMT'] - etag: [1d5f6971-3018-4e56-b16c-b64e72d10ca2] - server: [Microsoft-IIS/8.5] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-aspnet-version: [4.0.30319] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-resource-requests: ['11999'] - x-powered-by: [ASP.NET] - status: {code: 201, message: Created} + cache-control: + - private + content-length: + - '482' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 14 Apr 2021 07:26:13 GMT + etag: + - ec67cbb6-3a33-498f-9c01-0c0535df775d + server: + - Microsoft-IIS/10.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-resource-requests: + - '11999' + x-powered-by: + - ASP.NET + status: + code: 201 + message: Created - request: body: '{"properties": {"TTL": 300, "ARecords": [{"ipv4Address": "1.2.3.4"}, {"ipv4Address": "5.6.7.8"}]}}' headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['98'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.4 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.5.0 azure-mgmt-dns/2.1.0 Azure-SDK-For-Python] - accept-language: [en-US] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '98' + Content-Type: + - application/json + User-Agent: + - azsdk-python-azure-mgmt-dns/8.0.0b2 Python/3.8.9 (Linux-5.4.0-1043-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_mgmt_dns_test_public_zonec0190c60/providers/Microsoft.Network/dnsZones/pydns.comc0190c60/A/record_setc0190c60?api-version=2018-05-01 response: - body: {string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/test_mgmt_dns_test_public_zonec0190c60\/providers\/Microsoft.Network\/dnszones\/pydns.comc0190c60\/A\/record_setc0190c60","name":"record_setc0190c60","type":"Microsoft.Network\/dnszones\/A","etag":"10c480ef-c892-4b1f-8d55-f5fa766f501a","properties":{"fqdn":"record_setc0190c60.pydns.comc0190c60.","TTL":300,"ARecords":[{"ipv4Address":"1.2.3.4"},{"ipv4Address":"5.6.7.8"}],"targetResource":{},"provisioningState":"Succeeded"}}'} + body: + string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/test_mgmt_dns_test_public_zonec0190c60\/providers\/Microsoft.Network\/dnszones\/pydns.comc0190c60\/A\/record_setc0190c60","name":"record_setc0190c60","type":"Microsoft.Network\/dnszones\/A","etag":"298f481e-3298-4013-9190-08c55d35bab5","properties":{"fqdn":"record_setc0190c60.pydns.comc0190c60.","TTL":300,"ARecords":[{"ipv4Address":"1.2.3.4"},{"ipv4Address":"5.6.7.8"}],"targetResource":{},"provisioningState":"Succeeded"}}' headers: - cache-control: [private] - content-length: ['503'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 10 Sep 2018 20:02:19 GMT'] - etag: [10c480ef-c892-4b1f-8d55-f5fa766f501a] - server: [Microsoft-IIS/8.5] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-aspnet-version: [4.0.30319] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-resource-requests: ['11999'] - x-powered-by: [ASP.NET] - status: {code: 200, message: OK} + cache-control: + - private + content-length: + - '508' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 14 Apr 2021 07:26:13 GMT + etag: + - 298f481e-3298-4013-9190-08c55d35bab5 + server: + - Microsoft-IIS/10.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-resource-requests: + - '11998' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - User-Agent: [python/3.6.4 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.5.0 azure-mgmt-dns/2.1.0 Azure-SDK-For-Python] - accept-language: [en-US] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-azure-mgmt-dns/8.0.0b2 Python/3.8.9 (Linux-5.4.0-1043-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_mgmt_dns_test_public_zonec0190c60/providers/Microsoft.Network/dnsZones/pydns.comc0190c60/A/record_setc0190c60?api-version=2018-05-01 response: - body: {string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/test_mgmt_dns_test_public_zonec0190c60\/providers\/Microsoft.Network\/dnszones\/pydns.comc0190c60\/A\/record_setc0190c60","name":"record_setc0190c60","type":"Microsoft.Network\/dnszones\/A","etag":"10c480ef-c892-4b1f-8d55-f5fa766f501a","properties":{"fqdn":"record_setc0190c60.pydns.comc0190c60.","TTL":300,"ARecords":[{"ipv4Address":"1.2.3.4"},{"ipv4Address":"5.6.7.8"}],"targetResource":{},"provisioningState":"Unknown"}}'} + body: + string: '{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/test_mgmt_dns_test_public_zonec0190c60\/providers\/Microsoft.Network\/dnszones\/pydns.comc0190c60\/A\/record_setc0190c60","name":"record_setc0190c60","type":"Microsoft.Network\/dnszones\/A","etag":"298f481e-3298-4013-9190-08c55d35bab5","properties":{"fqdn":"record_setc0190c60.pydns.comc0190c60.","TTL":300,"ARecords":[{"ipv4Address":"1.2.3.4"},{"ipv4Address":"5.6.7.8"}],"targetResource":{},"provisioningState":"Succeeded"}}' headers: - cache-control: [private] - content-length: ['501'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 10 Sep 2018 20:02:19 GMT'] - etag: [10c480ef-c892-4b1f-8d55-f5fa766f501a] - server: [Microsoft-IIS/8.5] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-aspnet-version: [4.0.30319] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-resource-requests: ['499'] - x-powered-by: [ASP.NET] - status: {code: 200, message: OK} + cache-control: + - private + content-length: + - '508' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 14 Apr 2021 07:26:13 GMT + etag: + - 298f481e-3298-4013-9190-08c55d35bab5 + server: + - Microsoft-IIS/10.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-resource-requests: + - '499' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - User-Agent: [python/3.6.4 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.5.0 azure-mgmt-dns/2.1.0 Azure-SDK-For-Python] - accept-language: [en-US] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-azure-mgmt-dns/8.0.0b2 Python/3.8.9 (Linux-5.4.0-1043-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_mgmt_dns_test_public_zonec0190c60/providers/Microsoft.Network/dnsZones/pydns.comc0190c60/A?api-version=2018-05-01 response: - body: {string: '{"value":[{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/test_mgmt_dns_test_public_zonec0190c60\/providers\/Microsoft.Network\/dnszones\/pydns.comc0190c60\/A\/record_setc0190c60","name":"record_setc0190c60","type":"Microsoft.Network\/dnszones\/A","etag":"10c480ef-c892-4b1f-8d55-f5fa766f501a","properties":{"fqdn":"record_setc0190c60.pydns.comc0190c60.","TTL":300,"ARecords":[{"ipv4Address":"1.2.3.4"},{"ipv4Address":"5.6.7.8"}],"targetResource":{},"provisioningState":"Unknown"}}]}'} + body: + string: '{"value":[{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/test_mgmt_dns_test_public_zonec0190c60\/providers\/Microsoft.Network\/dnszones\/pydns.comc0190c60\/A\/record_setc0190c60","name":"record_setc0190c60","type":"Microsoft.Network\/dnszones\/A","etag":"298f481e-3298-4013-9190-08c55d35bab5","properties":{"fqdn":"record_setc0190c60.pydns.comc0190c60.","TTL":300,"ARecords":[{"ipv4Address":"1.2.3.4"},{"ipv4Address":"5.6.7.8"}],"targetResource":{},"provisioningState":"Succeeded"}}]}' headers: - cache-control: [private] - content-length: ['513'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 10 Sep 2018 20:02:20 GMT'] - server: [Microsoft-IIS/8.5] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-aspnet-version: [4.0.30319] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-resource-entities-read: ['59999'] - x-ms-ratelimit-remaining-subscription-resource-requests: ['499'] - x-powered-by: [ASP.NET] - status: {code: 200, message: OK} + cache-control: + - private + content-length: + - '520' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 14 Apr 2021 07:26:14 GMT + server: + - Microsoft-IIS/10.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-resource-entities-read: + - '59999' + x-ms-ratelimit-remaining-subscription-resource-requests: + - '498' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - User-Agent: [python/3.6.4 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.5.0 azure-mgmt-dns/2.1.0 Azure-SDK-For-Python] - accept-language: [en-US] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-azure-mgmt-dns/8.0.0b2 Python/3.8.9 (Linux-5.4.0-1043-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_mgmt_dns_test_public_zonec0190c60/providers/Microsoft.Network/dnsZones/pydns.comc0190c60/recordsets?api-version=2018-05-01 response: - body: {string: '{"value":[{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/test_mgmt_dns_test_public_zonec0190c60\/providers\/Microsoft.Network\/dnszones\/pydns.comc0190c60\/NS\/@","name":"@","type":"Microsoft.Network\/dnszones\/NS","etag":"eb2c26ef-9001-48b8-a95c-058d83ba8cfe","properties":{"fqdn":"pydns.comc0190c60.","TTL":172800,"NSRecords":[{"nsdname":"ns1-07.azure-dns.com."},{"nsdname":"ns2-07.azure-dns.net."},{"nsdname":"ns3-07.azure-dns.org."},{"nsdname":"ns4-07.azure-dns.info."}],"targetResource":{},"provisioningState":"Unknown"}},{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/test_mgmt_dns_test_public_zonec0190c60\/providers\/Microsoft.Network\/dnszones\/pydns.comc0190c60\/SOA\/@","name":"@","type":"Microsoft.Network\/dnszones\/SOA","etag":"b5bc9f1b-3ebf-4f30-bcca-480e48fc01d6","properties":{"fqdn":"pydns.comc0190c60.","TTL":3600,"SOARecord":{"email":"azuredns-hostmaster.microsoft.com","expireTime":2419200,"host":"ns1-07.azure-dns.com.","minimumTTL":300,"refreshTime":3600,"retryTime":300,"serialNumber":1},"targetResource":{},"provisioningState":"Unknown"}},{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/test_mgmt_dns_test_public_zonec0190c60\/providers\/Microsoft.Network\/dnszones\/pydns.comc0190c60\/A\/record_setc0190c60","name":"record_setc0190c60","type":"Microsoft.Network\/dnszones\/A","etag":"10c480ef-c892-4b1f-8d55-f5fa766f501a","properties":{"fqdn":"record_setc0190c60.pydns.comc0190c60.","TTL":300,"ARecords":[{"ipv4Address":"1.2.3.4"},{"ipv4Address":"5.6.7.8"}],"targetResource":{},"provisioningState":"Unknown"}}]}'} + body: + string: '{"value":[{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/test_mgmt_dns_test_public_zonec0190c60\/providers\/Microsoft.Network\/dnszones\/pydns.comc0190c60\/NS\/@","name":"@","type":"Microsoft.Network\/dnszones\/NS","etag":"03bc767d-741f-47e3-aae1-c114dd86c5f5","properties":{"fqdn":"pydns.comc0190c60.","TTL":172800,"NSRecords":[{"nsdname":"ns1-04.azure-dns.com."},{"nsdname":"ns2-04.azure-dns.net."},{"nsdname":"ns3-04.azure-dns.org."},{"nsdname":"ns4-04.azure-dns.info."}],"targetResource":{},"provisioningState":"Succeeded"}},{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/test_mgmt_dns_test_public_zonec0190c60\/providers\/Microsoft.Network\/dnszones\/pydns.comc0190c60\/SOA\/@","name":"@","type":"Microsoft.Network\/dnszones\/SOA","etag":"11a39639-e1b7-40f8-9301-349cd33c7020","properties":{"fqdn":"pydns.comc0190c60.","TTL":3600,"SOARecord":{"email":"azuredns-hostmaster.microsoft.com","expireTime":2419200,"host":"ns1-04.azure-dns.com.","minimumTTL":300,"refreshTime":3600,"retryTime":300,"serialNumber":1},"targetResource":{},"provisioningState":"Succeeded"}},{"id":"\/subscriptions\/00000000-0000-0000-0000-000000000000\/resourceGroups\/test_mgmt_dns_test_public_zonec0190c60\/providers\/Microsoft.Network\/dnszones\/pydns.comc0190c60\/A\/record_setc0190c60","name":"record_setc0190c60","type":"Microsoft.Network\/dnszones\/A","etag":"298f481e-3298-4013-9190-08c55d35bab5","properties":{"fqdn":"record_setc0190c60.pydns.comc0190c60.","TTL":300,"ARecords":[{"ipv4Address":"1.2.3.4"},{"ipv4Address":"5.6.7.8"}],"targetResource":{},"provisioningState":"Succeeded"}}]}' headers: - cache-control: [private] - content-length: ['1629'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 10 Sep 2018 20:02:20 GMT'] - server: [Microsoft-IIS/8.5] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-aspnet-version: [4.0.30319] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-resource-entities-read: ['59997'] - x-ms-ratelimit-remaining-subscription-resource-requests: ['499'] - x-powered-by: [ASP.NET] - status: {code: 200, message: OK} + cache-control: + - private + content-length: + - '1650' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 14 Apr 2021 07:26:14 GMT + server: + - Microsoft-IIS/10.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-resource-entities-read: + - '59997' + x-ms-ratelimit-remaining-subscription-resource-requests: + - '499' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['0'] - User-Agent: [python/3.6.4 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.5.0 azure-mgmt-dns/2.1.0 Azure-SDK-For-Python] - accept-language: [en-US] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + User-Agent: + - azsdk-python-azure-mgmt-dns/8.0.0b2 Python/3.8.9 (Linux-5.4.0-1043-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_mgmt_dns_test_public_zonec0190c60/providers/Microsoft.Network/dnsZones/pydns.comc0190c60/A/record_setc0190c60?api-version=2018-05-01 response: - body: {string: ''} + body: + string: '' headers: - cache-control: [private] - content-length: ['0'] - date: ['Mon, 10 Sep 2018 20:02:23 GMT'] - server: [Microsoft-IIS/8.5] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-aspnet-version: [4.0.30319] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-resource-requests: ['11999'] - x-powered-by: [ASP.NET] - status: {code: 200, message: OK} + cache-control: + - private + content-length: + - '0' + date: + - Wed, 14 Apr 2021 07:26:14 GMT + server: + - Microsoft-IIS/10.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-resource-requests: + - '11999' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Length: ['0'] - User-Agent: [python/3.6.4 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.5.0 azure-mgmt-dns/2.1.0 Azure-SDK-For-Python] - accept-language: [en-US] + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + User-Agent: + - azsdk-python-azure-mgmt-dns/8.0.0b2 Python/3.8.9 (Linux-5.4.0-1043-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_mgmt_dns_test_public_zonec0190c60/providers/Microsoft.Network/dnsZones/pydns.comc0190c60?api-version=2018-05-01 response: - body: {string: ''} + body: + string: '' headers: - azure-asyncoperation: ['https://management.azure.com:443/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_dns_test_public_zonec0190c60/providers/Microsoft.Network/dnsOperationStatuses/delzone636722065444574090c3302a54?api-version=2018-05-01'] - cache-control: [private] - content-length: ['0'] - date: ['Mon, 10 Sep 2018 20:02:24 GMT'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_dns_test_public_zonec0190c60/providers/Microsoft.Network/dnsOperationResults/delzone636722065444574090c3302a54?api-version=2018-05-01'] - server: [Microsoft-IIS/8.5] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-aspnet-version: [4.0.30319] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-resource-requests: ['11999'] - x-powered-by: [ASP.NET] - status: {code: 202, message: Accepted} + azure-asyncoperation: + - https://management.azure.com:443/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_dns_test_public_zonec0190c60/providers/Microsoft.Network/dnsOperationStatuses/delzone6375398197576238882ec44401?api-version=2018-05-01 + cache-control: + - private + content-length: + - '0' + date: + - Wed, 14 Apr 2021 07:26:15 GMT + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_dns_test_public_zonec0190c60/providers/Microsoft.Network/dnsOperationResults/delzone6375398197576238882ec44401?api-version=2018-05-01 + server: + - Microsoft-IIS/10.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-resource-requests: + - '11999' + x-powered-by: + - ASP.NET + status: + code: 202 + message: Accepted - request: body: null headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - User-Agent: [python/3.6.4 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.5.0 azure-mgmt-dns/2.1.0 Azure-SDK-For-Python] + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-azure-mgmt-dns/8.0.0b2 Python/3.8.9 (Linux-5.4.0-1043-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_mgmt_dns_test_public_zonec0190c60/providers/Microsoft.Network/dnsOperationStatuses/delzone636722065444574090c3302a54?api-version=2018-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_dns_test_public_zonec0190c60/providers/Microsoft.Network/dnsOperationStatuses/delzone6375398197576238882ec44401?api-version=2018-05-01 response: - body: {string: '{"status":"Succeeded"}'} + body: + string: '{"status":"Succeeded"}' headers: - cache-control: [private] - content-length: ['22'] - content-type: [application/json; charset=utf-8] - date: ['Mon, 10 Sep 2018 20:02:27 GMT'] - server: [Microsoft-IIS/8.5] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-aspnet-version: [4.0.30319] - x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-resource-requests: ['499'] - x-powered-by: [ASP.NET] - status: {code: 200, message: OK} + cache-control: + - private + content-length: + - '22' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 14 Apr 2021 07:26:18 GMT + server: + - Microsoft-IIS/10.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-resource-requests: + - '499' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK version: 1 diff --git a/sdk/network/azure-mgmt-dns/tests/test_mgmt_dns.py b/sdk/network/azure-mgmt-dns/tests/test_mgmt_dns.py index 863498582f85..2092d7e7cc6f 100644 --- a/sdk/network/azure-mgmt-dns/tests/test_mgmt_dns.py +++ b/sdk/network/azure-mgmt-dns/tests/test_mgmt_dns.py @@ -26,7 +26,7 @@ def create_resource(self, name, **kwargs): resource_group_name = kwargs['resource_group'].name location_name = kwargs['location'] - registration_network = self.test_class_instance.network_client.virtual_networks.create_or_update( + registration_network = self.test_class_instance.network_client.virtual_networks.begin_create_or_update( resource_group_name, registration_virtual_network_name, { @@ -43,7 +43,7 @@ def create_resource(self, name, **kwargs): } ).result() - resolution_network = self.test_class_instance.network_client.virtual_networks.create_or_update( + resolution_network = self.test_class_instance.network_client.virtual_networks.begin_create_or_update( resource_group_name, resolution_virtual_network_name, { @@ -178,7 +178,8 @@ def test_public_zone(self, resource_group, location): zone.name ) async_delete.wait() - + + @unittest.skip("using this API is no longer allowed") @ResourceGroupPreparer() @VirtualNetworkPreparer() def test_private_zone(self, resource_group, location, registration_virtual_network, resolution_virtual_network): diff --git a/shared_requirements.txt b/shared_requirements.txt index 36198c05ac27..a8bd2ff1a615 100644 --- a/shared_requirements.txt +++ b/shared_requirements.txt @@ -218,6 +218,7 @@ opentelemetry-sdk<2.0.0,>=1.0.0 #override azure-mgmt-datashare msrest>=0.6.21 #override azure-mgmt-hanaonazure msrest>=0.6.21 #override azure-mgmt-healthcareapis msrest>=0.6.21 +#override azure-mgmt-dns msrest>=0.6.21 #override azure-mgmt-hybridcompute msrest>=0.6.21 #override azure-mgmt-maintenance msrest>=0.6.21 #override azure-mgmt-mixedreality msrest>=0.6.21 @@ -241,4 +242,4 @@ opentelemetry-sdk<2.0.0,>=1.0.0 #override azure-mgmt-signalr msrest>=0.6.21 #override azure-mgmt-managedservices msrest>=0.6.21 #override azure-mgmt-databoxedge msrest>=0.6.21 -#override azure-mgmt-reservations msrest>=0.6.21 +#override azure-mgmt-reservations msrest>=0.6.21 \ No newline at end of file