# 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::Storage::Mgmt::V2020_08_01_preview
  module Models
    #
    # Settings for Azure Files identity based authentication.
    #
    class AzureFilesIdentityBasedAuthentication

      include MsRestAzure

      # @return [DirectoryServiceOptions] Indicates the directory service used.
      # Possible values include: 'None', 'AADDS', 'AD'
      attr_accessor :directory_service_options

      # @return [ActiveDirectoryProperties] Required if choose AD.
      attr_accessor :active_directory_properties


      #
      # Mapper for AzureFilesIdentityBasedAuthentication class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'AzureFilesIdentityBasedAuthentication',
          type: {
            name: 'Composite',
            class_name: 'AzureFilesIdentityBasedAuthentication',
            model_properties: {
              directory_service_options: {
                client_side_validation: true,
                required: true,
                serialized_name: 'directoryServiceOptions',
                type: {
                  name: 'String'
                }
              },
              active_directory_properties: {
                client_side_validation: true,
                required: false,
                serialized_name: 'activeDirectoryProperties',
                type: {
                  name: 'Composite',
                  class_name: 'ActiveDirectoryProperties'
                }
              }
            }
          }
        }
      end
    end
  end
end
