Class: Azure::ServiceFabric::V6_4_0_36::Models::AddRemoveReplicaScalingMechanism

Inherits:
AutoScalingMechanism
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/6.4.0.36/generated/azure_service_fabric/models/add_remove_replica_scaling_mechanism.rb

Overview

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

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeAddRemoveReplicaScalingMechanism

Returns a new instance of AddRemoveReplicaScalingMechanism.



17
18
19
# File 'lib/6.4.0.36/generated/azure_service_fabric/models/add_remove_replica_scaling_mechanism.rb', line 17

def initialize
  @kind = "AddRemoveReplica"
end

Instance Attribute Details

#kindObject

Returns the value of attribute kind.



21
22
23
# File 'lib/6.4.0.36/generated/azure_service_fabric/models/add_remove_replica_scaling_mechanism.rb', line 21

def kind
  @kind
end

#max_countInteger

performed above this number).

Returns:

  • (Integer)

    Maximum number of containers (scale up won’t be



29
30
31
# File 'lib/6.4.0.36/generated/azure_service_fabric/models/add_remove_replica_scaling_mechanism.rb', line 29

def max_count
  @max_count
end

#min_countInteger

performed below this number).

Returns:

  • (Integer)

    Minimum number of containers (scale down won’t be



25
26
27
# File 'lib/6.4.0.36/generated/azure_service_fabric/models/add_remove_replica_scaling_mechanism.rb', line 25

def min_count
  @min_count
end

#scale_incrementInteger

containers will be added or removed.

Returns:

  • (Integer)

    Each time auto scaling is performed, this number of



33
34
35
# File 'lib/6.4.0.36/generated/azure_service_fabric/models/add_remove_replica_scaling_mechanism.rb', line 33

def scale_increment
  @scale_increment
end

Class Method Details

.mapperObject

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



40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
# 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