Source code for azure.mgmt.devtestlabs.models.user_identity_fragment

# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------

from msrest.serialization import Model


[docs]class UserIdentityFragment(Model): """Identity attributes of a lab user. :param principal_name: Set to the principal name / UPN of the client JWT making the request. :type principal_name: str :param principal_id: Set to the principal Id of the client JWT making the request. Service principal will not have the principal Id. :type principal_id: str :param tenant_id: Set to the tenant ID of the client JWT making the request. :type tenant_id: str :param object_id: Set to the object Id of the client JWT making the request. Not all users have object Id. For CSP (reseller) scenarios for example, object Id is not available. :type object_id: str :param app_id: Set to the app Id of the client JWT making the request. :type app_id: str """ _attribute_map = { 'principal_name': {'key': 'principalName', 'type': 'str'}, 'principal_id': {'key': 'principalId', 'type': 'str'}, 'tenant_id': {'key': 'tenantId', 'type': 'str'}, 'object_id': {'key': 'objectId', 'type': 'str'}, 'app_id': {'key': 'appId', 'type': 'str'}, } def __init__(self, principal_name=None, principal_id=None, tenant_id=None, object_id=None, app_id=None): super(UserIdentityFragment, self).__init__() self.principal_name = principal_name self.principal_id = principal_id self.tenant_id = tenant_id self.object_id = object_id self.app_id = app_id