Skip to content

Commit 2055e48

Browse files
authored
[EventGrid] Update generated autorest (#26581)
- Continuation of #26425 - Update generate autorest with latest version of TypeSpec packages
1 parent 185b241 commit 2055e48

File tree

1 file changed

+66
-14
lines changed
  • specification/eventgrid/data-plane/Microsoft.EventGrid/stable/2023-11-01

1 file changed

+66
-14
lines changed

specification/eventgrid/data-plane/Microsoft.EventGrid/stable/2023-11-01/EventGrid.json

Lines changed: 66 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,10 @@
5555
"paths": {
5656
"/topics/{topicName}:publish": {
5757
"post": {
58-
"operationId": "PublishCloudEvents",
59-
"description": "Publish Batch Cloud Event to namespace topic. In case of success, the server responds with an HTTP 200 status code with an empty JSON object in response. Otherwise, the server can return various error codes. For example, 401: which indicates authorization failure, 403: which indicates quota exceeded or message is too large, 410: which indicates that specific topic is not found, 400: for bad request, and 500: for internal server error. ",
58+
"operationId": "PublishCloudEvent",
59+
"description": "Publish Single Cloud Event to namespace topic. In case of success, the server responds with an HTTP 200 status code with an empty JSON object in response. Otherwise, the server can return various error codes. For example, 401: which indicates authorization failure, 403: which indicates quota exceeded or message is too large, 410: which indicates that specific topic is not found, 400: for bad request, and 500: for internal server error. ",
6060
"consumes": [
61-
"application/cloudevents-batch+json; charset=utf-8"
61+
"application/cloudevents+json; charset=utf-8"
6262
],
6363
"parameters": [
6464
{
@@ -72,15 +72,12 @@
7272
"type": "string"
7373
},
7474
{
75-
"name": "events",
75+
"name": "event",
7676
"in": "body",
77-
"description": "Array of Cloud Events being published.",
77+
"description": "Single Cloud Event being published.",
7878
"required": true,
7979
"schema": {
80-
"type": "array",
81-
"items": {
82-
"$ref": "#/definitions/CloudEvent"
83-
}
80+
"$ref": "#/definitions/CloudEvent"
8481
}
8582
}
8683
],
@@ -103,11 +100,6 @@
103100
}
104101
}
105102
}
106-
},
107-
"x-ms-examples": {
108-
"Publish Cloud Event": {
109-
"$ref": "./examples/publish.json"
110-
}
111103
}
112104
}
113105
},
@@ -358,6 +350,66 @@
358350
}
359351
}
360352
},
353+
"x-ms-paths": {
354+
"/topics/{topicName}:publish?_overload=publishCloudEvents": {
355+
"post": {
356+
"operationId": "PublishCloudEvents",
357+
"description": "Publish Batch Cloud Event to namespace topic. In case of success, the server responds with an HTTP 200 status code with an empty JSON object in response. Otherwise, the server can return various error codes. For example, 401: which indicates authorization failure, 403: which indicates quota exceeded or message is too large, 410: which indicates that specific topic is not found, 400: for bad request, and 500: for internal server error. ",
358+
"consumes": [
359+
"application/cloudevents-batch+json; charset=utf-8"
360+
],
361+
"parameters": [
362+
{
363+
"$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter"
364+
},
365+
{
366+
"name": "topicName",
367+
"in": "path",
368+
"description": "Topic Name.",
369+
"required": true,
370+
"type": "string"
371+
},
372+
{
373+
"name": "events",
374+
"in": "body",
375+
"description": "Array of Cloud Events being published.",
376+
"required": true,
377+
"schema": {
378+
"type": "array",
379+
"items": {
380+
"$ref": "#/definitions/CloudEvent"
381+
}
382+
}
383+
}
384+
],
385+
"responses": {
386+
"200": {
387+
"description": "The request has succeeded.",
388+
"schema": {
389+
"$ref": "#/definitions/PublishResult"
390+
}
391+
},
392+
"default": {
393+
"description": "An unexpected error response.",
394+
"schema": {
395+
"$ref": "#/definitions/Azure.Core.Foundations.ErrorResponse"
396+
},
397+
"headers": {
398+
"x-ms-error-code": {
399+
"type": "string",
400+
"description": "String error code indicating what went wrong."
401+
}
402+
}
403+
}
404+
},
405+
"x-ms-examples": {
406+
"Publish Cloud Event": {
407+
"$ref": "./examples/publish.json"
408+
}
409+
}
410+
}
411+
}
412+
},
361413
"definitions": {
362414
"AcknowledgeOptions": {
363415
"type": "object",

0 commit comments

Comments
 (0)