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



mutable struct DiskUpdateProperties <: SwaggerModel
    osType::Any # spec type: Union{ Nothing, String } # spec name: osType
    diskSizeGB::Any # spec type: Union{ Nothing, Int32 } # spec name: diskSizeGB
    encryptionSettings::Any # spec type: Union{ Nothing, EncryptionSettings } # spec name: encryptionSettings

    function DiskUpdateProperties(;osType=nothing, diskSizeGB=nothing, encryptionSettings=nothing)
        o = new()
        validate_property(DiskUpdateProperties, Symbol("osType"), osType)
        setfield!(o, Symbol("osType"), osType)
        validate_property(DiskUpdateProperties, Symbol("diskSizeGB"), diskSizeGB)
        setfield!(o, Symbol("diskSizeGB"), diskSizeGB)
        validate_property(DiskUpdateProperties, Symbol("encryptionSettings"), encryptionSettings)
        setfield!(o, Symbol("encryptionSettings"), encryptionSettings)
        o
    end
end # type DiskUpdateProperties

const _property_map_DiskUpdateProperties = Dict{Symbol,Symbol}(Symbol("osType")=>Symbol("osType"), Symbol("diskSizeGB")=>Symbol("diskSizeGB"), Symbol("encryptionSettings")=>Symbol("encryptionSettings"))
const _property_types_DiskUpdateProperties = Dict{Symbol,String}(Symbol("osType")=>"String", Symbol("diskSizeGB")=>"Int32", Symbol("encryptionSettings")=>"EncryptionSettings")
Base.propertynames(::Type{ DiskUpdateProperties }) = collect(keys(_property_map_DiskUpdateProperties))
Swagger.property_type(::Type{ DiskUpdateProperties }, name::Symbol) = Union{Nothing,eval(Meta.parse(_property_types_DiskUpdateProperties[name]))}
Swagger.field_name(::Type{ DiskUpdateProperties }, property_name::Symbol) =  _property_map_DiskUpdateProperties[property_name]

const _allowed_DiskUpdateProperties_osType = ["Windows", "Linux"]

function check_required(o::DiskUpdateProperties)
    true
end

function validate_property(::Type{ DiskUpdateProperties }, name::Symbol, val)
    if name === Symbol("osType")
        Swagger.validate_param(name, "DiskUpdateProperties", :enum, val, _allowed_DiskUpdateProperties_osType)
    end
end
