Class: Azure::ServiceFabric::V6_4_0_36::Models::AddRemoveReplicaScalingMechanism
- Inherits:
-
AutoScalingMechanism
- Object
- AutoScalingMechanism
- Azure::ServiceFabric::V6_4_0_36::Models::AddRemoveReplicaScalingMechanism
- 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
-
#kind ⇒ Object
Returns the value of attribute kind.
-
#max_count ⇒ Integer
performed above this number).
-
#min_count ⇒ Integer
performed below this number).
-
#scale_increment ⇒ Integer
containers will be added or removed.
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for AddRemoveReplicaScalingMechanism class as Ruby Hash.
Instance Method Summary collapse
-
#initialize ⇒ AddRemoveReplicaScalingMechanism
constructor
A new instance of AddRemoveReplicaScalingMechanism.
Constructor Details
#initialize ⇒ AddRemoveReplicaScalingMechanism
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
#kind ⇒ Object
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_count ⇒ Integer
performed above this number).
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_count ⇒ Integer
performed below this number).
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_increment ⇒ Integer
containers will be added or removed.
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
.mapper ⇒ Object
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 |