ArmCognitiveServicesModelFactory.RaiPolicyProperties Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes a new instance of RaiPolicyProperties.
public static Azure.ResourceManager.CognitiveServices.Models.RaiPolicyProperties RaiPolicyProperties (Azure.ResourceManager.CognitiveServices.Models.RaiPolicyType? policyType = default, Azure.ResourceManager.CognitiveServices.Models.RaiPolicyMode? mode = default, string basePolicyName = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.CognitiveServices.Models.RaiPolicyContentFilter> contentFilters = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.CognitiveServices.Models.CustomBlocklistConfig> customBlocklists = default);
static member RaiPolicyProperties : Nullable<Azure.ResourceManager.CognitiveServices.Models.RaiPolicyType> * Nullable<Azure.ResourceManager.CognitiveServices.Models.RaiPolicyMode> * string * seq<Azure.ResourceManager.CognitiveServices.Models.RaiPolicyContentFilter> * seq<Azure.ResourceManager.CognitiveServices.Models.CustomBlocklistConfig> -> Azure.ResourceManager.CognitiveServices.Models.RaiPolicyProperties
Public Shared Function RaiPolicyProperties (Optional policyType As Nullable(Of RaiPolicyType) = Nothing, Optional mode As Nullable(Of RaiPolicyMode) = Nothing, Optional basePolicyName As String = Nothing, Optional contentFilters As IEnumerable(Of RaiPolicyContentFilter) = Nothing, Optional customBlocklists As IEnumerable(Of CustomBlocklistConfig) = Nothing) As RaiPolicyProperties
Parameters
- policyType
- Nullable<RaiPolicyType>
Content Filters policy type.
- mode
- Nullable<RaiPolicyMode>
Rai policy mode. The enum value mapping is as below: Default = 0, Deferred=1, Blocking=2, Asynchronous_filter =3. Please use 'Asynchronous_filter' after 2024-10-01. It is the same as 'Deferred' in previous version.
- basePolicyName
- String
Name of Rai policy.
- contentFilters
- IEnumerable<RaiPolicyContentFilter>
The list of Content Filters.
- customBlocklists
- IEnumerable<CustomBlocklistConfig>
The list of custom Blocklist.
Returns
A new RaiPolicyProperties instance for mocking.