PolicyDefinitionVersion Class

The ID of the policy definition version.

Variables are only populated by the server, and will be ignored when sending a request.

Inheritance
azure.mgmt.resource.policy._serialization.Model
PolicyDefinitionVersion

Constructor

PolicyDefinitionVersion(*, policy_type: str | _models.PolicyType | None = None, mode: str = 'Indexed', display_name: str | None = None, description: str | None = None, policy_rule: MutableMapping[str, Any] | None = None, metadata: MutableMapping[str, Any] | None = None, parameters: Dict[str, _models.ParameterDefinitionsValue] | None = None, version: str | None = None, **kwargs: Any)

Keyword-Only Parameters

Name Description
policy_type

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

mode
str

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

Default value: Indexed
display_name
str

The display name of the policy definition.

description
str

The policy definition description.

policy_rule
<xref:JSON>

The policy rule.

metadata
<xref:JSON>

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

parameters

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

version
str

The policy definition version in #.#.# format.

Variables

Name Description
id
str

The ID of the policy definition version.

name
str

The name of the policy definition version.

type
str

The type of the resource (Microsoft.Authorization/policyDefinitions/versions).

system_data

The system metadata relating to this resource.

policy_type

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

mode
str

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

display_name
str

The display name of the policy definition.

description
str

The policy definition description.

policy_rule
<xref:JSON>

The policy rule.

metadata
<xref:JSON>

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

parameters

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

version
str

The policy definition version in #.#.# format.