Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AutoRelease] t2-cognitiveservices-2021-11-03-56855 #21556

Merged
merged 3 commits into from
Nov 15, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions sdk/cognitiveservices/azure-mgmt-cognitiveservices/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,19 @@
# Release History

## 13.0.0 (2021-11-15)

**Features**

- Model DomainAvailability has a new parameter kind
- Model CheckDomainAvailabilityParameter has a new parameter kind
- Added operation group CommitmentPlansOperations
- Added operation group CommitmentTiersOperations
- Added operation group DeploymentsOperations

**Breaking changes**

- Operation CognitiveServicesManagementClientOperationsMixin.check_domain_availability has a new signature

## 12.0.0 (2021-06-03)

**Features**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"autorest": "3.4.2",
"autorest": "3.4.5",
"use": [
"@autorest/python@5.8.0",
"@autorest/python@5.8.4",
"@autorest/modelerfour@4.19.2"
],
"commit": "d3a5ab585146ee8ee09f43eb0948c45daacd36f7",
"commit": "e0b5060d30138df66bd64bf0ca6b2010be18717f",
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
"autorest_command": "autorest specification/cognitiveservices/resource-manager/readme.md --multiapi --python --python-mode=update --python-sdks-folder=/home/vsts/work/1/s/azure-sdk-for-python/sdk --track2 --use=@autorest/python@5.8.0 --use=@autorest/modelerfour@4.19.2 --version=3.4.2",
"autorest_command": "autorest specification/cognitiveservices/resource-manager/readme.md --multiapi --python --python-mode=update --python-sdks-folder=/home/vsts/work/1/s/azure-sdk-for-python/sdk --track2 --use=@autorest/python@5.8.4 --use=@autorest/modelerfour@4.19.2 --version=3.4.5",
"readme": "specification/cognitiveservices/resource-manager/readme.md"
}
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,11 @@
from .operations import ResourceSkusOperations
from .operations import Operations
from .operations import CognitiveServicesManagementClientOperationsMixin
from .operations import CommitmentTiersOperations
from .operations import PrivateEndpointConnectionsOperations
from .operations import PrivateLinkResourcesOperations
from .operations import DeploymentsOperations
from .operations import CommitmentPlansOperations
from . import models


