class Azure::DevTestLabs::Mgmt::V2016_05_15::Models::Policy

A Policy.

Attributes

created_date[RW]

@return [DateTime] The creation date of the policy.

description[RW]

@return [String] The description of the policy.

evaluator_type[RW]

@return [PolicyEvaluatorType] The evaluator type of the policy (i.e. AllowedValuesPolicy, MaxValuePolicy). Possible values include: 'AllowedValuesPolicy', 'MaxValuePolicy'

fact_data[RW]

@return [String] The fact data of the policy.

fact_name[RW]

@return [PolicyFactName] The fact name of the policy (e.g. LabVmCount, LabVmSize, MaxVmsAllowedPerLab, etc. Possible values include: 'UserOwnedLabVmCount', 'UserOwnedLabPremiumVmCount', 'LabVmCount', 'LabPremiumVmCount', 'LabVmSize', 'GalleryImage', 'UserOwnedLabVmCountInSubnet', 'LabTargetCost'

provisioning_state[RW]

@return [String] The provisioning status of the resource.

status[RW]

@return [PolicyStatus] The status of the policy. Possible values include: 'Enabled', 'Disabled'

threshold[RW]

@return [String] The threshold of the policy (i.e. a number for MaxValuePolicy, and a JSON array of values for AllowedValuesPolicy).

unique_identifier[RW]

@return [String] The unique immutable identifier of a resource (Guid).

Public Class Methods

mapper() click to toggle source

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

# File lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/policy.rb, line 55
def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'Policy',
    type: {
      name: 'Composite',
      class_name: 'Policy',
      model_properties: {
        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'
          }
        },
        location: {
          client_side_validation: true,
          required: false,
          serialized_name: 'location',
          type: {
            name: 'String'
          }
        },
        tags: {
          client_side_validation: true,
          required: false,
          serialized_name: 'tags',
          type: {
            name: 'Dictionary',
            value: {
                client_side_validation: true,
                required: false,
                serialized_name: 'StringElementType',
                type: {
                  name: 'String'
                }
            }
          }
        },
        description: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.description',
          type: {
            name: 'String'
          }
        },
        status: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.status',
          type: {
            name: 'String'
          }
        },
        fact_name: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.factName',
          type: {
            name: 'String'
          }
        },
        fact_data: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.factData',
          type: {
            name: 'String'
          }
        },
        threshold: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.threshold',
          type: {
            name: 'String'
          }
        },
        evaluator_type: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.evaluatorType',
          type: {
            name: 'String'
          }
        },
        created_date: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.createdDate',
          type: {
            name: 'DateTime'
          }
        },
        provisioning_state: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.provisioningState',
          type: {
            name: 'String'
          }
        },
        unique_identifier: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.uniqueIdentifier',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end