# 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::StorageCache::Mgmt::V2020_10_01
  module Models
    #
    # Cache Directory Services settings.
    #
    class CacheDirectorySettings

      include MsRestAzure

      # @return [CacheActiveDirectorySettings] Specifies settings for joining
      # the HPC Cache to an Active Directory domain.
      attr_accessor :active_directory

      # @return [CacheUsernameDownloadSettings] Specifies settings for Extended
      # Groups. Extended Groups allows users to be members of more than 16
      # groups.
      attr_accessor :username_download


      #
      # Mapper for CacheDirectorySettings class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'CacheDirectorySettings',
          type: {
            name: 'Composite',
            class_name: 'CacheDirectorySettings',
            model_properties: {
              active_directory: {
                client_side_validation: true,
                required: false,
                serialized_name: 'activeDirectory',
                type: {
                  name: 'Composite',
                  class_name: 'CacheActiveDirectorySettings'
                }
              },
              username_download: {
                client_side_validation: true,
                required: false,
                serialized_name: 'usernameDownload',
                type: {
                  name: 'Composite',
                  class_name: 'CacheUsernameDownloadSettings'
                }
              }
            }
          }
        }
      end
    end
  end
end
