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


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

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

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

const _allowed_EncryptionIdentity_type = ["SystemAssigned"]

function check_required(o::EncryptionIdentity)
    true
end

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