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



mutable struct VirtualMachineScaleSetIdentity <: SwaggerModel
    principalId::Any # spec type: Union{ Nothing, String } # spec name: principalId
    tenantId::Any # spec type: Union{ Nothing, String } # spec name: tenantId
    type::Any # spec type: Union{ Nothing, String } # spec name: type

    function VirtualMachineScaleSetIdentity(;principalId=nothing, tenantId=nothing, type=nothing)
        o = new()
        validate_property(VirtualMachineScaleSetIdentity, Symbol("principalId"), principalId)
        setfield!(o, Symbol("principalId"), principalId)
        validate_property(VirtualMachineScaleSetIdentity, Symbol("tenantId"), tenantId)
        setfield!(o, Symbol("tenantId"), tenantId)
        validate_property(VirtualMachineScaleSetIdentity, Symbol("type"), type)
        setfield!(o, Symbol("type"), type)
        o
    end
end # type VirtualMachineScaleSetIdentity

const _property_map_VirtualMachineScaleSetIdentity = Dict{Symbol,Symbol}(Symbol("principalId")=>Symbol("principalId"), Symbol("tenantId")=>Symbol("tenantId"), Symbol("type")=>Symbol("type"))
const _property_types_VirtualMachineScaleSetIdentity = Dict{Symbol,String}(Symbol("principalId")=>"String", Symbol("tenantId")=>"String", Symbol("type")=>"String")
Base.propertynames(::Type{ VirtualMachineScaleSetIdentity }) = collect(keys(_property_map_VirtualMachineScaleSetIdentity))
Swagger.property_type(::Type{ VirtualMachineScaleSetIdentity }, name::Symbol) = Union{Nothing,eval(Meta.parse(_property_types_VirtualMachineScaleSetIdentity[name]))}
Swagger.field_name(::Type{ VirtualMachineScaleSetIdentity }, property_name::Symbol) =  _property_map_VirtualMachineScaleSetIdentity[property_name]

const _allowed_VirtualMachineScaleSetIdentity_type = ["SystemAssigned"]

function check_required(o::VirtualMachineScaleSetIdentity)
    true
end

function validate_property(::Type{ VirtualMachineScaleSetIdentity }, name::Symbol, val)
    if name === Symbol("type")
        Swagger.validate_param(name, "VirtualMachineScaleSetIdentity", :enum, val, _allowed_VirtualMachineScaleSetIdentity_type)
    end
end
