# encoding: utf-8
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.

module Azure::ServiceFabric::V6_4_0_36
  module Models
    #
    # Information about a partition quorum loss user-induced operation.
    #
    class PartitionQuorumLossProgress

      include MsRestAzure

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

      # @return [InvokeQuorumLossResult] Represents information about an
      # operation in a terminal state (Completed or Faulted).
      attr_accessor :invoke_quorum_loss_result


      #
      # Mapper for PartitionQuorumLossProgress class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'PartitionQuorumLossProgress',
          type: {
            name: 'Composite',
            class_name: 'PartitionQuorumLossProgress',
            model_properties: {
              state: {
                client_side_validation: true,
                required: false,
                serialized_name: 'State',
                type: {
                  name: 'String'
                }
              },
              invoke_quorum_loss_result: {
                client_side_validation: true,
                required: false,
                serialized_name: 'InvokeQuorumLossResult',
                type: {
                  name: 'Composite',
                  class_name: 'InvokeQuorumLossResult'
                }
              }
            }
          }
        }
      end
    end
  end
end
