PolicyParameterMetadata Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
The definition of a parameter that can be provided to the policy.
public class PolicyParameterMetadata : System.ClientModel.Primitives.IJsonModel<Azure.ResourceManager.Resources.Policy.Models.PolicyParameterMetadata>, System.ClientModel.Primitives.IPersistableModel<Azure.ResourceManager.Resources.Policy.Models.PolicyParameterMetadata>
type PolicyParameterMetadata = class
interface IJsonModel<PolicyParameterMetadata>
interface IPersistableModel<PolicyParameterMetadata>
Public Class PolicyParameterMetadata
Implements IJsonModel(Of PolicyParameterMetadata), IPersistableModel(Of PolicyParameterMetadata)
- Inheritance
-
PolicyParameterMetadata
- Implements
Constructors
| Name | Description |
|---|---|
| PolicyParameterMetadata() |
Initializes a new instance of PolicyParameterMetadata. |
Properties
| Name | Description |
|---|---|
| AllowedValues |
The allowed values for the parameter. To assign an object to the element of this property use FromObjectAsJson<T>(T, JsonSerializerOptions). To assign an already formatted json string to this property use FromString(String). Examples:
|
| DefaultValue |
The default value for the parameter if no value is provided. To assign an object to this property use FromObjectAsJson<T>(T, JsonSerializerOptions). To assign an already formatted json string to this property use FromString(String). Examples:
|
| 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/. To assign an object to this property use FromObjectAsJson<T>(T, JsonSerializerOptions). To assign an already formatted json string to this property use FromString(String). Examples:
|
| Type |
The data type of the parameter. |