Skip to content

Commit aa5da1f

Browse files
deymadhumantiasmaskaramchandn
authored
Added swagger for private link resource API (#8655)
* Added GEt-privateLinkResources API and managedIdentity changes for Vaults * Fixed PrettierCheck failure * Update vaults.json * Update vaults.json * Resolved PR commens related to PrivateLinkResources * Resolved PR comments * resolved PR comments * Using x-ms-client-flatten for PrivateLinkResourceProperties * Fixing examples for PrivateLinkResources * Revert "Fixing examples for PrivateLinkResources" This reverts commit b0d62a2. * Revert "Using x-ms-client-flatten for PrivateLinkResourceProperties" This reverts commit 31ba2d0. * Using x-ms-client-flatten for PrivateLinkResourceProperties * Fixing examples for PrivateLinkResources * Adding description for privateLinkResourceProperties * Resolved PR comments. Fixed SpellCheck and PrettierCheck and Java SDK failures * Changing operationId for PrivateLinkResource to PrivateLinkResources * Renaming PrivateLinkResourceList to PrivateLinkResources Co-authored-by: deymadhumanti <deymadhumanti@users.noreply.github.com> Co-authored-by: asmaskar <asmaskar@microsoft.com> Co-authored-by: asmaskar <58723769+asmaskar@users.noreply.github.com> Co-authored-by: Aman Chandna <amchandn@microsoft.com>
1 parent f83281b commit aa5da1f

File tree

5 files changed

+452
-17
lines changed

5 files changed

+452
-17
lines changed

specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2016-06-01/examples/GETVault.json

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,31 @@
1414
"tags": {
1515
"TestUpdatedKey": "TestUpdatedValue"
1616
},
17+
"identity": {
18+
"tenantId": "d676e86e-2206-4a7c-999c-ece52c144b5b",
19+
"principalId": "3137d6c7-5d6c-411c-b934-7a2a729ee247",
20+
"type": "SystemAssigned"
21+
},
1722
"properties": {
18-
"provisioningState": "Succeeded"
23+
"provisioningState": "Succeeded",
24+
"privateEndpointConnections": [
25+
{
26+
"id": "/subscriptions/6c48fa17-39c7-45f1-90ac-47a587128ace/resourceGroups/Default-RecoveryServices-ResourceGroup/providers/Microsoft.RecoveryServices/Vaults/pemsi-ecy-rsv2/privateEndpointConnections/pe114-pemsi-ecy-rsv.5944358949303501042.backup.75061caa-cba4-4849-8e09-608da4914aad",
27+
"properties": {
28+
"provisioningState": "Succeeded",
29+
"privateEndpoint": {
30+
"id": "/subscriptions/6c48fa17-39c7-45f1-90ac-47a587128ace/resourceGroups/Default-RecoveryServices-ResourceGroup/providers/Microsoft.Network/privateEndpoints/pe114-pemsi-ecy-rsv"
31+
},
32+
"privateLinkServiceConnectionState": {
33+
"status": "Approved",
34+
"description": "None",
35+
"actionsRequired": "None"
36+
}
37+
}
38+
}
39+
],
40+
"privateEndpointStateForBackup": "Enabled",
41+
"privateEndpointStateForSiteRecovery": "None"
1942
},
2043
"id": "/subscriptions/77777777-b0c6-47a2-b37c-d8e65a629c18/resourceGroups/Default-RecoveryServices-ResourceGroup/providers/Microsoft.RecoveryServices/vaults/swaggerExample",
2144
"type": "Microsoft.RecoveryServices/vaults",
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "6c48fa17-39c7-45f1-90ac-47a587128ace",
4+
"resourceGroupName": "petesting",
5+
"vaultName": "pemsi-ecy-rsv2",
6+
"api-version": "2016-06-01",
7+
"privateLinkResourceName": "backupResource"
8+
},
9+
"responses": {
10+
"200": {
11+
"body": {
12+
"id": "/subscriptions/6c48fa17-39c7-45f1-90ac-47a587128ace/resourceGroups/petesting/providers/Microsoft.RecoveryServices/Vaults/pemsi-ecy-rsv2/privateLinkResources/backupResource",
13+
"name": "backupResource",
14+
"type": "Microsoft.RecoveryServices/Vaults/privateLinkResources",
15+
"properties": {
16+
"groupId": "AzureBackup",
17+
"requiredMembers": [
18+
"backup-fab1",
19+
"backup-rec2",
20+
"backup-prot1",
21+
"backup-ecs1",
22+
"backup-tel1",
23+
"backup-wbcm1",
24+
"backup-fc1",
25+
"backup-id1"
26+
],
27+
"requiredZoneNames": [
28+
"privatelink.ecy.backup.windowsazure.com",
29+
"privatelink.queue.core.windows.net",
30+
"privatelink.blob.core.windows.net"
31+
]
32+
}
33+
}
34+
}
35+
}
36+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "6c48fa17-39c7-45f1-90ac-47a587128ace",
4+
"resourceGroupName": "petesting",
5+
"vaultName": "pemsi-ecy-rsv2",
6+
"api-version": "2016-06-01"
7+
},
8+
"responses": {
9+
"200": {
10+
"body": {
11+
"value": [
12+
{
13+
"id": "/subscriptions/6c48fa17-39c7-45f1-90ac-47a587128ace/resourceGroups/petesting/providers/Microsoft.RecoveryServices/Vaults/pemsi-ecy-rsv2/privateLinkResources/backupResource",
14+
"name": "backupResource",
15+
"type": "Microsoft.RecoveryServices/Vaults/privateLinkResources",
16+
"properties": {
17+
"groupId": "AzureBackup",
18+
"requiredMembers": [
19+
"backup-fab1",
20+
"backup-rec2",
21+
"backup-prot1",
22+
"backup-ecs1",
23+
"backup-tel1",
24+
"backup-wbcm1",
25+
"backup-fc1",
26+
"backup-id1"
27+
],
28+
"requiredZoneNames": [
29+
"privatelink.ecy.backup.windowsazure.com",
30+
"privatelink.queue.core.windows.net",
31+
"privatelink.blob.core.windows.net"
32+
]
33+
}
34+
},
35+
{
36+
"id": "/subscriptions/6c48fa17-39c7-45f1-90ac-47a587128ace/resourceGroups/gaallarg/providers/Microsoft.RecoveryServices/vaults/amchandnTest2702A/privateLinkResources/siteRecoveryResource",
37+
"name": "siteRecoveryResource",
38+
"type": "Microsoft.RecoveryServices/vaults/privateLinkResources",
39+
"properties": {
40+
"groupId": "AzureSiteRecovery",
41+
"requiredMembers": [
42+
"siteRecovery-rcm1",
43+
"siteRecovery-prot2",
44+
"siteRecovery-tel1",
45+
"siteRecovery-srs1",
46+
"siteRecovery-prot2b",
47+
"siteRecovery-id1"
48+
],
49+
"requiredZoneNames": [
50+
"privatelink.ecy.siterecovery.windowsazure.com",
51+
"privatelink.queue.core.windows.net",
52+
"privatelink.blob.core.windows.net"
53+
]
54+
}
55+
}
56+
]
57+
}
58+
}
59+
}
60+
}

specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2016-06-01/examples/PUTVault.json

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,10 @@
99
"sku": {
1010
"name": "Standard"
1111
},
12-
"location": "West US"
12+
"location": "West US",
13+
"identity": {
14+
"type": "SystemAssigned"
15+
}
1316
}
1417
},
1518
"responses": {
@@ -21,6 +24,11 @@
2124
"tags": {
2225
"TestUpdatedKey": "TestUpdatedValue"
2326
},
27+
"identity": {
28+
"tenantId": "d676e86e-2206-4a7c-999c-ece52c144b5b",
29+
"principalId": "3137d6c7-5d6c-411c-b934-7a2a729ee247",
30+
"type": "SystemAssigned"
31+
},
2432
"properties": {
2533
"provisioningState": "Succeeded"
2634
},
@@ -39,6 +47,11 @@
3947
"tags": {
4048
"TestUpdatedKey": "TestUpdatedValue"
4149
},
50+
"identity": {
51+
"tenantId": "d676e86e-2206-4a7c-999c-ece52c144b5b",
52+
"principalId": "3137d6c7-5d6c-411c-b934-7a2a729ee247",
53+
"type": "SystemAssigned"
54+
},
4255
"properties": {
4356
"provisioningState": "Succeeded"
4457
},

0 commit comments

Comments
 (0)