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


mutable struct IoK8sApiCoreV1ObjectFieldSelector <: SwaggerModel
    apiVersion::Any # spec type: Union{ Nothing, String } # spec name: apiVersion
    fieldPath::Any # spec type: Union{ Nothing, String } # spec name: fieldPath

    function IoK8sApiCoreV1ObjectFieldSelector(;apiVersion=nothing, fieldPath=nothing)
        o = new()
        validate_property(IoK8sApiCoreV1ObjectFieldSelector, Symbol("apiVersion"), apiVersion)
        setfield!(o, Symbol("apiVersion"), apiVersion)
        validate_property(IoK8sApiCoreV1ObjectFieldSelector, Symbol("fieldPath"), fieldPath)
        setfield!(o, Symbol("fieldPath"), fieldPath)
        o
    end
end # type IoK8sApiCoreV1ObjectFieldSelector

const _property_map_IoK8sApiCoreV1ObjectFieldSelector = Dict{Symbol,Symbol}(Symbol("apiVersion")=>Symbol("apiVersion"), Symbol("fieldPath")=>Symbol("fieldPath"))
const _property_types_IoK8sApiCoreV1ObjectFieldSelector = Dict{Symbol,String}(Symbol("apiVersion")=>"String", Symbol("fieldPath")=>"String")
Base.propertynames(::Type{ IoK8sApiCoreV1ObjectFieldSelector }) = collect(keys(_property_map_IoK8sApiCoreV1ObjectFieldSelector))
Swagger.property_type(::Type{ IoK8sApiCoreV1ObjectFieldSelector }, name::Symbol) = Union{Nothing,eval(Base.Meta.parse(_property_types_IoK8sApiCoreV1ObjectFieldSelector[name]))}
Swagger.field_name(::Type{ IoK8sApiCoreV1ObjectFieldSelector }, property_name::Symbol) =  _property_map_IoK8sApiCoreV1ObjectFieldSelector[property_name]

function check_required(o::IoK8sApiCoreV1ObjectFieldSelector)
    (getproperty(o, Symbol("fieldPath")) === nothing) && (return false)
    true
end

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