Class ArmPolicyParameter
- Namespace
- Azure.ResourceManager.Resources.Models
- Assembly
- Azure.ResourceManager.dll
The definition of a parameter that can be provided to the policy.
public class ArmPolicyParameter : IJsonModel<ArmPolicyParameter>, IPersistableModel<ArmPolicyParameter>
- Inheritance
-
ArmPolicyParameter
- Implements
-
IJsonModel<ArmPolicyParameter>IPersistableModel<ArmPolicyParameter>
- Inherited Members
Constructors
ArmPolicyParameter()
Initializes a new instance of ArmPolicyParameter.
public ArmPolicyParameter()
Properties
AllowedValues
The allowed values for the parameter.
To assign an object to the element of this property use System.BinaryData.FromObjectAsJson``1(``0,System.Text.Json.JsonSerializerOptions).
To assign an already formatted json string to this property use System.BinaryData.FromString(System.String).
Examples:
- BinaryData.FromObjectAsJson("foo")Creates a payload of "foo".
- BinaryData.FromString("\"foo\"")Creates a payload of "foo".
- BinaryData.FromObjectAsJson(new { key = "value" })Creates a payload of { "key": "value" }.
- BinaryData.FromString("{\"key\": \"value\"}")Creates a payload of { "key": "value" }.
public IList<BinaryData> AllowedValues { get; }
Property Value
- IList<BinaryData>
DefaultValue
The default value for the parameter if no value is provided.
To assign an object to this property use System.BinaryData.FromObjectAsJson``1(``0,System.Text.Json.JsonSerializerOptions).
To assign an already formatted json string to this property use System.BinaryData.FromString(System.String).
Examples:
- BinaryData.FromObjectAsJson("foo")Creates a payload of "foo".
- BinaryData.FromString("\"foo\"")Creates a payload of "foo".
- BinaryData.FromObjectAsJson(new { key = "value" })Creates a payload of { "key": "value" }.
- BinaryData.FromString("{\"key\": \"value\"}")Creates a payload of { "key": "value" }.
public BinaryData DefaultValue { get; set; }
Property Value
- BinaryData
Metadata
General metadata for the parameter.
public ParameterDefinitionsValueMetadata Metadata { get; set; }
Property Value
ParameterType
The data type of the parameter.
public ArmPolicyParameterType? ParameterType { get; set; }