From 74960300768ae4f0771d3cc2f568a47d7f22eb67 Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Fri, 18 Jun 2021 02:04:42 +0000 Subject: [PATCH 1/6] CodeGen from PR 14452 in Azure/azure-rest-api-specs Added missing updatable properties in ConfigurationStorePropertiesUpdateParameters (#14452) Co-authored-by: jimmypc92 --- .../azure-mgmt-appconfiguration/MANIFEST.in | 1 + .../azure-mgmt-appconfiguration/_meta.json | 11 + .../_app_configuration_management_client.py | 24 + .../mgmt/appconfiguration/_configuration.py | 2 +- .../mgmt/appconfiguration/_metadata.json | 85 ++- .../azure/mgmt/appconfiguration/_version.py | 2 +- .../_app_configuration_management_client.py | 23 + .../appconfiguration/aio/_configuration.py | 2 +- .../aio/operations/__init__.py | 2 + .../_configuration_stores_operations.py | 212 +++----- .../aio/operations/_key_values_operations.py | 387 ++++++++++++++ .../aio/operations/_operations.py | 26 +- ...private_endpoint_connections_operations.py | 78 +-- .../_private_link_resources_operations.py | 24 +- .../mgmt/appconfiguration/models/__init__.py | 41 +- ...p_configuration_management_client_enums.py | 9 + .../mgmt/appconfiguration/models/_models.py | 445 +++++++++++++--- .../appconfiguration/models/_models_py3.py | 493 +++++++++++++++--- .../appconfiguration/operations/__init__.py | 2 + .../_configuration_stores_operations.py | 191 +++---- .../operations/_key_values_operations.py | 396 ++++++++++++++ .../operations/_operations.py | 22 +- ...private_endpoint_connections_operations.py | 66 ++- .../_private_link_resources_operations.py | 20 +- 24 files changed, 2047 insertions(+), 517 deletions(-) create mode 100644 sdk/appconfiguration/azure-mgmt-appconfiguration/_meta.json create mode 100644 sdk/appconfiguration/azure-mgmt-appconfiguration/azure/mgmt/appconfiguration/aio/operations/_key_values_operations.py create mode 100644 sdk/appconfiguration/azure-mgmt-appconfiguration/azure/mgmt/appconfiguration/operations/_key_values_operations.py diff --git a/sdk/appconfiguration/azure-mgmt-appconfiguration/MANIFEST.in b/sdk/appconfiguration/azure-mgmt-appconfiguration/MANIFEST.in index a3cb07df8765..3a9b6517412b 100644 --- a/sdk/appconfiguration/azure-mgmt-appconfiguration/MANIFEST.in +++ b/sdk/appconfiguration/azure-mgmt-appconfiguration/MANIFEST.in @@ -1,3 +1,4 @@ +include _meta.json recursive-include tests *.py *.yaml include *.md include azure/__init__.py diff --git a/sdk/appconfiguration/azure-mgmt-appconfiguration/_meta.json b/sdk/appconfiguration/azure-mgmt-appconfiguration/_meta.json new file mode 100644 index 000000000000..e4dfd8ef8541 --- /dev/null +++ b/sdk/appconfiguration/azure-mgmt-appconfiguration/_meta.json @@ -0,0 +1,11 @@ +{ + "autorest": "3.4.2", + "use": [ + "@autorest/python@5.8.1", + "@autorest/modelerfour@4.19.2" + ], + "commit": "8295604d233d427afceff05bd5ed36d0cb7ae572", + "repository_url": "https://github.com/Azure/azure-rest-api-specs", + "autorest_command": "autorest specification/appconfiguration/resource-manager/readme.md --multiapi --python --python-mode=update --python-sdks-folder=/home/vsts/work/1/s/azure-sdk-for-python/sdk --track2 --use=@autorest/python@5.8.1 --use=@autorest/modelerfour@4.19.2 --version=3.4.2", + "readme": "specification/appconfiguration/resource-manager/readme.md" +} \ No newline at end of file diff --git a/sdk/appconfiguration/azure-mgmt-appconfiguration/azure/mgmt/appconfiguration/_app_configuration_management_client.py b/sdk/appconfiguration/azure-mgmt-appconfiguration/azure/mgmt/appconfiguration/_app_configuration_management_client.py index 517eb0b81d71..c648b48d1168 100644 --- a/sdk/appconfiguration/azure-mgmt-appconfiguration/azure/mgmt/appconfiguration/_app_configuration_management_client.py +++ b/sdk/appconfiguration/azure-mgmt-appconfiguration/azure/mgmt/appconfiguration/_app_configuration_management_client.py @@ -16,12 +16,14 @@ from typing import Any, Optional from azure.core.credentials import TokenCredential + from azure.core.pipeline.transport import HttpRequest, HttpResponse from ._configuration import AppConfigurationManagementClientConfiguration from .operations import ConfigurationStoresOperations from .operations import Operations from .operations import PrivateEndpointConnectionsOperations from .operations import PrivateLinkResourcesOperations +from .operations import KeyValuesOperations from . import models @@ -36,6 +38,8 @@ class AppConfigurationManagementClient(object): :vartype private_endpoint_connections: app_configuration_management_client.operations.PrivateEndpointConnectionsOperations :ivar private_link_resources: PrivateLinkResourcesOperations operations :vartype private_link_resources: app_configuration_management_client.operations.PrivateLinkResourcesOperations + :ivar key_values: KeyValuesOperations operations + :vartype key_values: app_configuration_management_client.operations.KeyValuesOperations :param credential: Credential needed for the client to connect to Azure. :type credential: ~azure.core.credentials.TokenCredential :param subscription_id: The Microsoft Azure subscription ID. @@ -70,6 +74,26 @@ def __init__( self._client, self._config, self._serialize, self._deserialize) self.private_link_resources = PrivateLinkResourcesOperations( self._client, self._config, self._serialize, self._deserialize) + self.key_values = KeyValuesOperations( + 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 diff --git a/sdk/appconfiguration/azure-mgmt-appconfiguration/azure/mgmt/appconfiguration/_configuration.py b/sdk/appconfiguration/azure-mgmt-appconfiguration/azure/mgmt/appconfiguration/_configuration.py index 606c3fdbe7c5..94518f089b88 100644 --- a/sdk/appconfiguration/azure-mgmt-appconfiguration/azure/mgmt/appconfiguration/_configuration.py +++ b/sdk/appconfiguration/azure-mgmt-appconfiguration/azure/mgmt/appconfiguration/_configuration.py @@ -48,7 +48,7 @@ def __init__( self.credential = credential self.subscription_id = subscription_id - self.api_version = "2020-06-01" + self.api_version = "2021-03-01-preview" self.credential_scopes = kwargs.pop('credential_scopes', ['https://management.azure.com/.default']) kwargs.setdefault('sdk_moniker', 'mgmt-appconfiguration/{}'.format(VERSION)) self._configure(**kwargs) diff --git a/sdk/appconfiguration/azure-mgmt-appconfiguration/azure/mgmt/appconfiguration/_metadata.json b/sdk/appconfiguration/azure-mgmt-appconfiguration/azure/mgmt/appconfiguration/_metadata.json index da2081174409..10194b4839fc 100644 --- a/sdk/appconfiguration/azure-mgmt-appconfiguration/azure/mgmt/appconfiguration/_metadata.json +++ b/sdk/appconfiguration/azure-mgmt-appconfiguration/azure/mgmt/appconfiguration/_metadata.json @@ -1,35 +1,42 @@ { - "chosen_version": "2019-11-01-preview", - "total_api_version_list": ["2019-11-01-preview"], + "chosen_version": "2021-03-01-preview", + "total_api_version_list": ["2021-03-01-preview"], "client": { "name": "AppConfigurationManagementClient", "filename": "_app_configuration_management_client", - "description": "AppConfigurationManagementClient." + "description": "AppConfigurationManagementClient.", + "base_url": "\u0027https://management.azure.com\u0027", + "custom_base_url": null, + "azure_arm": true, + "has_lro_operations": true, + "client_side_validation": false, + "sync_imports": "{\"typing\": {\"azurecore\": {\"azure.core.credentials\": [\"TokenCredential\"]}}, \"regular\": {\"azurecore\": {\"azure.profiles\": [\"KnownProfiles\", \"ProfileDefinition\"], \"azure.profiles.multiapiclient\": [\"MultiApiClientMixin\"], \"msrest\": [\"Deserializer\", \"Serializer\"], \"azure.mgmt.core\": [\"ARMPipelineClient\"]}, \"local\": {\"._configuration\": [\"AppConfigurationManagementClientConfiguration\"]}}, \"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\": [\"AppConfigurationManagementClientConfiguration\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}, \"azurecore\": {\"azure.core.pipeline.transport\": [\"AsyncHttpResponse\", \"HttpRequest\"]}}}" }, "global_parameters": { - "sync_method": { + "sync": { "credential": { - "method_signature": "credential, # type: \"TokenCredential\"", + "signature": "credential, # type: \"TokenCredential\"", "description": "Credential needed for the client to connect to Azure.", "docstring_type": "~azure.core.credentials.TokenCredential", "required": true }, "subscription_id": { - "method_signature": "subscription_id, # type: str", + "signature": "subscription_id, # type: str", "description": "The Microsoft Azure subscription ID.", "docstring_type": "str", "required": true } }, - "async_method": { + "async": { "credential": { - "method_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": { - "method_signature": "subscription_id, # type: str", + "signature": "subscription_id: str,", "description": "The Microsoft Azure subscription ID.", "docstring_type": "str", "required": true @@ -37,20 +44,64 @@ }, "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_scopes": ["https://management.azure.com/.default"], + "credential_default_policy_type": "BearerTokenCredentialPolicy", + "credential_default_policy_type_has_async_version": true, + "credential_key_header_name": null, + "sync_imports": "{\"regular\": {\"azurecore\": {\"azure.core.configuration\": [\"Configuration\"], \"azure.core.pipeline\": [\"policies\"], \"azure.mgmt.core.policies\": [\"ARMHttpLoggingPolicy\"]}, \"local\": {\"._version\": [\"VERSION\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\"]}}, \"typing\": {\"azurecore\": {\"azure.core.credentials\": [\"TokenCredential\"]}}}", + "async_imports": "{\"regular\": {\"azurecore\": {\"azure.core.configuration\": [\"Configuration\"], \"azure.core.pipeline\": [\"policies\"], \"azure.mgmt.core.policies\": [\"ARMHttpLoggingPolicy\"]}, \"local\": {\".._version\": [\"VERSION\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\"]}}, \"typing\": {\"azurecore\": {\"azure.core.credentials_async\": [\"AsyncTokenCredential\"]}}}" }, "operation_groups": { "configuration_stores": "ConfigurationStoresOperations", "operations": "Operations", "private_endpoint_connections": "PrivateEndpointConnectionsOperations", - "private_link_resources": "PrivateLinkResourcesOperations" - }, - "operation_mixins": { - }, - "sync_imports": "None", - "async_imports": "None" + "private_link_resources": "PrivateLinkResourcesOperations", + "key_values": "KeyValuesOperations" + } } \ No newline at end of file diff --git a/sdk/appconfiguration/azure-mgmt-appconfiguration/azure/mgmt/appconfiguration/_version.py b/sdk/appconfiguration/azure-mgmt-appconfiguration/azure/mgmt/appconfiguration/_version.py index 961c76eb77c1..eae7c95b6fbd 100644 --- a/sdk/appconfiguration/azure-mgmt-appconfiguration/azure/mgmt/appconfiguration/_version.py +++ b/sdk/appconfiguration/azure-mgmt-appconfiguration/azure/mgmt/appconfiguration/_version.py @@ -6,4 +6,4 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -VERSION = "1.0.1" +VERSION = "0.1.0" diff --git a/sdk/appconfiguration/azure-mgmt-appconfiguration/azure/mgmt/appconfiguration/aio/_app_configuration_management_client.py b/sdk/appconfiguration/azure-mgmt-appconfiguration/azure/mgmt/appconfiguration/aio/_app_configuration_management_client.py index ba53cbbe22ee..6bdb7cce7de2 100644 --- a/sdk/appconfiguration/azure-mgmt-appconfiguration/azure/mgmt/appconfiguration/aio/_app_configuration_management_client.py +++ b/sdk/appconfiguration/azure-mgmt-appconfiguration/azure/mgmt/appconfiguration/aio/_app_configuration_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 @@ -20,6 +21,7 @@ from .operations import Operations from .operations import PrivateEndpointConnectionsOperations from .operations import PrivateLinkResourcesOperations +from .operations import KeyValuesOperations from .. import models @@ -34,6 +36,8 @@ class AppConfigurationManagementClient(object): :vartype private_endpoint_connections: app_configuration_management_client.aio.operations.PrivateEndpointConnectionsOperations :ivar private_link_resources: PrivateLinkResourcesOperations operations :vartype private_link_resources: app_configuration_management_client.aio.operations.PrivateLinkResourcesOperations + :ivar key_values: KeyValuesOperations operations + :vartype key_values: app_configuration_management_client.aio.operations.KeyValuesOperations :param credential: Credential needed for the client to connect to Azure. :type credential: ~azure.core.credentials_async.AsyncTokenCredential :param subscription_id: The Microsoft Azure subscription ID. @@ -67,6 +71,25 @@ def __init__( self._client, self._config, self._serialize, self._deserialize) self.private_link_resources = PrivateLinkResourcesOperations( self._client, self._config, self._serialize, self._deserialize) + self.key_values = KeyValuesOperations( + 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/appconfiguration/azure-mgmt-appconfiguration/azure/mgmt/appconfiguration/aio/_configuration.py b/sdk/appconfiguration/azure-mgmt-appconfiguration/azure/mgmt/appconfiguration/aio/_configuration.py index a380a0b58b5f..b05e9219a47f 100644 --- a/sdk/appconfiguration/azure-mgmt-appconfiguration/azure/mgmt/appconfiguration/aio/_configuration.py +++ b/sdk/appconfiguration/azure-mgmt-appconfiguration/azure/mgmt/appconfiguration/aio/_configuration.py @@ -45,7 +45,7 @@ def __init__( self.credential = credential self.subscription_id = subscription_id - self.api_version = "2020-06-01" + self.api_version = "2021-03-01-preview" self.credential_scopes = kwargs.pop('credential_scopes', ['https://management.azure.com/.default']) kwargs.setdefault('sdk_moniker', 'mgmt-appconfiguration/{}'.format(VERSION)) self._configure(**kwargs) diff --git a/sdk/appconfiguration/azure-mgmt-appconfiguration/azure/mgmt/appconfiguration/aio/operations/__init__.py b/sdk/appconfiguration/azure-mgmt-appconfiguration/azure/mgmt/appconfiguration/aio/operations/__init__.py index 934a0920b836..99aa49efc9fb 100644 --- a/sdk/appconfiguration/azure-mgmt-appconfiguration/azure/mgmt/appconfiguration/aio/operations/__init__.py +++ b/sdk/appconfiguration/azure-mgmt-appconfiguration/azure/mgmt/appconfiguration/aio/operations/__init__.py @@ -10,10 +10,12 @@ from ._operations import Operations from ._private_endpoint_connections_operations import PrivateEndpointConnectionsOperations from ._private_link_resources_operations import PrivateLinkResourcesOperations +from ._key_values_operations import KeyValuesOperations __all__ = [ 'ConfigurationStoresOperations', 'Operations', 'PrivateEndpointConnectionsOperations', 'PrivateLinkResourcesOperations', + 'KeyValuesOperations', ] diff --git a/sdk/appconfiguration/azure-mgmt-appconfiguration/azure/mgmt/appconfiguration/aio/operations/_configuration_stores_operations.py b/sdk/appconfiguration/azure-mgmt-appconfiguration/azure/mgmt/appconfiguration/aio/operations/_configuration_stores_operations.py index dcf1d1351ce1..dd030ef3e11f 100644 --- a/sdk/appconfiguration/azure-mgmt-appconfiguration/azure/mgmt/appconfiguration/aio/operations/_configuration_stores_operations.py +++ b/sdk/appconfiguration/azure-mgmt-appconfiguration/azure/mgmt/appconfiguration/aio/operations/_configuration_stores_operations.py @@ -16,7 +16,7 @@ from azure.mgmt.core.exceptions import ARMErrorFormat from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling -from ... import models +from ... import models as _models T = TypeVar('T') ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] @@ -35,7 +35,7 @@ class ConfigurationStoresOperations: :param deserializer: An object model deserializer. """ - models = models + models = _models def __init__(self, client, config, serializer, deserializer) -> None: self._client = client @@ -46,8 +46,8 @@ def __init__(self, client, config, serializer, deserializer) -> None: def list( self, skip_token: Optional[str] = None, - **kwargs - ) -> AsyncIterable["models.ConfigurationStoreListResult"]: + **kwargs: Any + ) -> AsyncIterable["_models.ConfigurationStoreListResult"]: """Lists the configuration stores for a given subscription. :param skip_token: A skip token is used to continue retrieving items after an operation returns @@ -60,12 +60,12 @@ def list( :rtype: ~azure.core.async_paging.AsyncItemPaged[~app_configuration_management_client.models.ConfigurationStoreListResult] :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["models.ConfigurationStoreListResult"] + cls = kwargs.pop('cls', None) # type: ClsType["_models.ConfigurationStoreListResult"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-06-01" + api_version = "2021-03-01-preview" accept = "application/json" def prepare_request(next_link=None): @@ -107,7 +107,7 @@ async def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: - error = self._deserialize(models.Error, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -122,8 +122,8 @@ def list_by_resource_group( self, resource_group_name: str, skip_token: Optional[str] = None, - **kwargs - ) -> AsyncIterable["models.ConfigurationStoreListResult"]: + **kwargs: Any + ) -> AsyncIterable["_models.ConfigurationStoreListResult"]: """Lists the configuration stores for a given resource group. :param resource_group_name: The name of the resource group to which the container registry @@ -139,12 +139,12 @@ def list_by_resource_group( :rtype: ~azure.core.async_paging.AsyncItemPaged[~app_configuration_management_client.models.ConfigurationStoreListResult] :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["models.ConfigurationStoreListResult"] + cls = kwargs.pop('cls', None) # type: ClsType["_models.ConfigurationStoreListResult"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-06-01" + api_version = "2021-03-01-preview" accept = "application/json" def prepare_request(next_link=None): @@ -187,7 +187,7 @@ async def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: - error = self._deserialize(models.Error, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -202,8 +202,8 @@ async def get( self, resource_group_name: str, config_store_name: str, - **kwargs - ) -> "models.ConfigurationStore": + **kwargs: Any + ) -> "_models.ConfigurationStore": """Gets the properties of the specified configuration store. :param resource_group_name: The name of the resource group to which the container registry @@ -216,12 +216,12 @@ async def get( :rtype: ~app_configuration_management_client.models.ConfigurationStore :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["models.ConfigurationStore"] + cls = kwargs.pop('cls', None) # type: ClsType["_models.ConfigurationStore"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-06-01" + api_version = "2021-03-01-preview" accept = "application/json" # Construct URL @@ -247,7 +247,7 @@ async def get( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(models.Error, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize('ConfigurationStore', pipeline_response) @@ -262,15 +262,15 @@ async def _create_initial( self, resource_group_name: str, config_store_name: str, - config_store_creation_parameters: "models.ConfigurationStore", - **kwargs - ) -> "models.ConfigurationStore": - cls = kwargs.pop('cls', None) # type: ClsType["models.ConfigurationStore"] + config_store_creation_parameters: "_models.ConfigurationStore", + **kwargs: Any + ) -> "_models.ConfigurationStore": + cls = kwargs.pop('cls', None) # type: ClsType["_models.ConfigurationStore"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-06-01" + api_version = "2021-03-01-preview" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -301,7 +301,7 @@ async def _create_initial( if response.status_code not in [200, 201]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(models.Error, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) if response.status_code == 200: @@ -320,9 +320,9 @@ async def begin_create( self, resource_group_name: str, config_store_name: str, - config_store_creation_parameters: "models.ConfigurationStore", - **kwargs - ) -> AsyncLROPoller["models.ConfigurationStore"]: + config_store_creation_parameters: "_models.ConfigurationStore", + **kwargs: Any + ) -> AsyncLROPoller["_models.ConfigurationStore"]: """Creates a configuration store with the specified parameters. :param resource_group_name: The name of the resource group to which the container registry @@ -334,8 +334,8 @@ async def begin_create( :type config_store_creation_parameters: ~app_configuration_management_client.models.ConfigurationStore :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: True for ARMPolling, False for no polling, or a - polling object for personal polling strategy + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either ConfigurationStore or the result of cls(response) @@ -343,7 +343,7 @@ async def begin_create( :raises ~azure.core.exceptions.HttpResponseError: """ polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] - cls = kwargs.pop('cls', None) # type: ClsType["models.ConfigurationStore"] + cls = kwargs.pop('cls', None) # type: ClsType["_models.ConfigurationStore"] lro_delay = kwargs.pop( 'polling_interval', self._config.polling_interval @@ -368,7 +368,13 @@ def get_long_running_output(pipeline_response): return cls(pipeline_response, deserialized, {}) return deserialized - if polling is True: polling_method = AsyncARMPolling(lro_delay, **kwargs) + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'configStoreName': self._serialize.url("config_store_name", config_store_name, 'str', max_length=50, min_length=5, pattern=r'^[a-zA-Z0-9_-]*$'), + } + + if polling is True: polling_method = AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) elif polling is False: polling_method = AsyncNoPolling() else: polling_method = polling if cont_token: @@ -386,14 +392,14 @@ async def _delete_initial( self, resource_group_name: str, config_store_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-06-01" + api_version = "2021-03-01-preview" accept = "application/json" # Construct URL @@ -419,7 +425,7 @@ async def _delete_initial( if response.status_code not in [200, 202, 204]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(models.Error, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) if cls: @@ -431,7 +437,7 @@ async def begin_delete( self, resource_group_name: str, config_store_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Deletes a configuration store. @@ -442,8 +448,8 @@ async def begin_delete( :type config_store_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: True for ARMPolling, False for no polling, or a - polling object for personal polling strategy + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -472,7 +478,13 @@ def get_long_running_output(pipeline_response): if cls: return cls(pipeline_response, None, {}) - if polling is True: polling_method = AsyncARMPolling(lro_delay, **kwargs) + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'configStoreName': self._serialize.url("config_store_name", config_store_name, 'str', max_length=50, min_length=5, pattern=r'^[a-zA-Z0-9_-]*$'), + } + + if polling is True: polling_method = AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) elif polling is False: polling_method = AsyncNoPolling() else: polling_method = polling if cont_token: @@ -490,15 +502,15 @@ async def _update_initial( self, resource_group_name: str, config_store_name: str, - config_store_update_parameters: "models.ConfigurationStoreUpdateParameters", - **kwargs - ) -> "models.ConfigurationStore": - cls = kwargs.pop('cls', None) # type: ClsType["models.ConfigurationStore"] + config_store_update_parameters: "_models.ConfigurationStoreUpdateParameters", + **kwargs: Any + ) -> "_models.ConfigurationStore": + cls = kwargs.pop('cls', None) # type: ClsType["_models.ConfigurationStore"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-06-01" + api_version = "2021-03-01-preview" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -529,7 +541,7 @@ async def _update_initial( if response.status_code not in [200, 201]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(models.Error, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) if response.status_code == 200: @@ -548,9 +560,9 @@ async def begin_update( self, resource_group_name: str, config_store_name: str, - config_store_update_parameters: "models.ConfigurationStoreUpdateParameters", - **kwargs - ) -> AsyncLROPoller["models.ConfigurationStore"]: + config_store_update_parameters: "_models.ConfigurationStoreUpdateParameters", + **kwargs: Any + ) -> AsyncLROPoller["_models.ConfigurationStore"]: """Updates a configuration store with the specified parameters. :param resource_group_name: The name of the resource group to which the container registry @@ -562,8 +574,8 @@ async def begin_update( :type config_store_update_parameters: ~app_configuration_management_client.models.ConfigurationStoreUpdateParameters :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: True for ARMPolling, False for no polling, or a - polling object for personal polling strategy + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either ConfigurationStore or the result of cls(response) @@ -571,7 +583,7 @@ async def begin_update( :raises ~azure.core.exceptions.HttpResponseError: """ polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] - cls = kwargs.pop('cls', None) # type: ClsType["models.ConfigurationStore"] + cls = kwargs.pop('cls', None) # type: ClsType["_models.ConfigurationStore"] lro_delay = kwargs.pop( 'polling_interval', self._config.polling_interval @@ -596,7 +608,13 @@ def get_long_running_output(pipeline_response): return cls(pipeline_response, deserialized, {}) return deserialized - if polling is True: polling_method = AsyncARMPolling(lro_delay, **kwargs) + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'configStoreName': self._serialize.url("config_store_name", config_store_name, 'str', max_length=50, min_length=5, pattern=r'^[a-zA-Z0-9_-]*$'), + } + + if polling is True: polling_method = AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) elif polling is False: polling_method = AsyncNoPolling() else: polling_method = polling if cont_token: @@ -615,8 +633,8 @@ def list_keys( resource_group_name: str, config_store_name: str, skip_token: Optional[str] = None, - **kwargs - ) -> AsyncIterable["models.ApiKeyListResult"]: + **kwargs: Any + ) -> AsyncIterable["_models.ApiKeyListResult"]: """Lists the access key for the specified configuration store. :param resource_group_name: The name of the resource group to which the container registry @@ -634,12 +652,12 @@ def list_keys( :rtype: ~azure.core.async_paging.AsyncItemPaged[~app_configuration_management_client.models.ApiKeyListResult] :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["models.ApiKeyListResult"] + cls = kwargs.pop('cls', None) # type: ClsType["_models.ApiKeyListResult"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-06-01" + api_version = "2021-03-01-preview" accept = "application/json" def prepare_request(next_link=None): @@ -683,7 +701,7 @@ async def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: - error = self._deserialize(models.Error, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -692,15 +710,15 @@ async def get_next(next_link=None): return AsyncItemPaged( get_next, extract_data ) - list_keys.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppConfiguration/configurationStores/{configStoreName}/ListKeys'} # type: ignore + list_keys.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppConfiguration/configurationStores/{configStoreName}/listKeys'} # type: ignore async def regenerate_key( self, resource_group_name: str, config_store_name: str, - regenerate_key_parameters: "models.RegenerateKeyParameters", - **kwargs - ) -> "models.ApiKey": + regenerate_key_parameters: "_models.RegenerateKeyParameters", + **kwargs: Any + ) -> "_models.ApiKey": """Regenerates an access key for the specified configuration store. :param resource_group_name: The name of the resource group to which the container registry @@ -715,12 +733,12 @@ async def regenerate_key( :rtype: ~app_configuration_management_client.models.ApiKey :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["models.ApiKey"] + cls = kwargs.pop('cls', None) # type: ClsType["_models.ApiKey"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-06-01" + api_version = "2021-03-01-preview" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -751,7 +769,7 @@ async def regenerate_key( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(models.Error, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize('ApiKey', pipeline_response) @@ -760,72 +778,4 @@ async def regenerate_key( return cls(pipeline_response, deserialized, {}) return deserialized - regenerate_key.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppConfiguration/configurationStores/{configStoreName}/RegenerateKey'} # type: ignore - - async def list_key_value( - self, - resource_group_name: str, - config_store_name: str, - list_key_value_parameters: "models.ListKeyValueParameters", - **kwargs - ) -> "models.KeyValue": - """Lists a configuration store key-value. - - :param resource_group_name: The name of the resource group to which the container registry - belongs. - :type resource_group_name: str - :param config_store_name: The name of the configuration store. - :type config_store_name: str - :param list_key_value_parameters: The parameters for retrieving a key-value. - :type list_key_value_parameters: ~app_configuration_management_client.models.ListKeyValueParameters - :keyword callable cls: A custom type or function that will be passed the direct response - :return: KeyValue, or the result of cls(response) - :rtype: ~app_configuration_management_client.models.KeyValue - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop('cls', None) # type: ClsType["models.KeyValue"] - error_map = { - 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError - } - error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-06-01" - content_type = kwargs.pop("content_type", "application/json") - accept = "application/json" - - # Construct URL - url = self.list_key_value.metadata['url'] # type: ignore - path_format_arguments = { - 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), - 'configStoreName': self._serialize.url("config_store_name", config_store_name, 'str', max_length=50, min_length=5, pattern=r'^[a-zA-Z0-9_-]*$'), - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') - - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') - - body_content_kwargs = {} # type: Dict[str, Any] - body_content = self._serialize.body(list_key_value_parameters, 'ListKeyValueParameters') - body_content_kwargs['content'] = body_content - request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(models.Error, response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize('KeyValue', pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - list_key_value.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppConfiguration/configurationStores/{configStoreName}/listKeyValue'} # type: ignore + regenerate_key.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppConfiguration/configurationStores/{configStoreName}/regenerateKey'} # type: ignore diff --git a/sdk/appconfiguration/azure-mgmt-appconfiguration/azure/mgmt/appconfiguration/aio/operations/_key_values_operations.py b/sdk/appconfiguration/azure-mgmt-appconfiguration/azure/mgmt/appconfiguration/aio/operations/_key_values_operations.py new file mode 100644 index 000000000000..a5d91600ec47 --- /dev/null +++ b/sdk/appconfiguration/azure-mgmt-appconfiguration/azure/mgmt/appconfiguration/aio/operations/_key_values_operations.py @@ -0,0 +1,387 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- +from typing import Any, AsyncIterable, Callable, Dict, Generic, Optional, TypeVar, Union +import warnings + +from azure.core.async_paging import AsyncItemPaged, AsyncList +from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error +from azure.core.pipeline import PipelineResponse +from azure.core.pipeline.transport import AsyncHttpResponse, HttpRequest +from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod +from azure.mgmt.core.exceptions import ARMErrorFormat +from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling + +from ... import models as _models + +T = TypeVar('T') +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] + +class KeyValuesOperations: + """KeyValuesOperations async operations. + + You should not instantiate this class directly. Instead, you should create a Client instance that + instantiates it for you and attaches it as an attribute. + + :ivar models: Alias to model classes used in this operation group. + :type models: ~app_configuration_management_client.models + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + """ + + models = _models + + def __init__(self, client, config, serializer, deserializer) -> None: + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self._config = config + + def list_by_configuration_store( + self, + resource_group_name: str, + config_store_name: str, + skip_token: Optional[str] = None, + **kwargs: Any + ) -> AsyncIterable["_models.KeyValueListResult"]: + """Lists the key-values for a given configuration store. + + :param resource_group_name: The name of the resource group to which the container registry + belongs. + :type resource_group_name: str + :param config_store_name: The name of the configuration store. + :type config_store_name: str + :param skip_token: A skip token is used to continue retrieving items after an operation returns + a partial result. If a previous response contains a nextLink element, the value of the nextLink + element will include a skipToken parameter that specifies a starting point to use for + subsequent calls. + :type skip_token: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: An iterator like instance of either KeyValueListResult or the result of cls(response) + :rtype: ~azure.core.async_paging.AsyncItemPaged[~app_configuration_management_client.models.KeyValueListResult] + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.KeyValueListResult"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01-preview" + accept = "application/json" + + def prepare_request(next_link=None): + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + if not next_link: + # Construct URL + url = self.list_by_configuration_store.metadata['url'] # type: ignore + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'configStoreName': self._serialize.url("config_store_name", config_store_name, 'str', max_length=50, min_length=5, pattern=r'^[a-zA-Z0-9_-]*$'), + } + url = self._client.format_url(url, **path_format_arguments) + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + if skip_token is not None: + query_parameters['$skipToken'] = self._serialize.query("skip_token", skip_token, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + else: + url = next_link + query_parameters = {} # type: Dict[str, Any] + request = self._client.get(url, query_parameters, header_parameters) + return request + + async def extract_data(pipeline_response): + deserialized = self._deserialize('KeyValueListResult', pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) + return deserialized.next_link or None, AsyncList(list_of_elem) + + async def get_next(next_link=None): + request = prepare_request(next_link) + + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return AsyncItemPaged( + get_next, extract_data + ) + list_by_configuration_store.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppConfiguration/configurationStores/{configStoreName}/keyValues'} # type: ignore + + async def get( + self, + resource_group_name: str, + config_store_name: str, + key_value_name: str, + **kwargs: Any + ) -> "_models.KeyValue": + """Gets the properties of the specified key-value. + + :param resource_group_name: The name of the resource group to which the container registry + belongs. + :type resource_group_name: str + :param config_store_name: The name of the configuration store. + :type config_store_name: str + :param key_value_name: Identifier of key and label combination. Key and label are joined by $ + character. Label is optional. + :type key_value_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: KeyValue, or the result of cls(response) + :rtype: ~app_configuration_management_client.models.KeyValue + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.KeyValue"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01-preview" + accept = "application/json" + + # Construct URL + url = self.get.metadata['url'] # type: ignore + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'configStoreName': self._serialize.url("config_store_name", config_store_name, 'str', max_length=50, min_length=5, pattern=r'^[a-zA-Z0-9_-]*$'), + 'keyValueName': self._serialize.url("key_value_name", key_value_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + deserialized = self._deserialize('KeyValue', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppConfiguration/configurationStores/{configStoreName}/keyValues/{keyValueName}'} # type: ignore + + async def create_or_update( + self, + resource_group_name: str, + config_store_name: str, + key_value_name: str, + key_value_parameters: Optional["_models.KeyValue"] = None, + **kwargs: Any + ) -> "_models.KeyValue": + """Creates a key-value. + + :param resource_group_name: The name of the resource group to which the container registry + belongs. + :type resource_group_name: str + :param config_store_name: The name of the configuration store. + :type config_store_name: str + :param key_value_name: Identifier of key and label combination. Key and label are joined by $ + character. Label is optional. + :type key_value_name: str + :param key_value_parameters: The parameters for creating a key-value. + :type key_value_parameters: ~app_configuration_management_client.models.KeyValue + :keyword callable cls: A custom type or function that will be passed the direct response + :return: KeyValue, or the result of cls(response) + :rtype: ~app_configuration_management_client.models.KeyValue + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.KeyValue"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01-preview" + content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" + + # Construct URL + url = self.create_or_update.metadata['url'] # type: ignore + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'configStoreName': self._serialize.url("config_store_name", config_store_name, 'str', max_length=50, min_length=5, pattern=r'^[a-zA-Z0-9_-]*$'), + 'keyValueName': self._serialize.url("key_value_name", key_value_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + body_content_kwargs = {} # type: Dict[str, Any] + if key_value_parameters is not None: + body_content = self._serialize.body(key_value_parameters, 'KeyValue') + else: + body_content = None + body_content_kwargs['content'] = body_content + request = self._client.put(url, query_parameters, header_parameters, **body_content_kwargs) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + deserialized = self._deserialize('KeyValue', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppConfiguration/configurationStores/{configStoreName}/keyValues/{keyValueName}'} # type: ignore + + async def _delete_initial( + self, + resource_group_name: str, + config_store_name: str, + key_value_name: str, + **kwargs: Any + ) -> None: + cls = kwargs.pop('cls', None) # type: ClsType[None] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01-preview" + accept = "application/json" + + # Construct URL + url = self._delete_initial.metadata['url'] # type: ignore + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'configStoreName': self._serialize.url("config_store_name", config_store_name, 'str', max_length=50, min_length=5, pattern=r'^[a-zA-Z0-9_-]*$'), + 'keyValueName': self._serialize.url("key_value_name", key_value_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + request = self._client.delete(url, query_parameters, header_parameters) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 202, 204]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if cls: + return cls(pipeline_response, None, {}) + + _delete_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppConfiguration/configurationStores/{configStoreName}/keyValues/{keyValueName}'} # type: ignore + + async def begin_delete( + self, + resource_group_name: str, + config_store_name: str, + key_value_name: str, + **kwargs: Any + ) -> AsyncLROPoller[None]: + """Deletes a key-value. + + :param resource_group_name: The name of the resource group to which the container registry + belongs. + :type resource_group_name: str + :param config_store_name: The name of the configuration store. + :type config_store_name: str + :param key_value_name: Identifier of key and label combination. Key and label are joined by $ + character. Label is optional. + :type key_value_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. + :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) + :rtype: ~azure.core.polling.AsyncLROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType[None] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = await self._delete_initial( + resource_group_name=resource_group_name, + config_store_name=config_store_name, + key_value_name=key_value_name, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + if cls: + return cls(pipeline_response, None, {}) + + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'configStoreName': self._serialize.url("config_store_name", config_store_name, 'str', max_length=50, min_length=5, pattern=r'^[a-zA-Z0-9_-]*$'), + 'keyValueName': self._serialize.url("key_value_name", key_value_name, 'str'), + } + + if polling is True: polling_method = AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + elif polling is False: polling_method = AsyncNoPolling() + else: polling_method = polling + if cont_token: + return AsyncLROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppConfiguration/configurationStores/{configStoreName}/keyValues/{keyValueName}'} # type: ignore diff --git a/sdk/appconfiguration/azure-mgmt-appconfiguration/azure/mgmt/appconfiguration/aio/operations/_operations.py b/sdk/appconfiguration/azure-mgmt-appconfiguration/azure/mgmt/appconfiguration/aio/operations/_operations.py index c6ec8c357f6c..896eebd90c32 100644 --- a/sdk/appconfiguration/azure-mgmt-appconfiguration/azure/mgmt/appconfiguration/aio/operations/_operations.py +++ b/sdk/appconfiguration/azure-mgmt-appconfiguration/azure/mgmt/appconfiguration/aio/operations/_operations.py @@ -14,7 +14,7 @@ from azure.core.pipeline.transport import AsyncHttpResponse, HttpRequest from azure.mgmt.core.exceptions import ARMErrorFormat -from ... import models +from ... import models as _models T = TypeVar('T') ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] @@ -33,7 +33,7 @@ class Operations: :param deserializer: An object model deserializer. """ - models = models + models = _models def __init__(self, client, config, serializer, deserializer) -> None: self._client = client @@ -43,9 +43,9 @@ def __init__(self, client, config, serializer, deserializer) -> None: async def check_name_availability( self, - check_name_availability_parameters: "models.CheckNameAvailabilityParameters", - **kwargs - ) -> "models.NameAvailabilityStatus": + check_name_availability_parameters: "_models.CheckNameAvailabilityParameters", + **kwargs: Any + ) -> "_models.NameAvailabilityStatus": """Checks whether the configuration store name is available for use. :param check_name_availability_parameters: The object containing information for the @@ -56,12 +56,12 @@ async def check_name_availability( :rtype: ~app_configuration_management_client.models.NameAvailabilityStatus :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["models.NameAvailabilityStatus"] + cls = kwargs.pop('cls', None) # type: ClsType["_models.NameAvailabilityStatus"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-06-01" + api_version = "2021-03-01-preview" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -90,7 +90,7 @@ async def check_name_availability( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(models.Error, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize('NameAvailabilityStatus', pipeline_response) @@ -104,8 +104,8 @@ async def check_name_availability( def list( self, skip_token: Optional[str] = None, - **kwargs - ) -> AsyncIterable["models.OperationDefinitionListResult"]: + **kwargs: Any + ) -> AsyncIterable["_models.OperationDefinitionListResult"]: """Lists the operations available from this provider. :param skip_token: A skip token is used to continue retrieving items after an operation returns @@ -118,12 +118,12 @@ def list( :rtype: ~azure.core.async_paging.AsyncItemPaged[~app_configuration_management_client.models.OperationDefinitionListResult] :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["models.OperationDefinitionListResult"] + cls = kwargs.pop('cls', None) # type: ClsType["_models.OperationDefinitionListResult"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-06-01" + api_version = "2021-03-01-preview" accept = "application/json" def prepare_request(next_link=None): @@ -161,7 +161,7 @@ async def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: - error = self._deserialize(models.Error, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) diff --git a/sdk/appconfiguration/azure-mgmt-appconfiguration/azure/mgmt/appconfiguration/aio/operations/_private_endpoint_connections_operations.py b/sdk/appconfiguration/azure-mgmt-appconfiguration/azure/mgmt/appconfiguration/aio/operations/_private_endpoint_connections_operations.py index ce23398c3f49..fbf213735249 100644 --- a/sdk/appconfiguration/azure-mgmt-appconfiguration/azure/mgmt/appconfiguration/aio/operations/_private_endpoint_connections_operations.py +++ b/sdk/appconfiguration/azure-mgmt-appconfiguration/azure/mgmt/appconfiguration/aio/operations/_private_endpoint_connections_operations.py @@ -16,7 +16,7 @@ from azure.mgmt.core.exceptions import ARMErrorFormat from azure.mgmt.core.polling.async_arm_polling import AsyncARMPolling -from ... import models +from ... import models as _models T = TypeVar('T') ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] @@ -35,7 +35,7 @@ class PrivateEndpointConnectionsOperations: :param deserializer: An object model deserializer. """ - models = models + models = _models def __init__(self, client, config, serializer, deserializer) -> None: self._client = client @@ -47,8 +47,8 @@ def list_by_configuration_store( self, resource_group_name: str, config_store_name: str, - **kwargs - ) -> AsyncIterable["models.PrivateEndpointConnectionListResult"]: + **kwargs: Any + ) -> AsyncIterable["_models.PrivateEndpointConnectionListResult"]: """Lists all private endpoint connections for a configuration store. :param resource_group_name: The name of the resource group to which the container registry @@ -61,12 +61,12 @@ def list_by_configuration_store( :rtype: ~azure.core.async_paging.AsyncItemPaged[~app_configuration_management_client.models.PrivateEndpointConnectionListResult] :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["models.PrivateEndpointConnectionListResult"] + cls = kwargs.pop('cls', None) # type: ClsType["_models.PrivateEndpointConnectionListResult"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-06-01" + api_version = "2021-03-01-preview" accept = "application/json" def prepare_request(next_link=None): @@ -108,7 +108,7 @@ async def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: - error = self._deserialize(models.Error, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -124,8 +124,8 @@ async def get( resource_group_name: str, config_store_name: str, private_endpoint_connection_name: str, - **kwargs - ) -> "models.PrivateEndpointConnection": + **kwargs: Any + ) -> "_models.PrivateEndpointConnection": """Gets the specified private endpoint connection associated with the configuration store. :param resource_group_name: The name of the resource group to which the container registry @@ -140,12 +140,12 @@ async def get( :rtype: ~app_configuration_management_client.models.PrivateEndpointConnection :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["models.PrivateEndpointConnection"] + cls = kwargs.pop('cls', None) # type: ClsType["_models.PrivateEndpointConnection"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-06-01" + api_version = "2021-03-01-preview" accept = "application/json" # Construct URL @@ -172,7 +172,7 @@ async def get( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(models.Error, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize('PrivateEndpointConnection', pipeline_response) @@ -188,15 +188,15 @@ async def _create_or_update_initial( resource_group_name: str, config_store_name: str, private_endpoint_connection_name: str, - private_endpoint_connection: "models.PrivateEndpointConnection", - **kwargs - ) -> "models.PrivateEndpointConnection": - cls = kwargs.pop('cls', None) # type: ClsType["models.PrivateEndpointConnection"] + private_endpoint_connection: "_models.PrivateEndpointConnection", + **kwargs: Any + ) -> "_models.PrivateEndpointConnection": + cls = kwargs.pop('cls', None) # type: ClsType["_models.PrivateEndpointConnection"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-06-01" + api_version = "2021-03-01-preview" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -228,7 +228,7 @@ async def _create_or_update_initial( if response.status_code not in [200, 201]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(models.Error, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) if response.status_code == 200: @@ -248,9 +248,9 @@ async def begin_create_or_update( resource_group_name: str, config_store_name: str, private_endpoint_connection_name: str, - private_endpoint_connection: "models.PrivateEndpointConnection", - **kwargs - ) -> AsyncLROPoller["models.PrivateEndpointConnection"]: + private_endpoint_connection: "_models.PrivateEndpointConnection", + **kwargs: Any + ) -> AsyncLROPoller["_models.PrivateEndpointConnection"]: """Update the state of the specified private endpoint connection associated with the configuration store. @@ -265,8 +265,8 @@ async def begin_create_or_update( :type private_endpoint_connection: ~app_configuration_management_client.models.PrivateEndpointConnection :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: True for ARMPolling, False for no polling, or a - polling object for personal polling strategy + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either PrivateEndpointConnection or the result of cls(response) @@ -274,7 +274,7 @@ async def begin_create_or_update( :raises ~azure.core.exceptions.HttpResponseError: """ polling = kwargs.pop('polling', True) # type: Union[bool, AsyncPollingMethod] - cls = kwargs.pop('cls', None) # type: ClsType["models.PrivateEndpointConnection"] + cls = kwargs.pop('cls', None) # type: ClsType["_models.PrivateEndpointConnection"] lro_delay = kwargs.pop( 'polling_interval', self._config.polling_interval @@ -300,7 +300,14 @@ def get_long_running_output(pipeline_response): return cls(pipeline_response, deserialized, {}) return deserialized - if polling is True: polling_method = AsyncARMPolling(lro_delay, **kwargs) + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'configStoreName': self._serialize.url("config_store_name", config_store_name, 'str', max_length=50, min_length=5, pattern=r'^[a-zA-Z0-9_-]*$'), + 'privateEndpointConnectionName': self._serialize.url("private_endpoint_connection_name", private_endpoint_connection_name, 'str'), + } + + if polling is True: polling_method = AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) elif polling is False: polling_method = AsyncNoPolling() else: polling_method = polling if cont_token: @@ -319,14 +326,14 @@ async def _delete_initial( resource_group_name: str, config_store_name: str, private_endpoint_connection_name: str, - **kwargs + **kwargs: Any ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-06-01" + api_version = "2021-03-01-preview" accept = "application/json" # Construct URL @@ -353,7 +360,7 @@ async def _delete_initial( if response.status_code not in [200, 202, 204]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(models.Error, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) if cls: @@ -366,7 +373,7 @@ async def begin_delete( resource_group_name: str, config_store_name: str, private_endpoint_connection_name: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller[None]: """Deletes a private endpoint connection. @@ -379,8 +386,8 @@ async def begin_delete( :type private_endpoint_connection_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: True for ARMPolling, False for no polling, or a - polling object for personal polling strategy + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) @@ -410,7 +417,14 @@ def get_long_running_output(pipeline_response): if cls: return cls(pipeline_response, None, {}) - if polling is True: polling_method = AsyncARMPolling(lro_delay, **kwargs) + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'configStoreName': self._serialize.url("config_store_name", config_store_name, 'str', max_length=50, min_length=5, pattern=r'^[a-zA-Z0-9_-]*$'), + 'privateEndpointConnectionName': self._serialize.url("private_endpoint_connection_name", private_endpoint_connection_name, 'str'), + } + + if polling is True: polling_method = AsyncARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) elif polling is False: polling_method = AsyncNoPolling() else: polling_method = polling if cont_token: diff --git a/sdk/appconfiguration/azure-mgmt-appconfiguration/azure/mgmt/appconfiguration/aio/operations/_private_link_resources_operations.py b/sdk/appconfiguration/azure-mgmt-appconfiguration/azure/mgmt/appconfiguration/aio/operations/_private_link_resources_operations.py index d2b6120f26af..ed81cef84ed1 100644 --- a/sdk/appconfiguration/azure-mgmt-appconfiguration/azure/mgmt/appconfiguration/aio/operations/_private_link_resources_operations.py +++ b/sdk/appconfiguration/azure-mgmt-appconfiguration/azure/mgmt/appconfiguration/aio/operations/_private_link_resources_operations.py @@ -14,7 +14,7 @@ from azure.core.pipeline.transport import AsyncHttpResponse, HttpRequest from azure.mgmt.core.exceptions import ARMErrorFormat -from ... import models +from ... import models as _models T = TypeVar('T') ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] @@ -33,7 +33,7 @@ class PrivateLinkResourcesOperations: :param deserializer: An object model deserializer. """ - models = models + models = _models def __init__(self, client, config, serializer, deserializer) -> None: self._client = client @@ -45,8 +45,8 @@ def list_by_configuration_store( self, resource_group_name: str, config_store_name: str, - **kwargs - ) -> AsyncIterable["models.PrivateLinkResourceListResult"]: + **kwargs: Any + ) -> AsyncIterable["_models.PrivateLinkResourceListResult"]: """Gets the private link resources that need to be created for a configuration store. :param resource_group_name: The name of the resource group to which the container registry @@ -59,12 +59,12 @@ def list_by_configuration_store( :rtype: ~azure.core.async_paging.AsyncItemPaged[~app_configuration_management_client.models.PrivateLinkResourceListResult] :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["models.PrivateLinkResourceListResult"] + cls = kwargs.pop('cls', None) # type: ClsType["_models.PrivateLinkResourceListResult"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-06-01" + api_version = "2021-03-01-preview" accept = "application/json" def prepare_request(next_link=None): @@ -106,7 +106,7 @@ async def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: - error = self._deserialize(models.Error, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -122,8 +122,8 @@ async def get( resource_group_name: str, config_store_name: str, group_name: str, - **kwargs - ) -> "models.PrivateLinkResource": + **kwargs: Any + ) -> "_models.PrivateLinkResource": """Gets a private link resource that need to be created for a configuration store. :param resource_group_name: The name of the resource group to which the container registry @@ -138,12 +138,12 @@ async def get( :rtype: ~app_configuration_management_client.models.PrivateLinkResource :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["models.PrivateLinkResource"] + cls = kwargs.pop('cls', None) # type: ClsType["_models.PrivateLinkResource"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-06-01" + api_version = "2021-03-01-preview" accept = "application/json" # Construct URL @@ -170,7 +170,7 @@ async def get( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(models.Error, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize('PrivateLinkResource', pipeline_response) diff --git a/sdk/appconfiguration/azure-mgmt-appconfiguration/azure/mgmt/appconfiguration/models/__init__.py b/sdk/appconfiguration/azure-mgmt-appconfiguration/azure/mgmt/appconfiguration/models/__init__.py index a9c87685eb6f..cacfda847ae4 100644 --- a/sdk/appconfiguration/azure-mgmt-appconfiguration/azure/mgmt/appconfiguration/models/__init__.py +++ b/sdk/appconfiguration/azure-mgmt-appconfiguration/azure/mgmt/appconfiguration/models/__init__.py @@ -14,14 +14,20 @@ from ._models_py3 import ConfigurationStoreListResult from ._models_py3 import ConfigurationStoreUpdateParameters from ._models_py3 import EncryptionProperties - from ._models_py3 import Error + from ._models_py3 import ErrorAdditionalInfo + from ._models_py3 import ErrorDetails + from ._models_py3 import ErrorResponse from ._models_py3 import KeyValue + from ._models_py3 import KeyValueListResult from ._models_py3 import KeyVaultProperties - from ._models_py3 import ListKeyValueParameters + from ._models_py3 import LogSpecification + from ._models_py3 import MetricDimension + from ._models_py3 import MetricSpecification from ._models_py3 import NameAvailabilityStatus from ._models_py3 import OperationDefinition from ._models_py3 import OperationDefinitionDisplay from ._models_py3 import OperationDefinitionListResult + from ._models_py3 import OperationProperties from ._models_py3 import PrivateEndpoint from ._models_py3 import PrivateEndpointConnection from ._models_py3 import PrivateEndpointConnectionListResult @@ -32,7 +38,10 @@ from ._models_py3 import RegenerateKeyParameters from ._models_py3 import Resource from ._models_py3 import ResourceIdentity + from ._models_py3 import ServiceSpecification from ._models_py3 import Sku + from ._models_py3 import SystemData + from ._models_py3 import TrackedResource from ._models_py3 import UserIdentity except (SyntaxError, ImportError): from ._models import ApiKey # type: ignore @@ -42,14 +51,20 @@ from ._models import ConfigurationStoreListResult # type: ignore from ._models import ConfigurationStoreUpdateParameters # type: ignore from ._models import EncryptionProperties # type: ignore - from ._models import Error # type: ignore + from ._models import ErrorAdditionalInfo # type: ignore + from ._models import ErrorDetails # type: ignore + from ._models import ErrorResponse # type: ignore from ._models import KeyValue # type: ignore + from ._models import KeyValueListResult # type: ignore from ._models import KeyVaultProperties # type: ignore - from ._models import ListKeyValueParameters # type: ignore + from ._models import LogSpecification # type: ignore + from ._models import MetricDimension # type: ignore + from ._models import MetricSpecification # type: ignore from ._models import NameAvailabilityStatus # type: ignore from ._models import OperationDefinition # type: ignore from ._models import OperationDefinitionDisplay # type: ignore from ._models import OperationDefinitionListResult # type: ignore + from ._models import OperationProperties # type: ignore from ._models import PrivateEndpoint # type: ignore from ._models import PrivateEndpointConnection # type: ignore from ._models import PrivateEndpointConnectionListResult # type: ignore @@ -60,13 +75,17 @@ from ._models import RegenerateKeyParameters # type: ignore from ._models import Resource # type: ignore from ._models import ResourceIdentity # type: ignore + from ._models import ServiceSpecification # type: ignore from ._models import Sku # type: ignore + from ._models import SystemData # type: ignore + from ._models import TrackedResource # type: ignore from ._models import UserIdentity # type: ignore from ._app_configuration_management_client_enums import ( ActionsRequired, ConfigurationResourceType, ConnectionStatus, + CreatedByType, IdentityType, ProvisioningState, PublicNetworkAccess, @@ -80,14 +99,20 @@ 'ConfigurationStoreListResult', 'ConfigurationStoreUpdateParameters', 'EncryptionProperties', - 'Error', + 'ErrorAdditionalInfo', + 'ErrorDetails', + 'ErrorResponse', 'KeyValue', + 'KeyValueListResult', 'KeyVaultProperties', - 'ListKeyValueParameters', + 'LogSpecification', + 'MetricDimension', + 'MetricSpecification', 'NameAvailabilityStatus', 'OperationDefinition', 'OperationDefinitionDisplay', 'OperationDefinitionListResult', + 'OperationProperties', 'PrivateEndpoint', 'PrivateEndpointConnection', 'PrivateEndpointConnectionListResult', @@ -98,11 +123,15 @@ 'RegenerateKeyParameters', 'Resource', 'ResourceIdentity', + 'ServiceSpecification', 'Sku', + 'SystemData', + 'TrackedResource', 'UserIdentity', 'ActionsRequired', 'ConfigurationResourceType', 'ConnectionStatus', + 'CreatedByType', 'IdentityType', 'ProvisioningState', 'PublicNetworkAccess', diff --git a/sdk/appconfiguration/azure-mgmt-appconfiguration/azure/mgmt/appconfiguration/models/_app_configuration_management_client_enums.py b/sdk/appconfiguration/azure-mgmt-appconfiguration/azure/mgmt/appconfiguration/models/_app_configuration_management_client_enums.py index a5230dec6ff2..61a832bd128d 100644 --- a/sdk/appconfiguration/azure-mgmt-appconfiguration/azure/mgmt/appconfiguration/models/_app_configuration_management_client_enums.py +++ b/sdk/appconfiguration/azure-mgmt-appconfiguration/azure/mgmt/appconfiguration/models/_app_configuration_management_client_enums.py @@ -48,6 +48,15 @@ class ConnectionStatus(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): REJECTED = "Rejected" DISCONNECTED = "Disconnected" +class CreatedByType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """The type of identity that created the resource. + """ + + USER = "User" + APPLICATION = "Application" + MANAGED_IDENTITY = "ManagedIdentity" + KEY = "Key" + class IdentityType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): """The type of managed identity used. The type 'SystemAssigned, UserAssigned' includes both an implicitly created identity and a set of user-assigned identities. The type 'None' will remove diff --git a/sdk/appconfiguration/azure-mgmt-appconfiguration/azure/mgmt/appconfiguration/models/_models.py b/sdk/appconfiguration/azure-mgmt-appconfiguration/azure/mgmt/appconfiguration/models/_models.py index 6301e3516c2e..46190ee729fc 100644 --- a/sdk/appconfiguration/azure-mgmt-appconfiguration/azure/mgmt/appconfiguration/models/_models.py +++ b/sdk/appconfiguration/azure-mgmt-appconfiguration/azure/mgmt/appconfiguration/models/_models.py @@ -116,23 +116,61 @@ def __init__( class Resource(msrest.serialization.Model): - """An Azure resource. + """Common fields that are returned in the response for all Azure Resource Manager resources. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. + :vartype id: str + :ivar name: The name of the resource. + :vartype name: str + :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + "Microsoft.Storage/storageAccounts". + :vartype type: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(Resource, self).__init__(**kwargs) + self.id = None + self.name = None + self.type = None + + +class TrackedResource(Resource): + """The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location'. Variables are only populated by the server, and will be ignored when sending a request. All required parameters must be populated in order to send to Azure. - :ivar id: The resource ID. + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. :vartype id: str :ivar name: The name of the resource. :vartype name: str - :ivar type: The type of the resource. + :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + "Microsoft.Storage/storageAccounts". :vartype type: str - :param location: Required. The location of the resource. This cannot be changed after the - resource is created. - :type location: str - :param tags: A set of tags. The tags of the resource. + :param tags: A set of tags. Resource tags. :type tags: dict[str, str] + :param location: Required. The geo-location where the resource lives. + :type location: str """ _validation = { @@ -146,44 +184,44 @@ class Resource(msrest.serialization.Model): 'id': {'key': 'id', 'type': 'str'}, 'name': {'key': 'name', 'type': 'str'}, 'type': {'key': 'type', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, 'tags': {'key': 'tags', 'type': '{str}'}, + 'location': {'key': 'location', 'type': 'str'}, } def __init__( self, **kwargs ): - super(Resource, self).__init__(**kwargs) - self.id = None - self.name = None - self.type = None - self.location = kwargs['location'] + super(TrackedResource, self).__init__(**kwargs) self.tags = kwargs.get('tags', None) + self.location = kwargs['location'] -class ConfigurationStore(Resource): +class ConfigurationStore(TrackedResource): """The configuration store along with all resource properties. The Configuration Store will have all information to begin utilizing it. Variables are only populated by the server, and will be ignored when sending a request. All required parameters must be populated in order to send to Azure. - :ivar id: The resource ID. + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. :vartype id: str :ivar name: The name of the resource. :vartype name: str - :ivar type: The type of the resource. + :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + "Microsoft.Storage/storageAccounts". :vartype type: str - :param location: Required. The location of the resource. This cannot be changed after the - resource is created. - :type location: str - :param tags: A set of tags. The tags of the resource. + :param tags: A set of tags. Resource tags. :type tags: dict[str, str] + :param location: Required. The geo-location where the resource lives. + :type location: str :param identity: The managed identity information, if configured. :type identity: ~app_configuration_management_client.models.ResourceIdentity :param sku: Required. The sku of the configuration store. :type sku: ~app_configuration_management_client.models.Sku + :ivar system_data: Resource system metadata. + :vartype system_data: ~app_configuration_management_client.models.SystemData :ivar provisioning_state: The provisioning state of the configuration store. Possible values include: "Creating", "Updating", "Deleting", "Succeeded", "Failed", "Canceled". :vartype provisioning_state: str or @@ -202,6 +240,8 @@ class ConfigurationStore(Resource): networks while private endpoint is enabled. Possible values include: "Enabled", "Disabled". :type public_network_access: str or ~app_configuration_management_client.models.PublicNetworkAccess + :param disable_local_auth: Disables all authentication methods other than AAD authentication. + :type disable_local_auth: bool """ _validation = { @@ -210,6 +250,7 @@ class ConfigurationStore(Resource): 'type': {'readonly': True}, 'location': {'required': True}, 'sku': {'required': True}, + 'system_data': {'readonly': True}, 'provisioning_state': {'readonly': True}, 'creation_date': {'readonly': True}, 'endpoint': {'readonly': True}, @@ -220,16 +261,18 @@ class ConfigurationStore(Resource): 'id': {'key': 'id', 'type': 'str'}, 'name': {'key': 'name', 'type': 'str'}, 'type': {'key': 'type', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, 'tags': {'key': 'tags', 'type': '{str}'}, + 'location': {'key': 'location', 'type': 'str'}, 'identity': {'key': 'identity', 'type': 'ResourceIdentity'}, 'sku': {'key': 'sku', 'type': 'Sku'}, + 'system_data': {'key': 'systemData', 'type': 'SystemData'}, 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, 'creation_date': {'key': 'properties.creationDate', 'type': 'iso-8601'}, 'endpoint': {'key': 'properties.endpoint', 'type': 'str'}, 'encryption': {'key': 'properties.encryption', 'type': 'EncryptionProperties'}, 'private_endpoint_connections': {'key': 'properties.privateEndpointConnections', 'type': '[PrivateEndpointConnectionReference]'}, 'public_network_access': {'key': 'properties.publicNetworkAccess', 'type': 'str'}, + 'disable_local_auth': {'key': 'properties.disableLocalAuth', 'type': 'bool'}, } def __init__( @@ -239,12 +282,14 @@ def __init__( super(ConfigurationStore, self).__init__(**kwargs) self.identity = kwargs.get('identity', None) self.sku = kwargs['sku'] + self.system_data = None self.provisioning_state = None self.creation_date = None self.endpoint = None self.encryption = kwargs.get('encryption', None) self.private_endpoint_connections = None self.public_network_access = kwargs.get('public_network_access', None) + self.disable_local_auth = kwargs.get('disable_local_auth', None) class ConfigurationStoreListResult(msrest.serialization.Model): @@ -281,6 +326,8 @@ class ConfigurationStoreUpdateParameters(msrest.serialization.Model): :type tags: dict[str, str] :param encryption: The encryption settings of the configuration store. :type encryption: ~app_configuration_management_client.models.EncryptionProperties + :param disable_local_auth: Disables all authentication methods other than AAD authentication. + :type disable_local_auth: bool :param public_network_access: Control permission for data plane traffic coming from public networks while private endpoint is enabled. Possible values include: "Enabled", "Disabled". :type public_network_access: str or @@ -292,6 +339,7 @@ class ConfigurationStoreUpdateParameters(msrest.serialization.Model): 'sku': {'key': 'sku', 'type': 'Sku'}, 'tags': {'key': 'tags', 'type': '{str}'}, 'encryption': {'key': 'properties.encryption', 'type': 'EncryptionProperties'}, + 'disable_local_auth': {'key': 'properties.disableLocalAuth', 'type': 'bool'}, 'public_network_access': {'key': 'properties.publicNetworkAccess', 'type': 'str'}, } @@ -304,6 +352,7 @@ def __init__( self.sku = kwargs.get('sku', None) self.tags = kwargs.get('tags', None) self.encryption = kwargs.get('encryption', None) + self.disable_local_auth = kwargs.get('disable_local_auth', None) self.public_network_access = kwargs.get('public_network_access', None) @@ -326,46 +375,113 @@ def __init__( self.key_vault_properties = kwargs.get('key_vault_properties', None) -class Error(msrest.serialization.Model): - """AppConfiguration error object. +class ErrorAdditionalInfo(msrest.serialization.Model): + """The resource management error additional info. + + Variables are only populated by the server, and will be ignored when sending a request. - :param code: Error code. - :type code: str - :param message: Error message. - :type message: str + :ivar type: The additional info type. + :vartype type: str + :ivar info: The additional info. + :vartype info: any """ + _validation = { + 'type': {'readonly': True}, + 'info': {'readonly': True}, + } + + _attribute_map = { + 'type': {'key': 'type', 'type': 'str'}, + 'info': {'key': 'info', 'type': 'object'}, + } + + def __init__( + self, + **kwargs + ): + super(ErrorAdditionalInfo, self).__init__(**kwargs) + self.type = None + self.info = None + + +class ErrorDetails(msrest.serialization.Model): + """The details of the error. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar code: Error code. + :vartype code: str + :ivar message: Error message indicating why the operation failed. + :vartype message: str + :ivar additional_info: The error additional info. + :vartype additional_info: list[~app_configuration_management_client.models.ErrorAdditionalInfo] + """ + + _validation = { + 'code': {'readonly': True}, + 'message': {'readonly': True}, + 'additional_info': {'readonly': True}, + } + _attribute_map = { 'code': {'key': 'code', 'type': 'str'}, 'message': {'key': 'message', 'type': 'str'}, + 'additional_info': {'key': 'additionalInfo', 'type': '[ErrorAdditionalInfo]'}, } def __init__( self, **kwargs ): - super(Error, self).__init__(**kwargs) - self.code = kwargs.get('code', None) - self.message = kwargs.get('message', None) + super(ErrorDetails, self).__init__(**kwargs) + self.code = None + self.message = None + self.additional_info = None + + +class ErrorResponse(msrest.serialization.Model): + """Error response indicates that the service is not able to process the incoming request. The reason is provided in the error message. + + :param error: The details of the error. + :type error: ~app_configuration_management_client.models.ErrorDetails + """ + + _attribute_map = { + 'error': {'key': 'error', 'type': 'ErrorDetails'}, + } + + def __init__( + self, + **kwargs + ): + super(ErrorResponse, self).__init__(**kwargs) + self.error = kwargs.get('error', None) class KeyValue(msrest.serialization.Model): - """The result of a request to retrieve a key-value from the specified configuration store. + """The key-value resource along with all resource properties. Variables are only populated by the server, and will be ignored when sending a request. + :ivar id: The resource ID. + :vartype id: str + :ivar name: The name of the resource. + :vartype name: str + :ivar type: The type of the resource. + :vartype type: str :ivar key: The primary identifier of a key-value. The key is used in unison with the label to uniquely identify a key-value. :vartype key: str :ivar label: A value used to group key-values. The label is used in unison with the key to uniquely identify a key-value. :vartype label: str - :ivar value: The value of the key-value. - :vartype value: str - :ivar content_type: The content type of the key-value's value. + :param value: The value of the key-value. + :type value: str + :param content_type: The content type of the key-value's value. Providing a proper content-type can enable transformations of values when they are retrieved by applications. - :vartype content_type: str + :type content_type: str :ivar e_tag: An ETag indicating the state of a key-value within a configuration store. :vartype e_tag: str :ivar last_modified: The last time a modifying operation was performed on the given key-value. @@ -373,31 +489,34 @@ class KeyValue(msrest.serialization.Model): :ivar locked: A value indicating whether the key-value is locked. A locked key-value may not be modified until it is unlocked. :vartype locked: bool - :ivar tags: A set of tags. A dictionary of tags that can help identify what a key-value may be + :param tags: A set of tags. A dictionary of tags that can help identify what a key-value may be applicable for. - :vartype tags: dict[str, str] + :type tags: dict[str, str] """ _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, 'key': {'readonly': True}, 'label': {'readonly': True}, - 'value': {'readonly': True}, - 'content_type': {'readonly': True}, 'e_tag': {'readonly': True}, 'last_modified': {'readonly': True}, 'locked': {'readonly': True}, - 'tags': {'readonly': True}, } _attribute_map = { - 'key': {'key': 'key', 'type': 'str'}, - 'label': {'key': 'label', 'type': 'str'}, - 'value': {'key': 'value', 'type': 'str'}, - 'content_type': {'key': 'contentType', 'type': 'str'}, - 'e_tag': {'key': 'eTag', 'type': 'str'}, - 'last_modified': {'key': 'lastModified', 'type': 'iso-8601'}, - 'locked': {'key': 'locked', 'type': 'bool'}, - 'tags': {'key': 'tags', 'type': '{str}'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'key': {'key': 'properties.key', 'type': 'str'}, + 'label': {'key': 'properties.label', 'type': 'str'}, + 'value': {'key': 'properties.value', 'type': 'str'}, + 'content_type': {'key': 'properties.contentType', 'type': 'str'}, + 'e_tag': {'key': 'properties.eTag', 'type': 'str'}, + 'last_modified': {'key': 'properties.lastModified', 'type': 'iso-8601'}, + 'locked': {'key': 'properties.locked', 'type': 'bool'}, + 'tags': {'key': 'properties.tags', 'type': '{str}'}, } def __init__( @@ -405,14 +524,40 @@ def __init__( **kwargs ): super(KeyValue, self).__init__(**kwargs) + self.id = None + self.name = None + self.type = None self.key = None self.label = None - self.value = None - self.content_type = None + self.value = kwargs.get('value', None) + self.content_type = kwargs.get('content_type', None) self.e_tag = None self.last_modified = None self.locked = None - self.tags = None + self.tags = kwargs.get('tags', None) + + +class KeyValueListResult(msrest.serialization.Model): + """The result of a request to list key-values. + + :param value: The collection value. + :type value: list[~app_configuration_management_client.models.KeyValue] + :param next_link: The URI that can be used to request the next set of paged results. + :type next_link: str + """ + + _attribute_map = { + 'value': {'key': 'value', 'type': '[KeyValue]'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(KeyValueListResult, self).__init__(**kwargs) + self.value = kwargs.get('value', None) + self.next_link = kwargs.get('next_link', None) class KeyVaultProperties(msrest.serialization.Model): @@ -439,33 +584,107 @@ def __init__( self.identity_client_id = kwargs.get('identity_client_id', None) -class ListKeyValueParameters(msrest.serialization.Model): - """The parameters used to list a configuration store key-value. +class LogSpecification(msrest.serialization.Model): + """Specifications of the Log for Azure Monitoring. - All required parameters must be populated in order to send to Azure. + :param name: Name of the log. + :type name: str + :param display_name: Localized friendly display name of the log. + :type display_name: str + :param blob_duration: Blob duration of the log. + :type blob_duration: str + """ - :param key: Required. The key to retrieve. - :type key: str - :param label: The label of the key. - :type label: str + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'blob_duration': {'key': 'blobDuration', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(LogSpecification, self).__init__(**kwargs) + self.name = kwargs.get('name', None) + self.display_name = kwargs.get('display_name', None) + self.blob_duration = kwargs.get('blob_duration', None) + + +class MetricDimension(msrest.serialization.Model): + """Specifications of the Dimension of metrics. + + :param name: Name of the dimension. + :type name: str + :param display_name: Localized friendly display name of the dimension. + :type display_name: str + :param internal_name: Internal name of the dimension. + :type internal_name: str """ - _validation = { - 'key': {'required': True}, + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'internal_name': {'key': 'internalName', 'type': 'str'}, } + def __init__( + self, + **kwargs + ): + super(MetricDimension, self).__init__(**kwargs) + self.name = kwargs.get('name', None) + self.display_name = kwargs.get('display_name', None) + self.internal_name = kwargs.get('internal_name', None) + + +class MetricSpecification(msrest.serialization.Model): + """Specifications of the Metrics for Azure Monitoring. + + :param name: Name of the metric. + :type name: str + :param display_name: Localized friendly display name of the metric. + :type display_name: str + :param display_description: Localized friendly description of the metric. + :type display_description: str + :param unit: Unit that makes sense for the metric. + :type unit: str + :param aggregation_type: Only provide one value for this field. Valid values: Average, Minimum, + Maximum, Total, Count. + :type aggregation_type: str + :param internal_metric_name: Internal metric name. + :type internal_metric_name: str + :param dimensions: Dimensions of the metric. + :type dimensions: list[~app_configuration_management_client.models.MetricDimension] + :param fill_gap_with_zero: Optional. If set to true, then zero will be returned for time + duration where no metric is emitted/published. + :type fill_gap_with_zero: bool + """ + _attribute_map = { - 'key': {'key': 'key', 'type': 'str'}, - 'label': {'key': 'label', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'display_description': {'key': 'displayDescription', 'type': 'str'}, + 'unit': {'key': 'unit', 'type': 'str'}, + 'aggregation_type': {'key': 'aggregationType', 'type': 'str'}, + 'internal_metric_name': {'key': 'internalMetricName', 'type': 'str'}, + 'dimensions': {'key': 'dimensions', 'type': '[MetricDimension]'}, + 'fill_gap_with_zero': {'key': 'fillGapWithZero', 'type': 'bool'}, } def __init__( self, **kwargs ): - super(ListKeyValueParameters, self).__init__(**kwargs) - self.key = kwargs['key'] - self.label = kwargs.get('label', None) + super(MetricSpecification, self).__init__(**kwargs) + self.name = kwargs.get('name', None) + self.display_name = kwargs.get('display_name', None) + self.display_description = kwargs.get('display_description', None) + self.unit = kwargs.get('unit', None) + self.aggregation_type = kwargs.get('aggregation_type', None) + self.internal_metric_name = kwargs.get('internal_metric_name', None) + self.dimensions = kwargs.get('dimensions', None) + self.fill_gap_with_zero = kwargs.get('fill_gap_with_zero', None) class NameAvailabilityStatus(msrest.serialization.Model): @@ -509,13 +728,22 @@ class OperationDefinition(msrest.serialization.Model): :param name: Operation name: {provider}/{resource}/{operation}. :type name: str + :param is_data_action: Indicates whether the operation is a data action. + :type is_data_action: bool :param display: The display information for the configuration store operation. :type display: ~app_configuration_management_client.models.OperationDefinitionDisplay + :param origin: Origin of the operation. + :type origin: str + :param properties: Properties of the operation. + :type properties: ~app_configuration_management_client.models.OperationProperties """ _attribute_map = { 'name': {'key': 'name', 'type': 'str'}, + 'is_data_action': {'key': 'isDataAction', 'type': 'bool'}, 'display': {'key': 'display', 'type': 'OperationDefinitionDisplay'}, + 'origin': {'key': 'origin', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'OperationProperties'}, } def __init__( @@ -524,7 +752,10 @@ def __init__( ): super(OperationDefinition, self).__init__(**kwargs) self.name = kwargs.get('name', None) + self.is_data_action = kwargs.get('is_data_action', None) self.display = kwargs.get('display', None) + self.origin = kwargs.get('origin', None) + self.properties = kwargs.get('properties', None) class OperationDefinitionDisplay(msrest.serialization.Model): @@ -587,6 +818,25 @@ def __init__( self.next_link = kwargs.get('next_link', None) +class OperationProperties(msrest.serialization.Model): + """Extra Operation properties. + + :param service_specification: Service specifications of the operation. + :type service_specification: ~app_configuration_management_client.models.ServiceSpecification + """ + + _attribute_map = { + 'service_specification': {'key': 'serviceSpecification', 'type': 'ServiceSpecification'}, + } + + def __init__( + self, + **kwargs + ): + super(OperationProperties, self).__init__(**kwargs) + self.service_specification = kwargs.get('service_specification', None) + + class PrivateEndpoint(msrest.serialization.Model): """Private endpoint which a connection belongs to. @@ -906,6 +1156,30 @@ def __init__( self.tenant_id = None +class ServiceSpecification(msrest.serialization.Model): + """Service specification payload. + + :param log_specifications: Specifications of the Log for Azure Monitoring. + :type log_specifications: list[~app_configuration_management_client.models.LogSpecification] + :param metric_specifications: Specifications of the Metrics for Azure Monitoring. + :type metric_specifications: + list[~app_configuration_management_client.models.MetricSpecification] + """ + + _attribute_map = { + 'log_specifications': {'key': 'logSpecifications', 'type': '[LogSpecification]'}, + 'metric_specifications': {'key': 'metricSpecifications', 'type': '[MetricSpecification]'}, + } + + def __init__( + self, + **kwargs + ): + super(ServiceSpecification, self).__init__(**kwargs) + self.log_specifications = kwargs.get('log_specifications', None) + self.metric_specifications = kwargs.get('metric_specifications', None) + + class Sku(msrest.serialization.Model): """Describes a configuration store SKU. @@ -931,6 +1205,47 @@ def __init__( self.name = kwargs['name'] +class SystemData(msrest.serialization.Model): + """Metadata pertaining to creation and last modification of the resource. + + :param created_by: The identity that created the resource. + :type created_by: str + :param created_by_type: The type of identity that created the resource. Possible values + include: "User", "Application", "ManagedIdentity", "Key". + :type created_by_type: str or ~app_configuration_management_client.models.CreatedByType + :param created_at: The timestamp of resource creation (UTC). + :type created_at: ~datetime.datetime + :param last_modified_by: The identity that last modified the resource. + :type last_modified_by: str + :param last_modified_by_type: The type of identity that last modified the resource. Possible + values include: "User", "Application", "ManagedIdentity", "Key". + :type last_modified_by_type: str or ~app_configuration_management_client.models.CreatedByType + :param last_modified_at: The timestamp of resource last modification (UTC). + :type last_modified_at: ~datetime.datetime + """ + + _attribute_map = { + 'created_by': {'key': 'createdBy', 'type': 'str'}, + 'created_by_type': {'key': 'createdByType', 'type': 'str'}, + 'created_at': {'key': 'createdAt', 'type': 'iso-8601'}, + 'last_modified_by': {'key': 'lastModifiedBy', 'type': 'str'}, + 'last_modified_by_type': {'key': 'lastModifiedByType', 'type': 'str'}, + 'last_modified_at': {'key': 'lastModifiedAt', 'type': 'iso-8601'}, + } + + def __init__( + self, + **kwargs + ): + super(SystemData, self).__init__(**kwargs) + self.created_by = kwargs.get('created_by', None) + self.created_by_type = kwargs.get('created_by_type', None) + self.created_at = kwargs.get('created_at', None) + self.last_modified_by = kwargs.get('last_modified_by', None) + self.last_modified_by_type = kwargs.get('last_modified_by_type', None) + self.last_modified_at = kwargs.get('last_modified_at', None) + + class UserIdentity(msrest.serialization.Model): """A resource identity that is managed by the user of the service. diff --git a/sdk/appconfiguration/azure-mgmt-appconfiguration/azure/mgmt/appconfiguration/models/_models_py3.py b/sdk/appconfiguration/azure-mgmt-appconfiguration/azure/mgmt/appconfiguration/models/_models_py3.py index afb3e9ba8063..7d4fccd6c281 100644 --- a/sdk/appconfiguration/azure-mgmt-appconfiguration/azure/mgmt/appconfiguration/models/_models_py3.py +++ b/sdk/appconfiguration/azure-mgmt-appconfiguration/azure/mgmt/appconfiguration/models/_models_py3.py @@ -6,6 +6,7 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- +import datetime from typing import Dict, List, Optional, Union from azure.core.exceptions import HttpResponseError @@ -126,23 +127,61 @@ def __init__( class Resource(msrest.serialization.Model): - """An Azure resource. + """Common fields that are returned in the response for all Azure Resource Manager resources. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. + :vartype id: str + :ivar name: The name of the resource. + :vartype name: str + :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + "Microsoft.Storage/storageAccounts". + :vartype type: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(Resource, self).__init__(**kwargs) + self.id = None + self.name = None + self.type = None + + +class TrackedResource(Resource): + """The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location'. Variables are only populated by the server, and will be ignored when sending a request. All required parameters must be populated in order to send to Azure. - :ivar id: The resource ID. + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. :vartype id: str :ivar name: The name of the resource. :vartype name: str - :ivar type: The type of the resource. + :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + "Microsoft.Storage/storageAccounts". :vartype type: str - :param location: Required. The location of the resource. This cannot be changed after the - resource is created. - :type location: str - :param tags: A set of tags. The tags of the resource. + :param tags: A set of tags. Resource tags. :type tags: dict[str, str] + :param location: Required. The geo-location where the resource lives. + :type location: str """ _validation = { @@ -156,8 +195,8 @@ class Resource(msrest.serialization.Model): 'id': {'key': 'id', 'type': 'str'}, 'name': {'key': 'name', 'type': 'str'}, 'type': {'key': 'type', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, 'tags': {'key': 'tags', 'type': '{str}'}, + 'location': {'key': 'location', 'type': 'str'}, } def __init__( @@ -167,36 +206,36 @@ def __init__( tags: Optional[Dict[str, str]] = None, **kwargs ): - super(Resource, self).__init__(**kwargs) - self.id = None - self.name = None - self.type = None - self.location = location + super(TrackedResource, self).__init__(**kwargs) self.tags = tags + self.location = location -class ConfigurationStore(Resource): +class ConfigurationStore(TrackedResource): """The configuration store along with all resource properties. The Configuration Store will have all information to begin utilizing it. Variables are only populated by the server, and will be ignored when sending a request. All required parameters must be populated in order to send to Azure. - :ivar id: The resource ID. + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. :vartype id: str :ivar name: The name of the resource. :vartype name: str - :ivar type: The type of the resource. + :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + "Microsoft.Storage/storageAccounts". :vartype type: str - :param location: Required. The location of the resource. This cannot be changed after the - resource is created. - :type location: str - :param tags: A set of tags. The tags of the resource. + :param tags: A set of tags. Resource tags. :type tags: dict[str, str] + :param location: Required. The geo-location where the resource lives. + :type location: str :param identity: The managed identity information, if configured. :type identity: ~app_configuration_management_client.models.ResourceIdentity :param sku: Required. The sku of the configuration store. :type sku: ~app_configuration_management_client.models.Sku + :ivar system_data: Resource system metadata. + :vartype system_data: ~app_configuration_management_client.models.SystemData :ivar provisioning_state: The provisioning state of the configuration store. Possible values include: "Creating", "Updating", "Deleting", "Succeeded", "Failed", "Canceled". :vartype provisioning_state: str or @@ -215,6 +254,8 @@ class ConfigurationStore(Resource): networks while private endpoint is enabled. Possible values include: "Enabled", "Disabled". :type public_network_access: str or ~app_configuration_management_client.models.PublicNetworkAccess + :param disable_local_auth: Disables all authentication methods other than AAD authentication. + :type disable_local_auth: bool """ _validation = { @@ -223,6 +264,7 @@ class ConfigurationStore(Resource): 'type': {'readonly': True}, 'location': {'required': True}, 'sku': {'required': True}, + 'system_data': {'readonly': True}, 'provisioning_state': {'readonly': True}, 'creation_date': {'readonly': True}, 'endpoint': {'readonly': True}, @@ -233,16 +275,18 @@ class ConfigurationStore(Resource): 'id': {'key': 'id', 'type': 'str'}, 'name': {'key': 'name', 'type': 'str'}, 'type': {'key': 'type', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, 'tags': {'key': 'tags', 'type': '{str}'}, + 'location': {'key': 'location', 'type': 'str'}, 'identity': {'key': 'identity', 'type': 'ResourceIdentity'}, 'sku': {'key': 'sku', 'type': 'Sku'}, + 'system_data': {'key': 'systemData', 'type': 'SystemData'}, 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, 'creation_date': {'key': 'properties.creationDate', 'type': 'iso-8601'}, 'endpoint': {'key': 'properties.endpoint', 'type': 'str'}, 'encryption': {'key': 'properties.encryption', 'type': 'EncryptionProperties'}, 'private_endpoint_connections': {'key': 'properties.privateEndpointConnections', 'type': '[PrivateEndpointConnectionReference]'}, 'public_network_access': {'key': 'properties.publicNetworkAccess', 'type': 'str'}, + 'disable_local_auth': {'key': 'properties.disableLocalAuth', 'type': 'bool'}, } def __init__( @@ -254,17 +298,20 @@ def __init__( identity: Optional["ResourceIdentity"] = None, encryption: Optional["EncryptionProperties"] = None, public_network_access: Optional[Union[str, "PublicNetworkAccess"]] = None, + disable_local_auth: Optional[bool] = None, **kwargs ): - super(ConfigurationStore, self).__init__(location=location, tags=tags, **kwargs) + super(ConfigurationStore, self).__init__(tags=tags, location=location, **kwargs) self.identity = identity self.sku = sku + self.system_data = None self.provisioning_state = None self.creation_date = None self.endpoint = None self.encryption = encryption self.private_endpoint_connections = None self.public_network_access = public_network_access + self.disable_local_auth = disable_local_auth class ConfigurationStoreListResult(msrest.serialization.Model): @@ -304,6 +351,8 @@ class ConfigurationStoreUpdateParameters(msrest.serialization.Model): :type tags: dict[str, str] :param encryption: The encryption settings of the configuration store. :type encryption: ~app_configuration_management_client.models.EncryptionProperties + :param disable_local_auth: Disables all authentication methods other than AAD authentication. + :type disable_local_auth: bool :param public_network_access: Control permission for data plane traffic coming from public networks while private endpoint is enabled. Possible values include: "Enabled", "Disabled". :type public_network_access: str or @@ -315,6 +364,7 @@ class ConfigurationStoreUpdateParameters(msrest.serialization.Model): 'sku': {'key': 'sku', 'type': 'Sku'}, 'tags': {'key': 'tags', 'type': '{str}'}, 'encryption': {'key': 'properties.encryption', 'type': 'EncryptionProperties'}, + 'disable_local_auth': {'key': 'properties.disableLocalAuth', 'type': 'bool'}, 'public_network_access': {'key': 'properties.publicNetworkAccess', 'type': 'str'}, } @@ -325,6 +375,7 @@ def __init__( sku: Optional["Sku"] = None, tags: Optional[Dict[str, str]] = None, encryption: Optional["EncryptionProperties"] = None, + disable_local_auth: Optional[bool] = None, public_network_access: Optional[Union[str, "PublicNetworkAccess"]] = None, **kwargs ): @@ -333,6 +384,7 @@ def __init__( self.sku = sku self.tags = tags self.encryption = encryption + self.disable_local_auth = disable_local_auth self.public_network_access = public_network_access @@ -357,49 +409,115 @@ def __init__( self.key_vault_properties = key_vault_properties -class Error(msrest.serialization.Model): - """AppConfiguration error object. +class ErrorAdditionalInfo(msrest.serialization.Model): + """The resource management error additional info. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar type: The additional info type. + :vartype type: str + :ivar info: The additional info. + :vartype info: any + """ + + _validation = { + 'type': {'readonly': True}, + 'info': {'readonly': True}, + } + + _attribute_map = { + 'type': {'key': 'type', 'type': 'str'}, + 'info': {'key': 'info', 'type': 'object'}, + } - :param code: Error code. - :type code: str - :param message: Error message. - :type message: str + def __init__( + self, + **kwargs + ): + super(ErrorAdditionalInfo, self).__init__(**kwargs) + self.type = None + self.info = None + + +class ErrorDetails(msrest.serialization.Model): + """The details of the error. + + Variables are only populated by the server, and will be ignored when sending a request. + + :ivar code: Error code. + :vartype code: str + :ivar message: Error message indicating why the operation failed. + :vartype message: str + :ivar additional_info: The error additional info. + :vartype additional_info: list[~app_configuration_management_client.models.ErrorAdditionalInfo] """ + _validation = { + 'code': {'readonly': True}, + 'message': {'readonly': True}, + 'additional_info': {'readonly': True}, + } + _attribute_map = { 'code': {'key': 'code', 'type': 'str'}, 'message': {'key': 'message', 'type': 'str'}, + 'additional_info': {'key': 'additionalInfo', 'type': '[ErrorAdditionalInfo]'}, + } + + def __init__( + self, + **kwargs + ): + super(ErrorDetails, self).__init__(**kwargs) + self.code = None + self.message = None + self.additional_info = None + + +class ErrorResponse(msrest.serialization.Model): + """Error response indicates that the service is not able to process the incoming request. The reason is provided in the error message. + + :param error: The details of the error. + :type error: ~app_configuration_management_client.models.ErrorDetails + """ + + _attribute_map = { + 'error': {'key': 'error', 'type': 'ErrorDetails'}, } def __init__( self, *, - code: Optional[str] = None, - message: Optional[str] = None, + error: Optional["ErrorDetails"] = None, **kwargs ): - super(Error, self).__init__(**kwargs) - self.code = code - self.message = message + super(ErrorResponse, self).__init__(**kwargs) + self.error = error class KeyValue(msrest.serialization.Model): - """The result of a request to retrieve a key-value from the specified configuration store. + """The key-value resource along with all resource properties. Variables are only populated by the server, and will be ignored when sending a request. + :ivar id: The resource ID. + :vartype id: str + :ivar name: The name of the resource. + :vartype name: str + :ivar type: The type of the resource. + :vartype type: str :ivar key: The primary identifier of a key-value. The key is used in unison with the label to uniquely identify a key-value. :vartype key: str :ivar label: A value used to group key-values. The label is used in unison with the key to uniquely identify a key-value. :vartype label: str - :ivar value: The value of the key-value. - :vartype value: str - :ivar content_type: The content type of the key-value's value. + :param value: The value of the key-value. + :type value: str + :param content_type: The content type of the key-value's value. Providing a proper content-type can enable transformations of values when they are retrieved by applications. - :vartype content_type: str + :type content_type: str :ivar e_tag: An ETag indicating the state of a key-value within a configuration store. :vartype e_tag: str :ivar last_modified: The last time a modifying operation was performed on the given key-value. @@ -407,46 +525,82 @@ class KeyValue(msrest.serialization.Model): :ivar locked: A value indicating whether the key-value is locked. A locked key-value may not be modified until it is unlocked. :vartype locked: bool - :ivar tags: A set of tags. A dictionary of tags that can help identify what a key-value may be + :param tags: A set of tags. A dictionary of tags that can help identify what a key-value may be applicable for. - :vartype tags: dict[str, str] + :type tags: dict[str, str] """ _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, 'key': {'readonly': True}, 'label': {'readonly': True}, - 'value': {'readonly': True}, - 'content_type': {'readonly': True}, 'e_tag': {'readonly': True}, 'last_modified': {'readonly': True}, 'locked': {'readonly': True}, - 'tags': {'readonly': True}, } _attribute_map = { - 'key': {'key': 'key', 'type': 'str'}, - 'label': {'key': 'label', 'type': 'str'}, - 'value': {'key': 'value', 'type': 'str'}, - 'content_type': {'key': 'contentType', 'type': 'str'}, - 'e_tag': {'key': 'eTag', 'type': 'str'}, - 'last_modified': {'key': 'lastModified', 'type': 'iso-8601'}, - 'locked': {'key': 'locked', 'type': 'bool'}, - 'tags': {'key': 'tags', 'type': '{str}'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'key': {'key': 'properties.key', 'type': 'str'}, + 'label': {'key': 'properties.label', 'type': 'str'}, + 'value': {'key': 'properties.value', 'type': 'str'}, + 'content_type': {'key': 'properties.contentType', 'type': 'str'}, + 'e_tag': {'key': 'properties.eTag', 'type': 'str'}, + 'last_modified': {'key': 'properties.lastModified', 'type': 'iso-8601'}, + 'locked': {'key': 'properties.locked', 'type': 'bool'}, + 'tags': {'key': 'properties.tags', 'type': '{str}'}, } def __init__( self, + *, + value: Optional[str] = None, + content_type: Optional[str] = None, + tags: Optional[Dict[str, str]] = None, **kwargs ): super(KeyValue, self).__init__(**kwargs) + self.id = None + self.name = None + self.type = None self.key = None self.label = None - self.value = None - self.content_type = None + self.value = value + self.content_type = content_type self.e_tag = None self.last_modified = None self.locked = None - self.tags = None + self.tags = tags + + +class KeyValueListResult(msrest.serialization.Model): + """The result of a request to list key-values. + + :param value: The collection value. + :type value: list[~app_configuration_management_client.models.KeyValue] + :param next_link: The URI that can be used to request the next set of paged results. + :type next_link: str + """ + + _attribute_map = { + 'value': {'key': 'value', 'type': '[KeyValue]'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, + } + + def __init__( + self, + *, + value: Optional[List["KeyValue"]] = None, + next_link: Optional[str] = None, + **kwargs + ): + super(KeyValueListResult, self).__init__(**kwargs) + self.value = value + self.next_link = next_link class KeyVaultProperties(msrest.serialization.Model): @@ -476,36 +630,124 @@ def __init__( self.identity_client_id = identity_client_id -class ListKeyValueParameters(msrest.serialization.Model): - """The parameters used to list a configuration store key-value. +class LogSpecification(msrest.serialization.Model): + """Specifications of the Log for Azure Monitoring. - All required parameters must be populated in order to send to Azure. + :param name: Name of the log. + :type name: str + :param display_name: Localized friendly display name of the log. + :type display_name: str + :param blob_duration: Blob duration of the log. + :type blob_duration: str + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'blob_duration': {'key': 'blobDuration', 'type': 'str'}, + } + + def __init__( + self, + *, + name: Optional[str] = None, + display_name: Optional[str] = None, + blob_duration: Optional[str] = None, + **kwargs + ): + super(LogSpecification, self).__init__(**kwargs) + self.name = name + self.display_name = display_name + self.blob_duration = blob_duration + + +class MetricDimension(msrest.serialization.Model): + """Specifications of the Dimension of metrics. - :param key: Required. The key to retrieve. - :type key: str - :param label: The label of the key. - :type label: str + :param name: Name of the dimension. + :type name: str + :param display_name: Localized friendly display name of the dimension. + :type display_name: str + :param internal_name: Internal name of the dimension. + :type internal_name: str """ - _validation = { - 'key': {'required': True}, + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'internal_name': {'key': 'internalName', 'type': 'str'}, } + def __init__( + self, + *, + name: Optional[str] = None, + display_name: Optional[str] = None, + internal_name: Optional[str] = None, + **kwargs + ): + super(MetricDimension, self).__init__(**kwargs) + self.name = name + self.display_name = display_name + self.internal_name = internal_name + + +class MetricSpecification(msrest.serialization.Model): + """Specifications of the Metrics for Azure Monitoring. + + :param name: Name of the metric. + :type name: str + :param display_name: Localized friendly display name of the metric. + :type display_name: str + :param display_description: Localized friendly description of the metric. + :type display_description: str + :param unit: Unit that makes sense for the metric. + :type unit: str + :param aggregation_type: Only provide one value for this field. Valid values: Average, Minimum, + Maximum, Total, Count. + :type aggregation_type: str + :param internal_metric_name: Internal metric name. + :type internal_metric_name: str + :param dimensions: Dimensions of the metric. + :type dimensions: list[~app_configuration_management_client.models.MetricDimension] + :param fill_gap_with_zero: Optional. If set to true, then zero will be returned for time + duration where no metric is emitted/published. + :type fill_gap_with_zero: bool + """ + _attribute_map = { - 'key': {'key': 'key', 'type': 'str'}, - 'label': {'key': 'label', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'display_description': {'key': 'displayDescription', 'type': 'str'}, + 'unit': {'key': 'unit', 'type': 'str'}, + 'aggregation_type': {'key': 'aggregationType', 'type': 'str'}, + 'internal_metric_name': {'key': 'internalMetricName', 'type': 'str'}, + 'dimensions': {'key': 'dimensions', 'type': '[MetricDimension]'}, + 'fill_gap_with_zero': {'key': 'fillGapWithZero', 'type': 'bool'}, } def __init__( self, *, - key: str, - label: Optional[str] = None, + name: Optional[str] = None, + display_name: Optional[str] = None, + display_description: Optional[str] = None, + unit: Optional[str] = None, + aggregation_type: Optional[str] = None, + internal_metric_name: Optional[str] = None, + dimensions: Optional[List["MetricDimension"]] = None, + fill_gap_with_zero: Optional[bool] = None, **kwargs ): - super(ListKeyValueParameters, self).__init__(**kwargs) - self.key = key - self.label = label + super(MetricSpecification, self).__init__(**kwargs) + self.name = name + self.display_name = display_name + self.display_description = display_description + self.unit = unit + self.aggregation_type = aggregation_type + self.internal_metric_name = internal_metric_name + self.dimensions = dimensions + self.fill_gap_with_zero = fill_gap_with_zero class NameAvailabilityStatus(msrest.serialization.Model): @@ -549,25 +791,40 @@ class OperationDefinition(msrest.serialization.Model): :param name: Operation name: {provider}/{resource}/{operation}. :type name: str + :param is_data_action: Indicates whether the operation is a data action. + :type is_data_action: bool :param display: The display information for the configuration store operation. :type display: ~app_configuration_management_client.models.OperationDefinitionDisplay + :param origin: Origin of the operation. + :type origin: str + :param properties: Properties of the operation. + :type properties: ~app_configuration_management_client.models.OperationProperties """ _attribute_map = { 'name': {'key': 'name', 'type': 'str'}, + 'is_data_action': {'key': 'isDataAction', 'type': 'bool'}, 'display': {'key': 'display', 'type': 'OperationDefinitionDisplay'}, + 'origin': {'key': 'origin', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'OperationProperties'}, } def __init__( self, *, name: Optional[str] = None, + is_data_action: Optional[bool] = None, display: Optional["OperationDefinitionDisplay"] = None, + origin: Optional[str] = None, + properties: Optional["OperationProperties"] = None, **kwargs ): super(OperationDefinition, self).__init__(**kwargs) self.name = name + self.is_data_action = is_data_action self.display = display + self.origin = origin + self.properties = properties class OperationDefinitionDisplay(msrest.serialization.Model): @@ -637,6 +894,27 @@ def __init__( self.next_link = next_link +class OperationProperties(msrest.serialization.Model): + """Extra Operation properties. + + :param service_specification: Service specifications of the operation. + :type service_specification: ~app_configuration_management_client.models.ServiceSpecification + """ + + _attribute_map = { + 'service_specification': {'key': 'serviceSpecification', 'type': 'ServiceSpecification'}, + } + + def __init__( + self, + *, + service_specification: Optional["ServiceSpecification"] = None, + **kwargs + ): + super(OperationProperties, self).__init__(**kwargs) + self.service_specification = service_specification + + class PrivateEndpoint(msrest.serialization.Model): """Private endpoint which a connection belongs to. @@ -978,6 +1256,33 @@ def __init__( self.tenant_id = None +class ServiceSpecification(msrest.serialization.Model): + """Service specification payload. + + :param log_specifications: Specifications of the Log for Azure Monitoring. + :type log_specifications: list[~app_configuration_management_client.models.LogSpecification] + :param metric_specifications: Specifications of the Metrics for Azure Monitoring. + :type metric_specifications: + list[~app_configuration_management_client.models.MetricSpecification] + """ + + _attribute_map = { + 'log_specifications': {'key': 'logSpecifications', 'type': '[LogSpecification]'}, + 'metric_specifications': {'key': 'metricSpecifications', 'type': '[MetricSpecification]'}, + } + + def __init__( + self, + *, + log_specifications: Optional[List["LogSpecification"]] = None, + metric_specifications: Optional[List["MetricSpecification"]] = None, + **kwargs + ): + super(ServiceSpecification, self).__init__(**kwargs) + self.log_specifications = log_specifications + self.metric_specifications = metric_specifications + + class Sku(msrest.serialization.Model): """Describes a configuration store SKU. @@ -1005,6 +1310,54 @@ def __init__( self.name = name +class SystemData(msrest.serialization.Model): + """Metadata pertaining to creation and last modification of the resource. + + :param created_by: The identity that created the resource. + :type created_by: str + :param created_by_type: The type of identity that created the resource. Possible values + include: "User", "Application", "ManagedIdentity", "Key". + :type created_by_type: str or ~app_configuration_management_client.models.CreatedByType + :param created_at: The timestamp of resource creation (UTC). + :type created_at: ~datetime.datetime + :param last_modified_by: The identity that last modified the resource. + :type last_modified_by: str + :param last_modified_by_type: The type of identity that last modified the resource. Possible + values include: "User", "Application", "ManagedIdentity", "Key". + :type last_modified_by_type: str or ~app_configuration_management_client.models.CreatedByType + :param last_modified_at: The timestamp of resource last modification (UTC). + :type last_modified_at: ~datetime.datetime + """ + + _attribute_map = { + 'created_by': {'key': 'createdBy', 'type': 'str'}, + 'created_by_type': {'key': 'createdByType', 'type': 'str'}, + 'created_at': {'key': 'createdAt', 'type': 'iso-8601'}, + 'last_modified_by': {'key': 'lastModifiedBy', 'type': 'str'}, + 'last_modified_by_type': {'key': 'lastModifiedByType', 'type': 'str'}, + 'last_modified_at': {'key': 'lastModifiedAt', 'type': 'iso-8601'}, + } + + def __init__( + self, + *, + created_by: Optional[str] = None, + created_by_type: Optional[Union[str, "CreatedByType"]] = None, + created_at: Optional[datetime.datetime] = None, + last_modified_by: Optional[str] = None, + last_modified_by_type: Optional[Union[str, "CreatedByType"]] = None, + last_modified_at: Optional[datetime.datetime] = None, + **kwargs + ): + super(SystemData, self).__init__(**kwargs) + self.created_by = created_by + self.created_by_type = created_by_type + self.created_at = created_at + self.last_modified_by = last_modified_by + self.last_modified_by_type = last_modified_by_type + self.last_modified_at = last_modified_at + + class UserIdentity(msrest.serialization.Model): """A resource identity that is managed by the user of the service. diff --git a/sdk/appconfiguration/azure-mgmt-appconfiguration/azure/mgmt/appconfiguration/operations/__init__.py b/sdk/appconfiguration/azure-mgmt-appconfiguration/azure/mgmt/appconfiguration/operations/__init__.py index 934a0920b836..99aa49efc9fb 100644 --- a/sdk/appconfiguration/azure-mgmt-appconfiguration/azure/mgmt/appconfiguration/operations/__init__.py +++ b/sdk/appconfiguration/azure-mgmt-appconfiguration/azure/mgmt/appconfiguration/operations/__init__.py @@ -10,10 +10,12 @@ from ._operations import Operations from ._private_endpoint_connections_operations import PrivateEndpointConnectionsOperations from ._private_link_resources_operations import PrivateLinkResourcesOperations +from ._key_values_operations import KeyValuesOperations __all__ = [ 'ConfigurationStoresOperations', 'Operations', 'PrivateEndpointConnectionsOperations', 'PrivateLinkResourcesOperations', + 'KeyValuesOperations', ] diff --git a/sdk/appconfiguration/azure-mgmt-appconfiguration/azure/mgmt/appconfiguration/operations/_configuration_stores_operations.py b/sdk/appconfiguration/azure-mgmt-appconfiguration/azure/mgmt/appconfiguration/operations/_configuration_stores_operations.py index 6002c4330264..1cca51301864 100644 --- a/sdk/appconfiguration/azure-mgmt-appconfiguration/azure/mgmt/appconfiguration/operations/_configuration_stores_operations.py +++ b/sdk/appconfiguration/azure-mgmt-appconfiguration/azure/mgmt/appconfiguration/operations/_configuration_stores_operations.py @@ -16,7 +16,7 @@ from azure.mgmt.core.exceptions import ARMErrorFormat from azure.mgmt.core.polling.arm_polling import ARMPolling -from .. import models +from .. import models as _models if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports @@ -39,7 +39,7 @@ class ConfigurationStoresOperations(object): :param deserializer: An object model deserializer. """ - models = models + models = _models def __init__(self, client, config, serializer, deserializer): self._client = client @@ -52,7 +52,7 @@ def list( skip_token=None, # type: Optional[str] **kwargs # type: Any ): - # type: (...) -> Iterable["models.ConfigurationStoreListResult"] + # type: (...) -> Iterable["_models.ConfigurationStoreListResult"] """Lists the configuration stores for a given subscription. :param skip_token: A skip token is used to continue retrieving items after an operation returns @@ -65,12 +65,12 @@ def list( :rtype: ~azure.core.paging.ItemPaged[~app_configuration_management_client.models.ConfigurationStoreListResult] :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["models.ConfigurationStoreListResult"] + cls = kwargs.pop('cls', None) # type: ClsType["_models.ConfigurationStoreListResult"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-06-01" + api_version = "2021-03-01-preview" accept = "application/json" def prepare_request(next_link=None): @@ -112,7 +112,7 @@ def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: - error = self._deserialize(models.Error, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -129,7 +129,7 @@ def list_by_resource_group( skip_token=None, # type: Optional[str] **kwargs # type: Any ): - # type: (...) -> Iterable["models.ConfigurationStoreListResult"] + # type: (...) -> Iterable["_models.ConfigurationStoreListResult"] """Lists the configuration stores for a given resource group. :param resource_group_name: The name of the resource group to which the container registry @@ -145,12 +145,12 @@ def list_by_resource_group( :rtype: ~azure.core.paging.ItemPaged[~app_configuration_management_client.models.ConfigurationStoreListResult] :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["models.ConfigurationStoreListResult"] + cls = kwargs.pop('cls', None) # type: ClsType["_models.ConfigurationStoreListResult"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-06-01" + api_version = "2021-03-01-preview" accept = "application/json" def prepare_request(next_link=None): @@ -193,7 +193,7 @@ def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: - error = self._deserialize(models.Error, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -210,7 +210,7 @@ def get( config_store_name, # type: str **kwargs # type: Any ): - # type: (...) -> "models.ConfigurationStore" + # type: (...) -> "_models.ConfigurationStore" """Gets the properties of the specified configuration store. :param resource_group_name: The name of the resource group to which the container registry @@ -223,12 +223,12 @@ def get( :rtype: ~app_configuration_management_client.models.ConfigurationStore :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["models.ConfigurationStore"] + cls = kwargs.pop('cls', None) # type: ClsType["_models.ConfigurationStore"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-06-01" + api_version = "2021-03-01-preview" accept = "application/json" # Construct URL @@ -254,7 +254,7 @@ def get( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(models.Error, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize('ConfigurationStore', pipeline_response) @@ -269,16 +269,16 @@ def _create_initial( self, resource_group_name, # type: str config_store_name, # type: str - config_store_creation_parameters, # type: "models.ConfigurationStore" + config_store_creation_parameters, # type: "_models.ConfigurationStore" **kwargs # type: Any ): - # type: (...) -> "models.ConfigurationStore" - cls = kwargs.pop('cls', None) # type: ClsType["models.ConfigurationStore"] + # type: (...) -> "_models.ConfigurationStore" + cls = kwargs.pop('cls', None) # type: ClsType["_models.ConfigurationStore"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-06-01" + api_version = "2021-03-01-preview" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -309,7 +309,7 @@ def _create_initial( if response.status_code not in [200, 201]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(models.Error, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) if response.status_code == 200: @@ -328,10 +328,10 @@ def begin_create( self, resource_group_name, # type: str config_store_name, # type: str - config_store_creation_parameters, # type: "models.ConfigurationStore" + config_store_creation_parameters, # type: "_models.ConfigurationStore" **kwargs # type: Any ): - # type: (...) -> LROPoller["models.ConfigurationStore"] + # type: (...) -> LROPoller["_models.ConfigurationStore"] """Creates a configuration store with the specified parameters. :param resource_group_name: The name of the resource group to which the container registry @@ -343,8 +343,8 @@ def begin_create( :type config_store_creation_parameters: ~app_configuration_management_client.models.ConfigurationStore :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: True for ARMPolling, False for no polling, or a - polling object for personal polling strategy + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either ConfigurationStore or the result of cls(response) @@ -352,7 +352,7 @@ def begin_create( :raises ~azure.core.exceptions.HttpResponseError: """ polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] - cls = kwargs.pop('cls', None) # type: ClsType["models.ConfigurationStore"] + cls = kwargs.pop('cls', None) # type: ClsType["_models.ConfigurationStore"] lro_delay = kwargs.pop( 'polling_interval', self._config.polling_interval @@ -377,7 +377,13 @@ def get_long_running_output(pipeline_response): return cls(pipeline_response, deserialized, {}) return deserialized - if polling is True: polling_method = ARMPolling(lro_delay, **kwargs) + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'configStoreName': self._serialize.url("config_store_name", config_store_name, 'str', max_length=50, min_length=5, pattern=r'^[a-zA-Z0-9_-]*$'), + } + + if polling is True: polling_method = ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) elif polling is False: polling_method = NoPolling() else: polling_method = polling if cont_token: @@ -403,7 +409,7 @@ def _delete_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-06-01" + api_version = "2021-03-01-preview" accept = "application/json" # Construct URL @@ -429,7 +435,7 @@ def _delete_initial( if response.status_code not in [200, 202, 204]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(models.Error, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) if cls: @@ -453,8 +459,8 @@ def begin_delete( :type config_store_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: True for ARMPolling, False for no polling, or a - polling object for personal polling strategy + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -483,7 +489,13 @@ def get_long_running_output(pipeline_response): if cls: return cls(pipeline_response, None, {}) - if polling is True: polling_method = ARMPolling(lro_delay, **kwargs) + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'configStoreName': self._serialize.url("config_store_name", config_store_name, 'str', max_length=50, min_length=5, pattern=r'^[a-zA-Z0-9_-]*$'), + } + + if polling is True: polling_method = ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) elif polling is False: polling_method = NoPolling() else: polling_method = polling if cont_token: @@ -501,16 +513,16 @@ def _update_initial( self, resource_group_name, # type: str config_store_name, # type: str - config_store_update_parameters, # type: "models.ConfigurationStoreUpdateParameters" + config_store_update_parameters, # type: "_models.ConfigurationStoreUpdateParameters" **kwargs # type: Any ): - # type: (...) -> "models.ConfigurationStore" - cls = kwargs.pop('cls', None) # type: ClsType["models.ConfigurationStore"] + # type: (...) -> "_models.ConfigurationStore" + cls = kwargs.pop('cls', None) # type: ClsType["_models.ConfigurationStore"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-06-01" + api_version = "2021-03-01-preview" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -541,7 +553,7 @@ def _update_initial( if response.status_code not in [200, 201]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(models.Error, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) if response.status_code == 200: @@ -560,10 +572,10 @@ def begin_update( self, resource_group_name, # type: str config_store_name, # type: str - config_store_update_parameters, # type: "models.ConfigurationStoreUpdateParameters" + config_store_update_parameters, # type: "_models.ConfigurationStoreUpdateParameters" **kwargs # type: Any ): - # type: (...) -> LROPoller["models.ConfigurationStore"] + # type: (...) -> LROPoller["_models.ConfigurationStore"] """Updates a configuration store with the specified parameters. :param resource_group_name: The name of the resource group to which the container registry @@ -575,8 +587,8 @@ def begin_update( :type config_store_update_parameters: ~app_configuration_management_client.models.ConfigurationStoreUpdateParameters :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: True for ARMPolling, False for no polling, or a - polling object for personal polling strategy + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either ConfigurationStore or the result of cls(response) @@ -584,7 +596,7 @@ def begin_update( :raises ~azure.core.exceptions.HttpResponseError: """ polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] - cls = kwargs.pop('cls', None) # type: ClsType["models.ConfigurationStore"] + cls = kwargs.pop('cls', None) # type: ClsType["_models.ConfigurationStore"] lro_delay = kwargs.pop( 'polling_interval', self._config.polling_interval @@ -609,7 +621,13 @@ def get_long_running_output(pipeline_response): return cls(pipeline_response, deserialized, {}) return deserialized - if polling is True: polling_method = ARMPolling(lro_delay, **kwargs) + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'configStoreName': self._serialize.url("config_store_name", config_store_name, 'str', max_length=50, min_length=5, pattern=r'^[a-zA-Z0-9_-]*$'), + } + + if polling is True: polling_method = ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) elif polling is False: polling_method = NoPolling() else: polling_method = polling if cont_token: @@ -630,7 +648,7 @@ def list_keys( skip_token=None, # type: Optional[str] **kwargs # type: Any ): - # type: (...) -> Iterable["models.ApiKeyListResult"] + # type: (...) -> Iterable["_models.ApiKeyListResult"] """Lists the access key for the specified configuration store. :param resource_group_name: The name of the resource group to which the container registry @@ -648,12 +666,12 @@ def list_keys( :rtype: ~azure.core.paging.ItemPaged[~app_configuration_management_client.models.ApiKeyListResult] :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["models.ApiKeyListResult"] + cls = kwargs.pop('cls', None) # type: ClsType["_models.ApiKeyListResult"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-06-01" + api_version = "2021-03-01-preview" accept = "application/json" def prepare_request(next_link=None): @@ -697,7 +715,7 @@ def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: - error = self._deserialize(models.Error, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -706,16 +724,16 @@ def get_next(next_link=None): return ItemPaged( get_next, extract_data ) - list_keys.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppConfiguration/configurationStores/{configStoreName}/ListKeys'} # type: ignore + list_keys.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppConfiguration/configurationStores/{configStoreName}/listKeys'} # type: ignore def regenerate_key( self, resource_group_name, # type: str config_store_name, # type: str - regenerate_key_parameters, # type: "models.RegenerateKeyParameters" + regenerate_key_parameters, # type: "_models.RegenerateKeyParameters" **kwargs # type: Any ): - # type: (...) -> "models.ApiKey" + # type: (...) -> "_models.ApiKey" """Regenerates an access key for the specified configuration store. :param resource_group_name: The name of the resource group to which the container registry @@ -730,12 +748,12 @@ def regenerate_key( :rtype: ~app_configuration_management_client.models.ApiKey :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["models.ApiKey"] + cls = kwargs.pop('cls', None) # type: ClsType["_models.ApiKey"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-06-01" + api_version = "2021-03-01-preview" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -766,7 +784,7 @@ def regenerate_key( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(models.Error, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize('ApiKey', pipeline_response) @@ -775,73 +793,4 @@ def regenerate_key( return cls(pipeline_response, deserialized, {}) return deserialized - regenerate_key.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppConfiguration/configurationStores/{configStoreName}/RegenerateKey'} # type: ignore - - def list_key_value( - self, - resource_group_name, # type: str - config_store_name, # type: str - list_key_value_parameters, # type: "models.ListKeyValueParameters" - **kwargs # type: Any - ): - # type: (...) -> "models.KeyValue" - """Lists a configuration store key-value. - - :param resource_group_name: The name of the resource group to which the container registry - belongs. - :type resource_group_name: str - :param config_store_name: The name of the configuration store. - :type config_store_name: str - :param list_key_value_parameters: The parameters for retrieving a key-value. - :type list_key_value_parameters: ~app_configuration_management_client.models.ListKeyValueParameters - :keyword callable cls: A custom type or function that will be passed the direct response - :return: KeyValue, or the result of cls(response) - :rtype: ~app_configuration_management_client.models.KeyValue - :raises: ~azure.core.exceptions.HttpResponseError - """ - cls = kwargs.pop('cls', None) # type: ClsType["models.KeyValue"] - error_map = { - 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError - } - error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-06-01" - content_type = kwargs.pop("content_type", "application/json") - accept = "application/json" - - # Construct URL - url = self.list_key_value.metadata['url'] # type: ignore - path_format_arguments = { - 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), - 'configStoreName': self._serialize.url("config_store_name", config_store_name, 'str', max_length=50, min_length=5, pattern=r'^[a-zA-Z0-9_-]*$'), - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} # type: Dict[str, Any] - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') - - # Construct headers - header_parameters = {} # type: Dict[str, Any] - header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') - header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') - - body_content_kwargs = {} # type: Dict[str, Any] - body_content = self._serialize.body(list_key_value_parameters, 'ListKeyValueParameters') - body_content_kwargs['content'] = body_content - request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(models.Error, response) - raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) - - deserialized = self._deserialize('KeyValue', pipeline_response) - - if cls: - return cls(pipeline_response, deserialized, {}) - - return deserialized - list_key_value.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppConfiguration/configurationStores/{configStoreName}/listKeyValue'} # type: ignore + regenerate_key.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppConfiguration/configurationStores/{configStoreName}/regenerateKey'} # type: ignore diff --git a/sdk/appconfiguration/azure-mgmt-appconfiguration/azure/mgmt/appconfiguration/operations/_key_values_operations.py b/sdk/appconfiguration/azure-mgmt-appconfiguration/azure/mgmt/appconfiguration/operations/_key_values_operations.py new file mode 100644 index 000000000000..4646e222dfd4 --- /dev/null +++ b/sdk/appconfiguration/azure-mgmt-appconfiguration/azure/mgmt/appconfiguration/operations/_key_values_operations.py @@ -0,0 +1,396 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- +from typing import TYPE_CHECKING +import warnings + +from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error +from azure.core.paging import ItemPaged +from azure.core.pipeline import PipelineResponse +from azure.core.pipeline.transport import HttpRequest, HttpResponse +from azure.core.polling import LROPoller, NoPolling, PollingMethod +from azure.mgmt.core.exceptions import ARMErrorFormat +from azure.mgmt.core.polling.arm_polling import ARMPolling + +from .. import models as _models + +if TYPE_CHECKING: + # pylint: disable=unused-import,ungrouped-imports + from typing import Any, Callable, Dict, Generic, Iterable, Optional, TypeVar, Union + + T = TypeVar('T') + ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] + +class KeyValuesOperations(object): + """KeyValuesOperations operations. + + You should not instantiate this class directly. Instead, you should create a Client instance that + instantiates it for you and attaches it as an attribute. + + :ivar models: Alias to model classes used in this operation group. + :type models: ~app_configuration_management_client.models + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + """ + + models = _models + + def __init__(self, client, config, serializer, deserializer): + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self._config = config + + def list_by_configuration_store( + self, + resource_group_name, # type: str + config_store_name, # type: str + skip_token=None, # type: Optional[str] + **kwargs # type: Any + ): + # type: (...) -> Iterable["_models.KeyValueListResult"] + """Lists the key-values for a given configuration store. + + :param resource_group_name: The name of the resource group to which the container registry + belongs. + :type resource_group_name: str + :param config_store_name: The name of the configuration store. + :type config_store_name: str + :param skip_token: A skip token is used to continue retrieving items after an operation returns + a partial result. If a previous response contains a nextLink element, the value of the nextLink + element will include a skipToken parameter that specifies a starting point to use for + subsequent calls. + :type skip_token: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: An iterator like instance of either KeyValueListResult or the result of cls(response) + :rtype: ~azure.core.paging.ItemPaged[~app_configuration_management_client.models.KeyValueListResult] + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.KeyValueListResult"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01-preview" + accept = "application/json" + + def prepare_request(next_link=None): + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + if not next_link: + # Construct URL + url = self.list_by_configuration_store.metadata['url'] # type: ignore + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'configStoreName': self._serialize.url("config_store_name", config_store_name, 'str', max_length=50, min_length=5, pattern=r'^[a-zA-Z0-9_-]*$'), + } + url = self._client.format_url(url, **path_format_arguments) + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + if skip_token is not None: + query_parameters['$skipToken'] = self._serialize.query("skip_token", skip_token, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + else: + url = next_link + query_parameters = {} # type: Dict[str, Any] + request = self._client.get(url, query_parameters, header_parameters) + return request + + def extract_data(pipeline_response): + deserialized = self._deserialize('KeyValueListResult', pipeline_response) + list_of_elem = deserialized.value + if cls: + list_of_elem = cls(list_of_elem) + return deserialized.next_link or None, iter(list_of_elem) + + def get_next(next_link=None): + request = prepare_request(next_link) + + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + return pipeline_response + + return ItemPaged( + get_next, extract_data + ) + list_by_configuration_store.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppConfiguration/configurationStores/{configStoreName}/keyValues'} # type: ignore + + def get( + self, + resource_group_name, # type: str + config_store_name, # type: str + key_value_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> "_models.KeyValue" + """Gets the properties of the specified key-value. + + :param resource_group_name: The name of the resource group to which the container registry + belongs. + :type resource_group_name: str + :param config_store_name: The name of the configuration store. + :type config_store_name: str + :param key_value_name: Identifier of key and label combination. Key and label are joined by $ + character. Label is optional. + :type key_value_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: KeyValue, or the result of cls(response) + :rtype: ~app_configuration_management_client.models.KeyValue + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.KeyValue"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01-preview" + accept = "application/json" + + # Construct URL + url = self.get.metadata['url'] # type: ignore + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'configStoreName': self._serialize.url("config_store_name", config_store_name, 'str', max_length=50, min_length=5, pattern=r'^[a-zA-Z0-9_-]*$'), + 'keyValueName': self._serialize.url("key_value_name", key_value_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + deserialized = self._deserialize('KeyValue', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppConfiguration/configurationStores/{configStoreName}/keyValues/{keyValueName}'} # type: ignore + + def create_or_update( + self, + resource_group_name, # type: str + config_store_name, # type: str + key_value_name, # type: str + key_value_parameters=None, # type: Optional["_models.KeyValue"] + **kwargs # type: Any + ): + # type: (...) -> "_models.KeyValue" + """Creates a key-value. + + :param resource_group_name: The name of the resource group to which the container registry + belongs. + :type resource_group_name: str + :param config_store_name: The name of the configuration store. + :type config_store_name: str + :param key_value_name: Identifier of key and label combination. Key and label are joined by $ + character. Label is optional. + :type key_value_name: str + :param key_value_parameters: The parameters for creating a key-value. + :type key_value_parameters: ~app_configuration_management_client.models.KeyValue + :keyword callable cls: A custom type or function that will be passed the direct response + :return: KeyValue, or the result of cls(response) + :rtype: ~app_configuration_management_client.models.KeyValue + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["_models.KeyValue"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01-preview" + content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" + + # Construct URL + url = self.create_or_update.metadata['url'] # type: ignore + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'configStoreName': self._serialize.url("config_store_name", config_store_name, 'str', max_length=50, min_length=5, pattern=r'^[a-zA-Z0-9_-]*$'), + 'keyValueName': self._serialize.url("key_value_name", key_value_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + body_content_kwargs = {} # type: Dict[str, Any] + if key_value_parameters is not None: + body_content = self._serialize.body(key_value_parameters, 'KeyValue') + else: + body_content = None + body_content_kwargs['content'] = body_content + request = self._client.put(url, query_parameters, header_parameters, **body_content_kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + deserialized = self._deserialize('KeyValue', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppConfiguration/configurationStores/{configStoreName}/keyValues/{keyValueName}'} # type: ignore + + def _delete_initial( + self, + resource_group_name, # type: str + config_store_name, # type: str + key_value_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> None + cls = kwargs.pop('cls', None) # type: ClsType[None] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + api_version = "2021-03-01-preview" + accept = "application/json" + + # Construct URL + url = self._delete_initial.metadata['url'] # type: ignore + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'configStoreName': self._serialize.url("config_store_name", config_store_name, 'str', max_length=50, min_length=5, pattern=r'^[a-zA-Z0-9_-]*$'), + 'keyValueName': self._serialize.url("key_value_name", key_value_name, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + request = self._client.delete(url, query_parameters, header_parameters) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200, 202, 204]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) + raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) + + if cls: + return cls(pipeline_response, None, {}) + + _delete_initial.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppConfiguration/configurationStores/{configStoreName}/keyValues/{keyValueName}'} # type: ignore + + def begin_delete( + self, + resource_group_name, # type: str + config_store_name, # type: str + key_value_name, # type: str + **kwargs # type: Any + ): + # type: (...) -> LROPoller[None] + """Deletes a key-value. + + :param resource_group_name: The name of the resource group to which the container registry + belongs. + :type resource_group_name: str + :param config_store_name: The name of the configuration store. + :type config_store_name: str + :param key_value_name: Identifier of key and label combination. Key and label are joined by $ + character. Label is optional. + :type key_value_name: str + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. + :paramtype polling: bool or ~azure.core.polling.PollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :return: An instance of LROPoller that returns either None or the result of cls(response) + :rtype: ~azure.core.polling.LROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType[None] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = self._delete_initial( + resource_group_name=resource_group_name, + config_store_name=config_store_name, + key_value_name=key_value_name, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + if cls: + return cls(pipeline_response, None, {}) + + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'configStoreName': self._serialize.url("config_store_name", config_store_name, 'str', max_length=50, min_length=5, pattern=r'^[a-zA-Z0-9_-]*$'), + 'keyValueName': self._serialize.url("key_value_name", key_value_name, 'str'), + } + + if polling is True: polling_method = ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + if cont_token: + return LROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppConfiguration/configurationStores/{configStoreName}/keyValues/{keyValueName}'} # type: ignore diff --git a/sdk/appconfiguration/azure-mgmt-appconfiguration/azure/mgmt/appconfiguration/operations/_operations.py b/sdk/appconfiguration/azure-mgmt-appconfiguration/azure/mgmt/appconfiguration/operations/_operations.py index c5f4919fdae3..316f70bc73e6 100644 --- a/sdk/appconfiguration/azure-mgmt-appconfiguration/azure/mgmt/appconfiguration/operations/_operations.py +++ b/sdk/appconfiguration/azure-mgmt-appconfiguration/azure/mgmt/appconfiguration/operations/_operations.py @@ -14,7 +14,7 @@ from azure.core.pipeline.transport import HttpRequest, HttpResponse from azure.mgmt.core.exceptions import ARMErrorFormat -from .. import models +from .. import models as _models if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports @@ -37,7 +37,7 @@ class Operations(object): :param deserializer: An object model deserializer. """ - models = models + models = _models def __init__(self, client, config, serializer, deserializer): self._client = client @@ -47,10 +47,10 @@ def __init__(self, client, config, serializer, deserializer): def check_name_availability( self, - check_name_availability_parameters, # type: "models.CheckNameAvailabilityParameters" + check_name_availability_parameters, # type: "_models.CheckNameAvailabilityParameters" **kwargs # type: Any ): - # type: (...) -> "models.NameAvailabilityStatus" + # type: (...) -> "_models.NameAvailabilityStatus" """Checks whether the configuration store name is available for use. :param check_name_availability_parameters: The object containing information for the @@ -61,12 +61,12 @@ def check_name_availability( :rtype: ~app_configuration_management_client.models.NameAvailabilityStatus :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["models.NameAvailabilityStatus"] + cls = kwargs.pop('cls', None) # type: ClsType["_models.NameAvailabilityStatus"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-06-01" + api_version = "2021-03-01-preview" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -95,7 +95,7 @@ def check_name_availability( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(models.Error, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize('NameAvailabilityStatus', pipeline_response) @@ -111,7 +111,7 @@ def list( skip_token=None, # type: Optional[str] **kwargs # type: Any ): - # type: (...) -> Iterable["models.OperationDefinitionListResult"] + # type: (...) -> Iterable["_models.OperationDefinitionListResult"] """Lists the operations available from this provider. :param skip_token: A skip token is used to continue retrieving items after an operation returns @@ -124,12 +124,12 @@ def list( :rtype: ~azure.core.paging.ItemPaged[~app_configuration_management_client.models.OperationDefinitionListResult] :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["models.OperationDefinitionListResult"] + cls = kwargs.pop('cls', None) # type: ClsType["_models.OperationDefinitionListResult"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-06-01" + api_version = "2021-03-01-preview" accept = "application/json" def prepare_request(next_link=None): @@ -167,7 +167,7 @@ def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: - error = self._deserialize(models.Error, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) diff --git a/sdk/appconfiguration/azure-mgmt-appconfiguration/azure/mgmt/appconfiguration/operations/_private_endpoint_connections_operations.py b/sdk/appconfiguration/azure-mgmt-appconfiguration/azure/mgmt/appconfiguration/operations/_private_endpoint_connections_operations.py index 9cd77a91583b..4d034a98f9bd 100644 --- a/sdk/appconfiguration/azure-mgmt-appconfiguration/azure/mgmt/appconfiguration/operations/_private_endpoint_connections_operations.py +++ b/sdk/appconfiguration/azure-mgmt-appconfiguration/azure/mgmt/appconfiguration/operations/_private_endpoint_connections_operations.py @@ -16,7 +16,7 @@ from azure.mgmt.core.exceptions import ARMErrorFormat from azure.mgmt.core.polling.arm_polling import ARMPolling -from .. import models +from .. import models as _models if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports @@ -39,7 +39,7 @@ class PrivateEndpointConnectionsOperations(object): :param deserializer: An object model deserializer. """ - models = models + models = _models def __init__(self, client, config, serializer, deserializer): self._client = client @@ -53,7 +53,7 @@ def list_by_configuration_store( config_store_name, # type: str **kwargs # type: Any ): - # type: (...) -> Iterable["models.PrivateEndpointConnectionListResult"] + # type: (...) -> Iterable["_models.PrivateEndpointConnectionListResult"] """Lists all private endpoint connections for a configuration store. :param resource_group_name: The name of the resource group to which the container registry @@ -66,12 +66,12 @@ def list_by_configuration_store( :rtype: ~azure.core.paging.ItemPaged[~app_configuration_management_client.models.PrivateEndpointConnectionListResult] :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["models.PrivateEndpointConnectionListResult"] + cls = kwargs.pop('cls', None) # type: ClsType["_models.PrivateEndpointConnectionListResult"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-06-01" + api_version = "2021-03-01-preview" accept = "application/json" def prepare_request(next_link=None): @@ -113,7 +113,7 @@ def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: - error = self._deserialize(models.Error, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -131,7 +131,7 @@ def get( private_endpoint_connection_name, # type: str **kwargs # type: Any ): - # type: (...) -> "models.PrivateEndpointConnection" + # type: (...) -> "_models.PrivateEndpointConnection" """Gets the specified private endpoint connection associated with the configuration store. :param resource_group_name: The name of the resource group to which the container registry @@ -146,12 +146,12 @@ def get( :rtype: ~app_configuration_management_client.models.PrivateEndpointConnection :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["models.PrivateEndpointConnection"] + cls = kwargs.pop('cls', None) # type: ClsType["_models.PrivateEndpointConnection"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-06-01" + api_version = "2021-03-01-preview" accept = "application/json" # Construct URL @@ -178,7 +178,7 @@ def get( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(models.Error, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize('PrivateEndpointConnection', pipeline_response) @@ -194,16 +194,16 @@ def _create_or_update_initial( resource_group_name, # type: str config_store_name, # type: str private_endpoint_connection_name, # type: str - private_endpoint_connection, # type: "models.PrivateEndpointConnection" + private_endpoint_connection, # type: "_models.PrivateEndpointConnection" **kwargs # type: Any ): - # type: (...) -> "models.PrivateEndpointConnection" - cls = kwargs.pop('cls', None) # type: ClsType["models.PrivateEndpointConnection"] + # type: (...) -> "_models.PrivateEndpointConnection" + cls = kwargs.pop('cls', None) # type: ClsType["_models.PrivateEndpointConnection"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-06-01" + api_version = "2021-03-01-preview" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -235,7 +235,7 @@ def _create_or_update_initial( if response.status_code not in [200, 201]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(models.Error, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) if response.status_code == 200: @@ -255,10 +255,10 @@ def begin_create_or_update( resource_group_name, # type: str config_store_name, # type: str private_endpoint_connection_name, # type: str - private_endpoint_connection, # type: "models.PrivateEndpointConnection" + private_endpoint_connection, # type: "_models.PrivateEndpointConnection" **kwargs # type: Any ): - # type: (...) -> LROPoller["models.PrivateEndpointConnection"] + # type: (...) -> LROPoller["_models.PrivateEndpointConnection"] """Update the state of the specified private endpoint connection associated with the configuration store. @@ -273,8 +273,8 @@ def begin_create_or_update( :type private_endpoint_connection: ~app_configuration_management_client.models.PrivateEndpointConnection :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: True for ARMPolling, False for no polling, or a - polling object for personal polling strategy + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either PrivateEndpointConnection or the result of cls(response) @@ -282,7 +282,7 @@ def begin_create_or_update( :raises ~azure.core.exceptions.HttpResponseError: """ polling = kwargs.pop('polling', True) # type: Union[bool, PollingMethod] - cls = kwargs.pop('cls', None) # type: ClsType["models.PrivateEndpointConnection"] + cls = kwargs.pop('cls', None) # type: ClsType["_models.PrivateEndpointConnection"] lro_delay = kwargs.pop( 'polling_interval', self._config.polling_interval @@ -308,7 +308,14 @@ def get_long_running_output(pipeline_response): return cls(pipeline_response, deserialized, {}) return deserialized - if polling is True: polling_method = ARMPolling(lro_delay, **kwargs) + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'configStoreName': self._serialize.url("config_store_name", config_store_name, 'str', max_length=50, min_length=5, pattern=r'^[a-zA-Z0-9_-]*$'), + 'privateEndpointConnectionName': self._serialize.url("private_endpoint_connection_name", private_endpoint_connection_name, 'str'), + } + + if polling is True: polling_method = ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) elif polling is False: polling_method = NoPolling() else: polling_method = polling if cont_token: @@ -335,7 +342,7 @@ def _delete_initial( 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-06-01" + api_version = "2021-03-01-preview" accept = "application/json" # Construct URL @@ -362,7 +369,7 @@ def _delete_initial( if response.status_code not in [200, 202, 204]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(models.Error, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) if cls: @@ -389,8 +396,8 @@ def begin_delete( :type private_endpoint_connection_name: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: True for ARMPolling, False for no polling, or a - polling object for personal polling strategy + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either None or the result of cls(response) @@ -420,7 +427,14 @@ def get_long_running_output(pipeline_response): if cls: return cls(pipeline_response, None, {}) - if polling is True: polling_method = ARMPolling(lro_delay, **kwargs) + path_format_arguments = { + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'configStoreName': self._serialize.url("config_store_name", config_store_name, 'str', max_length=50, min_length=5, pattern=r'^[a-zA-Z0-9_-]*$'), + 'privateEndpointConnectionName': self._serialize.url("private_endpoint_connection_name", private_endpoint_connection_name, 'str'), + } + + if polling is True: polling_method = ARMPolling(lro_delay, path_format_arguments=path_format_arguments, **kwargs) elif polling is False: polling_method = NoPolling() else: polling_method = polling if cont_token: diff --git a/sdk/appconfiguration/azure-mgmt-appconfiguration/azure/mgmt/appconfiguration/operations/_private_link_resources_operations.py b/sdk/appconfiguration/azure-mgmt-appconfiguration/azure/mgmt/appconfiguration/operations/_private_link_resources_operations.py index 319f6f2d9fef..cd5302bd8216 100644 --- a/sdk/appconfiguration/azure-mgmt-appconfiguration/azure/mgmt/appconfiguration/operations/_private_link_resources_operations.py +++ b/sdk/appconfiguration/azure-mgmt-appconfiguration/azure/mgmt/appconfiguration/operations/_private_link_resources_operations.py @@ -14,7 +14,7 @@ from azure.core.pipeline.transport import HttpRequest, HttpResponse from azure.mgmt.core.exceptions import ARMErrorFormat -from .. import models +from .. import models as _models if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports @@ -37,7 +37,7 @@ class PrivateLinkResourcesOperations(object): :param deserializer: An object model deserializer. """ - models = models + models = _models def __init__(self, client, config, serializer, deserializer): self._client = client @@ -51,7 +51,7 @@ def list_by_configuration_store( config_store_name, # type: str **kwargs # type: Any ): - # type: (...) -> Iterable["models.PrivateLinkResourceListResult"] + # type: (...) -> Iterable["_models.PrivateLinkResourceListResult"] """Gets the private link resources that need to be created for a configuration store. :param resource_group_name: The name of the resource group to which the container registry @@ -64,12 +64,12 @@ def list_by_configuration_store( :rtype: ~azure.core.paging.ItemPaged[~app_configuration_management_client.models.PrivateLinkResourceListResult] :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["models.PrivateLinkResourceListResult"] + cls = kwargs.pop('cls', None) # type: ClsType["_models.PrivateLinkResourceListResult"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-06-01" + api_version = "2021-03-01-preview" accept = "application/json" def prepare_request(next_link=None): @@ -111,7 +111,7 @@ def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: - error = self._deserialize(models.Error, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -129,7 +129,7 @@ def get( group_name, # type: str **kwargs # type: Any ): - # type: (...) -> "models.PrivateLinkResource" + # type: (...) -> "_models.PrivateLinkResource" """Gets a private link resource that need to be created for a configuration store. :param resource_group_name: The name of the resource group to which the container registry @@ -144,12 +144,12 @@ def get( :rtype: ~app_configuration_management_client.models.PrivateLinkResource :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["models.PrivateLinkResource"] + cls = kwargs.pop('cls', None) # type: ClsType["_models.PrivateLinkResource"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - api_version = "2020-06-01" + api_version = "2021-03-01-preview" accept = "application/json" # Construct URL @@ -176,7 +176,7 @@ def get( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(models.Error, response) + error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize('PrivateLinkResource', pipeline_response) From e87f9cbf91d7a5c4b7628b8b6b5a8e1364d53aad Mon Sep 17 00:00:00 2001 From: PythonSdkPipelines Date: Mon, 21 Jun 2021 08:21:38 +0000 Subject: [PATCH 2/6] version,CHANGELOG --- .../azure-mgmt-appconfiguration/CHANGELOG.md | 21 +++++++++++++++++++ .../azure/mgmt/appconfiguration/_version.py | 2 +- 2 files changed, 22 insertions(+), 1 deletion(-) diff --git a/sdk/appconfiguration/azure-mgmt-appconfiguration/CHANGELOG.md b/sdk/appconfiguration/azure-mgmt-appconfiguration/CHANGELOG.md index fc392583036d..511eca24e99b 100644 --- a/sdk/appconfiguration/azure-mgmt-appconfiguration/CHANGELOG.md +++ b/sdk/appconfiguration/azure-mgmt-appconfiguration/CHANGELOG.md @@ -1,5 +1,26 @@ # Release History +## 2.0.0 (2021-06-21) + +**Features** + + - Model OperationDefinition has a new parameter properties + - Model OperationDefinition has a new parameter is_data_action + - Model OperationDefinition has a new parameter origin + - Model KeyValue has a new parameter id + - Model KeyValue has a new parameter type + - Model KeyValue has a new parameter name + - Model ConfigurationStore has a new parameter system_data + - Model ConfigurationStore has a new parameter disable_local_auth + - Model ConfigurationStoreUpdateParameters has a new parameter disable_local_auth + - Added operation group KeyValuesOperations + +**Breaking changes** + + - Model Resource no longer has parameter location + - Model Resource no longer has parameter tags + - Removed operation ConfigurationStoresOperations.list_key_value + ## 1.0.1 (2020-09-18) **Bug fix** diff --git a/sdk/appconfiguration/azure-mgmt-appconfiguration/azure/mgmt/appconfiguration/_version.py b/sdk/appconfiguration/azure-mgmt-appconfiguration/azure/mgmt/appconfiguration/_version.py index eae7c95b6fbd..48944bf3938a 100644 --- a/sdk/appconfiguration/azure-mgmt-appconfiguration/azure/mgmt/appconfiguration/_version.py +++ b/sdk/appconfiguration/azure-mgmt-appconfiguration/azure/mgmt/appconfiguration/_version.py @@ -6,4 +6,4 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -VERSION = "0.1.0" +VERSION = "2.0.0" From 42a48adf8de0100b790a4639bd31189334fc1344 Mon Sep 17 00:00:00 2001 From: PythonSdkPipelines Date: Mon, 21 Jun 2021 08:22:04 +0000 Subject: [PATCH 3/6] test --- ...ppconfiguration.test_appconfiguration.yaml | 1390 ----------------- ...test_appconfiguration_list_key_values.yaml | 345 ---- ...iguration_async.test_appconfiguration.yaml | 1356 ---------------- ...test_appconfiguration_list_key_values.yaml | 245 --- 4 files changed, 3336 deletions(-) delete mode 100644 sdk/appconfiguration/azure-mgmt-appconfiguration/tests/recordings/test_cli_mgmt_appconfiguration.test_appconfiguration.yaml delete mode 100644 sdk/appconfiguration/azure-mgmt-appconfiguration/tests/recordings/test_cli_mgmt_appconfiguration.test_appconfiguration_list_key_values.yaml delete mode 100644 sdk/appconfiguration/azure-mgmt-appconfiguration/tests/recordings/test_cli_mgmt_appconfiguration_async.test_appconfiguration.yaml delete mode 100644 sdk/appconfiguration/azure-mgmt-appconfiguration/tests/recordings/test_cli_mgmt_appconfiguration_async.test_appconfiguration_list_key_values.yaml diff --git a/sdk/appconfiguration/azure-mgmt-appconfiguration/tests/recordings/test_cli_mgmt_appconfiguration.test_appconfiguration.yaml b/sdk/appconfiguration/azure-mgmt-appconfiguration/tests/recordings/test_cli_mgmt_appconfiguration.test_appconfiguration.yaml deleted file mode 100644 index 5f215d02f653..000000000000 --- a/sdk/appconfiguration/azure-mgmt-appconfiguration/tests/recordings/test_cli_mgmt_appconfiguration.test_appconfiguration.yaml +++ /dev/null @@ -1,1390 +0,0 @@ -interactions: -- request: - body: '{"location": "westus", "tags": {"my_tag": "myTagValue"}, "sku": {"name": - "Standard"}}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '85' - Content-Type: - - application/json - User-Agent: - - azsdk-python-mgmt-appconfiguration/1.0.1 Python/3.8.6 (Windows-10-10.0.19041-SP0) - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.AppConfiguration/configurationStores/configuration39c8158a?api-version=2020-06-01 - response: - body: - string: '{"type":"Microsoft.AppConfiguration/configurationStores","location":"westus","properties":{"provisioningState":"Creating","creationDate":"2021-06-09T16:57:11.9474808+00:00","endpoint":null,"encryption":null,"privateEndpointConnections":null},"sku":{"name":"Standard"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.AppConfiguration/configurationStores/configuration39c8158a","name":"configuration39c8158a","tags":{}}' - headers: - azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.AppConfiguration/locations/westus/operationsStatus/83b1787c-4b7e-1b66-9e9c-9876f7787939?api-version=2020-06-01 - cache-control: - - no-cache - content-length: - - '543' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 09 Jun 2021 16:57:11 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - nginx/1.17.10 - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1177' - status: - code: 201 - message: Created -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-mgmt-appconfiguration/1.0.1 Python/3.8.6 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.AppConfiguration/locations/westus/operationsStatus/83b1787c-4b7e-1b66-9e9c-9876f7787939?api-version=2020-06-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.AppConfiguration/locations/westus/operationsStatus/83b1787c-4b7e-1b66-9e9c-9876f7787939","name":"83b1787c-4b7e-1b66-9e9c-9876f7787939","status":"Succeeded","error":null}' - headers: - azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.AppConfiguration/locations/westus/operationsStatus/83b1787c-4b7e-1b66-9e9c-9876f7787939?api-version=2020-06-01 - cache-control: - - no-cache - content-length: - - '248' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 09 Jun 2021 16:57:22 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - nginx/1.17.10 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-mgmt-appconfiguration/1.0.1 Python/3.8.6 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.AppConfiguration/configurationStores/configuration39c8158a?api-version=2020-06-01 - response: - body: - string: '{"type":"Microsoft.AppConfiguration/configurationStores","location":"westus","properties":{"provisioningState":"Succeeded","creationDate":"2021-06-09T16:57:13+00:00","endpoint":"https://configuration39c8158a.azconfig.io","encryption":{"keyVaultProperties":null},"privateEndpointConnections":null},"sku":{"name":"standard"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.AppConfiguration/configurationStores/configuration39c8158a","name":"configuration39c8158a","tags":{"my_tag":"myTagValue"}}' - headers: - cache-control: - - no-cache - content-length: - - '619' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 09 Jun 2021 16:57:22 GMT - etag: - - W/"5800f8ee-0000-0700-0000-60c0f2e80000" - expires: - - '-1' - pragma: - - no-cache - server: - - nginx/1.17.10 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding,Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: '{"location": "eastus", "properties": {"addressSpace": {"addressPrefixes": - ["10.0.0.0/16"]}}}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '92' - Content-Type: - - application/json; charset=utf-8 - User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.4 - azure-mgmt-network/13.0.0 Azure-SDK-For-Python - accept-language: - - en-US - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworks/vnetname?api-version=2020-07-01 - response: - body: - string: "{\r\n \"name\": \"vnetname\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworks/vnetname\",\r\n - \ \"etag\": \"W/\\\"b7731b52-2562-4090-929e-d52cb813198f\\\"\",\r\n \"type\": - \"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"eastus\",\r\n - \ \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"resourceGuid\": - \"e211ec8f-e70e-4d8d-94ed-f7a993c8dc6a\",\r\n \"addressSpace\": {\r\n \"addressPrefixes\": - [\r\n \"10.0.0.0/16\"\r\n ]\r\n },\r\n \"subnets\": [],\r\n - \ \"virtualNetworkPeerings\": [],\r\n \"enableDdosProtection\": false\r\n - \ }\r\n}" - headers: - azure-asyncnotification: - - Enabled - azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/2306f2e3-f248-4c4d-8a71-e17eba1a8e60?api-version=2020-07-01 - cache-control: - - no-cache - content-length: - - '674' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 09 Jun 2021 16:57:26 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - x-ms-arm-service-request-id: - - ba271a68-33ce-4623-964c-c92d5f42e3b7 - x-ms-ratelimit-remaining-subscription-writes: - - '1164' - status: - code: 201 - message: Created -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.4 - azure-mgmt-network/13.0.0 Azure-SDK-For-Python - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/2306f2e3-f248-4c4d-8a71-e17eba1a8e60?api-version=2020-07-01 - response: - body: - string: "{\r\n \"status\": \"Succeeded\"\r\n}" - headers: - cache-control: - - no-cache - content-length: - - '29' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 09 Jun 2021 16:57:29 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-arm-service-request-id: - - 970b59a7-8565-48cd-b306-3489f179fe11 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.4 - azure-mgmt-network/13.0.0 Azure-SDK-For-Python - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworks/vnetname?api-version=2020-07-01 - response: - body: - string: "{\r\n \"name\": \"vnetname\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworks/vnetname\",\r\n - \ \"etag\": \"W/\\\"713f54b9-7f1f-434a-94d4-ecbc30062cc3\\\"\",\r\n \"type\": - \"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"eastus\",\r\n - \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\": - \"e211ec8f-e70e-4d8d-94ed-f7a993c8dc6a\",\r\n \"addressSpace\": {\r\n \"addressPrefixes\": - [\r\n \"10.0.0.0/16\"\r\n ]\r\n },\r\n \"subnets\": [],\r\n - \ \"virtualNetworkPeerings\": [],\r\n \"enableDdosProtection\": false\r\n - \ }\r\n}" - headers: - cache-control: - - no-cache - content-length: - - '675' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 09 Jun 2021 16:57:29 GMT - etag: - - W/"713f54b9-7f1f-434a-94d4-ecbc30062cc3" - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-arm-service-request-id: - - c0768e18-89ed-477f-81db-f2e01d2386f6 - status: - code: 200 - message: OK -- request: - body: '{"properties": {"addressPrefix": "10.0.0.0/24", "privateEndpointNetworkPolicies": - "disabled", "privateLinkServiceNetworkPolicies": "disabled"}}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '143' - Content-Type: - - application/json; charset=utf-8 - User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.4 - azure-mgmt-network/13.0.0 Azure-SDK-For-Python - accept-language: - - en-US - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworks/vnetname/subnets/subnetname?api-version=2020-07-01 - response: - body: - string: "{\r\n \"name\": \"subnetname\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworks/vnetname/subnets/subnetname\",\r\n - \ \"etag\": \"W/\\\"1f96ea4e-5a9c-4d0e-9633-9b288ed2495e\\\"\",\r\n \"properties\": - {\r\n \"provisioningState\": \"Updating\",\r\n \"addressPrefix\": \"10.0.0.0/24\",\r\n - \ \"delegations\": [],\r\n \"privateEndpointNetworkPolicies\": \"Disabled\",\r\n - \ \"privateLinkServiceNetworkPolicies\": \"Disabled\"\r\n },\r\n \"type\": - \"Microsoft.Network/virtualNetworks/subnets\"\r\n}" - headers: - azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/84639927-1b56-40b0-9e0c-b32e7daf05df?api-version=2020-07-01 - cache-control: - - no-cache - content-length: - - '601' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 09 Jun 2021 16:57:30 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - x-ms-arm-service-request-id: - - 92e4825f-bdf7-4b7a-8522-ad308dcecd76 - x-ms-ratelimit-remaining-subscription-writes: - - '1163' - status: - code: 201 - message: Created -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.4 - azure-mgmt-network/13.0.0 Azure-SDK-For-Python - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/84639927-1b56-40b0-9e0c-b32e7daf05df?api-version=2020-07-01 - response: - body: - string: "{\r\n \"status\": \"Succeeded\"\r\n}" - headers: - cache-control: - - no-cache - content-length: - - '29' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 09 Jun 2021 16:57:33 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-arm-service-request-id: - - ca036e11-77c5-4f57-8f21-c23f84c41dcc - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.4 - azure-mgmt-network/13.0.0 Azure-SDK-For-Python - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworks/vnetname/subnets/subnetname?api-version=2020-07-01 - response: - body: - string: "{\r\n \"name\": \"subnetname\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworks/vnetname/subnets/subnetname\",\r\n - \ \"etag\": \"W/\\\"34bbb6d7-a400-4ada-91cc-19156dc2b48f\\\"\",\r\n \"properties\": - {\r\n \"provisioningState\": \"Succeeded\",\r\n \"addressPrefix\": \"10.0.0.0/24\",\r\n - \ \"delegations\": [],\r\n \"privateEndpointNetworkPolicies\": \"Disabled\",\r\n - \ \"privateLinkServiceNetworkPolicies\": \"Disabled\"\r\n },\r\n \"type\": - \"Microsoft.Network/virtualNetworks/subnets\"\r\n}" - headers: - cache-control: - - no-cache - content-length: - - '602' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 09 Jun 2021 16:57:33 GMT - etag: - - W/"34bbb6d7-a400-4ada-91cc-19156dc2b48f" - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-arm-service-request-id: - - e8106acc-dae3-4147-83b1-9062c9e7a908 - status: - code: 200 - message: OK -- request: - body: '{"location": "eastus", "properties": {"subnet": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworks/vnetname/subnets/subnetname"}, - "privateLinkServiceConnections": [{"properties": {"privateLinkServiceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.AppConfiguration/configurationStores/configuration39c8158a", - "groupIds": ["configurationStores"]}, "name": "myconnection"}]}}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '647' - Content-Type: - - application/json; charset=utf-8 - User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.4 - azure-mgmt-network/13.0.0 Azure-SDK-For-Python - accept-language: - - en-US - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/privateEndpoints/endpointxyz?api-version=2020-07-01 - response: - body: - string: "{\r\n \"name\": \"endpointxyz\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/privateEndpoints/endpointxyz\",\r\n - \ \"etag\": \"W/\\\"bb14500e-7a6c-49a7-a896-7e02c41aee86\\\"\",\r\n \"type\": - \"Microsoft.Network/privateEndpoints\",\r\n \"location\": \"eastus\",\r\n - \ \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"resourceGuid\": - \"d0b0a635-562d-4709-a8fa-fc6d2741692a\",\r\n \"privateLinkServiceConnections\": - [\r\n {\r\n \"name\": \"myconnection\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/privateEndpoints/endpointxyz/privateLinkServiceConnections/myconnection\",\r\n - \ \"etag\": \"W/\\\"bb14500e-7a6c-49a7-a896-7e02c41aee86\\\"\",\r\n - \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n - \ \"privateLinkServiceId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.AppConfiguration/configurationStores/configuration39c8158a\",\r\n - \ \"groupIds\": [\r\n \"configurationStores\"\r\n ],\r\n - \ \"privateLinkServiceConnectionState\": {\r\n \"status\": - \"Approved\",\r\n \"description\": \"\",\r\n \"actionsRequired\": - \"None\"\r\n }\r\n },\r\n \"type\": \"Microsoft.Network/privateEndpoints/privateLinkServiceConnections\"\r\n - \ }\r\n ],\r\n \"manualPrivateLinkServiceConnections\": [],\r\n - \ \"subnet\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworks/vnetname/subnets/subnetname\"\r\n - \ },\r\n \"networkInterfaces\": [\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/networkInterfaces/endpointxyz.nic.b3f1e8a7-af1c-4cb0-b7e8-ed326359ee81\"\r\n - \ }\r\n ],\r\n \"customDnsConfigs\": []\r\n }\r\n}" - headers: - azure-asyncnotification: - - Enabled - azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/8482a871-3c28-4fb8-8009-7de85d882679?api-version=2020-07-01 - cache-control: - - no-cache - content-length: - - '2257' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 09 Jun 2021 16:57:36 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - x-ms-arm-service-request-id: - - 984568b0-6744-4647-9391-53770be2e641 - x-ms-ratelimit-remaining-subscription-writes: - - '1162' - status: - code: 201 - message: Created -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.4 - azure-mgmt-network/13.0.0 Azure-SDK-For-Python - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/8482a871-3c28-4fb8-8009-7de85d882679?api-version=2020-07-01 - response: - body: - string: "{\r\n \"status\": \"InProgress\"\r\n}" - headers: - cache-control: - - no-cache - content-length: - - '30' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 09 Jun 2021 16:57:46 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-arm-service-request-id: - - 2084d4e7-c890-4e81-a4bb-a2e69e311d3a - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.4 - azure-mgmt-network/13.0.0 Azure-SDK-For-Python - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/8482a871-3c28-4fb8-8009-7de85d882679?api-version=2020-07-01 - response: - body: - string: "{\r\n \"status\": \"Succeeded\"\r\n}" - headers: - cache-control: - - no-cache - content-length: - - '29' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 09 Jun 2021 16:58:07 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-arm-service-request-id: - - a3911bf8-93df-4beb-a089-d4b0e278fac6 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.4 - azure-mgmt-network/13.0.0 Azure-SDK-For-Python - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/privateEndpoints/endpointxyz?api-version=2020-07-01 - response: - body: - string: "{\r\n \"name\": \"endpointxyz\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/privateEndpoints/endpointxyz\",\r\n - \ \"etag\": \"W/\\\"0936c538-a1ac-4520-8d6f-cca723b308c5\\\"\",\r\n \"type\": - \"Microsoft.Network/privateEndpoints\",\r\n \"location\": \"eastus\",\r\n - \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\": - \"d0b0a635-562d-4709-a8fa-fc6d2741692a\",\r\n \"privateLinkServiceConnections\": - [\r\n {\r\n \"name\": \"myconnection\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/privateEndpoints/endpointxyz/privateLinkServiceConnections/myconnection\",\r\n - \ \"etag\": \"W/\\\"0936c538-a1ac-4520-8d6f-cca723b308c5\\\"\",\r\n - \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n - \ \"privateLinkServiceId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.AppConfiguration/configurationStores/configuration39c8158a\",\r\n - \ \"groupIds\": [\r\n \"configurationStores\"\r\n ],\r\n - \ \"privateLinkServiceConnectionState\": {\r\n \"status\": - \"Approved\",\r\n \"description\": \"Auto-Approved\",\r\n \"actionsRequired\": - \"None\"\r\n }\r\n },\r\n \"type\": \"Microsoft.Network/privateEndpoints/privateLinkServiceConnections\"\r\n - \ }\r\n ],\r\n \"manualPrivateLinkServiceConnections\": [],\r\n - \ \"subnet\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworks/vnetname/subnets/subnetname\"\r\n - \ },\r\n \"networkInterfaces\": [\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/networkInterfaces/endpointxyz.nic.b3f1e8a7-af1c-4cb0-b7e8-ed326359ee81\"\r\n - \ }\r\n ],\r\n \"customDnsConfigs\": [\r\n {\r\n \"fqdn\": - \"configuration39c8158a.azconfig.io\",\r\n \"ipAddresses\": [\r\n \"10.0.0.4\"\r\n - \ ]\r\n }\r\n ]\r\n }\r\n}" - headers: - cache-control: - - no-cache - content-length: - - '2408' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 09 Jun 2021 16:58:07 GMT - etag: - - W/"0936c538-a1ac-4520-8d6f-cca723b308c5" - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-arm-service-request-id: - - 6fcd3a13-95b6-471f-9bdc-6e56a4699d7a - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-mgmt-appconfiguration/1.0.1 Python/3.8.6 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.AppConfiguration/configurationStores/configuration39c8158a?api-version=2020-06-01 - response: - body: - string: '{"type":"Microsoft.AppConfiguration/configurationStores","location":"westus","properties":{"provisioningState":"Succeeded","creationDate":"2021-06-09T16:57:13+00:00","endpoint":"https://configuration39c8158a.azconfig.io","encryption":{"keyVaultProperties":null},"privateEndpointConnections":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.AppConfiguration/configurationStores/configuration39c8158a/privateEndpointConnections/myconnection","name":"myconnection","type":"Microsoft.AppConfiguration/configurationStores/privateEndpointConnections","properties":{"provisioningState":"Succeeded","privateEndpoint":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/privateEndpoints/endpointxyz"},"privateLinkServiceConnectionState":{"status":"Approved","description":"Auto-Approved","actionsRequired":"None"}}}]},"sku":{"name":"standard"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.AppConfiguration/configurationStores/configuration39c8158a","name":"configuration39c8158a","tags":{"my_tag":"myTagValue"}}' - headers: - cache-control: - - no-cache - content-length: - - '1389' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 09 Jun 2021 16:58:08 GMT - etag: - - W/"58000fef-0000-0700-0000-60c0f30c0000" - expires: - - '-1' - pragma: - - no-cache - server: - - nginx/1.17.10 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding,Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: '{"properties": {"privateEndpoint": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/privateEndpoints/endpointxyz"}, - "privateLinkServiceConnectionState": {"status": "Approved", "description": "Auto-Approved"}}}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '344' - Content-Type: - - application/json - User-Agent: - - azsdk-python-mgmt-appconfiguration/1.0.1 Python/3.8.6 (Windows-10-10.0.19041-SP0) - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.AppConfiguration/configurationStores/configuration39c8158a/privateEndpointConnections/myconnection?api-version=2020-06-01 - response: - body: - string: '{"type":"Microsoft.AppConfiguration/configurationStores/privateEndpointConnections","properties":{"provisioningState":"Updating","privateEndpoint":null,"privateLinkServiceConnectionState":{"status":"Approved","description":"Auto-Approved"}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.AppConfiguration/configurationStores/configuration39c8158a/privateEndpointConnections/myconnection","name":"myconnection"}' - headers: - azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.AppConfiguration/locations/westus/operationsStatus/55ce4542-e59f-c5a6-f709-b2282da8d305?api-version=2020-06-01 - cache-control: - - no-cache - content-length: - - '537' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 09 Jun 2021 16:58:09 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - nginx/1.17.10 - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1199' - status: - code: 201 - message: Created -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-mgmt-appconfiguration/1.0.1 Python/3.8.6 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.AppConfiguration/locations/westus/operationsStatus/55ce4542-e59f-c5a6-f709-b2282da8d305?api-version=2020-06-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.AppConfiguration/locations/westus/operationsStatus/55ce4542-e59f-c5a6-f709-b2282da8d305","name":"55ce4542-e59f-c5a6-f709-b2282da8d305","status":"Succeeded","error":null}' - headers: - azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.AppConfiguration/locations/westus/operationsStatus/55ce4542-e59f-c5a6-f709-b2282da8d305?api-version=2020-06-01 - cache-control: - - no-cache - content-length: - - '248' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 09 Jun 2021 16:58:19 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - nginx/1.17.10 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-mgmt-appconfiguration/1.0.1 Python/3.8.6 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.AppConfiguration/configurationStores/configuration39c8158a/privateEndpointConnections/myconnection?api-version=2020-06-01 - response: - body: - string: '{"type":"Microsoft.AppConfiguration/configurationStores/privateEndpointConnections","properties":{"provisioningState":"Succeeded","privateEndpoint":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/privateEndpoints/endpointxyz"},"privateLinkServiceConnectionState":{"status":"Approved","description":"Auto-Approved"}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.AppConfiguration/configurationStores/configuration39c8158a/privateEndpointConnections/myconnection","name":"myconnection"}' - headers: - cache-control: - - no-cache - content-length: - - '747' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 09 Jun 2021 16:58:20 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - nginx/1.17.10 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding,Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-mgmt-appconfiguration/1.0.1 Python/3.8.6 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.AppConfiguration/configurationStores/configuration39c8158a/privateEndpointConnections/myconnection?api-version=2020-06-01 - response: - body: - string: '{"type":"Microsoft.AppConfiguration/configurationStores/privateEndpointConnections","properties":{"provisioningState":"Succeeded","privateEndpoint":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/privateEndpoints/endpointxyz"},"privateLinkServiceConnectionState":{"status":"Approved","description":"Auto-Approved"}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.AppConfiguration/configurationStores/configuration39c8158a/privateEndpointConnections/myconnection","name":"myconnection"}' - headers: - cache-control: - - no-cache - content-length: - - '747' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 09 Jun 2021 16:58:20 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - nginx/1.17.10 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding,Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-mgmt-appconfiguration/1.0.1 Python/3.8.6 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.AppConfiguration/configurationStores/configuration39c8158a/privateLinkResources?api-version=2020-06-01 - response: - body: - string: '{"value":[{"id":"subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.AppConfiguration/configurationStores/configuration39c8158a/privateLinkResources/configurationStores","name":"configurationStores","type":"Microsoft.AppConfiguration/configurationStores/privateLinkResources","properties":{"groupId":"configurationStores","requiredMembers":["configurationStores"],"requiredZoneNames":["privatelink.azconfig.io"]}}],"nextLink":null}' - headers: - cache-control: - - no-cache - content-length: - - '546' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 09 Jun 2021 16:58:20 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - nginx/1.17.10 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding,Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-mgmt-appconfiguration/1.0.1 Python/3.8.6 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.AppConfiguration/configurationStores/configuration39c8158a/privateLinkResources/configurationStores?api-version=2020-06-01 - response: - body: - string: '{"id":"subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.AppConfiguration/configurationStores/configuration39c8158a/privateLinkResources/configurationStores","name":"configurationStores","type":"Microsoft.AppConfiguration/configurationStores/privateLinkResources","properties":{"groupId":"configurationStores","requiredMembers":["configurationStores"],"requiredZoneNames":["privatelink.azconfig.io"]}}' - headers: - cache-control: - - no-cache - content-length: - - '518' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 09 Jun 2021 16:58:20 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - nginx/1.17.10 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding,Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-mgmt-appconfiguration/1.0.1 Python/3.8.6 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.AppConfiguration/configurationStores/configuration39c8158a/privateEndpointConnections?api-version=2020-06-01 - response: - body: - string: '{"value":[{"type":"Microsoft.AppConfiguration/configurationStores/privateEndpointConnections","properties":{"provisioningState":"Succeeded","privateEndpoint":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/privateEndpoints/endpointxyz"},"privateLinkServiceConnectionState":{"status":"Approved","description":"Auto-Approved"}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.AppConfiguration/configurationStores/configuration39c8158a/privateEndpointConnections/myconnection","name":"myconnection"}],"nextLink":null}' - headers: - cache-control: - - no-cache - content-length: - - '775' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 09 Jun 2021 16:58:20 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - nginx/1.17.10 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding,Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: '{"sku": {"name": "Standard"}, "tags": {"category": "Marketing"}}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '64' - Content-Type: - - application/json - User-Agent: - - azsdk-python-mgmt-appconfiguration/1.0.1 Python/3.8.6 (Windows-10-10.0.19041-SP0) - method: PATCH - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.AppConfiguration/configurationStores/configuration39c8158a?api-version=2020-06-01 - response: - body: - string: '{"type":"Microsoft.AppConfiguration/configurationStores","location":"westus","properties":{"provisioningState":"Succeeded","creationDate":"2021-06-09T16:57:13+00:00","endpoint":"https://configuration39c8158a.azconfig.io","encryption":{"keyVaultProperties":null},"privateEndpointConnections":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.AppConfiguration/configurationStores/configuration39c8158a/privateEndpointConnections/myconnection","name":"myconnection","type":"Microsoft.AppConfiguration/configurationStores/privateEndpointConnections","properties":{"provisioningState":"Succeeded","privateEndpoint":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/privateEndpoints/endpointxyz"},"privateLinkServiceConnectionState":{"status":"Approved","description":"Auto-Approved","actionsRequired":"None"}}}]},"sku":{"name":"standard"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.AppConfiguration/configurationStores/configuration39c8158a","name":"configuration39c8158a","tags":{"category":"Marketing"}}' - headers: - cache-control: - - no-cache - content-length: - - '1390' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 09 Jun 2021 16:58:23 GMT - etag: - - W/"58001eef-0000-0700-0000-60c0f32e0000" - expires: - - '-1' - pragma: - - no-cache - server: - - nginx/1.17.10 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding,Accept-Encoding - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1198' - status: - code: 200 - message: OK -- request: - body: '{"name": "contoso", "type": "Microsoft.AppConfiguration/configurationStores"}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '77' - Content-Type: - - application/json - User-Agent: - - azsdk-python-mgmt-appconfiguration/1.0.1 Python/3.8.6 (Windows-10-10.0.19041-SP0) - method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.AppConfiguration/checkNameAvailability?api-version=2020-06-01 - response: - body: - string: '{"nameAvailable":true,"message":"The specified name is available.","reason":null}' - headers: - cache-control: - - no-cache - content-length: - - '81' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 09 Jun 2021 16:58:23 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - nginx/1.17.10 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: '{"name": "contoso", "type": "Microsoft.AppConfiguration/configurationStores"}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '77' - Content-Type: - - application/json - User-Agent: - - azsdk-python-mgmt-appconfiguration/1.0.1 Python/3.8.6 (Windows-10-10.0.19041-SP0) - method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.AppConfiguration/checkNameAvailability?api-version=2020-06-01 - response: - body: - string: '{"nameAvailable":true,"message":"The specified name is available.","reason":null}' - headers: - cache-control: - - no-cache - content-length: - - '81' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 09 Jun 2021 16:58:23 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - nginx/1.17.10 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - User-Agent: - - azsdk-python-mgmt-appconfiguration/1.0.1 Python/3.8.6 (Windows-10-10.0.19041-SP0) - method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.AppConfiguration/configurationStores/configuration39c8158a/privateEndpointConnections/myconnection?api-version=2020-06-01 - response: - body: - string: '{"type":"Microsoft.AppConfiguration/configurationStores/privateEndpointConnections","properties":{"provisioningState":"Deleting","privateEndpoint":null,"privateLinkServiceConnectionState":null},"id":null,"name":"myconnection"}' - headers: - azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.AppConfiguration/locations/westus/operationsStatus/6550d6e6-8036-9040-9df1-a91323448910?api-version=2020-06-01 - cache-control: - - no-cache - content-length: - - '226' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 09 Jun 2021 16:58:23 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - nginx/1.17.10 - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-deletes: - - '14998' - status: - code: 202 - message: Accepted -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-mgmt-appconfiguration/1.0.1 Python/3.8.6 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.AppConfiguration/locations/westus/operationsStatus/6550d6e6-8036-9040-9df1-a91323448910?api-version=2020-06-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.AppConfiguration/locations/westus/operationsStatus/6550d6e6-8036-9040-9df1-a91323448910","name":"6550d6e6-8036-9040-9df1-a91323448910","status":"Deleting","error":null}' - headers: - azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.AppConfiguration/locations/westus/operationsStatus/6550d6e6-8036-9040-9df1-a91323448910?api-version=2020-06-01 - cache-control: - - no-cache - content-length: - - '247' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 09 Jun 2021 16:58:33 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - nginx/1.17.10 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-mgmt-appconfiguration/1.0.1 Python/3.8.6 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.AppConfiguration/locations/westus/operationsStatus/6550d6e6-8036-9040-9df1-a91323448910?api-version=2020-06-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.AppConfiguration/locations/westus/operationsStatus/6550d6e6-8036-9040-9df1-a91323448910","name":"6550d6e6-8036-9040-9df1-a91323448910","status":"Deleting","error":null}' - headers: - azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.AppConfiguration/locations/westus/operationsStatus/6550d6e6-8036-9040-9df1-a91323448910?api-version=2020-06-01 - cache-control: - - no-cache - content-length: - - '247' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 09 Jun 2021 16:58:43 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - nginx/1.17.10 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-mgmt-appconfiguration/1.0.1 Python/3.8.6 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.AppConfiguration/locations/westus/operationsStatus/6550d6e6-8036-9040-9df1-a91323448910?api-version=2020-06-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.AppConfiguration/locations/westus/operationsStatus/6550d6e6-8036-9040-9df1-a91323448910","name":"6550d6e6-8036-9040-9df1-a91323448910","status":"Succeeded","error":null}' - headers: - azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.AppConfiguration/locations/westus/operationsStatus/6550d6e6-8036-9040-9df1-a91323448910?api-version=2020-06-01 - cache-control: - - no-cache - content-length: - - '248' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 09 Jun 2021 16:58:53 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - nginx/1.17.10 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - User-Agent: - - azsdk-python-mgmt-appconfiguration/1.0.1 Python/3.8.6 (Windows-10-10.0.19041-SP0) - method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.AppConfiguration/configurationStores/configuration39c8158a?api-version=2020-06-01 - response: - body: - string: '' - headers: - cache-control: - - no-cache - content-length: - - '0' - date: - - Wed, 09 Jun 2021 16:58:56 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - nginx/1.17.10 - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-deletes: - - '14996' - status: - code: 200 - message: OK -version: 1 diff --git a/sdk/appconfiguration/azure-mgmt-appconfiguration/tests/recordings/test_cli_mgmt_appconfiguration.test_appconfiguration_list_key_values.yaml b/sdk/appconfiguration/azure-mgmt-appconfiguration/tests/recordings/test_cli_mgmt_appconfiguration.test_appconfiguration_list_key_values.yaml deleted file mode 100644 index ba3097123e4d..000000000000 --- a/sdk/appconfiguration/azure-mgmt-appconfiguration/tests/recordings/test_cli_mgmt_appconfiguration.test_appconfiguration_list_key_values.yaml +++ /dev/null @@ -1,345 +0,0 @@ -interactions: -- request: - body: '{"location": "westus", "tags": {"my_tag": "myTagValue"}, "sku": {"name": - "Standard"}}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '85' - Content-Type: - - application/json - User-Agent: - - azsdk-python-mgmt-appconfiguration/1.0.1 Python/3.8.6 (Windows-10-10.0.19041-SP0) - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.AppConfiguration/configurationStores/configurationcae61c3c?api-version=2020-06-01 - response: - body: - string: '{"type":"Microsoft.AppConfiguration/configurationStores","location":"westus","properties":{"provisioningState":"Creating","creationDate":"2021-06-09T16:59:04.4482843+00:00","endpoint":null,"encryption":null,"privateEndpointConnections":null},"sku":{"name":"Standard"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.AppConfiguration/configurationStores/configurationcae61c3c","name":"configurationcae61c3c","tags":{}}' - headers: - azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.AppConfiguration/locations/westus/operationsStatus/990e6efc-a461-1228-c2cc-2d3d796e640d?api-version=2020-06-01 - cache-control: - - no-cache - content-length: - - '543' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 09 Jun 2021 16:59:05 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - nginx/1.17.10 - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1165' - status: - code: 201 - message: Created -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-mgmt-appconfiguration/1.0.1 Python/3.8.6 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.AppConfiguration/locations/westus/operationsStatus/990e6efc-a461-1228-c2cc-2d3d796e640d?api-version=2020-06-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.AppConfiguration/locations/westus/operationsStatus/990e6efc-a461-1228-c2cc-2d3d796e640d","name":"990e6efc-a461-1228-c2cc-2d3d796e640d","status":"Succeeded","error":null}' - headers: - azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.AppConfiguration/locations/westus/operationsStatus/990e6efc-a461-1228-c2cc-2d3d796e640d?api-version=2020-06-01 - cache-control: - - no-cache - content-length: - - '248' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 09 Jun 2021 16:59:15 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - nginx/1.17.10 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-mgmt-appconfiguration/1.0.1 Python/3.8.6 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.AppConfiguration/configurationStores/configurationcae61c3c?api-version=2020-06-01 - response: - body: - string: '{"type":"Microsoft.AppConfiguration/configurationStores","location":"westus","properties":{"provisioningState":"Succeeded","creationDate":"2021-06-09T16:59:05+00:00","endpoint":"https://configurationcae61c3c.azconfig.io","encryption":{"keyVaultProperties":null},"privateEndpointConnections":null},"sku":{"name":"standard"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.AppConfiguration/configurationStores/configurationcae61c3c","name":"configurationcae61c3c","tags":{"my_tag":"myTagValue"}}' - headers: - cache-control: - - no-cache - content-length: - - '619' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 09 Jun 2021 16:59:15 GMT - etag: - - W/"020035b2-0000-0700-0000-60c0f3590000" - expires: - - '-1' - pragma: - - no-cache - server: - - nginx/1.17.10 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding,Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - User-Agent: - - azsdk-python-mgmt-appconfiguration/1.0.1 Python/3.8.6 (Windows-10-10.0.19041-SP0) - method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.AppConfiguration/configurationStores/configurationcae61c3c/ListKeys?api-version=2020-06-01 - response: - body: - string: '{"value":[{"id":"0kAl-l1-s0:i96YfD7iryZorykIgLQF","name":"Primary","value":"BBCQNyhz2q63cVblTOtUetZVOTLcs6KXsVTHB5XGG6w=","connectionString":"Endpoint=https://configurationcae61c3c.azconfig.io;Id=0kAl-l1-s0:i96YfD7iryZorykIgLQF;Secret=BBCQNyhz2q63cVblTOtUetZVOTLcs6KXsVTHB5XGG6w=","lastModified":"2021-06-09T16:59:04+00:00","readOnly":false},{"id":"At89-l1-s0:fav64Mn6z1IiZZwb1Quf","name":"Secondary","value":"7hexaP2bVARYlYWuhfXpDjmmZLxBUJ7Rv8ls2s2SAC8=","connectionString":"Endpoint=https://configurationcae61c3c.azconfig.io;Id=At89-l1-s0:fav64Mn6z1IiZZwb1Quf;Secret=7hexaP2bVARYlYWuhfXpDjmmZLxBUJ7Rv8ls2s2SAC8=","lastModified":"2021-06-09T16:59:04+00:00","readOnly":false},{"id":"WuZF-l1-s0:TOLYNcqAgBat1SgnI02n","name":"Primary - Read Only","value":"Xv6QpT/NimeEKRZFZXNCv9dLGpqnkk4wPBLGYVC6Nh8=","connectionString":"Endpoint=https://configurationcae61c3c.azconfig.io;Id=WuZF-l1-s0:TOLYNcqAgBat1SgnI02n;Secret=Xv6QpT/NimeEKRZFZXNCv9dLGpqnkk4wPBLGYVC6Nh8=","lastModified":"2021-06-09T16:59:04+00:00","readOnly":true},{"id":"7PqF-l1-s0:rwzaj8kVvVE+BfaOEbyn","name":"Secondary - Read Only","value":"+ic8SHY+jECzMMkVYJVnEXUaymjs10BrxpKrBDPqJb0=","connectionString":"Endpoint=https://configurationcae61c3c.azconfig.io;Id=7PqF-l1-s0:rwzaj8kVvVE+BfaOEbyn;Secret=+ic8SHY+jECzMMkVYJVnEXUaymjs10BrxpKrBDPqJb0=","lastModified":"2021-06-09T16:59:04+00:00","readOnly":true}],"nextLink":null}' - headers: - cache-control: - - no-cache - content-length: - - '1377' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 09 Jun 2021 16:59:15 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - nginx/1.17.10 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding,Accept-Encoding - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1199' - status: - code: 200 - message: OK -- request: - body: '{"id": "0kAl-l1-s0:i96YfD7iryZorykIgLQF"}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '41' - Content-Type: - - application/json - User-Agent: - - azsdk-python-mgmt-appconfiguration/1.0.1 Python/3.8.6 (Windows-10-10.0.19041-SP0) - method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.AppConfiguration/configurationStores/configurationcae61c3c/RegenerateKey?api-version=2020-06-01 - response: - body: - string: '{"id":"FKsW-l1-s0:PYQah0qRa1MtHwsBzzTN","name":"Primary","value":"wDKdBJoPqwwYEf2t4GNK1mSPojWxZHagfPjra9Hdtjg=","connectionString":"Endpoint=https://configurationcae61c3c.azconfig.io;Id=FKsW-l1-s0:PYQah0qRa1MtHwsBzzTN;Secret=wDKdBJoPqwwYEf2t4GNK1mSPojWxZHagfPjra9Hdtjg=","lastModified":"2021-06-09T16:59:15+00:00","readOnly":false}' - headers: - cache-control: - - no-cache - content-length: - - '331' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 09 Jun 2021 16:59:15 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - nginx/1.17.10 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding,Accept-Encoding - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1198' - status: - code: 200 - message: OK -- request: - body: '{"key": "PYTHON_UNIT_test_key_a6af8952-54a6-11e9-b600-2816a84d0309", "label": - "test_label1_1d7b2b28-549e-11e9-b51c-2816a84d0309", "content_type": "test content - type", "value": "test value", "tags": {"tag1": "tag1", "tag2": "tag2"}}' - headers: - Accept: - - application/vnd.microsoft.appconfig.kv+json, application/json, application/problem+json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '231' - Content-Type: - - application/vnd.microsoft.appconfig.kv+json - If-None-Match: - - '*' - User-Agent: - - azsdk-python-appconfiguration/1.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) - x-ms-content-sha256: - - 5b/E4qQlXHTRod+n+f+xjK6c/tRVR8uxoC62FjvGJPw= - x-ms-date: - - Jun, 09 2021 16:59:14.514060 GMT - method: PUT - uri: https://configurationcae61c3c.azconfig.io/kv/PYTHON_UNIT_test_key_a6af8952-54a6-11e9-b600-2816a84d0309?label=test_label1_1d7b2b28-549e-11e9-b51c-2816a84d0309&api-version=1.0 - response: - body: - string: '{"etag":"zmZdtxbiremQzYOVYGnKBHC8fy8","key":"PYTHON_UNIT_test_key_a6af8952-54a6-11e9-b600-2816a84d0309","label":"test_label1_1d7b2b28-549e-11e9-b51c-2816a84d0309","content_type":"test - content type","value":"test value","tags":{"tag1":"tag1","tag2":"tag2"},"locked":false,"last_modified":"2021-06-09T16:59:16+00:00"}' - headers: - access-control-allow-credentials: - - 'true' - access-control-allow-origin: - - '*' - access-control-expose-headers: - - DNT, X-CustomHeader, Keep-Alive, User-Agent, X-Requested-With, If-Modified-Since, - Cache-Control, Content-Type, Authorization, x-ms-client-request-id, x-ms-useragent, - x-ms-content-sha256, x-ms-date, host, Accept, Accept-Datetime, Date, If-Match, - If-None-Match, Sync-Token, x-ms-return-client-request-id, ETag, Last-Modified, - Link, Memento-Datetime, retry-after-ms, x-ms-request-id, x-ms-client-session-id, - x-ms-effective-locale, WWW-Authenticate - connection: - - keep-alive - content-type: - - application/vnd.microsoft.appconfig.kv+json; charset=utf-8 - date: - - Wed, 09 Jun 2021 16:59:15 GMT - etag: - - '"zmZdtxbiremQzYOVYGnKBHC8fy8"' - last-modified: - - Wed, 09 Jun 2021 16:59:16 GMT - server: - - openresty/1.17.8.2 - strict-transport-security: - - max-age=15724800; includeSubDomains - sync-token: - - zAJw6V16=Mzo1IzMwODY0Mzk=;sn=3086439 - transfer-encoding: - - chunked - status: - code: 200 - message: OK -- request: - body: '{"key": "PYTHON_UNIT_test_key_a6af8952-54a6-11e9-b600-2816a84d0309", "label": - "test_label1_1d7b2b28-549e-11e9-b51c-2816a84d0309"}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '129' - Content-Type: - - application/json - User-Agent: - - azsdk-python-mgmt-appconfiguration/1.0.1 Python/3.8.6 (Windows-10-10.0.19041-SP0) - method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.AppConfiguration/configurationStores/configurationcae61c3c/listKeyValue?api-version=2020-06-01 - response: - body: - string: '{"key":"PYTHON_UNIT_test_key_a6af8952-54a6-11e9-b600-2816a84d0309","label":"test_label1_1d7b2b28-549e-11e9-b51c-2816a84d0309","value":"test - value","contentType":"test content type","eTag":"zmZdtxbiremQzYOVYGnKBHC8fy8","lastModified":"2021-06-09T16:59:16+00:00","locked":false,"tags":{"tag1":"tag1","tag2":"tag2"}}' - headers: - cache-control: - - no-cache - content-length: - - '313' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 09 Jun 2021 16:59:16 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - nginx/1.17.10 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding,Accept-Encoding - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1197' - status: - code: 200 - message: OK -version: 1 diff --git a/sdk/appconfiguration/azure-mgmt-appconfiguration/tests/recordings/test_cli_mgmt_appconfiguration_async.test_appconfiguration.yaml b/sdk/appconfiguration/azure-mgmt-appconfiguration/tests/recordings/test_cli_mgmt_appconfiguration_async.test_appconfiguration.yaml deleted file mode 100644 index 72b8c9fd1eb0..000000000000 --- a/sdk/appconfiguration/azure-mgmt-appconfiguration/tests/recordings/test_cli_mgmt_appconfiguration_async.test_appconfiguration.yaml +++ /dev/null @@ -1,1356 +0,0 @@ -interactions: -- request: - body: '{"location": "westus", "tags": {"my_tag": "myTagValue"}, "sku": {"name": - "Standard"}}' - headers: - Accept: - - application/json - Content-Length: - - '85' - Content-Type: - - application/json - User-Agent: - - azsdk-python-mgmt-appconfiguration/1.0.1 Python/3.8.6 (Windows-10-10.0.19041-SP0) - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.AppConfiguration/configurationStores/configurationc4331807?api-version=2020-06-01 - response: - body: - string: '{"type":"Microsoft.AppConfiguration/configurationStores","location":"westus","properties":{"provisioningState":"Creating","creationDate":"2021-06-09T16:59:22.3993036+00:00","endpoint":null,"encryption":null,"privateEndpointConnections":null},"sku":{"name":"Standard"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.AppConfiguration/configurationStores/configurationc4331807","name":"configurationc4331807","tags":{}}' - headers: - azure-asyncoperation: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.AppConfiguration/locations/westus/operationsStatus/a90a39b6-7e4c-b5ed-e238-6c839b730a3c?api-version=2020-06-01 - cache-control: no-cache - content-length: '543' - content-type: application/json; charset=utf-8 - date: Wed, 09 Jun 2021 16:59:22 GMT - expires: '-1' - pragma: no-cache - server: nginx/1.17.10 - strict-transport-security: max-age=31536000; includeSubDomains - x-content-type-options: nosniff - x-ms-ratelimit-remaining-subscription-writes: '1171' - status: - code: 201 - message: Created - url: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-6bzgooibacfmnofdbd4qho75rtn2xas4b4jcs55xhpok5kurubmkgoe2wexgssgpf6cmpqmj72o/providers/Microsoft.AppConfiguration/configurationStores/configurationc4331807?api-version=2020-06-01 -- request: - body: null - headers: - User-Agent: - - azsdk-python-mgmt-appconfiguration/1.0.1 Python/3.8.6 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.AppConfiguration/locations/westus/operationsStatus/a90a39b6-7e4c-b5ed-e238-6c839b730a3c?api-version=2020-06-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.AppConfiguration/locations/westus/operationsStatus/a90a39b6-7e4c-b5ed-e238-6c839b730a3c","name":"a90a39b6-7e4c-b5ed-e238-6c839b730a3c","status":"Succeeded","error":null}' - headers: - azure-asyncoperation: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.AppConfiguration/locations/westus/operationsStatus/a90a39b6-7e4c-b5ed-e238-6c839b730a3c?api-version=2020-06-01 - cache-control: no-cache - content-type: application/json; charset=utf-8 - date: Wed, 09 Jun 2021 16:59:32 GMT - expires: '-1' - pragma: no-cache - server: nginx/1.17.10 - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - vary: Accept-Encoding - x-content-type-options: nosniff - status: - code: 200 - message: OK - url: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.AppConfiguration/locations/westus/operationsStatus/a90a39b6-7e4c-b5ed-e238-6c839b730a3c?api-version=2020-06-01 -- request: - body: null - headers: - User-Agent: - - azsdk-python-mgmt-appconfiguration/1.0.1 Python/3.8.6 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.AppConfiguration/configurationStores/configurationc4331807?api-version=2020-06-01 - response: - body: - string: '{"type":"Microsoft.AppConfiguration/configurationStores","location":"westus","properties":{"provisioningState":"Succeeded","creationDate":"2021-06-09T16:59:23+00:00","endpoint":"https://configurationc4331807.azconfig.io","encryption":{"keyVaultProperties":null},"privateEndpointConnections":null},"sku":{"name":"standard"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.AppConfiguration/configurationStores/configurationc4331807","name":"configurationc4331807","tags":{"my_tag":"myTagValue"}}' - headers: - cache-control: no-cache - content-type: application/json; charset=utf-8 - date: Wed, 09 Jun 2021 16:59:32 GMT - etag: W/"1f012a2b-0000-0700-0000-60c0f36a0000" - expires: '-1' - pragma: no-cache - server: nginx/1.17.10 - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - vary: Accept-Encoding,Accept-Encoding - x-content-type-options: nosniff - status: - code: 200 - message: OK - url: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-6bzgooibacfmnofdbd4qho75rtn2xas4b4jcs55xhpok5kurubmkgoe2wexgssgpf6cmpqmj72o/providers/Microsoft.AppConfiguration/configurationStores/configurationc4331807?api-version=2020-06-01 -- request: - body: '{"location": "eastus", "properties": {"addressSpace": {"addressPrefixes": - ["10.0.0.0/16"]}}}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '92' - Content-Type: - - application/json; charset=utf-8 - User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.4 - azure-mgmt-network/13.0.0 Azure-SDK-For-Python - accept-language: - - en-US - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworks/vnetnamexxy?api-version=2020-07-01 - response: - body: - string: "{\r\n \"name\": \"vnetnamexxy\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworks/vnetnamexxy\",\r\n - \ \"etag\": \"W/\\\"650527b5-b3e5-4605-86e3-9cffdde11615\\\"\",\r\n \"type\": - \"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"eastus\",\r\n - \ \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"resourceGuid\": - \"f8bf899d-6263-4196-a78e-fedfa1f3da11\",\r\n \"addressSpace\": {\r\n \"addressPrefixes\": - [\r\n \"10.0.0.0/16\"\r\n ]\r\n },\r\n \"subnets\": [],\r\n - \ \"virtualNetworkPeerings\": [],\r\n \"enableDdosProtection\": false\r\n - \ }\r\n}" - headers: - azure-asyncnotification: - - Enabled - azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/9796824f-2145-47b2-87a7-3e0559db88d4?api-version=2020-07-01 - cache-control: - - no-cache - content-length: - - '680' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 09 Jun 2021 16:59:36 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - x-ms-arm-service-request-id: - - bbf13d8f-3b87-4776-8870-e079922c1e3b - x-ms-ratelimit-remaining-subscription-writes: - - '1169' - status: - code: 201 - message: Created -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.4 - azure-mgmt-network/13.0.0 Azure-SDK-For-Python - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/9796824f-2145-47b2-87a7-3e0559db88d4?api-version=2020-07-01 - response: - body: - string: "{\r\n \"status\": \"Succeeded\"\r\n}" - headers: - cache-control: - - no-cache - content-length: - - '29' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 09 Jun 2021 16:59:39 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-arm-service-request-id: - - abce09d4-6a8a-4bb7-b250-f2c8adc298e8 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.4 - azure-mgmt-network/13.0.0 Azure-SDK-For-Python - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworks/vnetnamexxy?api-version=2020-07-01 - response: - body: - string: "{\r\n \"name\": \"vnetnamexxy\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworks/vnetnamexxy\",\r\n - \ \"etag\": \"W/\\\"72305453-171b-41e8-95e1-fff021f46e9b\\\"\",\r\n \"type\": - \"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"eastus\",\r\n - \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\": - \"f8bf899d-6263-4196-a78e-fedfa1f3da11\",\r\n \"addressSpace\": {\r\n \"addressPrefixes\": - [\r\n \"10.0.0.0/16\"\r\n ]\r\n },\r\n \"subnets\": [],\r\n - \ \"virtualNetworkPeerings\": [],\r\n \"enableDdosProtection\": false\r\n - \ }\r\n}" - headers: - cache-control: - - no-cache - content-length: - - '681' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 09 Jun 2021 16:59:39 GMT - etag: - - W/"72305453-171b-41e8-95e1-fff021f46e9b" - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-arm-service-request-id: - - d537cc58-403b-462a-b09e-6eb9d5a0dfe3 - status: - code: 200 - message: OK -- request: - body: '{"properties": {"addressPrefix": "10.0.0.0/24", "privateEndpointNetworkPolicies": - "disabled", "privateLinkServiceNetworkPolicies": "disabled"}}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '143' - Content-Type: - - application/json; charset=utf-8 - User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.4 - azure-mgmt-network/13.0.0 Azure-SDK-For-Python - accept-language: - - en-US - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworks/vnetnamexxy/subnets/subnetnamexxy?api-version=2020-07-01 - response: - body: - string: "{\r\n \"name\": \"subnetnamexxy\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworks/vnetnamexxy/subnets/subnetnamexxy\",\r\n - \ \"etag\": \"W/\\\"d3941d28-b53e-43da-8df8-5cc2a7ecf16a\\\"\",\r\n \"properties\": - {\r\n \"provisioningState\": \"Updating\",\r\n \"addressPrefix\": \"10.0.0.0/24\",\r\n - \ \"delegations\": [],\r\n \"privateEndpointNetworkPolicies\": \"Disabled\",\r\n - \ \"privateLinkServiceNetworkPolicies\": \"Disabled\"\r\n },\r\n \"type\": - \"Microsoft.Network/virtualNetworks/subnets\"\r\n}" - headers: - azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/9b7d2762-b36b-4a2b-bc24-c9669d430298?api-version=2020-07-01 - cache-control: - - no-cache - content-length: - - '610' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 09 Jun 2021 16:59:40 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - x-ms-arm-service-request-id: - - f15f271b-78f3-4a97-8313-aa80f9050868 - x-ms-ratelimit-remaining-subscription-writes: - - '1168' - status: - code: 201 - message: Created -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.4 - azure-mgmt-network/13.0.0 Azure-SDK-For-Python - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/9b7d2762-b36b-4a2b-bc24-c9669d430298?api-version=2020-07-01 - response: - body: - string: "{\r\n \"status\": \"Succeeded\"\r\n}" - headers: - cache-control: - - no-cache - content-length: - - '29' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 09 Jun 2021 16:59:43 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-arm-service-request-id: - - fb7b00b9-3d4b-4bdf-a105-dd9d2f611bdc - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.4 - azure-mgmt-network/13.0.0 Azure-SDK-For-Python - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworks/vnetnamexxy/subnets/subnetnamexxy?api-version=2020-07-01 - response: - body: - string: "{\r\n \"name\": \"subnetnamexxy\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworks/vnetnamexxy/subnets/subnetnamexxy\",\r\n - \ \"etag\": \"W/\\\"d6b21b3e-2df3-4988-8a14-09bed52fc07e\\\"\",\r\n \"properties\": - {\r\n \"provisioningState\": \"Succeeded\",\r\n \"addressPrefix\": \"10.0.0.0/24\",\r\n - \ \"delegations\": [],\r\n \"privateEndpointNetworkPolicies\": \"Disabled\",\r\n - \ \"privateLinkServiceNetworkPolicies\": \"Disabled\"\r\n },\r\n \"type\": - \"Microsoft.Network/virtualNetworks/subnets\"\r\n}" - headers: - cache-control: - - no-cache - content-length: - - '611' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 09 Jun 2021 16:59:44 GMT - etag: - - W/"d6b21b3e-2df3-4988-8a14-09bed52fc07e" - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-arm-service-request-id: - - 71bb40f0-8148-467b-8adc-adb37d0a5c22 - status: - code: 200 - message: OK -- request: - body: '{"location": "eastus", "properties": {"subnet": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworks/vnetnamexxy/subnets/subnetnamexxy"}, - "privateLinkServiceConnections": [{"properties": {"privateLinkServiceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.AppConfiguration/configurationStores/configurationc4331807", - "groupIds": ["configurationStores"]}, "name": "myconnection"}]}}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '653' - Content-Type: - - application/json; charset=utf-8 - User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.4 - azure-mgmt-network/13.0.0 Azure-SDK-For-Python - accept-language: - - en-US - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/privateEndpoints/endpointxyz?api-version=2020-07-01 - response: - body: - string: "{\r\n \"name\": \"endpointxyz\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/privateEndpoints/endpointxyz\",\r\n - \ \"etag\": \"W/\\\"ef8a3440-f01f-4075-a55a-91907fa90394\\\"\",\r\n \"type\": - \"Microsoft.Network/privateEndpoints\",\r\n \"location\": \"eastus\",\r\n - \ \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"resourceGuid\": - \"1e21769a-3745-43c2-aceb-d084b3f77428\",\r\n \"privateLinkServiceConnections\": - [\r\n {\r\n \"name\": \"myconnection\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/privateEndpoints/endpointxyz/privateLinkServiceConnections/myconnection\",\r\n - \ \"etag\": \"W/\\\"ef8a3440-f01f-4075-a55a-91907fa90394\\\"\",\r\n - \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n - \ \"privateLinkServiceId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.AppConfiguration/configurationStores/configurationc4331807\",\r\n - \ \"groupIds\": [\r\n \"configurationStores\"\r\n ],\r\n - \ \"privateLinkServiceConnectionState\": {\r\n \"status\": - \"Approved\",\r\n \"description\": \"\",\r\n \"actionsRequired\": - \"None\"\r\n }\r\n },\r\n \"type\": \"Microsoft.Network/privateEndpoints/privateLinkServiceConnections\"\r\n - \ }\r\n ],\r\n \"manualPrivateLinkServiceConnections\": [],\r\n - \ \"subnet\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworks/vnetnamexxy/subnets/subnetnamexxy\"\r\n - \ },\r\n \"networkInterfaces\": [\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/networkInterfaces/endpointxyz.nic.0796cee8-013b-463c-9078-0f0b539ab48b\"\r\n - \ }\r\n ],\r\n \"customDnsConfigs\": []\r\n }\r\n}" - headers: - azure-asyncnotification: - - Enabled - azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/a7d30e40-e152-4f7c-aacd-cd94fcaab4fa?api-version=2020-07-01 - cache-control: - - no-cache - content-length: - - '2263' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 09 Jun 2021 16:59:47 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - x-ms-arm-service-request-id: - - a9555b14-01ea-4715-b140-2acb6f63e873 - x-ms-ratelimit-remaining-subscription-writes: - - '1167' - status: - code: 201 - message: Created -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.4 - azure-mgmt-network/13.0.0 Azure-SDK-For-Python - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/a7d30e40-e152-4f7c-aacd-cd94fcaab4fa?api-version=2020-07-01 - response: - body: - string: "{\r\n \"status\": \"InProgress\"\r\n}" - headers: - cache-control: - - no-cache - content-length: - - '30' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 09 Jun 2021 16:59:57 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-arm-service-request-id: - - d9e85af3-5f5d-4745-b107-263b4f0588a8 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.4 - azure-mgmt-network/13.0.0 Azure-SDK-For-Python - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/a7d30e40-e152-4f7c-aacd-cd94fcaab4fa?api-version=2020-07-01 - response: - body: - string: "{\r\n \"status\": \"InProgress\"\r\n}" - headers: - cache-control: - - no-cache - content-length: - - '30' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 09 Jun 2021 17:00:07 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-arm-service-request-id: - - e87d2025-7321-4a23-b575-3b6c50c66ce0 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.4 - azure-mgmt-network/13.0.0 Azure-SDK-For-Python - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/a7d30e40-e152-4f7c-aacd-cd94fcaab4fa?api-version=2020-07-01 - response: - body: - string: "{\r\n \"status\": \"Succeeded\"\r\n}" - headers: - cache-control: - - no-cache - content-length: - - '29' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 09 Jun 2021 17:00:27 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-arm-service-request-id: - - dc67af11-33b2-4497-8945-36bf580952d0 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - python/3.8.6 (Windows-10-10.0.19041-SP0) msrest/0.6.21 msrest_azure/0.6.4 - azure-mgmt-network/13.0.0 Azure-SDK-For-Python - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/privateEndpoints/endpointxyz?api-version=2020-07-01 - response: - body: - string: "{\r\n \"name\": \"endpointxyz\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/privateEndpoints/endpointxyz\",\r\n - \ \"etag\": \"W/\\\"8c336e2d-6d8e-489b-b2bc-063765e5eeab\\\"\",\r\n \"type\": - \"Microsoft.Network/privateEndpoints\",\r\n \"location\": \"eastus\",\r\n - \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\": - \"1e21769a-3745-43c2-aceb-d084b3f77428\",\r\n \"privateLinkServiceConnections\": - [\r\n {\r\n \"name\": \"myconnection\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/privateEndpoints/endpointxyz/privateLinkServiceConnections/myconnection\",\r\n - \ \"etag\": \"W/\\\"8c336e2d-6d8e-489b-b2bc-063765e5eeab\\\"\",\r\n - \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n - \ \"privateLinkServiceId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.AppConfiguration/configurationStores/configurationc4331807\",\r\n - \ \"groupIds\": [\r\n \"configurationStores\"\r\n ],\r\n - \ \"privateLinkServiceConnectionState\": {\r\n \"status\": - \"Approved\",\r\n \"description\": \"Auto-Approved\",\r\n \"actionsRequired\": - \"None\"\r\n }\r\n },\r\n \"type\": \"Microsoft.Network/privateEndpoints/privateLinkServiceConnections\"\r\n - \ }\r\n ],\r\n \"manualPrivateLinkServiceConnections\": [],\r\n - \ \"subnet\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/virtualNetworks/vnetnamexxy/subnets/subnetnamexxy\"\r\n - \ },\r\n \"networkInterfaces\": [\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/networkInterfaces/endpointxyz.nic.0796cee8-013b-463c-9078-0f0b539ab48b\"\r\n - \ }\r\n ],\r\n \"customDnsConfigs\": [\r\n {\r\n \"fqdn\": - \"configurationc4331807.azconfig.io\",\r\n \"ipAddresses\": [\r\n \"10.0.0.4\"\r\n - \ ]\r\n }\r\n ]\r\n }\r\n}" - headers: - cache-control: - - no-cache - content-length: - - '2414' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 09 Jun 2021 17:00:27 GMT - etag: - - W/"8c336e2d-6d8e-489b-b2bc-063765e5eeab" - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-arm-service-request-id: - - c0198e92-6895-4587-9a2a-a2463afa4c9d - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-mgmt-appconfiguration/1.0.1 Python/3.8.6 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.AppConfiguration/configurationStores/configurationc4331807?api-version=2020-06-01 - response: - body: - string: '{"type":"Microsoft.AppConfiguration/configurationStores","location":"westus","properties":{"provisioningState":"Succeeded","creationDate":"2021-06-09T16:59:23+00:00","endpoint":"https://configurationc4331807.azconfig.io","encryption":{"keyVaultProperties":null},"privateEndpointConnections":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.AppConfiguration/configurationStores/configurationc4331807/privateEndpointConnections/myconnection","name":"myconnection","type":"Microsoft.AppConfiguration/configurationStores/privateEndpointConnections","properties":{"provisioningState":"Succeeded","privateEndpoint":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/privateEndpoints/endpointxyz"},"privateLinkServiceConnectionState":{"status":"Approved","description":"Auto-Approved","actionsRequired":"None"}}}]},"sku":{"name":"standard"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.AppConfiguration/configurationStores/configurationc4331807","name":"configurationc4331807","tags":{"my_tag":"myTagValue"}}' - headers: - cache-control: no-cache - content-type: application/json; charset=utf-8 - date: Wed, 09 Jun 2021 17:00:28 GMT - etag: W/"1f01f42f-0000-0700-0000-60c0f3930000" - expires: '-1' - pragma: no-cache - server: nginx/1.17.10 - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - vary: Accept-Encoding,Accept-Encoding - x-content-type-options: nosniff - status: - code: 200 - message: OK - url: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-6bzgooibacfmnofdbd4qho75rtn2xas4b4jcs55xhpok5kurubmkgoe2wexgssgpf6cmpqmj72o/providers/Microsoft.AppConfiguration/configurationStores/configurationc4331807?api-version=2020-06-01 -- request: - body: '{"properties": {"privateEndpoint": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/privateEndpoints/endpointxyz"}, - "privateLinkServiceConnectionState": {"status": "Approved", "description": "Auto-Approved"}}}' - headers: - Accept: - - application/json - Content-Length: - - '344' - Content-Type: - - application/json - User-Agent: - - azsdk-python-mgmt-appconfiguration/1.0.1 Python/3.8.6 (Windows-10-10.0.19041-SP0) - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.AppConfiguration/configurationStores/configurationc4331807/privateEndpointConnections/myconnection?api-version=2020-06-01 - response: - body: - string: '{"type":"Microsoft.AppConfiguration/configurationStores/privateEndpointConnections","properties":{"provisioningState":"Updating","privateEndpoint":null,"privateLinkServiceConnectionState":{"status":"Approved","description":"Auto-Approved"}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.AppConfiguration/configurationStores/configurationc4331807/privateEndpointConnections/myconnection","name":"myconnection"}' - headers: - azure-asyncoperation: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.AppConfiguration/locations/westus/operationsStatus/73974cd6-adeb-1d47-9806-7514f8c6178d?api-version=2020-06-01 - cache-control: no-cache - content-length: '537' - content-type: application/json; charset=utf-8 - date: Wed, 09 Jun 2021 17:00:29 GMT - expires: '-1' - pragma: no-cache - server: nginx/1.17.10 - strict-transport-security: max-age=31536000; includeSubDomains - x-content-type-options: nosniff - x-ms-ratelimit-remaining-subscription-writes: '1197' - status: - code: 201 - message: Created - url: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-6bzgooibacfmnofdbd4qho75rtn2xas4b4jcs55xhpok5kurubmkgoe2wexgssgpf6cmpqmj72o/providers/Microsoft.AppConfiguration/configurationStores/configurationc4331807/privateEndpointConnections/myconnection?api-version=2020-06-01 -- request: - body: null - headers: - User-Agent: - - azsdk-python-mgmt-appconfiguration/1.0.1 Python/3.8.6 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.AppConfiguration/locations/westus/operationsStatus/73974cd6-adeb-1d47-9806-7514f8c6178d?api-version=2020-06-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.AppConfiguration/locations/westus/operationsStatus/73974cd6-adeb-1d47-9806-7514f8c6178d","name":"73974cd6-adeb-1d47-9806-7514f8c6178d","status":"Succeeded","error":null}' - headers: - azure-asyncoperation: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.AppConfiguration/locations/westus/operationsStatus/73974cd6-adeb-1d47-9806-7514f8c6178d?api-version=2020-06-01 - cache-control: no-cache - content-type: application/json; charset=utf-8 - date: Wed, 09 Jun 2021 17:00:39 GMT - expires: '-1' - pragma: no-cache - server: nginx/1.17.10 - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - vary: Accept-Encoding - x-content-type-options: nosniff - status: - code: 200 - message: OK - url: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.AppConfiguration/locations/westus/operationsStatus/73974cd6-adeb-1d47-9806-7514f8c6178d?api-version=2020-06-01 -- request: - body: null - headers: - User-Agent: - - azsdk-python-mgmt-appconfiguration/1.0.1 Python/3.8.6 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.AppConfiguration/configurationStores/configurationc4331807/privateEndpointConnections/myconnection?api-version=2020-06-01 - response: - body: - string: '{"type":"Microsoft.AppConfiguration/configurationStores/privateEndpointConnections","properties":{"provisioningState":"Succeeded","privateEndpoint":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/privateEndpoints/endpointxyz"},"privateLinkServiceConnectionState":{"status":"Approved","description":"Auto-Approved"}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.AppConfiguration/configurationStores/configurationc4331807/privateEndpointConnections/myconnection","name":"myconnection"}' - headers: - cache-control: no-cache - content-type: application/json; charset=utf-8 - date: Wed, 09 Jun 2021 17:00:39 GMT - expires: '-1' - pragma: no-cache - server: nginx/1.17.10 - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - vary: Accept-Encoding,Accept-Encoding - x-content-type-options: nosniff - status: - code: 200 - message: OK - url: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-6bzgooibacfmnofdbd4qho75rtn2xas4b4jcs55xhpok5kurubmkgoe2wexgssgpf6cmpqmj72o/providers/Microsoft.AppConfiguration/configurationStores/configurationc4331807/privateEndpointConnections/myconnection?api-version=2020-06-01 -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-mgmt-appconfiguration/1.0.1 Python/3.8.6 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.AppConfiguration/configurationStores/configurationc4331807/privateEndpointConnections/myconnection?api-version=2020-06-01 - response: - body: - string: '{"type":"Microsoft.AppConfiguration/configurationStores/privateEndpointConnections","properties":{"provisioningState":"Succeeded","privateEndpoint":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/privateEndpoints/endpointxyz"},"privateLinkServiceConnectionState":{"status":"Approved","description":"Auto-Approved"}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.AppConfiguration/configurationStores/configurationc4331807/privateEndpointConnections/myconnection","name":"myconnection"}' - headers: - cache-control: no-cache - content-type: application/json; charset=utf-8 - date: Wed, 09 Jun 2021 17:00:39 GMT - expires: '-1' - pragma: no-cache - server: nginx/1.17.10 - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - vary: Accept-Encoding,Accept-Encoding - x-content-type-options: nosniff - status: - code: 200 - message: OK - url: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-6bzgooibacfmnofdbd4qho75rtn2xas4b4jcs55xhpok5kurubmkgoe2wexgssgpf6cmpqmj72o/providers/Microsoft.AppConfiguration/configurationStores/configurationc4331807/privateEndpointConnections/myconnection?api-version=2020-06-01 -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-mgmt-appconfiguration/1.0.1 Python/3.8.6 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.AppConfiguration/configurationStores/configurationc4331807/privateLinkResources?api-version=2020-06-01 - response: - body: - string: '{"value":[{"id":"subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.AppConfiguration/configurationStores/configurationc4331807/privateLinkResources/configurationStores","name":"configurationStores","type":"Microsoft.AppConfiguration/configurationStores/privateLinkResources","properties":{"groupId":"configurationStores","requiredMembers":["configurationStores"],"requiredZoneNames":["privatelink.azconfig.io"]}}],"nextLink":null}' - headers: - cache-control: no-cache - content-type: application/json; charset=utf-8 - date: Wed, 09 Jun 2021 17:00:39 GMT - expires: '-1' - pragma: no-cache - server: nginx/1.17.10 - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - vary: Accept-Encoding,Accept-Encoding - x-content-type-options: nosniff - status: - code: 200 - message: OK - url: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-6bzgooibacfmnofdbd4qho75rtn2xas4b4jcs55xhpok5kurubmkgoe2wexgssgpf6cmpqmj72o/providers/Microsoft.AppConfiguration/configurationStores/configurationc4331807/privateLinkResources?api-version=2020-06-01 -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-mgmt-appconfiguration/1.0.1 Python/3.8.6 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.AppConfiguration/configurationStores/configurationc4331807/privateLinkResources/configurationStores?api-version=2020-06-01 - response: - body: - string: '{"id":"subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.AppConfiguration/configurationStores/configurationc4331807/privateLinkResources/configurationStores","name":"configurationStores","type":"Microsoft.AppConfiguration/configurationStores/privateLinkResources","properties":{"groupId":"configurationStores","requiredMembers":["configurationStores"],"requiredZoneNames":["privatelink.azconfig.io"]}}' - headers: - cache-control: no-cache - content-type: application/json; charset=utf-8 - date: Wed, 09 Jun 2021 17:00:39 GMT - expires: '-1' - pragma: no-cache - server: nginx/1.17.10 - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - vary: Accept-Encoding,Accept-Encoding - x-content-type-options: nosniff - status: - code: 200 - message: OK - url: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-6bzgooibacfmnofdbd4qho75rtn2xas4b4jcs55xhpok5kurubmkgoe2wexgssgpf6cmpqmj72o/providers/Microsoft.AppConfiguration/configurationStores/configurationc4331807/privateLinkResources/configurationStores?api-version=2020-06-01 -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-mgmt-appconfiguration/1.0.1 Python/3.8.6 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.AppConfiguration/configurationStores/configurationc4331807/privateEndpointConnections?api-version=2020-06-01 - response: - body: - string: '{"value":[{"type":"Microsoft.AppConfiguration/configurationStores/privateEndpointConnections","properties":{"provisioningState":"Succeeded","privateEndpoint":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/privateEndpoints/endpointxyz"},"privateLinkServiceConnectionState":{"status":"Approved","description":"Auto-Approved"}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.AppConfiguration/configurationStores/configurationc4331807/privateEndpointConnections/myconnection","name":"myconnection"}],"nextLink":null}' - headers: - cache-control: no-cache - content-type: application/json; charset=utf-8 - date: Wed, 09 Jun 2021 17:00:39 GMT - expires: '-1' - pragma: no-cache - server: nginx/1.17.10 - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - vary: Accept-Encoding,Accept-Encoding - x-content-type-options: nosniff - status: - code: 200 - message: OK - url: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-6bzgooibacfmnofdbd4qho75rtn2xas4b4jcs55xhpok5kurubmkgoe2wexgssgpf6cmpqmj72o/providers/Microsoft.AppConfiguration/configurationStores/configurationc4331807/privateEndpointConnections?api-version=2020-06-01 -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-mgmt-appconfiguration/1.0.1 Python/3.8.6 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://management.azure.com/providers/Microsoft.AppConfiguration/operations?api-version=2020-06-01 - response: - body: - string: '{"value":[{"name":"Microsoft.AppConfiguration/operations/read","isDataAction":false,"display":{"provider":"Microsoft - App Configuration","resource":"Operation","operation":"List Operations","description":"Lists - all of the operations supported by Microsoft App Configuration."},"properties":null},{"name":"Microsoft.AppConfiguration/register/action","isDataAction":false,"display":{"provider":"Microsoft - App Configuration","resource":"Microsoft App Configuration","operation":"Register - for Microsoft App Configuration","description":"Registers a subscription to - use Microsoft App Configuration."},"properties":null},{"name":"Microsoft.AppConfiguration/unregister/action","isDataAction":false,"display":{"provider":"Microsoft - App Configuration","resource":"Microsoft App Configuration","operation":"Unregister - for Microsoft App Configuration","description":"Unregisters a subscription - from using Microsoft App Configuration."},"properties":null},{"name":"Microsoft.AppConfiguration/locations/operationsStatus/read","isDataAction":false,"display":{"provider":"Microsoft - App Configuration","resource":null,"operation":"Get Operation Status","description":"Get - the status of an operation."},"properties":null},{"name":"Microsoft.AppConfiguration/checkNameAvailability/read","isDataAction":false,"display":{"provider":"Microsoft - App Configuration","resource":null,"operation":"Check Name Availability","description":"Check - whether the resource name is available for use."},"properties":null},{"name":"Microsoft.AppConfiguration/configurationStores/read","isDataAction":false,"display":{"provider":"Microsoft - App Configuration","resource":"Configuration Store","operation":"Get Configuration - Store or List Configuration Stores","description":"Gets the properties of - the specified configuration store or lists all the configuration stores under - the specified resource group or subscription."},"properties":null},{"name":"Microsoft.AppConfiguration/configurationStores/write","isDataAction":false,"display":{"provider":"Microsoft - App Configuration","resource":"Configuration Store","operation":"Create or - Update Configuration Store","description":"Create or update a configuration - store with the specified parameters."},"properties":null},{"name":"Microsoft.AppConfiguration/configurationStores/delete","isDataAction":false,"display":{"provider":"Microsoft - App Configuration","resource":"Configuration Store","operation":"Delete Configuration - Store","description":"Deletes a configuration store."},"properties":null},{"name":"Microsoft.AppConfiguration/configurationStores/ListKeys/action","isDataAction":false,"display":{"provider":"Microsoft - App Configuration","resource":"Configuration Store","operation":"List Configuration - Store API Keys","description":"Lists the API keys for the specified configuration - store."},"properties":null},{"name":"Microsoft.AppConfiguration/configurationStores/RegenerateKey/action","isDataAction":false,"display":{"provider":"Microsoft - App Configuration","resource":"Configuration Store","operation":"Regenerate - Configuration Store API Key","description":"Regenerates of the API key''s - for the specified configuration store."},"properties":null},{"name":"Microsoft.AppConfiguration/configurationStores/ListKeyValue/action","isDataAction":false,"display":{"provider":"Microsoft - App Configuration","resource":"Configuration Store","operation":"List Configuration - Store Key-Value","description":"Lists a key-value for the specified configuration - store."},"properties":null},{"name":"Microsoft.AppConfiguration/configurationStores/eventGridFilters/read","isDataAction":false,"display":{"provider":"Microsoft - App Configuration","resource":"Configuration Store Event Grid Filter","operation":"Get - Configuration Store Event Grid Filter or List Configuration Store Event Grid - Filters","description":"Gets the properties of the specified configuration - store event grid filter or lists all the configuration store event grid filters - under the specified configuration store."},"properties":null},{"name":"Microsoft.AppConfiguration/configurationStores/eventGridFilters/write","isDataAction":false,"display":{"provider":"Microsoft - App Configuration","resource":"Configuration Store Event Grid Filter","operation":"Create - or Update Configuration Store Event Grid Filter","description":"Create or - update a configuration store event grid filter with the specified parameters."},"properties":null},{"name":"Microsoft.AppConfiguration/configurationStores/eventGridFilters/delete","isDataAction":false,"display":{"provider":"Microsoft - App Configuration","resource":"Configuration Store Event Grid Filter","operation":"Delete - Configuration Store Event Grid Filter","description":"Deletes a configuration - store event grid filter."},"properties":null},{"origin":"System","name":"Microsoft.AppConfiguration/configurationStores/providers/Microsoft.Insights/metricDefinitions/read","isDataAction":false,"display":{"provider":"Microsoft - App Configuration","resource":"Microsoft App Configuration Metric Definition.","operation":"Read - Configuration Store Metric Definitions","description":"Retrieve all metric - definitions for Microsoft App Configuration."},"properties":{"serviceSpecification":{"metricSpecifications":[{"name":"HttpIncomingRequestCount","displayName":"HttpIncomingRequestCount","displayDescription":"Total - number of incoming http requests.","unit":"Count","aggregationType":"Count","internalMetricName":"HttpIncomingRequestCount","dimensions":[{"name":"StatusCode","internalName":"StatusCode","displayName":"HttpStatusCode"},{"name":"Authentication","internalName":"Authentication","displayName":"AuthenticationScheme"}]},{"name":"HttpIncomingRequestDuration","displayName":"HttpIncomingRequestDuration","displayDescription":"Latency - on an http request.","unit":"Count","aggregationType":"Average","internalMetricName":"HttpIncomingRequestDuration","dimensions":[{"name":"StatusCode","internalName":"StatusCode","displayName":"HttpStatusCode"},{"name":"Authentication","internalName":"Authentication","displayName":"AuthenticationScheme"}]},{"name":"ThrottledHttpRequestCount","displayName":"ThrottledHttpRequestCount","displayDescription":"Throttled - http requests.","unit":"Count","aggregationType":"Count","internalMetricName":"ThrottledHttpRequestCount"}]}}},{"origin":"System","name":"Microsoft.AppConfiguration/configurationStores/providers/Microsoft.Insights/diagnosticSettings/read","isDataAction":false,"display":{"provider":"Microsoft - App Configuration","resource":"Configuration Store","operation":"Read Configuration - Store Diagnostic Settings","description":"Read all Diagnostic Settings values - for a Configuration Store."},"properties":null},{"origin":"System","name":"Microsoft.AppConfiguration/configurationStores/providers/Microsoft.Insights/diagnosticSettings/write","isDataAction":false,"display":{"provider":"Microsoft - App Configuration","resource":"Configuration Store","operation":"Write Configuration - Store Diagnostic Settings","description":"Write/Overwrite Diagnostic Settings - for Microsoft App Configuration."},"properties":null},{"name":"Microsoft.AppConfiguration/configurationStores/providers/Microsoft.Insights/logDefinitions/read","isDataAction":false,"display":{"provider":"Microsoft - App Configuration","resource":"Microsoft App Configuration Log Definition.","operation":"Read - Configuration Store Log Definitions","description":"Retrieve all log definitions - for Microsoft App Configuration."},"properties":{"serviceSpecification":{"metricSpecifications":null}}},{"name":"Microsoft.AppConfiguration/configurationStores/privateEndpointConnectionProxies/validate/action","isDataAction":false,"display":{"provider":"Microsoft - App Configuration","resource":"Private Endpoint Connection Proxy","operation":"Validate - Private Endpoint Connection Proxy","description":"Validate a private endpoint - connection proxy under the specified configuration store."},"properties":null},{"name":"Microsoft.AppConfiguration/configurationStores/privateEndpointConnectionProxies/read","isDataAction":false,"display":{"provider":"Microsoft - App Configuration","resource":"Private Endpoint Connection Proxy","operation":"Get - Private Endpoint Connection Proxy","description":"Get a private endpoint connection - proxy under the specified configuration store."},"properties":null},{"name":"Microsoft.AppConfiguration/configurationStores/privateEndpointConnectionProxies/write","isDataAction":false,"display":{"provider":"Microsoft - App Configuration","resource":"Private Endpoint Connection Proxy","operation":"Create - or Update Private Endpoint Connection Proxy","description":"Create or update - a private endpoint connection proxy under the specified configuration store."},"properties":null},{"name":"Microsoft.AppConfiguration/configurationStores/privateEndpointConnectionProxies/delete","isDataAction":false,"display":{"provider":"Microsoft - App Configuration","resource":"Private Endpoint Connection Proxy","operation":"Delete - Private Endpoint Connection Proxy","description":"Delete a private endpoint - connection proxy under the specified configuration store."},"properties":null},{"name":"Microsoft.AppConfiguration/configurationStores/privateEndpointConnections/read","isDataAction":false,"display":{"provider":"Microsoft - App Configuration","resource":"Private Endpoint Connection","operation":"Get - Private Endpoint Connection or List Private Endpoint Connections","description":"Get - a private endpoint connection or list private endpoint connections under the - specified configuration store."},"properties":null},{"name":"Microsoft.AppConfiguration/configurationStores/privateEndpointConnections/write","isDataAction":false,"display":{"provider":"Microsoft - App Configuration","resource":"Private Endpoint Connection","operation":"Approve - or Reject Private Endpoint Connection","description":"Approve or reject a - private endpoint connection under the specified configuration store."},"properties":null},{"name":"Microsoft.AppConfiguration/configurationStores/privateEndpointConnections/delete","isDataAction":false,"display":{"provider":"Microsoft - App Configuration","resource":"Private Endpoint Connection","operation":"Delete - Private Endpoint Connection","description":"Delete a private endpoint connection - under the specified configuration store."},"properties":null},{"name":"Microsoft.AppConfiguration/configurationStores/PrivateEndpointConnectionsApproval/action","isDataAction":false,"display":{"provider":"Microsoft - App Configuration","resource":"Private Endpoint Connection","operation":"Auto-Approve - Private Endpoint Connection","description":"Auto-Approve a private endpoint - connection under the specified configuration store."},"properties":null},{"name":"Microsoft.AppConfiguration/configurationStores/privateLinkResources/read","isDataAction":false,"display":{"provider":"Microsoft - App Configuration","resource":"Private Link","operation":"List Private Link","description":"Lists - all the private link resources under the specified configuration store."},"properties":null},{"name":"Microsoft.AppConfiguration/configurationStores/keyValues/read","isDataAction":true,"display":{"provider":"Microsoft - App Configuration","resource":"Key-Value","operation":"Read Key-Value","description":"Reads - a key-value from the configuration store."},"properties":null},{"name":"Microsoft.AppConfiguration/configurationStores/keyValues/write","isDataAction":true,"display":{"provider":"Microsoft - App Configuration","resource":"Key-Value","operation":"Write Key-Value","description":"Creates - or updates a key-value in the configuration store."},"properties":null},{"name":"Microsoft.AppConfiguration/configurationStores/keyValues/delete","isDataAction":true,"display":{"provider":"Microsoft - App Configuration","resource":"Key-Value","operation":"Delete Key-Value","description":"Deletes - an existing key-value from the configuration store."},"properties":null}],"nextLink":null}' - headers: - cache-control: no-cache - content-type: application/json; charset=utf-8 - date: Wed, 09 Jun 2021 17:00:39 GMT - expires: '-1' - pragma: no-cache - server: nginx/1.17.10 - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - vary: Accept-Encoding,Accept-Encoding - x-content-type-options: nosniff - status: - code: 200 - message: OK - url: https://management.azure.com/providers/Microsoft.AppConfiguration/operations?api-version=2020-06-01 -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-mgmt-appconfiguration/1.0.1 Python/3.8.6 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.AppConfiguration/configurationStores?api-version=2020-06-01 - response: - body: - string: '{"value":[{"type":"Microsoft.AppConfiguration/configurationStores","location":"westus","properties":{"provisioningState":"Succeeded","creationDate":"2021-06-09T16:59:23+00:00","endpoint":"https://configurationc4331807.azconfig.io","encryption":{"keyVaultProperties":null},"privateEndpointConnections":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.AppConfiguration/configurationStores/configurationc4331807/privateEndpointConnections/myconnection","name":"myconnection","type":"Microsoft.AppConfiguration/configurationStores/privateEndpointConnections","properties":{"provisioningState":"Succeeded","privateEndpoint":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/privateEndpoints/endpointxyz"},"privateLinkServiceConnectionState":{"status":"Approved","description":"Auto-Approved","actionsRequired":"None"}}}]},"sku":{"name":"standard"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.AppConfiguration/configurationStores/configurationc4331807","name":"configurationc4331807","tags":{"my_tag":"myTagValue"}}],"nextLink":"https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.AppConfiguration/configurationStores?api-version=2020-06-01&$skipToken=configurationc4331807"}' - headers: - cache-control: no-cache - content-type: application/json; charset=utf-8 - date: Wed, 09 Jun 2021 17:00:39 GMT - expires: '-1' - link: ; - rel="next" - pragma: no-cache - server: nginx/1.17.10 - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - vary: Accept-Encoding,Accept-Encoding - x-content-type-options: nosniff - status: - code: 200 - message: OK - url: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-6bzgooibacfmnofdbd4qho75rtn2xas4b4jcs55xhpok5kurubmkgoe2wexgssgpf6cmpqmj72o/providers/Microsoft.AppConfiguration/configurationStores?api-version=2020-06-01 -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-mgmt-appconfiguration/1.0.1 Python/3.8.6 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.AppConfiguration/configurationStores?api-version=2020-06-01&$skipToken=configurationc4331807 - response: - body: - string: '{"value":[],"nextLink":null}' - headers: - cache-control: no-cache - content-type: application/json; charset=utf-8 - date: Wed, 09 Jun 2021 17:00:40 GMT - expires: '-1' - pragma: no-cache - server: nginx/1.17.10 - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - vary: Accept-Encoding - x-content-type-options: nosniff - status: - code: 200 - message: OK - url: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-6bzgooibacfmnofdbd4qho75rtn2xas4b4jcs55xhpok5kurubmkgoe2wexgssgpf6cmpqmj72o/providers/Microsoft.AppConfiguration/configurationStores?api-version=2020-06-01&$skipToken=configurationc4331807 -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-mgmt-appconfiguration/1.0.1 Python/3.8.6 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.AppConfiguration/configurationStores?api-version=2020-06-01 - response: - body: - string: '{"value":[{"type":"Microsoft.AppConfiguration/configurationStores","location":"westus","properties":{"provisioningState":"Succeeded","creationDate":"2021-06-09T16:59:23+00:00","endpoint":"https://configurationc4331807.azconfig.io","encryption":{"keyVaultProperties":null},"privateEndpointConnections":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.AppConfiguration/configurationStores/configurationc4331807/privateEndpointConnections/myconnection","name":"myconnection","type":"Microsoft.AppConfiguration/configurationStores/privateEndpointConnections","properties":{"provisioningState":"Succeeded","privateEndpoint":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/privateEndpoints/endpointxyz"},"privateLinkServiceConnectionState":{"status":"Approved","description":"Auto-Approved","actionsRequired":"None"}}}]},"sku":{"name":"standard"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.AppConfiguration/configurationStores/configurationc4331807","name":"configurationc4331807","tags":{"my_tag":"myTagValue"}},{"type":"Microsoft.AppConfiguration/configurationStores","location":"westus","properties":{"provisioningState":"Succeeded","creationDate":"2021-06-09T16:59:05+00:00","endpoint":"https://configurationcae61c3c.azconfig.io","encryption":{"keyVaultProperties":null},"privateEndpointConnections":null},"sku":{"name":"standard"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-fnk37ovichhncuntzyj2nivxgrw4ztbnmh5p4z7e26idoty7waunftcku7674tpymm4l33oka5f/providers/Microsoft.AppConfiguration/configurationStores/configurationcae61c3c","name":"configurationcae61c3c","tags":{"my_tag":"myTagValue"}},{"type":"Microsoft.AppConfiguration/configurationStores","location":"westus2","properties":{"provisioningState":"Succeeded","creationDate":"2020-11-09T22:19:47+00:00","endpoint":"https://benappconfiguration-azconfig-net.azconfig.io","encryption":{"keyVaultProperties":null},"privateEndpointConnections":null},"sku":{"name":"standard"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg-benappconfiguration/providers/Microsoft.AppConfiguration/configurationStores/benappconfiguration-azconfig-net","name":"benappconfiguration-azconfig-net","tags":{}},{"type":"Microsoft.AppConfiguration/configurationStores","location":"westus2","properties":{"provisioningState":"Succeeded","creationDate":"2021-02-26T23:57:52+00:00","endpoint":"https://perf-appconfig.azconfig.io","encryption":{"keyVaultProperties":null},"privateEndpointConnections":null},"sku":{"name":"free"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/xiangyan-perf/providers/Microsoft.AppConfiguration/configurationStores/perf-appconfig","name":"perf-appconfig","tags":{}},{"type":"Microsoft.AppConfiguration/configurationStores","location":"westus2","properties":{"provisioningState":"Succeeded","creationDate":"2021-03-02T14:51:35+00:00","endpoint":"https://seankane-azconfig-net.azconfig.io","encryption":{"keyVaultProperties":null},"privateEndpointConnections":null},"sku":{"name":"standard"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg-seankane/providers/Microsoft.AppConfiguration/configurationStores/seankane-azconfig-net","name":"seankane-azconfig-net","tags":{}},{"type":"Microsoft.AppConfiguration/configurationStores","location":"westus2","properties":{"provisioningState":"Succeeded","creationDate":"2020-10-15T00:39:01+00:00","endpoint":"https://srnagarapi-learn-azconfig-java.azconfig.io","encryption":{"keyVaultProperties":null},"privateEndpointConnections":null},"sku":{"name":"standard"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg-srnagarapi-learn/providers/Microsoft.AppConfiguration/configurationStores/srnagarapi-learn-azconfig-java","name":"srnagarapi-learn-azconfig-java","tags":{}}],"nextLink":"https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.AppConfiguration/configurationStores?api-version=2020-06-01&%24skiptoken=1ZDBSgMxFEX%2fJYgrM0mmkrYDRYq409VUXL9JX2qcThLeywzS0n93ii70E1xeLufCuWcR8bM8h9izaM7i7andvbaiEe%2blZG6UGiDCAQeMpYLTSFi5NCgeO3YUcgkpsqrd3polgjQra%2bW97Yxca1xI732nV0vs%2fLpTmdIU9kisXoKjxMmXapvzY4o%2bHEaC65Ryv1NbEiE%2fQA5ymrm539S61lJbqc3tDfch71KPcfOHcoDWuIUTdz8u9f%2bSYZr%2fBrpaHxEoSjh9%2b8kPmEBcLl8%3d"}' - headers: - cache-control: no-cache - content-length: '1395' - content-type: application/json; charset=utf-8 - date: Wed, 09 Jun 2021 17:00:40 GMT - expires: '-1' - pragma: no-cache - strict-transport-security: max-age=31536000; includeSubDomains - vary: Accept-Encoding - x-content-type-options: nosniff - x-ms-original-request-ids: fa90e1e1-0025-4471-8e05-adfe626427e2 - status: - code: 200 - message: OK - url: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.AppConfiguration/configurationStores?api-version=2020-06-01 -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-mgmt-appconfiguration/1.0.1 Python/3.8.6 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.AppConfiguration/configurationStores?api-version=2020-06-01&$skiptoken=1ZDBSgMxFEX/JYgrM0mmkrYDRYq409VUXL9JX2qcThLeywzS0n93ii70E1xeLufCuWcR8bM8h9izaM7i7andvbaiEe%2BlZG6UGiDCAQeMpYLTSFi5NCgeO3YUcgkpsqrd3polgjQra%2BW97Yxca1xI732nV0vs/LpTmdIU9kisXoKjxMmXapvzY4o%2BHEaC65Ryv1NbEiE/QA5ymrm539S61lJbqc3tDfch71KPcfOHcoDWuIUTdz8u9f%2BSYZr/BrpaHxEoSjh9%2B8kPmEBcLl8%3D - response: - body: - string: '{"value":[]}' - headers: - cache-control: no-cache - content-length: '133' - content-type: application/json; charset=utf-8 - date: Wed, 09 Jun 2021 17:00:40 GMT - expires: '-1' - pragma: no-cache - strict-transport-security: max-age=31536000; includeSubDomains - vary: Accept-Encoding - x-content-type-options: nosniff - x-ms-original-request-ids: 610fe252-a612-44c6-a3f3-7fba6ee318c8 - status: - code: 200 - message: OK - url: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.AppConfiguration/configurationStores?api-version=2020-06-01&$skiptoken=1ZDBSgMxFEX/JYgrM0mmkrYDRYq409VUXL9JX2qcThLeywzS0n93ii70E1xeLufCuWcR8bM8h9izaM7i7andvbaiEe%2BlZG6UGiDCAQeMpYLTSFi5NCgeO3YUcgkpsqrd3polgjQra%2BW97Yxca1xI732nV0vs/LpTmdIU9kisXoKjxMmXapvzY4o%2BHEaC65Ryv1NbEiE/QA5ymrm539S61lJbqc3tDfch71KPcfOHcoDWuIUTdz8u9f%2BSYZr/BrpaHxEoSjh9%2B8kPmEBcLl8%3D -- request: - body: '{"sku": {"name": "Standard"}, "tags": {"category": "Marketing"}}' - headers: - Accept: - - application/json - Content-Length: - - '64' - Content-Type: - - application/json - User-Agent: - - azsdk-python-mgmt-appconfiguration/1.0.1 Python/3.8.6 (Windows-10-10.0.19041-SP0) - method: PATCH - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.AppConfiguration/configurationStores/configurationc4331807?api-version=2020-06-01 - response: - body: - string: '{"type":"Microsoft.AppConfiguration/configurationStores","location":"westus","properties":{"provisioningState":"Succeeded","creationDate":"2021-06-09T16:59:23+00:00","endpoint":"https://configurationc4331807.azconfig.io","encryption":{"keyVaultProperties":null},"privateEndpointConnections":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.AppConfiguration/configurationStores/configurationc4331807/privateEndpointConnections/myconnection","name":"myconnection","type":"Microsoft.AppConfiguration/configurationStores/privateEndpointConnections","properties":{"provisioningState":"Succeeded","privateEndpoint":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.Network/privateEndpoints/endpointxyz"},"privateLinkServiceConnectionState":{"status":"Approved","description":"Auto-Approved","actionsRequired":"None"}}}]},"sku":{"name":"standard"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.AppConfiguration/configurationStores/configurationc4331807","name":"configurationc4331807","tags":{"category":"Marketing"}}' - headers: - cache-control: no-cache - content-type: application/json; charset=utf-8 - date: Wed, 09 Jun 2021 17:00:42 GMT - etag: W/"1f01c334-0000-0700-0000-60c0f3b90000" - expires: '-1' - pragma: no-cache - server: nginx/1.17.10 - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - vary: Accept-Encoding,Accept-Encoding - x-content-type-options: nosniff - x-ms-ratelimit-remaining-subscription-writes: '1195' - status: - code: 200 - message: OK - url: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-6bzgooibacfmnofdbd4qho75rtn2xas4b4jcs55xhpok5kurubmkgoe2wexgssgpf6cmpqmj72o/providers/Microsoft.AppConfiguration/configurationStores/configurationc4331807?api-version=2020-06-01 -- request: - body: '{"name": "contoso", "type": "Microsoft.AppConfiguration/configurationStores"}' - headers: - Accept: - - application/json - Content-Length: - - '77' - Content-Type: - - application/json - User-Agent: - - azsdk-python-mgmt-appconfiguration/1.0.1 Python/3.8.6 (Windows-10-10.0.19041-SP0) - method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.AppConfiguration/checkNameAvailability?api-version=2020-06-01 - response: - body: - string: '{"nameAvailable":true,"message":"The specified name is available.","reason":null}' - headers: - cache-control: no-cache - content-type: application/json; charset=utf-8 - date: Wed, 09 Jun 2021 17:00:43 GMT - expires: '-1' - pragma: no-cache - server: nginx/1.17.10 - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - vary: Accept-Encoding - x-content-type-options: nosniff - status: - code: 200 - message: OK - url: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.AppConfiguration/checkNameAvailability?api-version=2020-06-01 -- request: - body: '{"name": "contoso", "type": "Microsoft.AppConfiguration/configurationStores"}' - headers: - Accept: - - application/json - Content-Length: - - '77' - Content-Type: - - application/json - User-Agent: - - azsdk-python-mgmt-appconfiguration/1.0.1 Python/3.8.6 (Windows-10-10.0.19041-SP0) - method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.AppConfiguration/checkNameAvailability?api-version=2020-06-01 - response: - body: - string: '{"nameAvailable":true,"message":"The specified name is available.","reason":null}' - headers: - cache-control: no-cache - content-type: application/json; charset=utf-8 - date: Wed, 09 Jun 2021 17:00:43 GMT - expires: '-1' - pragma: no-cache - server: nginx/1.17.10 - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - vary: Accept-Encoding - x-content-type-options: nosniff - status: - code: 200 - message: OK - url: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.AppConfiguration/checkNameAvailability?api-version=2020-06-01 -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-mgmt-appconfiguration/1.0.1 Python/3.8.6 (Windows-10-10.0.19041-SP0) - method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.AppConfiguration/configurationStores/configurationc4331807/privateEndpointConnections/myconnection?api-version=2020-06-01 - response: - body: - string: '{"type":"Microsoft.AppConfiguration/configurationStores/privateEndpointConnections","properties":{"provisioningState":"Deleting","privateEndpoint":null,"privateLinkServiceConnectionState":null},"id":null,"name":"myconnection"}' - headers: - azure-asyncoperation: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.AppConfiguration/locations/westus/operationsStatus/fe3f1c6e-c468-8b99-b5fb-5299eec238ca?api-version=2020-06-01 - cache-control: no-cache - content-length: '226' - content-type: application/json; charset=utf-8 - date: Wed, 09 Jun 2021 17:00:43 GMT - expires: '-1' - pragma: no-cache - server: nginx/1.17.10 - strict-transport-security: max-age=31536000; includeSubDomains - x-content-type-options: nosniff - x-ms-ratelimit-remaining-subscription-deletes: '14997' - status: - code: 202 - message: Accepted - url: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-6bzgooibacfmnofdbd4qho75rtn2xas4b4jcs55xhpok5kurubmkgoe2wexgssgpf6cmpqmj72o/providers/Microsoft.AppConfiguration/configurationStores/configurationc4331807/privateEndpointConnections/myconnection?api-version=2020-06-01 -- request: - body: null - headers: - User-Agent: - - azsdk-python-mgmt-appconfiguration/1.0.1 Python/3.8.6 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.AppConfiguration/locations/westus/operationsStatus/fe3f1c6e-c468-8b99-b5fb-5299eec238ca?api-version=2020-06-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.AppConfiguration/locations/westus/operationsStatus/fe3f1c6e-c468-8b99-b5fb-5299eec238ca","name":"fe3f1c6e-c468-8b99-b5fb-5299eec238ca","status":"Deleting","error":null}' - headers: - azure-asyncoperation: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.AppConfiguration/locations/westus/operationsStatus/fe3f1c6e-c468-8b99-b5fb-5299eec238ca?api-version=2020-06-01 - cache-control: no-cache - content-type: application/json; charset=utf-8 - date: Wed, 09 Jun 2021 17:00:53 GMT - expires: '-1' - pragma: no-cache - server: nginx/1.17.10 - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - vary: Accept-Encoding - x-content-type-options: nosniff - status: - code: 200 - message: OK - url: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.AppConfiguration/locations/westus/operationsStatus/fe3f1c6e-c468-8b99-b5fb-5299eec238ca?api-version=2020-06-01 -- request: - body: null - headers: - User-Agent: - - azsdk-python-mgmt-appconfiguration/1.0.1 Python/3.8.6 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.AppConfiguration/locations/westus/operationsStatus/fe3f1c6e-c468-8b99-b5fb-5299eec238ca?api-version=2020-06-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.AppConfiguration/locations/westus/operationsStatus/fe3f1c6e-c468-8b99-b5fb-5299eec238ca","name":"fe3f1c6e-c468-8b99-b5fb-5299eec238ca","status":"Deleting","error":null}' - headers: - azure-asyncoperation: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.AppConfiguration/locations/westus/operationsStatus/fe3f1c6e-c468-8b99-b5fb-5299eec238ca?api-version=2020-06-01 - cache-control: no-cache - content-type: application/json; charset=utf-8 - date: Wed, 09 Jun 2021 17:01:03 GMT - expires: '-1' - pragma: no-cache - server: nginx/1.17.10 - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - vary: Accept-Encoding - x-content-type-options: nosniff - status: - code: 200 - message: OK - url: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.AppConfiguration/locations/westus/operationsStatus/fe3f1c6e-c468-8b99-b5fb-5299eec238ca?api-version=2020-06-01 -- request: - body: null - headers: - User-Agent: - - azsdk-python-mgmt-appconfiguration/1.0.1 Python/3.8.6 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.AppConfiguration/locations/westus/operationsStatus/fe3f1c6e-c468-8b99-b5fb-5299eec238ca?api-version=2020-06-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.AppConfiguration/locations/westus/operationsStatus/fe3f1c6e-c468-8b99-b5fb-5299eec238ca","name":"fe3f1c6e-c468-8b99-b5fb-5299eec238ca","status":"Succeeded","error":null}' - headers: - azure-asyncoperation: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.AppConfiguration/locations/westus/operationsStatus/fe3f1c6e-c468-8b99-b5fb-5299eec238ca?api-version=2020-06-01 - cache-control: no-cache - content-type: application/json; charset=utf-8 - date: Wed, 09 Jun 2021 17:01:13 GMT - expires: '-1' - pragma: no-cache - server: nginx/1.17.10 - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - vary: Accept-Encoding - x-content-type-options: nosniff - status: - code: 200 - message: OK - url: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.AppConfiguration/locations/westus/operationsStatus/fe3f1c6e-c468-8b99-b5fb-5299eec238ca?api-version=2020-06-01 -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-mgmt-appconfiguration/1.0.1 Python/3.8.6 (Windows-10-10.0.19041-SP0) - method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.AppConfiguration/configurationStores/configurationc4331807?api-version=2020-06-01 - response: - body: - string: '' - headers: - cache-control: no-cache - content-length: '0' - date: Wed, 09 Jun 2021 17:01:15 GMT - expires: '-1' - pragma: no-cache - server: nginx/1.17.10 - strict-transport-security: max-age=31536000; includeSubDomains - x-content-type-options: nosniff - x-ms-ratelimit-remaining-subscription-deletes: '14996' - status: - code: 200 - message: OK - url: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-6bzgooibacfmnofdbd4qho75rtn2xas4b4jcs55xhpok5kurubmkgoe2wexgssgpf6cmpqmj72o/providers/Microsoft.AppConfiguration/configurationStores/configurationc4331807?api-version=2020-06-01 -version: 1 diff --git a/sdk/appconfiguration/azure-mgmt-appconfiguration/tests/recordings/test_cli_mgmt_appconfiguration_async.test_appconfiguration_list_key_values.yaml b/sdk/appconfiguration/azure-mgmt-appconfiguration/tests/recordings/test_cli_mgmt_appconfiguration_async.test_appconfiguration_list_key_values.yaml deleted file mode 100644 index ab7d1db25774..000000000000 --- a/sdk/appconfiguration/azure-mgmt-appconfiguration/tests/recordings/test_cli_mgmt_appconfiguration_async.test_appconfiguration_list_key_values.yaml +++ /dev/null @@ -1,245 +0,0 @@ -interactions: -- request: - body: '{"location": "westus", "tags": {"my_tag": "myTagValue"}, "sku": {"name": - "Standard"}}' - headers: - Accept: - - application/json - Content-Length: - - '85' - Content-Type: - - application/json - User-Agent: - - azsdk-python-mgmt-appconfiguration/1.0.1 Python/3.8.6 (Windows-10-10.0.19041-SP0) - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.AppConfiguration/configurationStores/configuration7d301eb9?api-version=2020-06-01 - response: - body: - string: '{"type":"Microsoft.AppConfiguration/configurationStores","location":"westus","properties":{"provisioningState":"Creating","creationDate":"2021-06-09T17:01:22.7980658+00:00","endpoint":null,"encryption":null,"privateEndpointConnections":null},"sku":{"name":"Standard"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.AppConfiguration/configurationStores/configuration7d301eb9","name":"configuration7d301eb9","tags":{}}' - headers: - azure-asyncoperation: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.AppConfiguration/locations/westus/operationsStatus/bf035644-e7ec-d507-2637-8c49bad35da6?api-version=2020-06-01 - cache-control: no-cache - content-length: '543' - content-type: application/json; charset=utf-8 - date: Wed, 09 Jun 2021 17:01:23 GMT - expires: '-1' - pragma: no-cache - server: nginx/1.17.10 - strict-transport-security: max-age=31536000; includeSubDomains - x-content-type-options: nosniff - x-ms-ratelimit-remaining-subscription-writes: '1166' - status: - code: 201 - message: Created - url: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-zku4tnzciusv2p2uo2bk5tq2tqavcbxd3yugtiltfs6oadcwyfzigt7yvrgt4c6bsmdgteb7h72/providers/Microsoft.AppConfiguration/configurationStores/configuration7d301eb9?api-version=2020-06-01 -- request: - body: null - headers: - User-Agent: - - azsdk-python-mgmt-appconfiguration/1.0.1 Python/3.8.6 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.AppConfiguration/locations/westus/operationsStatus/bf035644-e7ec-d507-2637-8c49bad35da6?api-version=2020-06-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.AppConfiguration/locations/westus/operationsStatus/bf035644-e7ec-d507-2637-8c49bad35da6","name":"bf035644-e7ec-d507-2637-8c49bad35da6","status":"Succeeded","error":null}' - headers: - azure-asyncoperation: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.AppConfiguration/locations/westus/operationsStatus/bf035644-e7ec-d507-2637-8c49bad35da6?api-version=2020-06-01 - cache-control: no-cache - content-type: application/json; charset=utf-8 - date: Wed, 09 Jun 2021 17:01:33 GMT - expires: '-1' - pragma: no-cache - server: nginx/1.17.10 - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - vary: Accept-Encoding - x-content-type-options: nosniff - status: - code: 200 - message: OK - url: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.AppConfiguration/locations/westus/operationsStatus/bf035644-e7ec-d507-2637-8c49bad35da6?api-version=2020-06-01 -- request: - body: null - headers: - User-Agent: - - azsdk-python-mgmt-appconfiguration/1.0.1 Python/3.8.6 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.AppConfiguration/configurationStores/configuration7d301eb9?api-version=2020-06-01 - response: - body: - string: '{"type":"Microsoft.AppConfiguration/configurationStores","location":"westus","properties":{"provisioningState":"Succeeded","creationDate":"2021-06-09T17:01:24+00:00","endpoint":"https://configuration7d301eb9.azconfig.io","encryption":{"keyVaultProperties":null},"privateEndpointConnections":null},"sku":{"name":"standard"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.AppConfiguration/configurationStores/configuration7d301eb9","name":"configuration7d301eb9","tags":{"my_tag":"myTagValue"}}' - headers: - cache-control: no-cache - content-type: application/json; charset=utf-8 - date: Wed, 09 Jun 2021 17:01:33 GMT - etag: W/"0c0001c9-0000-0700-0000-60c0f3e30000" - expires: '-1' - pragma: no-cache - server: nginx/1.17.10 - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - vary: Accept-Encoding,Accept-Encoding - x-content-type-options: nosniff - status: - code: 200 - message: OK - url: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-zku4tnzciusv2p2uo2bk5tq2tqavcbxd3yugtiltfs6oadcwyfzigt7yvrgt4c6bsmdgteb7h72/providers/Microsoft.AppConfiguration/configurationStores/configuration7d301eb9?api-version=2020-06-01 -- request: - body: null - headers: - Accept: - - application/json - User-Agent: - - azsdk-python-mgmt-appconfiguration/1.0.1 Python/3.8.6 (Windows-10-10.0.19041-SP0) - method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.AppConfiguration/configurationStores/configuration7d301eb9/ListKeys?api-version=2020-06-01 - response: - body: - string: '{"value":[{"id":"N0ZA-l1-s0:KwJU9mzvyESfGZAQhsT4","name":"Primary","value":"aWKxcxE/8CPp6wAGMobS4fj0ZbOeh5RnvUL74VHDAmE=","connectionString":"Endpoint=https://configuration7d301eb9.azconfig.io;Id=N0ZA-l1-s0:KwJU9mzvyESfGZAQhsT4;Secret=aWKxcxE/8CPp6wAGMobS4fj0ZbOeh5RnvUL74VHDAmE=","lastModified":"2021-06-09T17:01:22+00:00","readOnly":false},{"id":"Wwak-l1-s0:pa+GqWvPXUbGsK10M0pm","name":"Secondary","value":"6ZuNktOaHy5maFbhtNpumZGfmaxWDtGzwbm3X3ne9Do=","connectionString":"Endpoint=https://configuration7d301eb9.azconfig.io;Id=Wwak-l1-s0:pa+GqWvPXUbGsK10M0pm;Secret=6ZuNktOaHy5maFbhtNpumZGfmaxWDtGzwbm3X3ne9Do=","lastModified":"2021-06-09T17:01:22+00:00","readOnly":false},{"id":"rbu2-l1-s0:nbkGqQWYhUJn3o26T1I7","name":"Primary - Read Only","value":"WiwdUtZ7OwwhTRgFBZ3/5Cc3V6S+HL/FkfsQeCKT99E=","connectionString":"Endpoint=https://configuration7d301eb9.azconfig.io;Id=rbu2-l1-s0:nbkGqQWYhUJn3o26T1I7;Secret=WiwdUtZ7OwwhTRgFBZ3/5Cc3V6S+HL/FkfsQeCKT99E=","lastModified":"2021-06-09T17:01:22+00:00","readOnly":true},{"id":"Cw6F-l1-s0:Jv8AD5txroVJJ6/vYXiR","name":"Secondary - Read Only","value":"GUzSTA+UWwa/P+teeeWlV0AdYzRpmTEpgN/l2xsPMm4=","connectionString":"Endpoint=https://configuration7d301eb9.azconfig.io;Id=Cw6F-l1-s0:Jv8AD5txroVJJ6/vYXiR;Secret=GUzSTA+UWwa/P+teeeWlV0AdYzRpmTEpgN/l2xsPMm4=","lastModified":"2021-06-09T17:01:22+00:00","readOnly":true}],"nextLink":null}' - headers: - cache-control: no-cache - content-type: application/json; charset=utf-8 - date: Wed, 09 Jun 2021 17:01:33 GMT - expires: '-1' - pragma: no-cache - server: nginx/1.17.10 - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - vary: Accept-Encoding,Accept-Encoding - x-content-type-options: nosniff - x-ms-ratelimit-remaining-subscription-writes: '1199' - status: - code: 200 - message: OK - url: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-zku4tnzciusv2p2uo2bk5tq2tqavcbxd3yugtiltfs6oadcwyfzigt7yvrgt4c6bsmdgteb7h72/providers/Microsoft.AppConfiguration/configurationStores/configuration7d301eb9/ListKeys?api-version=2020-06-01 -- request: - body: '{"id": "N0ZA-l1-s0:KwJU9mzvyESfGZAQhsT4"}' - headers: - Accept: - - application/json - Content-Length: - - '41' - Content-Type: - - application/json - User-Agent: - - azsdk-python-mgmt-appconfiguration/1.0.1 Python/3.8.6 (Windows-10-10.0.19041-SP0) - method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.AppConfiguration/configurationStores/configuration7d301eb9/RegenerateKey?api-version=2020-06-01 - response: - body: - string: '{"id":"r+4K-l1-s0:9bU/j5d6DOJl5eO4JvkE","name":"Primary","value":"ni39dGZpKw0iACgiI+8+BAUYcHlMNbiE+VzgyeELjPY=","connectionString":"Endpoint=https://configuration7d301eb9.azconfig.io;Id=r+4K-l1-s0:9bU/j5d6DOJl5eO4JvkE;Secret=ni39dGZpKw0iACgiI+8+BAUYcHlMNbiE+VzgyeELjPY=","lastModified":"2021-06-09T17:01:33+00:00","readOnly":false}' - headers: - cache-control: no-cache - content-type: application/json; charset=utf-8 - date: Wed, 09 Jun 2021 17:01:33 GMT - expires: '-1' - pragma: no-cache - server: nginx/1.17.10 - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - vary: Accept-Encoding,Accept-Encoding - x-content-type-options: nosniff - x-ms-ratelimit-remaining-subscription-writes: '1198' - status: - code: 200 - message: OK - url: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-zku4tnzciusv2p2uo2bk5tq2tqavcbxd3yugtiltfs6oadcwyfzigt7yvrgt4c6bsmdgteb7h72/providers/Microsoft.AppConfiguration/configurationStores/configuration7d301eb9/RegenerateKey?api-version=2020-06-01 -- request: - body: '{"key": "PYTHON_UNIT_test_key_a6af8952-54a6-11e9-b600-2816a84d0309", "label": - "test_label1_1d7b2b28-549e-11e9-b51c-2816a84d0309", "content_type": "test content - type", "value": "test value", "tags": {"tag1": "tag1", "tag2": "tag2"}}' - headers: - Accept: - - application/vnd.microsoft.appconfig.kv+json, application/json, application/problem+json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '231' - Content-Type: - - application/vnd.microsoft.appconfig.kv+json - If-None-Match: - - '*' - User-Agent: - - azsdk-python-appconfiguration/1.2.0b3 Python/3.8.6 (Windows-10-10.0.19041-SP0) - x-ms-content-sha256: - - 5b/E4qQlXHTRod+n+f+xjK6c/tRVR8uxoC62FjvGJPw= - x-ms-date: - - Jun, 09 2021 17:01:32.483938 GMT - method: PUT - uri: https://configuration7d301eb9.azconfig.io/kv/PYTHON_UNIT_test_key_a6af8952-54a6-11e9-b600-2816a84d0309?label=test_label1_1d7b2b28-549e-11e9-b51c-2816a84d0309&api-version=1.0 - response: - body: - string: '{"etag":"Su6ziOTd151rTtLUfURJgB1zX2C","key":"PYTHON_UNIT_test_key_a6af8952-54a6-11e9-b600-2816a84d0309","label":"test_label1_1d7b2b28-549e-11e9-b51c-2816a84d0309","content_type":"test - content type","value":"test value","tags":{"tag1":"tag1","tag2":"tag2"},"locked":false,"last_modified":"2021-06-09T17:01:34+00:00"}' - headers: - access-control-allow-credentials: - - 'true' - access-control-allow-origin: - - '*' - access-control-expose-headers: - - DNT, X-CustomHeader, Keep-Alive, User-Agent, X-Requested-With, If-Modified-Since, - Cache-Control, Content-Type, Authorization, x-ms-client-request-id, x-ms-useragent, - x-ms-content-sha256, x-ms-date, host, Accept, Accept-Datetime, Date, If-Match, - If-None-Match, Sync-Token, x-ms-return-client-request-id, ETag, Last-Modified, - Link, Memento-Datetime, retry-after-ms, x-ms-request-id, x-ms-client-session-id, - x-ms-effective-locale, WWW-Authenticate - connection: - - keep-alive - content-type: - - application/vnd.microsoft.appconfig.kv+json; charset=utf-8 - date: - - Wed, 09 Jun 2021 17:01:32 GMT - etag: - - '"Su6ziOTd151rTtLUfURJgB1zX2C"' - last-modified: - - Wed, 09 Jun 2021 17:01:34 GMT - server: - - openresty/1.17.8.2 - strict-transport-security: - - max-age=15724800; includeSubDomains - sync-token: - - zAJw6V16=Mzo1IzMwODY0NTI=;sn=3086452 - transfer-encoding: - - chunked - status: - code: 200 - message: OK -- request: - body: '{"key": "PYTHON_UNIT_test_key_a6af8952-54a6-11e9-b600-2816a84d0309", "label": - "test_label1_1d7b2b28-549e-11e9-b51c-2816a84d0309"}' - headers: - Accept: - - application/json - Content-Length: - - '129' - Content-Type: - - application/json - User-Agent: - - azsdk-python-mgmt-appconfiguration/1.0.1 Python/3.8.6 (Windows-10-10.0.19041-SP0) - method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgname/providers/Microsoft.AppConfiguration/configurationStores/configuration7d301eb9/listKeyValue?api-version=2020-06-01 - response: - body: - string: '{"key":"PYTHON_UNIT_test_key_a6af8952-54a6-11e9-b600-2816a84d0309","label":"test_label1_1d7b2b28-549e-11e9-b51c-2816a84d0309","value":"test - value","contentType":"test content type","eTag":"Su6ziOTd151rTtLUfURJgB1zX2C","lastModified":"2021-06-09T17:01:34+00:00","locked":false,"tags":{"tag1":"tag1","tag2":"tag2"}}' - headers: - cache-control: no-cache - content-type: application/json; charset=utf-8 - date: Wed, 09 Jun 2021 17:01:34 GMT - expires: '-1' - pragma: no-cache - server: nginx/1.17.10 - strict-transport-security: max-age=31536000; includeSubDomains - transfer-encoding: chunked - vary: Accept-Encoding,Accept-Encoding - x-content-type-options: nosniff - x-ms-ratelimit-remaining-subscription-writes: '1197' - status: - code: 200 - message: OK - url: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rgpy-zku4tnzciusv2p2uo2bk5tq2tqavcbxd3yugtiltfs6oadcwyfzigt7yvrgt4c6bsmdgteb7h72/providers/Microsoft.AppConfiguration/configurationStores/configuration7d301eb9/listKeyValue?api-version=2020-06-01 -version: 1 From f56c692db29990bb3c512166dee87d1e31299b88 Mon Sep 17 00:00:00 2001 From: Zed <601306339@qq.com> Date: Tue, 22 Jun 2021 09:26:55 +0800 Subject: [PATCH 4/6] test config --- .../tests/test_cli_mgmt_appconfiguration.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sdk/appconfiguration/azure-mgmt-appconfiguration/tests/test_cli_mgmt_appconfiguration.py b/sdk/appconfiguration/azure-mgmt-appconfiguration/tests/test_cli_mgmt_appconfiguration.py index a88421488ab5..782040b90ef2 100644 --- a/sdk/appconfiguration/azure-mgmt-appconfiguration/tests/test_cli_mgmt_appconfiguration.py +++ b/sdk/appconfiguration/azure-mgmt-appconfiguration/tests/test_cli_mgmt_appconfiguration.py @@ -121,6 +121,7 @@ def create_endpoint(self, group_name, vnet_name, sub_net, endpoint_name, conf_st return result.result() + @unittest.skip('hard to test') @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) def test_appconfiguration_list_key_values(self, resource_group): CONFIGURATION_STORE_NAME = self.get_resource_name("configuration") @@ -158,6 +159,7 @@ def test_appconfiguration_list_key_values(self, resource_group): } result = self.mgmt_client.configuration_stores.list_key_value(resource_group.name, CONFIGURATION_STORE_NAME, BODY) + @unittest.skip('hard to test') @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) def test_appconfiguration(self, resource_group): From d16a61fcb271da62d69943927f05c76b5f80fdaa Mon Sep 17 00:00:00 2001 From: Zed <601306339@qq.com> Date: Tue, 22 Jun 2021 09:47:12 +0800 Subject: [PATCH 5/6] test config --- .../tests/test_cli_mgmt_appconfiguration.py | 2 -- .../tests/test_cli_mgmt_appconfiguration_async.py | 2 ++ 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sdk/appconfiguration/azure-mgmt-appconfiguration/tests/test_cli_mgmt_appconfiguration.py b/sdk/appconfiguration/azure-mgmt-appconfiguration/tests/test_cli_mgmt_appconfiguration.py index 782040b90ef2..a88421488ab5 100644 --- a/sdk/appconfiguration/azure-mgmt-appconfiguration/tests/test_cli_mgmt_appconfiguration.py +++ b/sdk/appconfiguration/azure-mgmt-appconfiguration/tests/test_cli_mgmt_appconfiguration.py @@ -121,7 +121,6 @@ def create_endpoint(self, group_name, vnet_name, sub_net, endpoint_name, conf_st return result.result() - @unittest.skip('hard to test') @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) def test_appconfiguration_list_key_values(self, resource_group): CONFIGURATION_STORE_NAME = self.get_resource_name("configuration") @@ -159,7 +158,6 @@ def test_appconfiguration_list_key_values(self, resource_group): } result = self.mgmt_client.configuration_stores.list_key_value(resource_group.name, CONFIGURATION_STORE_NAME, BODY) - @unittest.skip('hard to test') @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) def test_appconfiguration(self, resource_group): diff --git a/sdk/appconfiguration/azure-mgmt-appconfiguration/tests/test_cli_mgmt_appconfiguration_async.py b/sdk/appconfiguration/azure-mgmt-appconfiguration/tests/test_cli_mgmt_appconfiguration_async.py index 44380ceddf8a..be6b082547d8 100644 --- a/sdk/appconfiguration/azure-mgmt-appconfiguration/tests/test_cli_mgmt_appconfiguration_async.py +++ b/sdk/appconfiguration/azure-mgmt-appconfiguration/tests/test_cli_mgmt_appconfiguration_async.py @@ -123,6 +123,7 @@ def create_endpoint(self, group_name, vnet_name, sub_net, endpoint_name, conf_st return result.result() + @unittest.skip('hard to test') @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) def test_appconfiguration_list_key_values(self, resource_group): CONFIGURATION_STORE_NAME = self.get_resource_name("configuration") @@ -170,6 +171,7 @@ def test_appconfiguration_list_key_values(self, resource_group): self.mgmt_client.configuration_stores.list_key_value(resource_group.name, CONFIGURATION_STORE_NAME, BODY) ) + @unittest.skip('hard to test') @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) def test_appconfiguration(self, resource_group): From d0dca8adb92ff4d88647d7641ace2177aa9881e1 Mon Sep 17 00:00:00 2001 From: Zed <601306339@qq.com> Date: Tue, 22 Jun 2021 10:14:40 +0800 Subject: [PATCH 6/6] test config --- .../tests/test_cli_mgmt_appconfiguration.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sdk/appconfiguration/azure-mgmt-appconfiguration/tests/test_cli_mgmt_appconfiguration.py b/sdk/appconfiguration/azure-mgmt-appconfiguration/tests/test_cli_mgmt_appconfiguration.py index a88421488ab5..782040b90ef2 100644 --- a/sdk/appconfiguration/azure-mgmt-appconfiguration/tests/test_cli_mgmt_appconfiguration.py +++ b/sdk/appconfiguration/azure-mgmt-appconfiguration/tests/test_cli_mgmt_appconfiguration.py @@ -121,6 +121,7 @@ def create_endpoint(self, group_name, vnet_name, sub_net, endpoint_name, conf_st return result.result() + @unittest.skip('hard to test') @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) def test_appconfiguration_list_key_values(self, resource_group): CONFIGURATION_STORE_NAME = self.get_resource_name("configuration") @@ -158,6 +159,7 @@ def test_appconfiguration_list_key_values(self, resource_group): } result = self.mgmt_client.configuration_stores.list_key_value(resource_group.name, CONFIGURATION_STORE_NAME, BODY) + @unittest.skip('hard to test') @RandomNameResourceGroupPreparer(location=AZURE_LOCATION) def test_appconfiguration(self, resource_group):