torc 0.21.0

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"""access_check_response
Response for access check

    AccessCheckResponse(;
        has_access=nothing,
        user_name=nothing,
        workflow_id=nothing,
    )

    - has_access::Bool
    - user_name::String
    - workflow_id::Int64
"""
Base.@kwdef mutable struct AccessCheckResponse <: OpenAPI.APIModel
    has_access::Union{Nothing, Bool} = nothing
    user_name::Union{Nothing, String} = nothing
    workflow_id::Union{Nothing, Int64} = nothing

    function AccessCheckResponse(has_access, user_name, workflow_id, )
        o = new(has_access, user_name, workflow_id, )
        OpenAPI.validate_properties(o)
        return o
    end
end # type AccessCheckResponse

const _property_types_AccessCheckResponse = Dict{Symbol,String}(Symbol("has_access")=>"Bool", Symbol("user_name")=>"String", Symbol("workflow_id")=>"Int64", )
OpenAPI.property_type(::Type{ AccessCheckResponse }, name::Symbol) = Union{Nothing,eval(Base.Meta.parse(_property_types_AccessCheckResponse[name]))}

function OpenAPI.check_required(o::AccessCheckResponse)
    o.has_access === nothing && (return false)
    o.user_name === nothing && (return false)
    o.workflow_id === nothing && (return false)
    true
end

function OpenAPI.validate_properties(o::AccessCheckResponse)
    OpenAPI.validate_property(AccessCheckResponse, Symbol("has_access"), o.has_access)
    OpenAPI.validate_property(AccessCheckResponse, Symbol("user_name"), o.user_name)
    OpenAPI.validate_property(AccessCheckResponse, Symbol("workflow_id"), o.workflow_id)
end

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



end