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



mutable struct NetworkInterfaceAssociation <: SwaggerModel
    id::Any # spec type: Union{ Nothing, String } # spec name: id
    securityRules::Any # spec type: Union{ Nothing, Vector{SecurityRule} } # spec name: securityRules

    function NetworkInterfaceAssociation(;id=nothing, securityRules=nothing)
        o = new()
        validate_property(NetworkInterfaceAssociation, Symbol("id"), id)
        setfield!(o, Symbol("id"), id)
        validate_property(NetworkInterfaceAssociation, Symbol("securityRules"), securityRules)
        setfield!(o, Symbol("securityRules"), securityRules)
        o
    end
end # type NetworkInterfaceAssociation

const _property_map_NetworkInterfaceAssociation = Dict{Symbol,Symbol}(Symbol("id")=>Symbol("id"), Symbol("securityRules")=>Symbol("securityRules"))
const _property_types_NetworkInterfaceAssociation = Dict{Symbol,String}(Symbol("id")=>"String", Symbol("securityRules")=>"Vector{SecurityRule}")
Base.propertynames(::Type{ NetworkInterfaceAssociation }) = collect(keys(_property_map_NetworkInterfaceAssociation))
Swagger.property_type(::Type{ NetworkInterfaceAssociation }, name::Symbol) = Union{Nothing,eval(Meta.parse(_property_types_NetworkInterfaceAssociation[name]))}
Swagger.field_name(::Type{ NetworkInterfaceAssociation }, property_name::Symbol) =  _property_map_NetworkInterfaceAssociation[property_name]

function check_required(o::NetworkInterfaceAssociation)
    true
end

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