Skip to content

Commit

Permalink
[EventGrid] Update generated autorest (#26581)
Browse files Browse the repository at this point in the history
- Continuation of #26425
- Update generate autorest with latest version of TypeSpec packages
  • Loading branch information
mikeharder authored Nov 6, 2023
1 parent 185b241 commit 2055e48
Showing 1 changed file with 66 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,10 @@
"paths": {
"/topics/{topicName}:publish": {
"post": {
"operationId": "PublishCloudEvents",
"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. ",
"operationId": "PublishCloudEvent",
"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. ",
"consumes": [
"application/cloudevents-batch+json; charset=utf-8"
"application/cloudevents+json; charset=utf-8"
],
"parameters": [
{
Expand All @@ -72,15 +72,12 @@
"type": "string"
},
{
"name": "events",
"name": "event",
"in": "body",
"description": "Array of Cloud Events being published.",
"description": "Single Cloud Event being published.",
"required": true,
"schema": {
"type": "array",
"items": {
"$ref": "#/definitions/CloudEvent"
}
"$ref": "#/definitions/CloudEvent"
}
}
],
Expand All @@ -103,11 +100,6 @@
}
}
}
},
"x-ms-examples": {
"Publish Cloud Event": {
"$ref": "./examples/publish.json"
}
}
}
},
Expand Down Expand Up @@ -358,6 +350,66 @@
}
}
},
"x-ms-paths": {
"/topics/{topicName}:publish?_overload=publishCloudEvents": {
"post": {
"operationId": "PublishCloudEvents",
"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. ",
"consumes": [
"application/cloudevents-batch+json; charset=utf-8"
],
"parameters": [
{
"$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter"
},
{
"name": "topicName",
"in": "path",
"description": "Topic Name.",
"required": true,
"type": "string"
},
{
"name": "events",
"in": "body",
"description": "Array of Cloud Events being published.",
"required": true,
"schema": {
"type": "array",
"items": {
"$ref": "#/definitions/CloudEvent"
}
}
}
],
"responses": {
"200": {
"description": "The request has succeeded.",
"schema": {
"$ref": "#/definitions/PublishResult"
}
},
"default": {
"description": "An unexpected error response.",
"schema": {
"$ref": "#/definitions/Azure.Core.Foundations.ErrorResponse"
},
"headers": {
"x-ms-error-code": {
"type": "string",
"description": "String error code indicating what went wrong."
}
}
}
},
"x-ms-examples": {
"Publish Cloud Event": {
"$ref": "./examples/publish.json"
}
}
}
}
},
"definitions": {
"AcknowledgeOptions": {
"type": "object",
Expand Down

0 comments on commit 2055e48

Please sign in to comment.