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


mutable struct IoK8sApiAppsV1DeploymentStrategy <: SwaggerModel
    rollingUpdate::Any # spec type: Union{ Nothing, IoK8sApiAppsV1RollingUpdateDeployment } # spec name: rollingUpdate
    type::Any # spec type: Union{ Nothing, String } # spec name: type

    function IoK8sApiAppsV1DeploymentStrategy(;rollingUpdate=nothing, type=nothing)
        o = new()
        validate_property(IoK8sApiAppsV1DeploymentStrategy, Symbol("rollingUpdate"), rollingUpdate)
        setfield!(o, Symbol("rollingUpdate"), rollingUpdate)
        validate_property(IoK8sApiAppsV1DeploymentStrategy, Symbol("type"), type)
        setfield!(o, Symbol("type"), type)
        o
    end
end # type IoK8sApiAppsV1DeploymentStrategy

const _property_map_IoK8sApiAppsV1DeploymentStrategy = Dict{Symbol,Symbol}(Symbol("rollingUpdate")=>Symbol("rollingUpdate"), Symbol("type")=>Symbol("type"))
const _property_types_IoK8sApiAppsV1DeploymentStrategy = Dict{Symbol,String}(Symbol("rollingUpdate")=>"IoK8sApiAppsV1RollingUpdateDeployment", Symbol("type")=>"String")
Base.propertynames(::Type{ IoK8sApiAppsV1DeploymentStrategy }) = collect(keys(_property_map_IoK8sApiAppsV1DeploymentStrategy))
Swagger.property_type(::Type{ IoK8sApiAppsV1DeploymentStrategy }, name::Symbol) = Union{Nothing,eval(Base.Meta.parse(_property_types_IoK8sApiAppsV1DeploymentStrategy[name]))}
Swagger.field_name(::Type{ IoK8sApiAppsV1DeploymentStrategy }, property_name::Symbol) =  _property_map_IoK8sApiAppsV1DeploymentStrategy[property_name]

function check_required(o::IoK8sApiAppsV1DeploymentStrategy)
    true
end

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