Class: Azure::Batch::Mgmt::V2019_04_01::Models::ScaleSettings

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2019-04-01/generated/azure_mgmt_batch/models/scale_settings.rb

Overview

Defines the desired size of the pool. This can either be ‘fixedScale’ where the requested targetDedicatedNodes is specified, or ‘autoScale’ which defines a formula which is periodically reevaluated. If this property is not specified, the pool will have a fixed scale with 0 targetDedicatedNodes.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#auto_scaleAutoScaleSettings

property and fixedScale are mutually exclusive and one of the properties must be specified.

Returns:



29
30
31
# File 'lib/2019-04-01/generated/azure_mgmt_batch/models/scale_settings.rb', line 29

def auto_scale
  @auto_scale
end

#fixed_scaleFixedScaleSettings

property and autoScale are mutually exclusive and one of the properties must be specified.

Returns:



24
25
26
# File 'lib/2019-04-01/generated/azure_mgmt_batch/models/scale_settings.rb', line 24

def fixed_scale
  @fixed_scale
end

Class Method Details

.mapperObject

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



36
37
38
39
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
# File 'lib/2019-04-01/generated/azure_mgmt_batch/models/scale_settings.rb', line 36

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'ScaleSettings',
    type: {
      name: 'Composite',
      class_name: 'ScaleSettings',
      model_properties: {
        fixed_scale: {
          client_side_validation: true,
          required: false,
          serialized_name: 'fixedScale',
          type: {
            name: 'Composite',
            class_name: 'FixedScaleSettings'
          }
        },
        auto_scale: {
          client_side_validation: true,
          required: false,
          serialized_name: 'autoScale',
          type: {
            name: 'Composite',
            class_name: 'AutoScaleSettings'
          }
        }
      }
    }
  }
end