次の方法で共有


CommitmentPlansOperations クラス

警告

このクラスを直接インスタンス化しないでください。

代わりに、次の操作にアクセスする必要があります。

CognitiveServicesManagementClient's

<xref:commitment_plans> 属性を使用する。

継承
builtins.object
CommitmentPlansOperations

コンストラクター

CommitmentPlansOperations(*args, **kwargs)

メソッド

begin_create_or_update_association

Cognitive Services コミットメント プランの関連付けを作成または更新します。

begin_create_or_update_plan

Cognitive Services コミットメント プランを作成します。

begin_delete

Cognitive Services アカウントに関連付けられている指定された commitmentPlan を削除します。

begin_delete_association

Cognitive Services コミットメント プランの関連付けを削除します。

begin_delete_plan

リソース グループから Cognitive Services コミットメント プランを削除します。

begin_update_plan

Cognitive Services コミットメント プランを作成します。

create_or_update

Cognitive Services アカウントに関連付けられている指定されたコミットメントプランの状態を更新します。

get

Cognitive Services アカウントに関連付けられている指定された commitmentPlans を取得します。

get_association

Cognitive Services コミットメント プランの関連付けを取得します。

get_plan

パラメーターで指定された Cognitive Services コミットメント プランを返します。

list

Cognitive Services アカウントに関連付けられている commitmentPlans を取得します。

list_associations

Cognitive Services コミットメント プランの関連付けを取得します。

list_plans_by_resource_group

リソース グループに属する特定の種類のすべてのリソースを返します。

list_plans_by_subscription

サブスクリプションに属する特定の種類のすべてのリソースを返します。

begin_create_or_update_association

Cognitive Services コミットメント プランの関連付けを作成または更新します。

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]

パラメーター

resource_group_name
str
必須

リソース グループの名前。 名前の大文字と小文字は区別されます。 必須。

commitment_plan_name
str
必須

Cognitive Services アカウントに関連付けられている commitmentPlan の名前。 必須。

commitment_plan_association_name
str
必須

Cognitive Services アカウントとのコミットメント 計画の関連付けの名前。 必須。

association
CommitmentPlanAccountAssociation または IO
必須

commitmentPlan プロパティ。 CommitmentPlanAccountAssociation 型または IO 型です。 必須。

content_type
str

Body Parameter content-type。 既知の値は、'application/json' です。 既定値は [なし] です。

cls
callable

直接応答に渡されるカスタム型または関数

continuation_token
str

保存された状態からポーリングを再開するための継続トークン。

polling
bool または PollingMethod

既定では、ポーリング メソッドは ARMPolling になります。 この操作でポーリングを行わない場合は False を渡すか、個人のポーリング戦略に対して独自に初期化されたポーリング オブジェクトを渡します。

polling_interval
int

Retry-After ヘッダーが存在しない場合、LRO 操作の 2 つのポーリング間の既定の待機時間。

戻り値

CommitmentPlanAccountAssociation または cls(response) の結果を返す LROPoller のインスタンス

の戻り値の型 :

例外

begin_create_or_update_plan

Cognitive Services コミットメント プランを作成します。

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]

パラメーター

resource_group_name
str
必須

リソース グループの名前。 名前の大文字と小文字は区別されます。 必須。

commitment_plan_name
str
必須

Cognitive Services アカウントに関連付けられている commitmentPlan の名前。 必須。

commitment_plan
CommitmentPlan または IO
必須

作成されたコミットメント計画に提供するパラメーター。 CommitmentPlan 型または IO 型です。 必須。

content_type
str

Body Parameter content-type。 既知の値は、'application/json' です。 既定値は [なし] です。

cls
callable

直接応答に渡されるカスタム型または関数

continuation_token
str

保存された状態からポーリングを再開するための継続トークン。

polling
bool または PollingMethod

既定では、ポーリング メソッドは ARMPolling になります。 この操作でポーリングを行わない場合は False を渡すか、個人のポーリング戦略に対して独自に初期化されたポーリング オブジェクトを渡します。

polling_interval
int

Retry-After ヘッダーが存在しない場合、LRO 操作の 2 つのポーリング間の既定の待機時間。

戻り値

CommitmentPlan または cls(response) の結果を返す LROPoller のインスタンス

の戻り値の型 :

例外

begin_delete

Cognitive Services アカウントに関連付けられている指定された commitmentPlan を削除します。

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

パラメーター

resource_group_name
str
必須

