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


mutable struct IoK8sApiCoreV1Toleration <: SwaggerModel
    effect::Any # spec type: Union{ Nothing, String } # spec name: effect
    key::Any # spec type: Union{ Nothing, String } # spec name: key
    operator::Any # spec type: Union{ Nothing, String } # spec name: operator
    tolerationSeconds::Any # spec type: Union{ Nothing, Int64 } # spec name: tolerationSeconds
    value::Any # spec type: Union{ Nothing, String } # spec name: value

    function IoK8sApiCoreV1Toleration(;effect=nothing, key=nothing, operator=nothing, tolerationSeconds=nothing, value=nothing)
        o = new()
        validate_property(IoK8sApiCoreV1Toleration, Symbol("effect"), effect)
        setfield!(o, Symbol("effect"), effect)
        validate_property(IoK8sApiCoreV1Toleration, Symbol("key"), key)
        setfield!(o, Symbol("key"), key)
        validate_property(IoK8sApiCoreV1Toleration, Symbol("operator"), operator)
        setfield!(o, Symbol("operator"), operator)
        validate_property(IoK8sApiCoreV1Toleration, Symbol("tolerationSeconds"), tolerationSeconds)
        setfield!(o, Symbol("tolerationSeconds"), tolerationSeconds)
        validate_property(IoK8sApiCoreV1Toleration, Symbol("value"), value)
        setfield!(o, Symbol("value"), value)
        o
    end
end # type IoK8sApiCoreV1Toleration

const _property_map_IoK8sApiCoreV1Toleration = Dict{Symbol,Symbol}(Symbol("effect")=>Symbol("effect"), Symbol("key")=>Symbol("key"), Symbol("operator")=>Symbol("operator"), Symbol("tolerationSeconds")=>Symbol("tolerationSeconds"), Symbol("value")=>Symbol("value"))
const _property_types_IoK8sApiCoreV1Toleration = Dict{Symbol,String}(Symbol("effect")=>"String", Symbol("key")=>"String", Symbol("operator")=>"String", Symbol("tolerationSeconds")=>"Int64", Symbol("value")=>"String")
Base.propertynames(::Type{ IoK8sApiCoreV1Toleration }) = collect(keys(_property_map_IoK8sApiCoreV1Toleration))
Swagger.property_type(::Type{ IoK8sApiCoreV1Toleration }, name::Symbol) = Union{Nothing,eval(Base.Meta.parse(_property_types_IoK8sApiCoreV1Toleration[name]))}
Swagger.field_name(::Type{ IoK8sApiCoreV1Toleration }, property_name::Symbol) =  _property_map_IoK8sApiCoreV1Toleration[property_name]

function check_required(o::IoK8sApiCoreV1Toleration)
    true
end

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