Class: Azure::Batch::Mgmt::V2018_12_01::Models::TaskSchedulingPolicy

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2018-12-01/generated/azure_mgmt_batch/models/task_scheduling_policy.rb

Overview

Specifies how tasks should be distributed across compute nodes.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#node_fill_typeComputeNodeFillType

compute nodes. Possible values include: ‘Spread’, ‘Pack’

Returns:



18
19
20
# File 'lib/2018-12-01/generated/azure_mgmt_batch/models/task_scheduling_policy.rb', line 18

def node_fill_type
  @node_fill_type
end

Class Method Details

.mapperObject

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



25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# File 'lib/2018-12-01/generated/azure_mgmt_batch/models/task_scheduling_policy.rb', line 25

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'TaskSchedulingPolicy',
    type: {
      name: 'Composite',
      class_name: 'TaskSchedulingPolicy',
      model_properties: {
        node_fill_type: {
          client_side_validation: true,
          required: true,
          serialized_name: 'nodeFillType',
          type: {
            name: 'Enum',
            module: 'ComputeNodeFillType'
          }
        }
      }
    }
  }
end