RaiPolicies interface
Interface representing a RaiPolicies.
Methods
begin |
Deletes the specified Content Filters associated with the Azure OpenAI account. |
begin |
Deletes the specified Content Filters associated with the Azure OpenAI account. |
create |
Update the state of specified Content Filters associated with the Azure OpenAI account. |
get(string, string, string, Rai |
Gets the specified Content Filters associated with the Azure OpenAI account. |
list(string, string, Rai |
Gets the content filters associated with the Azure OpenAI account. |
Method Details
beginDelete(string, string, string, RaiPoliciesDeleteOptionalParams)
Deletes the specified Content Filters associated with the Azure OpenAI account.
function beginDelete(resourceGroupName: string, accountName: string, raiPolicyName: string, options?: RaiPoliciesDeleteOptionalParams): Promise<SimplePollerLike<OperationState<RaiPoliciesDeleteHeaders>, RaiPoliciesDeleteHeaders>>
Parameters
- resourceGroupName
-
string
The name of the resource group. The name is case insensitive.
- accountName
-
string
The name of Cognitive Services account.
- raiPolicyName
-
string
The name of the RaiPolicy associated with the Cognitive Services Account
- options
- RaiPoliciesDeleteOptionalParams
The options parameters.
Returns
Promise<@azure/core-lro.SimplePollerLike<OperationState<RaiPoliciesDeleteHeaders>, RaiPoliciesDeleteHeaders>>
beginDeleteAndWait(string, string, string, RaiPoliciesDeleteOptionalParams)
Deletes the specified Content Filters associated with the Azure OpenAI account.
function beginDeleteAndWait(resourceGroupName: string, accountName: string, raiPolicyName: string, options?: RaiPoliciesDeleteOptionalParams): Promise<RaiPoliciesDeleteHeaders>
Parameters
- resourceGroupName
-
string
The name of the resource group. The name is case insensitive.
- accountName
-
string
The name of Cognitive Services account.
- raiPolicyName
-
string
The name of the RaiPolicy associated with the Cognitive Services Account
- options
- RaiPoliciesDeleteOptionalParams
The options parameters.
Returns
Promise<RaiPoliciesDeleteHeaders>
createOrUpdate(string, string, string, RaiPolicy, RaiPoliciesCreateOrUpdateOptionalParams)
Update the state of specified Content Filters associated with the Azure OpenAI account.
function createOrUpdate(resourceGroupName: string, accountName: string, raiPolicyName: string, raiPolicy: RaiPolicy, options?: RaiPoliciesCreateOrUpdateOptionalParams): Promise<RaiPolicy>
Parameters
- resourceGroupName
-
string
The name of the resource group. The name is case insensitive.
- accountName
-
string
The name of Cognitive Services account.
- raiPolicyName
-
string
The name of the RaiPolicy associated with the Cognitive Services Account
- raiPolicy
- RaiPolicy
Properties describing the Content Filters.
The options parameters.
Returns
Promise<RaiPolicy>
get(string, string, string, RaiPoliciesGetOptionalParams)
Gets the specified Content Filters associated with the Azure OpenAI account.
function get(resourceGroupName: string, accountName: string, raiPolicyName: string, options?: RaiPoliciesGetOptionalParams): Promise<RaiPolicy>
Parameters
- resourceGroupName
-
string
The name of the resource group. The name is case insensitive.
- accountName
-
string
The name of Cognitive Services account.
- raiPolicyName
-
string
The name of the RaiPolicy associated with the Cognitive Services Account
- options
- RaiPoliciesGetOptionalParams
The options parameters.
Returns
Promise<RaiPolicy>
list(string, string, RaiPoliciesListOptionalParams)
Gets the content filters associated with the Azure OpenAI account.
function list(resourceGroupName: string, accountName: string, options?: RaiPoliciesListOptionalParams): PagedAsyncIterableIterator<RaiPolicy, RaiPolicy[], PageSettings>
Parameters
- resourceGroupName
-
string
The name of the resource group. The name is case insensitive.
- accountName
-
string
The name of Cognitive Services account.
- options
- RaiPoliciesListOptionalParams
The options parameters.