azext_iot/sdk/digitaltwins/controlplane/models/user_assigned_identity_py3.py (14 lines of code) (raw):

# 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 class UserAssignedIdentity(Model): """The information about the user assigned identity. Variables are only populated by the server, and will be ignored when sending a request. :ivar client_id: The client id of the User Assigned Identity Resource. :vartype client_id: str :ivar principal_id: The object id of the User Assigned Identity Resource. :vartype principal_id: str """ _validation = { 'client_id': {'readonly': True}, 'principal_id': {'readonly': True}, } _attribute_map = { 'client_id': {'key': 'clientId', 'type': 'str'}, 'principal_id': {'key': 'principalId', 'type': 'str'}, } def __init__(self, **kwargs) -> None: super(UserAssignedIdentity, self).__init__(**kwargs) self.client_id = None self.principal_id = None