class Azure::ServiceFabric::V6_4_0_36::Models::AddRemoveReplicaScalingMechanism

Describes the horizontal auto scaling mechanism that adds or removes replicas (containers or container groups).

Attributes

kind[RW]
max_count[RW]

@return [Integer] Maximum number of containers (scale up won't be performed above this number).

min_count[RW]

@return [Integer] Minimum number of containers (scale down won't be performed below this number).

scale_increment[RW]

@return [Integer] Each time auto scaling is performed, this number of containers will be added or removed.

Public Class Methods

mapper() click to toggle source

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

# File lib/6.4.0.36/generated/azure_service_fabric/models/add_remove_replica_scaling_mechanism.rb, line 40
def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'AddRemoveReplica',
    type: {
      name: 'Composite',
      class_name: 'AddRemoveReplicaScalingMechanism',
      model_properties: {
        kind: {
          client_side_validation: true,
          required: true,
          serialized_name: 'kind',
          type: {
            name: 'String'
          }
        },
        min_count: {
          client_side_validation: true,
          required: true,
          serialized_name: 'minCount',
          type: {
            name: 'Number'
          }
        },
        max_count: {
          client_side_validation: true,
          required: true,
          serialized_name: 'maxCount',
          type: {
            name: 'Number'
          }
        },
        scale_increment: {
          client_side_validation: true,
          required: true,
          serialized_name: 'scaleIncrement',
          type: {
            name: 'Number'
          }
        }
      }
    }
  }
end
new() click to toggle source
# File lib/6.4.0.36/generated/azure_service_fabric/models/add_remove_replica_scaling_mechanism.rb, line 17
def initialize
  @kind = "AddRemoveReplica"
end