class Azure::Policy::Mgmt::V2019_09_01::Models::PolicyDefinition

The policy definition.

Attributes

description[RW]

@return [String] The policy definition description.

display_name[RW]

@return [String] The display name of the policy definition.

id[RW]

@return [String] The ID of the policy definition.

metadata[RW]

@return The policy definition metadata. Metadata is an open ended object and is typically a collection of key value pairs.

mode[RW]

@return [String] The policy definition mode. Some examples are All, Indexed, Microsoft.KeyVault.Data.

name[RW]

@return [String] The name of the policy definition.

parameters[RW]

@return [Hash{String => ParameterDefinitionsValue}] The parameter definitions for parameters used in the policy rule. The keys are the parameter names.

policy_rule[RW]

@return The policy rule.

policy_type[RW]

@return [PolicyType] The type of policy definition. Possible values are NotSpecified, BuiltIn, Custom, and Static. Possible values include: 'NotSpecified', 'BuiltIn', 'Custom', 'Static'

type[RW]

@return [String] The type of the resource (Microsoft.Authorization/policyDefinitions).

Public Class Methods

mapper() click to toggle source

Mapper for PolicyDefinition class as Ruby Hash. This will be used for serialization/deserialization.

# File lib/2019-09-01/generated/azure_mgmt_policy/models/policy_definition.rb, line 57
def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'PolicyDefinition',
    type: {
      name: 'Composite',
      class_name: 'PolicyDefinition',
      model_properties: {
        policy_type: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.policyType',
          type: {
            name: 'String'
          }
        },
        mode: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.mode',
          type: {
            name: 'String'
          }
        },
        display_name: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.displayName',
          type: {
            name: 'String'
          }
        },
        description: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.description',
          type: {
            name: 'String'
          }
        },
        policy_rule: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.policyRule',
          type: {
            name: 'Object'
          }
        },
        metadata: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.metadata',
          type: {
            name: 'Object'
          }
        },
        parameters: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.parameters',
          type: {
            name: 'Dictionary',
            value: {
                client_side_validation: true,
                required: false,
                serialized_name: 'ParameterDefinitionsValueElementType',
                type: {
                  name: 'Composite',
                  class_name: 'ParameterDefinitionsValue'
                }
            }
          }
        },
        id: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'id',
          type: {
            name: 'String'
          }
        },
        name: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'name',
          type: {
            name: 'String'
          }
        },
        type: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'type',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end