# 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_5_0_36
  module Models
    #
    # Specifying this parameter adds support for reliable collections
    #
    class ReliableCollectionsRef

      include MsRestAzure

      # @return [String] Name of ReliableCollection resource. Right now it's
      # not used and you can use any string.
      attr_accessor :name

      # @return [Boolean] False (the default) if ReliableCollections state is
      # persisted to disk as usual. True if you do not want to persist state,
      # in which case replication is still enabled and you can use
      # ReliableCollections as distributed cache.
      attr_accessor :do_not_persist_state


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