Class: Azure::ServiceFabric::V6_5_0_36::Models::OperationStatus

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/6.5.0.36/generated/azure_service_fabric/models/operation_status.rb

Overview

Contains the OperationId, OperationState, and OperationType for user-induced operations.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#operation_idObject

into the corresponding GetProgress API.

Returns:

  • A GUID that identifies a call to this API. This is also passed



18
19
20
# File 'lib/6.5.0.36/generated/azure_service_fabric/models/operation_status.rb', line 18

def operation_id
  @operation_id
end

#stateOperationState

include: ‘Invalid’, ‘Running’, ‘RollingBack’, ‘Completed’, ‘Faulted’, ‘Cancelled’, ‘ForceCancelled’

Returns:



23
24
25
# File 'lib/6.5.0.36/generated/azure_service_fabric/models/operation_status.rb', line 23

def state
  @state
end

#typeOperationType

include: ‘Invalid’, ‘PartitionDataLoss’, ‘PartitionQuorumLoss’, ‘PartitionRestart’, ‘NodeTransition’

Returns:



28
29
30
# File 'lib/6.5.0.36/generated/azure_service_fabric/models/operation_status.rb', line 28

def type
  @type
end

Class Method Details

.mapperObject

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



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/6.5.0.36/generated/azure_service_fabric/models/operation_status.rb', line 35

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'OperationStatus',
    type: {
      name: 'Composite',
      class_name: 'OperationStatus',
      model_properties: {
        operation_id: {
          client_side_validation: true,
          required: false,
          serialized_name: 'OperationId',
          type: {
            name: 'String'
          }
        },
        state: {
          client_side_validation: true,
          required: false,
          serialized_name: 'State',
          type: {
            name: 'String'
          }
        },
        type: {
          client_side_validation: true,
          required: false,
          serialized_name: 'Type',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end