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



mutable struct VirtualNetworkPropertiesFormat <: SwaggerModel
    addressSpace::Any # spec type: Union{ Nothing, AddressSpace } # spec name: addressSpace
    dhcpOptions::Any # spec type: Union{ Nothing, DhcpOptions } # spec name: dhcpOptions
    subnets::Any # spec type: Union{ Nothing, Vector{Subnet} } # spec name: subnets
    virtualNetworkPeerings::Any # spec type: Union{ Nothing, Vector{VirtualNetworkPeering} } # spec name: virtualNetworkPeerings
    resourceGuid::Any # spec type: Union{ Nothing, String } # spec name: resourceGuid
    provisioningState::Any # spec type: Union{ Nothing, String } # spec name: provisioningState

    function VirtualNetworkPropertiesFormat(;addressSpace=nothing, dhcpOptions=nothing, subnets=nothing, virtualNetworkPeerings=nothing, resourceGuid=nothing, provisioningState=nothing)
        o = new()
        validate_property(VirtualNetworkPropertiesFormat, Symbol("addressSpace"), addressSpace)
        setfield!(o, Symbol("addressSpace"), addressSpace)
        validate_property(VirtualNetworkPropertiesFormat, Symbol("dhcpOptions"), dhcpOptions)
        setfield!(o, Symbol("dhcpOptions"), dhcpOptions)
        validate_property(VirtualNetworkPropertiesFormat, Symbol("subnets"), subnets)
        setfield!(o, Symbol("subnets"), subnets)
        validate_property(VirtualNetworkPropertiesFormat, Symbol("virtualNetworkPeerings"), virtualNetworkPeerings)
        setfield!(o, Symbol("virtualNetworkPeerings"), virtualNetworkPeerings)
        validate_property(VirtualNetworkPropertiesFormat, Symbol("resourceGuid"), resourceGuid)
        setfield!(o, Symbol("resourceGuid"), resourceGuid)
        validate_property(VirtualNetworkPropertiesFormat, Symbol("provisioningState"), provisioningState)
        setfield!(o, Symbol("provisioningState"), provisioningState)
        o
    end
end # type VirtualNetworkPropertiesFormat

const _property_map_VirtualNetworkPropertiesFormat = Dict{Symbol,Symbol}(Symbol("addressSpace")=>Symbol("addressSpace"), Symbol("dhcpOptions")=>Symbol("dhcpOptions"), Symbol("subnets")=>Symbol("subnets"), Symbol("virtualNetworkPeerings")=>Symbol("virtualNetworkPeerings"), Symbol("resourceGuid")=>Symbol("resourceGuid"), Symbol("provisioningState")=>Symbol("provisioningState"))
const _property_types_VirtualNetworkPropertiesFormat = Dict{Symbol,String}(Symbol("addressSpace")=>"AddressSpace", Symbol("dhcpOptions")=>"DhcpOptions", Symbol("subnets")=>"Vector{Subnet}", Symbol("virtualNetworkPeerings")=>"Vector{VirtualNetworkPeering}", Symbol("resourceGuid")=>"String", Symbol("provisioningState")=>"String")
Base.propertynames(::Type{ VirtualNetworkPropertiesFormat }) = collect(keys(_property_map_VirtualNetworkPropertiesFormat))
Swagger.property_type(::Type{ VirtualNetworkPropertiesFormat }, name::Symbol) = Union{Nothing,eval(Meta.parse(_property_types_VirtualNetworkPropertiesFormat[name]))}
Swagger.field_name(::Type{ VirtualNetworkPropertiesFormat }, property_name::Symbol) =  _property_map_VirtualNetworkPropertiesFormat[property_name]

function check_required(o::VirtualNetworkPropertiesFormat)
    true
end

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