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


@doc raw"""EventSource contains information for an event.

    IoK8sApiCoreV1EventSource(;
        component=nothing,
        host=nothing,
    )

    - component::String : Component from which the event is generated.
    - host::String : Node name on which the event is generated.
"""
mutable struct IoK8sApiCoreV1EventSource <: SwaggerModel
    component::Any # spec type: Union{ Nothing, String } # spec name: component
    host::Any # spec type: Union{ Nothing, String } # spec name: host

    function IoK8sApiCoreV1EventSource(;component=nothing, host=nothing)
        o = new()
        validate_property(IoK8sApiCoreV1EventSource, Symbol("component"), component)
        setfield!(o, Symbol("component"), component)
        validate_property(IoK8sApiCoreV1EventSource, Symbol("host"), host)
        setfield!(o, Symbol("host"), host)
        o
    end
end # type IoK8sApiCoreV1EventSource

const _property_map_IoK8sApiCoreV1EventSource = Dict{Symbol,Symbol}(Symbol("component")=>Symbol("component"), Symbol("host")=>Symbol("host"))
const _property_types_IoK8sApiCoreV1EventSource = Dict{Symbol,String}(Symbol("component")=>"String", Symbol("host")=>"String")
Base.propertynames(::Type{ IoK8sApiCoreV1EventSource }) = collect(keys(_property_map_IoK8sApiCoreV1EventSource))
Swagger.property_type(::Type{ IoK8sApiCoreV1EventSource }, name::Symbol) = Union{Nothing,eval(Base.Meta.parse(_property_types_IoK8sApiCoreV1EventSource[name]))}
Swagger.field_name(::Type{ IoK8sApiCoreV1EventSource }, property_name::Symbol) =  _property_map_IoK8sApiCoreV1EventSource[property_name]

function check_required(o::IoK8sApiCoreV1EventSource)
    true
end

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