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


mutable struct AutomaticOSUpgradePolicy <: SwaggerModel
    enableAutomaticOSUpgrade::Any # spec type: Union{ Nothing, Bool } # spec name: enableAutomaticOSUpgrade
    disableAutomaticRollback::Any # spec type: Union{ Nothing, Bool } # spec name: disableAutomaticRollback

    function AutomaticOSUpgradePolicy(;enableAutomaticOSUpgrade=nothing, disableAutomaticRollback=nothing)
        o = new()
        validate_property(AutomaticOSUpgradePolicy, Symbol("enableAutomaticOSUpgrade"), enableAutomaticOSUpgrade)
        setfield!(o, Symbol("enableAutomaticOSUpgrade"), enableAutomaticOSUpgrade)
        validate_property(AutomaticOSUpgradePolicy, Symbol("disableAutomaticRollback"), disableAutomaticRollback)
        setfield!(o, Symbol("disableAutomaticRollback"), disableAutomaticRollback)
        o
    end
end # type AutomaticOSUpgradePolicy

const _property_map_AutomaticOSUpgradePolicy = Dict{Symbol,Symbol}(Symbol("enableAutomaticOSUpgrade")=>Symbol("enableAutomaticOSUpgrade"), Symbol("disableAutomaticRollback")=>Symbol("disableAutomaticRollback"))
const _property_types_AutomaticOSUpgradePolicy = Dict{Symbol,String}(Symbol("enableAutomaticOSUpgrade")=>"Bool", Symbol("disableAutomaticRollback")=>"Bool")
Base.propertynames(::Type{ AutomaticOSUpgradePolicy }) = collect(keys(_property_map_AutomaticOSUpgradePolicy))
Swagger.property_type(::Type{ AutomaticOSUpgradePolicy }, name::Symbol) = Union{Nothing,eval(Base.Meta.parse(_property_types_AutomaticOSUpgradePolicy[name]))}
Swagger.field_name(::Type{ AutomaticOSUpgradePolicy }, property_name::Symbol) =  _property_map_AutomaticOSUpgradePolicy[property_name]

function check_required(o::AutomaticOSUpgradePolicy)
    true
end

function validate_property(::Type{ AutomaticOSUpgradePolicy }, name::Symbol, val)
end
