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


mutable struct UpgradeOperationHistoricalStatusInfo <: SwaggerModel
    properties::Any # spec type: Union{ Nothing, UpgradeOperationHistoricalStatusInfoProperties } # spec name: properties
    type::Any # spec type: Union{ Nothing, String } # spec name: type
    location::Any # spec type: Union{ Nothing, String } # spec name: location

    function UpgradeOperationHistoricalStatusInfo(;properties=nothing, type=nothing, location=nothing)
        o = new()
        validate_property(UpgradeOperationHistoricalStatusInfo, Symbol("properties"), properties)
        setfield!(o, Symbol("properties"), properties)
        validate_property(UpgradeOperationHistoricalStatusInfo, Symbol("type"), type)
        setfield!(o, Symbol("type"), type)
        validate_property(UpgradeOperationHistoricalStatusInfo, Symbol("location"), location)
        setfield!(o, Symbol("location"), location)
        o
    end
end # type UpgradeOperationHistoricalStatusInfo

const _property_map_UpgradeOperationHistoricalStatusInfo = Dict{Symbol,Symbol}(Symbol("properties")=>Symbol("properties"), Symbol("type")=>Symbol("type"), Symbol("location")=>Symbol("location"))
const _property_types_UpgradeOperationHistoricalStatusInfo = Dict{Symbol,String}(Symbol("properties")=>"UpgradeOperationHistoricalStatusInfoProperties", Symbol("type")=>"String", Symbol("location")=>"String")
Base.propertynames(::Type{ UpgradeOperationHistoricalStatusInfo }) = collect(keys(_property_map_UpgradeOperationHistoricalStatusInfo))
Swagger.property_type(::Type{ UpgradeOperationHistoricalStatusInfo }, name::Symbol) = Union{Nothing,eval(Base.Meta.parse(_property_types_UpgradeOperationHistoricalStatusInfo[name]))}
Swagger.field_name(::Type{ UpgradeOperationHistoricalStatusInfo }, property_name::Symbol) =  _property_map_UpgradeOperationHistoricalStatusInfo[property_name]

function check_required(o::UpgradeOperationHistoricalStatusInfo)
    true
end

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