Skip to content

Commit f727c69

Browse files
Adding UAMI properties to the swagger (#16947)
* Adding UAMI properties to the swagger * Update readme.go.md * fixing invalid exmaples of uuid * Update readme.go.md Co-authored-by: ArcturusZhang <[email protected]>
1 parent b2bda7d commit f727c69

File tree

7 files changed

+51
-21
lines changed

7 files changed

+51
-21
lines changed

specification/purview/resource-manager/Microsoft.Purview/preview/2020-12-01-preview/examples/DefaultAccounts_Get.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"parameters": {
3-
"scopeTenantId": "12345678-1234-1234-12345678abc",
3+
"scopeTenantId": "11733A4E-BA84-46FF-91D1-AFF1A3215A90",
44
"scopeType": "Tenant",
5-
"scope": "12345678-1234-1234-12345678abc",
5+
"scope": "11733A4E-BA84-46FF-91D1-AFF1A3215A90",
66
"api-version": "2018-12-01-preview"
77
},
88
"responses": {
@@ -15,9 +15,9 @@
1515
"x-ms-correlation-request-id": "25c78f97-0b0a-4fe9-ad39-883a482265cd"
1616
},
1717
"body": {
18-
"scopeTenantId": "12345678-1234-1234-12345678abc",
18+
"scopeTenantId": "11733A4E-BA84-46FF-91D1-AFF1A3215A90",
1919
"scopeType": "Tenant",
20-
"scope": "12345678-1234-1234-12345678abc",
20+
"scope": "11733A4E-BA84-46FF-91D1-AFF1A3215A90",
2121
"accountName": "myDefaultAccount",
2222
"resourceGroupName": "rg-1",
2323
"subscriptionId": "12345678-1234-1234-12345678aaa"

specification/purview/resource-manager/Microsoft.Purview/preview/2020-12-01-preview/examples/DefaultAccounts_Remove.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"parameters": {
3-
"scopeTenantId": "12345678-1234-1234-12345678abc",
3+
"scopeTenantId": "11733A4E-BA84-46FF-91D1-AFF1A3215A90",
44
"scopeType": "Tenant",
5-
"scope": "12345678-1234-1234-12345678abc",
5+
"scope": "11733A4E-BA84-46FF-91D1-AFF1A3215A90",
66
"api-version": "2018-12-01-preview"
77
},
88
"responses": {

specification/purview/resource-manager/Microsoft.Purview/preview/2020-12-01-preview/examples/DefaultAccounts_Set.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
"parameters": {
33
"api-version": "2018-12-01-preview",
44
"defaultAccountPayload": {
5-
"scopeTenantId": "12345678-1234-1234-12345678abc",
5+
"scopeTenantId": "11733A4E-BA84-46FF-91D1-AFF1A3215A90",
66
"scopeType": "Tenant",
7-
"scope": "12345678-1234-1234-12345678abc",
7+
"scope": "11733A4E-BA84-46FF-91D1-AFF1A3215A90",
88
"accountName": "myDefaultAccount",
99
"resourceGroupName": "rg-1",
1010
"subscriptionId": "12345678-1234-1234-12345678aaa"
@@ -20,9 +20,9 @@
2020
"x-ms-correlation-request-id": "25c78f97-0b0a-4fe9-ad39-883a482265cd"
2121
},
2222
"body": {
23-
"scopeTenantId": "12345678-1234-1234-12345678abc",
23+
"scopeTenantId": "11733A4E-BA84-46FF-91D1-AFF1A3215A90",
2424
"scopeType": "Tenant",
25-
"scope": "12345678-1234-1234-12345678abc",
25+
"scope": "11733A4E-BA84-46FF-91D1-AFF1A3215A90",
2626
"accountName": "myDefaultAccount",
2727
"resourceGroupName": "rg-1",
2828
"subscriptionId": "12345678-1234-1234-12345678aaa"

specification/purview/resource-manager/Microsoft.Purview/stable/2021-07-01/examples/DefaultAccounts_Get.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"parameters": {
3-
"scopeTenantId": "12345678-1234-1234-12345678abc",
3+
"scopeTenantId": "11733A4E-BA84-46FF-91D1-AFF1A3215A90",
44
"scopeType": "Tenant",
5-
"scope": "12345678-1234-1234-12345678abc",
5+
"scope": "11733A4E-BA84-46FF-91D1-AFF1A3215A90",
66
"api-version": "2021-07-01"
77
},
88
"responses": {
@@ -15,9 +15,9 @@
1515
"x-ms-correlation-request-id": "25c78f97-0b0a-4fe9-ad39-883a482265cd"
1616
},
1717
"body": {
18-
"scopeTenantId": "12345678-1234-1234-12345678abc",
18+
"scopeTenantId": "11733A4E-BA84-46FF-91D1-AFF1A3215A90",
1919
"scopeType": "Tenant",
20-
"scope": "12345678-1234-1234-12345678abc",
20+
"scope": "11733A4E-BA84-46FF-91D1-AFF1A3215A90",
2121
"accountName": "myDefaultAccount",
2222
"resourceGroupName": "rg-1",
2323
"subscriptionId": "12345678-1234-1234-12345678aaa"

specification/purview/resource-manager/Microsoft.Purview/stable/2021-07-01/examples/DefaultAccounts_Remove.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"parameters": {
3-
"scopeTenantId": "12345678-1234-1234-12345678abc",
3+
"scopeTenantId": "11733A4E-BA84-46FF-91D1-AFF1A3215A90",
44
"scopeType": "Tenant",
5-
"scope": "12345678-1234-1234-12345678abc",
5+
"scope": "11733A4E-BA84-46FF-91D1-AFF1A3215A90",
66
"api-version": "2021-07-01"
77
},
88
"responses": {

specification/purview/resource-manager/Microsoft.Purview/stable/2021-07-01/examples/DefaultAccounts_Set.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
"parameters": {
33
"api-version": "2021-07-01",
44
"defaultAccountPayload": {
5-
"scopeTenantId": "12345678-1234-1234-12345678abc",
5+
"scopeTenantId": "11733A4E-BA84-46FF-91D1-AFF1A3215A90",
66
"scopeType": "Tenant",
7-
"scope": "12345678-1234-1234-12345678abc",
7+
"scope": "11733A4E-BA84-46FF-91D1-AFF1A3215A90",
88
"accountName": "myDefaultAccount",
99
"resourceGroupName": "rg-1",
1010
"subscriptionId": "12345678-1234-1234-12345678aaa"
@@ -20,9 +20,9 @@
2020
"x-ms-correlation-request-id": "25c78f97-0b0a-4fe9-ad39-883a482265cd"
2121
},
2222
"body": {
23-
"scopeTenantId": "12345678-1234-1234-12345678abc",
23+
"scopeTenantId": "11733A4E-BA84-46FF-91D1-AFF1A3215A90",
2424
"scopeType": "Tenant",
25-
"scope": "12345678-1234-1234-12345678abc",
25+
"scope": "11733A4E-BA84-46FF-91D1-AFF1A3215A90",
2626
"accountName": "myDefaultAccount",
2727
"resourceGroupName": "rg-1",
2828
"subscriptionId": "12345678-1234-1234-12345678aaa"

specification/purview/resource-manager/Microsoft.Purview/stable/2021-07-01/purview.json

Lines changed: 31 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1168,13 +1168,22 @@
11681168
"type": {
11691169
"description": "Identity Type",
11701170
"enum": [
1171-
"SystemAssigned"
1171+
"None",
1172+
"SystemAssigned",
1173+
"UserAssigned"
11721174
],
11731175
"type": "string",
11741176
"x-ms-enum": {
11751177
"name": "type",
11761178
"modelAsString": true
11771179
}
1180+
},
1181+
"userAssignedIdentities": {
1182+
"description": "User Assigned Identities",
1183+
"type": "object",
1184+
"additionalProperties": {
1185+
"$ref": "#/definitions/UserAssignedIdentity"
1186+
}
11781187
}
11791188
}
11801189
},
@@ -1237,6 +1246,7 @@
12371246
}
12381247
},
12391248
"CloudConnectors": {
1249+
"description": "External Cloud Service connectors",
12401250
"type": "object",
12411251
"properties": {
12421252
"awsExternalId": {
@@ -1304,6 +1314,22 @@
13041314
}
13051315
}
13061316
},
1317+
"UserAssignedIdentity": {
1318+
"description": "Uses client ID and Principal ID",
1319+
"type": "object",
1320+
"properties": {
1321+
"clientId": {
1322+
"description": "Gets or Sets Client ID",
1323+
"type": "string",
1324+
"readOnly": true
1325+
},
1326+
"principalId": {
1327+
"description": "Gets or Sets Principal ID",
1328+
"type": "string",
1329+
"readOnly": true
1330+
}
1331+
}
1332+
},
13071333
"PrivateEndpointConnectionProperties": {
13081334
"description": "A private endpoint connection properties class.",
13091335
"type": "object",
@@ -1411,6 +1437,10 @@
14111437
"description": "The account update properties.",
14121438
"type": "object",
14131439
"properties": {
1440+
"identity": {
1441+
"$ref": "#/definitions/Identity",
1442+
"description": "Identity related info to add/remove userAssignedIdentities."
1443+
},
14141444
"properties": {
14151445
"$ref": "#/definitions/AccountProperties",
14161446
"description": "The account properties."

0 commit comments

Comments
 (0)