Class: Azure::Batch::Mgmt::V2017_09_01::Models::ResizeOperationStatus

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2017-09-01/generated/azure_mgmt_batch/models/resize_operation_status.rb

Overview

Describes either the current operation (if the pool AllocationState is Resizing) or the previously completed operation (if the AllocationState is Steady).

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#errorsArray<ResizeError>

performing the last resize on the pool. This property is set only if an error occurred during the last pool resize, and only when the pool allocationState is Steady.



47
48
49
# File 'lib/2017-09-01/generated/azure_mgmt_batch/models/resize_operation_status.rb', line 47

def errors
  @errors
end

#node_deallocation_optionComputeNodeDeallocationOption

node and its running task(s) if the pool size is decreasing. The default value is requeue. Possible values include: ‘Requeue’, ‘Terminate’, ‘TaskCompletion’, ‘RetainedData’



38
39
40
# File 'lib/2017-09-01/generated/azure_mgmt_batch/models/resize_operation_status.rb', line 38

def node_deallocation_option
  @node_deallocation_option
end

#resize_timeoutDuration

pool or removal of compute nodes from the pool. The default value is 15 minutes. The minimum value is 5 minutes. If you specify a value less than 5 minutes, the Batch service returns an error; if you are calling the REST API directly, the HTTP status code is 400 (Bad Request).



32
33
34
# File 'lib/2017-09-01/generated/azure_mgmt_batch/models/resize_operation_status.rb', line 32

def resize_timeout
  @resize_timeout
end

#start_timeDateTime



41
42
43
# File 'lib/2017-09-01/generated/azure_mgmt_batch/models/resize_operation_status.rb', line 41

def start_time
  @start_time
end

#target_dedicated_nodesInteger

pool.



21
22
23
# File 'lib/2017-09-01/generated/azure_mgmt_batch/models/resize_operation_status.rb', line 21

def target_dedicated_nodes
  @target_dedicated_nodes
end

#target_low_priority_nodesInteger

the pool.



25
26
27
# File 'lib/2017-09-01/generated/azure_mgmt_batch/models/resize_operation_status.rb', line 25

def target_low_priority_nodes
  @target_low_priority_nodes
end

Class Method Details

.mapperObject

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



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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
# File 'lib/2017-09-01/generated/azure_mgmt_batch/models/resize_operation_status.rb', line 54

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'ResizeOperationStatus',
    type: {
      name: 'Composite',
      class_name: 'ResizeOperationStatus',
      model_properties: {
        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'
          }
        },
        resize_timeout: {
          client_side_validation: true,
          required: false,
          serialized_name: 'resizeTimeout',
          type: {
            name: 'TimeSpan'
          }
        },
        node_deallocation_option: {
          client_side_validation: true,
          required: false,
          serialized_name: 'nodeDeallocationOption',
          type: {
            name: 'Enum',
            module: 'ComputeNodeDeallocationOption'
          }
        },
        start_time: {
          client_side_validation: true,
          required: false,
          serialized_name: 'startTime',
          type: {
            name: 'DateTime'
          }
        },
        errors: {
          client_side_validation: true,
          required: false,
          serialized_name: 'errors',
          type: {
            name: 'Sequence',
            element: {
                client_side_validation: true,
                required: false,
                serialized_name: 'ResizeErrorElementType',
                type: {
                  name: 'Composite',
                  class_name: 'ResizeError'
                }
            }
          }
        }
      }
    }
  }
end