class Azure::Policy::Mgmt::V2015_10_01_preview::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.

name[RW]

@return [String] The name of the policy definition. If you do not specify a value for name, the value is inferred from the name value in the request URI.

policy_rule[RW]

@return The policy rule.

policy_type[RW]

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

Private Class Methods

mapper() click to toggle source

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

# File lib/2015-10-01-preview/generated/azure_mgmt_policy/models/policy_definition.rb, line 42
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'
          }
        },
        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'
          }
        },
        id: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'id',
          type: {
            name: 'String'
          }
        },
        name: {
          client_side_validation: true,
          required: false,
          serialized_name: 'name',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end