Skip to content

Commit

Permalink
Added swagger for private link resource API (Azure#8655)
Browse files Browse the repository at this point in the history
* 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>
  • Loading branch information
5 people authored and 00Kai0 committed Oct 12, 2020
1 parent 660792c commit dd80528
Show file tree
Hide file tree
Showing 5 changed files with 452 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,31 @@
"tags": {
"TestUpdatedKey": "TestUpdatedValue"
},
"identity": {
"tenantId": "d676e86e-2206-4a7c-999c-ece52c144b5b",
"principalId": "3137d6c7-5d6c-411c-b934-7a2a729ee247",
"type": "SystemAssigned"
},
"properties": {
"provisioningState": "Succeeded"
"provisioningState": "Succeeded",
"privateEndpointConnections": [
{
"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",
"properties": {
"provisioningState": "Succeeded",
"privateEndpoint": {
"id": "/subscriptions/6c48fa17-39c7-45f1-90ac-47a587128ace/resourceGroups/Default-RecoveryServices-ResourceGroup/providers/Microsoft.Network/privateEndpoints/pe114-pemsi-ecy-rsv"
},
"privateLinkServiceConnectionState": {
"status": "Approved",
"description": "None",
"actionsRequired": "None"
}
}
}
],
"privateEndpointStateForBackup": "Enabled",
"privateEndpointStateForSiteRecovery": "None"
},
"id": "/subscriptions/77777777-b0c6-47a2-b37c-d8e65a629c18/resourceGroups/Default-RecoveryServices-ResourceGroup/providers/Microsoft.RecoveryServices/vaults/swaggerExample",
"type": "Microsoft.RecoveryServices/vaults",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
"parameters": {
"subscriptionId": "6c48fa17-39c7-45f1-90ac-47a587128ace",
"resourceGroupName": "petesting",
"vaultName": "pemsi-ecy-rsv2",
"api-version": "2016-06-01",
"privateLinkResourceName": "backupResource"
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/6c48fa17-39c7-45f1-90ac-47a587128ace/resourceGroups/petesting/providers/Microsoft.RecoveryServices/Vaults/pemsi-ecy-rsv2/privateLinkResources/backupResource",
"name": "backupResource",
"type": "Microsoft.RecoveryServices/Vaults/privateLinkResources",
"properties": {
"groupId": "AzureBackup",
"requiredMembers": [
"backup-fab1",
"backup-rec2",
"backup-prot1",
"backup-ecs1",
"backup-tel1",
"backup-wbcm1",
"backup-fc1",
"backup-id1"
],
"requiredZoneNames": [
"privatelink.ecy.backup.windowsazure.com",
"privatelink.queue.core.windows.net",
"privatelink.blob.core.windows.net"
]
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
{
"parameters": {
"subscriptionId": "6c48fa17-39c7-45f1-90ac-47a587128ace",
"resourceGroupName": "petesting",
"vaultName": "pemsi-ecy-rsv2",
"api-version": "2016-06-01"
},
"responses": {
"200": {
"body": {
"value": [
{
"id": "/subscriptions/6c48fa17-39c7-45f1-90ac-47a587128ace/resourceGroups/petesting/providers/Microsoft.RecoveryServices/Vaults/pemsi-ecy-rsv2/privateLinkResources/backupResource",
"name": "backupResource",
"type": "Microsoft.RecoveryServices/Vaults/privateLinkResources",
"properties": {
"groupId": "AzureBackup",
"requiredMembers": [
"backup-fab1",
"backup-rec2",
"backup-prot1",
"backup-ecs1",
"backup-tel1",
"backup-wbcm1",
"backup-fc1",
"backup-id1"
],
"requiredZoneNames": [
"privatelink.ecy.backup.windowsazure.com",
"privatelink.queue.core.windows.net",
"privatelink.blob.core.windows.net"
]
}
},
{
"id": "/subscriptions/6c48fa17-39c7-45f1-90ac-47a587128ace/resourceGroups/gaallarg/providers/Microsoft.RecoveryServices/vaults/amchandnTest2702A/privateLinkResources/siteRecoveryResource",
"name": "siteRecoveryResource",
"type": "Microsoft.RecoveryServices/vaults/privateLinkResources",
"properties": {
"groupId": "AzureSiteRecovery",
"requiredMembers": [
"siteRecovery-rcm1",
"siteRecovery-prot2",
"siteRecovery-tel1",
"siteRecovery-srs1",
"siteRecovery-prot2b",
"siteRecovery-id1"
],
"requiredZoneNames": [
"privatelink.ecy.siterecovery.windowsazure.com",
"privatelink.queue.core.windows.net",
"privatelink.blob.core.windows.net"
]
}
}
]
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@
"sku": {
"name": "Standard"
},
"location": "West US"
"location": "West US",
"identity": {
"type": "SystemAssigned"
}
}
},
"responses": {
Expand All @@ -21,6 +24,11 @@
"tags": {
"TestUpdatedKey": "TestUpdatedValue"
},
"identity": {
"tenantId": "d676e86e-2206-4a7c-999c-ece52c144b5b",
"principalId": "3137d6c7-5d6c-411c-b934-7a2a729ee247",
"type": "SystemAssigned"
},
"properties": {
"provisioningState": "Succeeded"
},
Expand All @@ -39,6 +47,11 @@
"tags": {
"TestUpdatedKey": "TestUpdatedValue"
},
"identity": {
"tenantId": "d676e86e-2206-4a7c-999c-ece52c144b5b",
"principalId": "3137d6c7-5d6c-411c-b934-7a2a729ee247",
"type": "SystemAssigned"
},
"properties": {
"provisioningState": "Succeeded"
},
Expand Down
Loading

0 comments on commit dd80528

Please sign in to comment.