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


mutable struct ContainerServiceWindowsProfile <: SwaggerModel
    adminUsername::Any # spec type: Union{ Nothing, String } # spec name: adminUsername
    adminPassword::Any # spec type: Union{ Nothing, String } # spec name: adminPassword

    function ContainerServiceWindowsProfile(;adminUsername=nothing, adminPassword=nothing)
        o = new()
        validate_property(ContainerServiceWindowsProfile, Symbol("adminUsername"), adminUsername)
        setfield!(o, Symbol("adminUsername"), adminUsername)
        validate_property(ContainerServiceWindowsProfile, Symbol("adminPassword"), adminPassword)
        setfield!(o, Symbol("adminPassword"), adminPassword)
        o
    end
end # type ContainerServiceWindowsProfile

const _property_map_ContainerServiceWindowsProfile = Dict{Symbol,Symbol}(Symbol("adminUsername")=>Symbol("adminUsername"), Symbol("adminPassword")=>Symbol("adminPassword"))
const _property_types_ContainerServiceWindowsProfile = Dict{Symbol,String}(Symbol("adminUsername")=>"String", Symbol("adminPassword")=>"String")
Base.propertynames(::Type{ ContainerServiceWindowsProfile }) = collect(keys(_property_map_ContainerServiceWindowsProfile))
Swagger.property_type(::Type{ ContainerServiceWindowsProfile }, name::Symbol) = Union{Nothing,eval(Base.Meta.parse(_property_types_ContainerServiceWindowsProfile[name]))}
Swagger.field_name(::Type{ ContainerServiceWindowsProfile }, property_name::Symbol) =  _property_map_ContainerServiceWindowsProfile[property_name]

function check_required(o::ContainerServiceWindowsProfile)
    (getproperty(o, Symbol("adminUsername")) === nothing) && (return false)
    (getproperty(o, Symbol("adminPassword")) === nothing) && (return false)
    true
end

function validate_property(::Type{ ContainerServiceWindowsProfile }, name::Symbol, val)
    if name === Symbol("adminUsername")
    end
    if name === Symbol("adminPassword")
    end
end
