Skip to content

Commit

Permalink
EventHub: Revert removing of messaging plan and updated with examples (
Browse files Browse the repository at this point in the history
…#2846)

* Revert "remove messaging plan from namespace (#2807)"

This reverts commit b5e8859.

* Updated MessagingPlan, Regions, examples.
  • Loading branch information
Ajit Navasare authored and Hovsep committed Apr 10, 2018
1 parent 3b0a560 commit 607f9fa
Show file tree
Hide file tree
Showing 7 changed files with 889 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -392,6 +392,46 @@
}
}
},
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/messagingplan": {
"get": {
"tags": [
"Namespaces"
],
"operationId": "Namespaces_GetMessagingPlan",
"x-ms-examples": {
"GetNamespaceMessagingPlan": { "$ref": "./examples/NameSpaces/EHNameSpaceGetMessagningPlan.json" }
},
"description": "Gets messaging plan for specified namespace.",
"parameters": [
{
"$ref": "#/parameters/resourceGroupNameParameter"
},
{
"$ref": "#/parameters/namespaceNameParameter"
},
{
"$ref": "#/parameters/ApiVersionParameter"
},
{
"$ref": "#/parameters/SubscriptionIdParameter"
}
],
"responses": {
"200": {
"description": "Messaging Plan successfully returned.",
"schema": {
"$ref": "#/definitions/MessagingPlan"
}
},
"default": {
"description": "Eventhub error response describing why the operation failed.",
"schema": {
"$ref": "#/definitions/ErrorResponse"
}
}
}
}
},
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/AuthorizationRules": {
"get": {
"tags": [
Expand Down Expand Up @@ -1770,6 +1810,10 @@
"Regions"
],
"operationId": "Regions_ListBySku",
"x-ms-examples": {
"RegionsListBySkuBasic": { "$ref": "./examples/EHRegionsListBySkuBasic.json" },
"RegionsListBySkuStandard": { "$ref": "./examples/EHRegionsListBySkuStandard.json" }
},
"description": "Gets the available Regions for a given sku",
"parameters": [
{
Expand Down Expand Up @@ -2503,6 +2547,45 @@
}
},
"description": "The response of the List MessagingRegions operation."
},
"MessagingPlan": {
"properties": {
"properties": {
"x-ms-client-flatten": true,
"properties": {
"sku": {
"format": "int32",
"readOnly": true,
"type": "integer",
"description": "Sku type"
},
"selectedEventHubUnit": {
"format": "int32",
"readOnly": true,
"type": "integer",
"description": "Selected event hub unit"
},
"updatedAt": {
"type": "string",
"format": "date-time",
"readOnly": true,
"description": "The exact time the messaging plan was updated."
},
"revision": {
"format": "int64",
"readOnly": true,
"type": "integer",
"description": "revision number"
}
}
}
},
"allOf": [
{
"$ref": "#/definitions/TrackedResource"
}
],
"description": "Messaging Plan for the namespace"
}
},
"parameters": {
Expand Down
Loading

0 comments on commit 607f9fa

Please sign in to comment.