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

Adding Create, Delete and List Namespaces Endpoints for Event Hubs Cluster Resource #5565

Merged
merged 24 commits into from
Apr 29, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
a0db0ba
Adding ClusterPut.json example
FBettati Apr 5, 2019
902695b
Create ListNamespaceInClusterPost.json
FBettati Apr 5, 2019
e7b7eb5
Create ClusterDelete.json
FBettati Apr 5, 2019
1452a48
Update EventHub-preview.json
FBettati Apr 5, 2019
f7a5c3e
Adding valid responses to Cluster PUT example.
FBettati Apr 8, 2019
e71f68e
Update specification/eventhub/resource-manager/Microsoft.EventHub/pre…
praries880 Apr 10, 2019
5fa9581
Adding Available Regions API
FBettati Apr 10, 2019
56674e9
Adding ListAvailableClusters POST example.
FBettati Apr 10, 2019
ee9ddc9
Merge pull request #1 from FBettati/AvailableRegions
FBettati Apr 10, 2019
2f8c68e
Modifying response in AvailableClusterList
FBettati Apr 11, 2019
2306d42
Updating LIstAvailableClustersPost.json example
FBettati Apr 11, 2019
5163998
Delete ListAvailableClustersPost.json
FBettati Apr 11, 2019
bd68dc7
Create ListAvailableClustersGet.json
FBettati Apr 11, 2019
9204620
Delete ListNamespaceInClusterPost.json
FBettati Apr 11, 2019
81a42aa
Create ListNamespacesInClusterGet.json
FBettati Apr 11, 2019
524966a
Update EventHub-preview.json
FBettati Apr 11, 2019
437b61a
Merge pull request #2 from FBettati/frbettat-clusters
FBettati Apr 11, 2019
839a07b
Modify availableClusters API to have a valid ARM collection response
FBettati Apr 22, 2019
3120b79
Updating AvailableClusters collection response example
FBettati Apr 22, 2019
de66598
Merge pull request #3 from FBettati/availableClusterCollection
FBettati Apr 22, 2019
98a19e0
Updating /cluster/namespaces and /availableClusters calls
FBettati Apr 27, 2019
8ac2ae1
Adding parameters to ListAvailableClusters example.
FBettati Apr 27, 2019
123bfb1
Adding extra layer to namespace IDs in ListNamespacesInCluster example.
FBettati Apr 27, 2019
f707263
Removing comma from ListAvailableClusters example
FBettati Apr 27, 2019
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 @@ -70,6 +70,42 @@
}
}
},
"/subscriptions/{subscriptionId}/providers/Microsoft.EventHub/availableClusters": {
"get": {
"tags": [
"Event Hubs Clusters"
],
"operationId": "Clusters_ListAvailableClusters",
"x-ms-examples": {
"ListAvailableClusters": {
"$ref": "./examples/Clusters/ListAvailableClustersGet.json"
}
},
"description": "List the quantity of available pre-provisioned Event Hubs Clusters, indexed by Azure region.",
"parameters": [
{
"$ref": "#/parameters/subscriptionIdParameter"
},
{
"$ref": "#/parameters/apiVersionParameter"
}
],
"responses": {
"200": {
"description": "Available clusters listed successfully.",
"schema": {
"$ref": "#/definitions/AvailableClustersList"
}
},
"default": {
"description": "Error response describing why available clusters could not be successfully listed.",
"schema": {
"$ref": "#/definitions/ErrorResponse"
}
}
}
}
},
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/clusters": {
"get": {
"tags": [
Expand Down Expand Up @@ -153,6 +189,56 @@
}
}
},
"put": {
"tags": [
"Event Hubs Cluster"
],
"operationId": "Clusters_Put",
"x-ms-examples": {
"ClusterPut": {
"$ref": "./examples/Clusters/ClusterPut.json"
}
},
"description": "Creates or updates an instance of an Event Hubs Cluster.",
"parameters": [
{
"$ref": "#/parameters/subscriptionIdParameter"
},
{
"$ref": "#/parameters/resourceGroupNameParameter"
},
{
"$ref": "#/parameters/clusterNameParameter"
},
{
"$ref": "#/parameters/apiVersionParameter"
}
],
"responses": {
"200": {
"description": "Event Hubs Cluster successfully created or updated.",
"schema": {
"$ref": "#/definitions/Cluster"
}
},
"201": {
"description": "Event Hubs Cluster create or update request accepted.",
"schema": {
"$ref": "#/definitions/Cluster"
}
},
"202": {
"description": "Event Hubs Cluster create or update request accepted."
},
"default": {
"description": "Event Hubs error response detailing why the Event Hubs Cluster create or update operation failed.",
"schema": {
"$ref": "#/definitions/ErrorResponse"
}
}
},
"x-ms-long-running-operation": true
},
"patch": {
"tags": [
"Event Hubs Cluster"
Expand Down Expand Up @@ -211,6 +297,92 @@
}
},
"x-ms-long-running-operation": true
},
"delete": {
"tags": [
"Event Hubs Cluster"
],
"operationId": "Clusters_Delete",
"x-ms-examples": {
"ClusterDelete": {
"$ref": "./examples/Clusters/ClusterDelete.json"
}
},
"description": "Deletes an existing Event Hubs Cluster. This operation is idempotent.",
"parameters": [
{
"$ref": "#/parameters/subscriptionIdParameter"
},
{
"$ref": "#/parameters/resourceGroupNameParameter"
},
{
"$ref": "#/parameters/clusterNameParameter"
},
{
"$ref": "#/parameters/apiVersionParameter"
}
],
"responses": {
"200": {
"description": "Event Hubs Cluster successfully deleted."
},
"202": {
"description": "Event Hubs Cluster delete request accepted."
},
"204": {
"description": "No content."
},
"default": {
"description": "Event Hubs error response describing why the operation failed.",
"schema": {
"$ref": "#/definitions/ErrorResponse"
}
}
},
"x-ms-long-running-operation": true
}
},
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/clusters/{clusterName}/namespaces": {
"get": {
"tags": [
"Event Hubs Namespace Enumeration in Cluster"
],
"operationId": "Clusters_ListNamespaces",
"parameters": [
{
"$ref": "#/parameters/subscriptionIdParameter"
},
{
"$ref": "#/parameters/resourceGroupNameParameter"
},
{
"$ref": "#/parameters/clusterNameParameter"
},
{
"$ref": "#/parameters/apiVersionParameter"
}
],
"description": "List all Event Hubs Namespace IDs in an Event Hubs Dedicated Cluster.",
"x-ms-examples": {
"ListNamespacesInCluster": {
"$ref": "./examples/Clusters/ListNamespacesInClusterGet.json"
}
},
"responses": {
"200": {
"description": "List of Namespace IDs in Cluster successfully delivered.",
"schema": {
"$ref": "#/definitions/EHNamespaceIdListResult"
}
},
"default": {
"description": "Event Hubs Cluster error response detailing why this operation failed.",
"schema": {
"$ref": "#/definitions/ErrorResponse"
}
}
}
}
},
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/clusters/{clusterName}/quotaConfiguration/default": {
Expand Down Expand Up @@ -436,14 +608,14 @@
}
],
"responses": {
"201": {
"description": "Namespace create request accepted.",
"200": {
"description": "Namespace successfully created.",
"schema": {
"$ref": "#/definitions/EHNamespace"
}
},
"200": {
"description": "Namespace successfully created.",
"201": {
"description": "Namespace create request accepted.",
"schema": {
"$ref": "#/definitions/EHNamespace"
}
Expand Down Expand Up @@ -486,15 +658,15 @@
}
],
"responses": {
"204": {
"description": "No content."
},
"200": {
"description": "Namespace successfully deleted."
},
"202": {
"description": "Namespace delete request accepted."
},
"204": {
"description": "No content."
},
"default": {
"description": "Eventhub error response describing why the operation failed.",
"schema": {
Expand Down Expand Up @@ -585,14 +757,14 @@
}
],
"responses": {
"201": {
"description": "Namespace update request accepted.",
"200": {
"description": "Namespace successfully updated.",
"schema": {
"$ref": "#/definitions/EHNamespace"
}
},
"200": {
"description": "Namespace successfully updated.",
"201": {
"description": "Namespace update request accepted.",
"schema": {
"$ref": "#/definitions/EHNamespace"
}
Expand Down Expand Up @@ -736,12 +908,12 @@
}
],
"responses": {
"204": {
"description": "No content."
},
"200": {
"description": "Namespace IpFilterRule successfully deleted."
},
"204": {
"description": "No content."
},
"default": {
"description": "Eventhub error response describing why the operation failed.",
"schema": {
Expand Down Expand Up @@ -921,12 +1093,12 @@
}
],
"responses": {
"204": {
"description": "No content."
},
"200": {
"description": "Namespace VirtualNetworkRule successfully deleted."
},
"204": {
"description": "No content."
},
"default": {
"description": "Eventhub error response describing why the operation failed.",
"schema": {
Expand Down Expand Up @@ -1156,6 +1328,25 @@
],
"description": "Single Event Hubs Cluster resource in List or Get operations."
},
"AvailableClustersList": {
"properties": {
"value": {
"type": "array",
"items": {
"$ref": "#/definitions/AvailableCluster"
},
"description": "The count of readily available and pre-provisioned Event Hubs Clusters per region."
}
},
"description": "The response of the List Available Clusters operation."
},
"AvailableCluster": {
"type": "object",
"additionalProperties": {
"type": "integer"
},
"description": "Pre-provisioned and readily available Event Hubs Cluster count per region."
},
"ClusterListResult": {
"properties": {
"value": {
Expand Down Expand Up @@ -1276,6 +1467,27 @@
],
"description": "SKU parameters particular to a cluster instance."
},
"EHNamespaceIdListResult": {
"properties": {
"value": {
"type": "array",
"items": {
"$ref": "#/definitions/EHNamespaceIdContainer"
},
"description": "Result of the List Namespace IDs operation"
}
},
"description": "The response of the List Namespace IDs operation"
},
"EHNamespaceIdContainer": {
"type": "object",
"properties": {
"id": {
"type": "string"
}
},
"description": "The full ARM ID of an Event Hubs Namespace"
},
"EHNamespaceListResult": {
"properties": {
"value": {
Expand Down Expand Up @@ -1676,4 +1888,4 @@
"x-ms-parameter-location": "method"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"parameters": {
"clusterName": "testCluster",
"resourceGroupName": "myResourceGroup",
"api-version": "2018-01-01-preview",
"subscriptionId": "5f750a97-50d9-4e36-8081-c9ee4c0210d4"
},
"responses": {
"200": {},
"202": {},
"204": {}
}
}
Loading