リソース グループの名前。 名前の大文字と小文字は区別されます。 必須。

account_name
str
必須

Cognitive Services アカウントの名前。 必須。

commitment_plan_name
str
必須

Cognitive Services アカウントに関連付けられている commitmentPlan の名前。 必須。

cls
callable

直接応答に渡されるカスタム型または関数

continuation_token
str

保存された状態からポーリングを再開するための継続トークン。

polling
bool または PollingMethod

既定では、ポーリング メソッドは ARMPolling になります。 この操作でポーリングを行わない場合は False を渡すか、個人のポーリング戦略に対して独自に初期化されたポーリング オブジェクトを渡します。

polling_interval
int

Retry-After ヘッダーが存在しない場合、LRO 操作の 2 つのポーリング間の既定の待機時間。

戻り値

None または cls(response) の結果を返す LROPoller のインスタンス

の戻り値の型 :

例外

begin_delete_association

Cognitive Services コミットメント プランの関連付けを削除します。

begin_delete_association(resource_group_name: str, commitment_plan_name: str, commitment_plan_association_name: str, **kwargs: Any) -> LROPoller[None]

パラメーター

resource_group_name
str
必須

リソース グループの名前。 名前の大文字と小文字は区別されます。 必須。

commitment_plan_name
str
必須

Cognitive Services アカウントに関連付けられている commitmentPlan の名前。 必須。

commitment_plan_association_name
str
必須

Cognitive Services アカウントとのコミットメント 計画の関連付けの名前。 必須。

cls
callable

直接応答に渡されるカスタム型または関数

continuation_token
str

保存された状態からポーリングを再開するための継続トークン。

polling
bool または PollingMethod

既定では、ポーリング メソッドは ARMPolling になります。 この操作でポーリングを行わない場合は False を渡すか、個人のポーリング戦略に対して独自に初期化されたポーリング オブジェクトを渡します。

polling_interval
int

Retry-After ヘッダーが存在しない場合、LRO 操作の 2 つのポーリング間の既定の待機時間。

戻り値

None または cls(response) の結果を返す LROPoller のインスタンス

の戻り値の型 :

例外

begin_delete_plan

リソース グループから Cognitive Services コミットメント プランを削除します。

begin_delete_plan(resource_group_name: str, commitment_plan_name: str, **kwargs: Any) -> LROPoller[None]

パラメーター

resource_group_name
str
必須

リソース グループの名前。 名前の大文字と小文字は区別されます。 必須。

commitment_plan_name
str
必須

Cognitive Services アカウントに関連付けられている commitmentPlan の名前。 必須。

cls
callable

直接応答に渡されるカスタム型または関数

continuation_token
str

保存された状態からポーリングを再開するための継続トークン。

polling
bool または PollingMethod

既定では、ポーリング メソッドは ARMPolling になります。 この操作でポーリングを行わない場合は False を渡すか、個人のポーリング戦略に対して独自に初期化されたポーリング オブジェクトを渡します。

polling_interval
int

Retry-After ヘッダーが存在しない場合、LRO 操作の 2 つのポーリング間の既定の待機時間。

戻り値

None または cls(response) の結果を返す LROPoller のインスタンス

の戻り値の型 :

例外

begin_update_plan

Cognitive Services コミットメント プランを作成します。

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]

パラメーター

resource_group_name
str
必須

リソース グループの名前。 名前の大文字と小文字は区別されます。 必須。

commitment_plan_name
str
必須

Cognitive Services アカウントに関連付けられている commitmentPlan の名前。 必須。

commitment_plan
PatchResourceTagsAndSku または IO
必須

作成されたコミットメント計画に提供するパラメーター。 PatchResourceTagsAndSku 型または IO 型です。 必須。

content_type
str

Body Parameter content-type。 既知の値は、'application/json' です。 既定値は [なし] です。

cls
callable

直接応答が渡されるカスタム型または関数

continuation_token
str

保存された状態からポーリングを再開するための継続トークン。

polling
bool または PollingMethod

既定では、ポーリング メソッドは ARMPolling になります。 この操作に対して False を渡してポーリングを行わないか、個人のポーリング戦略のために独自に初期化されたポーリング オブジェクトを渡します。

polling_interval
int

Retry-After ヘッダーがない場合、LRO 操作の 2 つのポーリング間の既定の待機時間。

戻り値

CommitmentPlan または cls(response) の結果を返す LROPoller のインスタンス

の戻り値の型 :

例外

create_or_update

