Share via


DeploymentsOperations Class

Warning

DO NOT instantiate this class directly.

Instead, you should access the following operations through

CognitiveServicesManagementClient's

<xref:deployments> attribute.

Constructor

DeploymentsOperations(*args, **kwargs)

Methods

begin_create_or_update

Update the state of specified deployments associated with the Cognitive Services account.

begin_delete

Deletes the specified deployment associated with the Cognitive Services account.

begin_update

Update specified deployments associated with the Cognitive Services account.

get

Gets the specified deployments associated with the Cognitive Services account.

list

Gets the deployments associated with the Cognitive Services account.

list_skus

Lists the specified deployments skus associated with the Cognitive Services account.

begin_create_or_update

Update the state of specified deployments associated with the Cognitive Services account.

begin_create_or_update(resource_group_name: str, account_name: str, deployment_name: str, deployment: _models.Deployment, *, content_type: str = 'application/json', **kwargs: Any) -> LROPoller[_models.Deployment]

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group. The name is case insensitive. Required.

account_name
Required
str

The name of Cognitive Services account. Required.

deployment_name
Required
str

The name of the deployment associated with the Cognitive Services Account. Required.

deployment
Required

The deployment properties. Is either a Deployment type or a IO[bytes] type. Required.

Returns

Type Description

An instance of LROPoller that returns either Deployment or the result of cls(response)

Exceptions

Type Description

begin_delete

Deletes the specified deployment associated with the Cognitive Services account.

begin_delete(resource_group_name: str, account_name: str, deployment_name: str, **kwargs: Any) -> LROPoller[None]

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group. The name is case insensitive. Required.

account_name
Required
str

The name of Cognitive Services account. Required.

deployment_name
Required
str

The name of the deployment associated with the Cognitive Services Account. Required.

Returns

Type Description

An instance of LROPoller that returns either None or the result of cls(response)

Exceptions

Type Description

begin_update

Update specified deployments associated with the Cognitive Services account.

begin_update(resource_group_name: str, account_name: str, deployment_name: str, deployment: _models.PatchResourceTagsAndSku, *, content_type: str = 'application/json', **kwargs: Any) -> LROPoller[_models.Deployment]

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group. The name is case insensitive. Required.

account_name
Required
str

The name of Cognitive Services account. Required.

deployment_name
Required
str

The name of the deployment associated with the Cognitive Services Account. Required.

deployment
Required

The deployment properties. Is either a PatchResourceTagsAndSku type or a IO[bytes] type. Required.

Returns

Type Description

An instance of LROPoller that returns either Deployment or the result of cls(response)

Exceptions

Type Description

get

Gets the specified deployments associated with the Cognitive Services account.

get(resource_group_name: str, account_name: str, deployment_name: str, **kwargs: Any) -> Deployment

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group. The name is case insensitive. Required.

account_name
Required
str

The name of Cognitive Services account. Required.

deployment_name
Required
str

The name of the deployment associated with the Cognitive Services Account. Required.

Returns

Type Description

Deployment or the result of cls(response)

Exceptions

Type Description

list

Gets the deployments associated with the Cognitive Services account.

list(resource_group_name: str, account_name: str, **kwargs: Any) -> ItemPaged[Deployment]

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group. The name is case insensitive. Required.

account_name
Required
str

The name of Cognitive Services account. Required.

Returns

Type Description

An iterator like instance of either Deployment or the result of cls(response)

Exceptions

Type Description

list_skus

Lists the specified deployments skus associated with the Cognitive Services account.

list_skus(resource_group_name: str, account_name: str, deployment_name: str, **kwargs: Any) -> ItemPaged[SkuResource]

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group. The name is case insensitive. Required.

account_name
Required
str

The name of Cognitive Services account. Required.

deployment_name
Required
str

The name of the deployment associated with the Cognitive Services Account. Required.

Returns

Type Description

An iterator like instance of either SkuResource or the result of cls(response)

Exceptions

Type Description

Attributes

models

models = <module 'azure.mgmt.cognitiveservices.models' from 'C:\\ToolCache\\Python\\3.11.9\\x64\\Lib\\site-packages\\py2docfx\\venv\\venv86\\Lib\\site-packages\\azure\\mgmt\\cognitiveservices\\models\\__init__.py'>