Skip to content

Commit 16517f2

Browse files
azure-sdkmsyyc
andauthored
[AutoRelease] t2-devopsinfrastructure-2024-05-29-08175(can only be merged by SDK owner) (#35805)
* code and test * Update CHANGELOG.md --------- Co-authored-by: azure-sdk <PythonSdkPipelines> Co-authored-by: Yuchao Yan <[email protected]>
1 parent 88964c8 commit 16517f2

File tree

8 files changed

+256
-53
lines changed

8 files changed

+256
-53
lines changed
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
2-
"commit": "c1a9b7327e2da6e8bf41c60d8a79da0d76a41a42",
2+
"commit": "53bed2dccf392c14a412735c38a0f55645812294",
33
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
44
"typespec_src": "specification/devopsinfrastructure/Microsoft.DevOpsInfrastructure",
5-
"@azure-tools/typespec-python": "0.23.11",
5+
"@azure-tools/typespec-python": "0.23.12",
66
"@autorest/python": "6.13.17"
77
}

sdk/devopsinfrastructure/azure-mgmt-devopsinfrastructure/azure/mgmt/devopsinfrastructure/aio/operations/_operations.py

Lines changed: 120 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,14 @@ async def get(self, resource_group_name: str, pool_name: str, **kwargs: Any) ->
300300
this principal.
301301
"tenantId": "str", # Optional. The Active Directory tenant id of the
302302
principal.
303-
"userAssignedIdentities": {}
303+
"userAssignedIdentities": {
304+
"str": {
305+
"clientId": "str", # Optional. The active directory
306+
client identifier for this principal.
307+
"principalId": "str" # Optional. The active
308+
directory identifier for this principal.
309+
}
310+
}
304311
},
305312
"name": "str", # Optional. The name of the resource.
306313
"properties": {
@@ -565,7 +572,14 @@ async def begin_create_or_update(
565572
this principal.
566573
"tenantId": "str", # Optional. The Active Directory tenant id of the
567574
principal.
568-
"userAssignedIdentities": {}
575+
"userAssignedIdentities": {
576+
"str": {
577+
"clientId": "str", # Optional. The active directory
578+
client identifier for this principal.
579+
"principalId": "str" # Optional. The active
580+
directory identifier for this principal.
581+
}
582+
}
569583
},
570584
"name": "str", # Optional. The name of the resource.
571585
"properties": {
@@ -760,7 +774,14 @@ async def begin_create_or_update(
760774
this principal.
761775
"tenantId": "str", # Optional. The Active Directory tenant id of the
762776
principal.
763-
"userAssignedIdentities": {}
777+
"userAssignedIdentities": {
778+
"str": {
779+
"clientId": "str", # Optional. The active directory
780+
client identifier for this principal.
781+
"principalId": "str" # Optional. The active
782+
directory identifier for this principal.
783+
}
784+
}
764785
},
765786
"name": "str", # Optional. The name of the resource.
766787
"properties": {
@@ -987,7 +1008,14 @@ async def begin_create_or_update(
9871008
this principal.
9881009
"tenantId": "str", # Optional. The Active Directory tenant id of the
9891010
principal.
990-
"userAssignedIdentities": {}
1011+
"userAssignedIdentities": {
1012+
"str": {
1013+
"clientId": "str", # Optional. The active directory
1014+
client identifier for this principal.
1015+
"principalId": "str" # Optional. The active
1016+
directory identifier for this principal.
1017+
}
1018+
}
9911019
},
9921020
"name": "str", # Optional. The name of the resource.
9931021
"properties": {
@@ -1214,7 +1242,14 @@ async def begin_create_or_update(
12141242
this principal.
12151243
"tenantId": "str", # Optional. The Active Directory tenant id of the
12161244
principal.
1217-
"userAssignedIdentities": {}
1245+
"userAssignedIdentities": {
1246+
"str": {
1247+
"clientId": "str", # Optional. The active directory
1248+
client identifier for this principal.
1249+
"principalId": "str" # Optional. The active
1250+
directory identifier for this principal.
1251+
}
1252+
}
12181253
},
12191254
"name": "str", # Optional. The name of the resource.
12201255
"properties": {
@@ -1361,7 +1396,14 @@ async def begin_create_or_update(
13611396
this principal.
13621397
"tenantId": "str", # Optional. The Active Directory tenant id of the
13631398
principal.
1364-
"userAssignedIdentities": {}
1399+
"userAssignedIdentities": {
1400+
"str": {
1401+
"clientId": "str", # Optional. The active directory
1402+
client identifier for this principal.
1403+
"principalId": "str" # Optional. The active
1404+
directory identifier for this principal.
1405+
}
1406+
}
13651407
},
13661408
"name": "str", # Optional. The name of the resource.
13671409
"properties": {
@@ -1556,7 +1598,14 @@ async def begin_create_or_update(
15561598
this principal.
15571599
"tenantId": "str", # Optional. The Active Directory tenant id of the
15581600
principal.
1559-
"userAssignedIdentities": {}
1601+
"userAssignedIdentities": {
1602+
"str": {
1603+
"clientId": "str", # Optional. The active directory
1604+
client identifier for this principal.
1605+
"principalId": "str" # Optional. The active
1606+
directory identifier for this principal.
1607+
}
1608+
}
15601609
},
15611610
"name": "str", # Optional. The name of the resource.
15621611
"properties": {
@@ -1820,7 +1869,14 @@ async def begin_update(
18201869
this principal.
18211870
"tenantId": "str", # Optional. The Active Directory tenant id of the
18221871
principal.
1823-
"userAssignedIdentities": {}
1872+
"userAssignedIdentities": {
1873+
"str": {
1874+
"clientId": "str", # Optional. The active directory
1875+
client identifier for this principal.
1876+
"principalId": "str" # Optional. The active
1877+
directory identifier for this principal.
1878+
}
1879+
}
18241880
},
18251881
"properties": {
18261882
"agentProfile": agent_profile,
@@ -1996,7 +2052,14 @@ async def begin_update(
19962052
this principal.
19972053
"tenantId": "str", # Optional. The Active Directory tenant id of the
19982054
principal.
1999-
"userAssignedIdentities": {}
2055+
"userAssignedIdentities": {
2056+
"str": {
2057+
"clientId": "str", # Optional. The active directory
2058+
client identifier for this principal.
2059+
"principalId": "str" # Optional. The active
2060+
directory identifier for this principal.
2061+
}
2062+
}
20002063
},
20012064
"name": "str", # Optional. The name of the resource.
20022065
"properties": {
@@ -2223,7 +2286,14 @@ async def begin_update(
22232286
this principal.
22242287
"tenantId": "str", # Optional. The Active Directory tenant id of the
22252288
principal.
2226-
"userAssignedIdentities": {}
2289+
"userAssignedIdentities": {
2290+
"str": {
2291+
"clientId": "str", # Optional. The active directory
2292+
client identifier for this principal.
2293+
"principalId": "str" # Optional. The active
2294+
directory identifier for this principal.
2295+
}
2296+
}
22272297
},
22282298
"name": "str", # Optional. The name of the resource.
22292299
"properties": {
@@ -2450,7 +2520,14 @@ async def begin_update(
24502520
this principal.
24512521
"tenantId": "str", # Optional. The Active Directory tenant id of the
24522522
principal.
2453-
"userAssignedIdentities": {}
2523+
"userAssignedIdentities": {
2524+
"str": {
2525+
"clientId": "str", # Optional. The active directory
2526+
client identifier for this principal.
2527+
"principalId": "str" # Optional. The active
2528+
directory identifier for this principal.
2529+
}
2530+
}
24542531
},
24552532
"name": "str", # Optional. The name of the resource.
24562533
"properties": {
@@ -2598,7 +2675,14 @@ async def begin_update(
25982675
this principal.
25992676
"tenantId": "str", # Optional. The Active Directory tenant id of the
26002677
principal.
2601-
"userAssignedIdentities": {}
2678+
"userAssignedIdentities": {
2679+
"str": {
2680+
"clientId": "str", # Optional. The active directory
2681+
client identifier for this principal.
2682+
"principalId": "str" # Optional. The active
2683+
directory identifier for this principal.
2684+
}
2685+
}
26022686
},
26032687
"properties": {
26042688
"agentProfile": agent_profile,
@@ -2774,7 +2858,14 @@ async def begin_update(
27742858
this principal.
27752859
"tenantId": "str", # Optional. The Active Directory tenant id of the
27762860
principal.
2777-
"userAssignedIdentities": {}
2861+
"userAssignedIdentities": {
2862+
"str": {
2863+
"clientId": "str", # Optional. The active directory
2864+
client identifier for this principal.
2865+
"principalId": "str" # Optional. The active
2866+
directory identifier for this principal.
2867+
}
2868+
}
27782869
},
27792870
"name": "str", # Optional. The name of the resource.
27802871
"properties": {
@@ -3055,7 +3146,14 @@ def list_by_resource_group(self, resource_group_name: str, **kwargs: Any) -> Asy
30553146
this principal.
30563147
"tenantId": "str", # Optional. The Active Directory tenant id of the
30573148
principal.
3058-
"userAssignedIdentities": {}
3149+
"userAssignedIdentities": {
3150+
"str": {
3151+
"clientId": "str", # Optional. The active directory
3152+
client identifier for this principal.
3153+
"principalId": "str" # Optional. The active
3154+
directory identifier for this principal.
3155+
}
3156+
}
30593157
},
30603158
"name": "str", # Optional. The name of the resource.
30613159
"properties": {
@@ -3259,7 +3357,14 @@ def list_by_subscription(self, **kwargs: Any) -> AsyncIterable["_models.Pool"]:
32593357
this principal.
32603358
"tenantId": "str", # Optional. The Active Directory tenant id of the
32613359
principal.
3262-
"userAssignedIdentities": {}
3360+
"userAssignedIdentities": {
3361+
"str": {
3362+
"clientId": "str", # Optional. The active directory
3363+
client identifier for this principal.
3364+
"principalId": "str" # Optional. The active
3365+
directory identifier for this principal.
3366+
}
3367+
}
32633368
},
32643369
"name": "str", # Optional. The name of the resource.
32653370
"properties": {

sdk/devopsinfrastructure/azure-mgmt-devopsinfrastructure/azure/mgmt/devopsinfrastructure/models/__init__.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@
5555
from ._models import StorageProfile
5656
from ._models import SystemData
5757
from ._models import TrackedResource
58-
from ._models import UserAssignedIdentities
5958
from ._models import UserAssignedIdentity
6059
from ._models import VmssFabricProfile
6160

@@ -128,7 +127,6 @@
128127
"StorageProfile",
129128
"SystemData",
130129
"TrackedResource",
131-
"UserAssignedIdentities",
132130
"UserAssignedIdentity",
133131
"VmssFabricProfile",
134132
"ActionType",

sdk/devopsinfrastructure/azure-mgmt-devopsinfrastructure/azure/mgmt/devopsinfrastructure/models/_models.py

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -664,8 +664,8 @@ class ManagedServiceIdentity(_model_base.Model):
664664
"None", "SystemAssigned", "UserAssigned", and "SystemAssigned, UserAssigned".
665665
:vartype type: str or ~azure.mgmt.devopsinfrastructure.models.ManagedServiceIdentityType
666666
:ivar user_assigned_identities: The identities assigned to this resource by the user.
667-
:vartype user_assigned_identities:
668-
~azure.mgmt.devopsinfrastructure.models.UserAssignedIdentities
667+
:vartype user_assigned_identities: dict[str,
668+
~azure.mgmt.devopsinfrastructure.models.UserAssignedIdentity]
669669
"""
670670

671671
tenant_id: Optional[str] = rest_field(name="tenantId", visibility=["read"])
@@ -675,15 +675,17 @@ class ManagedServiceIdentity(_model_base.Model):
675675
type: Union[str, "_models.ManagedServiceIdentityType"] = rest_field()
676676
"""The type of managed identity assigned to this resource. Required. Known values are: \"None\",
677677
\"SystemAssigned\", \"UserAssigned\", and \"SystemAssigned, UserAssigned\"."""
678-
user_assigned_identities: Optional["_models.UserAssignedIdentities"] = rest_field(name="userAssignedIdentities")
678+
user_assigned_identities: Optional[Dict[str, "_models.UserAssignedIdentity"]] = rest_field(
679+
name="userAssignedIdentities"
680+
)
679681
"""The identities assigned to this resource by the user."""
680682

681683
@overload
682684
def __init__(
683685
self,
684686
*,
685687
type: Union[str, "_models.ManagedServiceIdentityType"],
686-
user_assigned_identities: Optional["_models.UserAssignedIdentities"] = None,
688+
user_assigned_identities: Optional[Dict[str, "_models.UserAssignedIdentity"]] = None,
687689
): ...
688690

689691
@overload
@@ -1952,15 +1954,6 @@ class SystemData(_model_base.Model):
19521954
"""The timestamp of resource last modification (UTC)."""
19531955

19541956

1955-
class UserAssignedIdentities(_model_base.Model):
1956-
"""The set of user assigned identities associated with the resource. The userAssignedIdentities
1957-
dictionary keys will be ARM resource ids in the form:
1958-
'/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}.
1959-
The dictionary values can be empty objects ({}) in requests.",.
1960-
1961-
"""
1962-
1963-
19641957
class UserAssignedIdentity(_model_base.Model):
19651958
"""A managed identity assigned by the user.
19661959

0 commit comments

Comments
 (0)