Class: Azure::Compute::Mgmt::V2018_04_01::Models::UpgradeOperationHistoryStatus

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2018-04-01/generated/azure_mgmt_compute/models/upgrade_operation_history_status.rb

Overview

Information about the current running state of the overall upgrade.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#codeUpgradeState

upgrade. Possible values include: 'RollingForward', 'Cancelled', 'Completed', 'Faulted'

Returns:

  • (UpgradeState)

    Code indicating the current status of the



18
19
20
# File 'lib/2018-04-01/generated/azure_mgmt_compute/models/upgrade_operation_history_status.rb', line 18

def code
  @code
end

#end_timeDateTime

Returns End time of the upgrade.

Returns:

  • (DateTime)

    End time of the upgrade.



24
25
26
# File 'lib/2018-04-01/generated/azure_mgmt_compute/models/upgrade_operation_history_status.rb', line 24

def end_time
  @end_time
end

#start_timeDateTime

Returns Start time of the upgrade.

Returns:

  • (DateTime)

    Start time of the upgrade.



21
22
23
# File 'lib/2018-04-01/generated/azure_mgmt_compute/models/upgrade_operation_history_status.rb', line 21

def start_time
  @start_time
end

Class Method Details

.mapperObject

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



31
32
33
34
35
36
37
38
39
40
41
42
43
44
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
# File 'lib/2018-04-01/generated/azure_mgmt_compute/models/upgrade_operation_history_status.rb', line 31

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'UpgradeOperationHistoryStatus',
    type: {
      name: 'Composite',
      class_name: 'UpgradeOperationHistoryStatus',
      model_properties: {
        code: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'code',
          type: {
            name: 'Enum',
            module: 'UpgradeState'
          }
        },
        start_time: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'startTime',
          type: {
            name: 'DateTime'
          }
        },
        end_time: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'endTime',
          type: {
            name: 'DateTime'
          }
        }
      }
    }
  }
end