Class: Azure::Batch::Mgmt::V2018_12_01::Models::FixedScaleSettings

Inherits:
Object
  • Object
show all
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

Class Method Summary collapse

Instance Attribute Details

#node_deallocation_optionComputeNodeDeallocationOption

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’

Returns:



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_timeoutDuration

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).

Returns:

  • (Duration)

    The timeout for allocation of compute nodes to the



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_nodesInteger

pool. At least one of targetDedicatedNodes, targetLowPriority nodes must be set.

Returns:

  • (Integer)

    The desired number of dedicated compute nodes in the



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_nodesInteger

the pool. At least one of targetDedicatedNodes, targetLowPriority nodes must be set.

Returns:

  • (Integer)

    The desired number of low-priority compute nodes in



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

.mapperObject

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