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



mutable struct EffectiveNetworkSecurityGroup <: SwaggerModel
    networkSecurityGroup::Any # spec type: Union{ Nothing, SubResource } # spec name: networkSecurityGroup
    association::Any # spec type: Union{ Nothing, EffectiveNetworkSecurityGroupAssociation } # spec name: association
    effectiveSecurityRules::Any # spec type: Union{ Nothing, Vector{EffectiveNetworkSecurityRule} } # spec name: effectiveSecurityRules

    function EffectiveNetworkSecurityGroup(;networkSecurityGroup=nothing, association=nothing, effectiveSecurityRules=nothing)
        o = new()
        validate_property(EffectiveNetworkSecurityGroup, Symbol("networkSecurityGroup"), networkSecurityGroup)
        setfield!(o, Symbol("networkSecurityGroup"), networkSecurityGroup)
        validate_property(EffectiveNetworkSecurityGroup, Symbol("association"), association)
        setfield!(o, Symbol("association"), association)
        validate_property(EffectiveNetworkSecurityGroup, Symbol("effectiveSecurityRules"), effectiveSecurityRules)
        setfield!(o, Symbol("effectiveSecurityRules"), effectiveSecurityRules)
        o
    end
end # type EffectiveNetworkSecurityGroup

const _property_map_EffectiveNetworkSecurityGroup = Dict{Symbol,Symbol}(Symbol("networkSecurityGroup")=>Symbol("networkSecurityGroup"), Symbol("association")=>Symbol("association"), Symbol("effectiveSecurityRules")=>Symbol("effectiveSecurityRules"))
const _property_types_EffectiveNetworkSecurityGroup = Dict{Symbol,String}(Symbol("networkSecurityGroup")=>"SubResource", Symbol("association")=>"EffectiveNetworkSecurityGroupAssociation", Symbol("effectiveSecurityRules")=>"Vector{EffectiveNetworkSecurityRule}")
Base.propertynames(::Type{ EffectiveNetworkSecurityGroup }) = collect(keys(_property_map_EffectiveNetworkSecurityGroup))
Swagger.property_type(::Type{ EffectiveNetworkSecurityGroup }, name::Symbol) = Union{Nothing,eval(Meta.parse(_property_types_EffectiveNetworkSecurityGroup[name]))}
Swagger.field_name(::Type{ EffectiveNetworkSecurityGroup }, property_name::Symbol) =  _property_map_EffectiveNetworkSecurityGroup[property_name]

function check_required(o::EffectiveNetworkSecurityGroup)
    true
end

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