Cognitive Services アカウントに関連付けられている指定されたコミットメントプランの状態を更新します。

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

パラメーター

resource_group_name
str
必須

リソース グループの名前。 名前の大文字と小文字は区別されます。 必須。

account_name
str
必須

Cognitive Services アカウントの名前。 必須。

commitment_plan_name
str
必須

Cognitive Services アカウントに関連付けられている commitmentPlan の名前。 必須。

commitment_plan
CommitmentPlan または IO
必須

commitmentPlan プロパティ。 CommitmentPlan 型または IO 型のいずれかです。 必須。

content_type
str

Body Parameter content-type。 既知の値は、'application/json' です。 既定値は [なし] です。

cls
callable

直接応答が渡されるカスタム型または関数

戻り値

CommitmentPlan または cls(response) の結果

の戻り値の型 :

例外

get

Cognitive Services アカウントに関連付けられている指定された commitmentPlans を取得します。

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

パラメーター

resource_group_name
str
必須

リソース グループの名前。 名前の大文字と小文字は区別されます。 必須。

account_name
str
必須

Cognitive Services アカウントの名前。 必須。

commitment_plan_name
str
必須

Cognitive Services アカウントに関連付けられている commitmentPlan の名前。 必須。

cls
callable

直接応答が渡されるカスタム型または関数

戻り値

CommitmentPlan または cls(response) の結果

の戻り値の型 :

例外

get_association

Cognitive Services コミットメント プランの関連付けを取得します。

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

パラメーター

resource_group_name
str
必須

リソース グループの名前。 名前の大文字と小文字は区別されます。 必須。

commitment_plan_name
str
必須

Cognitive Services アカウントに関連付けられている commitmentPlan の名前。 必須。

commitment_plan_association_name
str
必須

Cognitive Services アカウントとのコミットメント プランの関連付けの名前。 必須。

cls
callable

直接応答が渡されるカスタム型または関数

戻り値

CommitmentPlanAccountAssociation または cls(response) の結果

の戻り値の型 :

例外

get_plan

パラメーターで指定された Cognitive Services コミットメント プランを返します。

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

パラメーター

resource_group_name
str
必須

リソース グループの名前。 名前の大文字と小文字は区別されます。 必須。

commitment_plan_name
str
必須

Cognitive Services アカウントに関連付けられている commitmentPlan の名前。 必須。

cls
callable

直接応答が渡されるカスタム型または関数

戻り値

CommitmentPlan または cls(response) の結果

の戻り値の型 :

例外

list

Cognitive Services アカウントに関連付けられている commitmentPlans を取得します。

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

パラメーター

resource_group_name
str
必須

リソース グループの名前。 名前の大文字と小文字は区別されます。 必須。

account_name
str
必須

Cognitive Services アカウントの名前。 必須。

cls
callable

直接応答が渡されるカスタム型または関数

戻り値

CommitmentPlan のインスタンスや cls(response) の結果のような反復子

の戻り値の型 :

例外

list_associations

Cognitive Services コミットメント プランの関連付けを取得します。

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

パラメーター

resource_group_name
str
必須

リソース グループの名前。 名前の大文字と小文字は区別されます。 必須。

commitment_plan_name
str
必須

Cognitive Services アカウントに関連付けられている commitmentPlan の名前。 必須。

cls
callable

直接応答が渡されるカスタム型または関数

戻り値

CommitmentPlanAccountAssociation または cls(response) の結果のいずれかのインスタンスのような反復子

の戻り値の型 :

例外

list_plans_by_resource_group

リソース グループに属する特定の種類のすべてのリソースを返します。

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

パラメーター

resource_group_name
str
必須

リソース グループの名前。 名前の大文字と小文字は区別されます。 必須。

cls
callable

直接応答が渡されるカスタム型または関数

戻り値

CommitmentPlan のインスタンスや cls(response) の結果のような反復子

の戻り値の型 :

例外

list_plans_by_subscription

サブスクリプションに属する特定の種類のすべてのリソースを返します。

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

パラメーター

cls
callable

直接応答が渡されるカスタム型または関数

戻り値

CommitmentPlan のインスタンスや cls(response) の結果のような反復子

の戻り値の型 :

例外

属性

models

models = <module 'azure.mgmt.cognitiveservices.models' from 'C:\\hostedtoolcache\\windows\\Python\\3.11.7\\x64\\Lib\\site-packages\\azure\\mgmt\\cognitiveservices\\models\\__init__.py'>