torc 0.20.7

Workflow management system
# This file was generated by the Julia OpenAPI Code Generator
# Do not modify this file directly. Modify the OpenAPI specification instead.


@doc raw"""claim_action_request

    ClaimActionRequest(;
        compute_node_id=nothing,
    )

    - compute_node_id::Int64 : ID of the compute node claiming the action
"""
Base.@kwdef mutable struct ClaimActionRequest <: OpenAPI.APIModel
    compute_node_id::Union{Nothing, Int64} = nothing

    function ClaimActionRequest(compute_node_id, )
        o = new(compute_node_id, )
        OpenAPI.validate_properties(o)
        return o
    end
end # type ClaimActionRequest

const _property_types_ClaimActionRequest = Dict{Symbol,String}(Symbol("compute_node_id")=>"Int64", )
OpenAPI.property_type(::Type{ ClaimActionRequest }, name::Symbol) = Union{Nothing,eval(Base.Meta.parse(_property_types_ClaimActionRequest[name]))}

function OpenAPI.check_required(o::ClaimActionRequest)
    o.compute_node_id === nothing && (return false)
    true
end

function OpenAPI.validate_properties(o::ClaimActionRequest)
    OpenAPI.validate_property(ClaimActionRequest, Symbol("compute_node_id"), o.compute_node_id)
end

function OpenAPI.validate_property(::Type{ ClaimActionRequest }, name::Symbol, val)

end