Skip to content

Commit

Permalink
Adding UAMI properties to the swagger (Azure#16947)
Browse files Browse the repository at this point in the history
* 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]>
  • Loading branch information
ankanjan and ArcturusZhang authored Dec 14, 2021
1 parent b2bda7d commit f727c69
Show file tree
Hide file tree
Showing 7 changed files with 51 additions and 21 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"parameters": {
"scopeTenantId": "12345678-1234-1234-12345678abc",
"scopeTenantId": "11733A4E-BA84-46FF-91D1-AFF1A3215A90",
"scopeType": "Tenant",
"scope": "12345678-1234-1234-12345678abc",
"scope": "11733A4E-BA84-46FF-91D1-AFF1A3215A90",
"api-version": "2018-12-01-preview"
},
"responses": {
Expand All @@ -15,9 +15,9 @@
"x-ms-correlation-request-id": "25c78f97-0b0a-4fe9-ad39-883a482265cd"
},
"body": {
"scopeTenantId": "12345678-1234-1234-12345678abc",
"scopeTenantId": "11733A4E-BA84-46FF-91D1-AFF1A3215A90",
"scopeType": "Tenant",
"scope": "12345678-1234-1234-12345678abc",
"scope": "11733A4E-BA84-46FF-91D1-AFF1A3215A90",
"accountName": "myDefaultAccount",
"resourceGroupName": "rg-1",
"subscriptionId": "12345678-1234-1234-12345678aaa"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"parameters": {
"scopeTenantId": "12345678-1234-1234-12345678abc",
"scopeTenantId": "11733A4E-BA84-46FF-91D1-AFF1A3215A90",
"scopeType": "Tenant",
"scope": "12345678-1234-1234-12345678abc",
"scope": "11733A4E-BA84-46FF-91D1-AFF1A3215A90",
"api-version": "2018-12-01-preview"
},
"responses": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
"parameters": {
"api-version": "2018-12-01-preview",
"defaultAccountPayload": {
"scopeTenantId": "12345678-1234-1234-12345678abc",
"scopeTenantId": "11733A4E-BA84-46FF-91D1-AFF1A3215A90",
"scopeType": "Tenant",
"scope": "12345678-1234-1234-12345678abc",
"scope": "11733A4E-BA84-46FF-91D1-AFF1A3215A90",
"accountName": "myDefaultAccount",
"resourceGroupName": "rg-1",
"subscriptionId": "12345678-1234-1234-12345678aaa"
Expand All @@ -20,9 +20,9 @@
"x-ms-correlation-request-id": "25c78f97-0b0a-4fe9-ad39-883a482265cd"
},
"body": {
"scopeTenantId": "12345678-1234-1234-12345678abc",
"scopeTenantId": "11733A4E-BA84-46FF-91D1-AFF1A3215A90",
"scopeType": "Tenant",
"scope": "12345678-1234-1234-12345678abc",
"scope": "11733A4E-BA84-46FF-91D1-AFF1A3215A90",
"accountName": "myDefaultAccount",
"resourceGroupName": "rg-1",
"subscriptionId": "12345678-1234-1234-12345678aaa"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"parameters": {
"scopeTenantId": "12345678-1234-1234-12345678abc",
"scopeTenantId": "11733A4E-BA84-46FF-91D1-AFF1A3215A90",
"scopeType": "Tenant",
"scope": "12345678-1234-1234-12345678abc",
"scope": "11733A4E-BA84-46FF-91D1-AFF1A3215A90",
"api-version": "2021-07-01"
},
"responses": {
Expand All @@ -15,9 +15,9 @@
"x-ms-correlation-request-id": "25c78f97-0b0a-4fe9-ad39-883a482265cd"
},
"body": {
"scopeTenantId": "12345678-1234-1234-12345678abc",
"scopeTenantId": "11733A4E-BA84-46FF-91D1-AFF1A3215A90",
"scopeType": "Tenant",
"scope": "12345678-1234-1234-12345678abc",
"scope": "11733A4E-BA84-46FF-91D1-AFF1A3215A90",
"accountName": "myDefaultAccount",
"resourceGroupName": "rg-1",
"subscriptionId": "12345678-1234-1234-12345678aaa"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"parameters": {
"scopeTenantId": "12345678-1234-1234-12345678abc",
"scopeTenantId": "11733A4E-BA84-46FF-91D1-AFF1A3215A90",
"scopeType": "Tenant",
"scope": "12345678-1234-1234-12345678abc",
"scope": "11733A4E-BA84-46FF-91D1-AFF1A3215A90",
"api-version": "2021-07-01"
},
"responses": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
"parameters": {
"api-version": "2021-07-01",
"defaultAccountPayload": {
"scopeTenantId": "12345678-1234-1234-12345678abc",
"scopeTenantId": "11733A4E-BA84-46FF-91D1-AFF1A3215A90",
"scopeType": "Tenant",
"scope": "12345678-1234-1234-12345678abc",
"scope": "11733A4E-BA84-46FF-91D1-AFF1A3215A90",
"accountName": "myDefaultAccount",
"resourceGroupName": "rg-1",
"subscriptionId": "12345678-1234-1234-12345678aaa"
Expand All @@ -20,9 +20,9 @@
"x-ms-correlation-request-id": "25c78f97-0b0a-4fe9-ad39-883a482265cd"
},
"body": {
"scopeTenantId": "12345678-1234-1234-12345678abc",
"scopeTenantId": "11733A4E-BA84-46FF-91D1-AFF1A3215A90",
"scopeType": "Tenant",
"scope": "12345678-1234-1234-12345678abc",
"scope": "11733A4E-BA84-46FF-91D1-AFF1A3215A90",
"accountName": "myDefaultAccount",
"resourceGroupName": "rg-1",
"subscriptionId": "12345678-1234-1234-12345678aaa"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1168,13 +1168,22 @@
"type": {
"description": "Identity Type",
"enum": [
"SystemAssigned"
"None",
"SystemAssigned",
"UserAssigned"
],
"type": "string",
"x-ms-enum": {
"name": "type",
"modelAsString": true
}
},
"userAssignedIdentities": {
"description": "User Assigned Identities",
"type": "object",
"additionalProperties": {
"$ref": "#/definitions/UserAssignedIdentity"
}
}
}
},
Expand Down Expand Up @@ -1237,6 +1246,7 @@
}
},
"CloudConnectors": {
"description": "External Cloud Service connectors",
"type": "object",
"properties": {
"awsExternalId": {
Expand Down Expand Up @@ -1304,6 +1314,22 @@
}
}
},
"UserAssignedIdentity": {
"description": "Uses client ID and Principal ID",
"type": "object",
"properties": {
"clientId": {
"description": "Gets or Sets Client ID",
"type": "string",
"readOnly": true
},
"principalId": {
"description": "Gets or Sets Principal ID",
"type": "string",
"readOnly": true
}
}
},
"PrivateEndpointConnectionProperties": {
"description": "A private endpoint connection properties class.",
"type": "object",
Expand Down Expand Up @@ -1411,6 +1437,10 @@
"description": "The account update properties.",
"type": "object",
"properties": {
"identity": {
"$ref": "#/definitions/Identity",
"description": "Identity related info to add/remove userAssignedIdentities."
},
"properties": {
"$ref": "#/definitions/AccountProperties",
"description": "The account properties."
Expand Down

0 comments on commit f727c69

Please sign in to comment.