-
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 c2d7ae74564edf027d2baa5d39864ba26a4f593a (#4448)
Update UserAssignedIdentities spec in Web Microsoft.Web recently added support for UserAssigned managed service identities (in preview), but the swagger spec is incorrect for the identity payload as it follows the old construct of sending an array of identityIds as opposed to the updated spec which instead sends a dictionary object called userAssignedIdentities. Spec + history outlined here: http://sharepoint/sites/AzureUX/Sparta/_layouts/15/WopiFrame2.aspx?sourcedoc=%7b633632B4-02E4-4DE2-92A9-EDCAF9BE73D4%7d&file=ARM%2BMSI.docx&action=default Our swagger contains identityids[] because of previous work to future support UserAssigned identities, but never released the feature in that state, rather we opted to wait for the new spec to be supported and then integrated with that on our end. Our MSI implementation reflects Microsoft.Compute's spec for user assigned. https://github.com/Azure/azure-rest-api-specs/blob/78e1feab142c605839aa3cec23442ca26b8ef04d/specification/compute/resource-manager/Microsoft.Compute/stable/2018-06-01/compute.json
- Loading branch information
1 parent
60727bd
commit 8124af5
Showing
5 changed files
with
100 additions
and
9 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
40 changes: 40 additions & 0 deletions
40
...mgmt-web/azure/mgmt/web/models/managed_service_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 ManagedServiceIdentityUserAssignedIdentitiesValue(Model): | ||
"""ManagedServiceIdentityUserAssignedIdentitiesValue. | ||
Variables are only populated by the server, and will be ignored when | ||
sending a request. | ||
:ivar principal_id: Principal Id of user assigned identity | ||
:vartype principal_id: str | ||
:ivar client_id: 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(ManagedServiceIdentityUserAssignedIdentitiesValue, self).__init__(**kwargs) | ||
self.principal_id = None | ||
self.client_id = None |
40 changes: 40 additions & 0 deletions
40
...-web/azure/mgmt/web/models/managed_service_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 ManagedServiceIdentityUserAssignedIdentitiesValue(Model): | ||
"""ManagedServiceIdentityUserAssignedIdentitiesValue. | ||
Variables are only populated by the server, and will be ignored when | ||
sending a request. | ||
:ivar principal_id: Principal Id of user assigned identity | ||
:vartype principal_id: str | ||
:ivar client_id: 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(ManagedServiceIdentityUserAssignedIdentitiesValue, self).__init__(**kwargs) | ||
self.principal_id = None | ||
self.client_id = None |