From ffb19602554632e8b42b4aa6d93ac9cb119962c7 Mon Sep 17 00:00:00 2001 From: "Kaihui (Kerwin) Sun" Date: Mon, 4 Jan 2021 12:45:41 +0800 Subject: [PATCH] GA cognitiveservices track2 sdk (#15901) --- .../azure-mgmt-cognitiveservices/CHANGELOG.md | 6 ++ .../azure/mgmt/cognitiveservices/_version.py | 2 +- .../aio/operations/_accounts_operations.py | 68 +++++++++---------- ...e_services_management_client_operations.py | 14 ++-- .../aio/operations/_operations.py | 8 +-- ...private_endpoint_connections_operations.py | 20 +++--- .../_private_link_resources_operations.py | 8 +-- .../operations/_resource_skus_operations.py | 8 +-- ...nitive_services_management_client_enums.py | 1 + .../mgmt/cognitiveservices/models/_models.py | 27 +++++--- .../cognitiveservices/models/_models_py3.py | 27 +++++--- .../operations/_accounts_operations.py | 68 +++++++++---------- ...e_services_management_client_operations.py | 14 ++-- .../operations/_operations.py | 8 +-- ...private_endpoint_connections_operations.py | 20 +++--- .../_private_link_resources_operations.py | 8 +-- .../operations/_resource_skus_operations.py | 8 +-- ...nitiveservices.test_cognitiveservices.yaml | 68 +++++++++---------- 18 files changed, 200 insertions(+), 183 deletions(-) diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/CHANGELOG.md b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/CHANGELOG.md index 22dbcd9e7bd9..144158f6d3c0 100644 --- a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/CHANGELOG.md +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/CHANGELOG.md @@ -1,5 +1,11 @@ # Release History +## 11.0.0 (2020-12-22) + +**Features** + + - Model CognitiveServicesAccountProperties has a new parameter date_created + ## 11.0.0b1 (2020-11-03) This is beta preview version. diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/azure/mgmt/cognitiveservices/_version.py b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/azure/mgmt/cognitiveservices/_version.py index 75a1436b862f..ae876c37f272 100644 --- a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/azure/mgmt/cognitiveservices/_version.py +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/azure/mgmt/cognitiveservices/_version.py @@ -6,4 +6,4 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -VERSION = "11.0.0b1" +VERSION = "11.0.0" diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/azure/mgmt/cognitiveservices/aio/operations/_accounts_operations.py b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/azure/mgmt/cognitiveservices/aio/operations/_accounts_operations.py index 40d27aae6ba5..4d7d4d8c654e 100644 --- a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/azure/mgmt/cognitiveservices/aio/operations/_accounts_operations.py +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/azure/mgmt/cognitiveservices/aio/operations/_accounts_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 AccountsOperations: :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 @@ async def create( self, resource_group_name: str, account_name: str, - account: "models.CognitiveServicesAccount", + account: "_models.CognitiveServicesAccount", **kwargs - ) -> "models.CognitiveServicesAccount": + ) -> "_models.CognitiveServicesAccount": """Create Cognitive Services Account. Accounts is a resource group wide resource type. It holds the keys for developer to access intelligent APIs. It's also the resource type for billing. @@ -62,7 +62,7 @@ async def create( :rtype: ~azure.mgmt.cognitiveservices.models.CognitiveServicesAccount :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["models.CognitiveServicesAccount"] + cls = kwargs.pop('cls', None) # type: ClsType["_models.CognitiveServicesAccount"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } @@ -98,7 +98,7 @@ async def create( if response.status_code not in [200, 201, 202]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(models.Error, response) + error = self._deserialize(_models.Error, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) if response.status_code == 200: @@ -120,9 +120,9 @@ async def update( self, resource_group_name: str, account_name: str, - account: "models.CognitiveServicesAccount", + account: "_models.CognitiveServicesAccount", **kwargs - ) -> "models.CognitiveServicesAccount": + ) -> "_models.CognitiveServicesAccount": """Updates a Cognitive Services account. :param resource_group_name: The name of the resource group. The name is case insensitive. @@ -136,7 +136,7 @@ async def update( :rtype: ~azure.mgmt.cognitiveservices.models.CognitiveServicesAccount :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["models.CognitiveServicesAccount"] + cls = kwargs.pop('cls', None) # type: ClsType["_models.CognitiveServicesAccount"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } @@ -172,7 +172,7 @@ async def update( if response.status_code not in [200, 202]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(models.Error, response) + error = self._deserialize(_models.Error, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) if response.status_code == 200: @@ -235,7 +235,7 @@ async def delete( if response.status_code not in [200, 202, 204]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(models.Error, response) + error = self._deserialize(_models.Error, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) if cls: @@ -248,7 +248,7 @@ async def get_properties( resource_group_name: str, account_name: str, **kwargs - ) -> "models.CognitiveServicesAccount": + ) -> "_models.CognitiveServicesAccount": """Returns a Cognitive Services account specified by the parameters. :param resource_group_name: The name of the resource group. The name is case insensitive. @@ -260,7 +260,7 @@ async def get_properties( :rtype: ~azure.mgmt.cognitiveservices.models.CognitiveServicesAccount :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["models.CognitiveServicesAccount"] + cls = kwargs.pop('cls', None) # type: ClsType["_models.CognitiveServicesAccount"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } @@ -291,7 +291,7 @@ async def get_properties( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(models.Error, response) + error = self._deserialize(_models.Error, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize('CognitiveServicesAccount', pipeline_response) @@ -306,7 +306,7 @@ def list_by_resource_group( self, resource_group_name: str, **kwargs - ) -> AsyncIterable["models.CognitiveServicesAccountListResult"]: + ) -> AsyncIterable["_models.CognitiveServicesAccountListResult"]: """Returns all the resources of a particular type belonging to a resource group. :param resource_group_name: The name of the resource group. The name is case insensitive. @@ -316,7 +316,7 @@ def list_by_resource_group( :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.cognitiveservices.models.CognitiveServicesAccountListResult] :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["models.CognitiveServicesAccountListResult"] + cls = kwargs.pop('cls', None) # type: ClsType["_models.CognitiveServicesAccountListResult"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } @@ -362,7 +362,7 @@ async def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: - error = self._deserialize(models.Error, response) + error = self._deserialize(_models.Error, response) map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -376,7 +376,7 @@ async def get_next(next_link=None): def list( self, **kwargs - ) -> AsyncIterable["models.CognitiveServicesAccountListResult"]: + ) -> AsyncIterable["_models.CognitiveServicesAccountListResult"]: """Returns all the resources of a particular type belonging to a subscription. :keyword callable cls: A custom type or function that will be passed the direct response @@ -384,7 +384,7 @@ def list( :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.cognitiveservices.models.CognitiveServicesAccountListResult] :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["models.CognitiveServicesAccountListResult"] + cls = kwargs.pop('cls', None) # type: ClsType["_models.CognitiveServicesAccountListResult"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } @@ -429,7 +429,7 @@ async def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: - error = self._deserialize(models.Error, response) + error = self._deserialize(_models.Error, response) map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -445,7 +445,7 @@ async def list_keys( resource_group_name: str, account_name: str, **kwargs - ) -> "models.CognitiveServicesAccountKeys": + ) -> "_models.CognitiveServicesAccountKeys": """Lists the account keys for the specified Cognitive Services account. :param resource_group_name: The name of the resource group. The name is case insensitive. @@ -457,7 +457,7 @@ async def list_keys( :rtype: ~azure.mgmt.cognitiveservices.models.CognitiveServicesAccountKeys :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["models.CognitiveServicesAccountKeys"] + cls = kwargs.pop('cls', None) # type: ClsType["_models.CognitiveServicesAccountKeys"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } @@ -488,7 +488,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.Error, response) + error = self._deserialize(_models.Error, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize('CognitiveServicesAccountKeys', pipeline_response) @@ -503,9 +503,9 @@ async def regenerate_key( self, resource_group_name: str, account_name: str, - key_name: Union[str, "models.KeyName"], + key_name: Union[str, "_models.KeyName"], **kwargs - ) -> "models.CognitiveServicesAccountKeys": + ) -> "_models.CognitiveServicesAccountKeys": """Regenerates the specified account key for the specified Cognitive Services account. :param resource_group_name: The name of the resource group. The name is case insensitive. @@ -519,13 +519,13 @@ async def regenerate_key( :rtype: ~azure.mgmt.cognitiveservices.models.CognitiveServicesAccountKeys :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["models.CognitiveServicesAccountKeys"] + cls = kwargs.pop('cls', None) # type: ClsType["_models.CognitiveServicesAccountKeys"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - _parameters = models.RegenerateKeyParameters(key_name=key_name) + _parameters = _models.RegenerateKeyParameters(key_name=key_name) api_version = "2017-04-18" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -557,7 +557,7 @@ async def regenerate_key( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(models.Error, response) + error = self._deserialize(_models.Error, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize('CognitiveServicesAccountKeys', pipeline_response) @@ -573,7 +573,7 @@ async def list_skus( resource_group_name: str, account_name: str, **kwargs - ) -> "models.CognitiveServicesAccountEnumerateSkusResult": + ) -> "_models.CognitiveServicesAccountEnumerateSkusResult": """List available SKUs for the requested Cognitive Services account. :param resource_group_name: The name of the resource group. The name is case insensitive. @@ -585,7 +585,7 @@ async def list_skus( :rtype: ~azure.mgmt.cognitiveservices.models.CognitiveServicesAccountEnumerateSkusResult :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["models.CognitiveServicesAccountEnumerateSkusResult"] + cls = kwargs.pop('cls', None) # type: ClsType["_models.CognitiveServicesAccountEnumerateSkusResult"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } @@ -616,7 +616,7 @@ async def list_skus( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(models.Error, response) + error = self._deserialize(_models.Error, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize('CognitiveServicesAccountEnumerateSkusResult', pipeline_response) @@ -633,7 +633,7 @@ async def get_usages( account_name: str, filter: Optional[str] = None, **kwargs - ) -> "models.UsagesResult": + ) -> "_models.UsagesResult": """Get usages for the requested Cognitive Services account. :param resource_group_name: The name of the resource group. The name is case insensitive. @@ -648,7 +648,7 @@ async def get_usages( :rtype: ~azure.mgmt.cognitiveservices.models.UsagesResult :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["models.UsagesResult"] + cls = kwargs.pop('cls', None) # type: ClsType["_models.UsagesResult"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } @@ -681,7 +681,7 @@ async def get_usages( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(models.Error, response) + error = self._deserialize(_models.Error, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize('UsagesResult', pipeline_response) diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/azure/mgmt/cognitiveservices/aio/operations/_cognitive_services_management_client_operations.py b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/azure/mgmt/cognitiveservices/aio/operations/_cognitive_services_management_client_operations.py index 98664eed313b..f76c497bc428 100644 --- a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/azure/mgmt/cognitiveservices/aio/operations/_cognitive_services_management_client_operations.py +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/azure/mgmt/cognitiveservices/aio/operations/_cognitive_services_management_client_operations.py @@ -13,7 +13,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]] @@ -27,7 +27,7 @@ async def check_sku_availability( kind: str, type: str, **kwargs - ) -> "models.CheckSkuAvailabilityResultList": + ) -> "_models.CheckSkuAvailabilityResultList": """Check available SKUs. :param location: Resource location. @@ -43,13 +43,13 @@ async def check_sku_availability( :rtype: ~azure.mgmt.cognitiveservices.models.CheckSkuAvailabilityResultList :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["models.CheckSkuAvailabilityResultList"] + cls = kwargs.pop('cls', None) # type: ClsType["_models.CheckSkuAvailabilityResultList"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - _parameters = models.CheckSkuAvailabilityParameter(skus=skus, kind=kind, type=type) + _parameters = _models.CheckSkuAvailabilityParameter(skus=skus, kind=kind, type=type) api_version = "2017-04-18" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -95,7 +95,7 @@ async def check_domain_availability( subdomain_name: str, type: str, **kwargs - ) -> "models.CheckDomainAvailabilityResult": + ) -> "_models.CheckDomainAvailabilityResult": """Check whether a domain is available. :param subdomain_name: The subdomain name to use. @@ -107,13 +107,13 @@ async def check_domain_availability( :rtype: ~azure.mgmt.cognitiveservices.models.CheckDomainAvailabilityResult :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["models.CheckDomainAvailabilityResult"] + cls = kwargs.pop('cls', None) # type: ClsType["_models.CheckDomainAvailabilityResult"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - _parameters = models.CheckDomainAvailabilityParameter(subdomain_name=subdomain_name, type=type) + _parameters = _models.CheckDomainAvailabilityParameter(subdomain_name=subdomain_name, type=type) api_version = "2017-04-18" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/azure/mgmt/cognitiveservices/aio/operations/_operations.py b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/azure/mgmt/cognitiveservices/aio/operations/_operations.py index 6836e3ebc0cd..335c1015c618 100644 --- a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/azure/mgmt/cognitiveservices/aio/operations/_operations.py +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/azure/mgmt/cognitiveservices/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.OperationEntityListResult"]: + ) -> AsyncIterable["_models.OperationEntityListResult"]: """Lists all the available Cognitive Services account 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.cognitiveservices.models.OperationEntityListResult] :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["models.OperationEntityListResult"] + cls = kwargs.pop('cls', None) # type: ClsType["_models.OperationEntityListResult"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/azure/mgmt/cognitiveservices/aio/operations/_private_endpoint_connections_operations.py b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/azure/mgmt/cognitiveservices/aio/operations/_private_endpoint_connections_operations.py index e95b1e4d129d..a9a55d3fe3e5 100644 --- a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/azure/mgmt/cognitiveservices/aio/operations/_private_endpoint_connections_operations.py +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/azure/mgmt/cognitiveservices/aio/operations/_private_endpoint_connections_operations.py @@ -13,7 +13,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]] @@ -32,7 +32,7 @@ class PrivateEndpointConnectionsOperations: :param deserializer: An object model deserializer. """ - models = models + models = _models def __init__(self, client, config, serializer, deserializer) -> None: self._client = client @@ -45,7 +45,7 @@ async def list( resource_group_name: str, account_name: str, **kwargs - ) -> "models.PrivateEndpointConnectionListResult": + ) -> "_models.PrivateEndpointConnectionListResult": """Gets the private endpoint connections associated with the Cognitive Services account. :param resource_group_name: The name of the resource group. The name is case insensitive. @@ -57,7 +57,7 @@ async def list( :rtype: ~azure.mgmt.cognitiveservices.models.PrivateEndpointConnectionListResult :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["models.PrivateEndpointConnectionListResult"] + cls = kwargs.pop('cls', None) # type: ClsType["_models.PrivateEndpointConnectionListResult"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } @@ -88,7 +88,7 @@ async def list( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(models.Error, response) + error = self._deserialize(_models.Error, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize('PrivateEndpointConnectionListResult', pipeline_response) @@ -105,7 +105,7 @@ async def get( account_name: str, private_endpoint_connection_name: str, **kwargs - ) -> "models.PrivateEndpointConnection": + ) -> "_models.PrivateEndpointConnection": """Gets the specified private endpoint connection associated with the Cognitive Services account. :param resource_group_name: The name of the resource group. The name is case insensitive. @@ -120,7 +120,7 @@ async def get( :rtype: ~azure.mgmt.cognitiveservices.models.PrivateEndpointConnection :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["models.PrivateEndpointConnection"] + cls = kwargs.pop('cls', None) # type: ClsType["_models.PrivateEndpointConnection"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } @@ -167,9 +167,9 @@ async def create_or_update( resource_group_name: str, account_name: str, private_endpoint_connection_name: str, - properties: "models.PrivateEndpointConnection", + properties: "_models.PrivateEndpointConnection", **kwargs - ) -> "models.PrivateEndpointConnection": + ) -> "_models.PrivateEndpointConnection": """Update the state of specified private endpoint connection associated with the Cognitive Services account. @@ -187,7 +187,7 @@ async def create_or_update( :rtype: ~azure.mgmt.cognitiveservices.models.PrivateEndpointConnection :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["models.PrivateEndpointConnection"] + cls = kwargs.pop('cls', None) # type: ClsType["_models.PrivateEndpointConnection"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/azure/mgmt/cognitiveservices/aio/operations/_private_link_resources_operations.py b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/azure/mgmt/cognitiveservices/aio/operations/_private_link_resources_operations.py index 1d754d952d7a..c95d964fa27f 100644 --- a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/azure/mgmt/cognitiveservices/aio/operations/_private_link_resources_operations.py +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/azure/mgmt/cognitiveservices/aio/operations/_private_link_resources_operations.py @@ -13,7 +13,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]] @@ -32,7 +32,7 @@ class PrivateLinkResourcesOperations: :param deserializer: An object model deserializer. """ - models = models + models = _models def __init__(self, client, config, serializer, deserializer) -> None: self._client = client @@ -45,7 +45,7 @@ async def list( resource_group_name: str, account_name: str, **kwargs - ) -> "models.PrivateLinkResourceListResult": + ) -> "_models.PrivateLinkResourceListResult": """Gets the private link resources that need to be created for a Cognitive Services account. :param resource_group_name: The name of the resource group. The name is case insensitive. @@ -57,7 +57,7 @@ async def list( :rtype: ~azure.mgmt.cognitiveservices.models.PrivateLinkResourceListResult :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["models.PrivateLinkResourceListResult"] + cls = kwargs.pop('cls', None) # type: ClsType["_models.PrivateLinkResourceListResult"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/azure/mgmt/cognitiveservices/aio/operations/_resource_skus_operations.py b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/azure/mgmt/cognitiveservices/aio/operations/_resource_skus_operations.py index 52878f1d26e0..bb072ad8604e 100644 --- a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/azure/mgmt/cognitiveservices/aio/operations/_resource_skus_operations.py +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/azure/mgmt/cognitiveservices/aio/operations/_resource_skus_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 ResourceSkusOperations: :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.ResourceSkusResult"]: + ) -> AsyncIterable["_models.ResourceSkusResult"]: """Gets the list of Microsoft.CognitiveServices SKUs available for your Subscription. :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.cognitiveservices.models.ResourceSkusResult] :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["models.ResourceSkusResult"] + cls = kwargs.pop('cls', None) # type: ClsType["_models.ResourceSkusResult"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/azure/mgmt/cognitiveservices/models/_cognitive_services_management_client_enums.py b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/azure/mgmt/cognitiveservices/models/_cognitive_services_management_client_enums.py index db502f1f4829..9653b1197702 100644 --- a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/azure/mgmt/cognitiveservices/models/_cognitive_services_management_client_enums.py +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/azure/mgmt/cognitiveservices/models/_cognitive_services_management_client_enums.py @@ -114,6 +114,7 @@ class SkuTier(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): FREE = "Free" STANDARD = "Standard" PREMIUM = "Premium" + ENTERPRISE = "Enterprise" class UnitType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): """The unit of the metric. diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/azure/mgmt/cognitiveservices/models/_models.py b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/azure/mgmt/cognitiveservices/models/_models.py index 85b422431d3b..0440154a08e7 100644 --- a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/azure/mgmt/cognitiveservices/models/_models.py +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/azure/mgmt/cognitiveservices/models/_models.py @@ -403,6 +403,8 @@ class CognitiveServicesAccountProperties(msrest.serialization.Model): :param api_properties: The api properties for special APIs. :type api_properties: ~azure.mgmt.cognitiveservices.models.CognitiveServicesAccountApiProperties + :ivar date_created: Gets the date of cognitive services account creation. + :vartype date_created: str """ _validation = { @@ -410,6 +412,7 @@ class CognitiveServicesAccountProperties(msrest.serialization.Model): 'endpoint': {'readonly': True}, 'internal_id': {'readonly': True}, 'capabilities': {'readonly': True}, + 'date_created': {'readonly': True}, } _attribute_map = { @@ -424,6 +427,7 @@ class CognitiveServicesAccountProperties(msrest.serialization.Model): 'private_endpoint_connections': {'key': 'privateEndpointConnections', 'type': '[PrivateEndpointConnection]'}, 'public_network_access': {'key': 'publicNetworkAccess', 'type': 'str'}, 'api_properties': {'key': 'apiProperties', 'type': 'CognitiveServicesAccountApiProperties'}, + 'date_created': {'key': 'dateCreated', 'type': 'str'}, } def __init__( @@ -442,6 +446,7 @@ def __init__( self.private_endpoint_connections = kwargs.get('private_endpoint_connections', None) self.public_network_access = kwargs.get('public_network_access', None) self.api_properties = kwargs.get('api_properties', None) + self.date_created = None class CognitiveServicesResourceAndSku(msrest.serialization.Model): @@ -806,17 +811,17 @@ def __init__( class Resource(msrest.serialization.Model): - """Resource. + """Common fields that are returned in the response for all Azure Resource Manager resources. Variables are only populated by the server, and will be ignored when sending a request. - :ivar id: Fully qualified resource Id for the resource. Ex - + :ivar id: Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. :vartype id: str :ivar name: The name of the resource. :vartype name: str - :ivar type: The type of the resource. Ex- Microsoft.Compute/virtualMachines or - Microsoft.Storage/storageAccounts. + :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + "Microsoft.Storage/storageAccounts". :vartype type: str """ @@ -847,13 +852,13 @@ class PrivateEndpointConnection(Resource): Variables are only populated by the server, and will be ignored when sending a request. - :ivar id: Fully qualified resource Id for the resource. Ex - + :ivar id: Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. :vartype id: str :ivar name: The name of the resource. :vartype name: str - :ivar type: The type of the resource. Ex- Microsoft.Compute/virtualMachines or - Microsoft.Storage/storageAccounts. + :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + "Microsoft.Storage/storageAccounts". :vartype type: str :param properties: Resource properties. :type properties: ~azure.mgmt.cognitiveservices.models.PrivateEndpointConnectionProperties @@ -939,13 +944,13 @@ class PrivateLinkResource(Resource): Variables are only populated by the server, and will be ignored when sending a request. - :ivar id: Fully qualified resource Id for the resource. Ex - + :ivar id: Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. :vartype id: str :ivar name: The name of the resource. :vartype name: str - :ivar type: The type of the resource. Ex- Microsoft.Compute/virtualMachines or - Microsoft.Storage/storageAccounts. + :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + "Microsoft.Storage/storageAccounts". :vartype type: str :param properties: Resource properties. :type properties: ~azure.mgmt.cognitiveservices.models.PrivateLinkResourceProperties @@ -1250,7 +1255,7 @@ class Sku(msrest.serialization.Model): update. :type name: str :ivar tier: Gets the sku tier. This is based on the SKU name. Possible values include: "Free", - "Standard", "Premium". + "Standard", "Premium", "Enterprise". :vartype tier: str or ~azure.mgmt.cognitiveservices.models.SkuTier """ diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/azure/mgmt/cognitiveservices/models/_models_py3.py b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/azure/mgmt/cognitiveservices/models/_models_py3.py index ced585a03d62..80f870b01702 100644 --- a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/azure/mgmt/cognitiveservices/models/_models_py3.py +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/azure/mgmt/cognitiveservices/models/_models_py3.py @@ -449,6 +449,8 @@ class CognitiveServicesAccountProperties(msrest.serialization.Model): :param api_properties: The api properties for special APIs. :type api_properties: ~azure.mgmt.cognitiveservices.models.CognitiveServicesAccountApiProperties + :ivar date_created: Gets the date of cognitive services account creation. + :vartype date_created: str """ _validation = { @@ -456,6 +458,7 @@ class CognitiveServicesAccountProperties(msrest.serialization.Model): 'endpoint': {'readonly': True}, 'internal_id': {'readonly': True}, 'capabilities': {'readonly': True}, + 'date_created': {'readonly': True}, } _attribute_map = { @@ -470,6 +473,7 @@ class CognitiveServicesAccountProperties(msrest.serialization.Model): 'private_endpoint_connections': {'key': 'privateEndpointConnections', 'type': '[PrivateEndpointConnection]'}, 'public_network_access': {'key': 'publicNetworkAccess', 'type': 'str'}, 'api_properties': {'key': 'apiProperties', 'type': 'CognitiveServicesAccountApiProperties'}, + 'date_created': {'key': 'dateCreated', 'type': 'str'}, } def __init__( @@ -496,6 +500,7 @@ def __init__( self.private_endpoint_connections = private_endpoint_connections self.public_network_access = public_network_access self.api_properties = api_properties + self.date_created = None class CognitiveServicesResourceAndSku(msrest.serialization.Model): @@ -897,17 +902,17 @@ def __init__( class Resource(msrest.serialization.Model): - """Resource. + """Common fields that are returned in the response for all Azure Resource Manager resources. Variables are only populated by the server, and will be ignored when sending a request. - :ivar id: Fully qualified resource Id for the resource. Ex - + :ivar id: Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. :vartype id: str :ivar name: The name of the resource. :vartype name: str - :ivar type: The type of the resource. Ex- Microsoft.Compute/virtualMachines or - Microsoft.Storage/storageAccounts. + :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + "Microsoft.Storage/storageAccounts". :vartype type: str """ @@ -938,13 +943,13 @@ class PrivateEndpointConnection(Resource): Variables are only populated by the server, and will be ignored when sending a request. - :ivar id: Fully qualified resource Id for the resource. Ex - + :ivar id: Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. :vartype id: str :ivar name: The name of the resource. :vartype name: str - :ivar type: The type of the resource. Ex- Microsoft.Compute/virtualMachines or - Microsoft.Storage/storageAccounts. + :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + "Microsoft.Storage/storageAccounts". :vartype type: str :param properties: Resource properties. :type properties: ~azure.mgmt.cognitiveservices.models.PrivateEndpointConnectionProperties @@ -1038,13 +1043,13 @@ class PrivateLinkResource(Resource): Variables are only populated by the server, and will be ignored when sending a request. - :ivar id: Fully qualified resource Id for the resource. Ex - + :ivar id: Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. :vartype id: str :ivar name: The name of the resource. :vartype name: str - :ivar type: The type of the resource. Ex- Microsoft.Compute/virtualMachines or - Microsoft.Storage/storageAccounts. + :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + "Microsoft.Storage/storageAccounts". :vartype type: str :param properties: Resource properties. :type properties: ~azure.mgmt.cognitiveservices.models.PrivateLinkResourceProperties @@ -1364,7 +1369,7 @@ class Sku(msrest.serialization.Model): update. :type name: str :ivar tier: Gets the sku tier. This is based on the SKU name. Possible values include: "Free", - "Standard", "Premium". + "Standard", "Premium", "Enterprise". :vartype tier: str or ~azure.mgmt.cognitiveservices.models.SkuTier """ diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/azure/mgmt/cognitiveservices/operations/_accounts_operations.py b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/azure/mgmt/cognitiveservices/operations/_accounts_operations.py index 10cfb77e24cc..4532d9495840 100644 --- a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/azure/mgmt/cognitiveservices/operations/_accounts_operations.py +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/azure/mgmt/cognitiveservices/operations/_accounts_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 AccountsOperations(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 create( self, resource_group_name, # type: str account_name, # type: str - account, # type: "models.CognitiveServicesAccount" + account, # type: "_models.CognitiveServicesAccount" **kwargs # type: Any ): - # type: (...) -> "models.CognitiveServicesAccount" + # type: (...) -> "_models.CognitiveServicesAccount" """Create Cognitive Services Account. Accounts is a resource group wide resource type. It holds the keys for developer to access intelligent APIs. It's also the resource type for billing. @@ -67,7 +67,7 @@ def create( :rtype: ~azure.mgmt.cognitiveservices.models.CognitiveServicesAccount :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["models.CognitiveServicesAccount"] + cls = kwargs.pop('cls', None) # type: ClsType["_models.CognitiveServicesAccount"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } @@ -103,7 +103,7 @@ def create( if response.status_code not in [200, 201, 202]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(models.Error, response) + error = self._deserialize(_models.Error, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) if response.status_code == 200: @@ -125,10 +125,10 @@ def update( self, resource_group_name, # type: str account_name, # type: str - account, # type: "models.CognitiveServicesAccount" + account, # type: "_models.CognitiveServicesAccount" **kwargs # type: Any ): - # type: (...) -> "models.CognitiveServicesAccount" + # type: (...) -> "_models.CognitiveServicesAccount" """Updates a Cognitive Services account. :param resource_group_name: The name of the resource group. The name is case insensitive. @@ -142,7 +142,7 @@ def update( :rtype: ~azure.mgmt.cognitiveservices.models.CognitiveServicesAccount :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["models.CognitiveServicesAccount"] + cls = kwargs.pop('cls', None) # type: ClsType["_models.CognitiveServicesAccount"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } @@ -178,7 +178,7 @@ def update( if response.status_code not in [200, 202]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(models.Error, response) + error = self._deserialize(_models.Error, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) if response.status_code == 200: @@ -242,7 +242,7 @@ def delete( if response.status_code not in [200, 202, 204]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(models.Error, response) + error = self._deserialize(_models.Error, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) if cls: @@ -256,7 +256,7 @@ def get_properties( account_name, # type: str **kwargs # type: Any ): - # type: (...) -> "models.CognitiveServicesAccount" + # type: (...) -> "_models.CognitiveServicesAccount" """Returns a Cognitive Services account specified by the parameters. :param resource_group_name: The name of the resource group. The name is case insensitive. @@ -268,7 +268,7 @@ def get_properties( :rtype: ~azure.mgmt.cognitiveservices.models.CognitiveServicesAccount :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["models.CognitiveServicesAccount"] + cls = kwargs.pop('cls', None) # type: ClsType["_models.CognitiveServicesAccount"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } @@ -299,7 +299,7 @@ def get_properties( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(models.Error, response) + error = self._deserialize(_models.Error, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize('CognitiveServicesAccount', pipeline_response) @@ -315,7 +315,7 @@ def list_by_resource_group( resource_group_name, # type: str **kwargs # type: Any ): - # type: (...) -> Iterable["models.CognitiveServicesAccountListResult"] + # type: (...) -> Iterable["_models.CognitiveServicesAccountListResult"] """Returns all the resources of a particular type belonging to a resource group. :param resource_group_name: The name of the resource group. The name is case insensitive. @@ -325,7 +325,7 @@ def list_by_resource_group( :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.cognitiveservices.models.CognitiveServicesAccountListResult] :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["models.CognitiveServicesAccountListResult"] + cls = kwargs.pop('cls', None) # type: ClsType["_models.CognitiveServicesAccountListResult"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } @@ -371,7 +371,7 @@ def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: - error = self._deserialize(models.Error, response) + error = self._deserialize(_models.Error, response) map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -386,7 +386,7 @@ def list( self, **kwargs # type: Any ): - # type: (...) -> Iterable["models.CognitiveServicesAccountListResult"] + # type: (...) -> Iterable["_models.CognitiveServicesAccountListResult"] """Returns all the resources of a particular type belonging to a subscription. :keyword callable cls: A custom type or function that will be passed the direct response @@ -394,7 +394,7 @@ def list( :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.cognitiveservices.models.CognitiveServicesAccountListResult] :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["models.CognitiveServicesAccountListResult"] + cls = kwargs.pop('cls', None) # type: ClsType["_models.CognitiveServicesAccountListResult"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } @@ -439,7 +439,7 @@ def get_next(next_link=None): response = pipeline_response.http_response if response.status_code not in [200]: - error = self._deserialize(models.Error, response) + error = self._deserialize(_models.Error, response) map_error(status_code=response.status_code, response=response, error_map=error_map) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) @@ -456,7 +456,7 @@ def list_keys( account_name, # type: str **kwargs # type: Any ): - # type: (...) -> "models.CognitiveServicesAccountKeys" + # type: (...) -> "_models.CognitiveServicesAccountKeys" """Lists the account keys for the specified Cognitive Services account. :param resource_group_name: The name of the resource group. The name is case insensitive. @@ -468,7 +468,7 @@ def list_keys( :rtype: ~azure.mgmt.cognitiveservices.models.CognitiveServicesAccountKeys :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["models.CognitiveServicesAccountKeys"] + cls = kwargs.pop('cls', None) # type: ClsType["_models.CognitiveServicesAccountKeys"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } @@ -499,7 +499,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.Error, response) + error = self._deserialize(_models.Error, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize('CognitiveServicesAccountKeys', pipeline_response) @@ -514,10 +514,10 @@ def regenerate_key( self, resource_group_name, # type: str account_name, # type: str - key_name, # type: Union[str, "models.KeyName"] + key_name, # type: Union[str, "_models.KeyName"] **kwargs # type: Any ): - # type: (...) -> "models.CognitiveServicesAccountKeys" + # type: (...) -> "_models.CognitiveServicesAccountKeys" """Regenerates the specified account key for the specified Cognitive Services account. :param resource_group_name: The name of the resource group. The name is case insensitive. @@ -531,13 +531,13 @@ def regenerate_key( :rtype: ~azure.mgmt.cognitiveservices.models.CognitiveServicesAccountKeys :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["models.CognitiveServicesAccountKeys"] + cls = kwargs.pop('cls', None) # type: ClsType["_models.CognitiveServicesAccountKeys"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - _parameters = models.RegenerateKeyParameters(key_name=key_name) + _parameters = _models.RegenerateKeyParameters(key_name=key_name) api_version = "2017-04-18" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -569,7 +569,7 @@ def regenerate_key( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(models.Error, response) + error = self._deserialize(_models.Error, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize('CognitiveServicesAccountKeys', pipeline_response) @@ -586,7 +586,7 @@ def list_skus( account_name, # type: str **kwargs # type: Any ): - # type: (...) -> "models.CognitiveServicesAccountEnumerateSkusResult" + # type: (...) -> "_models.CognitiveServicesAccountEnumerateSkusResult" """List available SKUs for the requested Cognitive Services account. :param resource_group_name: The name of the resource group. The name is case insensitive. @@ -598,7 +598,7 @@ def list_skus( :rtype: ~azure.mgmt.cognitiveservices.models.CognitiveServicesAccountEnumerateSkusResult :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["models.CognitiveServicesAccountEnumerateSkusResult"] + cls = kwargs.pop('cls', None) # type: ClsType["_models.CognitiveServicesAccountEnumerateSkusResult"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } @@ -629,7 +629,7 @@ def list_skus( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(models.Error, response) + error = self._deserialize(_models.Error, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize('CognitiveServicesAccountEnumerateSkusResult', pipeline_response) @@ -647,7 +647,7 @@ def get_usages( filter=None, # type: Optional[str] **kwargs # type: Any ): - # type: (...) -> "models.UsagesResult" + # type: (...) -> "_models.UsagesResult" """Get usages for the requested Cognitive Services account. :param resource_group_name: The name of the resource group. The name is case insensitive. @@ -662,7 +662,7 @@ def get_usages( :rtype: ~azure.mgmt.cognitiveservices.models.UsagesResult :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["models.UsagesResult"] + cls = kwargs.pop('cls', None) # type: ClsType["_models.UsagesResult"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } @@ -695,7 +695,7 @@ def get_usages( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(models.Error, response) + error = self._deserialize(_models.Error, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize('UsagesResult', pipeline_response) diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/azure/mgmt/cognitiveservices/operations/_cognitive_services_management_client_operations.py b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/azure/mgmt/cognitiveservices/operations/_cognitive_services_management_client_operations.py index 494bf6212c63..df6b2b3c9940 100644 --- a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/azure/mgmt/cognitiveservices/operations/_cognitive_services_management_client_operations.py +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/azure/mgmt/cognitiveservices/operations/_cognitive_services_management_client_operations.py @@ -13,7 +13,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 @@ -32,7 +32,7 @@ def check_sku_availability( type, # type: str **kwargs # type: Any ): - # type: (...) -> "models.CheckSkuAvailabilityResultList" + # type: (...) -> "_models.CheckSkuAvailabilityResultList" """Check available SKUs. :param location: Resource location. @@ -48,13 +48,13 @@ def check_sku_availability( :rtype: ~azure.mgmt.cognitiveservices.models.CheckSkuAvailabilityResultList :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["models.CheckSkuAvailabilityResultList"] + cls = kwargs.pop('cls', None) # type: ClsType["_models.CheckSkuAvailabilityResultList"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - _parameters = models.CheckSkuAvailabilityParameter(skus=skus, kind=kind, type=type) + _parameters = _models.CheckSkuAvailabilityParameter(skus=skus, kind=kind, type=type) api_version = "2017-04-18" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" @@ -101,7 +101,7 @@ def check_domain_availability( type, # type: str **kwargs # type: Any ): - # type: (...) -> "models.CheckDomainAvailabilityResult" + # type: (...) -> "_models.CheckDomainAvailabilityResult" """Check whether a domain is available. :param subdomain_name: The subdomain name to use. @@ -113,13 +113,13 @@ def check_domain_availability( :rtype: ~azure.mgmt.cognitiveservices.models.CheckDomainAvailabilityResult :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["models.CheckDomainAvailabilityResult"] + cls = kwargs.pop('cls', None) # type: ClsType["_models.CheckDomainAvailabilityResult"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } error_map.update(kwargs.pop('error_map', {})) - _parameters = models.CheckDomainAvailabilityParameter(subdomain_name=subdomain_name, type=type) + _parameters = _models.CheckDomainAvailabilityParameter(subdomain_name=subdomain_name, type=type) api_version = "2017-04-18" content_type = kwargs.pop("content_type", "application/json") accept = "application/json" diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/azure/mgmt/cognitiveservices/operations/_operations.py b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/azure/mgmt/cognitiveservices/operations/_operations.py index 0c4150889846..91efa313a246 100644 --- a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/azure/mgmt/cognitiveservices/operations/_operations.py +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/azure/mgmt/cognitiveservices/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.OperationEntityListResult"] + # type: (...) -> Iterable["_models.OperationEntityListResult"] """Lists all the available Cognitive Services account 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.cognitiveservices.models.OperationEntityListResult] :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["models.OperationEntityListResult"] + cls = kwargs.pop('cls', None) # type: ClsType["_models.OperationEntityListResult"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/azure/mgmt/cognitiveservices/operations/_private_endpoint_connections_operations.py b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/azure/mgmt/cognitiveservices/operations/_private_endpoint_connections_operations.py index 81acac9093c7..1641ef3f241a 100644 --- a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/azure/mgmt/cognitiveservices/operations/_private_endpoint_connections_operations.py +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/azure/mgmt/cognitiveservices/operations/_private_endpoint_connections_operations.py @@ -13,7 +13,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 @@ -36,7 +36,7 @@ class PrivateEndpointConnectionsOperations(object): :param deserializer: An object model deserializer. """ - models = models + models = _models def __init__(self, client, config, serializer, deserializer): self._client = client @@ -50,7 +50,7 @@ def list( account_name, # type: str **kwargs # type: Any ): - # type: (...) -> "models.PrivateEndpointConnectionListResult" + # type: (...) -> "_models.PrivateEndpointConnectionListResult" """Gets the private endpoint connections associated with the Cognitive Services account. :param resource_group_name: The name of the resource group. The name is case insensitive. @@ -62,7 +62,7 @@ def list( :rtype: ~azure.mgmt.cognitiveservices.models.PrivateEndpointConnectionListResult :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["models.PrivateEndpointConnectionListResult"] + cls = kwargs.pop('cls', None) # type: ClsType["_models.PrivateEndpointConnectionListResult"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } @@ -93,7 +93,7 @@ def list( if response.status_code not in [200]: map_error(status_code=response.status_code, response=response, error_map=error_map) - error = self._deserialize(models.Error, response) + error = self._deserialize(_models.Error, response) raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat) deserialized = self._deserialize('PrivateEndpointConnectionListResult', pipeline_response) @@ -111,7 +111,7 @@ def get( private_endpoint_connection_name, # type: str **kwargs # type: Any ): - # type: (...) -> "models.PrivateEndpointConnection" + # type: (...) -> "_models.PrivateEndpointConnection" """Gets the specified private endpoint connection associated with the Cognitive Services account. :param resource_group_name: The name of the resource group. The name is case insensitive. @@ -126,7 +126,7 @@ def get( :rtype: ~azure.mgmt.cognitiveservices.models.PrivateEndpointConnection :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["models.PrivateEndpointConnection"] + cls = kwargs.pop('cls', None) # type: ClsType["_models.PrivateEndpointConnection"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } @@ -173,10 +173,10 @@ def create_or_update( resource_group_name, # type: str account_name, # type: str private_endpoint_connection_name, # type: str - properties, # type: "models.PrivateEndpointConnection" + properties, # type: "_models.PrivateEndpointConnection" **kwargs # type: Any ): - # type: (...) -> "models.PrivateEndpointConnection" + # type: (...) -> "_models.PrivateEndpointConnection" """Update the state of specified private endpoint connection associated with the Cognitive Services account. @@ -194,7 +194,7 @@ def create_or_update( :rtype: ~azure.mgmt.cognitiveservices.models.PrivateEndpointConnection :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["models.PrivateEndpointConnection"] + cls = kwargs.pop('cls', None) # type: ClsType["_models.PrivateEndpointConnection"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/azure/mgmt/cognitiveservices/operations/_private_link_resources_operations.py b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/azure/mgmt/cognitiveservices/operations/_private_link_resources_operations.py index db890e19bf56..bc262def8469 100644 --- a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/azure/mgmt/cognitiveservices/operations/_private_link_resources_operations.py +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/azure/mgmt/cognitiveservices/operations/_private_link_resources_operations.py @@ -13,7 +13,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 @@ -36,7 +36,7 @@ class PrivateLinkResourcesOperations(object): :param deserializer: An object model deserializer. """ - models = models + models = _models def __init__(self, client, config, serializer, deserializer): self._client = client @@ -50,7 +50,7 @@ def list( account_name, # type: str **kwargs # type: Any ): - # type: (...) -> "models.PrivateLinkResourceListResult" + # type: (...) -> "_models.PrivateLinkResourceListResult" """Gets the private link resources that need to be created for a Cognitive Services account. :param resource_group_name: The name of the resource group. The name is case insensitive. @@ -62,7 +62,7 @@ def list( :rtype: ~azure.mgmt.cognitiveservices.models.PrivateLinkResourceListResult :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["models.PrivateLinkResourceListResult"] + cls = kwargs.pop('cls', None) # type: ClsType["_models.PrivateLinkResourceListResult"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/azure/mgmt/cognitiveservices/operations/_resource_skus_operations.py b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/azure/mgmt/cognitiveservices/operations/_resource_skus_operations.py index c43563593e0a..4a358f4323ff 100644 --- a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/azure/mgmt/cognitiveservices/operations/_resource_skus_operations.py +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/azure/mgmt/cognitiveservices/operations/_resource_skus_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 ResourceSkusOperations(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.ResourceSkusResult"] + # type: (...) -> Iterable["_models.ResourceSkusResult"] """Gets the list of Microsoft.CognitiveServices SKUs available for your Subscription. :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.cognitiveservices.models.ResourceSkusResult] :raises: ~azure.core.exceptions.HttpResponseError """ - cls = kwargs.pop('cls', None) # type: ClsType["models.ResourceSkusResult"] + cls = kwargs.pop('cls', None) # type: ClsType["_models.ResourceSkusResult"] error_map = { 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError } diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/tests/recordings/test_cli_mgmt_cognitiveservices.test_cognitiveservices.yaml b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/tests/recordings/test_cli_mgmt_cognitiveservices.test_cognitiveservices.yaml index 03892d21cdd0..51bc671b2979 100644 --- a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/tests/recordings/test_cli_mgmt_cognitiveservices.test_cognitiveservices.yaml +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/tests/recordings/test_cli_mgmt_cognitiveservices.test_cognitiveservices.yaml @@ -14,24 +14,24 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-mgmt-cognitiveservices/11.0.0b1 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-mgmt-cognitiveservices/11.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_cli_mgmt_cognitiveservices_test_cognitiveservices680f1670/providers/Microsoft.CognitiveServices/accounts/myAccount?api-version=2017-04-18 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_cognitiveservices_test_cognitiveservices680f1670/providers/Microsoft.CognitiveServices/accounts/myAccount","name":"myAccount","type":"Microsoft.CognitiveServices/accounts","etag":"\"27009e80-0000-0700-0000-5fa104da0000\"","location":"West - US","sku":{"name":"S0"},"kind":"CognitiveServices","properties":{"endpoint":"https://westus.api.cognitive.microsoft.com/","internalId":"19b5914657ea44219d7861debd4194b7","dateCreated":"2020-11-03T07:20:57.4562968Z","apiProperties":{},"callRateLimit":{"rules":[{"key":"token","renewalPeriod":1,"count":100,"matchPatterns":[{"path":"sts/v1.0/*","method":"*"}]},{"key":"face","renewalPeriod":1,"count":15,"matchPatterns":[{"path":"face/v1.0/*","method":"*"}]},{"key":"vision.recognizeText","renewalPeriod":1,"count":10,"matchPatterns":[{"path":"vision/recognizeText","method":"POST"},{"path":"vision/textOperations/*","method":"GET"},{"path":"vision/read/*","method":"*"}]},{"key":"vision","renewalPeriod":1,"count":15,"matchPatterns":[{"path":"vision/*","method":"*"}]},{"key":"contentModerator.list","renewalPeriod":1,"count":15,"matchPatterns":[{"path":"contentmoderator/lists/*","method":"*"}]},{"key":"contentModerator.moderate","renewalPeriod":1,"count":20,"matchPatterns":[{"path":"contentmoderator/moderate/*","method":"*"}]},{"key":"contentModerator.review","renewalPeriod":1,"count":20,"matchPatterns":[{"path":"contentmoderator/review/*","method":"*"}]},{"key":"luis.endpoint","renewalPeriod":1,"count":50,"matchPatterns":[{"path":"luis/v2.0/apps/*","method":"*"},{"path":"luis/apps/*","method":"*"}]},{"key":"textAnalytics","renewalPeriod":1,"count":20,"matchPatterns":[{"path":"text/analytics/*","method":"*"}]},{"key":"bingVisualSearch","renewalPeriod":1,"count":30,"matchPatterns":[{"path":"bing/v7.0/images/visualsearch/*","method":"*"}]},{"key":"bingSearch","renewalPeriod":1,"count":250,"matchPatterns":[{"path":"bing/*","method":"*"}]},{"key":"bingCustomSearch","renewalPeriod":1,"count":150,"matchPatterns":[{"path":"bingcustomsearch/*","method":"*"}]},{"key":"speech.synthesize","renewalPeriod":1,"count":200,"matchPatterns":[{"path":"speech/synthesize","method":"*"}]},{"key":"speech.customvoicesynthesize","renewalPeriod":1,"count":200,"matchPatterns":[{"path":"speech/customvoicesynthesize","method":"*"}]},{"key":"speech.neuralvoicesynthesize","renewalPeriod":1,"count":200,"matchPatterns":[{"path":"speech/neuralvoicesynthesize","method":"*"}]},{"key":"speech.speechtotext","renewalPeriod":10,"count":100,"matchPatterns":[{"path":"speechtotext/*","method":"*"}]},{"key":"customvision.prediction","renewalPeriod":1,"count":10,"matchPatterns":[{"path":"customvision/v3.0/prediction/*","method":"*"}]},{"key":"customvision.training","renewalPeriod":1,"count":10,"matchPatterns":[{"path":"customvision/v3.0/training/*","method":"*"}]},{"key":"formrecognizer.custom.train","renewalPeriod":60,"count":1,"matchPatterns":[{"path":"formrecognizer/custom/train","method":"*"}]},{"key":"formrecognizer.custom.copymodels","renewalPeriod":60,"count":1,"matchPatterns":[{"path":"formrecognizer/custom/models/{modelId}/copy","method":"*"}]},{"key":"formrecognizer.custom.models.get","renewalPeriod":60,"count":10,"matchPatterns":[{"path":"formrecognizer/custom/models","method":"GET"}]},{"key":"formrecognizer.analyzeform","renewalPeriod":1,"count":15,"matchPatterns":[{"path":"formrecognizer/custom/models/{modelId}/analyze","method":"POST"}]},{"key":"formrecognizer.analyzeform.result","renewalPeriod":1,"count":100,"matchPatterns":[{"path":"formrecognizer/custom/models/{modelId}/analyzeResults/{resultId}","method":"GET"}]},{"key":"container.billing","renewalPeriod":10,"count":500,"matchPatterns":[{"path":"billing/*","method":"*"}]},{"key":"default","renewalPeriod":1,"count":20,"matchPatterns":[{"path":"*","method":"*"}]}]},"publicNetworkAccess":"Enabled","capabilities":[{"name":"Container","value":"TextAnalytics.*,TextAnalytics.Keyphrase,TextAnalytics.KeyphraseV2,TextAnalytics.Language,TextAnalytics.LanguageV2,TextAnalytics.Sentiment,TextAnalytics.SentimentV2,TextAnalytics.SentimentV3,TextAnalytics.SentimentV3Preview,SpeechServices.*,ContentModerator.*,Face.*,Face.Face,ComputerVision.*,LUIS.LUIS,FormRecognizer.*,FormRecognizer.Forms,FormRecognizer.FormRecognizerCustomSupervised,FormRecognizer.FormRecognizerReadLayout"}],"provisioningState":"Succeeded"},"identity":{"principalId":"0d6fa302-ffa5-42ac-b780-4cd86d214754","tenantId":"00000000-0000-0000-0000-000000000000","type":"SystemAssigned","userAssignedIdentities":{}}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_cognitiveservices_test_cognitiveservices680f1670/providers/Microsoft.CognitiveServices/accounts/myAccount","name":"myAccount","type":"Microsoft.CognitiveServices/accounts","etag":"\"1a003b3f-0000-0700-0000-5fe165710000\"","location":"West + US","sku":{"name":"S0"},"kind":"CognitiveServices","properties":{"endpoint":"https://westus.api.cognitive.microsoft.com/","internalId":"e419776edc0a481dbd395715e33cb3d9","dateCreated":"2020-12-22T03:18:07.9106773Z","apiProperties":{},"callRateLimit":{"rules":[{"key":"token","renewalPeriod":1,"count":100,"matchPatterns":[{"path":"sts/v1.0/*","method":"*"}],"isDefault":false},{"key":"face","renewalPeriod":1,"count":15,"matchPatterns":[{"path":"face/v1.0/*","method":"*"}],"isDefault":false},{"key":"vision.recognizeText","renewalPeriod":1,"count":10,"matchPatterns":[{"path":"vision/recognizeText","method":"POST"},{"path":"vision/textOperations/*","method":"GET"},{"path":"vision/read/*","method":"*"}],"isDefault":false},{"key":"vision","renewalPeriod":1,"count":15,"matchPatterns":[{"path":"vision/*","method":"*"}],"isDefault":false},{"key":"contentModerator.list","renewalPeriod":1,"count":15,"matchPatterns":[{"path":"contentmoderator/lists/*","method":"*"}],"isDefault":false},{"key":"contentModerator.moderate","renewalPeriod":1,"count":20,"matchPatterns":[{"path":"contentmoderator/moderate/*","method":"*"}],"isDefault":false},{"key":"contentModerator.review","renewalPeriod":1,"count":20,"matchPatterns":[{"path":"contentmoderator/review/*","method":"*"}],"isDefault":false},{"key":"luis.endpoint","renewalPeriod":1,"count":50,"matchPatterns":[{"path":"luis/v2.0/apps/*","method":"*"},{"path":"luis/apps/*","method":"*"}],"isDefault":false},{"key":"textAnalytics","renewalPeriod":1,"count":20,"matchPatterns":[{"path":"text/analytics/*","method":"*"}],"isDefault":false},{"key":"bingVisualSearch","renewalPeriod":1,"count":30,"matchPatterns":[{"path":"bing/v7.0/images/visualsearch/*","method":"*"}],"isDefault":false},{"key":"bingSearch","renewalPeriod":1,"count":250,"matchPatterns":[{"path":"bing/*","method":"*"}],"isDefault":false},{"key":"bingCustomSearch","renewalPeriod":1,"count":150,"matchPatterns":[{"path":"bingcustomsearch/*","method":"*"}],"isDefault":false},{"key":"speech.synthesize","renewalPeriod":1,"count":200,"matchPatterns":[{"path":"speech/synthesize","method":"*"}],"isDefault":false},{"key":"speech.customvoicesynthesize","renewalPeriod":1,"count":200,"matchPatterns":[{"path":"speech/customvoicesynthesize","method":"*"}],"isDefault":false},{"key":"speech.neuralvoicesynthesize","renewalPeriod":1,"count":200,"matchPatterns":[{"path":"speech/neuralvoicesynthesize","method":"*"}],"isDefault":false},{"key":"speech.speechtotext","renewalPeriod":10,"count":100,"matchPatterns":[{"path":"speechtotext/*","method":"*"}],"isDefault":false},{"key":"customvision.prediction","renewalPeriod":1,"count":10,"matchPatterns":[{"path":"customvision/v3.0/prediction/*","method":"*"}],"isDefault":false},{"key":"customvision.training","renewalPeriod":1,"count":10,"matchPatterns":[{"path":"customvision/v3.0/training/*","method":"*"}],"isDefault":false},{"key":"formrecognizer.custom.train","renewalPeriod":60,"count":1,"matchPatterns":[{"path":"formrecognizer/custom/train","method":"*"}],"isDefault":false},{"key":"formrecognizer.custom.copymodels","renewalPeriod":60,"count":1,"matchPatterns":[{"path":"formrecognizer/custom/models/{modelId}/copy","method":"*"}],"isDefault":false},{"key":"formrecognizer.custom.models.get","renewalPeriod":60,"count":10,"matchPatterns":[{"path":"formrecognizer/custom/models","method":"GET"}],"isDefault":false},{"key":"formrecognizer.analyzeform","renewalPeriod":1,"count":15,"matchPatterns":[{"path":"formrecognizer/custom/models/{modelId}/analyze","method":"POST"}],"isDefault":false},{"key":"formrecognizer.analyzeform.result","renewalPeriod":1,"count":100,"matchPatterns":[{"path":"formrecognizer/custom/models/{modelId}/analyzeResults/{resultId}","method":"GET"}],"isDefault":false},{"key":"container.billing","renewalPeriod":10,"count":500,"matchPatterns":[{"path":"billing/*","method":"*"}],"isDefault":false},{"key":"default","renewalPeriod":1,"count":20,"matchPatterns":[{"path":"*","method":"*"}],"isDefault":true}]},"publicNetworkAccess":"Enabled","capabilities":[{"name":"Container","value":"TextAnalytics.*,TextAnalytics.Keyphrase,TextAnalytics.KeyphraseV2,TextAnalytics.Language,TextAnalytics.LanguageV2,TextAnalytics.Sentiment,TextAnalytics.SentimentV2,TextAnalytics.SentimentV3,TextAnalytics.SentimentV3Preview,SpeechServices.*,ContentModerator.*,Face.*,Face.Face,ComputerVision.*,LUIS.LUIS,FormRecognizer.*,FormRecognizer.Forms,FormRecognizer.FormRecognizerCustomSupervised,FormRecognizer.FormRecognizerReadLayout,FormRecognizer.FormRecognizerId"}],"provisioningState":"Succeeded"},"identity":{"principalId":"ea1811f5-adef-40c6-abd6-491c87917fe0","tenantId":"00000000-0000-0000-0000-000000000000","type":"SystemAssigned","userAssignedIdentities":{}}}' headers: cache-control: - no-cache content-length: - - '4575' + - '5056' content-type: - application/json; charset=utf-8 date: - - Tue, 03 Nov 2020 07:21:00 GMT + - Tue, 22 Dec 2020 03:18:10 GMT etag: - - '"27009e80-0000-0700-0000-5fa104da0000"' + - '"1a003b3f-0000-0700-0000-5fe165710000"' expires: - '-1' pragma: @@ -43,9 +43,9 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '1293' + - '1145' x-ms-ratelimit-remaining-subscription-writes: - - '1198' + - '1199' status: code: 201 message: Created @@ -59,7 +59,7 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-mgmt-cognitiveservices/11.0.0b1 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-mgmt-cognitiveservices/11.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_cli_mgmt_cognitiveservices_test_cognitiveservices680f1670/providers/Microsoft.CognitiveServices/accounts/myAccount/usages?api-version=2017-04-18 response: @@ -73,7 +73,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 03 Nov 2020 07:21:00 GMT + - Tue, 22 Dec 2020 03:18:10 GMT expires: - '-1' pragma: @@ -89,7 +89,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '10' + - '12' status: code: 200 message: OK @@ -103,7 +103,7 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-mgmt-cognitiveservices/11.0.0b1 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-mgmt-cognitiveservices/11.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_cli_mgmt_cognitiveservices_test_cognitiveservices680f1670/providers/Microsoft.CognitiveServices/accounts/myAccount/skus?api-version=2017-04-18 response: @@ -117,7 +117,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 03 Nov 2020 07:21:01 GMT + - Tue, 22 Dec 2020 03:18:10 GMT expires: - '-1' pragma: @@ -147,24 +147,24 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-mgmt-cognitiveservices/11.0.0b1 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-mgmt-cognitiveservices/11.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_cli_mgmt_cognitiveservices_test_cognitiveservices680f1670/providers/Microsoft.CognitiveServices/accounts/myAccount?api-version=2017-04-18 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_cognitiveservices_test_cognitiveservices680f1670/providers/Microsoft.CognitiveServices/accounts/myAccount","name":"myAccount","type":"Microsoft.CognitiveServices/accounts","etag":"\"27009e80-0000-0700-0000-5fa104da0000\"","location":"West - US","sku":{"name":"S0"},"kind":"CognitiveServices","properties":{"endpoint":"https://westus.api.cognitive.microsoft.com/","internalId":"19b5914657ea44219d7861debd4194b7","dateCreated":"2020-11-03T07:20:57.4562968Z","apiProperties":{},"callRateLimit":{"rules":[{"key":"token","renewalPeriod":1,"count":100,"matchPatterns":[{"path":"sts/v1.0/*","method":"*"}]},{"key":"face","renewalPeriod":1,"count":15,"matchPatterns":[{"path":"face/v1.0/*","method":"*"}]},{"key":"vision.recognizeText","renewalPeriod":1,"count":10,"matchPatterns":[{"path":"vision/recognizeText","method":"POST"},{"path":"vision/textOperations/*","method":"GET"},{"path":"vision/read/*","method":"*"}]},{"key":"vision","renewalPeriod":1,"count":15,"matchPatterns":[{"path":"vision/*","method":"*"}]},{"key":"contentModerator.list","renewalPeriod":1,"count":15,"matchPatterns":[{"path":"contentmoderator/lists/*","method":"*"}]},{"key":"contentModerator.moderate","renewalPeriod":1,"count":20,"matchPatterns":[{"path":"contentmoderator/moderate/*","method":"*"}]},{"key":"contentModerator.review","renewalPeriod":1,"count":20,"matchPatterns":[{"path":"contentmoderator/review/*","method":"*"}]},{"key":"luis.endpoint","renewalPeriod":1,"count":50,"matchPatterns":[{"path":"luis/v2.0/apps/*","method":"*"},{"path":"luis/apps/*","method":"*"}]},{"key":"textAnalytics","renewalPeriod":1,"count":20,"matchPatterns":[{"path":"text/analytics/*","method":"*"}]},{"key":"bingVisualSearch","renewalPeriod":1,"count":30,"matchPatterns":[{"path":"bing/v7.0/images/visualsearch/*","method":"*"}]},{"key":"bingSearch","renewalPeriod":1,"count":250,"matchPatterns":[{"path":"bing/*","method":"*"}]},{"key":"bingCustomSearch","renewalPeriod":1,"count":150,"matchPatterns":[{"path":"bingcustomsearch/*","method":"*"}]},{"key":"speech.synthesize","renewalPeriod":1,"count":200,"matchPatterns":[{"path":"speech/synthesize","method":"*"}]},{"key":"speech.customvoicesynthesize","renewalPeriod":1,"count":200,"matchPatterns":[{"path":"speech/customvoicesynthesize","method":"*"}]},{"key":"speech.neuralvoicesynthesize","renewalPeriod":1,"count":200,"matchPatterns":[{"path":"speech/neuralvoicesynthesize","method":"*"}]},{"key":"speech.speechtotext","renewalPeriod":10,"count":100,"matchPatterns":[{"path":"speechtotext/*","method":"*"}]},{"key":"customvision.prediction","renewalPeriod":1,"count":10,"matchPatterns":[{"path":"customvision/v3.0/prediction/*","method":"*"}]},{"key":"customvision.training","renewalPeriod":1,"count":10,"matchPatterns":[{"path":"customvision/v3.0/training/*","method":"*"}]},{"key":"formrecognizer.custom.train","renewalPeriod":60,"count":1,"matchPatterns":[{"path":"formrecognizer/custom/train","method":"*"}]},{"key":"formrecognizer.custom.copymodels","renewalPeriod":60,"count":1,"matchPatterns":[{"path":"formrecognizer/custom/models/{modelId}/copy","method":"*"}]},{"key":"formrecognizer.custom.models.get","renewalPeriod":60,"count":10,"matchPatterns":[{"path":"formrecognizer/custom/models","method":"GET"}]},{"key":"formrecognizer.analyzeform","renewalPeriod":1,"count":15,"matchPatterns":[{"path":"formrecognizer/custom/models/{modelId}/analyze","method":"POST"}]},{"key":"formrecognizer.analyzeform.result","renewalPeriod":1,"count":100,"matchPatterns":[{"path":"formrecognizer/custom/models/{modelId}/analyzeResults/{resultId}","method":"GET"}]},{"key":"container.billing","renewalPeriod":10,"count":500,"matchPatterns":[{"path":"billing/*","method":"*"}]},{"key":"default","renewalPeriod":1,"count":20,"matchPatterns":[{"path":"*","method":"*"}]}]},"publicNetworkAccess":"Enabled","capabilities":[{"name":"Container","value":"TextAnalytics.*,TextAnalytics.Keyphrase,TextAnalytics.KeyphraseV2,TextAnalytics.Language,TextAnalytics.LanguageV2,TextAnalytics.Sentiment,TextAnalytics.SentimentV2,TextAnalytics.SentimentV3,TextAnalytics.SentimentV3Preview,SpeechServices.*,ContentModerator.*,Face.*,Face.Face,ComputerVision.*,LUIS.LUIS,FormRecognizer.*,FormRecognizer.Forms,FormRecognizer.FormRecognizerCustomSupervised,FormRecognizer.FormRecognizerReadLayout"}],"provisioningState":"Succeeded"},"identity":{"principalId":"0d6fa302-ffa5-42ac-b780-4cd86d214754","tenantId":"00000000-0000-0000-0000-000000000000","type":"SystemAssigned","userAssignedIdentities":{}}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_cognitiveservices_test_cognitiveservices680f1670/providers/Microsoft.CognitiveServices/accounts/myAccount","name":"myAccount","type":"Microsoft.CognitiveServices/accounts","etag":"\"1a003b3f-0000-0700-0000-5fe165710000\"","location":"West + US","sku":{"name":"S0"},"kind":"CognitiveServices","properties":{"endpoint":"https://westus.api.cognitive.microsoft.com/","internalId":"e419776edc0a481dbd395715e33cb3d9","dateCreated":"2020-12-22T03:18:07.9106773Z","apiProperties":{},"callRateLimit":{"rules":[{"key":"token","renewalPeriod":1,"count":100,"matchPatterns":[{"path":"sts/v1.0/*","method":"*"}],"isDefault":false},{"key":"face","renewalPeriod":1,"count":15,"matchPatterns":[{"path":"face/v1.0/*","method":"*"}],"isDefault":false},{"key":"vision.recognizeText","renewalPeriod":1,"count":10,"matchPatterns":[{"path":"vision/recognizeText","method":"POST"},{"path":"vision/textOperations/*","method":"GET"},{"path":"vision/read/*","method":"*"}],"isDefault":false},{"key":"vision","renewalPeriod":1,"count":15,"matchPatterns":[{"path":"vision/*","method":"*"}],"isDefault":false},{"key":"contentModerator.list","renewalPeriod":1,"count":15,"matchPatterns":[{"path":"contentmoderator/lists/*","method":"*"}],"isDefault":false},{"key":"contentModerator.moderate","renewalPeriod":1,"count":20,"matchPatterns":[{"path":"contentmoderator/moderate/*","method":"*"}],"isDefault":false},{"key":"contentModerator.review","renewalPeriod":1,"count":20,"matchPatterns":[{"path":"contentmoderator/review/*","method":"*"}],"isDefault":false},{"key":"luis.endpoint","renewalPeriod":1,"count":50,"matchPatterns":[{"path":"luis/v2.0/apps/*","method":"*"},{"path":"luis/apps/*","method":"*"}],"isDefault":false},{"key":"textAnalytics","renewalPeriod":1,"count":20,"matchPatterns":[{"path":"text/analytics/*","method":"*"}],"isDefault":false},{"key":"bingVisualSearch","renewalPeriod":1,"count":30,"matchPatterns":[{"path":"bing/v7.0/images/visualsearch/*","method":"*"}],"isDefault":false},{"key":"bingSearch","renewalPeriod":1,"count":250,"matchPatterns":[{"path":"bing/*","method":"*"}],"isDefault":false},{"key":"bingCustomSearch","renewalPeriod":1,"count":150,"matchPatterns":[{"path":"bingcustomsearch/*","method":"*"}],"isDefault":false},{"key":"speech.synthesize","renewalPeriod":1,"count":200,"matchPatterns":[{"path":"speech/synthesize","method":"*"}],"isDefault":false},{"key":"speech.customvoicesynthesize","renewalPeriod":1,"count":200,"matchPatterns":[{"path":"speech/customvoicesynthesize","method":"*"}],"isDefault":false},{"key":"speech.neuralvoicesynthesize","renewalPeriod":1,"count":200,"matchPatterns":[{"path":"speech/neuralvoicesynthesize","method":"*"}],"isDefault":false},{"key":"speech.speechtotext","renewalPeriod":10,"count":100,"matchPatterns":[{"path":"speechtotext/*","method":"*"}],"isDefault":false},{"key":"customvision.prediction","renewalPeriod":1,"count":10,"matchPatterns":[{"path":"customvision/v3.0/prediction/*","method":"*"}],"isDefault":false},{"key":"customvision.training","renewalPeriod":1,"count":10,"matchPatterns":[{"path":"customvision/v3.0/training/*","method":"*"}],"isDefault":false},{"key":"formrecognizer.custom.train","renewalPeriod":60,"count":1,"matchPatterns":[{"path":"formrecognizer/custom/train","method":"*"}],"isDefault":false},{"key":"formrecognizer.custom.copymodels","renewalPeriod":60,"count":1,"matchPatterns":[{"path":"formrecognizer/custom/models/{modelId}/copy","method":"*"}],"isDefault":false},{"key":"formrecognizer.custom.models.get","renewalPeriod":60,"count":10,"matchPatterns":[{"path":"formrecognizer/custom/models","method":"GET"}],"isDefault":false},{"key":"formrecognizer.analyzeform","renewalPeriod":1,"count":15,"matchPatterns":[{"path":"formrecognizer/custom/models/{modelId}/analyze","method":"POST"}],"isDefault":false},{"key":"formrecognizer.analyzeform.result","renewalPeriod":1,"count":100,"matchPatterns":[{"path":"formrecognizer/custom/models/{modelId}/analyzeResults/{resultId}","method":"GET"}],"isDefault":false},{"key":"container.billing","renewalPeriod":10,"count":500,"matchPatterns":[{"path":"billing/*","method":"*"}],"isDefault":false},{"key":"default","renewalPeriod":1,"count":20,"matchPatterns":[{"path":"*","method":"*"}],"isDefault":true}]},"publicNetworkAccess":"Enabled","capabilities":[{"name":"Container","value":"TextAnalytics.*,TextAnalytics.Keyphrase,TextAnalytics.KeyphraseV2,TextAnalytics.Language,TextAnalytics.LanguageV2,TextAnalytics.Sentiment,TextAnalytics.SentimentV2,TextAnalytics.SentimentV3,TextAnalytics.SentimentV3Preview,SpeechServices.*,ContentModerator.*,Face.*,Face.Face,ComputerVision.*,LUIS.LUIS,FormRecognizer.*,FormRecognizer.Forms,FormRecognizer.FormRecognizerCustomSupervised,FormRecognizer.FormRecognizerReadLayout,FormRecognizer.FormRecognizerId"}],"provisioningState":"Succeeded"},"identity":{"principalId":"ea1811f5-adef-40c6-abd6-491c87917fe0","tenantId":"00000000-0000-0000-0000-000000000000","type":"SystemAssigned","userAssignedIdentities":{}}}' headers: cache-control: - no-cache content-length: - - '4575' + - '5056' content-type: - application/json; charset=utf-8 date: - - Tue, 03 Nov 2020 07:21:01 GMT + - Tue, 22 Dec 2020 03:18:11 GMT etag: - - '"27009e80-0000-0700-0000-5fa104da0000"' + - '"1a003b3f-0000-0700-0000-5fe165710000"' expires: - '-1' pragma: @@ -180,7 +180,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '12' + - '9' status: code: 200 message: OK @@ -198,12 +198,12 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-mgmt-cognitiveservices/11.0.0b1 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-mgmt-cognitiveservices/11.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_cli_mgmt_cognitiveservices_test_cognitiveservices680f1670/providers/Microsoft.CognitiveServices/accounts/myAccount/regenerateKey?api-version=2017-04-18 response: body: - string: '{"key1":"2c7c4cf8e0324af1b6986c705930737c","key2":"bc3b54b8ad384752a1a58f7dc60a5cb3"}' + string: '{"key1":"7e077f94343e47e783bd497a9600cf16","key2":"798cfb86348f4744bf8bee31d18120ec"}' headers: cache-control: - no-cache @@ -212,7 +212,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 03 Nov 2020 07:21:02 GMT + - Tue, 22 Dec 2020 03:18:11 GMT expires: - '-1' pragma: @@ -228,7 +228,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '273' + - '227' x-ms-ratelimit-remaining-subscription-writes: - '1199' status: @@ -246,12 +246,12 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-mgmt-cognitiveservices/11.0.0b1 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-mgmt-cognitiveservices/11.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_cli_mgmt_cognitiveservices_test_cognitiveservices680f1670/providers/Microsoft.CognitiveServices/accounts/myAccount/listKeys?api-version=2017-04-18 response: body: - string: '{"key1":"2c7c4cf8e0324af1b6986c705930737c","key2":"bc3b54b8ad384752a1a58f7dc60a5cb3"}' + string: '{"key1":"7e077f94343e47e783bd497a9600cf16","key2":"798cfb86348f4744bf8bee31d18120ec"}' headers: cache-control: - no-cache @@ -260,7 +260,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 03 Nov 2020 07:21:02 GMT + - Tue, 22 Dec 2020 03:18:12 GMT expires: - '-1' pragma: @@ -276,7 +276,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '126' + - '74' x-ms-ratelimit-remaining-subscription-writes: - '1198' status: @@ -296,7 +296,7 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-mgmt-cognitiveservices/11.0.0b1 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-mgmt-cognitiveservices/11.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.CognitiveServices/locations/eastus/checkSkuAvailability?api-version=2017-04-18 response: @@ -310,7 +310,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 03 Nov 2020 07:21:03 GMT + - Tue, 22 Dec 2020 03:18:13 GMT expires: - '-1' pragma: @@ -326,7 +326,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '17' + - '15' x-ms-ratelimit-remaining-subscription-writes: - '1197' status: @@ -344,7 +344,7 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-mgmt-cognitiveservices/11.0.0b1 Python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) + - azsdk-python-mgmt-cognitiveservices/11.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_cli_mgmt_cognitiveservices_test_cognitiveservices680f1670/providers/Microsoft.CognitiveServices/accounts/myAccount?api-version=2017-04-18 response: @@ -356,7 +356,7 @@ interactions: content-length: - '0' date: - - Tue, 03 Nov 2020 07:21:09 GMT + - Tue, 22 Dec 2020 03:18:19 GMT expires: - '-1' pragma: @@ -368,7 +368,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '266' + - '261' x-ms-ratelimit-remaining-subscription-deletes: - '14999' status: