# 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 that is singleton. The services with
    # singleton partitioning scheme are effectively non-partitioned. They only
    # have one partition.
    #
    class SingletonPartitionInformation < PartitionInformation

      include MsRestAzure


      def initialize
        @ServicePartitionKind = "Singleton"
      end

      attr_accessor :ServicePartitionKind


      #
      # Mapper for SingletonPartitionInformation class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'Singleton',
          type: {
            name: 'Composite',
            class_name: 'SingletonPartitionInformation',
            model_properties: {
              id: {
                client_side_validation: true,
                required: false,
                serialized_name: 'Id',
                type: {
                  name: 'String'
                }
              },
              ServicePartitionKind: {
                client_side_validation: true,
                required: true,
                serialized_name: 'ServicePartitionKind',
                type: {
                  name: 'String'
                }
              }
            }
          }
        }
      end
    end
  end
end
