class Azure::DevTestLabs::Mgmt::V2018_09_15::Models::PolicyFragment

A Policy.

Attributes

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', 'EnvironmentTemplate', 'ScheduleEditPermission'

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).

Private Class Methods

mapper() click to toggle source

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

# File lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/policy_fragment.rb, line 47
def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'PolicyFragment',
    type: {
      name: 'Composite',
      class_name: 'PolicyFragment',
      model_properties: {
        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'
          }
        }
      }
    }
  }
end