Class: Azure::BatchAI::Mgmt::V2017_09_01_preview::Models::ScaleSettings
- Inherits:
-
Object
- Object
- Azure::BatchAI::Mgmt::V2017_09_01_preview::Models::ScaleSettings
- Includes:
- MsRestAzure
- Defined in:
- lib/2017-09-01-preview/generated/azure_mgmt_batchai/models/scale_settings.rb
Overview
At least one of manual or autoScale settings must be specified. Only one of manual or autoScale settings can be specified. If autoScale settings are specified, the system automatically scales the cluster up and down (within the supplied limits) based on the pending jobs on the cluster.
Instance Attribute Summary collapse
-
#auto_scale ⇒ AutoScaleSettings
settings.
-
#manual ⇒ ManualScaleSettings
settings.
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for ScaleSettings class as Ruby Hash.
Instance Attribute Details
#auto_scale ⇒ AutoScaleSettings
settings.
24 25 26 |
# File 'lib/2017-09-01-preview/generated/azure_mgmt_batchai/models/scale_settings.rb', line 24 def auto_scale @auto_scale end |
#manual ⇒ ManualScaleSettings
settings.
20 21 22 |
# File 'lib/2017-09-01-preview/generated/azure_mgmt_batchai/models/scale_settings.rb', line 20 def manual @manual end |
Class Method Details
.mapper ⇒ Object
Mapper for ScaleSettings class as Ruby Hash. This will be used for serialization/deserialization.
31 32 33 34 35 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 |
# File 'lib/2017-09-01-preview/generated/azure_mgmt_batchai/models/scale_settings.rb', line 31 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'ScaleSettings', type: { name: 'Composite', class_name: 'ScaleSettings', model_properties: { manual: { client_side_validation: true, required: false, serialized_name: 'manual', type: { name: 'Composite', class_name: 'ManualScaleSettings' } }, auto_scale: { client_side_validation: true, required: false, serialized_name: 'autoScale', type: { name: 'Composite', class_name: 'AutoScaleSettings' } } } } } end |