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


mutable struct OrchestrationServiceSummary <: SwaggerModel
    serviceName::Any # spec type: Union{ Nothing, String } # spec name: serviceName
    serviceState::Any # spec type: Union{ Nothing, String } # spec name: serviceState

    function OrchestrationServiceSummary(;serviceName=nothing, serviceState=nothing)
        o = new()
        validate_property(OrchestrationServiceSummary, Symbol("serviceName"), serviceName)
        setfield!(o, Symbol("serviceName"), serviceName)
        validate_property(OrchestrationServiceSummary, Symbol("serviceState"), serviceState)
        setfield!(o, Symbol("serviceState"), serviceState)
        o
    end
end # type OrchestrationServiceSummary

const _property_map_OrchestrationServiceSummary = Dict{Symbol,Symbol}(Symbol("serviceName")=>Symbol("serviceName"), Symbol("serviceState")=>Symbol("serviceState"))
const _property_types_OrchestrationServiceSummary = Dict{Symbol,String}(Symbol("serviceName")=>"String", Symbol("serviceState")=>"String")
Base.propertynames(::Type{ OrchestrationServiceSummary }) = collect(keys(_property_map_OrchestrationServiceSummary))
Swagger.property_type(::Type{ OrchestrationServiceSummary }, name::Symbol) = Union{Nothing,eval(Base.Meta.parse(_property_types_OrchestrationServiceSummary[name]))}
Swagger.field_name(::Type{ OrchestrationServiceSummary }, property_name::Symbol) =  _property_map_OrchestrationServiceSummary[property_name]

const _allowed_OrchestrationServiceSummary_serviceName = ["AutomaticRepairs"]

const _allowed_OrchestrationServiceSummary_serviceState = ["NotRunning", "Running", "Suspended"]

function check_required(o::OrchestrationServiceSummary)
    true
end

function validate_property(::Type{ OrchestrationServiceSummary }, name::Symbol, val)
    if name === Symbol("serviceName")
        Swagger.validate_param(name, "OrchestrationServiceSummary", :enum, val, _allowed_OrchestrationServiceSummary_serviceName)
    end
    if name === Symbol("serviceState")
        Swagger.validate_param(name, "OrchestrationServiceSummary", :enum, val, _allowed_OrchestrationServiceSummary_serviceState)
    end
end
