class Azure::ServiceFabric::V6_3_0_9::Models::OperationStatus

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

Attributes

operation_id[RW]

@return A GUID that identifies a call to this API. This is also passed into the corresponding GetProgress API.

state[RW]

@return [OperationState] The state of the operation. Possible values include: 'Invalid', 'Running', 'RollingBack', 'Completed', 'Faulted', 'Cancelled', 'ForceCancelled'

type[RW]

@return [OperationType] The type of the operation. Possible values include: 'Invalid', 'PartitionDataLoss', 'PartitionQuorumLoss', 'PartitionRestart', 'NodeTransition'

Public Class Methods

mapper() click to toggle source

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

# File lib/6.3.0.9/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