class Azure::ServiceFabric::V7_0_0_42::Models::AutoScalingPolicy

Describes the auto scaling policy

Attributes

mechanism[RW]

@return [AutoScalingMechanism] The mechanism that is used to scale when auto scaling operation is invoked.

name[RW]

@return [String] The name of the auto scaling policy.

trigger[RW]

@return [AutoScalingTrigger] Determines when auto scaling operation will be invoked.

Private Class Methods

mapper() click to toggle source

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

# File lib/7.0.0.42/generated/azure_service_fabric/models/auto_scaling_policy.rb, line 31
def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'AutoScalingPolicy',
    type: {
      name: 'Composite',
      class_name: 'AutoScalingPolicy',
      model_properties: {
        name: {
          client_side_validation: true,
          required: true,
          serialized_name: 'name',
          type: {
            name: 'String'
          }
        },
        trigger: {
          client_side_validation: true,
          required: true,
          serialized_name: 'trigger',
          type: {
            name: 'Composite',
            polymorphic_discriminator: 'kind',
            uber_parent: 'AutoScalingTrigger',
            class_name: 'AutoScalingTrigger'
          }
        },
        mechanism: {
          client_side_validation: true,
          required: true,
          serialized_name: 'mechanism',
          type: {
            name: 'Composite',
            polymorphic_discriminator: 'kind',
            uber_parent: 'AutoScalingMechanism',
            class_name: 'AutoScalingMechanism'
          }
        }
      }
    }
  }
end