RaiToolLabelsOperations Class

Warning

DO NOT instantiate this class directly.

Instead, you should access the following operations through

CognitiveServicesManagementClient's

<xref:rai_tool_labels> attribute.

Constructor

RaiToolLabelsOperations(*args, **kwargs)

Methods

begin_delete

Deletes the specified RAI Tool Label associated with the Azure OpenAI account.

create_or_update

Creates the RAI Tool Label associated with the Azure OpenAI account.

get

Gets the specified RAI Tool Label associated with the Azure OpenAI account.

list

Lists all RAI Tool Labels associated with the Azure OpenAI account.

begin_delete

Deletes the specified RAI Tool Label associated with the Azure OpenAI account.

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

rai_tool_connection_name
Required
str

The name of the Rai Tool Label. Required.

Returns

Type Description

An instance of LROPoller that returns None

Exceptions

Type Description

create_or_update

Creates the RAI Tool Label associated with the Azure OpenAI account.

create_or_update(resource_group_name: str, account_name: str, rai_tool_connection_name: str, rai_tool_label: _models.RaiToolLabel, *, content_type: str = 'application/json', **kwargs: Any) -> _models.RaiToolLabel

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.

rai_tool_connection_name
Required
str

The name of the Rai Tool Label. Required.

rai_tool_label
Required

Properties describing the RAI Tool Label. Is either a RaiToolLabel type or a IO[bytes] type. Required.

Returns

Type Description

RaiToolLabel. The RaiToolLabel is compatible with MutableMapping

Exceptions

Type Description

get

Gets the specified RAI Tool Label associated with the Azure OpenAI account.

get(resource_group_name: str, account_name: str, rai_tool_connection_name: str, **kwargs: Any) -> RaiToolLabel

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.

rai_tool_connection_name
Required
str

The name of the Rai Tool Label. Required.

Returns

Type Description

RaiToolLabel. The RaiToolLabel is compatible with MutableMapping

Exceptions

Type Description

list

Lists all RAI Tool Labels associated with the Azure OpenAI account.

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

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 RaiToolLabel

Exceptions

Type Description