-
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 f99eb282c2ff4d338081525e31c0951f2a521332 (#3550)
Added HDInsight support for MSI
- Loading branch information
1 parent
7736b8e
commit 82c67a5
Showing
10 changed files
with
228 additions
and
2 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
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
57 changes: 57 additions & 0 deletions
57
azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/cluster_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,57 @@ | ||
# 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 ClusterIdentity(Model): | ||
"""Identity for the cluster. | ||
Variables are only populated by the server, and will be ignored when | ||
sending a request. | ||
:ivar principal_id: The principal id of cluster 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 cluster. This property | ||
will only be provided for a system assigned identity. | ||
:vartype tenant_id: str | ||
:param type: The type of identity used for the cluster. The type | ||
'SystemAssigned, UserAssigned' includes both an implicitly created | ||
identity and a set of user assigned identities. Possible values include: | ||
'SystemAssigned', 'UserAssigned', 'SystemAssigned, UserAssigned', 'None' | ||
:type type: str or ~azure.mgmt.hdinsight.models.ResourceIdentityType | ||
:param user_assigned_identities: The list of user identities associated | ||
with the cluster. 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.hdinsight.models.ClusterIdentityUserAssignedIdentitiesValue] | ||
""" | ||
|
||
_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': '{ClusterIdentityUserAssignedIdentitiesValue}'}, | ||
} | ||
|
||
def __init__(self, **kwargs): | ||
super(ClusterIdentity, 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) |
57 changes: 57 additions & 0 deletions
57
azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/cluster_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,57 @@ | ||
# 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 ClusterIdentity(Model): | ||
"""Identity for the cluster. | ||
Variables are only populated by the server, and will be ignored when | ||
sending a request. | ||
:ivar principal_id: The principal id of cluster 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 cluster. This property | ||
will only be provided for a system assigned identity. | ||
:vartype tenant_id: str | ||
:param type: The type of identity used for the cluster. The type | ||
'SystemAssigned, UserAssigned' includes both an implicitly created | ||
identity and a set of user assigned identities. Possible values include: | ||
'SystemAssigned', 'UserAssigned', 'SystemAssigned, UserAssigned', 'None' | ||
:type type: str or ~azure.mgmt.hdinsight.models.ResourceIdentityType | ||
:param user_assigned_identities: The list of user identities associated | ||
with the cluster. 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.hdinsight.models.ClusterIdentityUserAssignedIdentitiesValue] | ||
""" | ||
|
||
_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': '{ClusterIdentityUserAssignedIdentitiesValue}'}, | ||
} | ||
|
||
def __init__(self, *, type=None, user_assigned_identities=None, **kwargs) -> None: | ||
super(ClusterIdentity, 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
...-hdinsight/azure/mgmt/hdinsight/models/cluster_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 ClusterIdentityUserAssignedIdentitiesValue(Model): | ||
"""ClusterIdentityUserAssignedIdentitiesValue. | ||
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(ClusterIdentityUserAssignedIdentitiesValue, self).__init__(**kwargs) | ||
self.principal_id = None | ||
self.client_id = None |
40 changes: 40 additions & 0 deletions
40
...nsight/azure/mgmt/hdinsight/models/cluster_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 ClusterIdentityUserAssignedIdentitiesValue(Model): | ||
"""ClusterIdentityUserAssignedIdentitiesValue. | ||
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(ClusterIdentityUserAssignedIdentitiesValue, 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