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



mutable struct IoK8sApimachineryPkgApisMetaV1GroupVersionForDiscovery <: SwaggerModel
    groupVersion::Any # spec type: Union{ Nothing, String } # spec name: groupVersion
    version::Any # spec type: Union{ Nothing, String } # spec name: version

    function IoK8sApimachineryPkgApisMetaV1GroupVersionForDiscovery(;groupVersion=nothing, version=nothing)
        o = new()
        validate_property(IoK8sApimachineryPkgApisMetaV1GroupVersionForDiscovery, Symbol("groupVersion"), groupVersion)
        setfield!(o, Symbol("groupVersion"), groupVersion)
        validate_property(IoK8sApimachineryPkgApisMetaV1GroupVersionForDiscovery, Symbol("version"), version)
        setfield!(o, Symbol("version"), version)
        o
    end
end # type IoK8sApimachineryPkgApisMetaV1GroupVersionForDiscovery

const _property_map_IoK8sApimachineryPkgApisMetaV1GroupVersionForDiscovery = Dict{Symbol,Symbol}(Symbol("groupVersion")=>Symbol("groupVersion"), Symbol("version")=>Symbol("version"))
const _property_types_IoK8sApimachineryPkgApisMetaV1GroupVersionForDiscovery = Dict{Symbol,String}(Symbol("groupVersion")=>"String", Symbol("version")=>"String")
Base.propertynames(::Type{ IoK8sApimachineryPkgApisMetaV1GroupVersionForDiscovery }) = collect(keys(_property_map_IoK8sApimachineryPkgApisMetaV1GroupVersionForDiscovery))
Swagger.property_type(::Type{ IoK8sApimachineryPkgApisMetaV1GroupVersionForDiscovery }, name::Symbol) = Union{Nothing,eval(Meta.parse(_property_types_IoK8sApimachineryPkgApisMetaV1GroupVersionForDiscovery[name]))}
Swagger.field_name(::Type{ IoK8sApimachineryPkgApisMetaV1GroupVersionForDiscovery }, property_name::Symbol) =  _property_map_IoK8sApimachineryPkgApisMetaV1GroupVersionForDiscovery[property_name]

function check_required(o::IoK8sApimachineryPkgApisMetaV1GroupVersionForDiscovery)
    (getproperty(o, Symbol("groupVersion")) === nothing) && (return false)
    (getproperty(o, Symbol("version")) === nothing) && (return false)
    true
end

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