# 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_3_0_9
  module Models
    #
    # Represents a base class for primary or secondary replicator status.
    # Contains information about the service fabric replicator like the
    # replication/copy queue utilization, last acknowledgement received
    # timestamp, etc.
    #
    class ReplicatorStatus

      include MsRestAzure

      @@discriminatorMap = Hash.new
      @@discriminatorMap["Primary"] = "PrimaryReplicatorStatus"
      @@discriminatorMap["SecondaryReplicatorStatus"] = "SecondaryReplicatorStatus"
      @@discriminatorMap["ActiveSecondary"] = "SecondaryActiveReplicatorStatus"
      @@discriminatorMap["IdleSecondary"] = "SecondaryIdleReplicatorStatus"

      def initialize
        @Kind = "ReplicatorStatus"
      end

      attr_accessor :Kind


      #
      # Mapper for ReplicatorStatus class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'ReplicatorStatus',
          type: {
            name: 'Composite',
            polymorphic_discriminator: 'Kind',
            uber_parent: 'ReplicatorStatus',
            class_name: 'ReplicatorStatus',
            model_properties: {
            }
          }
        }
      end
    end
  end
end
