Compartilhar via


PolicyDefinitionVersion Class

Definition

The ID of the policy definition version.

[System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.Policy.Models.PolicyDefinitionVersionTypeConverter))]
public class PolicyDefinitionVersion : Microsoft.Azure.PowerShell.Cmdlets.Policy.Models.IPolicyDefinitionVersion
[<System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.Policy.Models.PolicyDefinitionVersionTypeConverter))>]
type PolicyDefinitionVersion = class
    interface IPolicyDefinitionVersion
    interface IJsonSerializable
Public Class PolicyDefinitionVersion
Implements IPolicyDefinitionVersion
Inheritance
PolicyDefinitionVersion
Attributes
Implements

Constructors

PolicyDefinitionVersion()

Creates an new PolicyDefinitionVersion instance.

Properties

Description

The policy definition description.

DisplayName

The display name of the policy definition.

Id

The ID of the policy definition version.

Metadata

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

Mode

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

Name

The name of the policy definition version.

Parameter

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

PolicyRule

The policy rule.

PolicyType

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

SystemDataCreatedAt

The timestamp of resource creation (UTC).

SystemDataCreatedBy

The identity that created the resource.

SystemDataCreatedByType

The type of identity that created the resource.

SystemDataLastModifiedAt

The timestamp of resource last modification (UTC)

SystemDataLastModifiedBy

The identity that last modified the resource.

SystemDataLastModifiedByType

The type of identity that last modified the resource.

Type

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

Version

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

Methods

DeserializeFromDictionary(IDictionary)

Deserializes a IDictionary into an instance of PolicyDefinitionVersion.

DeserializeFromPSObject(PSObject)

Deserializes a PSObject into an instance of PolicyDefinitionVersion.

FromJson(JsonNode)

Deserializes a JsonNode into an instance of Microsoft.Azure.PowerShell.Cmdlets.Policy.Models.IPolicyDefinitionVersion.

FromJsonString(String)

Creates a new instance of PolicyDefinitionVersion, deserializing the content from a json string.

ToJson(JsonObject, SerializationMode)

Serializes this instance of PolicyDefinitionVersion into a JsonNode.

ToJsonString()

Serializes this instance to a json string.

Applies to