Share via


CommitmentPlansOperations Class

Warning

DO NOT instantiate this class directly.

Instead, you should access the following operations through

CognitiveServicesManagementClient's

<xref:commitment_plans> attribute.

Constructor

CommitmentPlansOperations(*args, **kwargs)

Methods

begin_create_or_update_association

Create or update the association of the Cognitive Services commitment plan.

begin_create_or_update_plan

Create Cognitive Services commitment plan.

begin_delete

Deletes the specified commitmentPlan associated with the Cognitive Services account.

begin_delete_association

Deletes the association of the Cognitive Services commitment plan.

begin_delete_plan

Deletes a Cognitive Services commitment plan from the resource group.

begin_update_plan

Create Cognitive Services commitment plan.

create_or_update

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

get

Gets the specified commitmentPlans associated with the Cognitive Services account.

get_association

Gets the association of the Cognitive Services commitment plan.

get_plan

Returns a Cognitive Services commitment plan specified by the parameters.

list

Gets the commitmentPlans associated with the Cognitive Services account.

list_associations

Gets the associations of the Cognitive Services commitment plan.

list_plans_by_resource_group

Returns all the resources of a particular type belonging to a resource group.

list_plans_by_subscription

Returns all the resources of a particular type belonging to a subscription.

begin_create_or_update_association

Create or update the association of the Cognitive Services commitment plan.

begin_create_or_update_association(resource_group_name: str, commitment_plan_name: str, commitment_plan_association_name: str, association: _models.CommitmentPlanAccountAssociation, *, content_type: str = 'application/json', **kwargs: Any) -> LROPoller[_models.CommitmentPlanAccountAssociation]

Parameters

Name Description
resource_group_name
Required
str

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

commitment_plan_name
Required
str

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

commitment_plan_association_name
Required
str

The name of the commitment plan association with the Cognitive Services Account. Required.

association
Required

The commitmentPlan properties. Is either a CommitmentPlanAccountAssociation type or a IO[bytes] type. Required.

Returns

Type Description

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

Exceptions

Type Description

begin_create_or_update_plan

Create Cognitive Services commitment plan.

begin_create_or_update_plan(resource_group_name: str, commitment_plan_name: str, commitment_plan: _models.CommitmentPlan, *, content_type: str = 'application/json', **kwargs: Any) -> LROPoller[_models.CommitmentPlan]

Parameters

Name Description
resource_group_name
Required
str

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

commitment_plan_name
Required
str

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

commitment_plan
Required

The parameters to provide for the created commitment plan. Is either a CommitmentPlan type or a IO[bytes] type. Required.

Returns

Type Description

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

Exceptions

Type Description

begin_delete

Deletes the specified commitmentPlan associated with the Cognitive Services account.

begin_delete(resource_group_name: str, account_name: str, commitment_plan_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.

commitment_plan_name
Required
str

The name of the commitmentPlan 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_delete_association

Deletes the association of the Cognitive Services commitment plan.

begin_delete_association(resource_group_name: str, commitment_plan_name: str, commitment_plan_association_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.

commitment_plan_name
Required
str

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

commitment_plan_association_name
Required
str

The name of the commitment plan association 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_delete_plan

Deletes a Cognitive Services commitment plan from the resource group.

begin_delete_plan(resource_group_name: str, commitment_plan_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.

commitment_plan_name
Required
str

The name of the commitmentPlan 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_plan

Create Cognitive Services commitment plan.

begin_update_plan(resource_group_name: str, commitment_plan_name: str, commitment_plan: _models.PatchResourceTagsAndSku, *, content_type: str = 'application/json', **kwargs: Any) -> LROPoller[_models.CommitmentPlan]

Parameters

Name Description
resource_group_name
Required
str

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

commitment_plan_name
Required
str

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

commitment_plan
Required

The parameters to provide for the created commitment plan. Is either a PatchResourceTagsAndSku type or a IO[bytes] type. Required.

Returns

Type Description

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

Exceptions

Type Description

create_or_update

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

create_or_update(resource_group_name: str, account_name: str, commitment_plan_name: str, commitment_plan: _models.CommitmentPlan, *, content_type: str = 'application/json', **kwargs: Any) -> _models.CommitmentPlan

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.

commitment_plan_name
Required
str

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

commitment_plan
Required

The commitmentPlan properties. Is either a CommitmentPlan type or a IO[bytes] type. Required.

Returns

Type Description

CommitmentPlan or the result of cls(response)

Exceptions

Type Description

get

Gets the specified commitmentPlans associated with the Cognitive Services account.

get(resource_group_name: str, account_name: str, commitment_plan_name: str, **kwargs: Any) -> CommitmentPlan

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.

commitment_plan_name
Required
str

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

Returns

Type Description

CommitmentPlan or the result of cls(response)

Exceptions

Type Description

get_association

Gets the association of the Cognitive Services commitment plan.

get_association(resource_group_name: str, commitment_plan_name: str, commitment_plan_association_name: str, **kwargs: Any) -> CommitmentPlanAccountAssociation

Parameters

Name Description
resource_group_name
Required
str

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

commitment_plan_name
Required
str

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

commitment_plan_association_name
Required
str

The name of the commitment plan association with the Cognitive Services Account. Required.

Returns

Type Description

CommitmentPlanAccountAssociation or the result of cls(response)

Exceptions

Type Description

get_plan

Returns a Cognitive Services commitment plan specified by the parameters.

get_plan(resource_group_name: str, commitment_plan_name: str, **kwargs: Any) -> CommitmentPlan

Parameters

Name Description
resource_group_name
Required
str

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

commitment_plan_name
Required
str

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

Returns

Type Description

CommitmentPlan or the result of cls(response)

Exceptions

Type Description

list

Gets the commitmentPlans associated with the Cognitive Services account.

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

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 CommitmentPlan or the result of cls(response)

Exceptions

Type Description

list_associations

Gets the associations of the Cognitive Services commitment plan.

list_associations(resource_group_name: str, commitment_plan_name: str, **kwargs: Any) -> ItemPaged[CommitmentPlanAccountAssociation]

Parameters

Name Description
resource_group_name
Required
str

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

commitment_plan_name
Required
str

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

Returns

Type Description

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

Exceptions

Type Description

list_plans_by_resource_group

Returns all the resources of a particular type belonging to a resource group.

list_plans_by_resource_group(resource_group_name: str, **kwargs: Any) -> ItemPaged[CommitmentPlan]

Parameters

Name Description
resource_group_name
Required
str

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

Returns

Type Description

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

Exceptions

Type Description

list_plans_by_subscription

Returns all the resources of a particular type belonging to a subscription.

list_plans_by_subscription(**kwargs: Any) -> ItemPaged[CommitmentPlan]

Returns

Type Description

An iterator like instance of either CommitmentPlan 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'>