Skip to content

Commit

Permalink
Fixing linting errors for MHSM R4036 - ImplementPrivateEndpointAPIs (A…
Browse files Browse the repository at this point in the history
…zure#13822)

* Fixing linting errors for MHSM R4036 - ImplementPrivateEndpointAPIs

(cherry picked from commit c1c5aeb)

* prettier fix
  • Loading branch information
riteshchitlangia1 authored Apr 7, 2021
1 parent 8688527 commit 4903fe5
Show file tree
Hide file tree
Showing 2 changed files with 116 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",
"name": "sample-mhsm",
"api-version": "2021-04-01-preview"
},
"responses": {
"200": {
"body": {
"value": [
{
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sample-group/providers/Microsoft.KeyVault/managedhsms/sample-mhsm/privateEndpointConnections/sample-pec1",
"name": "sample-pec1",
"type": "Microsoft.KeyVault/managedhsms/privateEndpointConnections",
"etag": "",
"properties": {
"provisioningState": "Succeeded",
"privateEndpoint": {
"id": "/subscriptions/00000000-0000-0000-1234-000000000000/resourceGroups/sample-group/providers/Microsoft.Network/privateEndpoints/sample-pe1"
},
"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/managedhsms/sample-mhsm/privateEndpointConnections/sample-pec2",
"name": "sample-pec2",
"type": "Microsoft.KeyVault/managedhsms/privateEndpointConnections",
"etag": "",
"properties": {
"provisioningState": "Succeeded",
"privateEndpoint": {
"id": "/subscriptions/00000000-0000-0000-1234-000000000000/resourceGroups/sample-group/providers/Microsoft.Network/privateEndpoints/sample-pe2"
},
"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 @@ -349,6 +349,55 @@
}
}
},
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/managedHSMs/{name}/privateEndpointConnections": {
"get": {
"tags": [
"MHSMListPrivateEndpointConnections"
],
"operationId": "MHSMPrivateEndpointConnections_ListByResource",
"description": "The List operation gets information about the private endpoint connections associated with the managed HSM Pool.",
"parameters": [
{
"$ref": "#/parameters/ApiVersionParameter"
},
{
"$ref": "#/parameters/SubscriptionIdParameter"
},
{
"$ref": "#/parameters/ManagedHsmResourceGroupName"
},
{
"name": "name",
"in": "path",
"required": true,
"type": "string",
"description": "Name of the managed HSM Pool"
}
],
"responses": {
"200": {
"description": "Get information about all managed HSM Pools in the specified subscription.",
"schema": {
"$ref": "#/definitions/MHSMPrivateEndpointConnectionsListResult"
}
},
"default": {
"description": "The error response describing why the operation failed.",
"schema": {
"$ref": "#/definitions/ManagedHsmError"
}
}
},
"x-ms-examples": {
"List managed HSM Pools in a subscription": {
"$ref": "./examples/ManagedHsm_ListPrivateEndpointConnectionsByResource.json"
}
},
"x-ms-pageable": {
"nextLinkName": "nextLink"
}
}
},
"/subscriptions/{subscriptionId}/providers/Microsoft.KeyVault/deletedManagedHSMs": {
"get": {
"tags": [
Expand Down Expand Up @@ -984,6 +1033,22 @@
},
"description": "List of managed HSM Pools"
},
"MHSMPrivateEndpointConnectionsListResult": {
"properties": {
"value": {
"type": "array",
"items": {
"$ref": "#/definitions/MHSMPrivateEndpointConnection"
},
"description": "The private endpoint connection associated with a managed HSM Pools."
},
"nextLink": {
"type": "string",
"description": "The URL to get the next set of managed HSM Pools."
}
},
"description": "List of private endpoint connections associated with a managed HSM Pools"
},
"ManagedHsmError": {
"properties": {
"error": {
Expand Down

0 comments on commit 4903fe5

Please sign in to comment.