Class: Azure::Batch::Mgmt::V2018_12_01::Models::FixedScaleSettings
- Inherits:
-
Object
- Object
- Azure::Batch::Mgmt::V2018_12_01::Models::FixedScaleSettings
- Includes:
- MsRestAzure
- Defined in:
- lib/2018-12-01/generated/azure_mgmt_batch/models/fixed_scale_settings.rb
Overview
Fixed scale settings for the pool.
Instance Attribute Summary collapse
-
#node_deallocation_option ⇒ ComputeNodeDeallocationOption
node and its running task(s) if the pool size is decreasing.
-
#resize_timeout ⇒ Duration
pool.
-
#target_dedicated_nodes ⇒ Integer
pool.
-
#target_low_priority_nodes ⇒ Integer
the pool.
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for FixedScaleSettings class as Ruby Hash.
Instance Attribute Details
#node_deallocation_option ⇒ ComputeNodeDeallocationOption
node and its running task(s) if the pool size is decreasing. If omitted, the default value is Requeue. Possible values include: ‘Requeue’, ‘Terminate’, ‘TaskCompletion’, ‘RetainedData’
38 39 40 |
# File 'lib/2018-12-01/generated/azure_mgmt_batch/models/fixed_scale_settings.rb', line 38 def node_deallocation_option @node_deallocation_option end |
#resize_timeout ⇒ Duration
pool. The default value is 15 minutes. Timeout values use ISO 8601 format. For example, use PT10M for 10 minutes. The minimum value is 5 minutes. If you specify a value less than 5 minutes, the Batch service rejects the request with an error; if you are calling the REST API directly, the HTTP status code is 400 (Bad Request).
22 23 24 |
# File 'lib/2018-12-01/generated/azure_mgmt_batch/models/fixed_scale_settings.rb', line 22 def resize_timeout @resize_timeout end |
#target_dedicated_nodes ⇒ Integer
pool. At least one of targetDedicatedNodes, targetLowPriority nodes must be set.
27 28 29 |
# File 'lib/2018-12-01/generated/azure_mgmt_batch/models/fixed_scale_settings.rb', line 27 def target_dedicated_nodes @target_dedicated_nodes end |
#target_low_priority_nodes ⇒ Integer
the pool. At least one of targetDedicatedNodes, targetLowPriority nodes must be set.
32 33 34 |
# File 'lib/2018-12-01/generated/azure_mgmt_batch/models/fixed_scale_settings.rb', line 32 def target_low_priority_nodes @target_low_priority_nodes end |
Class Method Details
.mapper ⇒ Object
Mapper for FixedScaleSettings class as Ruby Hash. This will be used for serialization/deserialization.
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 85 86 87 88 89 90 |
# File 'lib/2018-12-01/generated/azure_mgmt_batch/models/fixed_scale_settings.rb', line 45 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'FixedScaleSettings', type: { name: 'Composite', class_name: 'FixedScaleSettings', model_properties: { resize_timeout: { client_side_validation: true, required: false, serialized_name: 'resizeTimeout', type: { name: 'TimeSpan' } }, target_dedicated_nodes: { client_side_validation: true, required: false, serialized_name: 'targetDedicatedNodes', type: { name: 'Number' } }, target_low_priority_nodes: { client_side_validation: true, required: false, serialized_name: 'targetLowPriorityNodes', type: { name: 'Number' } }, node_deallocation_option: { client_side_validation: true, required: false, serialized_name: 'nodeDeallocationOption', type: { name: 'Enum', module: 'ComputeNodeDeallocationOption' } } } } } end |