Class: Azure::ServiceFabric::V6_5_0_36::Models::OperationStatus
- Inherits:
-
Object
- Object
- Azure::ServiceFabric::V6_5_0_36::Models::OperationStatus
- 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
-
#operation_id ⇒ Object
into the corresponding GetProgress API.
-
#state ⇒ OperationState
include: ‘Invalid’, ‘Running’, ‘RollingBack’, ‘Completed’, ‘Faulted’, ‘Cancelled’, ‘ForceCancelled’.
-
#type ⇒ OperationType
include: ‘Invalid’, ‘PartitionDataLoss’, ‘PartitionQuorumLoss’, ‘PartitionRestart’, ‘NodeTransition’.
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for OperationStatus class as Ruby Hash.
Instance Attribute Details
#operation_id ⇒ Object
into the corresponding GetProgress API.
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 |
#state ⇒ OperationState
include: ‘Invalid’, ‘Running’, ‘RollingBack’, ‘Completed’, ‘Faulted’, ‘Cancelled’, ‘ForceCancelled’
23 24 25 |
# File 'lib/6.5.0.36/generated/azure_service_fabric/models/operation_status.rb', line 23 def state @state end |
#type ⇒ OperationType
include: ‘Invalid’, ‘PartitionDataLoss’, ‘PartitionQuorumLoss’, ‘PartitionRestart’, ‘NodeTransition’
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
.mapper ⇒ Object
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 |