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


mutable struct ServiceAssociationLinkPropertiesFormat <: SwaggerModel
    linkedResourceType::Any # spec type: Union{ Nothing, String } # spec name: linkedResourceType
    link::Any # spec type: Union{ Nothing, String } # spec name: link
    provisioningState::Any # spec type: Union{ Nothing, ProvisioningState } # spec name: provisioningState
    allowDelete::Any # spec type: Union{ Nothing, Bool } # spec name: allowDelete
    locations::Any # spec type: Union{ Nothing, Vector{String} } # spec name: locations

    function ServiceAssociationLinkPropertiesFormat(;linkedResourceType=nothing, link=nothing, provisioningState=nothing, allowDelete=nothing, locations=nothing)
        o = new()
        validate_property(ServiceAssociationLinkPropertiesFormat, Symbol("linkedResourceType"), linkedResourceType)
        setfield!(o, Symbol("linkedResourceType"), linkedResourceType)
        validate_property(ServiceAssociationLinkPropertiesFormat, Symbol("link"), link)
        setfield!(o, Symbol("link"), link)
        validate_property(ServiceAssociationLinkPropertiesFormat, Symbol("provisioningState"), provisioningState)
        setfield!(o, Symbol("provisioningState"), provisioningState)
        validate_property(ServiceAssociationLinkPropertiesFormat, Symbol("allowDelete"), allowDelete)
        setfield!(o, Symbol("allowDelete"), allowDelete)
        validate_property(ServiceAssociationLinkPropertiesFormat, Symbol("locations"), locations)
        setfield!(o, Symbol("locations"), locations)
        o
    end
end # type ServiceAssociationLinkPropertiesFormat

const _property_map_ServiceAssociationLinkPropertiesFormat = Dict{Symbol,Symbol}(Symbol("linkedResourceType")=>Symbol("linkedResourceType"), Symbol("link")=>Symbol("link"), Symbol("provisioningState")=>Symbol("provisioningState"), Symbol("allowDelete")=>Symbol("allowDelete"), Symbol("locations")=>Symbol("locations"))
const _property_types_ServiceAssociationLinkPropertiesFormat = Dict{Symbol,String}(Symbol("linkedResourceType")=>"String", Symbol("link")=>"String", Symbol("provisioningState")=>"ProvisioningState", Symbol("allowDelete")=>"Bool", Symbol("locations")=>"Vector{String}")
Base.propertynames(::Type{ ServiceAssociationLinkPropertiesFormat }) = collect(keys(_property_map_ServiceAssociationLinkPropertiesFormat))
Swagger.property_type(::Type{ ServiceAssociationLinkPropertiesFormat }, name::Symbol) = Union{Nothing,eval(Base.Meta.parse(_property_types_ServiceAssociationLinkPropertiesFormat[name]))}
Swagger.field_name(::Type{ ServiceAssociationLinkPropertiesFormat }, property_name::Symbol) =  _property_map_ServiceAssociationLinkPropertiesFormat[property_name]

function check_required(o::ServiceAssociationLinkPropertiesFormat)
    true
end

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