Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Eventhub: Added PrivateEndpointConnection API #10635

Merged
merged 13 commits into from
Sep 10, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,10 @@
"description": "List the quantity of available pre-provisioned Event Hubs Clusters, indexed by Azure region.",
"parameters": [
{
"$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter"
"$ref": "../../../common/v1/definitions.json#/parameters/SubscriptionIdParameter"
},
{
"$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter"
"$ref": "../../../common/v1/definitions.json#/parameters/ApiVersionParameter"
}
],
"responses": {
Expand All @@ -64,7 +64,7 @@
"default": {
"description": "Error response describing why available clusters could not be successfully listed.",
"schema": {
"$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse"
"$ref": "../../../common/v1/definitions.json#/definitions/ErrorResponse"
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,13 @@
"description": "Lists the available Event Hubs Clusters within an ARM resource group",
"parameters": [
{
"$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter"
"$ref": "../../../common/v1/definitions.json#/parameters/SubscriptionIdParameter"
},
{
"$ref": "../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter"
"$ref": "../../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter"
},
{
"$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter"
"$ref": "../../../common/v1/definitions.json#/parameters/ApiVersionParameter"
}
],
"responses": {
Expand All @@ -67,7 +67,7 @@
"default": {
"description": "Event Hub Cluster error response describing why the operation failed.",
"schema": {
"$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse"
"$ref": "../../../common/v1/definitions.json#/definitions/ErrorResponse"
}
}
},
Expand All @@ -90,16 +90,16 @@
"description": "Gets the resource description of the specified Event Hubs Cluster.",
"parameters": [
{
"$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter"
"$ref": "../../../common/v1/definitions.json#/parameters/SubscriptionIdParameter"
},
{
"$ref": "../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter"
"$ref": "../../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter"
},
{
"$ref": "../../common/v1/definitions.json#/parameters/ClusterNameParameter"
"$ref": "../../../common/v1/definitions.json#/parameters/ClusterNameParameter"
},
{
"$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter"
"$ref": "../../../common/v1/definitions.json#/parameters/ApiVersionParameter"
}
],
"responses": {
Expand All @@ -112,7 +112,7 @@
"default": {
"description": "Event Hubs Cluster error response describing why the cluster description get operation failed.",
"schema": {
"$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse"
"$ref": "../../../common/v1/definitions.json#/definitions/ErrorResponse"
}
}
}
Expand All @@ -130,13 +130,13 @@
"description": "Creates or updates an instance of an Event Hubs Cluster.",
"parameters": [
{
"$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter"
"$ref": "../../../common/v1/definitions.json#/parameters/SubscriptionIdParameter"
},
{
"$ref": "../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter"
"$ref": "../../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter"
},
{
"$ref": "../../common/v1/definitions.json#/parameters/ClusterNameParameter"
"$ref": "../../../common/v1/definitions.json#/parameters/ClusterNameParameter"
},
{
"name": "parameters",
Expand All @@ -151,7 +151,7 @@
"description": "Parameters for creating a eventhub cluster resource."
},
{
"$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter"
"$ref": "../../../common/v1/definitions.json#/parameters/ApiVersionParameter"
}
],
"responses": {
Expand All @@ -173,7 +173,7 @@
"default": {
"description": "Event Hubs error response detailing why the Event Hubs Cluster create or update operation failed.",
"schema": {
"$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse"
"$ref": "../../../common/v1/definitions.json#/definitions/ErrorResponse"
}
}
},
Expand All @@ -192,16 +192,16 @@
"description": "Modifies mutable properties on the Event Hubs Cluster. This operation is idempotent.",
"parameters": [
{
"$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter"
"$ref": "../../../common/v1/definitions.json#/parameters/SubscriptionIdParameter"
},
{
"$ref": "../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter"
"$ref": "../../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter"
},
{
"$ref": "../../common/v1/definitions.json#/parameters/ClusterNameParameter"
"$ref": "../../../common/v1/definitions.json#/parameters/ClusterNameParameter"
},
{
"$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter"
"$ref": "../../../common/v1/definitions.json#/parameters/ApiVersionParameter"
},
{
"name": "parameters",
Expand Down Expand Up @@ -232,7 +232,7 @@
"default": {
"description": "Event Hubs error response detailing why the Event Hubs Cluster update operation failed.",
"schema": {
"$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse"
"$ref": "../../../common/v1/definitions.json#/definitions/ErrorResponse"
}
}
},
Expand All @@ -251,16 +251,16 @@
"description": "Deletes an existing Event Hubs Cluster. This operation is idempotent.",
"parameters": [
{
"$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter"
"$ref": "../../../common/v1/definitions.json#/parameters/SubscriptionIdParameter"
},
{
"$ref": "../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter"
"$ref": "../../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter"
},
{
"$ref": "../../common/v1/definitions.json#/parameters/ClusterNameParameter"
"$ref": "../../../common/v1/definitions.json#/parameters/ClusterNameParameter"
},
{
"$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter"
"$ref": "../../../common/v1/definitions.json#/parameters/ApiVersionParameter"
}
],
"responses": {
Expand All @@ -276,7 +276,7 @@
"default": {
"description": "Event Hubs error response describing why the operation failed.",
"schema": {
"$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse"
"$ref": "../../../common/v1/definitions.json#/definitions/ErrorResponse"
}
}
},
Expand All @@ -291,16 +291,16 @@
"operationId": "Clusters_ListNamespaces",
"parameters": [
{
"$ref": "../../common/v1/definitions.json#/parameters/SubscriptionIdParameter"
"$ref": "../../../common/v1/definitions.json#/parameters/SubscriptionIdParameter"
},
{
"$ref": "../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter"
"$ref": "../../../common/v1/definitions.json#/parameters/ResourceGroupNameParameter"
},
{
"$ref": "../../common/v1/definitions.json#/parameters/ClusterNameParameter"
"$ref": "../../../common/v1/definitions.json#/parameters/ClusterNameParameter"
},
{
"$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter"
"$ref": "../../../common/v1/definitions.json#/parameters/ApiVersionParameter"
}
],
"description": "List all Event Hubs Namespace IDs in an Event Hubs Dedicated Cluster.",
Expand All @@ -319,7 +319,7 @@
"default": {
"description": "Event Hubs Cluster error response detailing why this operation failed.",
"schema": {
"$ref": "../../common/v1/definitions.json#/definitions/ErrorResponse"
"$ref": "../../../common/v1/definitions.json#/definitions/ErrorResponse"
}
}
}
Expand Down Expand Up @@ -362,7 +362,7 @@
},
"allOf": [
{
"$ref": "../../common/v1/definitions.json#/definitions/TrackedResource"
"$ref": "../../../common/v1/definitions.json#/definitions/TrackedResource"
}
],
"description": "Single Event Hubs Cluster resource in List or Get operations."
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
{
"parameters": {
"namespaceName": "sdk-Namespace-2924",
"resourceGroupName": "ArunMonocle",
"api-version": "2018-01-01-preview",
"subscriptionId": "subID",
"privateEndpointConnectionName": "privateEndpointConnectionName",
"parameters": {
"properties": {
"privateEndpoint": {
"id": "/subscriptions/dbedb4e0-40e6-4145-81f3-f1314c150774/resourceGroups/SDK-EventHub-8396/providers/Microsoft.Network/privateEndpoints/sdk-Namespace-2847"
},
"privateLinkServiceConnectionState": {
"status": "Rejected",
"description": "testing"
},
"provisioningState": "Succeeded"
}
}
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/dbedb4e0-40e6-4145-81f3-f1314c150774/resourceGroups/SDK-EventHub-4794/providers/Microsoft.EventHub/namespaces/sdk-Namespace-5828/privateEndpointConnections/928c44d5-b7c6-423b-b6fa-811e0c27b3e0",
"name": "928c44d5-b7c6-423b-b6fa-811e0c27b3e0",
"type": "Microsoft.EventHub/Namespaces/PrivateEndpointConnections",
"properties": {
"provisioningState": "Succeeded",
"privateEndpoint": {
"id": "/subscriptions/dbedb4e0-40e6-4145-81f3-f1314c150774/resourceGroups/SDK-EventHub-4794/providers/Microsoft.Network/privateEndpoints/sdk-Namespace-5828"
},
"privateLinkServiceConnectionState": {
"status": "Approved",
"description": "Auto-Approved"
}
}
}
},
"201": {
"body": {
"id": "/subscriptions/dbedb4e0-40e6-4145-81f3-f1314c150774/resourceGroups/SDK-EventHub-4794/providers/Microsoft.EventHub/namespaces/sdk-Namespace-5828/privateEndpointConnections/928c44d5-b7c6-423b-b6fa-811e0c27b3e0",
"name": "928c44d5-b7c6-423b-b6fa-811e0c27b3e0",
"type": "Microsoft.EventHub/Namespaces/PrivateEndpointConnections",
"properties": {
"provisioningState": "Succeeded",
"privateEndpoint": {
"id": "/subscriptions/dbedb4e0-40e6-4145-81f3-f1314c150774/resourceGroups/SDK-EventHub-4794/providers/Microsoft.Network/privateEndpoints/sdk-Namespace-5828"
},
"privateLinkServiceConnectionState": {
"status": "Approved",
"description": "Auto-Approved"
}
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"parameters": {
"namespaceName": "sdk-Namespace-3285",
"resourceGroupName": "ArunMonocle",
"privateEndpointConnectionName": "928c44d5-b7c6-423b-b6fa-811e0c27b3e0",
"api-version": "2018-01-01-preview",
"subscriptionId": "5f750a97-50d9-4e36-8081-c9ee4c0210d4"
},
"responses": {
"200": {},
"202": {},
"204": {}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"parameters": {
"namespaceName": "sdk-Namespace-5828",
"resourceGroupName": "SDK-EventHub-4794",
"privateEndpointConnectionName": "privateEndpointConnectionName",
"api-version": "2018-01-01-preview",
"subscriptionId": "subID"
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/dbedb4e0-40e6-4145-81f3-f1314c150774/resourceGroups/SDK-EventHub-4794/providers/Microsoft.EventHub/namespaces/sdk-Namespace-5828/privateEndpointConnections/privateEndpointConnectionName",
"name": "privateEndpointConnectionName",
"type": "Microsoft.EventHub/Namespaces/PrivateEndpointConnections",
"properties": {
"provisioningState": "Succeeded",
"privateEndpoint": {
"id": "/subscriptions/dbedb4e0-40e6-4145-81f3-f1314c150774/resourceGroups/SDK-EventHub-4794/providers/Microsoft.Network/privateEndpoints/sdk-Namespace-5828"
},
"privateLinkServiceConnectionState": {
"status": "Approved",
"description": "Auto-Approved"
}
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"parameters": {
"namespaceName": "sdk-Namespace-5828",
"resourceGroupName": "SDK-EventHub-4794",
"api-version": "2018-01-01-preview",
"subscriptionId": "subID"
},
"responses": {
"200": {
"body": {
"value": [
{
"id": "/subscriptions/dbedb4e0-40e6-4145-81f3-f1314c150774/resourceGroups/SDK-EventHub-7182/providers/Microsoft.EventHub/namespaces/sdk-Namespace-5705-new/privateEndpointConnections/5dc668b3-70e4-437f-b61c-a3c1e594be7a",
"name": "5dc668b3-70e4-437f-b61c-a3c1e594be7a",
"type": "Microsoft.EventHub/Namespaces/PrivateEndpointConnections",
"properties": {
"provisioningState": "Succeeded",
"privateEndpoint": {
"id": "/subscriptions/dbedb4e0-40e6-4145-81f3-f1314c150774/resourceGroups/SDK-EventHub-7182/providers/Microsoft.Network/privateEndpoints/sdk-Namespace-5705-new"
},
"privateLinkServiceConnectionState": {
"status": "Approved",
"description": "Auto-Approved"
}
}
}
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"parameters": {
"namespaceName": "sdk-Namespace-2924",
"resourceGroupName": "ArunMonocle",
"api-version": "2018-01-01-preview",
"subscriptionId": "subID"
},
"responses": {
"200": {
"body": {
"value": [
{
"id": "subscriptions/subID/resourceGroups/SDK-EventHub-4794/providers/Microsoft.EventHub/namespaces/sdk-Namespace-5828/privateLinkResources/namespace",
"name": "namespace",
"type": "Microsoft.EventHub/namespaces/privateLinkResources",
"properties": {
"groupId": "namespace",
"requiredMembers": [
"namespace"
],
"requiredZoneNames": [
"privatelink.EventHub.windows.net"
]
}
}
]
}
}
}
}
Loading