你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

PolicyDefinitionProperties Class

Definition

The policy definition properties.

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

Constructors

PolicyDefinitionProperties()

Creates an new PolicyDefinitionProperties instance.

Properties

Description

The policy definition description.

DisplayName

The display name of the policy definition.

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.

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.

Version

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

Versions

A list of available versions for this policy definition.

Methods

DeserializeFromDictionary(IDictionary)

Deserializes a IDictionary into an instance of PolicyDefinitionProperties.

DeserializeFromPSObject(PSObject)

Deserializes a PSObject into an instance of PolicyDefinitionProperties.

FromJson(JsonNode)

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

FromJsonString(String)

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

ToJson(JsonObject, SerializationMode)

Serializes this instance of PolicyDefinitionProperties into a JsonNode.

ToJsonString()

Serializes this instance to a json string.

Applies to