# This file was generated by the Julia Swagger Code Generator
# Do not modify this file directly. Modify the swagger specification instead.


mutable struct AzureFilesIdentityBasedAuthentication <: SwaggerModel
    directoryServiceOptions::Any # spec type: Union{ Nothing, String } # spec name: directoryServiceOptions
    activeDirectoryProperties::Any # spec type: Union{ Nothing, ActiveDirectoryProperties } # spec name: activeDirectoryProperties

    function AzureFilesIdentityBasedAuthentication(;directoryServiceOptions=nothing, activeDirectoryProperties=nothing)
        o = new()
        validate_property(AzureFilesIdentityBasedAuthentication, Symbol("directoryServiceOptions"), directoryServiceOptions)
        setfield!(o, Symbol("directoryServiceOptions"), directoryServiceOptions)
        validate_property(AzureFilesIdentityBasedAuthentication, Symbol("activeDirectoryProperties"), activeDirectoryProperties)
        setfield!(o, Symbol("activeDirectoryProperties"), activeDirectoryProperties)
        o
    end
end # type AzureFilesIdentityBasedAuthentication

const _property_map_AzureFilesIdentityBasedAuthentication = Dict{Symbol,Symbol}(Symbol("directoryServiceOptions")=>Symbol("directoryServiceOptions"), Symbol("activeDirectoryProperties")=>Symbol("activeDirectoryProperties"))
const _property_types_AzureFilesIdentityBasedAuthentication = Dict{Symbol,String}(Symbol("directoryServiceOptions")=>"String", Symbol("activeDirectoryProperties")=>"ActiveDirectoryProperties")
Base.propertynames(::Type{ AzureFilesIdentityBasedAuthentication }) = collect(keys(_property_map_AzureFilesIdentityBasedAuthentication))
Swagger.property_type(::Type{ AzureFilesIdentityBasedAuthentication }, name::Symbol) = Union{Nothing,eval(Base.Meta.parse(_property_types_AzureFilesIdentityBasedAuthentication[name]))}
Swagger.field_name(::Type{ AzureFilesIdentityBasedAuthentication }, property_name::Symbol) =  _property_map_AzureFilesIdentityBasedAuthentication[property_name]

const _allowed_AzureFilesIdentityBasedAuthentication_directoryServiceOptions = ["None", "AADDS", "AD"]

function check_required(o::AzureFilesIdentityBasedAuthentication)
    true
end

function validate_property(::Type{ AzureFilesIdentityBasedAuthentication }, name::Symbol, val)
    if name === Symbol("directoryServiceOptions")
        Swagger.validate_param(name, "AzureFilesIdentityBasedAuthentication", :enum, val, _allowed_AzureFilesIdentityBasedAuthentication_directoryServiceOptions)
    end
end
