Partilhar via


ParameterDefinitionsValue Class

Definition

The definition of a parameter that can be provided to the policy.

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

Constructors

ParameterDefinitionsValue()

Creates an new ParameterDefinitionsValue instance.

Properties

AllowedValue

The allowed values for the parameter.

DefaultValue

The default value for the parameter if no value is provided.

Metadata

General metadata for the parameter.

Schema

Provides validation of parameter inputs during assignment using a self-defined JSON schema. This property is only supported for object-type parameters and follows the Json.NET Schema 2019-09 implementation. You can learn more about using schemas at https://json-schema.org/ and test draft schemas at https://www.jsonschemavalidator.net/.

Type

The data type of the parameter.

Methods

DeserializeFromDictionary(IDictionary)

Deserializes a IDictionary into an instance of ParameterDefinitionsValue.

DeserializeFromPSObject(PSObject)

Deserializes a PSObject into an instance of ParameterDefinitionsValue.

FromJson(JsonNode)

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

FromJsonString(String)

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

ToJson(JsonObject, SerializationMode)

Serializes this instance of ParameterDefinitionsValue into a JsonNode.

ToJsonString()

Serializes this instance to a json string.

Applies to