Expand All @@ -40,10 +43,16 @@ class CognitiveServicesManagementClient(CognitiveServicesManagementClientOperati
:vartype resource_skus: azure.mgmt.cognitiveservices.operations.ResourceSkusOperations
:ivar operations: Operations operations
:vartype operations: azure.mgmt.cognitiveservices.operations.Operations
:ivar commitment_tiers: CommitmentTiersOperations operations
:vartype commitment_tiers: azure.mgmt.cognitiveservices.operations.CommitmentTiersOperations
:ivar private_endpoint_connections: PrivateEndpointConnectionsOperations operations
:vartype private_endpoint_connections: azure.mgmt.cognitiveservices.operations.PrivateEndpointConnectionsOperations
:ivar private_link_resources: PrivateLinkResourcesOperations operations
:vartype private_link_resources: azure.mgmt.cognitiveservices.operations.PrivateLinkResourcesOperations
:ivar deployments: DeploymentsOperations operations
:vartype deployments: azure.mgmt.cognitiveservices.operations.DeploymentsOperations
:ivar commitment_plans: CommitmentPlansOperations operations
:vartype commitment_plans: azure.mgmt.cognitiveservices.operations.CommitmentPlansOperations
:param credential: Credential needed for the client to connect to Azure.
:type credential: ~azure.core.credentials.TokenCredential
:param subscription_id: The ID of the target subscription.
Expand Down Expand Up @@ -78,10 +87,16 @@ def __init__(
self._client, self._config, self._serialize, self._deserialize)
self.operations = Operations(
self._client, self._config, self._serialize, self._deserialize)
self.commitment_tiers = CommitmentTiersOperations(
self._client, self._config, self._serialize, self._deserialize)
self.private_endpoint_connections = PrivateEndpointConnectionsOperations(
self._client, self._config, self._serialize, self._deserialize)
self.private_link_resources = PrivateLinkResourcesOperations(
self._client, self._config, self._serialize, self._deserialize)
self.deployments = DeploymentsOperations(
self._client, self._config, self._serialize, self._deserialize)
self.commitment_plans = CommitmentPlansOperations(
self._client, self._config, self._serialize, self._deserialize)

def _send_request(self, http_request, **kwargs):
# type: (HttpRequest, Any) -> HttpResponse
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def __init__(

self.credential = credential
self.subscription_id = subscription_id
self.api_version = "2021-04-30"
self.api_version = "2021-10-01"
self.credential_scopes = kwargs.pop('credential_scopes', ['https://management.azure.com/.default'])
kwargs.setdefault('sdk_moniker', 'mgmt-cognitiveservices/{}'.format(VERSION))
self._configure(**kwargs)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"chosen_version": "2021-04-30",
"total_api_version_list": ["2021-04-30"],
"chosen_version": "2021-10-01",
"total_api_version_list": ["2021-10-01"],
"client": {
"name": "CognitiveServicesManagementClient",
"filename": "_cognitive_services_management_client",
Expand Down Expand Up @@ -102,8 +102,11 @@
"deleted_accounts": "DeletedAccountsOperations",
"resource_skus": "ResourceSkusOperations",
"operations": "Operations",
"commitment_tiers": "CommitmentTiersOperations",
"private_endpoint_connections": "PrivateEndpointConnectionsOperations",
"private_link_resources": "PrivateLinkResourcesOperations"
"private_link_resources": "PrivateLinkResourcesOperations",
"deployments": "DeploymentsOperations",
"commitment_plans": "CommitmentPlansOperations"
},
"operation_mixins": {
"sync_imports": "{\"regular\": {\"azurecore\": {\"azure.core.exceptions\": [\"ClientAuthenticationError\", \"HttpResponseError\", \"ResourceExistsError\", \"ResourceNotFoundError\", \"map_error\"], \"azure.mgmt.core.exceptions\": [\"ARMErrorFormat\"], \"azure.core.pipeline\": [\"PipelineResponse\"], \"azure.core.pipeline.transport\": [\"HttpRequest\", \"HttpResponse\"]}, \"stdlib\": {\"warnings\": [null]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Callable\", \"Dict\", \"Generic\", \"List\", \"Optional\", \"TypeVar\"]}}}",
Expand All @@ -123,15 +126,15 @@
},
"check_domain_availability" : {
"sync": {
"signature": "def check_domain_availability(\n self,\n subdomain_name, # type: str\n type, # type: str\n **kwargs # type: Any\n):\n",
"doc": "\"\"\"Check whether a domain is available.\n\n:param subdomain_name: The subdomain name to use.\n:type subdomain_name: str\n:param type: The Type of the resource.\n:type type: str\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: DomainAvailability, or the result of cls(response)\n:rtype: ~azure.mgmt.cognitiveservices.models.DomainAvailability\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\""
"signature": "def check_domain_availability(\n self,\n subdomain_name, # type: str\n type, # type: str\n kind=None, # type: Optional[str]\n **kwargs # type: Any\n):\n",
"doc": "\"\"\"Check whether a domain is available.\n\n:param subdomain_name: The subdomain name to use.\n:type subdomain_name: str\n:param type: The Type of the resource.\n:type type: str\n:param kind: The Kind of the resource.\n:type kind: str\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: DomainAvailability, or the result of cls(response)\n:rtype: ~azure.mgmt.cognitiveservices.models.DomainAvailability\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\""
},
"async": {
"coroutine": true,
"signature": "async def check_domain_availability(\n self,\n subdomain_name: str,\n type: str,\n **kwargs: Any\n) -\u003e \"_models.DomainAvailability\":\n",
"doc": "\"\"\"Check whether a domain is available.\n\n:param subdomain_name: The subdomain name to use.\n:type subdomain_name: str\n:param type: The Type of the resource.\n:type type: str\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: DomainAvailability, or the result of cls(response)\n:rtype: ~azure.mgmt.cognitiveservices.models.DomainAvailability\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\""
"signature": "async def check_domain_availability(\n self,\n subdomain_name: str,\n type: str,\n kind: Optional[str] = None,\n **kwargs: Any\n) -\u003e \"_models.DomainAvailability\":\n",
"doc": "\"\"\"Check whether a domain is available.\n\n:param subdomain_name: The subdomain name to use.\n:type subdomain_name: str\n:param type: The Type of the resource.\n:type type: str\n:param kind: The Kind of the resource.\n:type kind: str\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: DomainAvailability, or the result of cls(response)\n:rtype: ~azure.mgmt.cognitiveservices.models.DomainAvailability\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\""
},
"call": "subdomain_name, type"
"call": "subdomain_name, type, kind"
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

VERSION = "12.0.0"
VERSION = "13.0.0"
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,11 @@
from .operations import ResourceSkusOperations
from .operations import Operations
from .operations import CognitiveServicesManagementClientOperationsMixin
from .operations import CommitmentTiersOperations
from .operations import PrivateEndpointConnectionsOperations
from .operations import PrivateLinkResourcesOperations
from .operations import DeploymentsOperations
from .operations import CommitmentPlansOperations
from .. import models


Expand All @@ -38,10 +41,16 @@ class CognitiveServicesManagementClient(CognitiveServicesManagementClientOperati
:vartype resource_skus: azure.mgmt.cognitiveservices.aio.operations.ResourceSkusOperations
:ivar operations: Operations operations
:vartype operations: azure.mgmt.cognitiveservices.aio.operations.Operations
:ivar commitment_tiers: CommitmentTiersOperations operations
:vartype commitment_tiers: azure.mgmt.cognitiveservices.aio.operations.CommitmentTiersOperations
:ivar private_endpoint_connections: PrivateEndpointConnectionsOperations operations
:vartype private_endpoint_connections: azure.mgmt.cognitiveservices.aio.operations.PrivateEndpointConnectionsOperations
:ivar private_link_resources: PrivateLinkResourcesOperations operations
:vartype private_link_resources: azure.mgmt.cognitiveservices.aio.operations.PrivateLinkResourcesOperations
:ivar deployments: DeploymentsOperations operations
:vartype deployments: azure.mgmt.cognitiveservices.aio.operations.DeploymentsOperations
:ivar commitment_plans: CommitmentPlansOperations operations
:vartype commitment_plans: azure.mgmt.cognitiveservices.aio.operations.CommitmentPlansOperations
:param credential: Credential needed for the client to connect to Azure.
:type credential: ~azure.core.credentials_async.AsyncTokenCredential
:param subscription_id: The ID of the target subscription.
Expand Down Expand Up @@ -75,10 +84,16 @@ def __init__(
self._client, self._config, self._serialize, self._deserialize)
self.operations = Operations(
self._client, self._config, self._serialize, self._deserialize)
self.commitment_tiers = CommitmentTiersOperations(
self._client, self._config, self._serialize, self._deserialize)
self.private_endpoint_connections = PrivateEndpointConnectionsOperations(
self._client, self._config, self._serialize, self._deserialize)
self.private_link_resources = PrivateLinkResourcesOperations(
self._client, self._config, self._serialize, self._deserialize)
self.deployments = DeploymentsOperations(
self._client, self._config, self._serialize, self._deserialize)
self.commitment_plans = CommitmentPlansOperations(
self._client, self._config, self._serialize, self._deserialize)

async def _send_request(self, http_request: HttpRequest, **kwargs: Any) -> AsyncHttpResponse:
"""Runs the network request through the client's chained policies.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def __init__(

self.credential = credential
self.subscription_id = subscription_id
self.api_version = "2021-04-30"
self.api_version = "2021-10-01"
self.credential_scopes = kwargs.pop('credential_scopes', ['https://management.azure.com/.default'])
kwargs.setdefault('sdk_moniker', 'mgmt-cognitiveservices/{}'.format(VERSION))
self._configure(**kwargs)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,21 @@
from ._resource_skus_operations import ResourceSkusOperations
from ._operations import Operations
from ._cognitive_services_management_client_operations import CognitiveServicesManagementClientOperationsMixin
from ._commitment_tiers_operations import CommitmentTiersOperations
from ._private_endpoint_connections_operations import PrivateEndpointConnectionsOperations
from ._private_link_resources_operations import PrivateLinkResourcesOperations
from ._deployments_operations import DeploymentsOperations
from ._commitment_plans_operations import CommitmentPlansOperations

__all__ = [
'AccountsOperations',
'DeletedAccountsOperations',
'ResourceSkusOperations',
'Operations',
'CognitiveServicesManagementClientOperationsMixin',
'CommitmentTiersOperations',
'PrivateEndpointConnectionsOperations',
'PrivateLinkResourcesOperations',
'DeploymentsOperations',
'CommitmentPlansOperations',
]
Loading