Class: Azure::Compute::Mgmt::V2017_12_01::Models::RollbackStatusInfo

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2017-12-01/generated/azure_mgmt_compute/models/rollback_status_info.rb

Overview

Information about rollback on failed VM instances after a OS Upgrade operation.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#failed_rolledback_instance_countInteger

Returns The number of instances which failed to rollback.

Returns:

  • (Integer)

    The number of instances which failed to rollback.



21
22
23
# File 'lib/2017-12-01/generated/azure_mgmt_compute/models/rollback_status_info.rb', line 21

def failed_rolledback_instance_count
  @failed_rolledback_instance_count
end

#rollback_errorApiError

Returns Error details if OS rollback failed.

Returns:

  • (ApiError)

    Error details if OS rollback failed.



24
25
26
# File 'lib/2017-12-01/generated/azure_mgmt_compute/models/rollback_status_info.rb', line 24

def rollback_error
  @rollback_error
end

#successfully_rolledback_instance_countInteger

rolled back.

Returns:

  • (Integer)

    The number of instances which have been successfully



18
19
20
# File 'lib/2017-12-01/generated/azure_mgmt_compute/models/rollback_status_info.rb', line 18

def successfully_rolledback_instance_count
  @successfully_rolledback_instance_count
end

Class Method Details

.mapperObject

Mapper for RollbackStatusInfo 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/2017-12-01/generated/azure_mgmt_compute/models/rollback_status_info.rb', line 31

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'RollbackStatusInfo',
    type: {
      name: 'Composite',
      class_name: 'RollbackStatusInfo',
      model_properties: {
        successfully_rolledback_instance_count: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'successfullyRolledbackInstanceCount',
          type: {
            name: 'Number'
          }
        },
        failed_rolledback_instance_count: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'failedRolledbackInstanceCount',
          type: {
            name: 'Number'
          }
        },
        rollback_error: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'rollbackError',
          type: {
            name: 'Composite',
            class_name: 'ApiError'
          }
        }
      }
    }
  }
end