# 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::V7_0_0_42
  module Models
    #
    # Describes a reference to a volume resource.
    #
    class VolumeReference

      include MsRestAzure

      # @return [String] Name of the volume being referenced.
      attr_accessor :name

      # @return [Boolean] The flag indicating whether the volume is read only.
      # Default is 'false'.
      attr_accessor :read_only

      # @return [String] The path within the container at which the volume
      # should be mounted. Only valid path characters are allowed.
      attr_accessor :destination_path


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