diff --git a/sdk/relay/azure-mgmt-relay/CHANGELOG.md b/sdk/relay/azure-mgmt-relay/CHANGELOG.md index 5fc85510b82c..8f4c2392f153 100644 --- a/sdk/relay/azure-mgmt-relay/CHANGELOG.md +++ b/sdk/relay/azure-mgmt-relay/CHANGELOG.md @@ -1,6 +1,10 @@ # Release History -## 1.0.0b1 (2019-05-16) +## 1.0.0 (2020-12-22) + +- GA release + +## 1.0.0b1 (2020-10-28) This is beta preview version. diff --git a/sdk/relay/azure-mgmt-relay/azure/mgmt/relay/_version.py b/sdk/relay/azure-mgmt-relay/azure/mgmt/relay/_version.py index e5754a47ce68..c47f66669f1b 100644 --- a/sdk/relay/azure-mgmt-relay/azure/mgmt/relay/_version.py +++ b/sdk/relay/azure-mgmt-relay/azure/mgmt/relay/_version.py @@ -6,4 +6,4 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -VERSION = "1.0.0b1" +VERSION = "1.0.0" diff --git a/sdk/relay/azure-mgmt-relay/azure/mgmt/relay/aio/operations/_hybrid_connections_operations.py b/sdk/relay/azure-mgmt-relay/azure/mgmt/relay/aio/operations/_hybrid_connections_operations.py index 6108492cf8f5..a017bbf53d20 100644 --- a/sdk/relay/azure-mgmt-relay/azure/mgmt/relay/aio/operations/_hybrid_connections_operations.py +++ b/sdk/relay/azure-mgmt-relay/azure/mgmt/relay/aio/operations/_hybrid_connections_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 HybridConnectionsOperations: :param deserializer: An object model deserializer. """ - models = models + models = _models def __init__(self, client, config, serializer, deserializer) -> None: self._client = client @@ -46,7 +46,7 @@ def list_by_namespace( resource_group_name: str, namespace_name: str, **kwargs - ) -> AsyncIterable["models.HybridConnectionListResult"]: + ) -> AsyncIterable["_models.HybridConnectionListResult"]: """Lists the hybrid connection within the namespace. :param resource_group_name: Name of the Resource group within the Azure subscription. @@ -58,7 +58,7 @@ def list_by_namespace( :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.relay.models.HybridConnectionListResult] :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["models.HybridConnectionListResult"] + cls = kwargs.pop('cls', None) # type: ClsType["_models.HybridConnectionListResult"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } @@ -105,7 +105,7 @@ async def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: - error = self._deserialize(models.ErrorResponse, response) + error = self._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) @@ -121,9 +121,9 @@ async def create_or_update( resource_group_name: str, namespace_name: str, hybrid_connection_name: str, - parameters: "models.HybridConnection", + parameters: "_models.HybridConnection", **kwargs - ) -> "models.HybridConnection": + ) -> "_models.HybridConnection": """Creates or updates a service hybrid connection. This operation is idempotent. :param resource_group_name: Name of the Resource group within the Azure subscription. @@ -139,7 +139,7 @@ async def create_or_update( :rtype: ~azure.mgmt.relay.models.HybridConnection :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["models.HybridConnection"] + cls = kwargs.pop('cls', None) # type: ClsType["_models.HybridConnection"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } @@ -176,7 +176,7 @@ async def create_or_update( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(models.ErrorResponse, response) + error = self._deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize('HybridConnection', pipeline_response) @@ -239,7 +239,7 @@ async def delete( if response.status_code not in [200, 204]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(models.ErrorResponse, response) + error = self._deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) if cls: @@ -253,7 +253,7 @@ async def get( namespace_name: str, hybrid_connection_name: str, **kwargs - ) -> "models.HybridConnection": + ) -> "_models.HybridConnection": """Returns the description for the specified hybrid connection. :param resource_group_name: Name of the Resource group within the Azure subscription. @@ -267,7 +267,7 @@ async def get( :rtype: ~azure.mgmt.relay.models.HybridConnection :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["models.HybridConnection"] + cls = kwargs.pop('cls', None) # type: ClsType["_models.HybridConnection"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } @@ -299,7 +299,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.ErrorResponse, response) + error = self._deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize('HybridConnection', pipeline_response) @@ -316,7 +316,7 @@ def list_authorization_rules( namespace_name: str, hybrid_connection_name: str, **kwargs - ) -> AsyncIterable["models.AuthorizationRuleListResult"]: + ) -> AsyncIterable["_models.AuthorizationRuleListResult"]: """Authorization rules for a hybrid connection. :param resource_group_name: Name of the Resource group within the Azure subscription. @@ -330,7 +330,7 @@ def list_authorization_rules( :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.relay.models.AuthorizationRuleListResult] :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["models.AuthorizationRuleListResult"] + cls = kwargs.pop('cls', None) # type: ClsType["_models.AuthorizationRuleListResult"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } @@ -378,7 +378,7 @@ async def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: - error = self._deserialize(models.ErrorResponse, response) + error = self._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) @@ -395,9 +395,9 @@ async def create_or_update_authorization_rule( namespace_name: str, hybrid_connection_name: str, authorization_rule_name: str, - parameters: "models.AuthorizationRule", + parameters: "_models.AuthorizationRule", **kwargs - ) -> "models.AuthorizationRule": + ) -> "_models.AuthorizationRule": """Creates or updates an authorization rule for a hybrid connection. :param resource_group_name: Name of the Resource group within the Azure subscription. @@ -415,7 +415,7 @@ async def create_or_update_authorization_rule( :rtype: ~azure.mgmt.relay.models.AuthorizationRule :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["models.AuthorizationRule"] + cls = kwargs.pop('cls', None) # type: ClsType["_models.AuthorizationRule"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } @@ -453,7 +453,7 @@ async def create_or_update_authorization_rule( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(models.ErrorResponse, response) + error = self._deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize('AuthorizationRule', pipeline_response) @@ -520,7 +520,7 @@ async def delete_authorization_rule( if response.status_code not in [200, 204]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(models.ErrorResponse, response) + error = self._deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) if cls: @@ -535,7 +535,7 @@ async def get_authorization_rule( hybrid_connection_name: str, authorization_rule_name: str, **kwargs - ) -> "models.AuthorizationRule": + ) -> "_models.AuthorizationRule": """Hybrid connection authorization rule for a hybrid connection by name. :param resource_group_name: Name of the Resource group within the Azure subscription. @@ -551,7 +551,7 @@ async def get_authorization_rule( :rtype: ~azure.mgmt.relay.models.AuthorizationRule :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["models.AuthorizationRule"] + cls = kwargs.pop('cls', None) # type: ClsType["_models.AuthorizationRule"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } @@ -584,7 +584,7 @@ async def get_authorization_rule( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(models.ErrorResponse, response) + error = self._deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize('AuthorizationRule', pipeline_response) @@ -602,7 +602,7 @@ async def list_keys( hybrid_connection_name: str, authorization_rule_name: str, **kwargs - ) -> "models.AccessKeys": + ) -> "_models.AccessKeys": """Primary and secondary connection strings to the hybrid connection. :param resource_group_name: Name of the Resource group within the Azure subscription. @@ -618,7 +618,7 @@ async def list_keys( :rtype: ~azure.mgmt.relay.models.AccessKeys :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["models.AccessKeys"] + cls = kwargs.pop('cls', None) # type: ClsType["_models.AccessKeys"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } @@ -651,7 +651,7 @@ async def list_keys( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(models.ErrorResponse, response) + error = self._deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize('AccessKeys', pipeline_response) @@ -668,9 +668,9 @@ async def regenerate_keys( namespace_name: str, hybrid_connection_name: str, authorization_rule_name: str, - parameters: "models.RegenerateAccessKeyParameters", + parameters: "_models.RegenerateAccessKeyParameters", **kwargs - ) -> "models.AccessKeys": + ) -> "_models.AccessKeys": """Regenerates the primary or secondary connection strings to the hybrid connection. :param resource_group_name: Name of the Resource group within the Azure subscription. @@ -688,7 +688,7 @@ async def regenerate_keys( :rtype: ~azure.mgmt.relay.models.AccessKeys :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["models.AccessKeys"] + cls = kwargs.pop('cls', None) # type: ClsType["_models.AccessKeys"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } @@ -726,7 +726,7 @@ async def regenerate_keys( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(models.ErrorResponse, response) + error = self._deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize('AccessKeys', pipeline_response) diff --git a/sdk/relay/azure-mgmt-relay/azure/mgmt/relay/aio/operations/_namespaces_operations.py b/sdk/relay/azure-mgmt-relay/azure/mgmt/relay/aio/operations/_namespaces_operations.py index 0f343a60ce13..f5e251146c16 100644 --- a/sdk/relay/azure-mgmt-relay/azure/mgmt/relay/aio/operations/_namespaces_operations.py +++ b/sdk/relay/azure-mgmt-relay/azure/mgmt/relay/aio/operations/_namespaces_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 NamespacesOperations: :param deserializer: An object model deserializer. """ - models = models + models = _models def __init__(self, client, config, serializer, deserializer) -> None: self._client = client @@ -45,9 +45,9 @@ def __init__(self, client, config, serializer, deserializer) -> None: async def check_name_availability( self, - parameters: "models.CheckNameAvailability", + parameters: "_models.CheckNameAvailability", **kwargs - ) -> "models.CheckNameAvailabilityResult": + ) -> "_models.CheckNameAvailabilityResult": """Check the specified namespace name availability. :param parameters: Parameters to check availability of the specified namespace name. @@ -57,7 +57,7 @@ async def check_name_availability( :rtype: ~azure.mgmt.relay.models.CheckNameAvailabilityResult :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["models.CheckNameAvailabilityResult"] + cls = kwargs.pop('cls', None) # type: ClsType["_models.CheckNameAvailabilityResult"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } @@ -91,7 +91,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.ErrorResponse, response) + error = self._deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize('CheckNameAvailabilityResult', pipeline_response) @@ -105,7 +105,7 @@ async def check_name_availability( def list( self, **kwargs - ) -> AsyncIterable["models.RelayNamespaceListResult"]: + ) -> AsyncIterable["_models.RelayNamespaceListResult"]: """Lists all the available namespaces within the subscription regardless of the resourceGroups. :keyword callable cls: A custom type or function that will be passed the direct response @@ -113,7 +113,7 @@ def list( :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.relay.models.RelayNamespaceListResult] :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["models.RelayNamespaceListResult"] + cls = kwargs.pop('cls', None) # type: ClsType["_models.RelayNamespaceListResult"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } @@ -158,7 +158,7 @@ async def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: - error = self._deserialize(models.ErrorResponse, response) + error = self._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) @@ -173,7 +173,7 @@ def list_by_resource_group( self, resource_group_name: str, **kwargs - ) -> AsyncIterable["models.RelayNamespaceListResult"]: + ) -> AsyncIterable["_models.RelayNamespaceListResult"]: """Lists all the available namespaces within the ResourceGroup. :param resource_group_name: Name of the Resource group within the Azure subscription. @@ -183,7 +183,7 @@ def list_by_resource_group( :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.relay.models.RelayNamespaceListResult] :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["models.RelayNamespaceListResult"] + cls = kwargs.pop('cls', None) # type: ClsType["_models.RelayNamespaceListResult"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } @@ -229,7 +229,7 @@ async def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: - error = self._deserialize(models.ErrorResponse, response) + error = self._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) @@ -244,10 +244,10 @@ async def _create_or_update_initial( self, resource_group_name: str, namespace_name: str, - parameters: "models.RelayNamespace", + parameters: "_models.RelayNamespace", **kwargs - ) -> "models.RelayNamespace": - cls = kwargs.pop('cls', None) # type: ClsType["models.RelayNamespace"] + ) -> "_models.RelayNamespace": + cls = kwargs.pop('cls', None) # type: ClsType["_models.RelayNamespace"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } @@ -283,7 +283,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.ErrorResponse, response) + error = self._deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) if response.status_code == 200: @@ -302,9 +302,9 @@ async def begin_create_or_update( self, resource_group_name: str, namespace_name: str, - parameters: "models.RelayNamespace", + parameters: "_models.RelayNamespace", **kwargs - ) -> AsyncLROPoller["models.RelayNamespace"]: + ) -> AsyncLROPoller["_models.RelayNamespace"]: """Create Azure Relay namespace. :param resource_group_name: Name of the Resource group within the Azure subscription. @@ -324,7 +324,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.RelayNamespace"] + cls = kwargs.pop('cls', None) # type: ClsType["_models.RelayNamespace"] lro_delay = kwargs.pop( 'polling_interval', self._config.polling_interval @@ -349,7 +349,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 = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), + 'namespaceName': self._serialize.url("namespace_name", namespace_name, 'str', max_length=50, min_length=6), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, '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: @@ -400,7 +406,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.ErrorResponse, response) + error = self._deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) if cls: @@ -453,7 +459,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 = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), + 'namespaceName': self._serialize.url("namespace_name", namespace_name, 'str', max_length=50, min_length=6), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, '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: @@ -472,7 +484,7 @@ async def get( resource_group_name: str, namespace_name: str, **kwargs - ) -> "models.RelayNamespace": + ) -> "_models.RelayNamespace": """Returns the description for the specified namespace. :param resource_group_name: Name of the Resource group within the Azure subscription. @@ -484,7 +496,7 @@ async def get( :rtype: ~azure.mgmt.relay.models.RelayNamespace :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["models.RelayNamespace"] + cls = kwargs.pop('cls', None) # type: ClsType["_models.RelayNamespace"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } @@ -515,7 +527,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.ErrorResponse, response) + error = self._deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize('RelayNamespace', pipeline_response) @@ -530,9 +542,9 @@ async def update( self, resource_group_name: str, namespace_name: str, - parameters: "models.RelayUpdateParameters", + parameters: "_models.RelayUpdateParameters", **kwargs - ) -> "models.RelayNamespace": + ) -> "_models.RelayNamespace": """Creates or updates a namespace. Once created, this namespace's resource manifest is immutable. This operation is idempotent. @@ -547,7 +559,7 @@ async def update( :rtype: ~azure.mgmt.relay.models.RelayNamespace :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["models.RelayNamespace"] + cls = kwargs.pop('cls', None) # type: ClsType["_models.RelayNamespace"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } @@ -583,7 +595,7 @@ async def update( 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.ErrorResponse, response) + error = self._deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) if response.status_code == 200: @@ -603,7 +615,7 @@ def list_authorization_rules( resource_group_name: str, namespace_name: str, **kwargs - ) -> AsyncIterable["models.AuthorizationRuleListResult"]: + ) -> AsyncIterable["_models.AuthorizationRuleListResult"]: """Authorization rules for a namespace. :param resource_group_name: Name of the Resource group within the Azure subscription. @@ -615,7 +627,7 @@ def list_authorization_rules( :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.relay.models.AuthorizationRuleListResult] :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["models.AuthorizationRuleListResult"] + cls = kwargs.pop('cls', None) # type: ClsType["_models.AuthorizationRuleListResult"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } @@ -662,7 +674,7 @@ async def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: - error = self._deserialize(models.ErrorResponse, response) + error = self._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) @@ -678,9 +690,9 @@ async def create_or_update_authorization_rule( resource_group_name: str, namespace_name: str, authorization_rule_name: str, - parameters: "models.AuthorizationRule", + parameters: "_models.AuthorizationRule", **kwargs - ) -> "models.AuthorizationRule": + ) -> "_models.AuthorizationRule": """Creates or updates an authorization rule for a namespace. :param resource_group_name: Name of the Resource group within the Azure subscription. @@ -696,7 +708,7 @@ async def create_or_update_authorization_rule( :rtype: ~azure.mgmt.relay.models.AuthorizationRule :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["models.AuthorizationRule"] + cls = kwargs.pop('cls', None) # type: ClsType["_models.AuthorizationRule"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } @@ -733,7 +745,7 @@ async def create_or_update_authorization_rule( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(models.ErrorResponse, response) + error = self._deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize('AuthorizationRule', pipeline_response) @@ -796,7 +808,7 @@ async def delete_authorization_rule( if response.status_code not in [200, 204]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(models.ErrorResponse, response) + error = self._deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) if cls: @@ -810,7 +822,7 @@ async def get_authorization_rule( namespace_name: str, authorization_rule_name: str, **kwargs - ) -> "models.AuthorizationRule": + ) -> "_models.AuthorizationRule": """Authorization rule for a namespace by name. :param resource_group_name: Name of the Resource group within the Azure subscription. @@ -824,7 +836,7 @@ async def get_authorization_rule( :rtype: ~azure.mgmt.relay.models.AuthorizationRule :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["models.AuthorizationRule"] + cls = kwargs.pop('cls', None) # type: ClsType["_models.AuthorizationRule"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } @@ -856,7 +868,7 @@ async def get_authorization_rule( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(models.ErrorResponse, response) + error = self._deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize('AuthorizationRule', pipeline_response) @@ -873,7 +885,7 @@ async def list_keys( namespace_name: str, authorization_rule_name: str, **kwargs - ) -> "models.AccessKeys": + ) -> "_models.AccessKeys": """Primary and secondary connection strings to the namespace. :param resource_group_name: Name of the Resource group within the Azure subscription. @@ -887,7 +899,7 @@ async def list_keys( :rtype: ~azure.mgmt.relay.models.AccessKeys :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["models.AccessKeys"] + cls = kwargs.pop('cls', None) # type: ClsType["_models.AccessKeys"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } @@ -919,7 +931,7 @@ async def list_keys( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(models.ErrorResponse, response) + error = self._deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize('AccessKeys', pipeline_response) @@ -935,9 +947,9 @@ async def regenerate_keys( resource_group_name: str, namespace_name: str, authorization_rule_name: str, - parameters: "models.RegenerateAccessKeyParameters", + parameters: "_models.RegenerateAccessKeyParameters", **kwargs - ) -> "models.AccessKeys": + ) -> "_models.AccessKeys": """Regenerates the primary or secondary connection strings to the namespace. :param resource_group_name: Name of the Resource group within the Azure subscription. @@ -953,7 +965,7 @@ async def regenerate_keys( :rtype: ~azure.mgmt.relay.models.AccessKeys :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["models.AccessKeys"] + cls = kwargs.pop('cls', None) # type: ClsType["_models.AccessKeys"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } @@ -990,7 +1002,7 @@ async def regenerate_keys( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(models.ErrorResponse, response) + error = self._deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize('AccessKeys', pipeline_response) diff --git a/sdk/relay/azure-mgmt-relay/azure/mgmt/relay/aio/operations/_operations.py b/sdk/relay/azure-mgmt-relay/azure/mgmt/relay/aio/operations/_operations.py index f399d78fb156..504e703d4197 100644 --- a/sdk/relay/azure-mgmt-relay/azure/mgmt/relay/aio/operations/_operations.py +++ b/sdk/relay/azure-mgmt-relay/azure/mgmt/relay/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 @@ -44,7 +44,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: def list( self, **kwargs - ) -> AsyncIterable["models.OperationListResult"]: + ) -> AsyncIterable["_models.OperationListResult"]: """Lists all available Relay REST API operations. :keyword callable cls: A custom type or function that will be passed the direct response @@ -52,7 +52,7 @@ def list( :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.relay.models.OperationListResult] :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["models.OperationListResult"] + cls = kwargs.pop('cls', None) # type: ClsType["_models.OperationListResult"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } @@ -93,7 +93,7 @@ async def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: - error = self._deserialize(models.ErrorResponse, response) + error = self._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/relay/azure-mgmt-relay/azure/mgmt/relay/aio/operations/_wcf_relays_operations.py b/sdk/relay/azure-mgmt-relay/azure/mgmt/relay/aio/operations/_wcf_relays_operations.py index a1b9bd67bd0c..242f111fe9e5 100644 --- a/sdk/relay/azure-mgmt-relay/azure/mgmt/relay/aio/operations/_wcf_relays_operations.py +++ b/sdk/relay/azure-mgmt-relay/azure/mgmt/relay/aio/operations/_wcf_relays_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 WCFRelaysOperations: :param deserializer: An object model deserializer. """ - models = models + models = _models def __init__(self, client, config, serializer, deserializer) -> None: self._client = client @@ -46,7 +46,7 @@ def list_by_namespace( resource_group_name: str, namespace_name: str, **kwargs - ) -> AsyncIterable["models.WcfRelaysListResult"]: + ) -> AsyncIterable["_models.WcfRelaysListResult"]: """Lists the WCF relays within the namespace. :param resource_group_name: Name of the Resource group within the Azure subscription. @@ -58,7 +58,7 @@ def list_by_namespace( :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.relay.models.WcfRelaysListResult] :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["models.WcfRelaysListResult"] + cls = kwargs.pop('cls', None) # type: ClsType["_models.WcfRelaysListResult"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } @@ -105,7 +105,7 @@ async def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: - error = self._deserialize(models.ErrorResponse, response) + error = self._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) @@ -121,9 +121,9 @@ async def create_or_update( resource_group_name: str, namespace_name: str, relay_name: str, - parameters: "models.WcfRelay", + parameters: "_models.WcfRelay", **kwargs - ) -> "models.WcfRelay": + ) -> "_models.WcfRelay": """Creates or updates a WCF relay. This operation is idempotent. :param resource_group_name: Name of the Resource group within the Azure subscription. @@ -139,7 +139,7 @@ async def create_or_update( :rtype: ~azure.mgmt.relay.models.WcfRelay :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["models.WcfRelay"] + cls = kwargs.pop('cls', None) # type: ClsType["_models.WcfRelay"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } @@ -176,7 +176,7 @@ async def create_or_update( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(models.ErrorResponse, response) + error = self._deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize('WcfRelay', pipeline_response) @@ -239,7 +239,7 @@ async def delete( if response.status_code not in [200, 204]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(models.ErrorResponse, response) + error = self._deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) if cls: @@ -253,7 +253,7 @@ async def get( namespace_name: str, relay_name: str, **kwargs - ) -> Optional["models.WcfRelay"]: + ) -> Optional["_models.WcfRelay"]: """Returns the description for the specified WCF relay. :param resource_group_name: Name of the Resource group within the Azure subscription. @@ -267,7 +267,7 @@ async def get( :rtype: ~azure.mgmt.relay.models.WcfRelay or None :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType[Optional["models.WcfRelay"]] + cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.WcfRelay"]] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } @@ -299,7 +299,7 @@ async def get( if response.status_code not in [200, 204]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(models.ErrorResponse, response) + error = self._deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = None @@ -318,7 +318,7 @@ def list_authorization_rules( namespace_name: str, relay_name: str, **kwargs - ) -> AsyncIterable["models.AuthorizationRuleListResult"]: + ) -> AsyncIterable["_models.AuthorizationRuleListResult"]: """Authorization rules for a WCF relay. :param resource_group_name: Name of the Resource group within the Azure subscription. @@ -332,7 +332,7 @@ def list_authorization_rules( :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.relay.models.AuthorizationRuleListResult] :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["models.AuthorizationRuleListResult"] + cls = kwargs.pop('cls', None) # type: ClsType["_models.AuthorizationRuleListResult"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } @@ -396,9 +396,9 @@ async def create_or_update_authorization_rule( namespace_name: str, relay_name: str, authorization_rule_name: str, - parameters: "models.AuthorizationRule", + parameters: "_models.AuthorizationRule", **kwargs - ) -> "models.AuthorizationRule": + ) -> "_models.AuthorizationRule": """Creates or updates an authorization rule for a WCF relay. :param resource_group_name: Name of the Resource group within the Azure subscription. @@ -416,7 +416,7 @@ async def create_or_update_authorization_rule( :rtype: ~azure.mgmt.relay.models.AuthorizationRule :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["models.AuthorizationRule"] + cls = kwargs.pop('cls', None) # type: ClsType["_models.AuthorizationRule"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } @@ -454,7 +454,7 @@ async def create_or_update_authorization_rule( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(models.ErrorResponse, response) + error = self._deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize('AuthorizationRule', pipeline_response) @@ -521,7 +521,7 @@ async def delete_authorization_rule( if response.status_code not in [200, 204]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(models.ErrorResponse, response) + error = self._deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) if cls: @@ -536,7 +536,7 @@ async def get_authorization_rule( relay_name: str, authorization_rule_name: str, **kwargs - ) -> "models.AuthorizationRule": + ) -> "_models.AuthorizationRule": """Get authorizationRule for a WCF relay by name. :param resource_group_name: Name of the Resource group within the Azure subscription. @@ -552,7 +552,7 @@ async def get_authorization_rule( :rtype: ~azure.mgmt.relay.models.AuthorizationRule :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["models.AuthorizationRule"] + cls = kwargs.pop('cls', None) # type: ClsType["_models.AuthorizationRule"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } @@ -585,7 +585,7 @@ async def get_authorization_rule( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(models.ErrorResponse, response) + error = self._deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize('AuthorizationRule', pipeline_response) @@ -603,7 +603,7 @@ async def list_keys( relay_name: str, authorization_rule_name: str, **kwargs - ) -> "models.AccessKeys": + ) -> "_models.AccessKeys": """Primary and secondary connection strings to the WCF relay. :param resource_group_name: Name of the Resource group within the Azure subscription. @@ -619,7 +619,7 @@ async def list_keys( :rtype: ~azure.mgmt.relay.models.AccessKeys :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["models.AccessKeys"] + cls = kwargs.pop('cls', None) # type: ClsType["_models.AccessKeys"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } @@ -652,7 +652,7 @@ async def list_keys( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(models.ErrorResponse, response) + error = self._deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize('AccessKeys', pipeline_response) @@ -669,9 +669,9 @@ async def regenerate_keys( namespace_name: str, relay_name: str, authorization_rule_name: str, - parameters: "models.RegenerateAccessKeyParameters", + parameters: "_models.RegenerateAccessKeyParameters", **kwargs - ) -> "models.AccessKeys": + ) -> "_models.AccessKeys": """Regenerates the primary or secondary connection strings to the WCF relay. :param resource_group_name: Name of the Resource group within the Azure subscription. @@ -689,7 +689,7 @@ async def regenerate_keys( :rtype: ~azure.mgmt.relay.models.AccessKeys :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["models.AccessKeys"] + cls = kwargs.pop('cls', None) # type: ClsType["_models.AccessKeys"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } @@ -727,7 +727,7 @@ async def regenerate_keys( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(models.ErrorResponse, response) + error = self._deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize('AccessKeys', pipeline_response) diff --git a/sdk/relay/azure-mgmt-relay/azure/mgmt/relay/operations/_hybrid_connections_operations.py b/sdk/relay/azure-mgmt-relay/azure/mgmt/relay/operations/_hybrid_connections_operations.py index 5f26739fa686..75144c17f0f3 100644 --- a/sdk/relay/azure-mgmt-relay/azure/mgmt/relay/operations/_hybrid_connections_operations.py +++ b/sdk/relay/azure-mgmt-relay/azure/mgmt/relay/operations/_hybrid_connections_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 HybridConnectionsOperations(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_namespace( namespace_name, # type: str **kwargs # type: Any ): - # type: (...) -> Iterable["models.HybridConnectionListResult"] + # type: (...) -> Iterable["_models.HybridConnectionListResult"] """Lists the hybrid connection within the namespace. :param resource_group_name: Name of the Resource group within the Azure subscription. @@ -63,7 +63,7 @@ def list_by_namespace( :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.relay.models.HybridConnectionListResult] :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["models.HybridConnectionListResult"] + cls = kwargs.pop('cls', None) # type: ClsType["_models.HybridConnectionListResult"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } @@ -110,7 +110,7 @@ def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: - error = self._deserialize(models.ErrorResponse, response) + error = self._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) @@ -126,10 +126,10 @@ def create_or_update( resource_group_name, # type: str namespace_name, # type: str hybrid_connection_name, # type: str - parameters, # type: "models.HybridConnection" + parameters, # type: "_models.HybridConnection" **kwargs # type: Any ): - # type: (...) -> "models.HybridConnection" + # type: (...) -> "_models.HybridConnection" """Creates or updates a service hybrid connection. This operation is idempotent. :param resource_group_name: Name of the Resource group within the Azure subscription. @@ -145,7 +145,7 @@ def create_or_update( :rtype: ~azure.mgmt.relay.models.HybridConnection :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["models.HybridConnection"] + cls = kwargs.pop('cls', None) # type: ClsType["_models.HybridConnection"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } @@ -182,7 +182,7 @@ def create_or_update( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(models.ErrorResponse, response) + error = self._deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize('HybridConnection', pipeline_response) @@ -246,7 +246,7 @@ def delete( if response.status_code not in [200, 204]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(models.ErrorResponse, response) + error = self._deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) if cls: @@ -261,7 +261,7 @@ def get( hybrid_connection_name, # type: str **kwargs # type: Any ): - # type: (...) -> "models.HybridConnection" + # type: (...) -> "_models.HybridConnection" """Returns the description for the specified hybrid connection. :param resource_group_name: Name of the Resource group within the Azure subscription. @@ -275,7 +275,7 @@ def get( :rtype: ~azure.mgmt.relay.models.HybridConnection :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["models.HybridConnection"] + cls = kwargs.pop('cls', None) # type: ClsType["_models.HybridConnection"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } @@ -307,7 +307,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.ErrorResponse, response) + error = self._deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize('HybridConnection', pipeline_response) @@ -325,7 +325,7 @@ def list_authorization_rules( hybrid_connection_name, # type: str **kwargs # type: Any ): - # type: (...) -> Iterable["models.AuthorizationRuleListResult"] + # type: (...) -> Iterable["_models.AuthorizationRuleListResult"] """Authorization rules for a hybrid connection. :param resource_group_name: Name of the Resource group within the Azure subscription. @@ -339,7 +339,7 @@ def list_authorization_rules( :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.relay.models.AuthorizationRuleListResult] :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["models.AuthorizationRuleListResult"] + cls = kwargs.pop('cls', None) # type: ClsType["_models.AuthorizationRuleListResult"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } @@ -387,7 +387,7 @@ def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: - error = self._deserialize(models.ErrorResponse, response) + error = self._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) @@ -404,10 +404,10 @@ def create_or_update_authorization_rule( namespace_name, # type: str hybrid_connection_name, # type: str authorization_rule_name, # type: str - parameters, # type: "models.AuthorizationRule" + parameters, # type: "_models.AuthorizationRule" **kwargs # type: Any ): - # type: (...) -> "models.AuthorizationRule" + # type: (...) -> "_models.AuthorizationRule" """Creates or updates an authorization rule for a hybrid connection. :param resource_group_name: Name of the Resource group within the Azure subscription. @@ -425,7 +425,7 @@ def create_or_update_authorization_rule( :rtype: ~azure.mgmt.relay.models.AuthorizationRule :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["models.AuthorizationRule"] + cls = kwargs.pop('cls', None) # type: ClsType["_models.AuthorizationRule"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } @@ -463,7 +463,7 @@ def create_or_update_authorization_rule( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(models.ErrorResponse, response) + error = self._deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize('AuthorizationRule', pipeline_response) @@ -531,7 +531,7 @@ def delete_authorization_rule( if response.status_code not in [200, 204]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(models.ErrorResponse, response) + error = self._deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) if cls: @@ -547,7 +547,7 @@ def get_authorization_rule( authorization_rule_name, # type: str **kwargs # type: Any ): - # type: (...) -> "models.AuthorizationRule" + # type: (...) -> "_models.AuthorizationRule" """Hybrid connection authorization rule for a hybrid connection by name. :param resource_group_name: Name of the Resource group within the Azure subscription. @@ -563,7 +563,7 @@ def get_authorization_rule( :rtype: ~azure.mgmt.relay.models.AuthorizationRule :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["models.AuthorizationRule"] + cls = kwargs.pop('cls', None) # type: ClsType["_models.AuthorizationRule"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } @@ -596,7 +596,7 @@ def get_authorization_rule( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(models.ErrorResponse, response) + error = self._deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize('AuthorizationRule', pipeline_response) @@ -615,7 +615,7 @@ def list_keys( authorization_rule_name, # type: str **kwargs # type: Any ): - # type: (...) -> "models.AccessKeys" + # type: (...) -> "_models.AccessKeys" """Primary and secondary connection strings to the hybrid connection. :param resource_group_name: Name of the Resource group within the Azure subscription. @@ -631,7 +631,7 @@ def list_keys( :rtype: ~azure.mgmt.relay.models.AccessKeys :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["models.AccessKeys"] + cls = kwargs.pop('cls', None) # type: ClsType["_models.AccessKeys"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } @@ -664,7 +664,7 @@ def list_keys( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(models.ErrorResponse, response) + error = self._deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize('AccessKeys', pipeline_response) @@ -681,10 +681,10 @@ def regenerate_keys( namespace_name, # type: str hybrid_connection_name, # type: str authorization_rule_name, # type: str - parameters, # type: "models.RegenerateAccessKeyParameters" + parameters, # type: "_models.RegenerateAccessKeyParameters" **kwargs # type: Any ): - # type: (...) -> "models.AccessKeys" + # type: (...) -> "_models.AccessKeys" """Regenerates the primary or secondary connection strings to the hybrid connection. :param resource_group_name: Name of the Resource group within the Azure subscription. @@ -702,7 +702,7 @@ def regenerate_keys( :rtype: ~azure.mgmt.relay.models.AccessKeys :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["models.AccessKeys"] + cls = kwargs.pop('cls', None) # type: ClsType["_models.AccessKeys"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } @@ -740,7 +740,7 @@ def regenerate_keys( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(models.ErrorResponse, response) + error = self._deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize('AccessKeys', pipeline_response) diff --git a/sdk/relay/azure-mgmt-relay/azure/mgmt/relay/operations/_namespaces_operations.py b/sdk/relay/azure-mgmt-relay/azure/mgmt/relay/operations/_namespaces_operations.py index 86eb2cfa8aa1..6a42ed83120b 100644 --- a/sdk/relay/azure-mgmt-relay/azure/mgmt/relay/operations/_namespaces_operations.py +++ b/sdk/relay/azure-mgmt-relay/azure/mgmt/relay/operations/_namespaces_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 NamespacesOperations(object): :param deserializer: An object model deserializer. """ - models = models + models = _models def __init__(self, client, config, serializer, deserializer): self._client = client @@ -49,10 +49,10 @@ def __init__(self, client, config, serializer, deserializer): def check_name_availability( self, - parameters, # type: "models.CheckNameAvailability" + parameters, # type: "_models.CheckNameAvailability" **kwargs # type: Any ): - # type: (...) -> "models.CheckNameAvailabilityResult" + # type: (...) -> "_models.CheckNameAvailabilityResult" """Check the specified namespace name availability. :param parameters: Parameters to check availability of the specified namespace name. @@ -62,7 +62,7 @@ def check_name_availability( :rtype: ~azure.mgmt.relay.models.CheckNameAvailabilityResult :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["models.CheckNameAvailabilityResult"] + cls = kwargs.pop('cls', None) # type: ClsType["_models.CheckNameAvailabilityResult"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } @@ -96,7 +96,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.ErrorResponse, response) + error = self._deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize('CheckNameAvailabilityResult', pipeline_response) @@ -111,7 +111,7 @@ def list( self, **kwargs # type: Any ): - # type: (...) -> Iterable["models.RelayNamespaceListResult"] + # type: (...) -> Iterable["_models.RelayNamespaceListResult"] """Lists all the available namespaces within the subscription regardless of the resourceGroups. :keyword callable cls: A custom type or function that will be passed the direct response @@ -119,7 +119,7 @@ def list( :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.relay.models.RelayNamespaceListResult] :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["models.RelayNamespaceListResult"] + cls = kwargs.pop('cls', None) # type: ClsType["_models.RelayNamespaceListResult"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } @@ -164,7 +164,7 @@ def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: - error = self._deserialize(models.ErrorResponse, response) + error = self._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) @@ -180,7 +180,7 @@ def list_by_resource_group( resource_group_name, # type: str **kwargs # type: Any ): - # type: (...) -> Iterable["models.RelayNamespaceListResult"] + # type: (...) -> Iterable["_models.RelayNamespaceListResult"] """Lists all the available namespaces within the ResourceGroup. :param resource_group_name: Name of the Resource group within the Azure subscription. @@ -190,7 +190,7 @@ def list_by_resource_group( :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.relay.models.RelayNamespaceListResult] :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["models.RelayNamespaceListResult"] + cls = kwargs.pop('cls', None) # type: ClsType["_models.RelayNamespaceListResult"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } @@ -236,7 +236,7 @@ def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: - error = self._deserialize(models.ErrorResponse, response) + error = self._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) @@ -251,11 +251,11 @@ def _create_or_update_initial( self, resource_group_name, # type: str namespace_name, # type: str - parameters, # type: "models.RelayNamespace" + parameters, # type: "_models.RelayNamespace" **kwargs # type: Any ): - # type: (...) -> "models.RelayNamespace" - cls = kwargs.pop('cls', None) # type: ClsType["models.RelayNamespace"] + # type: (...) -> "_models.RelayNamespace" + cls = kwargs.pop('cls', None) # type: ClsType["_models.RelayNamespace"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } @@ -291,7 +291,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.ErrorResponse, response) + error = self._deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) if response.status_code == 200: @@ -310,10 +310,10 @@ def begin_create_or_update( self, resource_group_name, # type: str namespace_name, # type: str - parameters, # type: "models.RelayNamespace" + parameters, # type: "_models.RelayNamespace" **kwargs # type: Any ): - # type: (...) -> LROPoller["models.RelayNamespace"] + # type: (...) -> LROPoller["_models.RelayNamespace"] """Create Azure Relay namespace. :param resource_group_name: Name of the Resource group within the Azure subscription. @@ -333,7 +333,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.RelayNamespace"] + cls = kwargs.pop('cls', None) # type: ClsType["_models.RelayNamespace"] lro_delay = kwargs.pop( 'polling_interval', self._config.polling_interval @@ -358,7 +358,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 = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), + 'namespaceName': self._serialize.url("namespace_name", namespace_name, 'str', max_length=50, min_length=6), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, '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: @@ -410,7 +416,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.ErrorResponse, response) + error = self._deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) if cls: @@ -464,7 +470,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 = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), + 'namespaceName': self._serialize.url("namespace_name", namespace_name, 'str', max_length=50, min_length=6), + 'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, '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: @@ -484,7 +496,7 @@ def get( namespace_name, # type: str **kwargs # type: Any ): - # type: (...) -> "models.RelayNamespace" + # type: (...) -> "_models.RelayNamespace" """Returns the description for the specified namespace. :param resource_group_name: Name of the Resource group within the Azure subscription. @@ -496,7 +508,7 @@ def get( :rtype: ~azure.mgmt.relay.models.RelayNamespace :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["models.RelayNamespace"] + cls = kwargs.pop('cls', None) # type: ClsType["_models.RelayNamespace"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } @@ -527,7 +539,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.ErrorResponse, response) + error = self._deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize('RelayNamespace', pipeline_response) @@ -542,10 +554,10 @@ def update( self, resource_group_name, # type: str namespace_name, # type: str - parameters, # type: "models.RelayUpdateParameters" + parameters, # type: "_models.RelayUpdateParameters" **kwargs # type: Any ): - # type: (...) -> "models.RelayNamespace" + # type: (...) -> "_models.RelayNamespace" """Creates or updates a namespace. Once created, this namespace's resource manifest is immutable. This operation is idempotent. @@ -560,7 +572,7 @@ def update( :rtype: ~azure.mgmt.relay.models.RelayNamespace :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["models.RelayNamespace"] + cls = kwargs.pop('cls', None) # type: ClsType["_models.RelayNamespace"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } @@ -596,7 +608,7 @@ def update( 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.ErrorResponse, response) + error = self._deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) if response.status_code == 200: @@ -617,7 +629,7 @@ def list_authorization_rules( namespace_name, # type: str **kwargs # type: Any ): - # type: (...) -> Iterable["models.AuthorizationRuleListResult"] + # type: (...) -> Iterable["_models.AuthorizationRuleListResult"] """Authorization rules for a namespace. :param resource_group_name: Name of the Resource group within the Azure subscription. @@ -629,7 +641,7 @@ def list_authorization_rules( :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.relay.models.AuthorizationRuleListResult] :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["models.AuthorizationRuleListResult"] + cls = kwargs.pop('cls', None) # type: ClsType["_models.AuthorizationRuleListResult"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } @@ -676,7 +688,7 @@ def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: - error = self._deserialize(models.ErrorResponse, response) + error = self._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,10 +704,10 @@ def create_or_update_authorization_rule( resource_group_name, # type: str namespace_name, # type: str authorization_rule_name, # type: str - parameters, # type: "models.AuthorizationRule" + parameters, # type: "_models.AuthorizationRule" **kwargs # type: Any ): - # type: (...) -> "models.AuthorizationRule" + # type: (...) -> "_models.AuthorizationRule" """Creates or updates an authorization rule for a namespace. :param resource_group_name: Name of the Resource group within the Azure subscription. @@ -711,7 +723,7 @@ def create_or_update_authorization_rule( :rtype: ~azure.mgmt.relay.models.AuthorizationRule :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["models.AuthorizationRule"] + cls = kwargs.pop('cls', None) # type: ClsType["_models.AuthorizationRule"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } @@ -748,7 +760,7 @@ def create_or_update_authorization_rule( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(models.ErrorResponse, response) + error = self._deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize('AuthorizationRule', pipeline_response) @@ -812,7 +824,7 @@ def delete_authorization_rule( if response.status_code not in [200, 204]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(models.ErrorResponse, response) + error = self._deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) if cls: @@ -827,7 +839,7 @@ def get_authorization_rule( authorization_rule_name, # type: str **kwargs # type: Any ): - # type: (...) -> "models.AuthorizationRule" + # type: (...) -> "_models.AuthorizationRule" """Authorization rule for a namespace by name. :param resource_group_name: Name of the Resource group within the Azure subscription. @@ -841,7 +853,7 @@ def get_authorization_rule( :rtype: ~azure.mgmt.relay.models.AuthorizationRule :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["models.AuthorizationRule"] + cls = kwargs.pop('cls', None) # type: ClsType["_models.AuthorizationRule"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } @@ -873,7 +885,7 @@ def get_authorization_rule( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(models.ErrorResponse, response) + error = self._deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize('AuthorizationRule', pipeline_response) @@ -891,7 +903,7 @@ def list_keys( authorization_rule_name, # type: str **kwargs # type: Any ): - # type: (...) -> "models.AccessKeys" + # type: (...) -> "_models.AccessKeys" """Primary and secondary connection strings to the namespace. :param resource_group_name: Name of the Resource group within the Azure subscription. @@ -905,7 +917,7 @@ def list_keys( :rtype: ~azure.mgmt.relay.models.AccessKeys :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["models.AccessKeys"] + cls = kwargs.pop('cls', None) # type: ClsType["_models.AccessKeys"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } @@ -937,7 +949,7 @@ def list_keys( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(models.ErrorResponse, response) + error = self._deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize('AccessKeys', pipeline_response) @@ -953,10 +965,10 @@ def regenerate_keys( resource_group_name, # type: str namespace_name, # type: str authorization_rule_name, # type: str - parameters, # type: "models.RegenerateAccessKeyParameters" + parameters, # type: "_models.RegenerateAccessKeyParameters" **kwargs # type: Any ): - # type: (...) -> "models.AccessKeys" + # type: (...) -> "_models.AccessKeys" """Regenerates the primary or secondary connection strings to the namespace. :param resource_group_name: Name of the Resource group within the Azure subscription. @@ -972,7 +984,7 @@ def regenerate_keys( :rtype: ~azure.mgmt.relay.models.AccessKeys :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["models.AccessKeys"] + cls = kwargs.pop('cls', None) # type: ClsType["_models.AccessKeys"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } @@ -1009,7 +1021,7 @@ def regenerate_keys( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(models.ErrorResponse, response) + error = self._deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize('AccessKeys', pipeline_response) diff --git a/sdk/relay/azure-mgmt-relay/azure/mgmt/relay/operations/_operations.py b/sdk/relay/azure-mgmt-relay/azure/mgmt/relay/operations/_operations.py index c532a17157d4..7c0dfdd28b4e 100644 --- a/sdk/relay/azure-mgmt-relay/azure/mgmt/relay/operations/_operations.py +++ b/sdk/relay/azure-mgmt-relay/azure/mgmt/relay/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 @@ -49,7 +49,7 @@ def list( self, **kwargs # type: Any ): - # type: (...) -> Iterable["models.OperationListResult"] + # type: (...) -> Iterable["_models.OperationListResult"] """Lists all available Relay REST API operations. :keyword callable cls: A custom type or function that will be passed the direct response @@ -57,7 +57,7 @@ def list( :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.relay.models.OperationListResult] :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["models.OperationListResult"] + cls = kwargs.pop('cls', None) # type: ClsType["_models.OperationListResult"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } @@ -98,7 +98,7 @@ def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: - error = self._deserialize(models.ErrorResponse, response) + error = self._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/relay/azure-mgmt-relay/azure/mgmt/relay/operations/_wcf_relays_operations.py b/sdk/relay/azure-mgmt-relay/azure/mgmt/relay/operations/_wcf_relays_operations.py index 34a44c0d15a9..90c3ace7d3bf 100644 --- a/sdk/relay/azure-mgmt-relay/azure/mgmt/relay/operations/_wcf_relays_operations.py +++ b/sdk/relay/azure-mgmt-relay/azure/mgmt/relay/operations/_wcf_relays_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 WCFRelaysOperations(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_namespace( namespace_name, # type: str **kwargs # type: Any ): - # type: (...) -> Iterable["models.WcfRelaysListResult"] + # type: (...) -> Iterable["_models.WcfRelaysListResult"] """Lists the WCF relays within the namespace. :param resource_group_name: Name of the Resource group within the Azure subscription. @@ -63,7 +63,7 @@ def list_by_namespace( :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.relay.models.WcfRelaysListResult] :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["models.WcfRelaysListResult"] + cls = kwargs.pop('cls', None) # type: ClsType["_models.WcfRelaysListResult"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } @@ -110,7 +110,7 @@ def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: - error = self._deserialize(models.ErrorResponse, response) + error = self._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) @@ -126,10 +126,10 @@ def create_or_update( resource_group_name, # type: str namespace_name, # type: str relay_name, # type: str - parameters, # type: "models.WcfRelay" + parameters, # type: "_models.WcfRelay" **kwargs # type: Any ): - # type: (...) -> "models.WcfRelay" + # type: (...) -> "_models.WcfRelay" """Creates or updates a WCF relay. This operation is idempotent. :param resource_group_name: Name of the Resource group within the Azure subscription. @@ -145,7 +145,7 @@ def create_or_update( :rtype: ~azure.mgmt.relay.models.WcfRelay :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["models.WcfRelay"] + cls = kwargs.pop('cls', None) # type: ClsType["_models.WcfRelay"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } @@ -182,7 +182,7 @@ def create_or_update( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(models.ErrorResponse, response) + error = self._deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize('WcfRelay', pipeline_response) @@ -246,7 +246,7 @@ def delete( if response.status_code not in [200, 204]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(models.ErrorResponse, response) + error = self._deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) if cls: @@ -261,7 +261,7 @@ def get( relay_name, # type: str **kwargs # type: Any ): - # type: (...) -> Optional["models.WcfRelay"] + # type: (...) -> Optional["_models.WcfRelay"] """Returns the description for the specified WCF relay. :param resource_group_name: Name of the Resource group within the Azure subscription. @@ -275,7 +275,7 @@ def get( :rtype: ~azure.mgmt.relay.models.WcfRelay or None :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType[Optional["models.WcfRelay"]] + cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.WcfRelay"]] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } @@ -307,7 +307,7 @@ def get( if response.status_code not in [200, 204]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(models.ErrorResponse, response) + error = self._deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = None @@ -327,7 +327,7 @@ def list_authorization_rules( relay_name, # type: str **kwargs # type: Any ): - # type: (...) -> Iterable["models.AuthorizationRuleListResult"] + # type: (...) -> Iterable["_models.AuthorizationRuleListResult"] """Authorization rules for a WCF relay. :param resource_group_name: Name of the Resource group within the Azure subscription. @@ -341,7 +341,7 @@ def list_authorization_rules( :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.relay.models.AuthorizationRuleListResult] :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["models.AuthorizationRuleListResult"] + cls = kwargs.pop('cls', None) # type: ClsType["_models.AuthorizationRuleListResult"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } @@ -405,10 +405,10 @@ def create_or_update_authorization_rule( namespace_name, # type: str relay_name, # type: str authorization_rule_name, # type: str - parameters, # type: "models.AuthorizationRule" + parameters, # type: "_models.AuthorizationRule" **kwargs # type: Any ): - # type: (...) -> "models.AuthorizationRule" + # type: (...) -> "_models.AuthorizationRule" """Creates or updates an authorization rule for a WCF relay. :param resource_group_name: Name of the Resource group within the Azure subscription. @@ -426,7 +426,7 @@ def create_or_update_authorization_rule( :rtype: ~azure.mgmt.relay.models.AuthorizationRule :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["models.AuthorizationRule"] + cls = kwargs.pop('cls', None) # type: ClsType["_models.AuthorizationRule"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } @@ -464,7 +464,7 @@ def create_or_update_authorization_rule( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(models.ErrorResponse, response) + error = self._deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize('AuthorizationRule', pipeline_response) @@ -532,7 +532,7 @@ def delete_authorization_rule( if response.status_code not in [200, 204]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(models.ErrorResponse, response) + error = self._deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) if cls: @@ -548,7 +548,7 @@ def get_authorization_rule( authorization_rule_name, # type: str **kwargs # type: Any ): - # type: (...) -> "models.AuthorizationRule" + # type: (...) -> "_models.AuthorizationRule" """Get authorizationRule for a WCF relay by name. :param resource_group_name: Name of the Resource group within the Azure subscription. @@ -564,7 +564,7 @@ def get_authorization_rule( :rtype: ~azure.mgmt.relay.models.AuthorizationRule :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["models.AuthorizationRule"] + cls = kwargs.pop('cls', None) # type: ClsType["_models.AuthorizationRule"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } @@ -597,7 +597,7 @@ def get_authorization_rule( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(models.ErrorResponse, response) + error = self._deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize('AuthorizationRule', pipeline_response) @@ -616,7 +616,7 @@ def list_keys( authorization_rule_name, # type: str **kwargs # type: Any ): - # type: (...) -> "models.AccessKeys" + # type: (...) -> "_models.AccessKeys" """Primary and secondary connection strings to the WCF relay. :param resource_group_name: Name of the Resource group within the Azure subscription. @@ -632,7 +632,7 @@ def list_keys( :rtype: ~azure.mgmt.relay.models.AccessKeys :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["models.AccessKeys"] + cls = kwargs.pop('cls', None) # type: ClsType["_models.AccessKeys"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } @@ -665,7 +665,7 @@ def list_keys( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(models.ErrorResponse, response) + error = self._deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize('AccessKeys', pipeline_response) @@ -682,10 +682,10 @@ def regenerate_keys( namespace_name, # type: str relay_name, # type: str authorization_rule_name, # type: str - parameters, # type: "models.RegenerateAccessKeyParameters" + parameters, # type: "_models.RegenerateAccessKeyParameters" **kwargs # type: Any ): - # type: (...) -> "models.AccessKeys" + # type: (...) -> "_models.AccessKeys" """Regenerates the primary or secondary connection strings to the WCF relay. :param resource_group_name: Name of the Resource group within the Azure subscription. @@ -703,7 +703,7 @@ def regenerate_keys( :rtype: ~azure.mgmt.relay.models.AccessKeys :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["models.AccessKeys"] + cls = kwargs.pop('cls', None) # type: ClsType["_models.AccessKeys"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } @@ -741,7 +741,7 @@ def regenerate_keys( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(models.ErrorResponse, response) + error = self._deserialize(_models.ErrorResponse, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize('AccessKeys', pipeline_response) diff --git a/sdk/relay/azure-mgmt-relay/tests/recordings/test_azure_mgmt_hybridconnection.test_hybridconnetion_curd.yaml b/sdk/relay/azure-mgmt-relay/tests/recordings/test_azure_mgmt_hybridconnection.test_hybridconnetion_curd.yaml index 60ba591a4798..8221c857fc82 100644 --- a/sdk/relay/azure-mgmt-relay/tests/recordings/test_azure_mgmt_hybridconnection.test_hybridconnetion_curd.yaml +++ b/sdk/relay/azure-mgmt-relay/tests/recordings/test_azure_mgmt_hybridconnection.test_hybridconnetion_curd.yaml @@ -14,13 +14,13 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-mgmt-relay/1.0.0b1 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-mgmt-relay/1.0.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_hybridconnection_test_hybridconnetion_curdc8bc1815/providers/Microsoft.Relay/namespaces/testingpythontestcasenamespacehybridconnection?api-version=2017-04-01 response: body: string: '{"sku":{"name":"Standard","tier":"Standard"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_hybridconnection_test_hybridconnetion_curdc8bc1815/providers/Microsoft.Relay/namespaces/testingpythontestcasenamespacehybridconnection","name":"testingpythontestcasenamespacehybridconnection","type":"Microsoft.Relay/Namespaces","location":"West - US","tags":{"tag1":"value1","tag2":"value2"},"properties":{"provisioningState":"Updating","metricId":"00000000-0000-0000-0000-000000000000:testingpythontestcasenamespacehybridconnection","createdAt":"2020-11-03T02:03:03.413Z","updatedAt":"2020-11-03T02:20:45.04Z","serviceBusEndpoint":"https://testingpythontestcasenamespacehybridconnection.servicebus.windows.net:443/","status":"Activating"}}' + US","tags":{"tag1":"value1","tag2":"value2"},"properties":{"provisioningState":"Created","metricId":"00000000-0000-0000-0000-000000000000:testingpythontestcasenamespacehybridconnection","createdAt":"2020-12-22T03:33:22.987Z","updatedAt":"2020-12-22T03:33:22.987Z","serviceBusEndpoint":"https://testingpythontestcasenamespacehybridconnection.servicebus.windows.net:443/","status":"Activating"}}' headers: cache-control: - no-cache @@ -29,16 +29,16 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 03 Nov 2020 02:20:45 GMT + - Tue, 22 Dec 2020 03:33:24 GMT expires: - '-1' pragma: - no-cache server: - - Service-Bus-Resource-Provider/CH3 + - Service-Bus-Resource-Provider/SN1 - Microsoft-HTTPAPI/2.0 server-sb: - - Service-Bus-Resource-Provider/CH3 + - Service-Bus-Resource-Provider/SN1 strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: @@ -62,22 +62,22 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-mgmt-relay/1.0.0b1 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-mgmt-relay/1.0.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_hybridconnection_test_hybridconnetion_curdc8bc1815/providers/Microsoft.Relay/namespaces/testingpythontestcasenamespacehybridconnection?api-version=2017-04-01 response: body: string: '{"sku":{"name":"Standard","tier":"Standard"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_hybridconnection_test_hybridconnetion_curdc8bc1815/providers/Microsoft.Relay/namespaces/testingpythontestcasenamespacehybridconnection","name":"testingpythontestcasenamespacehybridconnection","type":"Microsoft.Relay/Namespaces","location":"West - US","tags":{"tag1":"value1","tag2":"value2"},"properties":{"provisioningState":"Succeeded","metricId":"00000000-0000-0000-0000-000000000000:testingpythontestcasenamespacehybridconnection","createdAt":"2020-11-03T02:03:03.413Z","updatedAt":"2020-11-03T02:20:46.8Z","serviceBusEndpoint":"https://testingpythontestcasenamespacehybridconnection.servicebus.windows.net:443/","status":"Active"}}' + US","tags":{"tag1":"value1","tag2":"value2"},"properties":{"provisioningState":"Created","metricId":"00000000-0000-0000-0000-000000000000:testingpythontestcasenamespacehybridconnection","createdAt":"2020-12-22T03:33:22.987Z","updatedAt":"2020-12-22T03:33:22.987Z","serviceBusEndpoint":"https://testingpythontestcasenamespacehybridconnection.servicebus.windows.net:443/","status":"Activating"}}' headers: cache-control: - no-cache content-length: - - '768' + - '772' content-type: - application/json; charset=utf-8 date: - - Tue, 03 Nov 2020 02:21:15 GMT + - Tue, 22 Dec 2020 03:33:54 GMT expires: - '-1' pragma: @@ -98,6 +98,52 @@ interactions: status: code: 200 message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-mgmt-relay/1.0.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_hybridconnection_test_hybridconnetion_curdc8bc1815/providers/Microsoft.Relay/namespaces/testingpythontestcasenamespacehybridconnection?api-version=2017-04-01 + response: + body: + string: '{"sku":{"name":"Standard","tier":"Standard"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_hybridconnection_test_hybridconnetion_curdc8bc1815/providers/Microsoft.Relay/namespaces/testingpythontestcasenamespacehybridconnection","name":"testingpythontestcasenamespacehybridconnection","type":"Microsoft.Relay/Namespaces","location":"West + US","tags":{"tag1":"value1","tag2":"value2"},"properties":{"provisioningState":"Succeeded","metricId":"00000000-0000-0000-0000-000000000000:testingpythontestcasenamespacehybridconnection","createdAt":"2020-12-22T03:33:22.987Z","updatedAt":"2020-12-22T03:34:06.027Z","serviceBusEndpoint":"https://testingpythontestcasenamespacehybridconnection.servicebus.windows.net:443/","status":"Active"}}' + headers: + cache-control: + - no-cache + content-length: + - '770' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 22 Dec 2020 03:34:24 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Service-Bus-Resource-Provider/SN1 + - Microsoft-HTTPAPI/2.0 + server-sb: + - Service-Bus-Resource-Provider/SN1 + 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: @@ -108,31 +154,31 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-mgmt-relay/1.0.0b1 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-mgmt-relay/1.0.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_hybridconnection_test_hybridconnetion_curdc8bc1815/providers/Microsoft.Relay/namespaces/testingpythontestcasenamespacehybridconnection?api-version=2017-04-01 response: body: string: '{"sku":{"name":"Standard","tier":"Standard"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_hybridconnection_test_hybridconnetion_curdc8bc1815/providers/Microsoft.Relay/namespaces/testingpythontestcasenamespacehybridconnection","name":"testingpythontestcasenamespacehybridconnection","type":"Microsoft.Relay/Namespaces","location":"West - US","tags":{"tag1":"value1","tag2":"value2"},"properties":{"provisioningState":"Succeeded","metricId":"00000000-0000-0000-0000-000000000000:testingpythontestcasenamespacehybridconnection","createdAt":"2020-11-03T02:03:03.413Z","updatedAt":"2020-11-03T02:20:46.8Z","serviceBusEndpoint":"https://testingpythontestcasenamespacehybridconnection.servicebus.windows.net:443/","status":"Active"}}' + US","tags":{"tag1":"value1","tag2":"value2"},"properties":{"provisioningState":"Succeeded","metricId":"00000000-0000-0000-0000-000000000000:testingpythontestcasenamespacehybridconnection","createdAt":"2020-12-22T03:33:22.987Z","updatedAt":"2020-12-22T03:34:06.027Z","serviceBusEndpoint":"https://testingpythontestcasenamespacehybridconnection.servicebus.windows.net:443/","status":"Active"}}' headers: cache-control: - no-cache content-length: - - '768' + - '770' content-type: - application/json; charset=utf-8 date: - - Tue, 03 Nov 2020 02:21:15 GMT + - Tue, 22 Dec 2020 03:34:25 GMT expires: - '-1' pragma: - no-cache server: - - Service-Bus-Resource-Provider/CH3 + - Service-Bus-Resource-Provider/SN1 - Microsoft-HTTPAPI/2.0 server-sb: - - Service-Bus-Resource-Provider/CH3 + - Service-Bus-Resource-Provider/SN1 strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: @@ -159,23 +205,23 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-mgmt-relay/1.0.0b1 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-mgmt-relay/1.0.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_hybridconnection_test_hybridconnetion_curdc8bc1815/providers/Microsoft.Relay/namespaces/testingpythontestcasenamespacehybridconnection/hybridConnections/testingpythontestcasehybridconnection?api-version=2017-04-01 response: body: string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_hybridconnection_test_hybridconnetion_curdc8bc1815/providers/Microsoft.Relay/namespaces/testingpythontestcasenamespacehybridconnection/hybridConnections/testingpythontestcasehybridconnection","name":"testingpythontestcasehybridconnection","type":"Microsoft.Relay/Namespaces/HybridConnections","location":"West - US","properties":{"createdAt":"0001-01-01T00:00:00","updatedAt":"0001-01-01T00:00:00","listenerCount":0,"requiresClientAuthorization":true,"userMetadata":"User + US","properties":{"createdAt":"2020-12-22T03:34:27.9322971Z","updatedAt":"2020-12-22T03:34:27.9322971Z","listenerCount":0,"requiresClientAuthorization":true,"userMetadata":"User data for HybridConnection"}}' headers: cache-control: - no-cache content-length: - - '588' + - '606' content-type: - application/json; charset=utf-8 date: - - Tue, 03 Nov 2020 02:21:16 GMT + - Tue, 22 Dec 2020 03:34:27 GMT expires: - '-1' pragma: @@ -208,13 +254,13 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-mgmt-relay/1.0.0b1 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-mgmt-relay/1.0.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_hybridconnection_test_hybridconnetion_curdc8bc1815/providers/Microsoft.Relay/namespaces/testingpythontestcasenamespacehybridconnection/hybridConnections/testingpythontestcasehybridconnection?api-version=2017-04-01 response: body: string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_hybridconnection_test_hybridconnetion_curdc8bc1815/providers/Microsoft.Relay/namespaces/testingpythontestcasenamespacehybridconnection/hybridConnections/testingpythontestcasehybridconnection","name":"testingpythontestcasehybridconnection","type":"Microsoft.Relay/Namespaces/HybridConnections","location":"West - US","properties":{"createdAt":"2020-11-03T02:18:30.1009414Z","updatedAt":"2020-11-03T02:21:16.7700008Z","listenerCount":0,"requiresClientAuthorization":true,"userMetadata":"User + US","properties":{"createdAt":"2020-12-22T03:34:27.9322971Z","updatedAt":"2020-12-22T03:34:27.9322971Z","listenerCount":0,"requiresClientAuthorization":true,"userMetadata":"User data for HybridConnection"}}' headers: cache-control: @@ -224,7 +270,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 03 Nov 2020 02:21:17 GMT + - Tue, 22 Dec 2020 03:34:28 GMT expires: - '-1' pragma: @@ -255,13 +301,13 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-mgmt-relay/1.0.0b1 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-mgmt-relay/1.0.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_hybridconnection_test_hybridconnetion_curdc8bc1815/providers/Microsoft.Relay/namespaces/testingpythontestcasenamespacehybridconnection/hybridConnections?api-version=2017-04-01 response: body: string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_hybridconnection_test_hybridconnetion_curdc8bc1815/providers/Microsoft.Relay/namespaces/testingpythontestcasenamespacehybridconnection/hybridConnections/testingpythontestcasehybridconnection","name":"testingpythontestcasehybridconnection","type":"Microsoft.Relay/Namespaces/HybridConnections","location":"West - US","properties":{"createdAt":"2020-11-03T02:18:30.1009414Z","updatedAt":"2020-11-03T02:21:16.7700008Z","listenerCount":0,"requiresClientAuthorization":true,"userMetadata":"User + US","properties":{"createdAt":"2020-12-22T03:34:27.9322971Z","updatedAt":"2020-12-22T03:34:27.9322971Z","listenerCount":0,"requiresClientAuthorization":true,"userMetadata":"User data for HybridConnection"}}]}' headers: cache-control: @@ -271,7 +317,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 03 Nov 2020 02:21:18 GMT + - Tue, 22 Dec 2020 03:34:29 GMT expires: - '-1' pragma: @@ -308,7 +354,7 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-mgmt-relay/1.0.0b1 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-mgmt-relay/1.0.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_hybridconnection_test_hybridconnetion_curdc8bc1815/providers/Microsoft.Relay/namespaces/testingpythontestcasenamespacehybridconnection/hybridConnections/testingpythontestcasehybridconnection?api-version=2017-04-01 response: @@ -324,16 +370,16 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 03 Nov 2020 02:21:18 GMT + - Tue, 22 Dec 2020 03:34:30 GMT expires: - '-1' pragma: - no-cache server: - - Service-Bus-Resource-Provider/CH3 + - Service-Bus-Resource-Provider/SN1 - Microsoft-HTTPAPI/2.0 server-sb: - - Service-Bus-Resource-Provider/CH3 + - Service-Bus-Resource-Provider/SN1 strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: @@ -361,7 +407,7 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-mgmt-relay/1.0.0b1 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-mgmt-relay/1.0.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_hybridconnection_test_hybridconnetion_curdc8bc1815/providers/Microsoft.Relay/namespaces/testingpythontestcasenamespacehybridconnection/hybridConnections/testingpythontestcasehybridconnection/authorizationRules/testingauthrulepy?api-version=2017-04-01 response: @@ -376,16 +422,16 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 03 Nov 2020 02:21:19 GMT + - Tue, 22 Dec 2020 03:34:31 GMT expires: - '-1' pragma: - no-cache server: - - Service-Bus-Resource-Provider/CH3 + - Service-Bus-Resource-Provider/SN1 - Microsoft-HTTPAPI/2.0 server-sb: - - Service-Bus-Resource-Provider/CH3 + - Service-Bus-Resource-Provider/SN1 strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: @@ -409,7 +455,7 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-mgmt-relay/1.0.0b1 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-mgmt-relay/1.0.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_hybridconnection_test_hybridconnetion_curdc8bc1815/providers/Microsoft.Relay/namespaces/testingpythontestcasenamespacehybridconnection/hybridConnections/testingpythontestcasehybridconnection/authorizationRules/testingauthrulepy?api-version=2017-04-01 response: @@ -424,7 +470,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 03 Nov 2020 02:21:20 GMT + - Tue, 22 Dec 2020 03:34:32 GMT expires: - '-1' pragma: @@ -459,7 +505,7 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-mgmt-relay/1.0.0b1 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-mgmt-relay/1.0.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_hybridconnection_test_hybridconnetion_curdc8bc1815/providers/Microsoft.Relay/namespaces/testingpythontestcasenamespacehybridconnection/hybridConnections/testingpythontestcasehybridconnection/authorizationRules/testingauthrulepy?api-version=2017-04-01 response: @@ -474,7 +520,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 03 Nov 2020 02:21:20 GMT + - Tue, 22 Dec 2020 03:34:32 GMT expires: - '-1' pragma: @@ -507,7 +553,7 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-mgmt-relay/1.0.0b1 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-mgmt-relay/1.0.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_hybridconnection_test_hybridconnetion_curdc8bc1815/providers/Microsoft.Relay/namespaces/testingpythontestcasenamespacehybridconnection/hybridConnections/testingpythontestcasehybridconnection/authorizationRules?api-version=2017-04-01 response: @@ -522,7 +568,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 03 Nov 2020 02:21:21 GMT + - Tue, 22 Dec 2020 03:34:33 GMT expires: - '-1' pragma: @@ -555,12 +601,12 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-mgmt-relay/1.0.0b1 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-mgmt-relay/1.0.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) method: POST uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_hybridconnection_test_hybridconnetion_curdc8bc1815/providers/Microsoft.Relay/namespaces/testingpythontestcasenamespacehybridconnection/hybridConnections/testingpythontestcasehybridconnection/authorizationRules/testingauthrulepy/listKeys?api-version=2017-04-01 response: body: - string: '{"primaryConnectionString":"Endpoint=sb://testingpythontestcasenamespacehybridconnection.servicebus.windows.net/;SharedAccessKeyName=testingauthrulepy;SharedAccessKey=Kuj0vu/gefo/Er6cP++b2dC26aUzcaLRAI5mLl6H3m4=;EntityPath=testingpythontestcasehybridconnection","secondaryConnectionString":"Endpoint=sb://testingpythontestcasenamespacehybridconnection.servicebus.windows.net/;SharedAccessKeyName=testingauthrulepy;SharedAccessKey=4n6E2Zr0VLJ+Ik7hXhLNa2Tsh3Cf7C0fYECvRFUOzLo=;EntityPath=testingpythontestcasehybridconnection","primaryKey":"Kuj0vu/gefo/Er6cP++b2dC26aUzcaLRAI5mLl6H3m4=","secondaryKey":"4n6E2Zr0VLJ+Ik7hXhLNa2Tsh3Cf7C0fYECvRFUOzLo=","keyName":"testingauthrulepy"}' + string: '{"primaryConnectionString":"Endpoint=sb://testingpythontestcasenamespacehybridconnection.servicebus.windows.net/;SharedAccessKeyName=testingauthrulepy;SharedAccessKey=kVUA3jngk5bfCunJhQfLYH2zjwd4TmGs928vfZ3AiNg=;EntityPath=testingpythontestcasehybridconnection","secondaryConnectionString":"Endpoint=sb://testingpythontestcasenamespacehybridconnection.servicebus.windows.net/;SharedAccessKeyName=testingauthrulepy;SharedAccessKey=Ro86PuoQuFgdbT5u3sh/kjnA60ZQuznylcrUnSKhkxk=;EntityPath=testingpythontestcasehybridconnection","primaryKey":"kVUA3jngk5bfCunJhQfLYH2zjwd4TmGs928vfZ3AiNg=","secondaryKey":"Ro86PuoQuFgdbT5u3sh/kjnA60ZQuznylcrUnSKhkxk=","keyName":"testingauthrulepy"}' headers: cache-control: - no-cache @@ -569,7 +615,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 03 Nov 2020 02:21:21 GMT + - Tue, 22 Dec 2020 03:34:33 GMT expires: - '-1' pragma: @@ -606,12 +652,12 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-mgmt-relay/1.0.0b1 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-mgmt-relay/1.0.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) method: POST uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_hybridconnection_test_hybridconnetion_curdc8bc1815/providers/Microsoft.Relay/namespaces/testingpythontestcasenamespacehybridconnection/hybridConnections/testingpythontestcasehybridconnection/authorizationRules/testingauthrulepy/regenerateKeys?api-version=2017-04-01 response: body: - string: '{"primaryConnectionString":"Endpoint=sb://testingpythontestcasenamespacehybridconnection.servicebus.windows.net/;SharedAccessKeyName=testingauthrulepy;SharedAccessKey=DWhA8XuA5JNQ1VWbi21e6ngpxE3u20RUmdk9+52zDVk=;EntityPath=testingpythontestcasehybridconnection","secondaryConnectionString":"Endpoint=sb://testingpythontestcasenamespacehybridconnection.servicebus.windows.net/;SharedAccessKeyName=testingauthrulepy;SharedAccessKey=4n6E2Zr0VLJ+Ik7hXhLNa2Tsh3Cf7C0fYECvRFUOzLo=;EntityPath=testingpythontestcasehybridconnection","primaryKey":"DWhA8XuA5JNQ1VWbi21e6ngpxE3u20RUmdk9+52zDVk=","secondaryKey":"4n6E2Zr0VLJ+Ik7hXhLNa2Tsh3Cf7C0fYECvRFUOzLo=","keyName":"testingauthrulepy"}' + string: '{"primaryConnectionString":"Endpoint=sb://testingpythontestcasenamespacehybridconnection.servicebus.windows.net/;SharedAccessKeyName=testingauthrulepy;SharedAccessKey=eRRpAMNY+e/96rKi9t3DZ2xGZUrh5XlmZcNfvJgxcLI=;EntityPath=testingpythontestcasehybridconnection","secondaryConnectionString":"Endpoint=sb://testingpythontestcasenamespacehybridconnection.servicebus.windows.net/;SharedAccessKeyName=testingauthrulepy;SharedAccessKey=Ro86PuoQuFgdbT5u3sh/kjnA60ZQuznylcrUnSKhkxk=;EntityPath=testingpythontestcasehybridconnection","primaryKey":"eRRpAMNY+e/96rKi9t3DZ2xGZUrh5XlmZcNfvJgxcLI=","secondaryKey":"Ro86PuoQuFgdbT5u3sh/kjnA60ZQuznylcrUnSKhkxk=","keyName":"testingauthrulepy"}' headers: cache-control: - no-cache @@ -620,16 +666,16 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 03 Nov 2020 02:21:22 GMT + - Tue, 22 Dec 2020 03:34:34 GMT expires: - '-1' pragma: - no-cache server: - - Service-Bus-Resource-Provider/CH3 + - Service-Bus-Resource-Provider/SN1 - Microsoft-HTTPAPI/2.0 server-sb: - - Service-Bus-Resource-Provider/CH3 + - Service-Bus-Resource-Provider/SN1 strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: @@ -657,12 +703,12 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-mgmt-relay/1.0.0b1 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-mgmt-relay/1.0.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) method: POST uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_hybridconnection_test_hybridconnetion_curdc8bc1815/providers/Microsoft.Relay/namespaces/testingpythontestcasenamespacehybridconnection/hybridConnections/testingpythontestcasehybridconnection/authorizationRules/testingauthrulepy/regenerateKeys?api-version=2017-04-01 response: body: - string: '{"primaryConnectionString":"Endpoint=sb://testingpythontestcasenamespacehybridconnection.servicebus.windows.net/;SharedAccessKeyName=testingauthrulepy;SharedAccessKey=DWhA8XuA5JNQ1VWbi21e6ngpxE3u20RUmdk9+52zDVk=;EntityPath=testingpythontestcasehybridconnection","secondaryConnectionString":"Endpoint=sb://testingpythontestcasenamespacehybridconnection.servicebus.windows.net/;SharedAccessKeyName=testingauthrulepy;SharedAccessKey=9KXk6ftflBBZiFu/98rxtlq+bNN/y52/kbizm4I+fLg=;EntityPath=testingpythontestcasehybridconnection","primaryKey":"DWhA8XuA5JNQ1VWbi21e6ngpxE3u20RUmdk9+52zDVk=","secondaryKey":"9KXk6ftflBBZiFu/98rxtlq+bNN/y52/kbizm4I+fLg=","keyName":"testingauthrulepy"}' + string: '{"primaryConnectionString":"Endpoint=sb://testingpythontestcasenamespacehybridconnection.servicebus.windows.net/;SharedAccessKeyName=testingauthrulepy;SharedAccessKey=eRRpAMNY+e/96rKi9t3DZ2xGZUrh5XlmZcNfvJgxcLI=;EntityPath=testingpythontestcasehybridconnection","secondaryConnectionString":"Endpoint=sb://testingpythontestcasenamespacehybridconnection.servicebus.windows.net/;SharedAccessKeyName=testingauthrulepy;SharedAccessKey=Mw1hfVP1RTmjd5vs6fap05u4xBgOd5uBAuF1jPmV2ys=;EntityPath=testingpythontestcasehybridconnection","primaryKey":"eRRpAMNY+e/96rKi9t3DZ2xGZUrh5XlmZcNfvJgxcLI=","secondaryKey":"Mw1hfVP1RTmjd5vs6fap05u4xBgOd5uBAuF1jPmV2ys=","keyName":"testingauthrulepy"}' headers: cache-control: - no-cache @@ -671,16 +717,16 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 03 Nov 2020 02:21:23 GMT + - Tue, 22 Dec 2020 03:34:35 GMT expires: - '-1' pragma: - no-cache server: - - Service-Bus-Resource-Provider/CH3 + - Service-Bus-Resource-Provider/SN1 - Microsoft-HTTPAPI/2.0 server-sb: - - Service-Bus-Resource-Provider/CH3 + - Service-Bus-Resource-Provider/SN1 strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: @@ -706,7 +752,7 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-mgmt-relay/1.0.0b1 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-mgmt-relay/1.0.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) method: DELETE uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_hybridconnection_test_hybridconnetion_curdc8bc1815/providers/Microsoft.Relay/namespaces/testingpythontestcasenamespacehybridconnection/hybridConnections/testingpythontestcasehybridconnection/authorizationRules/testingauthrulepy?api-version=2017-04-01 response: @@ -718,16 +764,16 @@ interactions: content-length: - '0' date: - - Tue, 03 Nov 2020 02:21:23 GMT + - Tue, 22 Dec 2020 03:34:35 GMT expires: - '-1' pragma: - no-cache server: - - Service-Bus-Resource-Provider/CH3 + - Service-Bus-Resource-Provider/SN1 - Microsoft-HTTPAPI/2.0 server-sb: - - Service-Bus-Resource-Provider/CH3 + - Service-Bus-Resource-Provider/SN1 strict-transport-security: - max-age=31536000; includeSubDomains x-content-type-options: @@ -749,7 +795,7 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-mgmt-relay/1.0.0b1 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-mgmt-relay/1.0.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) method: DELETE uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_hybridconnection_test_hybridconnetion_curdc8bc1815/providers/Microsoft.Relay/namespaces/testingpythontestcasenamespacehybridconnection/hybridConnections/testingpythontestcasehybridconnection?api-version=2017-04-01 response: @@ -761,16 +807,16 @@ interactions: content-length: - '0' date: - - Tue, 03 Nov 2020 02:21:24 GMT + - Tue, 22 Dec 2020 03:34:36 GMT expires: - '-1' pragma: - no-cache server: - - Service-Bus-Resource-Provider/CH3 + - Service-Bus-Resource-Provider/SN1 - Microsoft-HTTPAPI/2.0 server-sb: - - Service-Bus-Resource-Provider/CH3 + - Service-Bus-Resource-Provider/SN1 strict-transport-security: - max-age=31536000; includeSubDomains x-content-type-options: @@ -792,7 +838,7 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-mgmt-relay/1.0.0b1 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-mgmt-relay/1.0.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) method: DELETE uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_hybridconnection_test_hybridconnetion_curdc8bc1815/providers/Microsoft.Relay/namespaces/testingpythontestcasenamespacehybridconnection?api-version=2017-04-01 response: @@ -804,7 +850,7 @@ interactions: content-length: - '0' date: - - Tue, 03 Nov 2020 02:21:25 GMT + - Tue, 22 Dec 2020 03:34:37 GMT expires: - '-1' location: @@ -812,10 +858,10 @@ interactions: pragma: - no-cache server: - - Service-Bus-Resource-Provider/CH3 + - Service-Bus-Resource-Provider/SN1 - Microsoft-HTTPAPI/2.0 server-sb: - - Service-Bus-Resource-Provider/CH3 + - Service-Bus-Resource-Provider/SN1 strict-transport-security: - max-age=31536000; includeSubDomains x-content-type-options: @@ -835,7 +881,7 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-mgmt-relay/1.0.0b1 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-mgmt-relay/1.0.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_hybridconnection_test_hybridconnetion_curdc8bc1815/providers/Microsoft.Relay/namespaces/testingpythontestcasenamespacehybridconnection/operationresults/testingpythontestcasenamespacehybridconnection?api-version=2017-04-01 response: @@ -847,16 +893,16 @@ interactions: content-length: - '0' date: - - Tue, 03 Nov 2020 02:21:56 GMT + - Tue, 22 Dec 2020 03:35:14 GMT expires: - '-1' pragma: - no-cache server: - - Service-Bus-Resource-Provider/CH3 + - Service-Bus-Resource-Provider/SN1 - Microsoft-HTTPAPI/2.0 server-sb: - - Service-Bus-Resource-Provider/CH3 + - Service-Bus-Resource-Provider/SN1 strict-transport-security: - max-age=31536000; includeSubDomains x-content-type-options: diff --git a/sdk/relay/azure-mgmt-relay/tests/recordings/test_azure_mgmt_relay_check_name_availability.test_eh_namespace_available.yaml b/sdk/relay/azure-mgmt-relay/tests/recordings/test_azure_mgmt_relay_check_name_availability.test_eh_namespace_available.yaml index 35ddd9a7e499..6244f64c4128 100644 --- a/sdk/relay/azure-mgmt-relay/tests/recordings/test_azure_mgmt_relay_check_name_availability.test_eh_namespace_available.yaml +++ b/sdk/relay/azure-mgmt-relay/tests/recordings/test_azure_mgmt_relay_check_name_availability.test_eh_namespace_available.yaml @@ -13,7 +13,7 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-mgmt-relay/1.0.0b1 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-mgmt-relay/1.0.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) method: POST uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Relay/checkNameAvailability?api-version=2017-04-01 response: @@ -27,16 +27,16 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 03 Nov 2020 02:26:57 GMT + - Tue, 22 Dec 2020 03:35:19 GMT expires: - '-1' pragma: - no-cache server: - - Service-Bus-Resource-Provider/SN1 + - Service-Bus-Resource-Provider/CH3 - Microsoft-HTTPAPI/2.0 server-sb: - - Service-Bus-Resource-Provider/SN1 + - Service-Bus-Resource-Provider/CH3 strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: @@ -46,7 +46,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1199' + - '1198' status: code: 200 message: OK diff --git a/sdk/relay/azure-mgmt-relay/tests/recordings/test_azure_mgmt_relay_namespace.test_relay_namespace_curd.yaml b/sdk/relay/azure-mgmt-relay/tests/recordings/test_azure_mgmt_relay_namespace.test_relay_namespace_curd.yaml index 340bc7467379..e8ab3cdfca87 100644 --- a/sdk/relay/azure-mgmt-relay/tests/recordings/test_azure_mgmt_relay_namespace.test_relay_namespace_curd.yaml +++ b/sdk/relay/azure-mgmt-relay/tests/recordings/test_azure_mgmt_relay_namespace.test_relay_namespace_curd.yaml @@ -14,13 +14,13 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-mgmt-relay/1.0.0b1 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-mgmt-relay/1.0.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_relay_namespace_test_relay_namespace_curdaba01766/providers/Microsoft.Relay/namespaces/testingpythontestcasenamespace?api-version=2017-04-01 response: body: string: '{"sku":{"name":"Standard","tier":"Standard"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_relay_namespace_test_relay_namespace_curdaba01766/providers/Microsoft.Relay/namespaces/testingpythontestcasenamespace","name":"testingpythontestcasenamespace","type":"Microsoft.Relay/Namespaces","location":"West - US","tags":{"tag1":"value1","tag2":"value2"},"properties":{"provisioningState":"Updating","metricId":"00000000-0000-0000-0000-000000000000:testingpythontestcasenamespace","createdAt":"2020-11-03T02:27:17.463Z","updatedAt":"2020-11-03T02:42:08.58Z","serviceBusEndpoint":"https://testingpythontestcasenamespace.servicebus.windows.net:443/","status":"Activating"}}' + US","tags":{"tag1":"value1","tag2":"value2"},"properties":{"provisioningState":"Created","metricId":"00000000-0000-0000-0000-000000000000:testingpythontestcasenamespace","createdAt":"2020-12-22T03:35:27.397Z","updatedAt":"2020-12-22T03:35:27.397Z","serviceBusEndpoint":"https://testingpythontestcasenamespace.servicebus.windows.net:443/","status":"Activating"}}' headers: cache-control: - no-cache @@ -29,16 +29,16 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 03 Nov 2020 02:42:08 GMT + - Tue, 22 Dec 2020 03:35:29 GMT expires: - '-1' pragma: - no-cache server: - - Service-Bus-Resource-Provider/CH3 + - Service-Bus-Resource-Provider/SN1 - Microsoft-HTTPAPI/2.0 server-sb: - - Service-Bus-Resource-Provider/CH3 + - Service-Bus-Resource-Provider/SN1 strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: @@ -48,7 +48,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1199' + - '1193' status: code: 200 message: OK @@ -62,31 +62,77 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-mgmt-relay/1.0.0b1 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-mgmt-relay/1.0.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_relay_namespace_test_relay_namespace_curdaba01766/providers/Microsoft.Relay/namespaces/testingpythontestcasenamespace?api-version=2017-04-01 response: body: string: '{"sku":{"name":"Standard","tier":"Standard"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_relay_namespace_test_relay_namespace_curdaba01766/providers/Microsoft.Relay/namespaces/testingpythontestcasenamespace","name":"testingpythontestcasenamespace","type":"Microsoft.Relay/Namespaces","location":"West - US","tags":{"tag1":"value1","tag2":"value2"},"properties":{"provisioningState":"Succeeded","metricId":"00000000-0000-0000-0000-000000000000:testingpythontestcasenamespace","createdAt":"2020-11-03T02:27:17.463Z","updatedAt":"2020-11-03T02:42:12.58Z","serviceBusEndpoint":"https://testingpythontestcasenamespace.servicebus.windows.net:443/","status":"Active"}}' + US","tags":{"tag1":"value1","tag2":"value2"},"properties":{"provisioningState":"Created","metricId":"00000000-0000-0000-0000-000000000000:testingpythontestcasenamespace","createdAt":"2020-12-22T03:35:27.397Z","updatedAt":"2020-12-22T03:35:27.397Z","serviceBusEndpoint":"https://testingpythontestcasenamespace.servicebus.windows.net:443/","status":"Activating"}}' headers: cache-control: - no-cache content-length: - - '704' + - '707' content-type: - application/json; charset=utf-8 date: - - Tue, 03 Nov 2020 02:42:39 GMT + - Tue, 22 Dec 2020 03:35:59 GMT expires: - '-1' pragma: - no-cache server: - - Service-Bus-Resource-Provider/CH3 + - Service-Bus-Resource-Provider/SN1 - Microsoft-HTTPAPI/2.0 server-sb: - - Service-Bus-Resource-Provider/CH3 + - Service-Bus-Resource-Provider/SN1 + 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-relay/1.0.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_relay_namespace_test_relay_namespace_curdaba01766/providers/Microsoft.Relay/namespaces/testingpythontestcasenamespace?api-version=2017-04-01 + response: + body: + string: '{"sku":{"name":"Standard","tier":"Standard"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_relay_namespace_test_relay_namespace_curdaba01766/providers/Microsoft.Relay/namespaces/testingpythontestcasenamespace","name":"testingpythontestcasenamespace","type":"Microsoft.Relay/Namespaces","location":"West + US","tags":{"tag1":"value1","tag2":"value2"},"properties":{"provisioningState":"Succeeded","metricId":"00000000-0000-0000-0000-000000000000:testingpythontestcasenamespace","createdAt":"2020-12-22T03:35:27.397Z","updatedAt":"2020-12-22T03:36:09.157Z","serviceBusEndpoint":"https://testingpythontestcasenamespace.servicebus.windows.net:443/","status":"Active"}}' + headers: + cache-control: + - no-cache + content-length: + - '705' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 22 Dec 2020 03:36:29 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Service-Bus-Resource-Provider/SN1 + - Microsoft-HTTPAPI/2.0 + server-sb: + - Service-Bus-Resource-Provider/SN1 strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: @@ -108,31 +154,31 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-mgmt-relay/1.0.0b1 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-mgmt-relay/1.0.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_relay_namespace_test_relay_namespace_curdaba01766/providers/Microsoft.Relay/namespaces/testingpythontestcasenamespace?api-version=2017-04-01 response: body: string: '{"sku":{"name":"Standard","tier":"Standard"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_relay_namespace_test_relay_namespace_curdaba01766/providers/Microsoft.Relay/namespaces/testingpythontestcasenamespace","name":"testingpythontestcasenamespace","type":"Microsoft.Relay/Namespaces","location":"West - US","tags":{"tag1":"value1","tag2":"value2"},"properties":{"provisioningState":"Succeeded","metricId":"00000000-0000-0000-0000-000000000000:testingpythontestcasenamespace","createdAt":"2020-11-03T02:27:17.463Z","updatedAt":"2020-11-03T02:42:12.58Z","serviceBusEndpoint":"https://testingpythontestcasenamespace.servicebus.windows.net:443/","status":"Active"}}' + US","tags":{"tag1":"value1","tag2":"value2"},"properties":{"provisioningState":"Succeeded","metricId":"00000000-0000-0000-0000-000000000000:testingpythontestcasenamespace","createdAt":"2020-12-22T03:35:27.397Z","updatedAt":"2020-12-22T03:36:09.157Z","serviceBusEndpoint":"https://testingpythontestcasenamespace.servicebus.windows.net:443/","status":"Active"}}' headers: cache-control: - no-cache content-length: - - '704' + - '705' content-type: - application/json; charset=utf-8 date: - - Tue, 03 Nov 2020 02:42:41 GMT + - Tue, 22 Dec 2020 03:36:29 GMT expires: - '-1' pragma: - no-cache server: - - Service-Bus-Resource-Provider/CH3 + - Service-Bus-Resource-Provider/SN1 - Microsoft-HTTPAPI/2.0 server-sb: - - Service-Bus-Resource-Provider/CH3 + - Service-Bus-Resource-Provider/SN1 strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: @@ -158,13 +204,13 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-mgmt-relay/1.0.0b1 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-mgmt-relay/1.0.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) method: PATCH uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_relay_namespace_test_relay_namespace_curdaba01766/providers/Microsoft.Relay/namespaces/testingpythontestcasenamespace?api-version=2017-04-01 response: body: string: '{"sku":{"name":"Standard","tier":"Standard"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_relay_namespace_test_relay_namespace_curdaba01766/providers/Microsoft.Relay/namespaces/testingpythontestcasenamespace","name":"testingpythontestcasenamespace","type":"Microsoft.Relay/Namespaces","location":"West - US","tags":{"tag1":"value1","tag2":"value2"},"properties":{"provisioningState":"Updating","metricId":"00000000-0000-0000-0000-000000000000:testingpythontestcasenamespace","createdAt":"2020-11-03T02:27:17.463Z","updatedAt":"2020-11-03T02:42:43.94Z","serviceBusEndpoint":"https://testingpythontestcasenamespace.servicebus.windows.net:443/","status":"Activating"}}' + US","tags":{"tag1":"value1","tag2":"value2"},"properties":{"provisioningState":"Updating","metricId":"00000000-0000-0000-0000-000000000000:testingpythontestcasenamespace","createdAt":"2020-12-22T03:35:27.397Z","updatedAt":"2020-12-22T03:36:31.79Z","serviceBusEndpoint":"https://testingpythontestcasenamespace.servicebus.windows.net:443/","status":"Activating"}}' headers: cache-control: - no-cache @@ -173,16 +219,16 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 03 Nov 2020 02:42:47 GMT + - Tue, 22 Dec 2020 03:36:33 GMT expires: - '-1' pragma: - no-cache server: - - Service-Bus-Resource-Provider/CH3 + - Service-Bus-Resource-Provider/SN1 - Microsoft-HTTPAPI/2.0 server-sb: - - Service-Bus-Resource-Provider/CH3 + - Service-Bus-Resource-Provider/SN1 strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: @@ -192,7 +238,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1198' + - '1192' status: code: 200 message: OK @@ -206,31 +252,31 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-mgmt-relay/1.0.0b1 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-mgmt-relay/1.0.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_relay_namespace_test_relay_namespace_curdaba01766/providers/Microsoft.Relay/namespaces?api-version=2017-04-01 response: body: string: '{"value":[{"sku":{"name":"Standard","tier":"Standard"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_relay_namespace_test_relay_namespace_curdaba01766/providers/Microsoft.Relay/namespaces/testingpythontestcasenamespace","name":"testingpythontestcasenamespace","type":"Microsoft.Relay/Namespaces","location":"West - US","tags":{"tag1":"value1","tag2":"value2"},"properties":{"provisioningState":"Succeeded","metricId":"00000000-0000-0000-0000-000000000000:testingpythontestcasenamespace","createdAt":"2020-11-03T02:27:17.463Z","updatedAt":"2020-11-03T02:42:46.263Z","serviceBusEndpoint":"https://testingpythontestcasenamespace.servicebus.windows.net:443/","status":"Active"}}]}' + US","tags":{"tag1":"value1","tag2":"value2"},"properties":{"provisioningState":"Succeeded","metricId":"00000000-0000-0000-0000-000000000000:testingpythontestcasenamespace","createdAt":"2020-12-22T03:35:27.397Z","updatedAt":"2020-12-22T03:36:34Z","serviceBusEndpoint":"https://testingpythontestcasenamespace.servicebus.windows.net:443/","status":"Active"}}]}' headers: cache-control: - no-cache content-length: - - '717' + - '713' content-type: - application/json; charset=utf-8 date: - - Tue, 03 Nov 2020 02:42:47 GMT + - Tue, 22 Dec 2020 03:36:34 GMT expires: - '-1' pragma: - no-cache server: - - Service-Bus-Resource-Provider/CH3 + - Service-Bus-Resource-Provider/SN1 - Microsoft-HTTPAPI/2.0 server-sb: - - Service-Bus-Resource-Provider/CH3 + - Service-Bus-Resource-Provider/SN1 strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: @@ -252,31 +298,31 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-mgmt-relay/1.0.0b1 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-mgmt-relay/1.0.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Relay/namespaces?api-version=2017-04-01 response: body: string: '{"value":[{"sku":{"name":"Standard","tier":"Standard"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_relay_namespace_test_relay_namespace_curdaba01766/providers/Microsoft.Relay/namespaces/testingpythontestcasenamespace","name":"testingpythontestcasenamespace","type":"Microsoft.Relay/Namespaces","location":"West - US","tags":{"tag1":"value1","tag2":"value2"},"properties":{"provisioningState":"Succeeded","metricId":"00000000-0000-0000-0000-000000000000:testingpythontestcasenamespace","createdAt":"2020-11-03T02:27:17.463Z","updatedAt":"2020-11-03T02:42:46.263Z","serviceBusEndpoint":"https://testingpythontestcasenamespace.servicebus.windows.net:443/","status":"Active"}}]}' + US","tags":{"tag1":"value1","tag2":"value2"},"properties":{"provisioningState":"Succeeded","metricId":"00000000-0000-0000-0000-000000000000:testingpythontestcasenamespace","createdAt":"2020-12-22T03:35:27.397Z","updatedAt":"2020-12-22T03:36:34Z","serviceBusEndpoint":"https://testingpythontestcasenamespace.servicebus.windows.net:443/","status":"Active"}}]}' headers: cache-control: - no-cache content-length: - - '717' + - '713' content-type: - application/json; charset=utf-8 date: - - Tue, 03 Nov 2020 02:42:47 GMT + - Tue, 22 Dec 2020 03:36:34 GMT expires: - '-1' pragma: - no-cache server: - - Service-Bus-Resource-Provider/CH3 + - Service-Bus-Resource-Provider/SN1 - Microsoft-HTTPAPI/2.0 server-sb: - - Service-Bus-Resource-Provider/CH3 + - Service-Bus-Resource-Provider/SN1 strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: @@ -298,7 +344,7 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-mgmt-relay/1.0.0b1 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-mgmt-relay/1.0.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_relay_namespace_test_relay_namespace_curdaba01766/providers/Microsoft.Relay/namespaces/testingpythontestcasenamespace/authorizationRules/RootManageSharedAccessKey?api-version=2017-04-01 response: @@ -313,16 +359,16 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 03 Nov 2020 02:42:48 GMT + - Tue, 22 Dec 2020 03:36:35 GMT expires: - '-1' pragma: - no-cache server: - - Service-Bus-Resource-Provider/CH3 + - Service-Bus-Resource-Provider/SN1 - Microsoft-HTTPAPI/2.0 server-sb: - - Service-Bus-Resource-Provider/CH3 + - Service-Bus-Resource-Provider/SN1 strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: @@ -348,7 +394,7 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-mgmt-relay/1.0.0b1 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-mgmt-relay/1.0.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_relay_namespace_test_relay_namespace_curdaba01766/providers/Microsoft.Relay/namespaces/testingpythontestcasenamespace/authorizationRules/testingauthrulepy?api-version=2017-04-01 response: @@ -363,16 +409,16 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 03 Nov 2020 02:42:55 GMT + - Tue, 22 Dec 2020 03:36:41 GMT expires: - '-1' pragma: - no-cache server: - - Service-Bus-Resource-Provider/CH3 + - Service-Bus-Resource-Provider/SN1 - Microsoft-HTTPAPI/2.0 server-sb: - - Service-Bus-Resource-Provider/CH3 + - Service-Bus-Resource-Provider/SN1 strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: @@ -382,7 +428,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1197' + - '1191' status: code: 200 message: OK @@ -396,7 +442,7 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-mgmt-relay/1.0.0b1 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-mgmt-relay/1.0.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_relay_namespace_test_relay_namespace_curdaba01766/providers/Microsoft.Relay/namespaces/testingpythontestcasenamespace/authorizationRules/testingauthrulepy?api-version=2017-04-01 response: @@ -411,16 +457,16 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 03 Nov 2020 02:42:55 GMT + - Tue, 22 Dec 2020 03:36:42 GMT expires: - '-1' pragma: - no-cache server: - - Service-Bus-Resource-Provider/CH3 + - Service-Bus-Resource-Provider/SN1 - Microsoft-HTTPAPI/2.0 server-sb: - - Service-Bus-Resource-Provider/CH3 + - Service-Bus-Resource-Provider/SN1 strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: @@ -446,7 +492,7 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-mgmt-relay/1.0.0b1 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-mgmt-relay/1.0.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_relay_namespace_test_relay_namespace_curdaba01766/providers/Microsoft.Relay/namespaces/testingpythontestcasenamespace/authorizationRules/testingauthrulepy?api-version=2017-04-01 response: @@ -461,16 +507,16 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 03 Nov 2020 02:43:02 GMT + - Tue, 22 Dec 2020 03:36:49 GMT expires: - '-1' pragma: - no-cache server: - - Service-Bus-Resource-Provider/CH3 + - Service-Bus-Resource-Provider/SN1 - Microsoft-HTTPAPI/2.0 server-sb: - - Service-Bus-Resource-Provider/CH3 + - Service-Bus-Resource-Provider/SN1 strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: @@ -480,7 +526,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1196' + - '1190' status: code: 200 message: OK @@ -494,7 +540,7 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-mgmt-relay/1.0.0b1 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-mgmt-relay/1.0.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_relay_namespace_test_relay_namespace_curdaba01766/providers/Microsoft.Relay/namespaces/testingpythontestcasenamespace/authorizationRules?api-version=2017-04-01 response: @@ -510,16 +556,16 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 03 Nov 2020 02:43:03 GMT + - Tue, 22 Dec 2020 03:36:49 GMT expires: - '-1' pragma: - no-cache server: - - Service-Bus-Resource-Provider/CH3 + - Service-Bus-Resource-Provider/SN1 - Microsoft-HTTPAPI/2.0 server-sb: - - Service-Bus-Resource-Provider/CH3 + - Service-Bus-Resource-Provider/SN1 strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: @@ -543,12 +589,12 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-mgmt-relay/1.0.0b1 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-mgmt-relay/1.0.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) method: POST uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_relay_namespace_test_relay_namespace_curdaba01766/providers/Microsoft.Relay/namespaces/testingpythontestcasenamespace/authorizationRules/testingauthrulepy/listKeys?api-version=2017-04-01 response: body: - string: '{"primaryConnectionString":"Endpoint=sb://testingpythontestcasenamespace.servicebus.windows.net/;SharedAccessKeyName=testingauthrulepy;SharedAccessKey=Yi8RP3dNbXJvYM2X6mnMHDuN/w+q/SP6ksjKqFjsxLs=","secondaryConnectionString":"Endpoint=sb://testingpythontestcasenamespace.servicebus.windows.net/;SharedAccessKeyName=testingauthrulepy;SharedAccessKey=li+gCzEZP3UNnnWltV42qF2IAwaNEP0TbyGSQnX6iCU=","primaryKey":"Yi8RP3dNbXJvYM2X6mnMHDuN/w+q/SP6ksjKqFjsxLs=","secondaryKey":"li+gCzEZP3UNnnWltV42qF2IAwaNEP0TbyGSQnX6iCU=","keyName":"testingauthrulepy"}' + string: '{"primaryConnectionString":"Endpoint=sb://testingpythontestcasenamespace.servicebus.windows.net/;SharedAccessKeyName=testingauthrulepy;SharedAccessKey=kxuuD1hkeQo51iABOZhKQPgoMtM2QwGXZRND4uApzf0=","secondaryConnectionString":"Endpoint=sb://testingpythontestcasenamespace.servicebus.windows.net/;SharedAccessKeyName=testingauthrulepy;SharedAccessKey=lj6UAa0441d+duc85Y0Lkn48N422WduzW/4jy1QxxDo=","primaryKey":"kxuuD1hkeQo51iABOZhKQPgoMtM2QwGXZRND4uApzf0=","secondaryKey":"lj6UAa0441d+duc85Y0Lkn48N422WduzW/4jy1QxxDo=","keyName":"testingauthrulepy"}' headers: cache-control: - no-cache @@ -557,16 +603,16 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 03 Nov 2020 02:43:04 GMT + - Tue, 22 Dec 2020 03:36:51 GMT expires: - '-1' pragma: - no-cache server: - - Service-Bus-Resource-Provider/CH3 + - Service-Bus-Resource-Provider/SN1 - Microsoft-HTTPAPI/2.0 server-sb: - - Service-Bus-Resource-Provider/CH3 + - Service-Bus-Resource-Provider/SN1 strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: @@ -576,7 +622,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1199' + - '1196' status: code: 200 message: OK @@ -594,12 +640,12 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-mgmt-relay/1.0.0b1 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-mgmt-relay/1.0.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) method: POST uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_relay_namespace_test_relay_namespace_curdaba01766/providers/Microsoft.Relay/namespaces/testingpythontestcasenamespace/authorizationRules/testingauthrulepy/regenerateKeys?api-version=2017-04-01 response: body: - string: '{"primaryConnectionString":"Endpoint=sb://testingpythontestcasenamespace.servicebus.windows.net/;SharedAccessKeyName=testingauthrulepy;SharedAccessKey=Op7C0BsZ1kUEFpKuFSpyr2N1JPgR+a+WKO8rmhhVkQE=","secondaryConnectionString":"Endpoint=sb://testingpythontestcasenamespace.servicebus.windows.net/;SharedAccessKeyName=testingauthrulepy;SharedAccessKey=li+gCzEZP3UNnnWltV42qF2IAwaNEP0TbyGSQnX6iCU=","primaryKey":"Op7C0BsZ1kUEFpKuFSpyr2N1JPgR+a+WKO8rmhhVkQE=","secondaryKey":"li+gCzEZP3UNnnWltV42qF2IAwaNEP0TbyGSQnX6iCU=","keyName":"testingauthrulepy"}' + string: '{"primaryConnectionString":"Endpoint=sb://testingpythontestcasenamespace.servicebus.windows.net/;SharedAccessKeyName=testingauthrulepy;SharedAccessKey=xKqaAcLYBmDuTJO05LzElpNWxrEKdu7bapTTTUajmmc=","secondaryConnectionString":"Endpoint=sb://testingpythontestcasenamespace.servicebus.windows.net/;SharedAccessKeyName=testingauthrulepy;SharedAccessKey=lj6UAa0441d+duc85Y0Lkn48N422WduzW/4jy1QxxDo=","primaryKey":"xKqaAcLYBmDuTJO05LzElpNWxrEKdu7bapTTTUajmmc=","secondaryKey":"lj6UAa0441d+duc85Y0Lkn48N422WduzW/4jy1QxxDo=","keyName":"testingauthrulepy"}' headers: cache-control: - no-cache @@ -608,16 +654,16 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 03 Nov 2020 02:43:11 GMT + - Tue, 22 Dec 2020 03:36:57 GMT expires: - '-1' pragma: - no-cache server: - - Service-Bus-Resource-Provider/CH3 + - Service-Bus-Resource-Provider/SN1 - Microsoft-HTTPAPI/2.0 server-sb: - - Service-Bus-Resource-Provider/CH3 + - Service-Bus-Resource-Provider/SN1 strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: @@ -627,7 +673,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1198' + - '1195' status: code: 200 message: OK @@ -645,12 +691,12 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-mgmt-relay/1.0.0b1 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-mgmt-relay/1.0.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) method: POST uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_relay_namespace_test_relay_namespace_curdaba01766/providers/Microsoft.Relay/namespaces/testingpythontestcasenamespace/authorizationRules/testingauthrulepy/regenerateKeys?api-version=2017-04-01 response: body: - string: '{"primaryConnectionString":"Endpoint=sb://testingpythontestcasenamespace.servicebus.windows.net/;SharedAccessKeyName=testingauthrulepy;SharedAccessKey=Op7C0BsZ1kUEFpKuFSpyr2N1JPgR+a+WKO8rmhhVkQE=","secondaryConnectionString":"Endpoint=sb://testingpythontestcasenamespace.servicebus.windows.net/;SharedAccessKeyName=testingauthrulepy;SharedAccessKey=6Du9Owm/VHzZf/UVUSmUi29OS+t+W05BE8sgbnmvOAI=","primaryKey":"Op7C0BsZ1kUEFpKuFSpyr2N1JPgR+a+WKO8rmhhVkQE=","secondaryKey":"6Du9Owm/VHzZf/UVUSmUi29OS+t+W05BE8sgbnmvOAI=","keyName":"testingauthrulepy"}' + string: '{"primaryConnectionString":"Endpoint=sb://testingpythontestcasenamespace.servicebus.windows.net/;SharedAccessKeyName=testingauthrulepy;SharedAccessKey=xKqaAcLYBmDuTJO05LzElpNWxrEKdu7bapTTTUajmmc=","secondaryConnectionString":"Endpoint=sb://testingpythontestcasenamespace.servicebus.windows.net/;SharedAccessKeyName=testingauthrulepy;SharedAccessKey=CETepA+aicMYqNDq02K7h8ropncduF2BMwF7iizbTCE=","primaryKey":"xKqaAcLYBmDuTJO05LzElpNWxrEKdu7bapTTTUajmmc=","secondaryKey":"CETepA+aicMYqNDq02K7h8ropncduF2BMwF7iizbTCE=","keyName":"testingauthrulepy"}' headers: cache-control: - no-cache @@ -659,16 +705,16 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 03 Nov 2020 02:43:17 GMT + - Tue, 22 Dec 2020 03:37:03 GMT expires: - '-1' pragma: - no-cache server: - - Service-Bus-Resource-Provider/CH3 + - Service-Bus-Resource-Provider/SN1 - Microsoft-HTTPAPI/2.0 server-sb: - - Service-Bus-Resource-Provider/CH3 + - Service-Bus-Resource-Provider/SN1 strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: @@ -678,7 +724,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1197' + - '1194' status: code: 200 message: OK @@ -694,7 +740,7 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-mgmt-relay/1.0.0b1 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-mgmt-relay/1.0.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) method: DELETE uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_relay_namespace_test_relay_namespace_curdaba01766/providers/Microsoft.Relay/namespaces/testingpythontestcasenamespace/authorizationRules/testingauthrulepy?api-version=2017-04-01 response: @@ -706,22 +752,22 @@ interactions: content-length: - '0' date: - - Tue, 03 Nov 2020 02:43:23 GMT + - Tue, 22 Dec 2020 03:37:09 GMT expires: - '-1' pragma: - no-cache server: - - Service-Bus-Resource-Provider/CH3 + - Service-Bus-Resource-Provider/SN1 - Microsoft-HTTPAPI/2.0 server-sb: - - Service-Bus-Resource-Provider/CH3 + - Service-Bus-Resource-Provider/SN1 strict-transport-security: - max-age=31536000; includeSubDomains x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-deletes: - - '14999' + - '14996' status: code: 200 message: OK @@ -735,7 +781,7 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-mgmt-relay/1.0.0b1 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-mgmt-relay/1.0.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_relay_namespace_test_relay_namespace_curdaba01766/providers/Microsoft.Relay/namespaces/testingpythontestcasenamespace/authorizationRules?api-version=2017-04-01 response: @@ -750,16 +796,16 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 03 Nov 2020 02:43:25 GMT + - Tue, 22 Dec 2020 03:37:10 GMT expires: - '-1' pragma: - no-cache server: - - Service-Bus-Resource-Provider/CH3 + - Service-Bus-Resource-Provider/SN1 - Microsoft-HTTPAPI/2.0 server-sb: - - Service-Bus-Resource-Provider/CH3 + - Service-Bus-Resource-Provider/SN1 strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: @@ -783,7 +829,7 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-mgmt-relay/1.0.0b1 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-mgmt-relay/1.0.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) method: DELETE uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_relay_namespace_test_relay_namespace_curdaba01766/providers/Microsoft.Relay/namespaces/testingpythontestcasenamespace?api-version=2017-04-01 response: @@ -795,7 +841,7 @@ interactions: content-length: - '0' date: - - Tue, 03 Nov 2020 02:43:26 GMT + - Tue, 22 Dec 2020 03:37:11 GMT expires: - '-1' location: @@ -803,16 +849,16 @@ interactions: pragma: - no-cache server: - - Service-Bus-Resource-Provider/CH3 + - Service-Bus-Resource-Provider/SN1 - Microsoft-HTTPAPI/2.0 server-sb: - - Service-Bus-Resource-Provider/CH3 + - Service-Bus-Resource-Provider/SN1 strict-transport-security: - max-age=31536000; includeSubDomains x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-deletes: - - '14998' + - '14995' status: code: 202 message: Accepted @@ -826,7 +872,7 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-mgmt-relay/1.0.0b1 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-mgmt-relay/1.0.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_relay_namespace_test_relay_namespace_curdaba01766/providers/Microsoft.Relay/namespaces/testingpythontestcasenamespace/operationresults/testingpythontestcasenamespace?api-version=2017-04-01 response: @@ -838,7 +884,7 @@ interactions: content-length: - '0' date: - - Tue, 03 Nov 2020 02:43:57 GMT + - Tue, 22 Dec 2020 03:37:41 GMT expires: - '-1' pragma: diff --git a/sdk/relay/azure-mgmt-relay/tests/recordings/test_azure_mgmt_wcfrelay.test_wcfrelay_curd.yaml b/sdk/relay/azure-mgmt-relay/tests/recordings/test_azure_mgmt_wcfrelay.test_wcfrelay_curd.yaml index 5f083b1b35b8..161b61d69080 100644 --- a/sdk/relay/azure-mgmt-relay/tests/recordings/test_azure_mgmt_wcfrelay.test_wcfrelay_curd.yaml +++ b/sdk/relay/azure-mgmt-relay/tests/recordings/test_azure_mgmt_wcfrelay.test_wcfrelay_curd.yaml @@ -14,22 +14,22 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-mgmt-relay/1.0.0b1 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-mgmt-relay/1.0.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_wcfrelay_test_wcfrelay_curd89e511ce/providers/Microsoft.Relay/namespaces/testingpythontestcaseeventhubnamespaceEventhub?api-version=2017-04-01 response: body: string: '{"sku":{"name":"Standard","tier":"Standard"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_wcfrelay_test_wcfrelay_curd89e511ce/providers/Microsoft.Relay/namespaces/testingpythontestcaseeventhubnamespaceEventhub","name":"testingpythontestcaseeventhubnamespaceEventhub","type":"Microsoft.Relay/Namespaces","location":"West - US","tags":{"tag1":"value1","tag2":"value2"},"properties":{"provisioningState":"Created","metricId":"00000000-0000-0000-0000-000000000000:testingpythontestcaseeventhubnamespaceeventhub","createdAt":"2020-11-03T02:48:00.357Z","updatedAt":"2020-11-03T02:48:00.357Z","serviceBusEndpoint":"https://testingpythontestcaseeventhubnamespaceEventhub.servicebus.windows.net:443/","status":"Activating"}}' + US","tags":{"tag1":"value1","tag2":"value2"},"properties":{"provisioningState":"Created","metricId":"00000000-0000-0000-0000-000000000000:testingpythontestcaseeventhubnamespaceeventhub","createdAt":"2020-12-22T03:37:55.04Z","updatedAt":"2020-12-22T03:37:55.04Z","serviceBusEndpoint":"https://testingpythontestcaseeventhubnamespaceEventhub.servicebus.windows.net:443/","status":"Activating"}}' headers: cache-control: - no-cache content-length: - - '757' + - '755' content-type: - application/json; charset=utf-8 date: - - Tue, 03 Nov 2020 02:48:01 GMT + - Tue, 22 Dec 2020 03:37:56 GMT expires: - '-1' pragma: @@ -48,7 +48,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1195' + - '1199' status: code: 200 message: OK @@ -62,22 +62,22 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-mgmt-relay/1.0.0b1 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-mgmt-relay/1.0.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_wcfrelay_test_wcfrelay_curd89e511ce/providers/Microsoft.Relay/namespaces/testingpythontestcaseeventhubnamespaceEventhub?api-version=2017-04-01 response: body: string: '{"sku":{"name":"Standard","tier":"Standard"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_wcfrelay_test_wcfrelay_curd89e511ce/providers/Microsoft.Relay/namespaces/testingpythontestcaseeventhubnamespaceEventhub","name":"testingpythontestcaseeventhubnamespaceEventhub","type":"Microsoft.Relay/Namespaces","location":"West - US","tags":{"tag1":"value1","tag2":"value2"},"properties":{"provisioningState":"Created","metricId":"00000000-0000-0000-0000-000000000000:testingpythontestcaseeventhubnamespaceeventhub","createdAt":"2020-11-03T02:48:00.357Z","updatedAt":"2020-11-03T02:48:00.357Z","serviceBusEndpoint":"https://testingpythontestcaseeventhubnamespaceEventhub.servicebus.windows.net:443/","status":"Activating"}}' + US","tags":{"tag1":"value1","tag2":"value2"},"properties":{"provisioningState":"Created","metricId":"00000000-0000-0000-0000-000000000000:testingpythontestcaseeventhubnamespaceeventhub","createdAt":"2020-12-22T03:37:55.04Z","updatedAt":"2020-12-22T03:37:55.04Z","serviceBusEndpoint":"https://testingpythontestcaseeventhubnamespaceEventhub.servicebus.windows.net:443/","status":"Activating"}}' headers: cache-control: - no-cache content-length: - - '757' + - '755' content-type: - application/json; charset=utf-8 date: - - Tue, 03 Nov 2020 02:48:33 GMT + - Tue, 22 Dec 2020 03:38:27 GMT expires: - '-1' pragma: @@ -108,13 +108,13 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-mgmt-relay/1.0.0b1 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-mgmt-relay/1.0.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_wcfrelay_test_wcfrelay_curd89e511ce/providers/Microsoft.Relay/namespaces/testingpythontestcaseeventhubnamespaceEventhub?api-version=2017-04-01 response: body: string: '{"sku":{"name":"Standard","tier":"Standard"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_wcfrelay_test_wcfrelay_curd89e511ce/providers/Microsoft.Relay/namespaces/testingpythontestcaseeventhubnamespaceEventhub","name":"testingpythontestcaseeventhubnamespaceEventhub","type":"Microsoft.Relay/Namespaces","location":"West - US","tags":{"tag1":"value1","tag2":"value2"},"properties":{"provisioningState":"Succeeded","metricId":"00000000-0000-0000-0000-000000000000:testingpythontestcaseeventhubnamespaceeventhub","createdAt":"2020-11-03T02:48:00.357Z","updatedAt":"2020-11-03T02:48:43.87Z","serviceBusEndpoint":"https://testingpythontestcaseeventhubnamespaceEventhub.servicebus.windows.net:443/","status":"Active"}}' + US","tags":{"tag1":"value1","tag2":"value2"},"properties":{"provisioningState":"Succeeded","metricId":"00000000-0000-0000-0000-000000000000:testingpythontestcaseeventhubnamespaceeventhub","createdAt":"2020-12-22T03:37:55.04Z","updatedAt":"2020-12-22T03:38:39.743Z","serviceBusEndpoint":"https://testingpythontestcaseeventhubnamespaceEventhub.servicebus.windows.net:443/","status":"Active"}}' headers: cache-control: - no-cache @@ -123,16 +123,16 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 03 Nov 2020 02:49:04 GMT + - Tue, 22 Dec 2020 03:38:58 GMT expires: - '-1' pragma: - no-cache server: - - Service-Bus-Resource-Provider/CH3 + - Service-Bus-Resource-Provider/SN1 - Microsoft-HTTPAPI/2.0 server-sb: - - Service-Bus-Resource-Provider/CH3 + - Service-Bus-Resource-Provider/SN1 strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: @@ -154,13 +154,13 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-mgmt-relay/1.0.0b1 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-mgmt-relay/1.0.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_wcfrelay_test_wcfrelay_curd89e511ce/providers/Microsoft.Relay/namespaces/testingpythontestcaseeventhubnamespaceEventhub?api-version=2017-04-01 response: body: string: '{"sku":{"name":"Standard","tier":"Standard"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_wcfrelay_test_wcfrelay_curd89e511ce/providers/Microsoft.Relay/namespaces/testingpythontestcaseeventhubnamespaceEventhub","name":"testingpythontestcaseeventhubnamespaceEventhub","type":"Microsoft.Relay/Namespaces","location":"West - US","tags":{"tag1":"value1","tag2":"value2"},"properties":{"provisioningState":"Succeeded","metricId":"00000000-0000-0000-0000-000000000000:testingpythontestcaseeventhubnamespaceeventhub","createdAt":"2020-11-03T02:48:00.357Z","updatedAt":"2020-11-03T02:48:43.87Z","serviceBusEndpoint":"https://testingpythontestcaseeventhubnamespaceEventhub.servicebus.windows.net:443/","status":"Active"}}' + US","tags":{"tag1":"value1","tag2":"value2"},"properties":{"provisioningState":"Succeeded","metricId":"00000000-0000-0000-0000-000000000000:testingpythontestcaseeventhubnamespaceeventhub","createdAt":"2020-12-22T03:37:55.04Z","updatedAt":"2020-12-22T03:38:39.743Z","serviceBusEndpoint":"https://testingpythontestcaseeventhubnamespaceEventhub.servicebus.windows.net:443/","status":"Active"}}' headers: cache-control: - no-cache @@ -169,16 +169,16 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 03 Nov 2020 02:49:04 GMT + - Tue, 22 Dec 2020 03:38:58 GMT expires: - '-1' pragma: - no-cache server: - - Service-Bus-Resource-Provider/CH3 + - Service-Bus-Resource-Provider/SN1 - Microsoft-HTTPAPI/2.0 server-sb: - - Service-Bus-Resource-Provider/CH3 + - Service-Bus-Resource-Provider/SN1 strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: @@ -205,13 +205,13 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-mgmt-relay/1.0.0b1 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-mgmt-relay/1.0.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_wcfrelay_test_wcfrelay_curd89e511ce/providers/Microsoft.Relay/namespaces/testingpythontestcaseeventhubnamespaceEventhub/wcfRelays/testingpythontestcasewcfrelay?api-version=2017-04-01 response: body: string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_wcfrelay_test_wcfrelay_curd89e511ce/providers/Microsoft.Relay/namespaces/testingpythontestcaseeventhubnamespaceEventhub/wcfRelays/testingpythontestcasewcfrelay","name":"testingpythontestcasewcfrelay","type":"Microsoft.Relay/Namespaces/WcfRelays","location":"West - US","properties":{"createdAt":"2020-11-03T02:49:06.5629656Z","updatedAt":"2020-11-03T02:49:06.5629656Z","listenerCount":0,"requiresClientAuthorization":true,"relayType":"NetTcp","requiresTransportSecurity":true,"isDynamic":false,"userMetadata":"User + US","properties":{"createdAt":"2020-12-22T03:39:00.9355084Z","updatedAt":"2020-12-22T03:39:00.9355084Z","listenerCount":0,"requiresClientAuthorization":true,"relayType":"NetTcp","requiresTransportSecurity":true,"isDynamic":false,"userMetadata":"User data for WcfRelay"}}' headers: cache-control: @@ -221,16 +221,16 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 03 Nov 2020 02:49:07 GMT + - Tue, 22 Dec 2020 03:39:01 GMT expires: - '-1' pragma: - no-cache server: - - Service-Bus-Resource-Provider/CH3 + - Service-Bus-Resource-Provider/SN1 - Microsoft-HTTPAPI/2.0 server-sb: - - Service-Bus-Resource-Provider/CH3 + - Service-Bus-Resource-Provider/SN1 strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: @@ -240,7 +240,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1194' + - '1198' status: code: 200 message: OK @@ -254,13 +254,13 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-mgmt-relay/1.0.0b1 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-mgmt-relay/1.0.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_wcfrelay_test_wcfrelay_curd89e511ce/providers/Microsoft.Relay/namespaces/testingpythontestcaseeventhubnamespaceEventhub/wcfRelays/testingpythontestcasewcfrelay?api-version=2017-04-01 response: body: string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_wcfrelay_test_wcfrelay_curd89e511ce/providers/Microsoft.Relay/namespaces/testingpythontestcaseeventhubnamespaceEventhub/wcfRelays/testingpythontestcasewcfrelay","name":"testingpythontestcasewcfrelay","type":"Microsoft.Relay/Namespaces/WcfRelays","location":"West - US","properties":{"createdAt":"2020-11-03T02:49:06.5629656Z","updatedAt":"2020-11-03T02:49:06.5629656Z","listenerCount":0,"requiresClientAuthorization":true,"relayType":"NetTcp","requiresTransportSecurity":true,"isDynamic":false,"userMetadata":"User + US","properties":{"createdAt":"2020-12-22T03:39:00.9355084Z","updatedAt":"2020-12-22T03:39:00.9355084Z","listenerCount":0,"requiresClientAuthorization":true,"relayType":"NetTcp","requiresTransportSecurity":true,"isDynamic":false,"userMetadata":"User data for WcfRelay"}}' headers: cache-control: @@ -270,16 +270,16 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 03 Nov 2020 02:49:07 GMT + - Tue, 22 Dec 2020 03:39:01 GMT expires: - '-1' pragma: - no-cache server: - - Service-Bus-Resource-Provider/CH3 + - Service-Bus-Resource-Provider/SN1 - Microsoft-HTTPAPI/2.0 server-sb: - - Service-Bus-Resource-Provider/CH3 + - Service-Bus-Resource-Provider/SN1 strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: @@ -301,13 +301,13 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-mgmt-relay/1.0.0b1 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-mgmt-relay/1.0.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_wcfrelay_test_wcfrelay_curd89e511ce/providers/Microsoft.Relay/namespaces/testingpythontestcaseeventhubnamespaceEventhub/wcfRelays?api-version=2017-04-01 response: body: string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_wcfrelay_test_wcfrelay_curd89e511ce/providers/Microsoft.Relay/namespaces/testingpythontestcaseeventhubnamespaceEventhub/wcfRelays/testingpythontestcasewcfrelay","name":"testingpythontestcasewcfrelay","type":"Microsoft.Relay/Namespaces/WcfRelays","location":"West - US","properties":{"createdAt":"2020-11-03T02:49:06.5629656Z","updatedAt":"2020-11-03T02:49:06.5629656Z","listenerCount":0,"requiresClientAuthorization":true,"relayType":"NetTcp","requiresTransportSecurity":true,"isDynamic":false,"userMetadata":"User + US","properties":{"createdAt":"2020-12-22T03:39:00.9355084Z","updatedAt":"2020-12-22T03:39:00.9355084Z","listenerCount":0,"requiresClientAuthorization":true,"relayType":"NetTcp","requiresTransportSecurity":true,"isDynamic":false,"userMetadata":"User data for WcfRelay"}}]}' headers: cache-control: @@ -317,16 +317,16 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 03 Nov 2020 02:49:08 GMT + - Tue, 22 Dec 2020 03:39:02 GMT expires: - '-1' pragma: - no-cache server: - - Service-Bus-Resource-Provider/CH3 + - Service-Bus-Resource-Provider/SN1 - Microsoft-HTTPAPI/2.0 server-sb: - - Service-Bus-Resource-Provider/CH3 + - Service-Bus-Resource-Provider/SN1 strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: @@ -355,7 +355,7 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-mgmt-relay/1.0.0b1 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-mgmt-relay/1.0.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_wcfrelay_test_wcfrelay_curd89e511ce/providers/Microsoft.Relay/namespaces/testingpythontestcaseeventhubnamespaceEventhub/wcfRelays/testingpythontestcasewcfrelay?api-version=2017-04-01 response: @@ -371,16 +371,16 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 03 Nov 2020 02:49:09 GMT + - Tue, 22 Dec 2020 03:39:03 GMT expires: - '-1' pragma: - no-cache server: - - Service-Bus-Resource-Provider/CH3 + - Service-Bus-Resource-Provider/SN1 - Microsoft-HTTPAPI/2.0 server-sb: - - Service-Bus-Resource-Provider/CH3 + - Service-Bus-Resource-Provider/SN1 strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: @@ -390,7 +390,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1193' + - '1197' status: code: 200 message: OK @@ -408,7 +408,7 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-mgmt-relay/1.0.0b1 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-mgmt-relay/1.0.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_wcfrelay_test_wcfrelay_curd89e511ce/providers/Microsoft.Relay/namespaces/testingpythontestcaseeventhubnamespaceEventhub/wcfRelays/testingpythontestcasewcfrelay/authorizationRules/testingauthrulepy?api-version=2017-04-01 response: @@ -423,16 +423,16 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 03 Nov 2020 02:49:10 GMT + - Tue, 22 Dec 2020 03:39:03 GMT expires: - '-1' pragma: - no-cache server: - - Service-Bus-Resource-Provider/CH3 + - Service-Bus-Resource-Provider/SN1 - Microsoft-HTTPAPI/2.0 server-sb: - - Service-Bus-Resource-Provider/CH3 + - Service-Bus-Resource-Provider/SN1 strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: @@ -442,7 +442,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1192' + - '1196' status: code: 200 message: OK @@ -456,7 +456,7 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-mgmt-relay/1.0.0b1 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-mgmt-relay/1.0.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_wcfrelay_test_wcfrelay_curd89e511ce/providers/Microsoft.Relay/namespaces/testingpythontestcaseeventhubnamespaceEventhub/wcfRelays/testingpythontestcasewcfrelay/authorizationRules/testingauthrulepy?api-version=2017-04-01 response: @@ -471,16 +471,16 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 03 Nov 2020 02:49:10 GMT + - Tue, 22 Dec 2020 03:39:04 GMT expires: - '-1' pragma: - no-cache server: - - Service-Bus-Resource-Provider/CH3 + - Service-Bus-Resource-Provider/SN1 - Microsoft-HTTPAPI/2.0 server-sb: - - Service-Bus-Resource-Provider/CH3 + - Service-Bus-Resource-Provider/SN1 strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: @@ -506,7 +506,7 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-mgmt-relay/1.0.0b1 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-mgmt-relay/1.0.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_wcfrelay_test_wcfrelay_curd89e511ce/providers/Microsoft.Relay/namespaces/testingpythontestcaseeventhubnamespaceEventhub/wcfRelays/testingpythontestcasewcfrelay/authorizationRules/testingauthrulepy?api-version=2017-04-01 response: @@ -521,16 +521,16 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 03 Nov 2020 02:49:11 GMT + - Tue, 22 Dec 2020 03:39:04 GMT expires: - '-1' pragma: - no-cache server: - - Service-Bus-Resource-Provider/CH3 + - Service-Bus-Resource-Provider/SN1 - Microsoft-HTTPAPI/2.0 server-sb: - - Service-Bus-Resource-Provider/CH3 + - Service-Bus-Resource-Provider/SN1 strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: @@ -540,7 +540,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1191' + - '1195' status: code: 200 message: OK @@ -554,7 +554,7 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-mgmt-relay/1.0.0b1 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-mgmt-relay/1.0.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_wcfrelay_test_wcfrelay_curd89e511ce/providers/Microsoft.Relay/namespaces/testingpythontestcaseeventhubnamespaceEventhub/wcfRelays/testingpythontestcasewcfrelay/authorizationRules?api-version=2017-04-01 response: @@ -569,16 +569,16 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 03 Nov 2020 02:49:12 GMT + - Tue, 22 Dec 2020 03:39:05 GMT expires: - '-1' pragma: - no-cache server: - - Service-Bus-Resource-Provider/CH3 + - Service-Bus-Resource-Provider/SN1 - Microsoft-HTTPAPI/2.0 server-sb: - - Service-Bus-Resource-Provider/CH3 + - Service-Bus-Resource-Provider/SN1 strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: @@ -602,12 +602,12 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-mgmt-relay/1.0.0b1 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-mgmt-relay/1.0.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) method: POST uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_wcfrelay_test_wcfrelay_curd89e511ce/providers/Microsoft.Relay/namespaces/testingpythontestcaseeventhubnamespaceEventhub/wcfRelays/testingpythontestcasewcfrelay/authorizationRules/testingauthrulepy/listKeys?api-version=2017-04-01 response: body: - string: '{"primaryConnectionString":"Endpoint=sb://testingpythontestcaseeventhubnamespaceeventhub.servicebus.windows.net/;SharedAccessKeyName=testingauthrulepy;SharedAccessKey=1ArQ4nTw32jlWg8l/F5u9LhRbwLoCn15QfFTCboWrgc=;EntityPath=testingpythontestcasewcfrelay","secondaryConnectionString":"Endpoint=sb://testingpythontestcaseeventhubnamespaceeventhub.servicebus.windows.net/;SharedAccessKeyName=testingauthrulepy;SharedAccessKey=C0GUJoKaRnowYn1dlbl9HZ59qj71zv9iIu4yO9gZ1QI=;EntityPath=testingpythontestcasewcfrelay","primaryKey":"1ArQ4nTw32jlWg8l/F5u9LhRbwLoCn15QfFTCboWrgc=","secondaryKey":"C0GUJoKaRnowYn1dlbl9HZ59qj71zv9iIu4yO9gZ1QI=","keyName":"testingauthrulepy"}' + string: '{"primaryConnectionString":"Endpoint=sb://testingpythontestcaseeventhubnamespaceeventhub.servicebus.windows.net/;SharedAccessKeyName=testingauthrulepy;SharedAccessKey=VWaEnVR34vDytJooXuE3+zarQUJJ4dC19A4PpZu0yQE=;EntityPath=testingpythontestcasewcfrelay","secondaryConnectionString":"Endpoint=sb://testingpythontestcaseeventhubnamespaceeventhub.servicebus.windows.net/;SharedAccessKeyName=testingauthrulepy;SharedAccessKey=2iMOsUu7QL5MhF1ci5XU15lYsmpQ2Jy9orqWLBqmA7g=;EntityPath=testingpythontestcasewcfrelay","primaryKey":"VWaEnVR34vDytJooXuE3+zarQUJJ4dC19A4PpZu0yQE=","secondaryKey":"2iMOsUu7QL5MhF1ci5XU15lYsmpQ2Jy9orqWLBqmA7g=","keyName":"testingauthrulepy"}' headers: cache-control: - no-cache @@ -616,16 +616,16 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 03 Nov 2020 02:49:12 GMT + - Tue, 22 Dec 2020 03:39:05 GMT expires: - '-1' pragma: - no-cache server: - - Service-Bus-Resource-Provider/CH3 + - Service-Bus-Resource-Provider/SN1 - Microsoft-HTTPAPI/2.0 server-sb: - - Service-Bus-Resource-Provider/CH3 + - Service-Bus-Resource-Provider/SN1 strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: @@ -635,7 +635,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1198' + - '1199' status: code: 200 message: OK @@ -653,12 +653,12 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-mgmt-relay/1.0.0b1 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-mgmt-relay/1.0.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) method: POST uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_wcfrelay_test_wcfrelay_curd89e511ce/providers/Microsoft.Relay/namespaces/testingpythontestcaseeventhubnamespaceEventhub/wcfRelays/testingpythontestcasewcfrelay/authorizationRules/testingauthrulepy/regenerateKeys?api-version=2017-04-01 response: body: - string: '{"primaryConnectionString":"Endpoint=sb://testingpythontestcaseeventhubnamespaceeventhub.servicebus.windows.net/;SharedAccessKeyName=testingauthrulepy;SharedAccessKey=rR6qmYBrWWgfkVvZbMyP7t5wTKEDB9ownN7mNyTmK4M=;EntityPath=testingpythontestcasewcfrelay","secondaryConnectionString":"Endpoint=sb://testingpythontestcaseeventhubnamespaceeventhub.servicebus.windows.net/;SharedAccessKeyName=testingauthrulepy;SharedAccessKey=C0GUJoKaRnowYn1dlbl9HZ59qj71zv9iIu4yO9gZ1QI=;EntityPath=testingpythontestcasewcfrelay","primaryKey":"rR6qmYBrWWgfkVvZbMyP7t5wTKEDB9ownN7mNyTmK4M=","secondaryKey":"C0GUJoKaRnowYn1dlbl9HZ59qj71zv9iIu4yO9gZ1QI=","keyName":"testingauthrulepy"}' + string: '{"primaryConnectionString":"Endpoint=sb://testingpythontestcaseeventhubnamespaceeventhub.servicebus.windows.net/;SharedAccessKeyName=testingauthrulepy;SharedAccessKey=XBijgLFQqLsTtOjtfInWkWyOo2VB3DzGGHeQkz+lyiU=;EntityPath=testingpythontestcasewcfrelay","secondaryConnectionString":"Endpoint=sb://testingpythontestcaseeventhubnamespaceeventhub.servicebus.windows.net/;SharedAccessKeyName=testingauthrulepy;SharedAccessKey=2iMOsUu7QL5MhF1ci5XU15lYsmpQ2Jy9orqWLBqmA7g=;EntityPath=testingpythontestcasewcfrelay","primaryKey":"XBijgLFQqLsTtOjtfInWkWyOo2VB3DzGGHeQkz+lyiU=","secondaryKey":"2iMOsUu7QL5MhF1ci5XU15lYsmpQ2Jy9orqWLBqmA7g=","keyName":"testingauthrulepy"}' headers: cache-control: - no-cache @@ -667,16 +667,16 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 03 Nov 2020 02:49:13 GMT + - Tue, 22 Dec 2020 03:39:06 GMT expires: - '-1' pragma: - no-cache server: - - Service-Bus-Resource-Provider/CH3 + - Service-Bus-Resource-Provider/SN1 - Microsoft-HTTPAPI/2.0 server-sb: - - Service-Bus-Resource-Provider/CH3 + - Service-Bus-Resource-Provider/SN1 strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: @@ -686,7 +686,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1197' + - '1198' status: code: 200 message: OK @@ -704,12 +704,12 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-mgmt-relay/1.0.0b1 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-mgmt-relay/1.0.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) method: POST uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_wcfrelay_test_wcfrelay_curd89e511ce/providers/Microsoft.Relay/namespaces/testingpythontestcaseeventhubnamespaceEventhub/wcfRelays/testingpythontestcasewcfrelay/authorizationRules/testingauthrulepy/regenerateKeys?api-version=2017-04-01 response: body: - string: '{"primaryConnectionString":"Endpoint=sb://testingpythontestcaseeventhubnamespaceeventhub.servicebus.windows.net/;SharedAccessKeyName=testingauthrulepy;SharedAccessKey=rR6qmYBrWWgfkVvZbMyP7t5wTKEDB9ownN7mNyTmK4M=;EntityPath=testingpythontestcasewcfrelay","secondaryConnectionString":"Endpoint=sb://testingpythontestcaseeventhubnamespaceeventhub.servicebus.windows.net/;SharedAccessKeyName=testingauthrulepy;SharedAccessKey=477rMvqdApMYRTCexdpoaCvaaBkHnr/qzE27z1YJ+FY=;EntityPath=testingpythontestcasewcfrelay","primaryKey":"rR6qmYBrWWgfkVvZbMyP7t5wTKEDB9ownN7mNyTmK4M=","secondaryKey":"477rMvqdApMYRTCexdpoaCvaaBkHnr/qzE27z1YJ+FY=","keyName":"testingauthrulepy"}' + string: '{"primaryConnectionString":"Endpoint=sb://testingpythontestcaseeventhubnamespaceeventhub.servicebus.windows.net/;SharedAccessKeyName=testingauthrulepy;SharedAccessKey=XBijgLFQqLsTtOjtfInWkWyOo2VB3DzGGHeQkz+lyiU=;EntityPath=testingpythontestcasewcfrelay","secondaryConnectionString":"Endpoint=sb://testingpythontestcaseeventhubnamespaceeventhub.servicebus.windows.net/;SharedAccessKeyName=testingauthrulepy;SharedAccessKey=nGqYFEJHdqGC642ACKtYna3knjUxrecKzy4MKuP+l+Y=;EntityPath=testingpythontestcasewcfrelay","primaryKey":"XBijgLFQqLsTtOjtfInWkWyOo2VB3DzGGHeQkz+lyiU=","secondaryKey":"nGqYFEJHdqGC642ACKtYna3knjUxrecKzy4MKuP+l+Y=","keyName":"testingauthrulepy"}' headers: cache-control: - no-cache @@ -718,16 +718,16 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 03 Nov 2020 02:49:14 GMT + - Tue, 22 Dec 2020 03:39:06 GMT expires: - '-1' pragma: - no-cache server: - - Service-Bus-Resource-Provider/CH3 + - Service-Bus-Resource-Provider/SN1 - Microsoft-HTTPAPI/2.0 server-sb: - - Service-Bus-Resource-Provider/CH3 + - Service-Bus-Resource-Provider/SN1 strict-transport-security: - max-age=31536000; includeSubDomains transfer-encoding: @@ -737,7 +737,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1196' + - '1197' status: code: 200 message: OK @@ -753,7 +753,7 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-mgmt-relay/1.0.0b1 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-mgmt-relay/1.0.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) method: DELETE uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_wcfrelay_test_wcfrelay_curd89e511ce/providers/Microsoft.Relay/namespaces/testingpythontestcaseeventhubnamespaceEventhub/wcfRelays/testingpythontestcasewcfrelay/authorizationRules/testingauthrulepy?api-version=2017-04-01 response: @@ -765,16 +765,16 @@ interactions: content-length: - '0' date: - - Tue, 03 Nov 2020 02:49:15 GMT + - Tue, 22 Dec 2020 03:39:07 GMT expires: - '-1' pragma: - no-cache server: - - Service-Bus-Resource-Provider/CH3 + - Service-Bus-Resource-Provider/SN1 - Microsoft-HTTPAPI/2.0 server-sb: - - Service-Bus-Resource-Provider/CH3 + - Service-Bus-Resource-Provider/SN1 strict-transport-security: - max-age=31536000; includeSubDomains x-content-type-options: @@ -796,7 +796,7 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-mgmt-relay/1.0.0b1 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-mgmt-relay/1.0.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) method: DELETE uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_wcfrelay_test_wcfrelay_curd89e511ce/providers/Microsoft.Relay/namespaces/testingpythontestcaseeventhubnamespaceEventhub/wcfRelays/testingpythontestcasewcfrelay?api-version=2017-04-01 response: @@ -808,16 +808,16 @@ interactions: content-length: - '0' date: - - Tue, 03 Nov 2020 02:49:16 GMT + - Tue, 22 Dec 2020 03:39:08 GMT expires: - '-1' pragma: - no-cache server: - - Service-Bus-Resource-Provider/CH3 + - Service-Bus-Resource-Provider/SN1 - Microsoft-HTTPAPI/2.0 server-sb: - - Service-Bus-Resource-Provider/CH3 + - Service-Bus-Resource-Provider/SN1 strict-transport-security: - max-age=31536000; includeSubDomains x-content-type-options: @@ -839,7 +839,7 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-mgmt-relay/1.0.0b1 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-mgmt-relay/1.0.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) method: DELETE uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_wcfrelay_test_wcfrelay_curd89e511ce/providers/Microsoft.Relay/namespaces/testingpythontestcaseeventhubnamespaceEventhub?api-version=2017-04-01 response: @@ -851,7 +851,7 @@ interactions: content-length: - '0' date: - - Tue, 03 Nov 2020 02:49:17 GMT + - Tue, 22 Dec 2020 03:39:09 GMT expires: - '-1' location: @@ -859,10 +859,10 @@ interactions: pragma: - no-cache server: - - Service-Bus-Resource-Provider/CH3 + - Service-Bus-Resource-Provider/SN1 - Microsoft-HTTPAPI/2.0 server-sb: - - Service-Bus-Resource-Provider/CH3 + - Service-Bus-Resource-Provider/SN1 strict-transport-security: - max-age=31536000; includeSubDomains x-content-type-options: @@ -882,7 +882,7 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-mgmt-relay/1.0.0b1 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-mgmt-relay/1.0.0 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_wcfrelay_test_wcfrelay_curd89e511ce/providers/Microsoft.Relay/namespaces/testingpythontestcaseeventhubnamespaceEventhub/operationresults/testingpythontestcaseeventhubnamespaceEventhub?api-version=2017-04-01 response: @@ -894,16 +894,16 @@ interactions: content-length: - '0' date: - - Tue, 03 Nov 2020 02:49:48 GMT + - Tue, 22 Dec 2020 03:39:39 GMT expires: - '-1' pragma: - no-cache server: - - Service-Bus-Resource-Provider/CH3 + - Service-Bus-Resource-Provider/SN1 - Microsoft-HTTPAPI/2.0 server-sb: - - Service-Bus-Resource-Provider/CH3 + - Service-Bus-Resource-Provider/SN1 strict-transport-security: - max-age=31536000; includeSubDomains x-content-type-options: