Skip to content

Commit 92a02c9

Browse files
authored
Added Common Types, Managed Identity v6 (Azure#29155)
1 parent f4c6c86 commit 92a02c9

2 files changed

Lines changed: 791 additions & 0 deletions

File tree

Lines changed: 110 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,110 @@
1+
{
2+
"swagger": "2.0",
3+
"info": {
4+
"version": "6.0",
5+
"title": "Common types"
6+
},
7+
"paths": {},
8+
"definitions": {
9+
"UserAssignedIdentity": {
10+
"type": "object",
11+
"description": "User assigned identity properties",
12+
"properties": {
13+
"principalId": {
14+
"description": "The principal ID of the assigned identity.",
15+
"format": "uuid",
16+
"type": "string",
17+
"readOnly": true
18+
},
19+
"clientId": {
20+
"description": "The client ID of the assigned identity.",
21+
"format": "uuid",
22+
"type": "string",
23+
"readOnly": true
24+
}
25+
}
26+
},
27+
"ManagedServiceIdentityType": {
28+
"description": "Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed).",
29+
"enum": [
30+
"None",
31+
"SystemAssigned",
32+
"UserAssigned",
33+
"SystemAssigned,UserAssigned"
34+
],
35+
"type": "string",
36+
"x-ms-enum": {
37+
"name": "ManagedServiceIdentityType",
38+
"modelAsString": true
39+
}
40+
},
41+
"ManagedServiceIdentity": {
42+
"description": "Managed service identity (system assigned and/or user assigned identities)",
43+
"type": "object",
44+
"properties": {
45+
"principalId": {
46+
"readOnly": true,
47+
"format": "uuid",
48+
"type": "string",
49+
"description": "The service principal ID of the system assigned identity. This property will only be provided for a system assigned identity."
50+
},
51+
"tenantId": {
52+
"readOnly": true,
53+
"format": "uuid",
54+
"type": "string",
55+
"description": "The tenant ID of the system assigned identity. This property will only be provided for a system assigned identity."
56+
},
57+
"type": {
58+
"$ref": "#/definitions/ManagedServiceIdentityType"
59+
},
60+
"userAssignedIdentities": {
61+
"description": "The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. The dictionary values can be empty objects ({}) in requests.",
62+
"type": "object",
63+
"additionalProperties": {
64+
"$ref": "#/definitions/UserAssignedIdentity",
65+
"x-nullable": true
66+
}
67+
}
68+
},
69+
"required": [
70+
"type"
71+
]
72+
},
73+
"SystemAssignedServiceIdentityType": {
74+
"description": "Type of managed service identity (either system assigned, or none).",
75+
"enum": [
76+
"None",
77+
"SystemAssigned"
78+
],
79+
"type": "string",
80+
"x-ms-enum": {
81+
"name": "SystemAssignedServiceIdentityType",
82+
"modelAsString": true
83+
}
84+
},
85+
"SystemAssignedServiceIdentity": {
86+
"description": "Managed service identity (either system assigned, or none)",
87+
"type": "object",
88+
"properties": {
89+
"principalId": {
90+
"readOnly": true,
91+
"format": "uuid",
92+
"type": "string",
93+
"description": "The service principal ID of the system assigned identity. This property will only be provided for a system assigned identity."
94+
},
95+
"tenantId": {
96+
"readOnly": true,
97+
"format": "uuid",
98+
"type": "string",
99+
"description": "The tenant ID of the system assigned identity. This property will only be provided for a system assigned identity."
100+
},
101+
"type": {
102+
"$ref": "#/definitions/SystemAssignedServiceIdentityType"
103+
}
104+
},
105+
"required": [
106+
"type"
107+
]
108+
}
109+
}
110+
}

0 commit comments

Comments
 (0)