你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

Deployments interface

Interface representing a Deployments.

Methods

beginCreateOrUpdate(string, string, string, Deployment, DeploymentsCreateOrUpdateOptionalParams)

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

beginCreateOrUpdateAndWait(string, string, string, Deployment, DeploymentsCreateOrUpdateOptionalParams)

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

beginDelete(string, string, string, DeploymentsDeleteOptionalParams)

Deletes the specified deployment associated with the Cognitive Services account.

beginDeleteAndWait(string, string, string, DeploymentsDeleteOptionalParams)

Deletes the specified deployment associated with the Cognitive Services account.

get(string, string, string, DeploymentsGetOptionalParams)

Gets the specified deployments associated with the Cognitive Services account.

list(string, string, DeploymentsListOptionalParams)

Gets the deployments associated with the Cognitive Services account.

Method Details

beginCreateOrUpdate(string, string, string, Deployment, DeploymentsCreateOrUpdateOptionalParams)

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

function beginCreateOrUpdate(resourceGroupName: string, accountName: string, deploymentName: string, deployment: Deployment, options?: DeploymentsCreateOrUpdateOptionalParams): Promise<SimplePollerLike<OperationState<Deployment>, Deployment>>

Parameters

resourceGroupName

string

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

accountName

string

The name of Cognitive Services account.

deploymentName

string

The name of the deployment associated with the Cognitive Services Account

deployment
Deployment

The deployment properties.

options
DeploymentsCreateOrUpdateOptionalParams

The options parameters.

Returns

Promise<@azure/core-lro.SimplePollerLike<OperationState<Deployment>, Deployment>>

beginCreateOrUpdateAndWait(string, string, string, Deployment, DeploymentsCreateOrUpdateOptionalParams)

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

function beginCreateOrUpdateAndWait(resourceGroupName: string, accountName: string, deploymentName: string, deployment: Deployment, options?: DeploymentsCreateOrUpdateOptionalParams): Promise<Deployment>

Parameters

resourceGroupName

string

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

accountName

string

The name of Cognitive Services account.

deploymentName

string

The name of the deployment associated with the Cognitive Services Account

deployment
Deployment

The deployment properties.

options
DeploymentsCreateOrUpdateOptionalParams

The options parameters.

Returns

Promise<Deployment>

beginDelete(string, string, string, DeploymentsDeleteOptionalParams)

Deletes the specified deployment associated with the Cognitive Services account.

function beginDelete(resourceGroupName: string, accountName: string, deploymentName: string, options?: DeploymentsDeleteOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>

Parameters

resourceGroupName

string

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

accountName

string

The name of Cognitive Services account.

deploymentName

string

The name of the deployment associated with the Cognitive Services Account

options
DeploymentsDeleteOptionalParams

The options parameters.

Returns

Promise<@azure/core-lro.SimplePollerLike<OperationState<void>, void>>

beginDeleteAndWait(string, string, string, DeploymentsDeleteOptionalParams)

Deletes the specified deployment associated with the Cognitive Services account.

function beginDeleteAndWait(resourceGroupName: string, accountName: string, deploymentName: string, options?: DeploymentsDeleteOptionalParams): Promise<void>

Parameters

resourceGroupName

string

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

accountName

string

The name of Cognitive Services account.

deploymentName

string

The name of the deployment associated with the Cognitive Services Account

options
DeploymentsDeleteOptionalParams

The options parameters.

Returns

Promise<void>

get(string, string, string, DeploymentsGetOptionalParams)

Gets the specified deployments associated with the Cognitive Services account.

function get(resourceGroupName: string, accountName: string, deploymentName: string, options?: DeploymentsGetOptionalParams): Promise<Deployment>

Parameters

resourceGroupName

string

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

accountName

string

The name of Cognitive Services account.

deploymentName

string

The name of the deployment associated with the Cognitive Services Account

options
DeploymentsGetOptionalParams

The options parameters.

Returns

Promise<Deployment>

list(string, string, DeploymentsListOptionalParams)

Gets the deployments associated with the Cognitive Services account.

function list(resourceGroupName: string, accountName: string, options?: DeploymentsListOptionalParams): PagedAsyncIterableIterator<Deployment, Deployment[], PageSettings>

Parameters

resourceGroupName

string

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

accountName

string

The name of Cognitive Services account.

options
DeploymentsListOptionalParams

The options parameters.

Returns