ArmResourcesPolicyModelFactory.PolicyDefinitionVersionData 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.
public static Azure.ResourceManager.Resources.Policy.PolicyDefinitionVersionData PolicyDefinitionVersionData(Azure.Core.ResourceIdentifier id = default, string name = default, Azure.Core.ResourceType resourceType = default, Azure.ResourceManager.Models.SystemData systemData = default, Azure.ResourceManager.Resources.Policy.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.Policy.Models.PolicyParameterMetadata> parameters = default, string version = default, Azure.ResourceManager.Resources.Policy.Models.PolicyExternalEvaluationEnforcementSettings externalEvaluationEnforcementSettings = default);
static member PolicyDefinitionVersionData : Azure.Core.ResourceIdentifier * string * Azure.Core.ResourceType * Azure.ResourceManager.Models.SystemData * Nullable<Azure.ResourceManager.Resources.Policy.Models.PolicyType> * string * string * string * BinaryData * BinaryData * System.Collections.Generic.IDictionary<string, Azure.ResourceManager.Resources.Policy.Models.PolicyParameterMetadata> * string * Azure.ResourceManager.Resources.Policy.Models.PolicyExternalEvaluationEnforcementSettings -> Azure.ResourceManager.Resources.Policy.PolicyDefinitionVersionData
Public Shared Function PolicyDefinitionVersionData (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, PolicyParameterMetadata) = Nothing, Optional version As String = Nothing, Optional externalEvaluationEnforcementSettings As PolicyExternalEvaluationEnforcementSettings = Nothing) As PolicyDefinitionVersionData
Parameters
Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
- name
- String
The name of the resource.
- resourceType
- ResourceType
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".
- systemData
- SystemData
Azure Resource Manager metadata containing createdBy and modifiedBy information.
- 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,PolicyParameterMetadata>
The parameter definitions for parameters used in the policy rule. The keys are the parameter names.
- version
- String
The policy definition version in #.#.# format.
- externalEvaluationEnforcementSettings
- PolicyExternalEvaluationEnforcementSettings
The details of the source of external evaluation results required by the policy during enforcement evaluation.
Returns
A new PolicyDefinitionVersionData instance for mocking.