|
| 1 | +# coding=utf-8 |
| 2 | +# -------------------------------------------------------------------------- |
| 3 | +# Copyright (c) Microsoft Corporation. All rights reserved. |
| 4 | +# Licensed under the MIT License. See License.txt in the project root for |
| 5 | +# license information. |
| 6 | +# |
| 7 | +# Code generated by Microsoft (R) AutoRest Code Generator. |
| 8 | +# Changes may cause incorrect behavior and will be lost if the code is |
| 9 | +# regenerated. |
| 10 | +# -------------------------------------------------------------------------- |
| 11 | + |
| 12 | +from msrest.serialization import Model |
| 13 | + |
| 14 | + |
| 15 | +class ContainerGroupIdentity(Model): |
| 16 | + """Identity for the container group. |
| 17 | +
|
| 18 | + Variables are only populated by the server, and will be ignored when |
| 19 | + sending a request. |
| 20 | +
|
| 21 | + :ivar principal_id: The principal id of the container group identity. This |
| 22 | + property will only be provided for a system assigned identity. |
| 23 | + :vartype principal_id: str |
| 24 | + :ivar tenant_id: The tenant id associated with the container group. This |
| 25 | + property will only be provided for a system assigned identity. |
| 26 | + :vartype tenant_id: str |
| 27 | + :param type: The type of identity used for the container group. The type |
| 28 | + 'SystemAssigned, UserAssigned' includes both an implicitly created |
| 29 | + identity and a set of user assigned identities. The type 'None' will |
| 30 | + remove any identities from the container group. Possible values include: |
| 31 | + 'SystemAssigned', 'UserAssigned', 'SystemAssigned, UserAssigned', 'None' |
| 32 | + :type type: str or |
| 33 | + ~azure.mgmt.containerinstance.models.ResourceIdentityType |
| 34 | + :param user_assigned_identities: The list of user identities associated |
| 35 | + with the container group. The user identity dictionary key references will |
| 36 | + be ARM resource ids in the form: |
| 37 | + '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'. |
| 38 | + :type user_assigned_identities: dict[str, |
| 39 | + ~azure.mgmt.containerinstance.models.ContainerGroupIdentityUserAssignedIdentitiesValue] |
| 40 | + """ |
| 41 | + |
| 42 | + _validation = { |
| 43 | + 'principal_id': {'readonly': True}, |
| 44 | + 'tenant_id': {'readonly': True}, |
| 45 | + } |
| 46 | + |
| 47 | + _attribute_map = { |
| 48 | + 'principal_id': {'key': 'principalId', 'type': 'str'}, |
| 49 | + 'tenant_id': {'key': 'tenantId', 'type': 'str'}, |
| 50 | + 'type': {'key': 'type', 'type': 'ResourceIdentityType'}, |
| 51 | + 'user_assigned_identities': {'key': 'userAssignedIdentities', 'type': '{ContainerGroupIdentityUserAssignedIdentitiesValue}'}, |
| 52 | + } |
| 53 | + |
| 54 | + def __init__(self, **kwargs): |
| 55 | + super(ContainerGroupIdentity, self).__init__(**kwargs) |
| 56 | + self.principal_id = None |
| 57 | + self.tenant_id = None |
| 58 | + self.type = kwargs.get('type', None) |
| 59 | + self.user_assigned_identities = kwargs.get('user_assigned_identities', None) |
0 commit comments