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


mutable struct IoK8sApiCoreV1PodTemplate <: SwaggerModel
    apiVersion::Any # spec type: Union{ Nothing, String } # spec name: apiVersion
    kind::Any # spec type: Union{ Nothing, String } # spec name: kind
    metadata::Any # spec type: Union{ Nothing, IoK8sApimachineryPkgApisMetaV1ObjectMeta } # spec name: metadata
    template::Any # spec type: Union{ Nothing, IoK8sApiCoreV1PodTemplateSpec } # spec name: template

    function IoK8sApiCoreV1PodTemplate(;apiVersion=nothing, kind=nothing, metadata=nothing, template=nothing)
        o = new()
        validate_property(IoK8sApiCoreV1PodTemplate, Symbol("apiVersion"), apiVersion)
        setfield!(o, Symbol("apiVersion"), apiVersion)
        validate_property(IoK8sApiCoreV1PodTemplate, Symbol("kind"), kind)
        setfield!(o, Symbol("kind"), kind)
        validate_property(IoK8sApiCoreV1PodTemplate, Symbol("metadata"), metadata)
        setfield!(o, Symbol("metadata"), metadata)
        validate_property(IoK8sApiCoreV1PodTemplate, Symbol("template"), template)
        setfield!(o, Symbol("template"), template)
        o
    end
end # type IoK8sApiCoreV1PodTemplate

const _property_map_IoK8sApiCoreV1PodTemplate = Dict{Symbol,Symbol}(Symbol("apiVersion")=>Symbol("apiVersion"), Symbol("kind")=>Symbol("kind"), Symbol("metadata")=>Symbol("metadata"), Symbol("template")=>Symbol("template"))
const _property_types_IoK8sApiCoreV1PodTemplate = Dict{Symbol,String}(Symbol("apiVersion")=>"String", Symbol("kind")=>"String", Symbol("metadata")=>"IoK8sApimachineryPkgApisMetaV1ObjectMeta", Symbol("template")=>"IoK8sApiCoreV1PodTemplateSpec")
Base.propertynames(::Type{ IoK8sApiCoreV1PodTemplate }) = collect(keys(_property_map_IoK8sApiCoreV1PodTemplate))
Swagger.property_type(::Type{ IoK8sApiCoreV1PodTemplate }, name::Symbol) = Union{Nothing,eval(Base.Meta.parse(_property_types_IoK8sApiCoreV1PodTemplate[name]))}
Swagger.field_name(::Type{ IoK8sApiCoreV1PodTemplate }, property_name::Symbol) =  _property_map_IoK8sApiCoreV1PodTemplate[property_name]

function check_required(o::IoK8sApiCoreV1PodTemplate)
    true
end

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