RaiPoliciesOperations Class
Warning
DO NOT instantiate this class directly.
Instead, you should access the following operations through
CognitiveServicesManagementClient's
<xref:rai_policies> attribute.
Constructor
RaiPoliciesOperations(*args, **kwargs)
Methods
| begin_delete |
Deletes the specified Content Filters associated with the Azure OpenAI account. |
| create_or_update |
Update the state of specified Content Filters associated with the Azure OpenAI account. |
| get |
Gets the specified Content Filters associated with the Azure OpenAI account. |
| list |
Gets the content filters associated with the Azure OpenAI account. |
begin_delete
Deletes the specified Content Filters associated with the Azure OpenAI account.
begin_delete(resource_group_name: str, account_name: str, rai_policy_name: str, **kwargs: Any) -> LROPoller[None]
Parameters
| Name | Description |
|---|---|
|
resource_group_name
Required
|
The name of the resource group. The name is case insensitive. Required. |
|
account_name
Required
|
The name of Cognitive Services account. Required. |
|
rai_policy_name
Required
|
The name of the RaiPolicy 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 |
|---|---|
create_or_update
Update the state of specified Content Filters associated with the Azure OpenAI account.
create_or_update(resource_group_name: str, account_name: str, rai_policy_name: str, rai_policy: _models.RaiPolicy, *, content_type: str = 'application/json', **kwargs: Any) -> _models.RaiPolicy
Parameters
| Name | Description |
|---|---|
|
resource_group_name
Required
|
The name of the resource group. The name is case insensitive. Required. |
|
account_name
Required
|
The name of Cognitive Services account. Required. |
|
rai_policy_name
Required
|
The name of the RaiPolicy associated with the Cognitive Services Account. Required. |
|
rai_policy
Required
|
Properties describing the Content Filters. Is either a RaiPolicy type or a IO[bytes] type. Required. |
Returns
| Type | Description |
|---|---|
|
RaiPolicy or the result of cls(response) |
Exceptions
| Type | Description |
|---|---|
get
Gets the specified Content Filters associated with the Azure OpenAI account.
get(resource_group_name: str, account_name: str, rai_policy_name: str, **kwargs: Any) -> RaiPolicy
Parameters
| Name | Description |
|---|---|
|
resource_group_name
Required
|
The name of the resource group. The name is case insensitive. Required. |
|
account_name
Required
|
The name of Cognitive Services account. Required. |
|
rai_policy_name
Required
|
The name of the RaiPolicy associated with the Cognitive Services Account. Required. |
Returns
| Type | Description |
|---|---|
|
RaiPolicy or the result of cls(response) |
Exceptions
| Type | Description |
|---|---|
list
Gets the content filters associated with the Azure OpenAI account.
list(resource_group_name: str, account_name: str, **kwargs: Any) -> ItemPaged[RaiPolicy]
Parameters
| Name | Description |
|---|---|
|
resource_group_name
Required
|
The name of the resource group. The name is case insensitive. Required. |
|
account_name
Required
|
The name of Cognitive Services account. Required. |
Returns
| Type | Description |
|---|---|
|
An iterator like instance of either RaiPolicy or the result of cls(response) |
Exceptions
| Type | Description |
|---|---|
Attributes
models
models = <module 'azure.mgmt.cognitiveservices.models' from 'C:\\ToolCache\\Python\\3.12.10\\x64\\Lib\\site-packages\\py2docfx\\venv\\venv88\\Lib\\site-packages\\azure\\mgmt\\cognitiveservices\\models\\__init__.py'>