-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Generated from 9a5541421e8815773449ba570834099b97025183 (#3484)
Moving MSI Identity object to correct properties
- Loading branch information
1 parent
aea01fa
commit ece0ca4
Showing
18 changed files
with
341 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
59 changes: 59 additions & 0 deletions
59
azure-mgmt-containerinstance/azure/mgmt/containerinstance/models/container_group_identity.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
# 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 ContainerGroupIdentity(Model): | ||
"""Identity for the container group. | ||
Variables are only populated by the server, and will be ignored when | ||
sending a request. | ||
:ivar principal_id: The principal id of the container group identity. This | ||
property will only be provided for a system assigned identity. | ||
:vartype principal_id: str | ||
:ivar tenant_id: The tenant id associated with the container group. This | ||
property will only be provided for a system assigned identity. | ||
:vartype tenant_id: str | ||
:param type: The type of identity used for the container group. The type | ||
'SystemAssigned, UserAssigned' includes both an implicitly created | ||
identity and a set of user assigned identities. The type 'None' will | ||
remove any identities from the container group. Possible values include: | ||
'SystemAssigned', 'UserAssigned', 'SystemAssigned, UserAssigned', 'None' | ||
:type type: str or | ||
~azure.mgmt.containerinstance.models.ResourceIdentityType | ||
:param user_assigned_identities: The list of user identities associated | ||
with the container group. The user identity dictionary key references will | ||
be ARM resource ids in the form: | ||
'/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'. | ||
:type user_assigned_identities: dict[str, | ||
~azure.mgmt.containerinstance.models.ContainerGroupIdentityUserAssignedIdentitiesValue] | ||
""" | ||
|
||
_validation = { | ||
'principal_id': {'readonly': True}, | ||
'tenant_id': {'readonly': True}, | ||
} | ||
|
||
_attribute_map = { | ||
'principal_id': {'key': 'principalId', 'type': 'str'}, | ||
'tenant_id': {'key': 'tenantId', 'type': 'str'}, | ||
'type': {'key': 'type', 'type': 'ResourceIdentityType'}, | ||
'user_assigned_identities': {'key': 'userAssignedIdentities', 'type': '{ContainerGroupIdentityUserAssignedIdentitiesValue}'}, | ||
} | ||
|
||
def __init__(self, **kwargs): | ||
super(ContainerGroupIdentity, self).__init__(**kwargs) | ||
self.principal_id = None | ||
self.tenant_id = None | ||
self.type = kwargs.get('type', None) | ||
self.user_assigned_identities = kwargs.get('user_assigned_identities', None) |
59 changes: 59 additions & 0 deletions
59
...gmt-containerinstance/azure/mgmt/containerinstance/models/container_group_identity_py3.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
# 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 ContainerGroupIdentity(Model): | ||
"""Identity for the container group. | ||
Variables are only populated by the server, and will be ignored when | ||
sending a request. | ||
:ivar principal_id: The principal id of the container group identity. This | ||
property will only be provided for a system assigned identity. | ||
:vartype principal_id: str | ||
:ivar tenant_id: The tenant id associated with the container group. This | ||
property will only be provided for a system assigned identity. | ||
:vartype tenant_id: str | ||
:param type: The type of identity used for the container group. The type | ||
'SystemAssigned, UserAssigned' includes both an implicitly created | ||
identity and a set of user assigned identities. The type 'None' will | ||
remove any identities from the container group. Possible values include: | ||
'SystemAssigned', 'UserAssigned', 'SystemAssigned, UserAssigned', 'None' | ||
:type type: str or | ||
~azure.mgmt.containerinstance.models.ResourceIdentityType | ||
:param user_assigned_identities: The list of user identities associated | ||
with the container group. The user identity dictionary key references will | ||
be ARM resource ids in the form: | ||
'/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'. | ||
:type user_assigned_identities: dict[str, | ||
~azure.mgmt.containerinstance.models.ContainerGroupIdentityUserAssignedIdentitiesValue] | ||
""" | ||
|
||
_validation = { | ||
'principal_id': {'readonly': True}, | ||
'tenant_id': {'readonly': True}, | ||
} | ||
|
||
_attribute_map = { | ||
'principal_id': {'key': 'principalId', 'type': 'str'}, | ||
'tenant_id': {'key': 'tenantId', 'type': 'str'}, | ||
'type': {'key': 'type', 'type': 'ResourceIdentityType'}, | ||
'user_assigned_identities': {'key': 'userAssignedIdentities', 'type': '{ContainerGroupIdentityUserAssignedIdentitiesValue}'}, | ||
} | ||
|
||
def __init__(self, *, type=None, user_assigned_identities=None, **kwargs) -> None: | ||
super(ContainerGroupIdentity, self).__init__(**kwargs) | ||
self.principal_id = None | ||
self.tenant_id = None | ||
self.type = type | ||
self.user_assigned_identities = user_assigned_identities |
40 changes: 40 additions & 0 deletions
40
.../mgmt/containerinstance/models/container_group_identity_user_assigned_identities_value.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# 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 ContainerGroupIdentityUserAssignedIdentitiesValue(Model): | ||
"""ContainerGroupIdentityUserAssignedIdentitiesValue. | ||
Variables are only populated by the server, and will be ignored when | ||
sending a request. | ||
:ivar principal_id: The principal id of user assigned identity. | ||
:vartype principal_id: str | ||
:ivar client_id: The client id of user assigned identity. | ||
:vartype client_id: str | ||
""" | ||
|
||
_validation = { | ||
'principal_id': {'readonly': True}, | ||
'client_id': {'readonly': True}, | ||
} | ||
|
||
_attribute_map = { | ||
'principal_id': {'key': 'principalId', 'type': 'str'}, | ||
'client_id': {'key': 'clientId', 'type': 'str'}, | ||
} | ||
|
||
def __init__(self, **kwargs): | ||
super(ContainerGroupIdentityUserAssignedIdentitiesValue, self).__init__(**kwargs) | ||
self.principal_id = None | ||
self.client_id = None |
40 changes: 40 additions & 0 deletions
40
...t/containerinstance/models/container_group_identity_user_assigned_identities_value_py3.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# 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 ContainerGroupIdentityUserAssignedIdentitiesValue(Model): | ||
"""ContainerGroupIdentityUserAssignedIdentitiesValue. | ||
Variables are only populated by the server, and will be ignored when | ||
sending a request. | ||
:ivar principal_id: The principal id of user assigned identity. | ||
:vartype principal_id: str | ||
:ivar client_id: The client id of user assigned identity. | ||
:vartype client_id: str | ||
""" | ||
|
||
_validation = { | ||
'principal_id': {'readonly': True}, | ||
'client_id': {'readonly': True}, | ||
} | ||
|
||
_attribute_map = { | ||
'principal_id': {'key': 'principalId', 'type': 'str'}, | ||
'client_id': {'key': 'clientId', 'type': 'str'}, | ||
} | ||
|
||
def __init__(self, **kwargs) -> None: | ||
super(ContainerGroupIdentityUserAssignedIdentitiesValue, self).__init__(**kwargs) | ||
self.principal_id = None | ||
self.client_id = None |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.