RaiBlocklistsOperations Class

Warning

DO NOT instantiate this class directly.

Instead, you should access the following operations through

CognitiveServicesManagementClient's

<xref:rai_blocklists> attribute.

Constructor

RaiBlocklistsOperations(*args, **kwargs)

Methods

begin_delete

Deletes the specified custom blocklist associated with the Azure OpenAI account.

create_or_update

Update the state of specified blocklist associated with the Azure OpenAI account.

get

Gets the specified custom blocklist associated with the Azure OpenAI account.

list

Gets the custom blocklists associated with the Azure OpenAI account.

begin_delete

Deletes the specified custom blocklist associated with the Azure OpenAI account.

begin_delete(resource_group_name: str, account_name: str, rai_blocklist_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_blocklist_name
Required
str

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

Returns

Type Description

An instance of LROPoller that returns None

Exceptions

Type Description

create_or_update

Update the state of specified blocklist associated with the Azure OpenAI account.

create_or_update(resource_group_name: str, account_name: str, rai_blocklist_name: str, rai_blocklist: _models.RaiBlocklist, *, content_type: str = 'application/json', **kwargs: Any) -> _models.RaiBlocklist

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_blocklist_name
Required
str

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

rai_blocklist
Required

Properties describing the custom blocklist. Is either a RaiBlocklist type or a IO[bytes] type. Required.

Returns

Type Description

RaiBlocklist. The RaiBlocklist is compatible with MutableMapping

Exceptions

Type Description

get

Gets the specified custom blocklist associated with the Azure OpenAI account.

get(resource_group_name: str, account_name: str, rai_blocklist_name: str, **kwargs: Any) -> RaiBlocklist

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_blocklist_name
Required
str

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

Returns

Type Description

RaiBlocklist. The RaiBlocklist is compatible with MutableMapping

Exceptions

Type Description

list

Gets the custom blocklists associated with the Azure OpenAI account.

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

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 RaiBlocklist

Exceptions

Type Description