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


mutable struct OnErrorDeploymentExtended <: SwaggerModel
    provisioningState::Any # spec type: Union{ Nothing, String } # spec name: provisioningState
    type::Any # spec type: Union{ Nothing, String } # spec name: type
    deploymentName::Any # spec type: Union{ Nothing, String } # spec name: deploymentName

    function OnErrorDeploymentExtended(;provisioningState=nothing, type=nothing, deploymentName=nothing)
        o = new()
        validate_property(OnErrorDeploymentExtended, Symbol("provisioningState"), provisioningState)
        setfield!(o, Symbol("provisioningState"), provisioningState)
        validate_property(OnErrorDeploymentExtended, Symbol("type"), type)
        setfield!(o, Symbol("type"), type)
        validate_property(OnErrorDeploymentExtended, Symbol("deploymentName"), deploymentName)
        setfield!(o, Symbol("deploymentName"), deploymentName)
        o
    end
end # type OnErrorDeploymentExtended

const _property_map_OnErrorDeploymentExtended = Dict{Symbol,Symbol}(Symbol("provisioningState")=>Symbol("provisioningState"), Symbol("type")=>Symbol("type"), Symbol("deploymentName")=>Symbol("deploymentName"))
const _property_types_OnErrorDeploymentExtended = Dict{Symbol,String}(Symbol("provisioningState")=>"String", Symbol("type")=>"String", Symbol("deploymentName")=>"String")
Base.propertynames(::Type{ OnErrorDeploymentExtended }) = collect(keys(_property_map_OnErrorDeploymentExtended))
Swagger.property_type(::Type{ OnErrorDeploymentExtended }, name::Symbol) = Union{Nothing,eval(Base.Meta.parse(_property_types_OnErrorDeploymentExtended[name]))}
Swagger.field_name(::Type{ OnErrorDeploymentExtended }, property_name::Symbol) =  _property_map_OnErrorDeploymentExtended[property_name]

const _allowed_OnErrorDeploymentExtended_type = ["LastSuccessful", "SpecificDeployment"]

function check_required(o::OnErrorDeploymentExtended)
    true
end

function validate_property(::Type{ OnErrorDeploymentExtended }, name::Symbol, val)
    if name === Symbol("type")
        Swagger.validate_param(name, "OnErrorDeploymentExtended", :enum, val, _allowed_OnErrorDeploymentExtended_type)
    end
end
