SubscriptionRaiPolicyOperations Class
Warning
DO NOT instantiate this class directly.
Instead, you should access the following operations through
CognitiveServicesManagementClient's
<xref:subscription_rai_policy> attribute.
Constructor
SubscriptionRaiPolicyOperations(*args, **kwargs)
Methods
| begin_delete |
Deletes the specified Content Filters associated with the subscription. |
| create_or_update |
Update the state of specified Content Filters associated with the subscription. |
| get |
Gets the specified Content Filters associated with the Subscription. |
begin_delete
Deletes the specified Content Filters associated with the subscription.
begin_delete(rai_policy_name: str, **kwargs: Any) -> LROPoller[None]
Parameters
| Name | Description |
|---|---|
|
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 None |
Exceptions
| Type | Description |
|---|---|
create_or_update
Update the state of specified Content Filters associated with the subscription.
create_or_update(rai_policy_name: str, rai_policy: _models.RaiPolicy, *, content_type: str = 'application/json', **kwargs: Any) -> _models.RaiPolicy
Parameters
| Name | Description |
|---|---|
|
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. The RaiPolicy is compatible with MutableMapping |
Exceptions
| Type | Description |
|---|---|
get
Gets the specified Content Filters associated with the Subscription.
get(rai_policy_name: str, **kwargs: Any) -> RaiPolicy
Parameters
| Name | Description |
|---|---|
|
rai_policy_name
Required
|
The name of the RaiPolicy associated with the Cognitive Services Account. Required. |
Returns
| Type | Description |
|---|---|
|
RaiPolicy. The RaiPolicy is compatible with MutableMapping |
Exceptions
| Type | Description |
|---|---|