class Azure::BatchAI::Mgmt::V2018_03_01::Models::ManualScaleSettings

Manual scale settings for the cluster.

Attributes

node_deallocation_option[RW]

@return [DeallocationOption] Determines what to do with the job(s) running on compute node if the Cluster size is decreasing. The default value is requeue. Possible values include: 'requeue', 'terminate', 'waitforjobcompletion', 'unknown'. Default value: 'requeue' .

target_node_count[RW]

@return [Integer] The desired number of compute nodes in the Cluster. Default is 0. If autoScaleSettings are not specified, then the Cluster starts with this target. Default value: 0 .

Public Class Methods

mapper() click to toggle source

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

# File lib/2018-03-01/generated/azure_mgmt_batchai/models/manual_scale_settings.rb, line 31
def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'ManualScaleSettings',
    type: {
      name: 'Composite',
      class_name: 'ManualScaleSettings',
      model_properties: {
        target_node_count: {
          client_side_validation: true,
          required: true,
          serialized_name: 'targetNodeCount',
          default_value: 0,
          type: {
            name: 'Number'
          }
        },
        node_deallocation_option: {
          client_side_validation: true,
          required: false,
          serialized_name: 'nodeDeallocationOption',
          default_value: 'requeue',
          type: {
            name: 'Enum',
            module: 'DeallocationOption'
          }
        }
      }
    }
  }
end