Class: Azure::Hdinsight::Mgmt::V2018_06_01_preview::Models::AutoscaleCapacity

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/models/autoscale_capacity.rb

Overview

The load-based autoscale request parameters

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#max_instance_countInteger

Returns The maximum instance count of the cluster.

Returns:

  • (Integer)

    The maximum instance count of the cluster



19
20
21
# File 'lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/models/autoscale_capacity.rb', line 19

def max_instance_count
  @max_instance_count
end

#min_instance_countInteger

Returns The minimum instance count of the cluster.

Returns:

  • (Integer)

    The minimum instance count of the cluster



16
17
18
# File 'lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/models/autoscale_capacity.rb', line 16

def min_instance_count
  @min_instance_count
end

Class Method Details

.mapperObject

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



26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# File 'lib/2018-06-01-preview/generated/azure_mgmt_hdinsight/models/autoscale_capacity.rb', line 26

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'AutoscaleCapacity',
    type: {
      name: 'Composite',
      class_name: 'AutoscaleCapacity',
      model_properties: {
        min_instance_count: {
          client_side_validation: true,
          required: false,
          serialized_name: 'minInstanceCount',
          type: {
            name: 'Number'
          }
        },
        max_instance_count: {
          client_side_validation: true,
          required: false,
          serialized_name: 'maxInstanceCount',
          type: {
            name: 'Number'
          }
        }
      }
    }
  }
end