PolicySetDefinition 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 policy set definition.
[System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.Policy.Models.PolicySetDefinitionTypeConverter))]
public class PolicySetDefinition : Microsoft.Azure.PowerShell.Cmdlets.Policy.Models.IPolicySetDefinition
[System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.Policy.Models.PolicySetDefinitionTypeConverter))]
public class PolicySetDefinition : Microsoft.Azure.PowerShell.Cmdlets.Policy.Models.IPolicySetDefinition, Microsoft.Azure.PowerShell.Cmdlets.Policy.Runtime.IValidates
[<System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.Policy.Models.PolicySetDefinitionTypeConverter))>]
type PolicySetDefinition = class
interface IPolicySetDefinition
interface IJsonSerializable
[<System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.Policy.Models.PolicySetDefinitionTypeConverter))>]
type PolicySetDefinition = class
interface IPolicySetDefinition
interface IJsonSerializable
interface IProxyResource
interface IResource
interface IValidates
Public Class PolicySetDefinition
Implements IPolicySetDefinition
Public Class PolicySetDefinition
Implements IPolicySetDefinition, IValidates
- Inheritance
-
PolicySetDefinition
- Attributes
- Implements
Constructors
| Name | Description |
|---|---|
| PolicySetDefinition() |
Creates an new PolicySetDefinition instance. |
Properties
| Name | Description |
|---|---|
| Description |
The policy set definition description. |
| DisplayName |
The display name of the policy set definition. |
| Id |
Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} |
| Metadata |
The policy set definition metadata, exposed with its pre-migration named type
IPolicySetDefinitionPropertiesMetadata instead of the raw IAny.
The generated flattened property is renamed to |
| MetadataRaw |
The policy set definition metadata. Metadata is an open ended object and is typically a collection of key value pairs. |
| Name |
The name of the resource |
| Parameter |
The policy set definition parameter definitions, exposed with its pre-migration named type
IParameterDefinitions (the emitter renamed it to
IPolicySetDefinitionPropertiesParameters). The generated flattened property is
renamed to |
| ParameterRaw |
The policy set definition parameters that can be used in policy definition references. |
| PolicyDefinition |
An array of policy definition references. |
| PolicyDefinitionGroup |
The metadata describing groups of policy definition references within the policy set definition. |
| PolicyType |
The type of policy set 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. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" |
| Version |
The policy set definition version in #.#.# format. |
| Versions |
A list of available versions for this policy set definition. |
Methods
| Name | Description |
|---|---|
| DeserializeFromDictionary(IDictionary) |
Deserializes a IDictionary into an instance of PolicySetDefinition. |
| DeserializeFromPSObject(PSObject) |
Deserializes a PSObject into an instance of PolicySetDefinition. |
| FromJson(JsonNode) |
Deserializes a JsonNode into an instance of Microsoft.Azure.PowerShell.Cmdlets.Policy.Models.IPolicySetDefinition. |
| FromJsonString(String) |
Creates a new instance of PolicySetDefinition, deserializing the content from a json string. |
| ToJson(JsonObject, SerializationMode) |
Serializes this instance of PolicySetDefinition into a JsonNode. |
| ToJsonString() |
Serializes this instance to a json string. |
| Validate(IEventListener) |
Validates that this object meets the validation criteria. |