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


mutable struct IoK8sApiCoreV1SecretVolumeSource <: SwaggerModel
    defaultMode::Any # spec type: Union{ Nothing, Int32 } # spec name: defaultMode
    items::Any # spec type: Union{ Nothing, Vector{IoK8sApiCoreV1KeyToPath} } # spec name: items
    optional::Any # spec type: Union{ Nothing, Bool } # spec name: optional
    secretName::Any # spec type: Union{ Nothing, String } # spec name: secretName

    function IoK8sApiCoreV1SecretVolumeSource(;defaultMode=nothing, items=nothing, optional=nothing, secretName=nothing)
        o = new()
        validate_property(IoK8sApiCoreV1SecretVolumeSource, Symbol("defaultMode"), defaultMode)
        setfield!(o, Symbol("defaultMode"), defaultMode)
        validate_property(IoK8sApiCoreV1SecretVolumeSource, Symbol("items"), items)
        setfield!(o, Symbol("items"), items)
        validate_property(IoK8sApiCoreV1SecretVolumeSource, Symbol("optional"), optional)
        setfield!(o, Symbol("optional"), optional)
        validate_property(IoK8sApiCoreV1SecretVolumeSource, Symbol("secretName"), secretName)
        setfield!(o, Symbol("secretName"), secretName)
        o
    end
end # type IoK8sApiCoreV1SecretVolumeSource

const _property_map_IoK8sApiCoreV1SecretVolumeSource = Dict{Symbol,Symbol}(Symbol("defaultMode")=>Symbol("defaultMode"), Symbol("items")=>Symbol("items"), Symbol("optional")=>Symbol("optional"), Symbol("secretName")=>Symbol("secretName"))
const _property_types_IoK8sApiCoreV1SecretVolumeSource = Dict{Symbol,String}(Symbol("defaultMode")=>"Int32", Symbol("items")=>"Vector{IoK8sApiCoreV1KeyToPath}", Symbol("optional")=>"Bool", Symbol("secretName")=>"String")
Base.propertynames(::Type{ IoK8sApiCoreV1SecretVolumeSource }) = collect(keys(_property_map_IoK8sApiCoreV1SecretVolumeSource))
Swagger.property_type(::Type{ IoK8sApiCoreV1SecretVolumeSource }, name::Symbol) = Union{Nothing,eval(Base.Meta.parse(_property_types_IoK8sApiCoreV1SecretVolumeSource[name]))}
Swagger.field_name(::Type{ IoK8sApiCoreV1SecretVolumeSource }, property_name::Symbol) =  _property_map_IoK8sApiCoreV1SecretVolumeSource[property_name]

function check_required(o::IoK8sApiCoreV1SecretVolumeSource)
    true
end

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