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


mutable struct VirtualMachineScaleSetPublicIPAddressConfigurationProperties <: SwaggerModel
    idleTimeoutInMinutes::Any # spec type: Union{ Nothing, Int32 } # spec name: idleTimeoutInMinutes
    dnsSettings::Any # spec type: Union{ Nothing, VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings } # spec name: dnsSettings
    ipTags::Any # spec type: Union{ Nothing, Vector{VirtualMachineScaleSetIpTag} } # spec name: ipTags
    publicIPPrefix::Any # spec type: Union{ Nothing, SubResource } # spec name: publicIPPrefix
    publicIPAddressVersion::Any # spec type: Union{ Nothing, String } # spec name: publicIPAddressVersion

    function VirtualMachineScaleSetPublicIPAddressConfigurationProperties(;idleTimeoutInMinutes=nothing, dnsSettings=nothing, ipTags=nothing, publicIPPrefix=nothing, publicIPAddressVersion=nothing)
        o = new()
        validate_property(VirtualMachineScaleSetPublicIPAddressConfigurationProperties, Symbol("idleTimeoutInMinutes"), idleTimeoutInMinutes)
        setfield!(o, Symbol("idleTimeoutInMinutes"), idleTimeoutInMinutes)
        validate_property(VirtualMachineScaleSetPublicIPAddressConfigurationProperties, Symbol("dnsSettings"), dnsSettings)
        setfield!(o, Symbol("dnsSettings"), dnsSettings)
        validate_property(VirtualMachineScaleSetPublicIPAddressConfigurationProperties, Symbol("ipTags"), ipTags)
        setfield!(o, Symbol("ipTags"), ipTags)
        validate_property(VirtualMachineScaleSetPublicIPAddressConfigurationProperties, Symbol("publicIPPrefix"), publicIPPrefix)
        setfield!(o, Symbol("publicIPPrefix"), publicIPPrefix)
        validate_property(VirtualMachineScaleSetPublicIPAddressConfigurationProperties, Symbol("publicIPAddressVersion"), publicIPAddressVersion)
        setfield!(o, Symbol("publicIPAddressVersion"), publicIPAddressVersion)
        o
    end
end # type VirtualMachineScaleSetPublicIPAddressConfigurationProperties

const _property_map_VirtualMachineScaleSetPublicIPAddressConfigurationProperties = Dict{Symbol,Symbol}(Symbol("idleTimeoutInMinutes")=>Symbol("idleTimeoutInMinutes"), Symbol("dnsSettings")=>Symbol("dnsSettings"), Symbol("ipTags")=>Symbol("ipTags"), Symbol("publicIPPrefix")=>Symbol("publicIPPrefix"), Symbol("publicIPAddressVersion")=>Symbol("publicIPAddressVersion"))
const _property_types_VirtualMachineScaleSetPublicIPAddressConfigurationProperties = Dict{Symbol,String}(Symbol("idleTimeoutInMinutes")=>"Int32", Symbol("dnsSettings")=>"VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings", Symbol("ipTags")=>"Vector{VirtualMachineScaleSetIpTag}", Symbol("publicIPPrefix")=>"SubResource", Symbol("publicIPAddressVersion")=>"String")
Base.propertynames(::Type{ VirtualMachineScaleSetPublicIPAddressConfigurationProperties }) = collect(keys(_property_map_VirtualMachineScaleSetPublicIPAddressConfigurationProperties))
Swagger.property_type(::Type{ VirtualMachineScaleSetPublicIPAddressConfigurationProperties }, name::Symbol) = Union{Nothing,eval(Base.Meta.parse(_property_types_VirtualMachineScaleSetPublicIPAddressConfigurationProperties[name]))}
Swagger.field_name(::Type{ VirtualMachineScaleSetPublicIPAddressConfigurationProperties }, property_name::Symbol) =  _property_map_VirtualMachineScaleSetPublicIPAddressConfigurationProperties[property_name]

const _allowed_VirtualMachineScaleSetPublicIPAddressConfigurationProperties_publicIPAddressVersion = ["IPv4", "IPv6"]

function check_required(o::VirtualMachineScaleSetPublicIPAddressConfigurationProperties)
    true
end

function validate_property(::Type{ VirtualMachineScaleSetPublicIPAddressConfigurationProperties }, name::Symbol, val)
    if name === Symbol("publicIPAddressVersion")
        Swagger.validate_param(name, "VirtualMachineScaleSetPublicIPAddressConfigurationProperties", :enum, val, _allowed_VirtualMachineScaleSetPublicIPAddressConfigurationProperties_publicIPAddressVersion)
    end
end
