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


mutable struct IoK8sApiCoreV1PodTemplateSpec <: SwaggerModel
    metadata::Any # spec type: Union{ Nothing, IoK8sApimachineryPkgApisMetaV1ObjectMeta } # spec name: metadata
    spec::Any # spec type: Union{ Nothing, IoK8sApiCoreV1PodSpec } # spec name: spec

    function IoK8sApiCoreV1PodTemplateSpec(;metadata=nothing, spec=nothing)
        o = new()
        validate_property(IoK8sApiCoreV1PodTemplateSpec, Symbol("metadata"), metadata)
        setfield!(o, Symbol("metadata"), metadata)
        validate_property(IoK8sApiCoreV1PodTemplateSpec, Symbol("spec"), spec)
        setfield!(o, Symbol("spec"), spec)
        o
    end
end # type IoK8sApiCoreV1PodTemplateSpec

const _property_map_IoK8sApiCoreV1PodTemplateSpec = Dict{Symbol,Symbol}(Symbol("metadata")=>Symbol("metadata"), Symbol("spec")=>Symbol("spec"))
const _property_types_IoK8sApiCoreV1PodTemplateSpec = Dict{Symbol,String}(Symbol("metadata")=>"IoK8sApimachineryPkgApisMetaV1ObjectMeta", Symbol("spec")=>"IoK8sApiCoreV1PodSpec")
Base.propertynames(::Type{ IoK8sApiCoreV1PodTemplateSpec }) = collect(keys(_property_map_IoK8sApiCoreV1PodTemplateSpec))
Swagger.property_type(::Type{ IoK8sApiCoreV1PodTemplateSpec }, name::Symbol) = Union{Nothing,eval(Base.Meta.parse(_property_types_IoK8sApiCoreV1PodTemplateSpec[name]))}
Swagger.field_name(::Type{ IoK8sApiCoreV1PodTemplateSpec }, property_name::Symbol) =  _property_map_IoK8sApiCoreV1PodTemplateSpec[property_name]

function check_required(o::IoK8sApiCoreV1PodTemplateSpec)
    true
end

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