-
Notifications
You must be signed in to change notification settings - Fork 5.7k
Event Hubs: reverted removal of Messaging plan from namespace #2831
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -391,6 +391,37 @@ | |
| } | ||
| } | ||
| } | ||
| }, | ||
| "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/messagingplan": { | ||
| "get": { | ||
| "tags": [ | ||
| "MessagingPlan" | ||
| ], | ||
| "operationId": "Namespaces_MessagingPlanGet", | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
change the name to - Namespaces_GetMessagingPlan |
||
| "description": "Gets a description for the specified namespace.", | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Please fix the description. Seems to be copied from somewhere else. |
||
| "parameters": [ | ||
| { | ||
| "$ref": "#/parameters/resourceGroupNameParameter" | ||
| }, | ||
| { | ||
| "$ref": "#/parameters/namespaceNameParameter" | ||
| }, | ||
| { | ||
| "$ref": "#/parameters/ApiVersionParameter" | ||
| }, | ||
| { | ||
| "$ref": "#/parameters/SubscriptionIdParameter" | ||
| } | ||
| ], | ||
| "responses": { | ||
| "200": { | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
you need to specify default error response schema as well. |
||
| "description": "Messaging Plan successfully returned.", | ||
| "schema": { | ||
| "$ref": "#/definitions/MessagingPlan" | ||
| } | ||
| } | ||
| } | ||
| } | ||
| }, | ||
| "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/AuthorizationRules": { | ||
| "get": { | ||
|
|
@@ -2503,6 +2534,47 @@ | |
| } | ||
| }, | ||
| "description": "The response of the List MessagingRegions operation." | ||
| }, | ||
| "MessagingPlanproperties": { | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Properties should start with capital P
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
this entire type is only used as service return type. Please mark each property as "readOnly": true |
||
| "properties": { | ||
| "sku": { | ||
| "format": "int32", | ||
| "type": "integer", | ||
| "description": "Sku type" | ||
| }, | ||
| "selectedEventHubUnit": { | ||
| "format": "int32", | ||
| "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", | ||
| "type": "integer", | ||
| "description": "revision number" | ||
| } | ||
| }, | ||
| "description": "Messaging Region" | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Please add better description of the model. I'm not clear how this model even relates to regions. The only exposed operation in the swagger is "Get" on Messaging plan which suggests that there should be only one Messaging plan per namespace. Did you miss "List" operation? |
||
| }, | ||
| "MessagingPlan": { | ||
| "type": "object", | ||
| "properties": { | ||
| "properties": { | ||
| "x-ms-client-flatten": true, | ||
| "$ref": "#/definitions/MessagingPlanproperties" | ||
| } | ||
| }, | ||
| "allOf": [ | ||
| { | ||
| "$ref": "#/definitions/TrackedResource" | ||
| } | ||
| ], | ||
| "description": "Messaging" | ||
| } | ||
| }, | ||
| "parameters": { | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I do not see a network payload example - please add "x-ms-examples" for this operation