Dela via


ResourceManagerModelFactory.PolicyDefinitionData Method

Definition

Initializes a new instance of PolicyDefinitionData.

public static Azure.ResourceManager.Resources.PolicyDefinitionData PolicyDefinitionData (Azure.Core.ResourceIdentifier id = default, string name = default, Azure.Core.ResourceType resourceType = default, Azure.ResourceManager.Models.SystemData systemData = default, Azure.ResourceManager.Resources.Models.PolicyType? policyType = default, string mode = default, string displayName = default, string description = default, BinaryData policyRule = default, BinaryData metadata = default, System.Collections.Generic.IDictionary<string,Azure.ResourceManager.Resources.Models.ArmPolicyParameter> parameters = default);
static member PolicyDefinitionData : Azure.Core.ResourceIdentifier * string * Azure.Core.ResourceType * Azure.ResourceManager.Models.SystemData * Nullable<Azure.ResourceManager.Resources.Models.PolicyType> * string * string * string * BinaryData * BinaryData * System.Collections.Generic.IDictionary<string, Azure.ResourceManager.Resources.Models.ArmPolicyParameter> -> Azure.ResourceManager.Resources.PolicyDefinitionData
Public Shared Function PolicyDefinitionData (Optional id As ResourceIdentifier = Nothing, Optional name As String = Nothing, Optional resourceType As ResourceType = Nothing, Optional systemData As SystemData = Nothing, Optional policyType As Nullable(Of PolicyType) = Nothing, Optional mode As String = Nothing, Optional displayName As String = Nothing, Optional description As String = Nothing, Optional policyRule As BinaryData = Nothing, Optional metadata As BinaryData = Nothing, Optional parameters As IDictionary(Of String, ArmPolicyParameter) = Nothing) As PolicyDefinitionData

Parameters

id
ResourceIdentifier

The id.

name
String

The name.

resourceType
ResourceType

The resourceType.

systemData
SystemData

The systemData.

policyType
Nullable<PolicyType>

The type of policy definition. Possible values are NotSpecified, BuiltIn, Custom, and Static.

mode
String

The policy definition mode. Some examples are All, Indexed, Microsoft.KeyVault.Data.

displayName
String

The display name of the policy definition.

description
String

The policy definition description.

policyRule
BinaryData

The policy rule.

metadata
BinaryData

The policy definition metadata. Metadata is an open ended object and is typically a collection of key value pairs.

parameters
IDictionary<String,ArmPolicyParameter>

The parameter definitions for parameters used in the policy rule. The keys are the parameter names.

Returns

A new PolicyDefinitionData instance for mocking.

Applies to