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


mutable struct NetworkInterfacePropertiesFormat2 <: SwaggerModel
    virtualMachine::Any # spec type: Union{ Nothing, SubResource } # spec name: virtualMachine
    networkSecurityGroup::Any # spec type: Union{ Nothing, NetworkSecurityGroup } # spec name: networkSecurityGroup
    privateEndpoint::Any # spec type: Union{ Nothing, PrivateEndpoint } # spec name: privateEndpoint
    ipConfigurations::Any # spec type: Union{ Nothing, Vector{NetworkInterfaceIPConfiguration2} } # spec name: ipConfigurations
    tapConfigurations::Any # spec type: Union{ Nothing, Vector{NetworkInterfaceTapConfiguration2} } # spec name: tapConfigurations
    dnsSettings::Any # spec type: Union{ Nothing, NetworkInterfaceDnsSettings2 } # spec name: dnsSettings
    macAddress::Any # spec type: Union{ Nothing, String } # spec name: macAddress
    primary::Any # spec type: Union{ Nothing, Bool } # spec name: primary
    enableAcceleratedNetworking::Any # spec type: Union{ Nothing, Bool } # spec name: enableAcceleratedNetworking
    enableIPForwarding::Any # spec type: Union{ Nothing, Bool } # spec name: enableIPForwarding
    hostedWorkloads::Any # spec type: Union{ Nothing, Vector{String} } # spec name: hostedWorkloads
    resourceGuid::Any # spec type: Union{ Nothing, String } # spec name: resourceGuid
    provisioningState::Any # spec type: Union{ Nothing, ProvisioningState } # spec name: provisioningState

    function NetworkInterfacePropertiesFormat2(;virtualMachine=nothing, networkSecurityGroup=nothing, privateEndpoint=nothing, ipConfigurations=nothing, tapConfigurations=nothing, dnsSettings=nothing, macAddress=nothing, primary=nothing, enableAcceleratedNetworking=nothing, enableIPForwarding=nothing, hostedWorkloads=nothing, resourceGuid=nothing, provisioningState=nothing)
        o = new()
        validate_property(NetworkInterfacePropertiesFormat2, Symbol("virtualMachine"), virtualMachine)
        setfield!(o, Symbol("virtualMachine"), virtualMachine)
        validate_property(NetworkInterfacePropertiesFormat2, Symbol("networkSecurityGroup"), networkSecurityGroup)
        setfield!(o, Symbol("networkSecurityGroup"), networkSecurityGroup)
        validate_property(NetworkInterfacePropertiesFormat2, Symbol("privateEndpoint"), privateEndpoint)
        setfield!(o, Symbol("privateEndpoint"), privateEndpoint)
        validate_property(NetworkInterfacePropertiesFormat2, Symbol("ipConfigurations"), ipConfigurations)
        setfield!(o, Symbol("ipConfigurations"), ipConfigurations)
        validate_property(NetworkInterfacePropertiesFormat2, Symbol("tapConfigurations"), tapConfigurations)
        setfield!(o, Symbol("tapConfigurations"), tapConfigurations)
        validate_property(NetworkInterfacePropertiesFormat2, Symbol("dnsSettings"), dnsSettings)
        setfield!(o, Symbol("dnsSettings"), dnsSettings)
        validate_property(NetworkInterfacePropertiesFormat2, Symbol("macAddress"), macAddress)
        setfield!(o, Symbol("macAddress"), macAddress)
        validate_property(NetworkInterfacePropertiesFormat2, Symbol("primary"), primary)
        setfield!(o, Symbol("primary"), primary)
        validate_property(NetworkInterfacePropertiesFormat2, Symbol("enableAcceleratedNetworking"), enableAcceleratedNetworking)
        setfield!(o, Symbol("enableAcceleratedNetworking"), enableAcceleratedNetworking)
        validate_property(NetworkInterfacePropertiesFormat2, Symbol("enableIPForwarding"), enableIPForwarding)
        setfield!(o, Symbol("enableIPForwarding"), enableIPForwarding)
        validate_property(NetworkInterfacePropertiesFormat2, Symbol("hostedWorkloads"), hostedWorkloads)
        setfield!(o, Symbol("hostedWorkloads"), hostedWorkloads)
        validate_property(NetworkInterfacePropertiesFormat2, Symbol("resourceGuid"), resourceGuid)
        setfield!(o, Symbol("resourceGuid"), resourceGuid)
        validate_property(NetworkInterfacePropertiesFormat2, Symbol("provisioningState"), provisioningState)
        setfield!(o, Symbol("provisioningState"), provisioningState)
        o
    end
end # type NetworkInterfacePropertiesFormat2

const _property_map_NetworkInterfacePropertiesFormat2 = Dict{Symbol,Symbol}(Symbol("virtualMachine")=>Symbol("virtualMachine"), Symbol("networkSecurityGroup")=>Symbol("networkSecurityGroup"), Symbol("privateEndpoint")=>Symbol("privateEndpoint"), Symbol("ipConfigurations")=>Symbol("ipConfigurations"), Symbol("tapConfigurations")=>Symbol("tapConfigurations"), Symbol("dnsSettings")=>Symbol("dnsSettings"), Symbol("macAddress")=>Symbol("macAddress"), Symbol("primary")=>Symbol("primary"), Symbol("enableAcceleratedNetworking")=>Symbol("enableAcceleratedNetworking"), Symbol("enableIPForwarding")=>Symbol("enableIPForwarding"), Symbol("hostedWorkloads")=>Symbol("hostedWorkloads"), Symbol("resourceGuid")=>Symbol("resourceGuid"), Symbol("provisioningState")=>Symbol("provisioningState"))
const _property_types_NetworkInterfacePropertiesFormat2 = Dict{Symbol,String}(Symbol("virtualMachine")=>"SubResource", Symbol("networkSecurityGroup")=>"NetworkSecurityGroup", Symbol("privateEndpoint")=>"PrivateEndpoint", Symbol("ipConfigurations")=>"Vector{NetworkInterfaceIPConfiguration2}", Symbol("tapConfigurations")=>"Vector{NetworkInterfaceTapConfiguration2}", Symbol("dnsSettings")=>"NetworkInterfaceDnsSettings2", Symbol("macAddress")=>"String", Symbol("primary")=>"Bool", Symbol("enableAcceleratedNetworking")=>"Bool", Symbol("enableIPForwarding")=>"Bool", Symbol("hostedWorkloads")=>"Vector{String}", Symbol("resourceGuid")=>"String", Symbol("provisioningState")=>"ProvisioningState")
Base.propertynames(::Type{ NetworkInterfacePropertiesFormat2 }) = collect(keys(_property_map_NetworkInterfacePropertiesFormat2))
Swagger.property_type(::Type{ NetworkInterfacePropertiesFormat2 }, name::Symbol) = Union{Nothing,eval(Base.Meta.parse(_property_types_NetworkInterfacePropertiesFormat2[name]))}
Swagger.field_name(::Type{ NetworkInterfacePropertiesFormat2 }, property_name::Symbol) =  _property_map_NetworkInterfacePropertiesFormat2[property_name]

function check_required(o::NetworkInterfacePropertiesFormat2)
    true
end

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