# 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::EdgeGateway::Mgmt::V2019_03_01
  module Models
    #
    # The mapping between a particular user and the access type on the SMB
    # share.
    #
    class UserAccessRight

      include MsRestAzure

      # @return [String] User ID (already existing in the device).
      attr_accessor :user_id

      # @return [ShareAccessType] Type of access to be allowed for the user.
      # Possible values include: 'Change', 'Read', 'Custom'
      attr_accessor :access_type


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