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


mutable struct CreateFirewallRuleWithAccountParameters <: SwaggerModel
    name::Any # spec type: Union{ Nothing, String } # spec name: name
    properties::Any # spec type: Union{ Nothing, CreateOrUpdateFirewallRuleProperties } # spec name: properties

    function CreateFirewallRuleWithAccountParameters(;name=nothing, properties=nothing)
        o = new()
        validate_property(CreateFirewallRuleWithAccountParameters, Symbol("name"), name)
        setfield!(o, Symbol("name"), name)
        validate_property(CreateFirewallRuleWithAccountParameters, Symbol("properties"), properties)
        setfield!(o, Symbol("properties"), properties)
        o
    end
end # type CreateFirewallRuleWithAccountParameters

const _property_map_CreateFirewallRuleWithAccountParameters = Dict{Symbol,Symbol}(Symbol("name")=>Symbol("name"), Symbol("properties")=>Symbol("properties"))
const _property_types_CreateFirewallRuleWithAccountParameters = Dict{Symbol,String}(Symbol("name")=>"String", Symbol("properties")=>"CreateOrUpdateFirewallRuleProperties")
Base.propertynames(::Type{ CreateFirewallRuleWithAccountParameters }) = collect(keys(_property_map_CreateFirewallRuleWithAccountParameters))
Swagger.property_type(::Type{ CreateFirewallRuleWithAccountParameters }, name::Symbol) = Union{Nothing,eval(Base.Meta.parse(_property_types_CreateFirewallRuleWithAccountParameters[name]))}
Swagger.field_name(::Type{ CreateFirewallRuleWithAccountParameters }, property_name::Symbol) =  _property_map_CreateFirewallRuleWithAccountParameters[property_name]

function check_required(o::CreateFirewallRuleWithAccountParameters)
    (getproperty(o, Symbol("name")) === nothing) && (return false)
    (getproperty(o, Symbol("properties")) === nothing) && (return false)
    true
end

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