Skip to content

Commit

Permalink
Fix linting error R4036 - ImplementPrivateEndpointAPIs
Browse files Browse the repository at this point in the history
  • Loading branch information
jiacheng-L committed Apr 8, 2021
1 parent 7fa1061 commit 2bebb19
Show file tree
Hide file tree
Showing 2 changed files with 115 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
{
"parameters": {
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"resourceGroupName": "sample-group",
"vaultName": "sample-vault",
"api-version": "2021-04-01-preview"
},
"responses": {
"200": {
"body": {
"value": [
{
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sample-group/providers/Microsoft.KeyVault/vaults/sample-vault/privateEndpointConnections/sample-pec",
"name": "sample-pec",
"type": "Microsoft.KeyVault/vaults/privateEndpointConnections",
"etag": "",
"properties": {
"provisioningState": "Succeeded",
"privateEndpoint": {
"id": "/subscriptions/00000000-0000-0000-1234-000000000000/resourceGroups/sample-group/providers/Microsoft.Network/privateEndpoints/sample-pe"
},
"privateLinkServiceConnectionState": {
"status": "Approved",
"description": "This was automatically approved by user1234@contoso.com",
"actionsRequired": "None"
}
}
},
{
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sample-group/providers/Microsoft.KeyVault/vaults/sample-vault/privateEndpointConnections/sample-pec",
"name": "sample-pec",
"type": "Microsoft.KeyVault/vaults/privateEndpointConnections",
"etag": "",
"properties": {
"provisioningState": "Succeeded",
"privateEndpoint": {
"id": "/subscriptions/00000000-0000-0000-1234-000000000000/resourceGroups/sample-group/providers/Microsoft.Network/privateEndpoints/sample-pe"
},
"privateLinkServiceConnectionState": {
"status": "Approved",
"description": "This was automatically approved by user1234@contoso.com",
"actionsRequired": "None"
}
}
}
],
"nextLink": null
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -992,6 +992,54 @@
"x-ms-long-running-operation": true
}
},
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/vaults/{vaultName}/privateEndpointConnections": {
"get": {
"tags": [
"PrivateEndpointConnections"
],
"operationId": "PrivateEndpointConnections_ListByResource",
"description": "The List operation gets information about the private endpoint connections associated with the vault.",
"x-ms-examples": {
"KeyVaultListPrivateEndpointConnection": {
"$ref": "./examples/listPrivateEndpointConnection.json"
}
},
"parameters": [
{
"$ref": "#/parameters/SubscriptionIdParameter"
},
{
"$ref": "#/parameters/ResourceGroupName"
},
{
"$ref": "#/parameters/VaultName"
},
{
"$ref": "#/parameters/ApiVersionParameter"
}
],
"produces": [
"application/json"
],
"responses": {
"200": {
"description": "Get information about all private endpoint connections in the specified resource group.",
"schema": {
"$ref": "#/definitions/PrivateEndpointConnectionListResult"
}
},
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "common.json#/definitions/CloudError"
}
}
},
"x-ms-pageable": {
"nextLinkName": "nextLink"
}
}
},
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/vaults/{vaultName}/privateLinkResources": {
"get": {
"tags": [
Expand Down Expand Up @@ -1802,6 +1850,22 @@
"description": "Private endpoint connection resource.",
"x-ms-azure-resource": true
},
"PrivateEndpointConnectionListResult": {
"properties": {
"value": {
"type": "array",
"items": {
"$ref": "#/definitions/PrivateEndpointConnection"
},
"description": "The list of private endpoint connections."
},
"nextLink": {
"type": "string",
"description": "The URL to get the next set of private endpoint connections."
}
},
"description": "List of private endpoint connections."
},
"PrivateEndpointConnectionProperties": {
"properties": {
"privateEndpoint": {
Expand Down

0 comments on commit 2bebb19

Please sign in to comment.