Skip to content

Commit

Permalink
EventHub: fixed the Cluster PUT API (#9596)
Browse files Browse the repository at this point in the history
* fixed the Cluster PUT API

* fix examples

* examples fix

* example fixes

* corrected example cluster_put

Co-authored-by: v-ajnava <[email protected]>
  • Loading branch information
Ajit Navasare and v-ajnava authored May 29, 2020
1 parent 5dd684b commit 93c7d01
Show file tree
Hide file tree
Showing 6 changed files with 34 additions and 22 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"tags": [
"Event Hubs Clusters AvailableClusterRegions"
],
"operationId": "Clusters_ListAvailableClusters",
"operationId": "Clusters_ListAvailableClusterRegion",
"x-ms-examples": {
"ListAvailableClusters": {
"$ref": "./examples/Clusters/ListAvailableClustersGet.json"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/clusters": {
"get": {
"tags": [
"Event Hubs Clusters"
"EventHubs Clusters"
],
"operationId": "Clusters_ListByResourceGroup",
"x-ms-examples": {
Expand Down Expand Up @@ -79,7 +79,7 @@
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/clusters/{clusterName}": {
"get": {
"tags": [
"Event Hubs Clusters"
"EventHubs Clusters"
],
"operationId": "Clusters_Get",
"x-ms-examples": {
Expand Down Expand Up @@ -119,7 +119,7 @@
},
"put": {
"tags": [
"Event Hubs Clusters"
"EventHubs Clusters"
],
"operationId": "Clusters_Put",
"x-ms-examples": {
Expand All @@ -138,6 +138,18 @@
{
"$ref": "../../common/v1/definitions.json#/parameters/ClusterNameParameter"
},
{
"name": "parameters",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/Cluster",
"required": [
"location"
]
},
"description": "Parameters for creating a eventhub cluster resource."
},
{
"$ref": "../../common/v1/definitions.json#/parameters/ApiVersionParameter"
}
Expand Down Expand Up @@ -169,7 +181,7 @@
},
"patch": {
"tags": [
"Event Hubs Clusters"
"EventHubs Clusters"
],
"operationId": "Clusters_Patch",
"x-ms-examples": {
Expand Down Expand Up @@ -228,7 +240,7 @@
},
"delete": {
"tags": [
"Event Hubs Clusters"
"EventHubs Clusters"
],
"operationId": "Clusters_Delete",
"x-ms-examples": {
Expand Down Expand Up @@ -274,7 +286,7 @@
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/clusters/{clusterName}/namespaces": {
"get": {
"tags": [
"Event Hubs Clusters Namespace"
"EventHubs Clusters Namespace"
],
"operationId": "Clusters_ListNamespaces",
"parameters": [
Expand Down Expand Up @@ -324,12 +336,12 @@
"properties": {
"x-ms-client-flatten": true,
"properties": {
"created": {
"createdAt": {
"readOnly": true,
"type": "string",
"description": "The UTC time when the Event Hubs Cluster was created."
},
"updated": {
"updatedAt": {
"readOnly": true,
"type": "string",
"description": "The UTC time when the Event Hubs Cluster was last updated."
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
"capacity": 4
},
"properties": {
"created": "2017-05-24T23:23:27.877Z",
"updated": "2017-05-24T23:23:27.877Z",
"createdAt": "2017-05-24T23:23:27.877Z",
"updatedAt": "2017-05-24T23:23:27.877Z",
"metricId": "SN6-008"
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@
"capacity": 4
},
"properties": {
"created": "2017-06-01T21:37:04.46Z",
"updated": "2017-06-01T21:37:53.413Z",
"createdAt": "2017-06-01T21:37:04.46Z",
"updatedAt": "2017-06-01T21:37:53.413Z",
"metricId": "SN6-008"
}
}
Expand All @@ -49,8 +49,8 @@
"capacity": 4
},
"properties": {
"created": "2017-06-01T21:37:04.46Z",
"updated": "2017-06-01T21:37:53.413Z",
"createdAt": "2017-06-01T21:37:04.46Z",
"updatedAt": "2017-06-01T21:37:53.413Z",
"metricId": "SN6-008"
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"subscriptionId": "5f750a97-50d9-4e36-8081-c9ee4c0210d4",
"parameters": {
"sku": {
"tier": "Dedicated",
"name": "Dedicated",
"capacity": 1
},
"location": "South Central US",
Expand All @@ -32,8 +32,8 @@
"capacity": 1
},
"properties": {
"created": "2017-05-24T23:23:27.877Z",
"updated": "2017-05-24T23:23:27.877Z",
"createdAt": "2017-05-24T23:23:27.877Z",
"updatedAt": "2017-05-24T23:23:27.877Z",
"metricId": "SN6-008"
}
}
Expand All @@ -53,8 +53,8 @@
"capacity": 1
},
"properties": {
"created": "2017-05-24T23:23:27.877Z",
"updated": "2017-05-24T23:23:27.877Z",
"createdAt": "2017-05-24T23:23:27.877Z",
"updatedAt": "2017-05-24T23:23:27.877Z",
"metricId": "SN6-008"
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
"capacity": 4
},
"properties": {
"created": "2016-09-13T23:17:25.24Z",
"updated": "2016-09-13T23:17:28.223Z",
"createdAt": "2016-09-13T23:17:25.24Z",
"updatedAt": "2016-09-13T23:17:28.223Z",
"metricId": "SN6-008"
}
}
Expand Down

0 comments on commit 93c7d01

Please sign in to comment.