diff --git a/common/config/rush/pnpm-lock.yaml b/common/config/rush/pnpm-lock.yaml index d74bc996ad06..69427e67f577 100644 --- a/common/config/rush/pnpm-lock.yaml +++ b/common/config/rush/pnpm-lock.yaml @@ -4837,7 +4837,7 @@ packages: dependencies: semver: 7.5.4 shelljs: 0.8.5 - typescript: 5.3.0-dev.20231026 + typescript: 5.3.0-dev.20231101 dev: false /eastasianwidth@0.2.0: @@ -9800,8 +9800,8 @@ packages: hasBin: true dev: false - /typescript@5.3.0-dev.20231026: - resolution: {integrity: sha512-TPCRnvIO1nKy3PLJwVyXwZJAQ3silk51ktcvvk1NzYoPtS9p3xX7LNodMA6DDDndhbeMkjMlxb/PmPur2Z+zUQ==} + /typescript@5.3.0-dev.20231101: + resolution: {integrity: sha512-yt5zz7L+TBfzeJhMA/tAEO1YU8J2DWsFN3LbeMslNPXL3S0lR3yvePdl6fXCk7QFjnfaRtXH0noNdWg2imHWXg==} engines: {node: '>=14.17'} hasBin: true dev: false @@ -19778,7 +19778,7 @@ packages: dev: false file:projects/eventgrid.tgz: - resolution: {integrity: sha512-0ORJcn+QKnYzzMZh2vBlMmk4OB+Z0Dy+oIjUBxST3uD+Dai5+dWTy5lsKu6Cn3nzPCfL0G2AlJEbEH6r6mdWGw==, tarball: file:projects/eventgrid.tgz} + resolution: {integrity: sha512-CDJ/ROV0vMGX9QF4vGqp57IrLAwdhXS0PWVqhAvmQeffm6jNcDm2ftyj2/gcN/8MBFOfEyFFcuGfxNAciiIX5Q==, tarball: file:projects/eventgrid.tgz} name: '@rush-temp/eventgrid' version: 0.0.0 dependencies: @@ -19789,6 +19789,7 @@ packages: '@types/node': 16.18.55 '@types/sinon': 10.0.17 '@types/uuid': 8.3.4 + buffer: 6.0.3 c8: 8.0.1 chai: 4.3.10 chai-as-promised: 7.1.1(chai@4.3.10) diff --git a/sdk/eventgrid/eventgrid/CHANGELOG.md b/sdk/eventgrid/eventgrid/CHANGELOG.md index 9f9d2e26b4a6..4771f76fbabb 100644 --- a/sdk/eventgrid/eventgrid/CHANGELOG.md +++ b/sdk/eventgrid/eventgrid/CHANGELOG.md @@ -1,5 +1,20 @@ # Release History +## 5.1.0-beta.1 (2023-11-13) + +### Features Added + +- In the `EventGridClient` class, a new API `renewCloudEventLocks` has been added. +- In the `EventGridClient` class, for the `publishCloudEvent` API, a new option `binaryMode` has been added. This enables the users to send in the binary encoded event. +- For the `ReleaseCloudEventsOptions` interface, a new property `releaseDelayInSeconds` has been added. + +### Breaking Changes + +- The interfaces `RequestOptions`, `ReleaseOptions`, `RejectOptions`, `ClientOptions`, `AcknowledgeOptions` have been removed. +- In the `FailedLockToken` interface, the properties `errorCode` & `errorDescription` have been removed and replaced with new property `error` of type `ErrorModel`. + +Please refer [PR #27666](https://github.com/Azure/azure-sdk-for-js/pull/27666) for further details. + ## 4.13.0-beta.2 (2023-06-26) ### Bugs Fixed diff --git a/sdk/eventgrid/eventgrid/package.json b/sdk/eventgrid/eventgrid/package.json index 1f012ef025ae..dd5b64812e74 100644 --- a/sdk/eventgrid/eventgrid/package.json +++ b/sdk/eventgrid/eventgrid/package.json @@ -3,7 +3,7 @@ "sdk-type": "client", "author": "Microsoft Corporation", "description": "An isomorphic client library for the Azure Event Grid service.", - "version": "4.13.0-beta.2", + "version": "5.1.0-beta.1", "keywords": [ "node", "azure", @@ -97,6 +97,8 @@ "@azure-rest/core-client": "^1.1.3", "@azure/core-tracing": "^1.0.0", "@azure/logger": "^1.0.0", + "@azure/core-util": "^1.6.1", + "buffer": "^6.0.0", "tslib": "^2.2.0", "uuid": "^8.3.0" }, diff --git a/sdk/eventgrid/eventgrid/recordings/browsers/event_grid_client_v2/recording_releases_a_cloud_event.json b/sdk/eventgrid/eventgrid/recordings/browsers/event_grid_client_v2/recording_releases_a_cloud_event.json deleted file mode 100644 index 70309bccbcd1..000000000000 --- a/sdk/eventgrid/eventgrid/recordings/browsers/event_grid_client_v2/recording_releases_a_cloud_event.json +++ /dev/null @@ -1,595 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://endpoint/topics/testtopic1/eventsubscriptions/testsubscription1:receive?api-version=2023-06-01-preview", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip, deflate, br", - "Accept-Language": "en-US", - "Authorization": "Sanitized", - "Connection": "keep-alive", - "Content-Length": "0", - "Referer": "http://localhost:9876/", - "sec-ch-ua": "", - "sec-ch-ua-mobile": "?0", - "sec-ch-ua-platform": "\u0022\u0022", - "Sec-Fetch-Dest": "empty", - "Sec-Fetch-Mode": "cors", - "Sec-Fetch-Site": "same-site", - "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", - "x-ms-client-request-id": "fdfd037a-5d05-47ae-8cda-b02c6e7eb551", - "x-ms-useragent": "azsdk-js-event-grid-modular-rest/1.0.0-beta.1 core-rest-pipeline/1.10.4 OS" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Content-Length": "12", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 22 Jun 2023 19:40:28 GMT" - }, - "ResponseBody": { - "value": [] - } - }, - { - "RequestUri": "https://endpoint/topics/testtopic1:publish?api-version=2023-06-01-preview", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip, deflate, br", - "Accept-Language": "en-US", - "Authorization": "Sanitized", - "Connection": "keep-alive", - "Content-Length": "212", - "Content-Type": "application/cloudevents\u002Bjson; charset=utf-8", - "Referer": "http://localhost:9876/", - "sec-ch-ua": "", - "sec-ch-ua-mobile": "?0", - "sec-ch-ua-platform": "\u0022\u0022", - "Sec-Fetch-Dest": "empty", - "Sec-Fetch-Mode": "cors", - "Sec-Fetch-Site": "same-site", - "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", - "x-ms-client-request-id": "a47abb62-1a03-48f5-84d4-7dfdaa72f8a5", - "x-ms-useragent": "azsdk-js-event-grid-modular-rest/1.0.0-beta.1 core-rest-pipeline/1.10.4 OS" - }, - "RequestBody": { - "specversion": "1.0", - "type": "example", - "source": "https://example.com", - "id": "singleEventId10004", - "time": "2023-06-22T19:40:28.000Z", - "datacontenttype": "application/json", - "data": { - "resourceUri": "https://dummyurl.com" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "Content-Length": "2", - "Content-Type": "application/json", - "Date": "Thu, 22 Jun 2023 19:40:28 GMT" - }, - "ResponseBody": {} - }, - { - "RequestUri": "https://endpoint/topics/testtopic1/eventsubscriptions/testsubscription1:receive?api-version=2023-06-01-preview", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip, deflate, br", - "Accept-Language": "en-US", - "Authorization": "Sanitized", - "Connection": "keep-alive", - "Content-Length": "0", - "Referer": "http://localhost:9876/", - "sec-ch-ua": "", - "sec-ch-ua-mobile": "?0", - "sec-ch-ua-platform": "\u0022\u0022", - "Sec-Fetch-Dest": "empty", - "Sec-Fetch-Mode": "cors", - "Sec-Fetch-Site": "same-site", - "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", - "x-ms-client-request-id": "3919d9a7-d4f8-4bd6-9ea3-24412923d2a1", - "x-ms-useragent": "azsdk-js-event-grid-modular-rest/1.0.0-beta.1 core-rest-pipeline/1.10.4 OS" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Content-Length": "364", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 22 Jun 2023 19:40:28 GMT" - }, - "ResponseBody": { - "value": [ - { - "brokerProperties": { - "lockToken": "CiYKJEM5OTk5RDE5LTExN0ItNEM2Ni04NjNFLTg2QUJERkVBODlGMRISChDcTYLOCIBCBJ8aeCD\u002B0gd5", - "deliveryCount": 1 - }, - "event": { - "type": "example", - "source": "https://example.com", - "time": "2023-06-22T19:40:28Z", - "id": "singleEventId10004", - "datacontenttype": "application/json", - "specversion": "1.0", - "data": { - "resourceUri": "https://dummyurl.com" - } - } - } - ] - } - }, - { - "RequestUri": "https://endpoint/topics/testtopic1/eventsubscriptions/testsubscription1:release?api-version=2023-06-01-preview", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip, deflate, br", - "Accept-Language": "en-US", - "Authorization": "Sanitized", - "Connection": "keep-alive", - "Content-Length": "99", - "Content-Type": "application/json; charset=utf-8", - "Referer": "http://localhost:9876/", - "sec-ch-ua": "", - "sec-ch-ua-mobile": "?0", - "sec-ch-ua-platform": "\u0022\u0022", - "Sec-Fetch-Dest": "empty", - "Sec-Fetch-Mode": "cors", - "Sec-Fetch-Site": "same-site", - "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", - "x-ms-client-request-id": "8911b9b2-d4af-4368-ac4e-975f44ad4e9c", - "x-ms-useragent": "azsdk-js-event-grid-modular-rest/1.0.0-beta.1 core-rest-pipeline/1.10.4 OS" - }, - "RequestBody": { - "lockTokens": [ - "CiYKJEM5OTk5RDE5LTExN0ItNEM2Ni04NjNFLTg2QUJERkVBODlGMRISChDcTYLOCIBCBJ8aeCD\u002B0gd5" - ] - }, - "StatusCode": 200, - "ResponseHeaders": { - "Content-Length": "130", - "Content-Type": "application/json", - "Date": "Thu, 22 Jun 2023 19:40:28 GMT" - }, - "ResponseBody": { - "succeededLockTokens": [ - "CiYKJEM5OTk5RDE5LTExN0ItNEM2Ni04NjNFLTg2QUJERkVBODlGMRISChDcTYLOCIBCBJ8aeCD\u002B0gd5" - ], - "failedLockTokens": [] - } - }, - { - "RequestUri": "https://endpoint/topics/testtopic1/eventsubscriptions/testsubscription1:receive?api-version=2023-06-01-preview", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip, deflate, br", - "Accept-Language": "en-US", - "Authorization": "Sanitized", - "Connection": "keep-alive", - "Content-Length": "0", - "Referer": "http://localhost:9876/", - "sec-ch-ua": "", - "sec-ch-ua-mobile": "?0", - "sec-ch-ua-platform": "\u0022\u0022", - "Sec-Fetch-Dest": "empty", - "Sec-Fetch-Mode": "cors", - "Sec-Fetch-Site": "same-site", - "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", - "x-ms-client-request-id": "9837e112-fd33-4fe8-9f2e-11922085d922", - "x-ms-useragent": "azsdk-js-event-grid-modular-rest/1.0.0-beta.1 core-rest-pipeline/1.10.4 OS" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Content-Length": "364", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 22 Jun 2023 19:40:28 GMT" - }, - "ResponseBody": { - "value": [ - { - "brokerProperties": { - "lockToken": "CiYKJEM5OTk5RDE5LTExN0ItNEM2Ni04NjNFLTg2QUJERkVBODlGMRISChDIyXSiUjdOqYCJfgaWMGPE", - "deliveryCount": 2 - }, - "event": { - "type": "example", - "source": "https://example.com", - "time": "2023-06-22T19:40:28Z", - "id": "singleEventId10004", - "datacontenttype": "application/json", - "specversion": "1.0", - "data": { - "resourceUri": "https://dummyurl.com" - } - } - } - ] - } - }, - { - "RequestUri": "https://endpoint/topics/testtopic1/eventsubscriptions/testsubscription1:release?api-version=2023-06-01-preview", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip, deflate, br", - "Accept-Language": "en-US", - "Authorization": "Sanitized", - "Connection": "keep-alive", - "Content-Length": "99", - "Content-Type": "application/json; charset=utf-8", - "Referer": "http://localhost:9876/", - "sec-ch-ua": "", - "sec-ch-ua-mobile": "?0", - "sec-ch-ua-platform": "\u0022\u0022", - "Sec-Fetch-Dest": "empty", - "Sec-Fetch-Mode": "cors", - "Sec-Fetch-Site": "same-site", - "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", - "x-ms-client-request-id": "2d1f142f-f7b1-4440-96bb-8a78c17030ea", - "x-ms-useragent": "azsdk-js-event-grid-modular-rest/1.0.0-beta.1 core-rest-pipeline/1.10.4 OS" - }, - "RequestBody": { - "lockTokens": [ - "CiYKJEM5OTk5RDE5LTExN0ItNEM2Ni04NjNFLTg2QUJERkVBODlGMRISChDIyXSiUjdOqYCJfgaWMGPE" - ] - }, - "StatusCode": 200, - "ResponseHeaders": { - "Content-Length": "130", - "Content-Type": "application/json", - "Date": "Thu, 22 Jun 2023 19:40:28 GMT" - }, - "ResponseBody": { - "succeededLockTokens": [ - "CiYKJEM5OTk5RDE5LTExN0ItNEM2Ni04NjNFLTg2QUJERkVBODlGMRISChDIyXSiUjdOqYCJfgaWMGPE" - ], - "failedLockTokens": [] - } - }, - { - "RequestUri": "https://endpoint/topics/testtopic1/eventsubscriptions/testsubscription1:receive?api-version=2023-06-01-preview", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip, deflate, br", - "Accept-Language": "en-US", - "Authorization": "Sanitized", - "Connection": "keep-alive", - "Content-Length": "0", - "Referer": "http://localhost:9876/", - "sec-ch-ua": "", - "sec-ch-ua-mobile": "?0", - "sec-ch-ua-platform": "\u0022\u0022", - "Sec-Fetch-Dest": "empty", - "Sec-Fetch-Mode": "cors", - "Sec-Fetch-Site": "same-site", - "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", - "x-ms-client-request-id": "c883ecb7-11f8-4a33-8630-7ddce39e0884", - "x-ms-useragent": "azsdk-js-event-grid-modular-rest/1.0.0-beta.1 core-rest-pipeline/1.10.4 OS" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Content-Length": "364", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 22 Jun 2023 19:40:28 GMT" - }, - "ResponseBody": { - "value": [ - { - "brokerProperties": { - "lockToken": "CiYKJEM5OTk5RDE5LTExN0ItNEM2Ni04NjNFLTg2QUJERkVBODlGMRISChA1h6LWsOBMAIL/s7KxRcbd", - "deliveryCount": 3 - }, - "event": { - "type": "example", - "source": "https://example.com", - "time": "2023-06-22T19:40:28Z", - "id": "singleEventId10004", - "datacontenttype": "application/json", - "specversion": "1.0", - "data": { - "resourceUri": "https://dummyurl.com" - } - } - } - ] - } - }, - { - "RequestUri": "https://endpoint/topics/testtopic1/eventsubscriptions/testsubscription1:release?api-version=2023-06-01-preview", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip, deflate, br", - "Accept-Language": "en-US", - "Authorization": "Sanitized", - "Connection": "keep-alive", - "Content-Length": "99", - "Content-Type": "application/json; charset=utf-8", - "Referer": "http://localhost:9876/", - "sec-ch-ua": "", - "sec-ch-ua-mobile": "?0", - "sec-ch-ua-platform": "\u0022\u0022", - "Sec-Fetch-Dest": "empty", - "Sec-Fetch-Mode": "cors", - "Sec-Fetch-Site": "same-site", - "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", - "x-ms-client-request-id": "8cb6c36e-c3fe-4fbb-ac08-b9625be5b9ce", - "x-ms-useragent": "azsdk-js-event-grid-modular-rest/1.0.0-beta.1 core-rest-pipeline/1.10.4 OS" - }, - "RequestBody": { - "lockTokens": [ - "CiYKJEM5OTk5RDE5LTExN0ItNEM2Ni04NjNFLTg2QUJERkVBODlGMRISChA1h6LWsOBMAIL/s7KxRcbd" - ] - }, - "StatusCode": 200, - "ResponseHeaders": { - "Content-Length": "130", - "Content-Type": "application/json", - "Date": "Thu, 22 Jun 2023 19:40:28 GMT" - }, - "ResponseBody": { - "succeededLockTokens": [ - "CiYKJEM5OTk5RDE5LTExN0ItNEM2Ni04NjNFLTg2QUJERkVBODlGMRISChA1h6LWsOBMAIL/s7KxRcbd" - ], - "failedLockTokens": [] - } - }, - { - "RequestUri": "https://endpoint/topics/testtopic1/eventsubscriptions/testsubscription1:receive?api-version=2023-06-01-preview", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip, deflate, br", - "Accept-Language": "en-US", - "Authorization": "Sanitized", - "Connection": "keep-alive", - "Content-Length": "0", - "Referer": "http://localhost:9876/", - "sec-ch-ua": "", - "sec-ch-ua-mobile": "?0", - "sec-ch-ua-platform": "\u0022\u0022", - "Sec-Fetch-Dest": "empty", - "Sec-Fetch-Mode": "cors", - "Sec-Fetch-Site": "same-site", - "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", - "x-ms-client-request-id": "b5ac66dc-1aaa-4abb-881d-fe5529117e68", - "x-ms-useragent": "azsdk-js-event-grid-modular-rest/1.0.0-beta.1 core-rest-pipeline/1.10.4 OS" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Content-Length": "364", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 22 Jun 2023 19:40:29 GMT" - }, - "ResponseBody": { - "value": [ - { - "brokerProperties": { - "lockToken": "CiYKJEM5OTk5RDE5LTExN0ItNEM2Ni04NjNFLTg2QUJERkVBODlGMRISChA0zZfUqVRKxIOyVNjQ01Jz", - "deliveryCount": 4 - }, - "event": { - "type": "example", - "source": "https://example.com", - "time": "2023-06-22T19:40:28Z", - "id": "singleEventId10004", - "datacontenttype": "application/json", - "specversion": "1.0", - "data": { - "resourceUri": "https://dummyurl.com" - } - } - } - ] - } - }, - { - "RequestUri": "https://endpoint/topics/testtopic1/eventsubscriptions/testsubscription1:release?api-version=2023-06-01-preview", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip, deflate, br", - "Accept-Language": "en-US", - "Authorization": "Sanitized", - "Connection": "keep-alive", - "Content-Length": "99", - "Content-Type": "application/json; charset=utf-8", - "Referer": "http://localhost:9876/", - "sec-ch-ua": "", - "sec-ch-ua-mobile": "?0", - "sec-ch-ua-platform": "\u0022\u0022", - "Sec-Fetch-Dest": "empty", - "Sec-Fetch-Mode": "cors", - "Sec-Fetch-Site": "same-site", - "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", - "x-ms-client-request-id": "984dad7e-e9cc-4ff3-ac56-1351136dc9c4", - "x-ms-useragent": "azsdk-js-event-grid-modular-rest/1.0.0-beta.1 core-rest-pipeline/1.10.4 OS" - }, - "RequestBody": { - "lockTokens": [ - "CiYKJEM5OTk5RDE5LTExN0ItNEM2Ni04NjNFLTg2QUJERkVBODlGMRISChA0zZfUqVRKxIOyVNjQ01Jz" - ] - }, - "StatusCode": 200, - "ResponseHeaders": { - "Content-Length": "130", - "Content-Type": "application/json", - "Date": "Thu, 22 Jun 2023 19:40:29 GMT" - }, - "ResponseBody": { - "succeededLockTokens": [ - "CiYKJEM5OTk5RDE5LTExN0ItNEM2Ni04NjNFLTg2QUJERkVBODlGMRISChA0zZfUqVRKxIOyVNjQ01Jz" - ], - "failedLockTokens": [] - } - }, - { - "RequestUri": "https://endpoint/topics/testtopic1/eventsubscriptions/testsubscription1:receive?api-version=2023-06-01-preview", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip, deflate, br", - "Accept-Language": "en-US", - "Authorization": "Sanitized", - "Connection": "keep-alive", - "Content-Length": "0", - "Referer": "http://localhost:9876/", - "sec-ch-ua": "", - "sec-ch-ua-mobile": "?0", - "sec-ch-ua-platform": "\u0022\u0022", - "Sec-Fetch-Dest": "empty", - "Sec-Fetch-Mode": "cors", - "Sec-Fetch-Site": "same-site", - "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", - "x-ms-client-request-id": "57b7d40b-2e2e-4aaf-af82-895f95509c0d", - "x-ms-useragent": "azsdk-js-event-grid-modular-rest/1.0.0-beta.1 core-rest-pipeline/1.10.4 OS" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Content-Length": "364", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 22 Jun 2023 19:40:29 GMT" - }, - "ResponseBody": { - "value": [ - { - "brokerProperties": { - "lockToken": "CiYKJEM5OTk5RDE5LTExN0ItNEM2Ni04NjNFLTg2QUJERkVBODlGMRISChBOeCZ4H/xH4Z/PTYocLeJC", - "deliveryCount": 5 - }, - "event": { - "type": "example", - "source": "https://example.com", - "time": "2023-06-22T19:40:28Z", - "id": "singleEventId10004", - "datacontenttype": "application/json", - "specversion": "1.0", - "data": { - "resourceUri": "https://dummyurl.com" - } - } - } - ] - } - }, - { - "RequestUri": "https://endpoint/topics/testtopic1/eventsubscriptions/testsubscription1:release?api-version=2023-06-01-preview", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip, deflate, br", - "Accept-Language": "en-US", - "Authorization": "Sanitized", - "Connection": "keep-alive", - "Content-Length": "99", - "Content-Type": "application/json; charset=utf-8", - "Referer": "http://localhost:9876/", - "sec-ch-ua": "", - "sec-ch-ua-mobile": "?0", - "sec-ch-ua-platform": "\u0022\u0022", - "Sec-Fetch-Dest": "empty", - "Sec-Fetch-Mode": "cors", - "Sec-Fetch-Site": "same-site", - "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", - "x-ms-client-request-id": "81af9e54-0a67-4a40-8e9a-8e80b53f9588", - "x-ms-useragent": "azsdk-js-event-grid-modular-rest/1.0.0-beta.1 core-rest-pipeline/1.10.4 OS" - }, - "RequestBody": { - "lockTokens": [ - "CiYKJEM5OTk5RDE5LTExN0ItNEM2Ni04NjNFLTg2QUJERkVBODlGMRISChBOeCZ4H/xH4Z/PTYocLeJC" - ] - }, - "StatusCode": 200, - "ResponseHeaders": { - "Content-Length": "130", - "Content-Type": "application/json", - "Date": "Thu, 22 Jun 2023 19:40:29 GMT" - }, - "ResponseBody": { - "succeededLockTokens": [ - "CiYKJEM5OTk5RDE5LTExN0ItNEM2Ni04NjNFLTg2QUJERkVBODlGMRISChBOeCZ4H/xH4Z/PTYocLeJC" - ], - "failedLockTokens": [] - } - }, - { - "RequestUri": "https://endpoint/topics/testtopic1/eventsubscriptions/testsubscription1:receive?api-version=2023-06-01-preview", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip, deflate, br", - "Accept-Language": "en-US", - "Authorization": "Sanitized", - "Connection": "keep-alive", - "Content-Length": "0", - "Referer": "http://localhost:9876/", - "sec-ch-ua": "", - "sec-ch-ua-mobile": "?0", - "sec-ch-ua-platform": "\u0022\u0022", - "Sec-Fetch-Dest": "empty", - "Sec-Fetch-Mode": "cors", - "Sec-Fetch-Site": "same-site", - "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", - "x-ms-client-request-id": "45f2afac-1e9e-4a43-b168-05d665a42d64", - "x-ms-useragent": "azsdk-js-event-grid-modular-rest/1.0.0-beta.1 core-rest-pipeline/1.10.4 OS" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Content-Length": "12", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 22 Jun 2023 19:41:29 GMT" - }, - "ResponseBody": { - "value": [] - } - }, - { - "RequestUri": "https://endpoint/topics/testtopic1/eventsubscriptions/testsubscription1:receive?api-version=2023-06-01-preview", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip, deflate, br", - "Accept-Language": "en-US", - "Authorization": "Sanitized", - "Connection": "keep-alive", - "Content-Length": "0", - "Referer": "http://localhost:9876/", - "sec-ch-ua": "", - "sec-ch-ua-mobile": "?0", - "sec-ch-ua-platform": "\u0022\u0022", - "Sec-Fetch-Dest": "empty", - "Sec-Fetch-Mode": "cors", - "Sec-Fetch-Site": "same-site", - "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", - "x-ms-client-request-id": "336bfd32-40d5-4d9a-8c61-1be7d7824eac", - "x-ms-useragent": "azsdk-js-event-grid-modular-rest/1.0.0-beta.1 core-rest-pipeline/1.10.4 OS" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Content-Length": "12", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 22 Jun 2023 19:42:29 GMT" - }, - "ResponseBody": { - "value": [] - } - } - ], - "Variables": { - "singleEventDate": "Thu Jun 22 2023 12:40:28 GMT-0700 (Pacific Daylight Time)", - "singleEventId": "singleEventId10004" - } -} diff --git a/sdk/eventgrid/eventgrid/recordings/browsers/event_grid_client_v2_binary_mode_publishing/recording_errors_a_single_cloud_event__non_binary_data.json b/sdk/eventgrid/eventgrid/recordings/browsers/event_grid_client_v2_binary_mode_publishing/recording_errors_a_single_cloud_event__non_binary_data.json new file mode 100644 index 000000000000..e531d8e99421 --- /dev/null +++ b/sdk/eventgrid/eventgrid/recordings/browsers/event_grid_client_v2_binary_mode_publishing/recording_errors_a_single_cloud_event__non_binary_data.json @@ -0,0 +1,72 @@ +{ + "Entries": [ + { + "RequestUri": "https://endpoint/topics/testtopic1/eventsubscriptions/testsubscription1:receive?api-version=2023-10-01-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "0", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "4d4f0a5b-ccb2-4bf9-a886-3de24bdbb0dd", + "x-ms-useragent": "azsdk-js-eventgrid-rest/4.13.0-beta.2 core-rest-pipeline/1.11.1 OS" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Length": "12", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 07 Nov 2023 01:29:10 GMT" + }, + "ResponseBody": { + "value": [] + } + }, + { + "RequestUri": "https://endpoint/topics/testtopic1/eventsubscriptions/testsubscription1:receive?api-version=2023-10-01-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "0", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "3f5bc8d7-0153-4bf9-bb0a-6b792976b368", + "x-ms-useragent": "azsdk-js-eventgrid-rest/4.13.0-beta.2 core-rest-pipeline/1.11.1 OS" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Length": "12", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 07 Nov 2023 01:30:11 GMT" + }, + "ResponseBody": { + "value": [] + } + } + ], + "Variables": { + "singleEventDate": "Mon Nov 06 2023 17:29:10 GMT-0800 (Pacific Standard Time)", + "singleEventId": "singleEventIdV210006" + } +} diff --git a/sdk/eventgrid/eventgrid/recordings/browsers/event_grid_client_v2_binary_mode_publishing/recording_publishes_a_single_cloud_event__binary_data.json b/sdk/eventgrid/eventgrid/recordings/browsers/event_grid_client_v2_binary_mode_publishing/recording_publishes_a_single_cloud_event__binary_data.json new file mode 100644 index 000000000000..598c5c519efa --- /dev/null +++ b/sdk/eventgrid/eventgrid/recordings/browsers/event_grid_client_v2_binary_mode_publishing/recording_publishes_a_single_cloud_event__binary_data.json @@ -0,0 +1,379 @@ +{ + "Entries": [ + { + "RequestUri": "https://endpoint/topics/testtopic1/eventsubscriptions/testsubscription1:receive?api-version=2023-10-01-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "0", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "c5f60cae-200b-4467-b443-32fe2841fec0", + "x-ms-useragent": "azsdk-js-eventgrid-rest/4.13.0-beta.2 core-rest-pipeline/1.11.1 OS" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Length": "12", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 07 Nov 2023 01:31:11 GMT" + }, + "ResponseBody": { + "value": [] + } + }, + { + "RequestUri": "https://endpoint/topics/testtopic1:publish?api-version=2023-10-01-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "ce-datacontenttype": "application/cloudevents\u002Bjson; charset=utf-8", + "ce-id": "singleEventIdV210007", + "ce-source": "https://example.com", + "ce-specversion": "1.0", + "ce-time": "2023-11-07T01:31:11.000Z", + "ce-type": "example", + "Connection": "keep-alive", + "Content-Length": "369", + "Content-Type": "application/cloudevents\u002Bjson; charset=utf-8", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "a38cce73-297c-4fae-9194-f5a7302af9d8", + "x-ms-useragent": "azsdk-js-eventgrid-rest/4.13.0-beta.2 core-rest-pipeline/1.11.1 OS" + }, + "RequestBody": { + "id": "singleEventIdV210007", + "source": "https://example.com", + "data": { + "type": "Buffer", + "data": [ + 123, + 34, + 114, + 101, + 115, + 111, + 117, + 114, + 99, + 101, + 85, + 114, + 105, + 34, + 58, + 34, + 104, + 116, + 116, + 112, + 115, + 58, + 47, + 47, + 100, + 117, + 109, + 109, + 121, + 117, + 114, + 108, + 46, + 99, + 111, + 109, + 34, + 125 + ] + }, + "type": "example", + "time": "2023-11-07T01:31:11.000Z", + "specversion": "1.0", + "datacontenttype": "application/cloudevents\u002Bjson; charset=utf-8" + }, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Length": "2", + "Content-Type": "application/json", + "Date": "Tue, 07 Nov 2023 01:31:11 GMT" + }, + "ResponseBody": {} + }, + { + "RequestUri": "https://endpoint/topics/testtopic1/eventsubscriptions/testsubscription1:receive?api-version=2023-10-01-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "0", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "eaf29711-5401-4ca3-a92b-c115a023dfdd", + "x-ms-useragent": "azsdk-js-eventgrid-rest/4.13.0-beta.2 core-rest-pipeline/1.11.1 OS" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Length": "521", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 07 Nov 2023 01:31:11 GMT" + }, + "ResponseBody": { + "value": [ + { + "brokerProperties": { + "lockToken": "CiYKJEVEMjNGRjVGLUU0MDktNEE5Ni04NDYwLUYyMTA2M0NFNDg4NxISChD\u002BkPkoOmlEKasG8z7kNLXz", + "deliveryCount": 1 + }, + "event": { + "type": "example", + "source": "https://example.com", + "time": "2023-11-07T01:31:11Z", + "id": "singleEventIdV210007", + "datacontenttype": "application/cloudevents\u002Bjson; charset=utf-8", + "specversion": "1.0", + "data": { + "data": [ + 123, + 34, + 114, + 101, + 115, + 111, + 117, + 114, + 99, + 101, + 85, + 114, + 105, + 34, + 58, + 34, + 104, + 116, + 116, + 112, + 115, + 58, + 47, + 47, + 100, + 117, + 109, + 109, + 121, + 117, + 114, + 108, + 46, + 99, + 111, + 109, + 34, + 125 + ], + "type": "Buffer" + } + } + } + ] + } + }, + { + "RequestUri": "https://endpoint/topics/testtopic1/eventsubscriptions/testsubscription1:receive?api-version=2023-10-01-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "0", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "4fffee97-64fc-4094-af45-81307cba02dc", + "x-ms-useragent": "azsdk-js-eventgrid-rest/4.13.0-beta.2 core-rest-pipeline/1.11.1 OS" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Length": "521", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 07 Nov 2023 01:32:11 GMT" + }, + "ResponseBody": { + "value": [ + { + "brokerProperties": { + "lockToken": "CiYKJEVEMjNGRjVGLUU0MDktNEE5Ni04NDYwLUYyMTA2M0NFNDg4NxISChBggnoKVvZO35KJQnGFfrye", + "deliveryCount": 2 + }, + "event": { + "type": "example", + "source": "https://example.com", + "time": "2023-11-07T01:31:11Z", + "id": "singleEventIdV210007", + "datacontenttype": "application/cloudevents\u002Bjson; charset=utf-8", + "specversion": "1.0", + "data": { + "data": [ + 123, + 34, + 114, + 101, + 115, + 111, + 117, + 114, + 99, + 101, + 85, + 114, + 105, + 34, + 58, + 34, + 104, + 116, + 116, + 112, + 115, + 58, + 47, + 47, + 100, + 117, + 109, + 109, + 121, + 117, + 114, + 108, + 46, + 99, + 111, + 109, + 34, + 125 + ], + "type": "Buffer" + } + } + } + ] + } + }, + { + "RequestUri": "https://endpoint/topics/testtopic1/eventsubscriptions/testsubscription1:acknowledge?api-version=2023-10-01-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "99", + "Content-Type": "application/json; charset=UTF-8", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "32c56be5-852a-41af-9de6-3b3ab67fc917", + "x-ms-useragent": "azsdk-js-eventgrid-rest/4.13.0-beta.2 core-rest-pipeline/1.11.1 OS" + }, + "RequestBody": { + "lockTokens": [ + "CiYKJEVEMjNGRjVGLUU0MDktNEE5Ni04NDYwLUYyMTA2M0NFNDg4NxISChBggnoKVvZO35KJQnGFfrye" + ] + }, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Length": "130", + "Content-Type": "application/json", + "Date": "Tue, 07 Nov 2023 01:32:11 GMT" + }, + "ResponseBody": { + "succeededLockTokens": [ + "CiYKJEVEMjNGRjVGLUU0MDktNEE5Ni04NDYwLUYyMTA2M0NFNDg4NxISChBggnoKVvZO35KJQnGFfrye" + ], + "failedLockTokens": [] + } + }, + { + "RequestUri": "https://endpoint/topics/testtopic1/eventsubscriptions/testsubscription1:receive?api-version=2023-10-01-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "0", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "bcc84350-53b9-4bb6-aaed-fde1b001aa57", + "x-ms-useragent": "azsdk-js-eventgrid-rest/4.13.0-beta.2 core-rest-pipeline/1.11.1 OS" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Length": "12", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 07 Nov 2023 01:33:12 GMT" + }, + "ResponseBody": { + "value": [] + } + } + ], + "Variables": { + "singleEventDate": "Mon Nov 06 2023 17:31:11 GMT-0800 (Pacific Standard Time)", + "singleEventId": "singleEventIdV210007" + } +} diff --git a/sdk/eventgrid/eventgrid/recordings/browsers/event_grid_client_v2/recording_publishes_a_single_cloud_event.json b/sdk/eventgrid/eventgrid/recordings/browsers/event_grid_client_v2_non_binary_mode_publishing/recording_publishes_a_single_cloud_event.json similarity index 71% rename from sdk/eventgrid/eventgrid/recordings/browsers/event_grid_client_v2/recording_publishes_a_single_cloud_event.json rename to sdk/eventgrid/eventgrid/recordings/browsers/event_grid_client_v2_non_binary_mode_publishing/recording_publishes_a_single_cloud_event.json index cb89329d18fb..2298a25f1d7b 100644 --- a/sdk/eventgrid/eventgrid/recordings/browsers/event_grid_client_v2/recording_publishes_a_single_cloud_event.json +++ b/sdk/eventgrid/eventgrid/recordings/browsers/event_grid_client_v2_non_binary_mode_publishing/recording_publishes_a_single_cloud_event.json @@ -1,7 +1,7 @@ { "Entries": [ { - "RequestUri": "https://endpoint/topics/testtopic1/eventsubscriptions/testsubscription1:receive?api-version=2023-06-01-preview", + "RequestUri": "https://endpoint/topics/testtopic1/eventsubscriptions/testsubscription1:receive?api-version=2023-10-01-preview", "RequestMethod": "POST", "RequestHeaders": { "Accept": "application/json", @@ -18,22 +18,22 @@ "Sec-Fetch-Mode": "cors", "Sec-Fetch-Site": "same-site", "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", - "x-ms-client-request-id": "3200ea14-5e94-42e3-90bc-984a46f66b1e", - "x-ms-useragent": "azsdk-js-event-grid-modular-rest/1.0.0-beta.1 core-rest-pipeline/1.10.4 OS" + "x-ms-client-request-id": "f02112f3-9896-4d23-b4e1-382289b08976", + "x-ms-useragent": "azsdk-js-eventgrid-rest/4.13.0-beta.2 core-rest-pipeline/1.11.1 OS" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { "Content-Length": "12", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 22 Jun 2023 19:34:25 GMT" + "Date": "Tue, 07 Nov 2023 01:13:04 GMT" }, "ResponseBody": { "value": [] } }, { - "RequestUri": "https://endpoint/topics/testtopic1:publish?api-version=2023-06-01-preview", + "RequestUri": "https://endpoint/topics/testtopic1:publish?api-version=2023-10-01-preview", "RequestMethod": "POST", "RequestHeaders": { "Accept": "application/json", @@ -41,7 +41,7 @@ "Accept-Language": "en-US", "Authorization": "Sanitized", "Connection": "keep-alive", - "Content-Length": "212", + "Content-Length": "241", "Content-Type": "application/cloudevents\u002Bjson; charset=utf-8", "Referer": "http://localhost:9876/", "sec-ch-ua": "", @@ -51,30 +51,30 @@ "Sec-Fetch-Mode": "cors", "Sec-Fetch-Site": "same-site", "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", - "x-ms-client-request-id": "16af481c-4d07-4db7-a615-951c540298f8", - "x-ms-useragent": "azsdk-js-event-grid-modular-rest/1.0.0-beta.1 core-rest-pipeline/1.10.4 OS" + "x-ms-client-request-id": "1379727a-e67f-45ce-b190-40780dc0bc17", + "x-ms-useragent": "azsdk-js-eventgrid-rest/4.13.0-beta.2 core-rest-pipeline/1.11.1 OS" }, "RequestBody": { - "specversion": "1.0", - "type": "example", + "id": "singleEventIdV210001", "source": "https://example.com", - "id": "singleEventId10001", - "time": "2023-06-22T19:34:25.000Z", - "datacontenttype": "application/json", "data": { "resourceUri": "https://dummyurl.com" - } + }, + "type": "example", + "time": "2023-11-07T01:13:03.000Z", + "specversion": "1.0", + "datacontenttype": "application/cloudevents\u002Bjson; charset=utf-8" }, "StatusCode": 200, "ResponseHeaders": { "Content-Length": "2", "Content-Type": "application/json", - "Date": "Thu, 22 Jun 2023 19:34:25 GMT" + "Date": "Tue, 07 Nov 2023 01:13:04 GMT" }, "ResponseBody": {} }, { - "RequestUri": "https://endpoint/topics/testtopic1/eventsubscriptions/testsubscription1:receive?api-version=2023-06-01-preview", + "RequestUri": "https://endpoint/topics/testtopic1/eventsubscriptions/testsubscription1:receive?api-version=2023-10-01-preview", "RequestMethod": "POST", "RequestHeaders": { "Accept": "application/json", @@ -91,29 +91,29 @@ "Sec-Fetch-Mode": "cors", "Sec-Fetch-Site": "same-site", "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", - "x-ms-client-request-id": "bb60f116-07bc-4d8d-aa7c-ff08fbccf0ce", - "x-ms-useragent": "azsdk-js-event-grid-modular-rest/1.0.0-beta.1 core-rest-pipeline/1.10.4 OS" + "x-ms-client-request-id": "6fff1a81-eee8-46da-8d94-3680f6bfe7ac", + "x-ms-useragent": "azsdk-js-eventgrid-rest/4.13.0-beta.2 core-rest-pipeline/1.11.1 OS" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "Content-Length": "364", + "Content-Length": "393", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 22 Jun 2023 19:34:26 GMT" + "Date": "Tue, 07 Nov 2023 01:13:04 GMT" }, "ResponseBody": { "value": [ { "brokerProperties": { - "lockToken": "CiYKJEM5OTk5RDE5LTExN0ItNEM2Ni04NjNFLTg2QUJERkVBODlGMRISChCJLcPXvo1Ecaq6b7fgtczw", + "lockToken": "CiYKJEVEMjNGRjVGLUU0MDktNEE5Ni04NDYwLUYyMTA2M0NFNDg4NxISChC1IWlY5MFCFIsxTtSpBToa", "deliveryCount": 1 }, "event": { "type": "example", "source": "https://example.com", - "time": "2023-06-22T19:34:25Z", - "id": "singleEventId10001", - "datacontenttype": "application/json", + "time": "2023-11-07T01:13:03Z", + "id": "singleEventIdV210001", + "datacontenttype": "application/cloudevents\u002Bjson; charset=utf-8", "specversion": "1.0", "data": { "resourceUri": "https://dummyurl.com" @@ -124,7 +124,7 @@ } }, { - "RequestUri": "https://endpoint/topics/testtopic1/eventsubscriptions/testsubscription1:receive?api-version=2023-06-01-preview", + "RequestUri": "https://endpoint/topics/testtopic1/eventsubscriptions/testsubscription1:receive?api-version=2023-10-01-preview", "RequestMethod": "POST", "RequestHeaders": { "Accept": "application/json", @@ -141,29 +141,29 @@ "Sec-Fetch-Mode": "cors", "Sec-Fetch-Site": "same-site", "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", - "x-ms-client-request-id": "c07bfd98-a14d-42b8-9b18-034ad665267d", - "x-ms-useragent": "azsdk-js-event-grid-modular-rest/1.0.0-beta.1 core-rest-pipeline/1.10.4 OS" + "x-ms-client-request-id": "f5b65b0b-674e-4fab-b29b-f1135a718883", + "x-ms-useragent": "azsdk-js-eventgrid-rest/4.13.0-beta.2 core-rest-pipeline/1.11.1 OS" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "Content-Length": "364", + "Content-Length": "393", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 22 Jun 2023 19:35:26 GMT" + "Date": "Tue, 07 Nov 2023 01:14:04 GMT" }, "ResponseBody": { "value": [ { "brokerProperties": { - "lockToken": "CiYKJEM5OTk5RDE5LTExN0ItNEM2Ni04NjNFLTg2QUJERkVBODlGMRISChABAydm8CJMTItq5TL99UN5", + "lockToken": "CiYKJEVEMjNGRjVGLUU0MDktNEE5Ni04NDYwLUYyMTA2M0NFNDg4NxISChAav7XI5Q5Hybu8y6HcPPQd", "deliveryCount": 2 }, "event": { "type": "example", "source": "https://example.com", - "time": "2023-06-22T19:34:25Z", - "id": "singleEventId10001", - "datacontenttype": "application/json", + "time": "2023-11-07T01:13:03Z", + "id": "singleEventIdV210001", + "datacontenttype": "application/cloudevents\u002Bjson; charset=utf-8", "specversion": "1.0", "data": { "resourceUri": "https://dummyurl.com" @@ -174,7 +174,7 @@ } }, { - "RequestUri": "https://endpoint/topics/testtopic1/eventsubscriptions/testsubscription1:acknowledge?api-version=2023-06-01-preview", + "RequestUri": "https://endpoint/topics/testtopic1/eventsubscriptions/testsubscription1:acknowledge?api-version=2023-10-01-preview", "RequestMethod": "POST", "RequestHeaders": { "Accept": "application/json", @@ -183,7 +183,7 @@ "Authorization": "Sanitized", "Connection": "keep-alive", "Content-Length": "99", - "Content-Type": "application/json; charset=utf-8", + "Content-Type": "application/json; charset=UTF-8", "Referer": "http://localhost:9876/", "sec-ch-ua": "", "sec-ch-ua-mobile": "?0", @@ -192,29 +192,29 @@ "Sec-Fetch-Mode": "cors", "Sec-Fetch-Site": "same-site", "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", - "x-ms-client-request-id": "d77388bf-f495-464f-aa11-584a40bbcd9d", - "x-ms-useragent": "azsdk-js-event-grid-modular-rest/1.0.0-beta.1 core-rest-pipeline/1.10.4 OS" + "x-ms-client-request-id": "819bbf36-3031-4dac-8629-720ad3897b29", + "x-ms-useragent": "azsdk-js-eventgrid-rest/4.13.0-beta.2 core-rest-pipeline/1.11.1 OS" }, "RequestBody": { "lockTokens": [ - "CiYKJEM5OTk5RDE5LTExN0ItNEM2Ni04NjNFLTg2QUJERkVBODlGMRISChABAydm8CJMTItq5TL99UN5" + "CiYKJEVEMjNGRjVGLUU0MDktNEE5Ni04NDYwLUYyMTA2M0NFNDg4NxISChAav7XI5Q5Hybu8y6HcPPQd" ] }, "StatusCode": 200, "ResponseHeaders": { "Content-Length": "130", "Content-Type": "application/json", - "Date": "Thu, 22 Jun 2023 19:35:26 GMT" + "Date": "Tue, 07 Nov 2023 01:14:04 GMT" }, "ResponseBody": { "succeededLockTokens": [ - "CiYKJEM5OTk5RDE5LTExN0ItNEM2Ni04NjNFLTg2QUJERkVBODlGMRISChABAydm8CJMTItq5TL99UN5" + "CiYKJEVEMjNGRjVGLUU0MDktNEE5Ni04NDYwLUYyMTA2M0NFNDg4NxISChAav7XI5Q5Hybu8y6HcPPQd" ], "failedLockTokens": [] } }, { - "RequestUri": "https://endpoint/topics/testtopic1/eventsubscriptions/testsubscription1:receive?api-version=2023-06-01-preview", + "RequestUri": "https://endpoint/topics/testtopic1/eventsubscriptions/testsubscription1:receive?api-version=2023-10-01-preview", "RequestMethod": "POST", "RequestHeaders": { "Accept": "application/json", @@ -231,15 +231,15 @@ "Sec-Fetch-Mode": "cors", "Sec-Fetch-Site": "same-site", "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", - "x-ms-client-request-id": "df5d20c4-7bc9-49ab-8a12-253062ce5860", - "x-ms-useragent": "azsdk-js-event-grid-modular-rest/1.0.0-beta.1 core-rest-pipeline/1.10.4 OS" + "x-ms-client-request-id": "31c4e69e-57ca-4e9b-8659-f67db97219c0", + "x-ms-useragent": "azsdk-js-eventgrid-rest/4.13.0-beta.2 core-rest-pipeline/1.11.1 OS" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { "Content-Length": "12", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 22 Jun 2023 19:36:26 GMT" + "Date": "Tue, 07 Nov 2023 01:15:05 GMT" }, "ResponseBody": { "value": [] @@ -247,7 +247,7 @@ } ], "Variables": { - "singleEventDate": "Thu Jun 22 2023 12:34:25 GMT-0700 (Pacific Daylight Time)", - "singleEventId": "singleEventId10001" + "singleEventDate": "Mon Nov 06 2023 17:13:03 GMT-0800 (Pacific Standard Time)", + "singleEventId": "singleEventIdV210001" } } diff --git a/sdk/eventgrid/eventgrid/recordings/browsers/event_grid_client_v2/recording_publishes_multiple_cloud_events.json b/sdk/eventgrid/eventgrid/recordings/browsers/event_grid_client_v2_non_binary_mode_publishing/recording_publishes_multiple_cloud_events.json similarity index 67% rename from sdk/eventgrid/eventgrid/recordings/browsers/event_grid_client_v2/recording_publishes_multiple_cloud_events.json rename to sdk/eventgrid/eventgrid/recordings/browsers/event_grid_client_v2_non_binary_mode_publishing/recording_publishes_multiple_cloud_events.json index 5d4cf518e70f..06cc93a0e8d7 100644 --- a/sdk/eventgrid/eventgrid/recordings/browsers/event_grid_client_v2/recording_publishes_multiple_cloud_events.json +++ b/sdk/eventgrid/eventgrid/recordings/browsers/event_grid_client_v2_non_binary_mode_publishing/recording_publishes_multiple_cloud_events.json @@ -1,7 +1,7 @@ { "Entries": [ { - "RequestUri": "https://endpoint/topics/testtopic1/eventsubscriptions/testsubscription1:receive?api-version=2023-06-01-preview", + "RequestUri": "https://endpoint/topics/testtopic1/eventsubscriptions/testsubscription1:receive?api-version=2023-10-01-preview", "RequestMethod": "POST", "RequestHeaders": { "Accept": "application/json", @@ -18,22 +18,22 @@ "Sec-Fetch-Mode": "cors", "Sec-Fetch-Site": "same-site", "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", - "x-ms-client-request-id": "3176c6c6-af28-4afc-97a7-dfdaa1c30e70", - "x-ms-useragent": "azsdk-js-event-grid-modular-rest/1.0.0-beta.1 core-rest-pipeline/1.10.4 OS" + "x-ms-client-request-id": "4494c02e-c0e6-473c-a221-9e18febd1c25", + "x-ms-useragent": "azsdk-js-eventgrid-rest/4.13.0-beta.2 core-rest-pipeline/1.11.1 OS" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { "Content-Length": "12", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 22 Jun 2023 19:37:26 GMT" + "Date": "Tue, 07 Nov 2023 01:16:05 GMT" }, "ResponseBody": { "value": [] } }, { - "RequestUri": "https://endpoint/topics/testtopic1:publish?api-version=2023-06-01-preview", + "RequestUri": "https://endpoint/topics/testtopic1:publish?api-version=2023-10-01-preview", "RequestMethod": "POST", "RequestHeaders": { "Accept": "application/json", @@ -41,7 +41,7 @@ "Accept-Language": "en-US", "Authorization": "Sanitized", "Connection": "keep-alive", - "Content-Length": "433", + "Content-Length": "487", "Content-Type": "application/cloudevents-batch\u002Bjson; charset=utf-8", "Referer": "http://localhost:9876/", "sec-ch-ua": "", @@ -51,20 +51,20 @@ "Sec-Fetch-Mode": "cors", "Sec-Fetch-Site": "same-site", "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", - "x-ms-client-request-id": "49eb5977-b6a1-4bc5-91da-8662867fbca4", - "x-ms-useragent": "azsdk-js-event-grid-modular-rest/1.0.0-beta.1 core-rest-pipeline/1.10.4 OS" + "x-ms-client-request-id": "07e3dc57-de91-4323-a425-96e68a23404e", + "x-ms-useragent": "azsdk-js-eventgrid-rest/4.13.0-beta.2 core-rest-pipeline/1.11.1 OS" }, - "RequestBody": "[{\u0022specversion\u0022:\u00221.0\u0022,\u0022type\u0022:\u0022example\u0022,\u0022source\u0022:\u0022https://example.com\u0022,\u0022id\u0022:\u0022MultipleEventId110002\u0022,\u0022time\u0022:\u00222023-06-22T19:37:26.000Z\u0022,\u0022datacontenttype\u0022:\u0022application/json\u0022,\u0022data\u0022:{\u0022resourceUri\u0022:\u0022https://dummyurl.com\u0022}},{\u0022specversion\u0022:\u00221.0\u0022,\u0022type\u0022:\u0022example\u0022,\u0022source\u0022:\u0022https://example.com\u0022,\u0022id\u0022:\u0022MultipleEventId210003\u0022,\u0022time\u0022:\u00222023-06-22T19:37:26.000Z\u0022,\u0022datacontenttype\u0022:\u0022application/json\u0022,\u0022data\u0022:{\u0022resourceUri\u0022:\u0022https://dummyurl.com\u0022}}]", + "RequestBody": "[{\u0022id\u0022:\u0022MultipleEventId110002\u0022,\u0022source\u0022:\u0022https://example.com\u0022,\u0022data\u0022:{\u0022resourceUri\u0022:\u0022https://dummyurl.com\u0022},\u0022type\u0022:\u0022example\u0022,\u0022time\u0022:\u00222023-11-07T01:16:04.000Z\u0022,\u0022specversion\u0022:\u00221.0\u0022,\u0022datacontenttype\u0022:\u0022application/cloudevents\u002Bjson; charset=utf-8\u0022},{\u0022id\u0022:\u0022MultipleEventId210003\u0022,\u0022source\u0022:\u0022https://example.com\u0022,\u0022data\u0022:{\u0022resourceUri\u0022:\u0022https://dummyurl.com\u0022},\u0022type\u0022:\u0022example\u0022,\u0022time\u0022:\u00222023-11-07T01:16:04.000Z\u0022,\u0022specversion\u0022:\u00221.0\u0022,\u0022datacontenttype\u0022:\u0022application/cloudevents\u002Bjson; charset=utf-8\u0022}]", "StatusCode": 200, "ResponseHeaders": { "Content-Length": "2", "Content-Type": "application/json", - "Date": "Thu, 22 Jun 2023 19:37:26 GMT" + "Date": "Tue, 07 Nov 2023 01:16:05 GMT" }, "ResponseBody": {} }, { - "RequestUri": "https://endpoint/topics/testtopic1/eventsubscriptions/testsubscription1:receive?maxEvents=2\u0026api-version=2023-06-01-preview", + "RequestUri": "https://endpoint/topics/testtopic1/eventsubscriptions/testsubscription1:receive?maxEvents=2\u0026api-version=2023-10-01-preview", "RequestMethod": "POST", "RequestHeaders": { "Accept": "application/json", @@ -81,29 +81,29 @@ "Sec-Fetch-Mode": "cors", "Sec-Fetch-Site": "same-site", "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", - "x-ms-client-request-id": "12791ab5-5fff-41a7-82ea-2e9ff72ffd30", - "x-ms-useragent": "azsdk-js-event-grid-modular-rest/1.0.0-beta.1 core-rest-pipeline/1.10.4 OS" + "x-ms-client-request-id": "c5d0030b-2eac-4b8e-8953-b17b9af52b28", + "x-ms-useragent": "azsdk-js-eventgrid-rest/4.13.0-beta.2 core-rest-pipeline/1.11.1 OS" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "Content-Length": "723", + "Content-Length": "777", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 22 Jun 2023 19:37:26 GMT" + "Date": "Tue, 07 Nov 2023 01:16:05 GMT" }, "ResponseBody": { "value": [ { "brokerProperties": { - "lockToken": "CiYKJEM5OTk5RDE5LTExN0ItNEM2Ni04NjNFLTg2QUJERkVBODlGMRISChAGFkLqnCZP/rkUrJIraeC4", + "lockToken": "CiYKJEVEMjNGRjVGLUU0MDktNEE5Ni04NDYwLUYyMTA2M0NFNDg4NxISChDNF1NQgS9EM7uGvyJqZdsR", "deliveryCount": 1 }, "event": { "type": "example", "source": "https://example.com", - "time": "2023-06-22T19:37:26Z", + "time": "2023-11-07T01:16:04Z", "id": "MultipleEventId110002", - "datacontenttype": "application/json", + "datacontenttype": "application/cloudevents\u002Bjson; charset=utf-8", "specversion": "1.0", "data": { "resourceUri": "https://dummyurl.com" @@ -112,15 +112,15 @@ }, { "brokerProperties": { - "lockToken": "CiYKJEM5OTk5RDE5LTExN0ItNEM2Ni04NjNFLTg2QUJERkVBODlGMRISChCIFVjbuydN2rogqCucIjkm", + "lockToken": "CiYKJEVEMjNGRjVGLUU0MDktNEE5Ni04NDYwLUYyMTA2M0NFNDg4NxISChCdkLB\u002B/rNIbq55Z0VQs89U", "deliveryCount": 1 }, "event": { "type": "example", "source": "https://example.com", - "time": "2023-06-22T19:37:26Z", + "time": "2023-11-07T01:16:04Z", "id": "MultipleEventId210003", - "datacontenttype": "application/json", + "datacontenttype": "application/cloudevents\u002Bjson; charset=utf-8", "specversion": "1.0", "data": { "resourceUri": "https://dummyurl.com" @@ -131,7 +131,7 @@ } }, { - "RequestUri": "https://endpoint/topics/testtopic1/eventsubscriptions/testsubscription1:receive?api-version=2023-06-01-preview", + "RequestUri": "https://endpoint/topics/testtopic1/eventsubscriptions/testsubscription1:receive?api-version=2023-10-01-preview", "RequestMethod": "POST", "RequestHeaders": { "Accept": "application/json", @@ -148,29 +148,29 @@ "Sec-Fetch-Mode": "cors", "Sec-Fetch-Site": "same-site", "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", - "x-ms-client-request-id": "c5fca518-b369-494d-aa5a-f532662d6cd2", - "x-ms-useragent": "azsdk-js-event-grid-modular-rest/1.0.0-beta.1 core-rest-pipeline/1.10.4 OS" + "x-ms-client-request-id": "282a3167-bb3f-4cf3-982a-4b5338a15b21", + "x-ms-useragent": "azsdk-js-eventgrid-rest/4.13.0-beta.2 core-rest-pipeline/1.11.1 OS" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "Content-Length": "367", + "Content-Length": "394", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 22 Jun 2023 19:38:27 GMT" + "Date": "Tue, 07 Nov 2023 01:17:05 GMT" }, "ResponseBody": { "value": [ { "brokerProperties": { - "lockToken": "CiYKJEM5OTk5RDE5LTExN0ItNEM2Ni04NjNFLTg2QUJERkVBODlGMRISChBeErrdqoBEMo\u002BlVjsUQQy0", + "lockToken": "CiYKJEVEMjNGRjVGLUU0MDktNEE5Ni04NDYwLUYyMTA2M0NFNDg4NxISChBxGk/m7u1OPIX7\u002Bo3vkBz5", "deliveryCount": 2 }, "event": { "type": "example", "source": "https://example.com", - "time": "2023-06-22T19:37:26Z", + "time": "2023-11-07T01:16:04Z", "id": "MultipleEventId110002", - "datacontenttype": "application/json", + "datacontenttype": "application/cloudevents\u002Bjson; charset=utf-8", "specversion": "1.0", "data": { "resourceUri": "https://dummyurl.com" @@ -181,7 +181,7 @@ } }, { - "RequestUri": "https://endpoint/topics/testtopic1/eventsubscriptions/testsubscription1:acknowledge?api-version=2023-06-01-preview", + "RequestUri": "https://endpoint/topics/testtopic1/eventsubscriptions/testsubscription1:acknowledge?api-version=2023-10-01-preview", "RequestMethod": "POST", "RequestHeaders": { "Accept": "application/json", @@ -190,7 +190,7 @@ "Authorization": "Sanitized", "Connection": "keep-alive", "Content-Length": "99", - "Content-Type": "application/json; charset=utf-8", + "Content-Type": "application/json; charset=UTF-8", "Referer": "http://localhost:9876/", "sec-ch-ua": "", "sec-ch-ua-mobile": "?0", @@ -199,29 +199,29 @@ "Sec-Fetch-Mode": "cors", "Sec-Fetch-Site": "same-site", "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", - "x-ms-client-request-id": "78d50ca3-7160-43b6-ae9c-b5c9f23b5ee7", - "x-ms-useragent": "azsdk-js-event-grid-modular-rest/1.0.0-beta.1 core-rest-pipeline/1.10.4 OS" + "x-ms-client-request-id": "4e44da95-e041-4476-88c3-a1320979bd7d", + "x-ms-useragent": "azsdk-js-eventgrid-rest/4.13.0-beta.2 core-rest-pipeline/1.11.1 OS" }, "RequestBody": { "lockTokens": [ - "CiYKJEM5OTk5RDE5LTExN0ItNEM2Ni04NjNFLTg2QUJERkVBODlGMRISChBeErrdqoBEMo\u002BlVjsUQQy0" + "CiYKJEVEMjNGRjVGLUU0MDktNEE5Ni04NDYwLUYyMTA2M0NFNDg4NxISChBxGk/m7u1OPIX7\u002Bo3vkBz5" ] }, "StatusCode": 200, "ResponseHeaders": { "Content-Length": "130", "Content-Type": "application/json", - "Date": "Thu, 22 Jun 2023 19:38:27 GMT" + "Date": "Tue, 07 Nov 2023 01:17:05 GMT" }, "ResponseBody": { "succeededLockTokens": [ - "CiYKJEM5OTk5RDE5LTExN0ItNEM2Ni04NjNFLTg2QUJERkVBODlGMRISChBeErrdqoBEMo\u002BlVjsUQQy0" + "CiYKJEVEMjNGRjVGLUU0MDktNEE5Ni04NDYwLUYyMTA2M0NFNDg4NxISChBxGk/m7u1OPIX7\u002Bo3vkBz5" ], "failedLockTokens": [] } }, { - "RequestUri": "https://endpoint/topics/testtopic1/eventsubscriptions/testsubscription1:receive?api-version=2023-06-01-preview", + "RequestUri": "https://endpoint/topics/testtopic1/eventsubscriptions/testsubscription1:receive?api-version=2023-10-01-preview", "RequestMethod": "POST", "RequestHeaders": { "Accept": "application/json", @@ -238,29 +238,29 @@ "Sec-Fetch-Mode": "cors", "Sec-Fetch-Site": "same-site", "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", - "x-ms-client-request-id": "070b9efe-4381-44b3-bb9d-ff5765663856", - "x-ms-useragent": "azsdk-js-event-grid-modular-rest/1.0.0-beta.1 core-rest-pipeline/1.10.4 OS" + "x-ms-client-request-id": "da8beeb4-97b4-49ae-a4d1-9c5c431ecb72", + "x-ms-useragent": "azsdk-js-eventgrid-rest/4.13.0-beta.2 core-rest-pipeline/1.11.1 OS" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "Content-Length": "367", + "Content-Length": "394", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 22 Jun 2023 19:38:27 GMT" + "Date": "Tue, 07 Nov 2023 01:17:05 GMT" }, "ResponseBody": { "value": [ { "brokerProperties": { - "lockToken": "CiYKJEM5OTk5RDE5LTExN0ItNEM2Ni04NjNFLTg2QUJERkVBODlGMRISChBfY4hibM9OT4VaadNF1dsH", + "lockToken": "CiYKJEVEMjNGRjVGLUU0MDktNEE5Ni04NDYwLUYyMTA2M0NFNDg4NxISChDysQ2HkAJJwabv/qE49K1Y", "deliveryCount": 2 }, "event": { "type": "example", "source": "https://example.com", - "time": "2023-06-22T19:37:26Z", + "time": "2023-11-07T01:16:04Z", "id": "MultipleEventId210003", - "datacontenttype": "application/json", + "datacontenttype": "application/cloudevents\u002Bjson; charset=utf-8", "specversion": "1.0", "data": { "resourceUri": "https://dummyurl.com" @@ -271,7 +271,7 @@ } }, { - "RequestUri": "https://endpoint/topics/testtopic1/eventsubscriptions/testsubscription1:acknowledge?api-version=2023-06-01-preview", + "RequestUri": "https://endpoint/topics/testtopic1/eventsubscriptions/testsubscription1:acknowledge?api-version=2023-10-01-preview", "RequestMethod": "POST", "RequestHeaders": { "Accept": "application/json", @@ -280,7 +280,7 @@ "Authorization": "Sanitized", "Connection": "keep-alive", "Content-Length": "99", - "Content-Type": "application/json; charset=utf-8", + "Content-Type": "application/json; charset=UTF-8", "Referer": "http://localhost:9876/", "sec-ch-ua": "", "sec-ch-ua-mobile": "?0", @@ -289,29 +289,29 @@ "Sec-Fetch-Mode": "cors", "Sec-Fetch-Site": "same-site", "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", - "x-ms-client-request-id": "adcdb995-4a4b-4f0d-abeb-be08cb245671", - "x-ms-useragent": "azsdk-js-event-grid-modular-rest/1.0.0-beta.1 core-rest-pipeline/1.10.4 OS" + "x-ms-client-request-id": "aea83243-def1-4ca5-bd6f-5699347fcff9", + "x-ms-useragent": "azsdk-js-eventgrid-rest/4.13.0-beta.2 core-rest-pipeline/1.11.1 OS" }, "RequestBody": { "lockTokens": [ - "CiYKJEM5OTk5RDE5LTExN0ItNEM2Ni04NjNFLTg2QUJERkVBODlGMRISChBfY4hibM9OT4VaadNF1dsH" + "CiYKJEVEMjNGRjVGLUU0MDktNEE5Ni04NDYwLUYyMTA2M0NFNDg4NxISChDysQ2HkAJJwabv/qE49K1Y" ] }, "StatusCode": 200, "ResponseHeaders": { "Content-Length": "130", "Content-Type": "application/json", - "Date": "Thu, 22 Jun 2023 19:38:27 GMT" + "Date": "Tue, 07 Nov 2023 01:17:05 GMT" }, "ResponseBody": { "succeededLockTokens": [ - "CiYKJEM5OTk5RDE5LTExN0ItNEM2Ni04NjNFLTg2QUJERkVBODlGMRISChBfY4hibM9OT4VaadNF1dsH" + "CiYKJEVEMjNGRjVGLUU0MDktNEE5Ni04NDYwLUYyMTA2M0NFNDg4NxISChDysQ2HkAJJwabv/qE49K1Y" ], "failedLockTokens": [] } }, { - "RequestUri": "https://endpoint/topics/testtopic1/eventsubscriptions/testsubscription1:receive?api-version=2023-06-01-preview", + "RequestUri": "https://endpoint/topics/testtopic1/eventsubscriptions/testsubscription1:receive?api-version=2023-10-01-preview", "RequestMethod": "POST", "RequestHeaders": { "Accept": "application/json", @@ -328,15 +328,15 @@ "Sec-Fetch-Mode": "cors", "Sec-Fetch-Site": "same-site", "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", - "x-ms-client-request-id": "936e3596-ce07-4044-82a7-ccaff34d6768", - "x-ms-useragent": "azsdk-js-event-grid-modular-rest/1.0.0-beta.1 core-rest-pipeline/1.10.4 OS" + "x-ms-client-request-id": "3a9be31f-ea18-4984-a5b2-a21f56e3658d", + "x-ms-useragent": "azsdk-js-eventgrid-rest/4.13.0-beta.2 core-rest-pipeline/1.11.1 OS" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { "Content-Length": "12", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 22 Jun 2023 19:39:27 GMT" + "Date": "Tue, 07 Nov 2023 01:18:06 GMT" }, "ResponseBody": { "value": [] @@ -346,7 +346,7 @@ "Variables": { "MulipleEventId1": "MultipleEventId110002", "MulipleEventId2": "MultipleEventId210003", - "singleEventDate1": "Thu Jun 22 2023 12:37:26 GMT-0700 (Pacific Daylight Time)", - "singleEventDate2": "Thu Jun 22 2023 12:37:26 GMT-0700 (Pacific Daylight Time)" + "singleEventDate1": "Mon Nov 06 2023 17:16:04 GMT-0800 (Pacific Standard Time)", + "singleEventDate2": "Mon Nov 06 2023 17:16:04 GMT-0800 (Pacific Standard Time)" } } diff --git a/sdk/eventgrid/eventgrid/recordings/browsers/event_grid_client_v2/recording_rejects_a_cloud_event.json b/sdk/eventgrid/eventgrid/recordings/browsers/event_grid_client_v2_non_binary_mode_publishing/recording_rejects_a_cloud_event.json similarity index 72% rename from sdk/eventgrid/eventgrid/recordings/browsers/event_grid_client_v2/recording_rejects_a_cloud_event.json rename to sdk/eventgrid/eventgrid/recordings/browsers/event_grid_client_v2_non_binary_mode_publishing/recording_rejects_a_cloud_event.json index 30b915586ff7..9c50838fdaf0 100644 --- a/sdk/eventgrid/eventgrid/recordings/browsers/event_grid_client_v2/recording_rejects_a_cloud_event.json +++ b/sdk/eventgrid/eventgrid/recordings/browsers/event_grid_client_v2_non_binary_mode_publishing/recording_rejects_a_cloud_event.json @@ -1,7 +1,7 @@ { "Entries": [ { - "RequestUri": "https://endpoint/topics/testtopic1/eventsubscriptions/testsubscription1:receive?api-version=2023-06-01-preview", + "RequestUri": "https://endpoint/topics/testtopic1/eventsubscriptions/testsubscription1:receive?api-version=2023-10-01-preview", "RequestMethod": "POST", "RequestHeaders": { "Accept": "application/json", @@ -18,22 +18,22 @@ "Sec-Fetch-Mode": "cors", "Sec-Fetch-Site": "same-site", "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", - "x-ms-client-request-id": "e434c2c6-3ab6-473d-85a2-2bc005b4c293", - "x-ms-useragent": "azsdk-js-event-grid-modular-rest/1.0.0-beta.1 core-rest-pipeline/1.10.4 OS" + "x-ms-client-request-id": "b1180b57-c5b1-4462-9636-1daceb3914d5", + "x-ms-useragent": "azsdk-js-eventgrid-rest/4.13.0-beta.2 core-rest-pipeline/1.11.1 OS" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { "Content-Length": "12", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 22 Jun 2023 19:43:29 GMT" + "Date": "Tue, 07 Nov 2023 01:22:08 GMT" }, "ResponseBody": { "value": [] } }, { - "RequestUri": "https://endpoint/topics/testtopic1:publish?api-version=2023-06-01-preview", + "RequestUri": "https://endpoint/topics/testtopic1:publish?api-version=2023-10-01-preview", "RequestMethod": "POST", "RequestHeaders": { "Accept": "application/json", @@ -41,7 +41,7 @@ "Accept-Language": "en-US", "Authorization": "Sanitized", "Connection": "keep-alive", - "Content-Length": "212", + "Content-Length": "241", "Content-Type": "application/cloudevents\u002Bjson; charset=utf-8", "Referer": "http://localhost:9876/", "sec-ch-ua": "", @@ -51,30 +51,30 @@ "Sec-Fetch-Mode": "cors", "Sec-Fetch-Site": "same-site", "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", - "x-ms-client-request-id": "6c24c583-b720-4a64-972f-9682953d57a6", - "x-ms-useragent": "azsdk-js-event-grid-modular-rest/1.0.0-beta.1 core-rest-pipeline/1.10.4 OS" + "x-ms-client-request-id": "bb6bcc9e-8f39-4ba6-a228-cba0d6340bb3", + "x-ms-useragent": "azsdk-js-eventgrid-rest/4.13.0-beta.2 core-rest-pipeline/1.11.1 OS" }, "RequestBody": { - "specversion": "1.0", - "type": "example", + "id": "singleEventIdV210005", "source": "https://example.com", - "id": "singleEventId10005", - "time": "2023-06-22T19:43:29.000Z", - "datacontenttype": "application/json", "data": { "resourceUri": "https://dummyurl.com" - } + }, + "type": "example", + "time": "2023-11-07T01:22:08.000Z", + "specversion": "1.0", + "datacontenttype": "application/cloudevents\u002Bjson; charset=utf-8" }, "StatusCode": 200, "ResponseHeaders": { "Content-Length": "2", "Content-Type": "application/json", - "Date": "Thu, 22 Jun 2023 19:43:29 GMT" + "Date": "Tue, 07 Nov 2023 01:22:08 GMT" }, "ResponseBody": {} }, { - "RequestUri": "https://endpoint/topics/testtopic1/eventsubscriptions/testsubscription1:receive?api-version=2023-06-01-preview", + "RequestUri": "https://endpoint/topics/testtopic1/eventsubscriptions/testsubscription1:receive?api-version=2023-10-01-preview", "RequestMethod": "POST", "RequestHeaders": { "Accept": "application/json", @@ -91,29 +91,29 @@ "Sec-Fetch-Mode": "cors", "Sec-Fetch-Site": "same-site", "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", - "x-ms-client-request-id": "63788956-e9eb-4ec6-a1c1-3380fffb34e1", - "x-ms-useragent": "azsdk-js-event-grid-modular-rest/1.0.0-beta.1 core-rest-pipeline/1.10.4 OS" + "x-ms-client-request-id": "76def158-cbb6-4a5a-a17a-6cc4bb8db08c", + "x-ms-useragent": "azsdk-js-eventgrid-rest/4.13.0-beta.2 core-rest-pipeline/1.11.1 OS" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "Content-Length": "364", + "Content-Length": "393", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 22 Jun 2023 19:43:30 GMT" + "Date": "Tue, 07 Nov 2023 01:22:08 GMT" }, "ResponseBody": { "value": [ { "brokerProperties": { - "lockToken": "CiYKJEM5OTk5RDE5LTExN0ItNEM2Ni04NjNFLTg2QUJERkVBODlGMRISChC/i2WxH/pGVo7dflL6/7gC", + "lockToken": "CiYKJEVEMjNGRjVGLUU0MDktNEE5Ni04NDYwLUYyMTA2M0NFNDg4NxISChCQ\u002BGkjZ3ZETrafqXPVytfw", "deliveryCount": 1 }, "event": { "type": "example", "source": "https://example.com", - "time": "2023-06-22T19:43:29Z", - "id": "singleEventId10005", - "datacontenttype": "application/json", + "time": "2023-11-07T01:22:08Z", + "id": "singleEventIdV210005", + "datacontenttype": "application/cloudevents\u002Bjson; charset=utf-8", "specversion": "1.0", "data": { "resourceUri": "https://dummyurl.com" @@ -124,7 +124,7 @@ } }, { - "RequestUri": "https://endpoint/topics/testtopic1/eventsubscriptions/testsubscription1:reject?api-version=2023-06-01-preview", + "RequestUri": "https://endpoint/topics/testtopic1/eventsubscriptions/testsubscription1:reject?api-version=2023-10-01-preview", "RequestMethod": "POST", "RequestHeaders": { "Accept": "application/json", @@ -133,7 +133,7 @@ "Authorization": "Sanitized", "Connection": "keep-alive", "Content-Length": "99", - "Content-Type": "application/json; charset=utf-8", + "Content-Type": "application/json; charset=UTF-8", "Referer": "http://localhost:9876/", "sec-ch-ua": "", "sec-ch-ua-mobile": "?0", @@ -142,29 +142,29 @@ "Sec-Fetch-Mode": "cors", "Sec-Fetch-Site": "same-site", "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", - "x-ms-client-request-id": "eff9c7e1-6890-464e-8a11-a2b6638429d1", - "x-ms-useragent": "azsdk-js-event-grid-modular-rest/1.0.0-beta.1 core-rest-pipeline/1.10.4 OS" + "x-ms-client-request-id": "56c5f67e-dee4-4f3d-8ee2-95036161eb94", + "x-ms-useragent": "azsdk-js-eventgrid-rest/4.13.0-beta.2 core-rest-pipeline/1.11.1 OS" }, "RequestBody": { "lockTokens": [ - "CiYKJEM5OTk5RDE5LTExN0ItNEM2Ni04NjNFLTg2QUJERkVBODlGMRISChC/i2WxH/pGVo7dflL6/7gC" + "CiYKJEVEMjNGRjVGLUU0MDktNEE5Ni04NDYwLUYyMTA2M0NFNDg4NxISChCQ\u002BGkjZ3ZETrafqXPVytfw" ] }, "StatusCode": 200, "ResponseHeaders": { "Content-Length": "130", "Content-Type": "application/json", - "Date": "Thu, 22 Jun 2023 19:43:30 GMT" + "Date": "Tue, 07 Nov 2023 01:22:08 GMT" }, "ResponseBody": { "succeededLockTokens": [ - "CiYKJEM5OTk5RDE5LTExN0ItNEM2Ni04NjNFLTg2QUJERkVBODlGMRISChC/i2WxH/pGVo7dflL6/7gC" + "CiYKJEVEMjNGRjVGLUU0MDktNEE5Ni04NDYwLUYyMTA2M0NFNDg4NxISChCQ\u002BGkjZ3ZETrafqXPVytfw" ], "failedLockTokens": [] } }, { - "RequestUri": "https://endpoint/topics/testtopic1/eventsubscriptions/testsubscription1:receive?api-version=2023-06-01-preview", + "RequestUri": "https://endpoint/topics/testtopic1/eventsubscriptions/testsubscription1:receive?api-version=2023-10-01-preview", "RequestMethod": "POST", "RequestHeaders": { "Accept": "application/json", @@ -181,22 +181,22 @@ "Sec-Fetch-Mode": "cors", "Sec-Fetch-Site": "same-site", "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", - "x-ms-client-request-id": "42c7e521-982e-4283-9027-18631306f5a3", - "x-ms-useragent": "azsdk-js-event-grid-modular-rest/1.0.0-beta.1 core-rest-pipeline/1.10.4 OS" + "x-ms-client-request-id": "b0fa99de-678a-4e69-b65a-337f3abbf814", + "x-ms-useragent": "azsdk-js-eventgrid-rest/4.13.0-beta.2 core-rest-pipeline/1.11.1 OS" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { "Content-Length": "12", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 22 Jun 2023 19:44:30 GMT" + "Date": "Tue, 07 Nov 2023 01:23:09 GMT" }, "ResponseBody": { "value": [] } }, { - "RequestUri": "https://endpoint/topics/testtopic1/eventsubscriptions/testsubscription1:receive?api-version=2023-06-01-preview", + "RequestUri": "https://endpoint/topics/testtopic1/eventsubscriptions/testsubscription1:receive?api-version=2023-10-01-preview", "RequestMethod": "POST", "RequestHeaders": { "Accept": "application/json", @@ -213,15 +213,15 @@ "Sec-Fetch-Mode": "cors", "Sec-Fetch-Site": "same-site", "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", - "x-ms-client-request-id": "e7363f58-9977-451b-ad2b-1e85633f196e", - "x-ms-useragent": "azsdk-js-event-grid-modular-rest/1.0.0-beta.1 core-rest-pipeline/1.10.4 OS" + "x-ms-client-request-id": "da057130-a2fd-4d4e-96c8-9476c62eac19", + "x-ms-useragent": "azsdk-js-eventgrid-rest/4.13.0-beta.2 core-rest-pipeline/1.11.1 OS" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { "Content-Length": "12", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 22 Jun 2023 19:45:30 GMT" + "Date": "Tue, 07 Nov 2023 01:24:09 GMT" }, "ResponseBody": { "value": [] @@ -229,7 +229,7 @@ } ], "Variables": { - "singleEventDate": "Thu Jun 22 2023 12:43:29 GMT-0700 (Pacific Daylight Time)", - "singleEventId": "singleEventId10005" + "singleEventDate": "Mon Nov 06 2023 17:22:08 GMT-0800 (Pacific Standard Time)", + "singleEventId": "singleEventIdV210005" } } diff --git a/sdk/eventgrid/eventgrid/recordings/browsers/event_grid_client_v2_non_binary_mode_publishing/recording_releases_a_cloud_event.json b/sdk/eventgrid/eventgrid/recordings/browsers/event_grid_client_v2_non_binary_mode_publishing/recording_releases_a_cloud_event.json new file mode 100644 index 000000000000..91552991cec1 --- /dev/null +++ b/sdk/eventgrid/eventgrid/recordings/browsers/event_grid_client_v2_non_binary_mode_publishing/recording_releases_a_cloud_event.json @@ -0,0 +1,1045 @@ +{ + "Entries": [ + { + "RequestUri": "https://endpoint/topics/testtopic1/eventsubscriptions/testsubscription1:receive?api-version=2023-10-01-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "0", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "6b808e5a-5623-487d-aa53-b5756bb64799", + "x-ms-useragent": "azsdk-js-eventgrid-rest/4.13.0-beta.2 core-rest-pipeline/1.11.1 OS" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Length": "12", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 07 Nov 2023 01:19:06 GMT" + }, + "ResponseBody": { + "value": [] + } + }, + { + "RequestUri": "https://endpoint/topics/testtopic1:publish?api-version=2023-10-01-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "241", + "Content-Type": "application/cloudevents\u002Bjson; charset=utf-8", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "0b55e20d-e1dd-4a28-84e6-3637e1291d22", + "x-ms-useragent": "azsdk-js-eventgrid-rest/4.13.0-beta.2 core-rest-pipeline/1.11.1 OS" + }, + "RequestBody": { + "id": "singleEventIdV210004", + "source": "https://example.com", + "data": { + "resourceUri": "https://dummyurl.com" + }, + "type": "example", + "time": "2023-11-07T01:19:06.000Z", + "specversion": "1.0", + "datacontenttype": "application/cloudevents\u002Bjson; charset=utf-8" + }, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Length": "2", + "Content-Type": "application/json", + "Date": "Tue, 07 Nov 2023 01:19:06 GMT" + }, + "ResponseBody": {} + }, + { + "RequestUri": "https://endpoint/topics/testtopic1/eventsubscriptions/testsubscription1:receive?api-version=2023-10-01-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "0", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "068ab9cf-ab06-4ea1-ad14-8625907385ef", + "x-ms-useragent": "azsdk-js-eventgrid-rest/4.13.0-beta.2 core-rest-pipeline/1.11.1 OS" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Length": "393", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 07 Nov 2023 01:19:06 GMT" + }, + "ResponseBody": { + "value": [ + { + "brokerProperties": { + "lockToken": "CiYKJEVEMjNGRjVGLUU0MDktNEE5Ni04NDYwLUYyMTA2M0NFNDg4NxISChDYPLGgfbNHU7T5H\u002Bv5V48e", + "deliveryCount": 1 + }, + "event": { + "type": "example", + "source": "https://example.com", + "time": "2023-11-07T01:19:06Z", + "id": "singleEventIdV210004", + "datacontenttype": "application/cloudevents\u002Bjson; charset=utf-8", + "specversion": "1.0", + "data": { + "resourceUri": "https://dummyurl.com" + } + } + } + ] + } + }, + { + "RequestUri": "https://endpoint/topics/testtopic1/eventsubscriptions/testsubscription1:release?api-version=2023-10-01-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "99", + "Content-Type": "application/json; charset=UTF-8", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "5ccfdb52-ab00-4e4b-ade8-45afa40a86f6", + "x-ms-useragent": "azsdk-js-eventgrid-rest/4.13.0-beta.2 core-rest-pipeline/1.11.1 OS" + }, + "RequestBody": { + "lockTokens": [ + "CiYKJEVEMjNGRjVGLUU0MDktNEE5Ni04NDYwLUYyMTA2M0NFNDg4NxISChDYPLGgfbNHU7T5H\u002Bv5V48e" + ] + }, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Length": "130", + "Content-Type": "application/json", + "Date": "Tue, 07 Nov 2023 01:19:06 GMT" + }, + "ResponseBody": { + "succeededLockTokens": [ + "CiYKJEVEMjNGRjVGLUU0MDktNEE5Ni04NDYwLUYyMTA2M0NFNDg4NxISChDYPLGgfbNHU7T5H\u002Bv5V48e" + ], + "failedLockTokens": [] + } + }, + { + "RequestUri": "https://endpoint/topics/testtopic1/eventsubscriptions/testsubscription1:receive?api-version=2023-10-01-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "0", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "b73831aa-69ca-4ab6-aa3d-620e7f0f5bb1", + "x-ms-useragent": "azsdk-js-eventgrid-rest/4.13.0-beta.2 core-rest-pipeline/1.11.1 OS" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Length": "393", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 07 Nov 2023 01:19:06 GMT" + }, + "ResponseBody": { + "value": [ + { + "brokerProperties": { + "lockToken": "CiYKJEVEMjNGRjVGLUU0MDktNEE5Ni04NDYwLUYyMTA2M0NFNDg4NxISChB6M8nIkodGDJkw3vn/tQI5", + "deliveryCount": 2 + }, + "event": { + "type": "example", + "source": "https://example.com", + "time": "2023-11-07T01:19:06Z", + "id": "singleEventIdV210004", + "datacontenttype": "application/cloudevents\u002Bjson; charset=utf-8", + "specversion": "1.0", + "data": { + "resourceUri": "https://dummyurl.com" + } + } + } + ] + } + }, + { + "RequestUri": "https://endpoint/topics/testtopic1/eventsubscriptions/testsubscription1:release?api-version=2023-10-01-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "99", + "Content-Type": "application/json; charset=UTF-8", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "3cb3964e-b86d-477f-8249-3a8437627c83", + "x-ms-useragent": "azsdk-js-eventgrid-rest/4.13.0-beta.2 core-rest-pipeline/1.11.1 OS" + }, + "RequestBody": { + "lockTokens": [ + "CiYKJEVEMjNGRjVGLUU0MDktNEE5Ni04NDYwLUYyMTA2M0NFNDg4NxISChB6M8nIkodGDJkw3vn/tQI5" + ] + }, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Length": "130", + "Content-Type": "application/json", + "Date": "Tue, 07 Nov 2023 01:19:06 GMT" + }, + "ResponseBody": { + "succeededLockTokens": [ + "CiYKJEVEMjNGRjVGLUU0MDktNEE5Ni04NDYwLUYyMTA2M0NFNDg4NxISChB6M8nIkodGDJkw3vn/tQI5" + ], + "failedLockTokens": [] + } + }, + { + "RequestUri": "https://endpoint/topics/testtopic1/eventsubscriptions/testsubscription1:receive?api-version=2023-10-01-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "0", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "559f8563-068c-448c-9de5-ae1dd36a6ee6", + "x-ms-useragent": "azsdk-js-eventgrid-rest/4.13.0-beta.2 core-rest-pipeline/1.11.1 OS" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Length": "393", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 07 Nov 2023 01:19:06 GMT" + }, + "ResponseBody": { + "value": [ + { + "brokerProperties": { + "lockToken": "CiYKJEVEMjNGRjVGLUU0MDktNEE5Ni04NDYwLUYyMTA2M0NFNDg4NxISChDkJX\u002Bynp9E3IUPsR8smsDS", + "deliveryCount": 3 + }, + "event": { + "type": "example", + "source": "https://example.com", + "time": "2023-11-07T01:19:06Z", + "id": "singleEventIdV210004", + "datacontenttype": "application/cloudevents\u002Bjson; charset=utf-8", + "specversion": "1.0", + "data": { + "resourceUri": "https://dummyurl.com" + } + } + } + ] + } + }, + { + "RequestUri": "https://endpoint/topics/testtopic1/eventsubscriptions/testsubscription1:release?api-version=2023-10-01-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "99", + "Content-Type": "application/json; charset=UTF-8", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "7811cf90-074f-43c9-bf63-d80d32d2785f", + "x-ms-useragent": "azsdk-js-eventgrid-rest/4.13.0-beta.2 core-rest-pipeline/1.11.1 OS" + }, + "RequestBody": { + "lockTokens": [ + "CiYKJEVEMjNGRjVGLUU0MDktNEE5Ni04NDYwLUYyMTA2M0NFNDg4NxISChDkJX\u002Bynp9E3IUPsR8smsDS" + ] + }, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Length": "130", + "Content-Type": "application/json", + "Date": "Tue, 07 Nov 2023 01:19:06 GMT" + }, + "ResponseBody": { + "succeededLockTokens": [ + "CiYKJEVEMjNGRjVGLUU0MDktNEE5Ni04NDYwLUYyMTA2M0NFNDg4NxISChDkJX\u002Bynp9E3IUPsR8smsDS" + ], + "failedLockTokens": [] + } + }, + { + "RequestUri": "https://endpoint/topics/testtopic1/eventsubscriptions/testsubscription1:receive?api-version=2023-10-01-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "0", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "b72fc889-f224-45c2-9ba9-10dfd6cd4cf4", + "x-ms-useragent": "azsdk-js-eventgrid-rest/4.13.0-beta.2 core-rest-pipeline/1.11.1 OS" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Length": "393", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 07 Nov 2023 01:19:06 GMT" + }, + "ResponseBody": { + "value": [ + { + "brokerProperties": { + "lockToken": "CiYKJEVEMjNGRjVGLUU0MDktNEE5Ni04NDYwLUYyMTA2M0NFNDg4NxISChCH1oVWt31JrLC9CkBqz6sU", + "deliveryCount": 4 + }, + "event": { + "type": "example", + "source": "https://example.com", + "time": "2023-11-07T01:19:06Z", + "id": "singleEventIdV210004", + "datacontenttype": "application/cloudevents\u002Bjson; charset=utf-8", + "specversion": "1.0", + "data": { + "resourceUri": "https://dummyurl.com" + } + } + } + ] + } + }, + { + "RequestUri": "https://endpoint/topics/testtopic1/eventsubscriptions/testsubscription1:release?api-version=2023-10-01-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "99", + "Content-Type": "application/json; charset=UTF-8", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "4818f4f0-f195-4f3b-ba14-53a5350ec576", + "x-ms-useragent": "azsdk-js-eventgrid-rest/4.13.0-beta.2 core-rest-pipeline/1.11.1 OS" + }, + "RequestBody": { + "lockTokens": [ + "CiYKJEVEMjNGRjVGLUU0MDktNEE5Ni04NDYwLUYyMTA2M0NFNDg4NxISChCH1oVWt31JrLC9CkBqz6sU" + ] + }, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Length": "130", + "Content-Type": "application/json", + "Date": "Tue, 07 Nov 2023 01:19:06 GMT" + }, + "ResponseBody": { + "succeededLockTokens": [ + "CiYKJEVEMjNGRjVGLUU0MDktNEE5Ni04NDYwLUYyMTA2M0NFNDg4NxISChCH1oVWt31JrLC9CkBqz6sU" + ], + "failedLockTokens": [] + } + }, + { + "RequestUri": "https://endpoint/topics/testtopic1/eventsubscriptions/testsubscription1:receive?api-version=2023-10-01-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "0", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "54b17d84-2a83-4433-b24f-af58d500bb5f", + "x-ms-useragent": "azsdk-js-eventgrid-rest/4.13.0-beta.2 core-rest-pipeline/1.11.1 OS" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Length": "393", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 07 Nov 2023 01:19:06 GMT" + }, + "ResponseBody": { + "value": [ + { + "brokerProperties": { + "lockToken": "CiYKJEVEMjNGRjVGLUU0MDktNEE5Ni04NDYwLUYyMTA2M0NFNDg4NxISChBJoPaEo9dB6IZg3AXkA4lO", + "deliveryCount": 5 + }, + "event": { + "type": "example", + "source": "https://example.com", + "time": "2023-11-07T01:19:06Z", + "id": "singleEventIdV210004", + "datacontenttype": "application/cloudevents\u002Bjson; charset=utf-8", + "specversion": "1.0", + "data": { + "resourceUri": "https://dummyurl.com" + } + } + } + ] + } + }, + { + "RequestUri": "https://endpoint/topics/testtopic1/eventsubscriptions/testsubscription1:release?api-version=2023-10-01-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "99", + "Content-Type": "application/json; charset=UTF-8", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "e32388f4-287d-4474-863f-1eb073a1e416", + "x-ms-useragent": "azsdk-js-eventgrid-rest/4.13.0-beta.2 core-rest-pipeline/1.11.1 OS" + }, + "RequestBody": { + "lockTokens": [ + "CiYKJEVEMjNGRjVGLUU0MDktNEE5Ni04NDYwLUYyMTA2M0NFNDg4NxISChBJoPaEo9dB6IZg3AXkA4lO" + ] + }, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Length": "130", + "Content-Type": "application/json", + "Date": "Tue, 07 Nov 2023 01:19:07 GMT" + }, + "ResponseBody": { + "succeededLockTokens": [ + "CiYKJEVEMjNGRjVGLUU0MDktNEE5Ni04NDYwLUYyMTA2M0NFNDg4NxISChBJoPaEo9dB6IZg3AXkA4lO" + ], + "failedLockTokens": [] + } + }, + { + "RequestUri": "https://endpoint/topics/testtopic1/eventsubscriptions/testsubscription1:receive?api-version=2023-10-01-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "0", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "bd9ed0d4-ba54-4b6a-a5f8-2f47cdb009d1", + "x-ms-useragent": "azsdk-js-eventgrid-rest/4.13.0-beta.2 core-rest-pipeline/1.11.1 OS" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Length": "393", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 07 Nov 2023 01:19:07 GMT" + }, + "ResponseBody": { + "value": [ + { + "brokerProperties": { + "lockToken": "CiYKJEVEMjNGRjVGLUU0MDktNEE5Ni04NDYwLUYyMTA2M0NFNDg4NxISChAg9WqskWVEQIviq9zo2CsT", + "deliveryCount": 6 + }, + "event": { + "type": "example", + "source": "https://example.com", + "time": "2023-11-07T01:19:06Z", + "id": "singleEventIdV210004", + "datacontenttype": "application/cloudevents\u002Bjson; charset=utf-8", + "specversion": "1.0", + "data": { + "resourceUri": "https://dummyurl.com" + } + } + } + ] + } + }, + { + "RequestUri": "https://endpoint/topics/testtopic1/eventsubscriptions/testsubscription1:release?api-version=2023-10-01-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "99", + "Content-Type": "application/json; charset=UTF-8", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "d8b4212a-daa7-4a42-afe3-92a0f0ae7d16", + "x-ms-useragent": "azsdk-js-eventgrid-rest/4.13.0-beta.2 core-rest-pipeline/1.11.1 OS" + }, + "RequestBody": { + "lockTokens": [ + "CiYKJEVEMjNGRjVGLUU0MDktNEE5Ni04NDYwLUYyMTA2M0NFNDg4NxISChAg9WqskWVEQIviq9zo2CsT" + ] + }, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Length": "130", + "Content-Type": "application/json", + "Date": "Tue, 07 Nov 2023 01:19:07 GMT" + }, + "ResponseBody": { + "succeededLockTokens": [ + "CiYKJEVEMjNGRjVGLUU0MDktNEE5Ni04NDYwLUYyMTA2M0NFNDg4NxISChAg9WqskWVEQIviq9zo2CsT" + ], + "failedLockTokens": [] + } + }, + { + "RequestUri": "https://endpoint/topics/testtopic1/eventsubscriptions/testsubscription1:receive?api-version=2023-10-01-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "0", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "bb195147-4266-4322-84a9-932a0f0b0b41", + "x-ms-useragent": "azsdk-js-eventgrid-rest/4.13.0-beta.2 core-rest-pipeline/1.11.1 OS" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Length": "393", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 07 Nov 2023 01:19:07 GMT" + }, + "ResponseBody": { + "value": [ + { + "brokerProperties": { + "lockToken": "CiYKJEVEMjNGRjVGLUU0MDktNEE5Ni04NDYwLUYyMTA2M0NFNDg4NxISChCO8Bjxt2dP55jq9C\u002B\u002Bo8tt", + "deliveryCount": 7 + }, + "event": { + "type": "example", + "source": "https://example.com", + "time": "2023-11-07T01:19:06Z", + "id": "singleEventIdV210004", + "datacontenttype": "application/cloudevents\u002Bjson; charset=utf-8", + "specversion": "1.0", + "data": { + "resourceUri": "https://dummyurl.com" + } + } + } + ] + } + }, + { + "RequestUri": "https://endpoint/topics/testtopic1/eventsubscriptions/testsubscription1:release?api-version=2023-10-01-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "99", + "Content-Type": "application/json; charset=UTF-8", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "670bb423-7936-4e58-a6c7-0050f51e36b7", + "x-ms-useragent": "azsdk-js-eventgrid-rest/4.13.0-beta.2 core-rest-pipeline/1.11.1 OS" + }, + "RequestBody": { + "lockTokens": [ + "CiYKJEVEMjNGRjVGLUU0MDktNEE5Ni04NDYwLUYyMTA2M0NFNDg4NxISChCO8Bjxt2dP55jq9C\u002B\u002Bo8tt" + ] + }, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Length": "130", + "Content-Type": "application/json", + "Date": "Tue, 07 Nov 2023 01:19:07 GMT" + }, + "ResponseBody": { + "succeededLockTokens": [ + "CiYKJEVEMjNGRjVGLUU0MDktNEE5Ni04NDYwLUYyMTA2M0NFNDg4NxISChCO8Bjxt2dP55jq9C\u002B\u002Bo8tt" + ], + "failedLockTokens": [] + } + }, + { + "RequestUri": "https://endpoint/topics/testtopic1/eventsubscriptions/testsubscription1:receive?api-version=2023-10-01-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "0", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "d7a53eec-db0b-412e-8426-a330b4424d82", + "x-ms-useragent": "azsdk-js-eventgrid-rest/4.13.0-beta.2 core-rest-pipeline/1.11.1 OS" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Length": "393", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 07 Nov 2023 01:19:07 GMT" + }, + "ResponseBody": { + "value": [ + { + "brokerProperties": { + "lockToken": "CiYKJEVEMjNGRjVGLUU0MDktNEE5Ni04NDYwLUYyMTA2M0NFNDg4NxISChDMZGu9mndGtpk63UhCwARf", + "deliveryCount": 8 + }, + "event": { + "type": "example", + "source": "https://example.com", + "time": "2023-11-07T01:19:06Z", + "id": "singleEventIdV210004", + "datacontenttype": "application/cloudevents\u002Bjson; charset=utf-8", + "specversion": "1.0", + "data": { + "resourceUri": "https://dummyurl.com" + } + } + } + ] + } + }, + { + "RequestUri": "https://endpoint/topics/testtopic1/eventsubscriptions/testsubscription1:release?api-version=2023-10-01-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "99", + "Content-Type": "application/json; charset=UTF-8", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "29ffeed1-d909-4f7a-b30e-0e2daaaa9a1e", + "x-ms-useragent": "azsdk-js-eventgrid-rest/4.13.0-beta.2 core-rest-pipeline/1.11.1 OS" + }, + "RequestBody": { + "lockTokens": [ + "CiYKJEVEMjNGRjVGLUU0MDktNEE5Ni04NDYwLUYyMTA2M0NFNDg4NxISChDMZGu9mndGtpk63UhCwARf" + ] + }, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Length": "130", + "Content-Type": "application/json", + "Date": "Tue, 07 Nov 2023 01:19:08 GMT" + }, + "ResponseBody": { + "succeededLockTokens": [ + "CiYKJEVEMjNGRjVGLUU0MDktNEE5Ni04NDYwLUYyMTA2M0NFNDg4NxISChDMZGu9mndGtpk63UhCwARf" + ], + "failedLockTokens": [] + } + }, + { + "RequestUri": "https://endpoint/topics/testtopic1/eventsubscriptions/testsubscription1:receive?api-version=2023-10-01-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "0", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "3836d933-6f48-4756-aecc-33275e7a70e2", + "x-ms-useragent": "azsdk-js-eventgrid-rest/4.13.0-beta.2 core-rest-pipeline/1.11.1 OS" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Length": "393", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 07 Nov 2023 01:19:08 GMT" + }, + "ResponseBody": { + "value": [ + { + "brokerProperties": { + "lockToken": "CiYKJEVEMjNGRjVGLUU0MDktNEE5Ni04NDYwLUYyMTA2M0NFNDg4NxISChCUsCcFmmpIMYFpLCR5n2gm", + "deliveryCount": 9 + }, + "event": { + "type": "example", + "source": "https://example.com", + "time": "2023-11-07T01:19:06Z", + "id": "singleEventIdV210004", + "datacontenttype": "application/cloudevents\u002Bjson; charset=utf-8", + "specversion": "1.0", + "data": { + "resourceUri": "https://dummyurl.com" + } + } + } + ] + } + }, + { + "RequestUri": "https://endpoint/topics/testtopic1/eventsubscriptions/testsubscription1:release?api-version=2023-10-01-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "99", + "Content-Type": "application/json; charset=UTF-8", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "c86138a4-d392-4bd0-9b3d-23d62edd959f", + "x-ms-useragent": "azsdk-js-eventgrid-rest/4.13.0-beta.2 core-rest-pipeline/1.11.1 OS" + }, + "RequestBody": { + "lockTokens": [ + "CiYKJEVEMjNGRjVGLUU0MDktNEE5Ni04NDYwLUYyMTA2M0NFNDg4NxISChCUsCcFmmpIMYFpLCR5n2gm" + ] + }, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Length": "130", + "Content-Type": "application/json", + "Date": "Tue, 07 Nov 2023 01:19:08 GMT" + }, + "ResponseBody": { + "succeededLockTokens": [ + "CiYKJEVEMjNGRjVGLUU0MDktNEE5Ni04NDYwLUYyMTA2M0NFNDg4NxISChCUsCcFmmpIMYFpLCR5n2gm" + ], + "failedLockTokens": [] + } + }, + { + "RequestUri": "https://endpoint/topics/testtopic1/eventsubscriptions/testsubscription1:receive?api-version=2023-10-01-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "0", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "31841a48-a7f1-41cf-93e9-424ffc5cd52c", + "x-ms-useragent": "azsdk-js-eventgrid-rest/4.13.0-beta.2 core-rest-pipeline/1.11.1 OS" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Length": "394", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 07 Nov 2023 01:19:08 GMT" + }, + "ResponseBody": { + "value": [ + { + "brokerProperties": { + "lockToken": "CiYKJEVEMjNGRjVGLUU0MDktNEE5Ni04NDYwLUYyMTA2M0NFNDg4NxISChCAcsTj51lJBIWENSpDTIDy", + "deliveryCount": 10 + }, + "event": { + "type": "example", + "source": "https://example.com", + "time": "2023-11-07T01:19:06Z", + "id": "singleEventIdV210004", + "datacontenttype": "application/cloudevents\u002Bjson; charset=utf-8", + "specversion": "1.0", + "data": { + "resourceUri": "https://dummyurl.com" + } + } + } + ] + } + }, + { + "RequestUri": "https://endpoint/topics/testtopic1/eventsubscriptions/testsubscription1:release?api-version=2023-10-01-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "99", + "Content-Type": "application/json; charset=UTF-8", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "79a8dde1-62d9-44aa-a370-093846015ba7", + "x-ms-useragent": "azsdk-js-eventgrid-rest/4.13.0-beta.2 core-rest-pipeline/1.11.1 OS" + }, + "RequestBody": { + "lockTokens": [ + "CiYKJEVEMjNGRjVGLUU0MDktNEE5Ni04NDYwLUYyMTA2M0NFNDg4NxISChCAcsTj51lJBIWENSpDTIDy" + ] + }, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Length": "130", + "Content-Type": "application/json", + "Date": "Tue, 07 Nov 2023 01:19:08 GMT" + }, + "ResponseBody": { + "succeededLockTokens": [ + "CiYKJEVEMjNGRjVGLUU0MDktNEE5Ni04NDYwLUYyMTA2M0NFNDg4NxISChCAcsTj51lJBIWENSpDTIDy" + ], + "failedLockTokens": [] + } + }, + { + "RequestUri": "https://endpoint/topics/testtopic1/eventsubscriptions/testsubscription1:receive?api-version=2023-10-01-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "0", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "9edf3599-5721-40ed-abc6-3e26521f018b", + "x-ms-useragent": "azsdk-js-eventgrid-rest/4.13.0-beta.2 core-rest-pipeline/1.11.1 OS" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Length": "12", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 07 Nov 2023 01:20:08 GMT" + }, + "ResponseBody": { + "value": [] + } + }, + { + "RequestUri": "https://endpoint/topics/testtopic1/eventsubscriptions/testsubscription1:receive?api-version=2023-10-01-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "0", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "151f8c50-5578-487d-a9a7-eafb26da9c4f", + "x-ms-useragent": "azsdk-js-eventgrid-rest/4.13.0-beta.2 core-rest-pipeline/1.11.1 OS" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Length": "12", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 07 Nov 2023 01:21:08 GMT" + }, + "ResponseBody": { + "value": [] + } + } + ], + "Variables": { + "singleEventDate": "Mon Nov 06 2023 17:19:06 GMT-0800 (Pacific Standard Time)", + "singleEventId": "singleEventIdV210004" + } +} diff --git a/sdk/eventgrid/eventgrid/recordings/browsers/event_grid_client_v2_non_binary_mode_publishing/recording_renews_a_cloud_event.json b/sdk/eventgrid/eventgrid/recordings/browsers/event_grid_client_v2_non_binary_mode_publishing/recording_renews_a_cloud_event.json new file mode 100644 index 000000000000..264cb3739f55 --- /dev/null +++ b/sdk/eventgrid/eventgrid/recordings/browsers/event_grid_client_v2_non_binary_mode_publishing/recording_renews_a_cloud_event.json @@ -0,0 +1,343 @@ +{ + "Entries": [ + { + "RequestUri": "https://endpoint/topics/testtopic1/eventsubscriptions/testsubscription1:receive?api-version=2023-10-01-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "0", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "0d78ddd1-e85d-4a06-8c6c-7c3cf557739f", + "x-ms-useragent": "azsdk-js-eventgrid-rest/4.13.0-beta.2 core-rest-pipeline/1.11.1 OS" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Length": "12", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 07 Nov 2023 01:25:09 GMT" + }, + "ResponseBody": { + "value": [] + } + }, + { + "RequestUri": "https://endpoint/topics/testtopic1:publish?api-version=2023-10-01-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "241", + "Content-Type": "application/cloudevents\u002Bjson; charset=utf-8", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "204c9888-e0f7-4b1b-b528-f5736b97b2d0", + "x-ms-useragent": "azsdk-js-eventgrid-rest/4.13.0-beta.2 core-rest-pipeline/1.11.1 OS" + }, + "RequestBody": { + "id": "singleEventIdV210008", + "source": "https://example.com", + "data": { + "resourceUri": "https://dummyurl.com" + }, + "type": "example", + "time": "2023-11-07T01:25:09.000Z", + "specversion": "1.0", + "datacontenttype": "application/cloudevents\u002Bjson; charset=utf-8" + }, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Length": "2", + "Content-Type": "application/json", + "Date": "Tue, 07 Nov 2023 01:25:09 GMT" + }, + "ResponseBody": {} + }, + { + "RequestUri": "https://endpoint/topics/testtopic1/eventsubscriptions/testsubscription1:receive?api-version=2023-10-01-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "0", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "5cd713ae-282a-4ec7-b263-08700987593f", + "x-ms-useragent": "azsdk-js-eventgrid-rest/4.13.0-beta.2 core-rest-pipeline/1.11.1 OS" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Length": "393", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 07 Nov 2023 01:25:09 GMT" + }, + "ResponseBody": { + "value": [ + { + "brokerProperties": { + "lockToken": "CiYKJEVEMjNGRjVGLUU0MDktNEE5Ni04NDYwLUYyMTA2M0NFNDg4NxISChDxjGaN9TNJY7fsEA6CyNMH", + "deliveryCount": 1 + }, + "event": { + "type": "example", + "source": "https://example.com", + "time": "2023-11-07T01:25:09Z", + "id": "singleEventIdV210008", + "datacontenttype": "application/cloudevents\u002Bjson; charset=utf-8", + "specversion": "1.0", + "data": { + "resourceUri": "https://dummyurl.com" + } + } + } + ] + } + }, + { + "RequestUri": "https://endpoint/topics/testtopic1/eventsubscriptions/testsubscription1:renewLock?api-version=2023-10-01-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "99", + "Content-Type": "application/json; charset=UTF-8", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "976d62f7-fb35-4597-8fe7-71b362cc1d06", + "x-ms-useragent": "azsdk-js-eventgrid-rest/4.13.0-beta.2 core-rest-pipeline/1.11.1 OS" + }, + "RequestBody": { + "lockTokens": [ + "CiYKJEVEMjNGRjVGLUU0MDktNEE5Ni04NDYwLUYyMTA2M0NFNDg4NxISChDxjGaN9TNJY7fsEA6CyNMH" + ] + }, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Length": "130", + "Content-Type": "application/json", + "Date": "Tue, 07 Nov 2023 01:25:09 GMT" + }, + "ResponseBody": { + "succeededLockTokens": [ + "CiYKJEVEMjNGRjVGLUU0MDktNEE5Ni04NDYwLUYyMTA2M0NFNDg4NxISChDxjGaN9TNJY7fsEA6CyNMH" + ], + "failedLockTokens": [] + } + }, + { + "RequestUri": "https://endpoint/topics/testtopic1/eventsubscriptions/testsubscription1:receive?api-version=2023-10-01-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "0", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "145fc8b3-6b6d-464e-a84d-4e305e722d06", + "x-ms-useragent": "azsdk-js-eventgrid-rest/4.13.0-beta.2 core-rest-pipeline/1.11.1 OS" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Length": "393", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 07 Nov 2023 01:26:10 GMT" + }, + "ResponseBody": { + "value": [ + { + "brokerProperties": { + "lockToken": "CiYKJEVEMjNGRjVGLUU0MDktNEE5Ni04NDYwLUYyMTA2M0NFNDg4NxISChBp4YgzfS1Li6zpKPsO64HU", + "deliveryCount": 2 + }, + "event": { + "type": "example", + "source": "https://example.com", + "time": "2023-11-07T01:25:09Z", + "id": "singleEventIdV210008", + "datacontenttype": "application/cloudevents\u002Bjson; charset=utf-8", + "specversion": "1.0", + "data": { + "resourceUri": "https://dummyurl.com" + } + } + } + ] + } + }, + { + "RequestUri": "https://endpoint/topics/testtopic1/eventsubscriptions/testsubscription1:receive?api-version=2023-10-01-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "0", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "965a800f-1062-495c-afdb-4b5f1106c6f8", + "x-ms-useragent": "azsdk-js-eventgrid-rest/4.13.0-beta.2 core-rest-pipeline/1.11.1 OS" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Length": "393", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 07 Nov 2023 01:27:10 GMT" + }, + "ResponseBody": { + "value": [ + { + "brokerProperties": { + "lockToken": "CiYKJEVEMjNGRjVGLUU0MDktNEE5Ni04NDYwLUYyMTA2M0NFNDg4NxISChB782Q7Z7JAJ52pM91DSTE0", + "deliveryCount": 3 + }, + "event": { + "type": "example", + "source": "https://example.com", + "time": "2023-11-07T01:25:09Z", + "id": "singleEventIdV210008", + "datacontenttype": "application/cloudevents\u002Bjson; charset=utf-8", + "specversion": "1.0", + "data": { + "resourceUri": "https://dummyurl.com" + } + } + } + ] + } + }, + { + "RequestUri": "https://endpoint/topics/testtopic1/eventsubscriptions/testsubscription1:acknowledge?api-version=2023-10-01-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "99", + "Content-Type": "application/json; charset=UTF-8", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "a4a7f730-60f5-478c-b22c-492eaf3b55e0", + "x-ms-useragent": "azsdk-js-eventgrid-rest/4.13.0-beta.2 core-rest-pipeline/1.11.1 OS" + }, + "RequestBody": { + "lockTokens": [ + "CiYKJEVEMjNGRjVGLUU0MDktNEE5Ni04NDYwLUYyMTA2M0NFNDg4NxISChB782Q7Z7JAJ52pM91DSTE0" + ] + }, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Length": "130", + "Content-Type": "application/json", + "Date": "Tue, 07 Nov 2023 01:27:10 GMT" + }, + "ResponseBody": { + "succeededLockTokens": [ + "CiYKJEVEMjNGRjVGLUU0MDktNEE5Ni04NDYwLUYyMTA2M0NFNDg4NxISChB782Q7Z7JAJ52pM91DSTE0" + ], + "failedLockTokens": [] + } + }, + { + "RequestUri": "https://endpoint/topics/testtopic1/eventsubscriptions/testsubscription1:receive?api-version=2023-10-01-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "0", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "9e08f411-2440-4e24-9cdb-47c132eecb51", + "x-ms-useragent": "azsdk-js-eventgrid-rest/4.13.0-beta.2 core-rest-pipeline/1.11.1 OS" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Length": "12", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 07 Nov 2023 01:28:10 GMT" + }, + "ResponseBody": { + "value": [] + } + } + ], + "Variables": { + "singleEventDate": "Mon Nov 06 2023 17:25:09 GMT-0800 (Pacific Standard Time)", + "singleEventId": "singleEventIdV210008" + } +} diff --git a/sdk/eventgrid/eventgrid/recordings/browsers/eventgridpublisherclient_send_cloudevent_schema/recording_sends_a_single_event.json b/sdk/eventgrid/eventgrid/recordings/browsers/eventgridpublisherclient_send_cloudevent_schema/recording_sends_a_single_event.json index a3a7a519a161..6c59f7b5b255 100644 --- a/sdk/eventgrid/eventgrid/recordings/browsers/eventgridpublisherclient_send_cloudevent_schema/recording_sends_a_single_event.json +++ b/sdk/eventgrid/eventgrid/recordings/browsers/eventgridpublisherclient_send_cloudevent_schema/recording_sends_a_single_event.json @@ -10,33 +10,33 @@ "aeg-sas-key": "api_key", "Connection": "keep-alive", "Content-Length": "241", - "Content-Type": "application/cloudevents-batch\u002Bjson; charset=UTF-8", + "Content-Type": "application/cloudevents-batch\u002Bjson; charset=utf-8", "Referer": "http://localhost:9876/", "sec-ch-ua": "", "sec-ch-ua-mobile": "?0", - "sec-ch-ua-platform": "", + "sec-ch-ua-platform": "\u0022\u0022", "Sec-Fetch-Dest": "empty", "Sec-Fetch-Mode": "cors", "Sec-Fetch-Site": "same-site", - "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/93.0.4577.0 Safari/537.36", - "x-ms-client-request-id": "313d25c0-03aa-4f5a-ad67-e4775337306e", - "x-ms-useragent": "azsdk-js-eventgrid/4.7.1 core-rest-pipeline/1.5.1 OS/Linuxx86_64" + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "3c5b30fc-d0b1-418e-86e2-968ab097c202", + "x-ms-useragent": "azsdk-js-eventgrid/4.13.0-beta.2 core-rest-pipeline/1.11.1 OS" }, - "RequestBody": "[{\u0022id\u0022:\u0022cloudSingleEventId100406\u0022,\u0022source\u0022:\u0022/earth/unitedstates/washington/kirkland/finnhill\u0022,\u0022data\u0022:{\u0022hello\u0022:\u0022world\u0022},\u0022type\u0022:\u0022Azure.Sdk.TestEvent1\u0022,\u0022time\u0022:\u00222022-02-09T01:46:42.000Z\u0022,\u0022specversion\u0022:\u00221.0\u0022,\u0022datacontenttype\u0022:\u0022application/json\u0022}]", + "RequestBody": "[{\u0022id\u0022:\u0022cloudSingleEventId100537\u0022,\u0022source\u0022:\u0022/earth/unitedstates/washington/kirkland/finnhill\u0022,\u0022data\u0022:{\u0022hello\u0022:\u0022world\u0022},\u0022type\u0022:\u0022Azure.Sdk.TestEvent1\u0022,\u0022time\u0022:\u00222023-11-07T01:12:02.000Z\u0022,\u0022specversion\u0022:\u00221.0\u0022,\u0022datacontenttype\u0022:\u0022application/json\u0022}]", "StatusCode": 200, "ResponseHeaders": { "api-supported-versions": "2018-01-01", "Content-Length": "0", - "Date": "Wed, 09 Feb 2022 01:46:41 GMT", + "Date": "Tue, 07 Nov 2023 01:12:02 GMT", "Server": "Microsoft-HTTPAPI/2.0", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "x-ms-request-id": "b8dd700d-46aa-4577-81a1-e6a09599bd00" + "x-ms-request-id": "32c95f9d-0ad2-4bd6-abd9-29b3e0ea50b0" }, "ResponseBody": null } ], "Variables": { - "cloudSingleEventDate": "Wed Feb 09 2022 01:46:42 GMT\u002B0000 (Coordinated Universal Time)", - "cloudSingleEventId": "cloudSingleEventId100406" + "cloudSingleEventDate": "Mon Nov 06 2023 17:12:02 GMT-0800 (Pacific Standard Time)", + "cloudSingleEventId": "cloudSingleEventId100537" } } diff --git a/sdk/eventgrid/eventgrid/recordings/browsers/eventgridpublisherclient_send_cloudevent_schema/recording_sends_multiple_events.json b/sdk/eventgrid/eventgrid/recordings/browsers/eventgridpublisherclient_send_cloudevent_schema/recording_sends_multiple_events.json index 4d66f4cd0ec2..96a25a7ba062 100644 --- a/sdk/eventgrid/eventgrid/recordings/browsers/eventgridpublisherclient_send_cloudevent_schema/recording_sends_multiple_events.json +++ b/sdk/eventgrid/eventgrid/recordings/browsers/eventgridpublisherclient_send_cloudevent_schema/recording_sends_multiple_events.json @@ -10,35 +10,35 @@ "aeg-sas-key": "api_key", "Connection": "keep-alive", "Content-Length": "527", - "Content-Type": "application/cloudevents-batch\u002Bjson; charset=UTF-8", + "Content-Type": "application/cloudevents-batch\u002Bjson; charset=utf-8", "Referer": "http://localhost:9876/", "sec-ch-ua": "", "sec-ch-ua-mobile": "?0", - "sec-ch-ua-platform": "", + "sec-ch-ua-platform": "\u0022\u0022", "Sec-Fetch-Dest": "empty", "Sec-Fetch-Mode": "cors", "Sec-Fetch-Site": "same-site", - "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/93.0.4577.0 Safari/537.36", - "x-ms-client-request-id": "13499098-d25c-4381-bd99-c3beb100b5d8", - "x-ms-useragent": "azsdk-js-eventgrid/4.7.1 core-rest-pipeline/1.5.1 OS/Linuxx86_64" + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "9adce423-a33c-4dd7-96b0-09e7e3b69338", + "x-ms-useragent": "azsdk-js-eventgrid/4.13.0-beta.2 core-rest-pipeline/1.11.1 OS" }, - "RequestBody": "[{\u0022id\u0022:\u0022cloudMultiEventId1100684\u0022,\u0022source\u0022:\u0022/earth/unitedstates/washington/kirkland/finnhill\u0022,\u0022data\u0022:{\u0022hello\u0022:\u0022world\u0022},\u0022type\u0022:\u0022Azure.Sdk.TestEvent1\u0022,\u0022time\u0022:\u00222022-02-09T01:46:42.000Z\u0022,\u0022specversion\u0022:\u00221.0\u0022,\u0022datacontenttype\u0022:\u0022application/json\u0022,\u0022subject\u0022:\u0022Multiple 1\u0022},{\u0022id\u0022:\u0022cloudMultiEventId2100456\u0022,\u0022source\u0022:\u0022/earth/unitedstates/washington/kirkland/finnhill\u0022,\u0022data\u0022:{\u0022hello\u0022:\u0022world\u0022},\u0022type\u0022:\u0022Azure.Sdk.TestEvent1\u0022,\u0022time\u0022:\u00222022-02-09T01:46:42.000Z\u0022,\u0022specversion\u0022:\u00221.0\u0022,\u0022datacontenttype\u0022:\u0022application/json\u0022,\u0022subject\u0022:\u0022Multiple 2\u0022}]", + "RequestBody": "[{\u0022id\u0022:\u0022cloudMultiEventId1100207\u0022,\u0022source\u0022:\u0022/earth/unitedstates/washington/kirkland/finnhill\u0022,\u0022data\u0022:{\u0022hello\u0022:\u0022world\u0022},\u0022type\u0022:\u0022Azure.Sdk.TestEvent1\u0022,\u0022time\u0022:\u00222023-11-07T01:12:02.000Z\u0022,\u0022specversion\u0022:\u00221.0\u0022,\u0022datacontenttype\u0022:\u0022application/json\u0022,\u0022subject\u0022:\u0022Multiple 1\u0022},{\u0022id\u0022:\u0022cloudMultiEventId2100098\u0022,\u0022source\u0022:\u0022/earth/unitedstates/washington/kirkland/finnhill\u0022,\u0022data\u0022:{\u0022hello\u0022:\u0022world\u0022},\u0022type\u0022:\u0022Azure.Sdk.TestEvent1\u0022,\u0022time\u0022:\u00222023-11-07T01:12:02.000Z\u0022,\u0022specversion\u0022:\u00221.0\u0022,\u0022datacontenttype\u0022:\u0022application/json\u0022,\u0022subject\u0022:\u0022Multiple 2\u0022}]", "StatusCode": 200, "ResponseHeaders": { "api-supported-versions": "2018-01-01", "Content-Length": "0", - "Date": "Wed, 09 Feb 2022 01:46:41 GMT", + "Date": "Tue, 07 Nov 2023 01:12:02 GMT", "Server": "Microsoft-HTTPAPI/2.0", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "x-ms-request-id": "824c3f1f-023d-4f56-9948-b5a32d0cbcd5" + "x-ms-request-id": "63c4724f-7f70-4799-bcfd-1fc67467b97c" }, "ResponseBody": null } ], "Variables": { - "cloudMultiEventDate1": "Wed Feb 09 2022 01:46:42 GMT\u002B0000 (Coordinated Universal Time)", - "cloudMultiEventDate2": "Wed Feb 09 2022 01:46:42 GMT\u002B0000 (Coordinated Universal Time)", - "cloudMultiEventId1": "cloudMultiEventId1100684", - "cloudMultiEventId2": "cloudMultiEventId2100456" + "cloudMultiEventDate1": "Mon Nov 06 2023 17:12:02 GMT-0800 (Pacific Standard Time)", + "cloudMultiEventDate2": "Mon Nov 06 2023 17:12:02 GMT-0800 (Pacific Standard Time)", + "cloudMultiEventId1": "cloudMultiEventId1100207", + "cloudMultiEventId2": "cloudMultiEventId2100098" } } diff --git a/sdk/eventgrid/eventgrid/recordings/browsers/eventgridpublisherclient_send_cloudevent_schema_when_tracing_headers_are_present_in_the_request/recording_enriches_events_with_distributed_tracing_information.json b/sdk/eventgrid/eventgrid/recordings/browsers/eventgridpublisherclient_send_cloudevent_schema_when_tracing_headers_are_present_in_the_request/recording_enriches_events_with_distributed_tracing_information.json index ff713f608fc5..5320c2e3a6a8 100644 --- a/sdk/eventgrid/eventgrid/recordings/browsers/eventgridpublisherclient_send_cloudevent_schema_when_tracing_headers_are_present_in_the_request/recording_enriches_events_with_distributed_tracing_information.json +++ b/sdk/eventgrid/eventgrid/recordings/browsers/eventgridpublisherclient_send_cloudevent_schema_when_tracing_headers_are_present_in_the_request/recording_enriches_events_with_distributed_tracing_information.json @@ -14,31 +14,31 @@ "Referer": "http://localhost:9876/", "sec-ch-ua": "", "sec-ch-ua-mobile": "?0", - "sec-ch-ua-platform": "", + "sec-ch-ua-platform": "\u0022\u0022", "Sec-Fetch-Dest": "empty", "Sec-Fetch-Mode": "cors", "Sec-Fetch-Site": "same-site", "traceparent": "00-00000000000000000000000000000001-0000000000000003-00", "tracestate": "00-123", - "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/100.0.4889.0 Safari/537.36", - "x-ms-client-request-id": "a4cb9ae8-21b6-48a1-99d7-0554ebbcf4cd", - "x-ms-useragent": "azsdk-js-eventgrid/4.9.0 core-rest-pipeline/1.8.1 OS/Linuxx86_64" + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "72f413dc-4dae-4cf6-8fb9-71d5ba5e39e2", + "x-ms-useragent": "azsdk-js-eventgrid/4.13.0-beta.2 core-rest-pipeline/1.11.1 OS" }, - "RequestBody": "[{\u0022id\u0022:\u0022cloudTracingEventId100808\u0022,\u0022source\u0022:\u0022/earth/unitedstates/washington/kirkland/finnhill\u0022,\u0022data\u0022:{\u0022hello\u0022:\u0022world\u0022},\u0022type\u0022:\u0022Azure.Sdk.TestEvent1\u0022,\u0022time\u0022:\u00222022-04-07T17:44:42.000Z\u0022,\u0022specversion\u0022:\u00221.0\u0022,\u0022datacontenttype\u0022:\u0022application/json\u0022,\u0022subject\u0022:\u0022Single with Trace Parent\u0022,\u0022traceparent\u0022:\u002200-00000000000000000000000000000001-0000000000000003-00\u0022,\u0022tracestate\u0022:\u002200-123\u0022}]", + "RequestBody": "[{\u0022id\u0022:\u0022cloudTracingEventId100744\u0022,\u0022source\u0022:\u0022/earth/unitedstates/washington/kirkland/finnhill\u0022,\u0022data\u0022:{\u0022hello\u0022:\u0022world\u0022},\u0022type\u0022:\u0022Azure.Sdk.TestEvent1\u0022,\u0022time\u0022:\u00222023-11-07T01:12:02.000Z\u0022,\u0022specversion\u0022:\u00221.0\u0022,\u0022datacontenttype\u0022:\u0022application/json\u0022,\u0022subject\u0022:\u0022Single with Trace Parent\u0022,\u0022traceparent\u0022:\u002200-00000000000000000000000000000001-0000000000000003-00\u0022,\u0022tracestate\u0022:\u002200-123\u0022}]", "StatusCode": 200, "ResponseHeaders": { "api-supported-versions": "2018-01-01", "Content-Length": "0", - "Date": "Thu, 07 Apr 2022 17:44:43 GMT", + "Date": "Tue, 07 Nov 2023 01:12:02 GMT", "Server": "Microsoft-HTTPAPI/2.0", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "x-ms-request-id": "ac9ef148-22c7-460d-be0f-f2e5a52a6289" + "x-ms-request-id": "85b5c1b5-f3ec-487b-a14e-40cdde5ba1a4" }, "ResponseBody": null } ], "Variables": { - "cloudTracingEventDate": "Thu Apr 07 2022 10:44:42 GMT-0700 (Pacific Daylight Time)", - "cloudTracingEventId": "cloudTracingEventId100808" + "cloudTracingEventDate": "Mon Nov 06 2023 17:12:02 GMT-0800 (Pacific Standard Time)", + "cloudTracingEventId": "cloudTracingEventId100744" } } diff --git a/sdk/eventgrid/eventgrid/recordings/browsers/eventgridpublisherclient_send_custom_event_schema/recording_sends_a_single_event.json b/sdk/eventgrid/eventgrid/recordings/browsers/eventgridpublisherclient_send_custom_event_schema/recording_sends_a_single_event.json index 8fd64679900e..46834a837c71 100644 --- a/sdk/eventgrid/eventgrid/recordings/browsers/eventgridpublisherclient_send_custom_event_schema/recording_sends_a_single_event.json +++ b/sdk/eventgrid/eventgrid/recordings/browsers/eventgridpublisherclient_send_custom_event_schema/recording_sends_a_single_event.json @@ -14,23 +14,23 @@ "Referer": "http://localhost:9876/", "sec-ch-ua": "", "sec-ch-ua-mobile": "?0", - "sec-ch-ua-platform": "", + "sec-ch-ua-platform": "\u0022\u0022", "Sec-Fetch-Dest": "empty", "Sec-Fetch-Mode": "cors", "Sec-Fetch-Site": "same-site", - "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/93.0.4577.0 Safari/537.36", - "x-ms-client-request-id": "3f2cc36e-7952-4172-88fa-bd689763aa61", - "x-ms-useragent": "azsdk-js-eventgrid/4.7.1 core-rest-pipeline/1.5.1 OS/Linuxx86_64" + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "a71cafd6-3164-4fb0-84e1-9b7c19c37e8a", + "x-ms-useragent": "azsdk-js-eventgrid/4.13.0-beta.2 core-rest-pipeline/1.11.1 OS" }, "RequestBody": "[{\u0022ver\u0022:\u00221.0\u0022,\u0022typ\u0022:\u0022Azure.Sdk.TestEvent1\u0022,\u0022sub\u0022:\u0022Single\u0022,\u0022payload\u0022:{\u0022hello\u0022:\u0022world\u0022}}]", "StatusCode": 200, "ResponseHeaders": { "api-supported-versions": "2018-01-01", "Content-Length": "0", - "Date": "Wed, 09 Feb 2022 01:46:42 GMT", + "Date": "Tue, 07 Nov 2023 01:12:02 GMT", "Server": "Microsoft-HTTPAPI/2.0", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "x-ms-request-id": "ca214cb0-3b2e-48a4-a151-14ef7b86611e" + "x-ms-request-id": "0247b00c-30ca-4769-9df9-a074001cbe12" }, "ResponseBody": null } diff --git a/sdk/eventgrid/eventgrid/recordings/browsers/eventgridpublisherclient_send_custom_event_schema/recording_sends_multiple_events.json b/sdk/eventgrid/eventgrid/recordings/browsers/eventgridpublisherclient_send_custom_event_schema/recording_sends_multiple_events.json index 3c8fcda3e038..40d8522f2e5d 100644 --- a/sdk/eventgrid/eventgrid/recordings/browsers/eventgridpublisherclient_send_custom_event_schema/recording_sends_multiple_events.json +++ b/sdk/eventgrid/eventgrid/recordings/browsers/eventgridpublisherclient_send_custom_event_schema/recording_sends_multiple_events.json @@ -14,23 +14,23 @@ "Referer": "http://localhost:9876/", "sec-ch-ua": "", "sec-ch-ua-mobile": "?0", - "sec-ch-ua-platform": "", + "sec-ch-ua-platform": "\u0022\u0022", "Sec-Fetch-Dest": "empty", "Sec-Fetch-Mode": "cors", "Sec-Fetch-Site": "same-site", - "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/93.0.4577.0 Safari/537.36", - "x-ms-client-request-id": "dc007351-a9b4-4f4d-825a-b92dc6369110", - "x-ms-useragent": "azsdk-js-eventgrid/4.7.1 core-rest-pipeline/1.5.1 OS/Linuxx86_64" + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "8b49378d-e846-474e-91d1-9df806b55e7d", + "x-ms-useragent": "azsdk-js-eventgrid/4.13.0-beta.2 core-rest-pipeline/1.11.1 OS" }, "RequestBody": "[{\u0022ver\u0022:\u00221.0\u0022,\u0022typ\u0022:\u0022Azure.Sdk.TestEvent1\u0022,\u0022sub\u0022:\u0022Multiple 1\u0022,\u0022payload\u0022:{\u0022hello\u0022:\u0022world\u0022}},{\u0022ver\u0022:\u00221.0\u0022,\u0022typ\u0022:\u0022Azure.Sdk.TestEvent1\u0022,\u0022sub\u0022:\u0022Multiple 2\u0022,\u0022payload\u0022:{\u0022hello\u0022:\u0022world\u0022}}]", "StatusCode": 200, "ResponseHeaders": { "api-supported-versions": "2018-01-01", "Content-Length": "0", - "Date": "Wed, 09 Feb 2022 01:46:42 GMT", + "Date": "Tue, 07 Nov 2023 01:12:03 GMT", "Server": "Microsoft-HTTPAPI/2.0", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "x-ms-request-id": "6a77321d-df28-418b-9f98-c14343a856d7" + "x-ms-request-id": "d2fbf5fa-52c4-40be-a4aa-f9f5b485e055" }, "ResponseBody": null } diff --git a/sdk/eventgrid/eventgrid/recordings/browsers/eventgridpublisherclient_send_error_cases_cloudevent_schema/recording_does_not_append_apievents.json b/sdk/eventgrid/eventgrid/recordings/browsers/eventgridpublisherclient_send_error_cases_cloudevent_schema/recording_does_not_append_apievents.json index a3e8c7397b6b..b7719630b40e 100644 --- a/sdk/eventgrid/eventgrid/recordings/browsers/eventgridpublisherclient_send_error_cases_cloudevent_schema/recording_does_not_append_apievents.json +++ b/sdk/eventgrid/eventgrid/recordings/browsers/eventgridpublisherclient_send_error_cases_cloudevent_schema/recording_does_not_append_apievents.json @@ -14,32 +14,32 @@ "Referer": "http://localhost:9876/", "sec-ch-ua": "", "sec-ch-ua-mobile": "?0", - "sec-ch-ua-platform": "", + "sec-ch-ua-platform": "\u0022\u0022", "Sec-Fetch-Dest": "empty", "Sec-Fetch-Mode": "cors", "Sec-Fetch-Site": "same-site", - "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/101.0.4950.0 Safari/537.36", - "x-ms-client-request-id": "8bad06a1-fa1b-4d99-ad82-1acaeddbab9d", - "x-ms-useragent": "azsdk-js-eventgrid/4.10.0-beta.2 core-rest-pipeline/1.8.2 OS/Linuxx86_64" + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "95fc771d-112e-4dcd-a1ba-646c568e8291", + "x-ms-useragent": "azsdk-js-eventgrid/4.13.0-beta.2 core-rest-pipeline/1.11.1 OS" }, - "RequestBody": "[{\u0022id\u0022:\u0022cloudSingleEventId100199\u0022,\u0022source\u0022:\u0022/earth/unitedstates/washington/kirkland/finnhill\u0022,\u0022data\u0022:{\u0022hello\u0022:\u0022world\u0022},\u0022type\u0022:\u0022Azure.Sdk.TestEvent1\u0022,\u0022time\u0022:\u00222022-05-11T00:24:51.000Z\u0022,\u0022specversion\u0022:\u00221.0\u0022,\u0022datacontenttype\u0022:\u0022application/json\u0022}]", + "RequestBody": "[{\u0022id\u0022:\u0022cloudSingleEventId100530\u0022,\u0022source\u0022:\u0022/earth/unitedstates/washington/kirkland/finnhill\u0022,\u0022data\u0022:{\u0022hello\u0022:\u0022world\u0022},\u0022type\u0022:\u0022Azure.Sdk.TestEvent1\u0022,\u0022time\u0022:\u00222023-11-07T01:12:02.000Z\u0022,\u0022specversion\u0022:\u00221.0\u0022,\u0022datacontenttype\u0022:\u0022application/json\u0022}]", "StatusCode": 404, "ResponseHeaders": { - "Content-Length": "635", + "Content-Length": "633", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 11 May 2022 00:24:52 GMT", + "Date": "Tue, 07 Nov 2023 01:12:03 GMT", "Server": "Microsoft-HTTPAPI/2.0", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "x-ms-request-id": "6ac5e28e-d324-411a-ab0c-7d2df747ab79" + "x-ms-request-id": "6a7c9101-9791-4738-af42-2ed729bd85ab" }, "ResponseBody": { "error": { "code": "NotFound", - "message": "No HTTP resource was found that matches the request URI \u0027https://endpoint/?api-version=2018-01-01\u0027. Report \u00276ac5e28e-d324-411a-ab0c-7d2df747ab79:5/11/2022 12:24:52 AM (UTC)\u0027 to our forums for assistance or raise a support ticket.", + "message": "No HTTP resource was found that matches the request URI \u0027https://endpoint/?api-version=2018-01-01\u0027. Report \u00276a7c9101-9791-4738-af42-2ed729bd85ab:11/7/2023 1:12:03 AM (UTC)\u0027 to our forums for assistance or raise a support ticket.", "details": [ { "code": "ResourceNotFound", - "message": "No HTTP resource was found that matches the request URI \u0027https://endpoint/?api-version=2018-01-01\u0027. Report \u00276ac5e28e-d324-411a-ab0c-7d2df747ab79:5/11/2022 12:24:52 AM (UTC)\u0027 to our forums for assistance or raise a support ticket." + "message": "No HTTP resource was found that matches the request URI \u0027https://endpoint/?api-version=2018-01-01\u0027. Report \u00276a7c9101-9791-4738-af42-2ed729bd85ab:11/7/2023 1:12:03 AM (UTC)\u0027 to our forums for assistance or raise a support ticket." } ] } @@ -47,7 +47,7 @@ } ], "Variables": { - "cloudSingleEventDate": "Tue May 10 2022 17:24:51 GMT-0700 (Pacific Daylight Time)", - "cloudSingleEventId": "cloudSingleEventId100199" + "cloudSingleEventDate": "Mon Nov 06 2023 17:12:02 GMT-0800 (Pacific Standard Time)", + "cloudSingleEventId": "cloudSingleEventId100530" } } diff --git a/sdk/eventgrid/eventgrid/recordings/browsers/eventgridpublisherclient_send_error_cases_custom_event_schema/recording_does_not_append_apievents.json b/sdk/eventgrid/eventgrid/recordings/browsers/eventgridpublisherclient_send_error_cases_custom_event_schema/recording_does_not_append_apievents.json index 50623fffaa57..5440d586c757 100644 --- a/sdk/eventgrid/eventgrid/recordings/browsers/eventgridpublisherclient_send_error_cases_custom_event_schema/recording_does_not_append_apievents.json +++ b/sdk/eventgrid/eventgrid/recordings/browsers/eventgridpublisherclient_send_error_cases_custom_event_schema/recording_does_not_append_apievents.json @@ -14,32 +14,32 @@ "Referer": "http://localhost:9876/", "sec-ch-ua": "", "sec-ch-ua-mobile": "?0", - "sec-ch-ua-platform": "", + "sec-ch-ua-platform": "\u0022\u0022", "Sec-Fetch-Dest": "empty", "Sec-Fetch-Mode": "cors", "Sec-Fetch-Site": "same-site", - "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/101.0.4950.0 Safari/537.36", - "x-ms-client-request-id": "7f7c3231-06ec-4e62-97ab-6b78391237f7", - "x-ms-useragent": "azsdk-js-eventgrid/4.10.0-beta.2 core-rest-pipeline/1.8.2 OS/Linuxx86_64" + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "4d772b59-545d-4f9c-9a8a-0aad01151c98", + "x-ms-useragent": "azsdk-js-eventgrid/4.13.0-beta.2 core-rest-pipeline/1.11.1 OS" }, "RequestBody": "[{\u0022ver\u0022:\u00221.0\u0022,\u0022typ\u0022:\u0022Azure.Sdk.TestEvent1\u0022,\u0022sub\u0022:\u0022Single\u0022,\u0022payload\u0022:{\u0022hello\u0022:\u0022world\u0022}}]", "StatusCode": 404, "ResponseHeaders": { - "Content-Length": "635", + "Content-Length": "633", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 11 May 2022 00:24:52 GMT", + "Date": "Tue, 07 Nov 2023 01:12:03 GMT", "Server": "Microsoft-HTTPAPI/2.0", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "x-ms-request-id": "e5082949-7c88-4b4a-91cf-dffceaa5cfb1" + "x-ms-request-id": "5f90b5c4-a292-4c8b-ae78-03684f3dda1b" }, "ResponseBody": { "error": { "code": "NotFound", - "message": "No HTTP resource was found that matches the request URI \u0027https://endpoint/?api-version=2018-01-01\u0027. Report \u0027e5082949-7c88-4b4a-91cf-dffceaa5cfb1:5/11/2022 12:24:53 AM (UTC)\u0027 to our forums for assistance or raise a support ticket.", + "message": "No HTTP resource was found that matches the request URI \u0027https://endpoint/?api-version=2018-01-01\u0027. Report \u00275f90b5c4-a292-4c8b-ae78-03684f3dda1b:11/7/2023 1:12:03 AM (UTC)\u0027 to our forums for assistance or raise a support ticket.", "details": [ { "code": "ResourceNotFound", - "message": "No HTTP resource was found that matches the request URI \u0027https://endpoint/?api-version=2018-01-01\u0027. Report \u0027e5082949-7c88-4b4a-91cf-dffceaa5cfb1:5/11/2022 12:24:53 AM (UTC)\u0027 to our forums for assistance or raise a support ticket." + "message": "No HTTP resource was found that matches the request URI \u0027https://endpoint/?api-version=2018-01-01\u0027. Report \u00275f90b5c4-a292-4c8b-ae78-03684f3dda1b:11/7/2023 1:12:03 AM (UTC)\u0027 to our forums for assistance or raise a support ticket." } ] } diff --git a/sdk/eventgrid/eventgrid/recordings/browsers/eventgridpublisherclient_send_error_cases_eventgrid_schema/recording_does_not_append_apievents.json b/sdk/eventgrid/eventgrid/recordings/browsers/eventgridpublisherclient_send_error_cases_eventgrid_schema/recording_does_not_append_apievents.json index c0eb41983241..260f989ccc3d 100644 --- a/sdk/eventgrid/eventgrid/recordings/browsers/eventgridpublisherclient_send_error_cases_eventgrid_schema/recording_does_not_append_apievents.json +++ b/sdk/eventgrid/eventgrid/recordings/browsers/eventgridpublisherclient_send_error_cases_eventgrid_schema/recording_does_not_append_apievents.json @@ -14,32 +14,32 @@ "Referer": "http://localhost:9876/", "sec-ch-ua": "", "sec-ch-ua-mobile": "?0", - "sec-ch-ua-platform": "", + "sec-ch-ua-platform": "\u0022\u0022", "Sec-Fetch-Dest": "empty", "Sec-Fetch-Mode": "cors", "Sec-Fetch-Site": "same-site", - "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/101.0.4950.0 Safari/537.36", - "x-ms-client-request-id": "f93fb6c3-783f-479e-b173-baf422341c9b", - "x-ms-useragent": "azsdk-js-eventgrid/4.10.0-beta.2 core-rest-pipeline/1.8.2 OS/Linuxx86_64" + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "a9a25fb0-3d3d-40f4-8616-695a0177cd85", + "x-ms-useragent": "azsdk-js-eventgrid/4.13.0-beta.2 core-rest-pipeline/1.11.1 OS" }, - "RequestBody": "[{\u0022id\u0022:\u0022singleEventId100224\u0022,\u0022subject\u0022:\u0022Single 1\u0022,\u0022data\u0022:{\u0022hello\u0022:\u0022world\u0022},\u0022eventType\u0022:\u0022Azure.Sdk.TestEvent1\u0022,\u0022eventTime\u0022:\u00222022-05-11T00:24:51.000Z\u0022,\u0022dataVersion\u0022:\u00221.0\u0022}]", + "RequestBody": "[{\u0022id\u0022:\u0022singleEventId100291\u0022,\u0022subject\u0022:\u0022Single 1\u0022,\u0022data\u0022:{\u0022hello\u0022:\u0022world\u0022},\u0022eventType\u0022:\u0022Azure.Sdk.TestEvent1\u0022,\u0022eventTime\u0022:\u00222023-11-07T01:12:01.000Z\u0022,\u0022dataVersion\u0022:\u00221.0\u0022}]", "StatusCode": 404, "ResponseHeaders": { - "Content-Length": "635", + "Content-Length": "633", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 11 May 2022 00:24:51 GMT", + "Date": "Tue, 07 Nov 2023 01:12:01 GMT", "Server": "Microsoft-HTTPAPI/2.0", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "x-ms-request-id": "ea738ce5-4938-422b-ac61-4d618e75b27f" + "x-ms-request-id": "255e1fd0-1edc-4444-89b1-f844408bf947" }, "ResponseBody": { "error": { "code": "NotFound", - "message": "No HTTP resource was found that matches the request URI \u0027https://endpoint/?api-version=2018-01-01\u0027. Report \u0027ea738ce5-4938-422b-ac61-4d618e75b27f:5/11/2022 12:24:52 AM (UTC)\u0027 to our forums for assistance or raise a support ticket.", + "message": "No HTTP resource was found that matches the request URI \u0027https://endpoint/?api-version=2018-01-01\u0027. Report \u0027255e1fd0-1edc-4444-89b1-f844408bf947:11/7/2023 1:12:02 AM (UTC)\u0027 to our forums for assistance or raise a support ticket.", "details": [ { "code": "ResourceNotFound", - "message": "No HTTP resource was found that matches the request URI \u0027https://endpoint/?api-version=2018-01-01\u0027. Report \u0027ea738ce5-4938-422b-ac61-4d618e75b27f:5/11/2022 12:24:52 AM (UTC)\u0027 to our forums for assistance or raise a support ticket." + "message": "No HTTP resource was found that matches the request URI \u0027https://endpoint/?api-version=2018-01-01\u0027. Report \u0027255e1fd0-1edc-4444-89b1-f844408bf947:11/7/2023 1:12:02 AM (UTC)\u0027 to our forums for assistance or raise a support ticket." } ] } @@ -47,7 +47,7 @@ } ], "Variables": { - "singleEventDate": "Tue May 10 2022 17:24:51 GMT-0700 (Pacific Daylight Time)", - "singleEventId": "singleEventId100224" + "singleEventDate": "Mon Nov 06 2023 17:12:01 GMT-0800 (Pacific Standard Time)", + "singleEventId": "singleEventId100291" } } diff --git a/sdk/eventgrid/eventgrid/recordings/browsers/eventgridpublisherclient_send_eventgrid_schema/recording_sends_a_single_event.json b/sdk/eventgrid/eventgrid/recordings/browsers/eventgridpublisherclient_send_eventgrid_schema/recording_sends_a_single_event.json index 7a35b6589616..a30e245c320e 100644 --- a/sdk/eventgrid/eventgrid/recordings/browsers/eventgridpublisherclient_send_eventgrid_schema/recording_sends_a_single_event.json +++ b/sdk/eventgrid/eventgrid/recordings/browsers/eventgridpublisherclient_send_eventgrid_schema/recording_sends_a_single_event.json @@ -14,29 +14,29 @@ "Referer": "http://localhost:9876/", "sec-ch-ua": "", "sec-ch-ua-mobile": "?0", - "sec-ch-ua-platform": "", + "sec-ch-ua-platform": "\u0022\u0022", "Sec-Fetch-Dest": "empty", "Sec-Fetch-Mode": "cors", "Sec-Fetch-Site": "same-site", - "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/93.0.4577.0 Safari/537.36", - "x-ms-client-request-id": "d67d2d81-2e74-4243-bb6c-8bc68893bd4e", - "x-ms-useragent": "azsdk-js-eventgrid/4.7.1 core-rest-pipeline/1.5.1 OS/Linuxx86_64" + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "9ea6b0c3-6f7c-47b5-8d31-ed8c5c801b3f", + "x-ms-useragent": "azsdk-js-eventgrid/4.13.0-beta.2 core-rest-pipeline/1.11.1 OS" }, - "RequestBody": "[{\u0022id\u0022:\u0022singleEventId100758\u0022,\u0022subject\u0022:\u0022Single 1\u0022,\u0022data\u0022:{\u0022hello\u0022:\u0022world\u0022},\u0022eventType\u0022:\u0022Azure.Sdk.TestEvent1\u0022,\u0022eventTime\u0022:\u00222022-02-09T01:46:41.000Z\u0022,\u0022dataVersion\u0022:\u00221.0\u0022}]", + "RequestBody": "[{\u0022id\u0022:\u0022singleEventId100920\u0022,\u0022subject\u0022:\u0022Single 1\u0022,\u0022data\u0022:{\u0022hello\u0022:\u0022world\u0022},\u0022eventType\u0022:\u0022Azure.Sdk.TestEvent1\u0022,\u0022eventTime\u0022:\u00222023-11-07T01:12:00.000Z\u0022,\u0022dataVersion\u0022:\u00221.0\u0022}]", "StatusCode": 200, "ResponseHeaders": { "api-supported-versions": "2018-01-01", "Content-Length": "0", - "Date": "Wed, 09 Feb 2022 01:46:41 GMT", + "Date": "Tue, 07 Nov 2023 01:12:01 GMT", "Server": "Microsoft-HTTPAPI/2.0", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "x-ms-request-id": "c9ed192f-4e0b-4fa2-b3eb-cb9310c0b1a5" + "x-ms-request-id": "8427689a-af87-4c70-82fa-bd80626e4833" }, "ResponseBody": null } ], "Variables": { - "singleEventDate": "Wed Feb 09 2022 01:46:41 GMT\u002B0000 (Coordinated Universal Time)", - "singleEventId": "singleEventId100758" + "singleEventDate": "Mon Nov 06 2023 17:12:00 GMT-0800 (Pacific Standard Time)", + "singleEventId": "singleEventId100920" } } diff --git a/sdk/eventgrid/eventgrid/recordings/browsers/eventgridpublisherclient_send_eventgrid_schema/recording_sends_multiple_events.json b/sdk/eventgrid/eventgrid/recordings/browsers/eventgridpublisherclient_send_eventgrid_schema/recording_sends_multiple_events.json index 331d36165cf5..9bfefaa2b7e2 100644 --- a/sdk/eventgrid/eventgrid/recordings/browsers/eventgridpublisherclient_send_eventgrid_schema/recording_sends_multiple_events.json +++ b/sdk/eventgrid/eventgrid/recordings/browsers/eventgridpublisherclient_send_eventgrid_schema/recording_sends_multiple_events.json @@ -14,31 +14,31 @@ "Referer": "http://localhost:9876/", "sec-ch-ua": "", "sec-ch-ua-mobile": "?0", - "sec-ch-ua-platform": "", + "sec-ch-ua-platform": "\u0022\u0022", "Sec-Fetch-Dest": "empty", "Sec-Fetch-Mode": "cors", "Sec-Fetch-Site": "same-site", - "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/93.0.4577.0 Safari/537.36", - "x-ms-client-request-id": "852703f5-f475-4959-aa2e-53e16345ad35", - "x-ms-useragent": "azsdk-js-eventgrid/4.7.1 core-rest-pipeline/1.5.1 OS/Linuxx86_64" + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "5fda78ec-8320-4adb-b245-92f01e257173", + "x-ms-useragent": "azsdk-js-eventgrid/4.13.0-beta.2 core-rest-pipeline/1.11.1 OS" }, - "RequestBody": "[{\u0022id\u0022:\u0022multiEventId1100922\u0022,\u0022subject\u0022:\u0022Multiple 1\u0022,\u0022data\u0022:{\u0022hello\u0022:\u0022world\u0022},\u0022eventType\u0022:\u0022Azure.Sdk.TestEvent1\u0022,\u0022eventTime\u0022:\u00222022-02-09T01:46:41.000Z\u0022,\u0022dataVersion\u0022:\u00221.0\u0022},{\u0022id\u0022:\u0022multiEventId2100610\u0022,\u0022subject\u0022:\u0022Multiple 2\u0022,\u0022data\u0022:{\u0022hello\u0022:\u0022world\u0022},\u0022eventType\u0022:\u0022Azure.Sdk.TestEvent1\u0022,\u0022eventTime\u0022:\u00222022-02-09T01:46:41.000Z\u0022,\u0022dataVersion\u0022:\u00221.0\u0022}]", + "RequestBody": "[{\u0022id\u0022:\u0022multiEventId1100062\u0022,\u0022subject\u0022:\u0022Multiple 1\u0022,\u0022data\u0022:{\u0022hello\u0022:\u0022world\u0022},\u0022eventType\u0022:\u0022Azure.Sdk.TestEvent1\u0022,\u0022eventTime\u0022:\u00222023-11-07T01:12:01.000Z\u0022,\u0022dataVersion\u0022:\u00221.0\u0022},{\u0022id\u0022:\u0022multiEventId2100652\u0022,\u0022subject\u0022:\u0022Multiple 2\u0022,\u0022data\u0022:{\u0022hello\u0022:\u0022world\u0022},\u0022eventType\u0022:\u0022Azure.Sdk.TestEvent1\u0022,\u0022eventTime\u0022:\u00222023-11-07T01:12:01.000Z\u0022,\u0022dataVersion\u0022:\u00221.0\u0022}]", "StatusCode": 200, "ResponseHeaders": { "api-supported-versions": "2018-01-01", "Content-Length": "0", - "Date": "Wed, 09 Feb 2022 01:46:41 GMT", + "Date": "Tue, 07 Nov 2023 01:12:01 GMT", "Server": "Microsoft-HTTPAPI/2.0", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "x-ms-request-id": "ecb96f25-0174-4de0-b70f-f07f26dfd2bd" + "x-ms-request-id": "5c8f73ba-13c4-402f-8db9-de0a4db39156" }, "ResponseBody": null } ], "Variables": { - "multiEventDate1": "Wed Feb 09 2022 01:46:41 GMT\u002B0000 (Coordinated Universal Time)", - "multiEventDate2": "Wed Feb 09 2022 01:46:41 GMT\u002B0000 (Coordinated Universal Time)", - "multiEventId1": "multiEventId1100922", - "multiEventId2": "multiEventId2100610" + "multiEventDate1": "Mon Nov 06 2023 17:12:01 GMT-0800 (Pacific Standard Time)", + "multiEventDate2": "Mon Nov 06 2023 17:12:01 GMT-0800 (Pacific Standard Time)", + "multiEventId1": "multiEventId1100062", + "multiEventId2": "multiEventId2100652" } } diff --git a/sdk/eventgrid/eventgrid/recordings/node/event_grid_client_v2/recording_releases_a_cloud_event.json b/sdk/eventgrid/eventgrid/recordings/node/event_grid_client_v2/recording_releases_a_cloud_event.json deleted file mode 100644 index 28a1602ecd1c..000000000000 --- a/sdk/eventgrid/eventgrid/recordings/node/event_grid_client_v2/recording_releases_a_cloud_event.json +++ /dev/null @@ -1,469 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://endpoint/topics/testtopic1/eventsubscriptions/testsubscription1:receive?api-version=2023-06-01-preview", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip,deflate", - "Authorization": "Sanitized", - "Connection": "keep-alive", - "Content-Length": "0", - "User-Agent": "azsdk-js-event-grid-modular-rest/1.0.0-beta.1 core-rest-pipeline/1.10.4 Node/v18.15.0 OS/(x64-Windows_NT-10.0.22621)", - "x-ms-client-request-id": "71916028-767c-4d23-8b52-cc1ffed53ef3" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Content-Length": "12", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 22 Jun 2023 19:28:11 GMT" - }, - "ResponseBody": { - "value": [] - } - }, - { - "RequestUri": "https://endpoint/topics/testtopic1:publish?api-version=2023-06-01-preview", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip,deflate", - "Authorization": "Sanitized", - "Connection": "keep-alive", - "Content-Length": "212", - "Content-Type": "application/cloudevents\u002Bjson; charset=utf-8", - "User-Agent": "azsdk-js-event-grid-modular-rest/1.0.0-beta.1 core-rest-pipeline/1.10.4 Node/v18.15.0 OS/(x64-Windows_NT-10.0.22621)", - "x-ms-client-request-id": "3ed510bd-3dae-4870-be5c-af9e2a1bbf41" - }, - "RequestBody": { - "specversion": "1.0", - "type": "example", - "source": "https://example.com", - "id": "singleEventId10004", - "time": "2023-06-22T19:28:11.000Z", - "datacontenttype": "application/json", - "data": { - "resourceUri": "https://dummyurl.com" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "Content-Length": "2", - "Content-Type": "application/json", - "Date": "Thu, 22 Jun 2023 19:28:11 GMT" - }, - "ResponseBody": {} - }, - { - "RequestUri": "https://endpoint/topics/testtopic1/eventsubscriptions/testsubscription1:receive?api-version=2023-06-01-preview", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip,deflate", - "Authorization": "Sanitized", - "Connection": "keep-alive", - "Content-Length": "0", - "User-Agent": "azsdk-js-event-grid-modular-rest/1.0.0-beta.1 core-rest-pipeline/1.10.4 Node/v18.15.0 OS/(x64-Windows_NT-10.0.22621)", - "x-ms-client-request-id": "6c1af2ec-6dd7-4bd8-b18f-9056f262f882" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Content-Length": "364", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 22 Jun 2023 19:28:12 GMT" - }, - "ResponseBody": { - "value": [ - { - "brokerProperties": { - "lockToken": "CiYKJEM5OTk5RDE5LTExN0ItNEM2Ni04NjNFLTg2QUJERkVBODlGMRISChCDyG9LtMRNXLy2w1ShsOxo", - "deliveryCount": 1 - }, - "event": { - "type": "example", - "source": "https://example.com", - "time": "2023-06-22T19:28:11Z", - "id": "singleEventId10004", - "datacontenttype": "application/json", - "specversion": "1.0", - "data": { - "resourceUri": "https://dummyurl.com" - } - } - } - ] - } - }, - { - "RequestUri": "https://endpoint/topics/testtopic1/eventsubscriptions/testsubscription1:release?api-version=2023-06-01-preview", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip,deflate", - "Authorization": "Sanitized", - "Connection": "keep-alive", - "Content-Length": "99", - "Content-Type": "application/json; charset=utf-8", - "User-Agent": "azsdk-js-event-grid-modular-rest/1.0.0-beta.1 core-rest-pipeline/1.10.4 Node/v18.15.0 OS/(x64-Windows_NT-10.0.22621)", - "x-ms-client-request-id": "52628854-af5a-4511-95e0-2707295ed3d9" - }, - "RequestBody": { - "lockTokens": [ - "CiYKJEM5OTk5RDE5LTExN0ItNEM2Ni04NjNFLTg2QUJERkVBODlGMRISChCDyG9LtMRNXLy2w1ShsOxo" - ] - }, - "StatusCode": 200, - "ResponseHeaders": { - "Content-Length": "130", - "Content-Type": "application/json", - "Date": "Thu, 22 Jun 2023 19:28:12 GMT" - }, - "ResponseBody": { - "succeededLockTokens": [ - "CiYKJEM5OTk5RDE5LTExN0ItNEM2Ni04NjNFLTg2QUJERkVBODlGMRISChCDyG9LtMRNXLy2w1ShsOxo" - ], - "failedLockTokens": [] - } - }, - { - "RequestUri": "https://endpoint/topics/testtopic1/eventsubscriptions/testsubscription1:receive?api-version=2023-06-01-preview", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip,deflate", - "Authorization": "Sanitized", - "Connection": "keep-alive", - "Content-Length": "0", - "User-Agent": "azsdk-js-event-grid-modular-rest/1.0.0-beta.1 core-rest-pipeline/1.10.4 Node/v18.15.0 OS/(x64-Windows_NT-10.0.22621)", - "x-ms-client-request-id": "3c766736-bc9c-4bf1-93b6-7230ed916085" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Content-Length": "364", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 22 Jun 2023 19:28:12 GMT" - }, - "ResponseBody": { - "value": [ - { - "brokerProperties": { - "lockToken": "CiYKJEM5OTk5RDE5LTExN0ItNEM2Ni04NjNFLTg2QUJERkVBODlGMRISChDk\u002BrHUc\u002BtB46IGNWVx3\u002B5z", - "deliveryCount": 2 - }, - "event": { - "type": "example", - "source": "https://example.com", - "time": "2023-06-22T19:28:11Z", - "id": "singleEventId10004", - "datacontenttype": "application/json", - "specversion": "1.0", - "data": { - "resourceUri": "https://dummyurl.com" - } - } - } - ] - } - }, - { - "RequestUri": "https://endpoint/topics/testtopic1/eventsubscriptions/testsubscription1:release?api-version=2023-06-01-preview", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip,deflate", - "Authorization": "Sanitized", - "Connection": "keep-alive", - "Content-Length": "99", - "Content-Type": "application/json; charset=utf-8", - "User-Agent": "azsdk-js-event-grid-modular-rest/1.0.0-beta.1 core-rest-pipeline/1.10.4 Node/v18.15.0 OS/(x64-Windows_NT-10.0.22621)", - "x-ms-client-request-id": "1813e719-57dc-4bea-8f49-83c9c5ba6fd7" - }, - "RequestBody": { - "lockTokens": [ - "CiYKJEM5OTk5RDE5LTExN0ItNEM2Ni04NjNFLTg2QUJERkVBODlGMRISChDk\u002BrHUc\u002BtB46IGNWVx3\u002B5z" - ] - }, - "StatusCode": 200, - "ResponseHeaders": { - "Content-Length": "130", - "Content-Type": "application/json", - "Date": "Thu, 22 Jun 2023 19:28:12 GMT" - }, - "ResponseBody": { - "succeededLockTokens": [ - "CiYKJEM5OTk5RDE5LTExN0ItNEM2Ni04NjNFLTg2QUJERkVBODlGMRISChDk\u002BrHUc\u002BtB46IGNWVx3\u002B5z" - ], - "failedLockTokens": [] - } - }, - { - "RequestUri": "https://endpoint/topics/testtopic1/eventsubscriptions/testsubscription1:receive?api-version=2023-06-01-preview", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip,deflate", - "Authorization": "Sanitized", - "Connection": "keep-alive", - "Content-Length": "0", - "User-Agent": "azsdk-js-event-grid-modular-rest/1.0.0-beta.1 core-rest-pipeline/1.10.4 Node/v18.15.0 OS/(x64-Windows_NT-10.0.22621)", - "x-ms-client-request-id": "4193f150-f4e7-41af-848e-c52a0ffb2d72" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Content-Length": "364", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 22 Jun 2023 19:28:12 GMT" - }, - "ResponseBody": { - "value": [ - { - "brokerProperties": { - "lockToken": "CiYKJEM5OTk5RDE5LTExN0ItNEM2Ni04NjNFLTg2QUJERkVBODlGMRISChDTlVIPFVlGrJHodeHV4dST", - "deliveryCount": 3 - }, - "event": { - "type": "example", - "source": "https://example.com", - "time": "2023-06-22T19:28:11Z", - "id": "singleEventId10004", - "datacontenttype": "application/json", - "specversion": "1.0", - "data": { - "resourceUri": "https://dummyurl.com" - } - } - } - ] - } - }, - { - "RequestUri": "https://endpoint/topics/testtopic1/eventsubscriptions/testsubscription1:release?api-version=2023-06-01-preview", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip,deflate", - "Authorization": "Sanitized", - "Connection": "keep-alive", - "Content-Length": "99", - "Content-Type": "application/json; charset=utf-8", - "User-Agent": "azsdk-js-event-grid-modular-rest/1.0.0-beta.1 core-rest-pipeline/1.10.4 Node/v18.15.0 OS/(x64-Windows_NT-10.0.22621)", - "x-ms-client-request-id": "43ccc93c-f854-4105-9ee7-9c232fd56088" - }, - "RequestBody": { - "lockTokens": [ - "CiYKJEM5OTk5RDE5LTExN0ItNEM2Ni04NjNFLTg2QUJERkVBODlGMRISChDTlVIPFVlGrJHodeHV4dST" - ] - }, - "StatusCode": 200, - "ResponseHeaders": { - "Content-Length": "130", - "Content-Type": "application/json", - "Date": "Thu, 22 Jun 2023 19:28:12 GMT" - }, - "ResponseBody": { - "succeededLockTokens": [ - "CiYKJEM5OTk5RDE5LTExN0ItNEM2Ni04NjNFLTg2QUJERkVBODlGMRISChDTlVIPFVlGrJHodeHV4dST" - ], - "failedLockTokens": [] - } - }, - { - "RequestUri": "https://endpoint/topics/testtopic1/eventsubscriptions/testsubscription1:receive?api-version=2023-06-01-preview", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip,deflate", - "Authorization": "Sanitized", - "Connection": "keep-alive", - "Content-Length": "0", - "User-Agent": "azsdk-js-event-grid-modular-rest/1.0.0-beta.1 core-rest-pipeline/1.10.4 Node/v18.15.0 OS/(x64-Windows_NT-10.0.22621)", - "x-ms-client-request-id": "30e88495-c69a-4790-931c-29c6c295b7ff" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Content-Length": "364", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 22 Jun 2023 19:28:12 GMT" - }, - "ResponseBody": { - "value": [ - { - "brokerProperties": { - "lockToken": "CiYKJEM5OTk5RDE5LTExN0ItNEM2Ni04NjNFLTg2QUJERkVBODlGMRISChBnsZFMAktDbp\u002BuOnlMA7rE", - "deliveryCount": 4 - }, - "event": { - "type": "example", - "source": "https://example.com", - "time": "2023-06-22T19:28:11Z", - "id": "singleEventId10004", - "datacontenttype": "application/json", - "specversion": "1.0", - "data": { - "resourceUri": "https://dummyurl.com" - } - } - } - ] - } - }, - { - "RequestUri": "https://endpoint/topics/testtopic1/eventsubscriptions/testsubscription1:release?api-version=2023-06-01-preview", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip,deflate", - "Authorization": "Sanitized", - "Connection": "keep-alive", - "Content-Length": "99", - "Content-Type": "application/json; charset=utf-8", - "User-Agent": "azsdk-js-event-grid-modular-rest/1.0.0-beta.1 core-rest-pipeline/1.10.4 Node/v18.15.0 OS/(x64-Windows_NT-10.0.22621)", - "x-ms-client-request-id": "11d2ac78-ca06-43ff-8840-ede8288923c4" - }, - "RequestBody": { - "lockTokens": [ - "CiYKJEM5OTk5RDE5LTExN0ItNEM2Ni04NjNFLTg2QUJERkVBODlGMRISChBnsZFMAktDbp\u002BuOnlMA7rE" - ] - }, - "StatusCode": 200, - "ResponseHeaders": { - "Content-Length": "130", - "Content-Type": "application/json", - "Date": "Thu, 22 Jun 2023 19:28:12 GMT" - }, - "ResponseBody": { - "succeededLockTokens": [ - "CiYKJEM5OTk5RDE5LTExN0ItNEM2Ni04NjNFLTg2QUJERkVBODlGMRISChBnsZFMAktDbp\u002BuOnlMA7rE" - ], - "failedLockTokens": [] - } - }, - { - "RequestUri": "https://endpoint/topics/testtopic1/eventsubscriptions/testsubscription1:receive?api-version=2023-06-01-preview", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip,deflate", - "Authorization": "Sanitized", - "Connection": "keep-alive", - "Content-Length": "0", - "User-Agent": "azsdk-js-event-grid-modular-rest/1.0.0-beta.1 core-rest-pipeline/1.10.4 Node/v18.15.0 OS/(x64-Windows_NT-10.0.22621)", - "x-ms-client-request-id": "e960b8ac-be19-41f0-bd47-0be6f5f69f1e" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Content-Length": "364", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 22 Jun 2023 19:28:12 GMT" - }, - "ResponseBody": { - "value": [ - { - "brokerProperties": { - "lockToken": "CiYKJEM5OTk5RDE5LTExN0ItNEM2Ni04NjNFLTg2QUJERkVBODlGMRISChCE4fVmdYRGFat6HWRuuPi6", - "deliveryCount": 5 - }, - "event": { - "type": "example", - "source": "https://example.com", - "time": "2023-06-22T19:28:11Z", - "id": "singleEventId10004", - "datacontenttype": "application/json", - "specversion": "1.0", - "data": { - "resourceUri": "https://dummyurl.com" - } - } - } - ] - } - }, - { - "RequestUri": "https://endpoint/topics/testtopic1/eventsubscriptions/testsubscription1:release?api-version=2023-06-01-preview", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip,deflate", - "Authorization": "Sanitized", - "Connection": "keep-alive", - "Content-Length": "99", - "Content-Type": "application/json; charset=utf-8", - "User-Agent": "azsdk-js-event-grid-modular-rest/1.0.0-beta.1 core-rest-pipeline/1.10.4 Node/v18.15.0 OS/(x64-Windows_NT-10.0.22621)", - "x-ms-client-request-id": "63d01d33-d1e7-4f11-8ffc-1e174a48c3c7" - }, - "RequestBody": { - "lockTokens": [ - "CiYKJEM5OTk5RDE5LTExN0ItNEM2Ni04NjNFLTg2QUJERkVBODlGMRISChCE4fVmdYRGFat6HWRuuPi6" - ] - }, - "StatusCode": 200, - "ResponseHeaders": { - "Content-Length": "130", - "Content-Type": "application/json", - "Date": "Thu, 22 Jun 2023 19:28:12 GMT" - }, - "ResponseBody": { - "succeededLockTokens": [ - "CiYKJEM5OTk5RDE5LTExN0ItNEM2Ni04NjNFLTg2QUJERkVBODlGMRISChCE4fVmdYRGFat6HWRuuPi6" - ], - "failedLockTokens": [] - } - }, - { - "RequestUri": "https://endpoint/topics/testtopic1/eventsubscriptions/testsubscription1:receive?api-version=2023-06-01-preview", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip,deflate", - "Authorization": "Sanitized", - "Connection": "keep-alive", - "Content-Length": "0", - "User-Agent": "azsdk-js-event-grid-modular-rest/1.0.0-beta.1 core-rest-pipeline/1.10.4 Node/v18.15.0 OS/(x64-Windows_NT-10.0.22621)", - "x-ms-client-request-id": "9bc25ece-4bb6-4797-a7bd-65d3f2b681d6" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Content-Length": "12", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 22 Jun 2023 19:29:13 GMT" - }, - "ResponseBody": { - "value": [] - } - }, - { - "RequestUri": "https://endpoint/topics/testtopic1/eventsubscriptions/testsubscription1:receive?api-version=2023-06-01-preview", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip,deflate", - "Authorization": "Sanitized", - "Connection": "keep-alive", - "Content-Length": "0", - "User-Agent": "azsdk-js-event-grid-modular-rest/1.0.0-beta.1 core-rest-pipeline/1.10.4 Node/v18.15.0 OS/(x64-Windows_NT-10.0.22621)", - "x-ms-client-request-id": "387a608e-7ae7-414d-ac30-78cf1a527d39" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Content-Length": "12", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 22 Jun 2023 19:30:13 GMT" - }, - "ResponseBody": { - "value": [] - } - } - ], - "Variables": { - "singleEventDate": "Thu Jun 22 2023 12:28:11 GMT-0700 (Pacific Daylight Time)", - "singleEventId": "singleEventId10004" - } -} diff --git a/sdk/eventgrid/eventgrid/recordings/node/event_grid_client_v2_binary_mode_publishing/recording_errors_a_single_cloud_event__non_binary_data.json b/sdk/eventgrid/eventgrid/recordings/node/event_grid_client_v2_binary_mode_publishing/recording_errors_a_single_cloud_event__non_binary_data.json new file mode 100644 index 000000000000..da24191bc42d --- /dev/null +++ b/sdk/eventgrid/eventgrid/recordings/node/event_grid_client_v2_binary_mode_publishing/recording_errors_a_single_cloud_event__non_binary_data.json @@ -0,0 +1,54 @@ +{ + "Entries": [ + { + "RequestUri": "https://endpoint/topics/testtopic1/eventsubscriptions/testsubscription1:receive?api-version=2023-10-01-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-js-eventgrid-rest/4.13.0-beta.2 core-rest-pipeline/1.11.1 Node/v18.18.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "36a96792-7714-4a81-84b8-eca73cd26436" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Length": "12", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 07 Nov 2023 01:07:50 GMT" + }, + "ResponseBody": { + "value": [] + } + }, + { + "RequestUri": "https://endpoint/topics/testtopic1/eventsubscriptions/testsubscription1:receive?api-version=2023-10-01-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-js-eventgrid-rest/4.13.0-beta.2 core-rest-pipeline/1.11.1 Node/v18.18.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "ed12bab9-fbe8-4830-9521-42cc99c48420" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Length": "12", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 07 Nov 2023 01:08:50 GMT" + }, + "ResponseBody": { + "value": [] + } + } + ], + "Variables": { + "singleEventDate": "Mon Nov 06 2023 17:07:49 GMT-0800 (Pacific Standard Time)", + "singleEventId": "singleEventIdV210006" + } +} diff --git a/sdk/eventgrid/eventgrid/recordings/node/event_grid_client_v2_binary_mode_publishing/recording_publishes_a_single_cloud_event__binary_data.json b/sdk/eventgrid/eventgrid/recordings/node/event_grid_client_v2_binary_mode_publishing/recording_publishes_a_single_cloud_event__binary_data.json new file mode 100644 index 000000000000..cb2558c965a8 --- /dev/null +++ b/sdk/eventgrid/eventgrid/recordings/node/event_grid_client_v2_binary_mode_publishing/recording_publishes_a_single_cloud_event__binary_data.json @@ -0,0 +1,325 @@ +{ + "Entries": [ + { + "RequestUri": "https://endpoint/topics/testtopic1/eventsubscriptions/testsubscription1:receive?api-version=2023-10-01-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-js-eventgrid-rest/4.13.0-beta.2 core-rest-pipeline/1.11.1 Node/v18.18.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "47e34c53-7346-4415-accb-8f738a17c9d9" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Length": "12", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 07 Nov 2023 01:09:50 GMT" + }, + "ResponseBody": { + "value": [] + } + }, + { + "RequestUri": "https://endpoint/topics/testtopic1:publish?api-version=2023-10-01-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "ce-datacontenttype": "application/cloudevents\u002Bjson; charset=utf-8", + "ce-id": "singleEventIdV210007", + "ce-source": "https://example.com", + "ce-specversion": "1.0", + "ce-time": "2023-11-07T01:09:50.000Z", + "ce-type": "example", + "Connection": "keep-alive", + "Content-Length": "369", + "Content-Type": "application/cloudevents\u002Bjson; charset=utf-8", + "User-Agent": "azsdk-js-eventgrid-rest/4.13.0-beta.2 core-rest-pipeline/1.11.1 Node/v18.18.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "0b2f62fc-0e7e-44ac-b582-e047c7227adc" + }, + "RequestBody": { + "id": "singleEventIdV210007", + "source": "https://example.com", + "data": { + "type": "Buffer", + "data": [ + 123, + 34, + 114, + 101, + 115, + 111, + 117, + 114, + 99, + 101, + 85, + 114, + 105, + 34, + 58, + 34, + 104, + 116, + 116, + 112, + 115, + 58, + 47, + 47, + 100, + 117, + 109, + 109, + 121, + 117, + 114, + 108, + 46, + 99, + 111, + 109, + 34, + 125 + ] + }, + "type": "example", + "time": "2023-11-07T01:09:50.000Z", + "specversion": "1.0", + "datacontenttype": "application/cloudevents\u002Bjson; charset=utf-8" + }, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Length": "2", + "Content-Type": "application/json", + "Date": "Tue, 07 Nov 2023 01:09:50 GMT" + }, + "ResponseBody": {} + }, + { + "RequestUri": "https://endpoint/topics/testtopic1/eventsubscriptions/testsubscription1:receive?api-version=2023-10-01-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-js-eventgrid-rest/4.13.0-beta.2 core-rest-pipeline/1.11.1 Node/v18.18.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "71e469a8-56bd-4657-a805-bf7d4e29d5a4" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Length": "521", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 07 Nov 2023 01:09:50 GMT" + }, + "ResponseBody": { + "value": [ + { + "brokerProperties": { + "lockToken": "CiYKJEVEMjNGRjVGLUU0MDktNEE5Ni04NDYwLUYyMTA2M0NFNDg4NxISChAEb2vpyQJGeJ0R2JC\u002B151C", + "deliveryCount": 1 + }, + "event": { + "type": "example", + "source": "https://example.com", + "time": "2023-11-07T01:09:50Z", + "id": "singleEventIdV210007", + "datacontenttype": "application/cloudevents\u002Bjson; charset=utf-8", + "specversion": "1.0", + "data": { + "data": [ + 123, + 34, + 114, + 101, + 115, + 111, + 117, + 114, + 99, + 101, + 85, + 114, + 105, + 34, + 58, + 34, + 104, + 116, + 116, + 112, + 115, + 58, + 47, + 47, + 100, + 117, + 109, + 109, + 121, + 117, + 114, + 108, + 46, + 99, + 111, + 109, + 34, + 125 + ], + "type": "Buffer" + } + } + } + ] + } + }, + { + "RequestUri": "https://endpoint/topics/testtopic1/eventsubscriptions/testsubscription1:receive?api-version=2023-10-01-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-js-eventgrid-rest/4.13.0-beta.2 core-rest-pipeline/1.11.1 Node/v18.18.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "6bc32550-4e69-4b46-91f5-1b549d9534b5" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Length": "521", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 07 Nov 2023 01:10:50 GMT" + }, + "ResponseBody": { + "value": [ + { + "brokerProperties": { + "lockToken": "CiYKJEVEMjNGRjVGLUU0MDktNEE5Ni04NDYwLUYyMTA2M0NFNDg4NxISChANggbXxLhKvJEzRnV0rKL8", + "deliveryCount": 2 + }, + "event": { + "type": "example", + "source": "https://example.com", + "time": "2023-11-07T01:09:50Z", + "id": "singleEventIdV210007", + "datacontenttype": "application/cloudevents\u002Bjson; charset=utf-8", + "specversion": "1.0", + "data": { + "data": [ + 123, + 34, + 114, + 101, + 115, + 111, + 117, + 114, + 99, + 101, + 85, + 114, + 105, + 34, + 58, + 34, + 104, + 116, + 116, + 112, + 115, + 58, + 47, + 47, + 100, + 117, + 109, + 109, + 121, + 117, + 114, + 108, + 46, + 99, + 111, + 109, + 34, + 125 + ], + "type": "Buffer" + } + } + } + ] + } + }, + { + "RequestUri": "https://endpoint/topics/testtopic1/eventsubscriptions/testsubscription1:acknowledge?api-version=2023-10-01-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "99", + "Content-Type": "application/json; charset=UTF-8", + "User-Agent": "azsdk-js-eventgrid-rest/4.13.0-beta.2 core-rest-pipeline/1.11.1 Node/v18.18.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "183334fd-de32-4366-bc7c-36ffb6043d00" + }, + "RequestBody": { + "lockTokens": [ + "CiYKJEVEMjNGRjVGLUU0MDktNEE5Ni04NDYwLUYyMTA2M0NFNDg4NxISChANggbXxLhKvJEzRnV0rKL8" + ] + }, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Length": "130", + "Content-Type": "application/json", + "Date": "Tue, 07 Nov 2023 01:10:50 GMT" + }, + "ResponseBody": { + "succeededLockTokens": [ + "CiYKJEVEMjNGRjVGLUU0MDktNEE5Ni04NDYwLUYyMTA2M0NFNDg4NxISChANggbXxLhKvJEzRnV0rKL8" + ], + "failedLockTokens": [] + } + }, + { + "RequestUri": "https://endpoint/topics/testtopic1/eventsubscriptions/testsubscription1:receive?api-version=2023-10-01-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-js-eventgrid-rest/4.13.0-beta.2 core-rest-pipeline/1.11.1 Node/v18.18.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "6323fec5-152f-4af7-966b-2f524d9da8c9" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Length": "12", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 07 Nov 2023 01:11:51 GMT" + }, + "ResponseBody": { + "value": [] + } + } + ], + "Variables": { + "singleEventDate": "Mon Nov 06 2023 17:09:50 GMT-0800 (Pacific Standard Time)", + "singleEventId": "singleEventIdV210007" + } +} diff --git a/sdk/eventgrid/eventgrid/recordings/node/event_grid_client_v2/recording_publishes_a_single_cloud_event.json b/sdk/eventgrid/eventgrid/recordings/node/event_grid_client_v2_non_binary_mode_publishing/recording_publishes_a_single_cloud_event.json similarity index 58% rename from sdk/eventgrid/eventgrid/recordings/node/event_grid_client_v2/recording_publishes_a_single_cloud_event.json rename to sdk/eventgrid/eventgrid/recordings/node/event_grid_client_v2_non_binary_mode_publishing/recording_publishes_a_single_cloud_event.json index aaa6593166d9..bcb946ad9183 100644 --- a/sdk/eventgrid/eventgrid/recordings/node/event_grid_client_v2/recording_publishes_a_single_cloud_event.json +++ b/sdk/eventgrid/eventgrid/recordings/node/event_grid_client_v2_non_binary_mode_publishing/recording_publishes_a_single_cloud_event.json @@ -1,7 +1,7 @@ { "Entries": [ { - "RequestUri": "https://endpoint/topics/testtopic1/eventsubscriptions/testsubscription1:receive?api-version=2023-06-01-preview", + "RequestUri": "https://endpoint/topics/testtopic1/eventsubscriptions/testsubscription1:receive?api-version=2023-10-01-preview", "RequestMethod": "POST", "RequestHeaders": { "Accept": "application/json", @@ -9,54 +9,54 @@ "Authorization": "Sanitized", "Connection": "keep-alive", "Content-Length": "0", - "User-Agent": "azsdk-js-event-grid-modular-rest/1.0.0-beta.1 core-rest-pipeline/1.10.4 Node/v18.15.0 OS/(x64-Windows_NT-10.0.22621)", - "x-ms-client-request-id": "5d6654b6-d8cf-4718-bbd3-00b5eada92b1" + "User-Agent": "azsdk-js-eventgrid-rest/4.13.0-beta.2 core-rest-pipeline/1.11.1 Node/v18.18.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "ac7d4cd0-269e-4d2c-9ad8-3d81f54f04c8" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { "Content-Length": "12", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 22 Jun 2023 19:22:09 GMT" + "Date": "Tue, 07 Nov 2023 00:51:43 GMT" }, "ResponseBody": { "value": [] } }, { - "RequestUri": "https://endpoint/topics/testtopic1:publish?api-version=2023-06-01-preview", + "RequestUri": "https://endpoint/topics/testtopic1:publish?api-version=2023-10-01-preview", "RequestMethod": "POST", "RequestHeaders": { "Accept": "application/json", "Accept-Encoding": "gzip,deflate", "Authorization": "Sanitized", "Connection": "keep-alive", - "Content-Length": "212", + "Content-Length": "241", "Content-Type": "application/cloudevents\u002Bjson; charset=utf-8", - "User-Agent": "azsdk-js-event-grid-modular-rest/1.0.0-beta.1 core-rest-pipeline/1.10.4 Node/v18.15.0 OS/(x64-Windows_NT-10.0.22621)", - "x-ms-client-request-id": "0b25345d-1034-4494-b375-b66ff4c166e4" + "User-Agent": "azsdk-js-eventgrid-rest/4.13.0-beta.2 core-rest-pipeline/1.11.1 Node/v18.18.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "c3c8a77b-4458-4a7a-966d-8a6a52a4bcbe" }, "RequestBody": { - "specversion": "1.0", - "type": "example", + "id": "singleEventIdV210001", "source": "https://example.com", - "id": "singleEventId10001", - "time": "2023-06-22T19:22:09.000Z", - "datacontenttype": "application/json", "data": { "resourceUri": "https://dummyurl.com" - } + }, + "type": "example", + "time": "2023-11-07T00:51:43.000Z", + "specversion": "1.0", + "datacontenttype": "application/cloudevents\u002Bjson; charset=utf-8" }, "StatusCode": 200, "ResponseHeaders": { "Content-Length": "2", "Content-Type": "application/json", - "Date": "Thu, 22 Jun 2023 19:22:09 GMT" + "Date": "Tue, 07 Nov 2023 00:51:43 GMT" }, "ResponseBody": {} }, { - "RequestUri": "https://endpoint/topics/testtopic1/eventsubscriptions/testsubscription1:receive?api-version=2023-06-01-preview", + "RequestUri": "https://endpoint/topics/testtopic1/eventsubscriptions/testsubscription1:receive?api-version=2023-10-01-preview", "RequestMethod": "POST", "RequestHeaders": { "Accept": "application/json", @@ -64,29 +64,29 @@ "Authorization": "Sanitized", "Connection": "keep-alive", "Content-Length": "0", - "User-Agent": "azsdk-js-event-grid-modular-rest/1.0.0-beta.1 core-rest-pipeline/1.10.4 Node/v18.15.0 OS/(x64-Windows_NT-10.0.22621)", - "x-ms-client-request-id": "6736259b-292f-473c-bee6-ac89e3d69588" + "User-Agent": "azsdk-js-eventgrid-rest/4.13.0-beta.2 core-rest-pipeline/1.11.1 Node/v18.18.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "7be50d1d-08f2-4608-b9a4-b8bdbeb6a92c" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "Content-Length": "364", + "Content-Length": "393", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 22 Jun 2023 19:22:10 GMT" + "Date": "Tue, 07 Nov 2023 00:51:44 GMT" }, "ResponseBody": { "value": [ { "brokerProperties": { - "lockToken": "CiYKJEM5OTk5RDE5LTExN0ItNEM2Ni04NjNFLTg2QUJERkVBODlGMRISChASrcKLQxRF47Hwi2Ts/YrI", + "lockToken": "CiYKJEVEMjNGRjVGLUU0MDktNEE5Ni04NDYwLUYyMTA2M0NFNDg4NxISChBLkRVzI/ZGpLOe0BiOCswH", "deliveryCount": 1 }, "event": { "type": "example", "source": "https://example.com", - "time": "2023-06-22T19:22:09Z", - "id": "singleEventId10001", - "datacontenttype": "application/json", + "time": "2023-11-07T00:51:43Z", + "id": "singleEventIdV210001", + "datacontenttype": "application/cloudevents\u002Bjson; charset=utf-8", "specversion": "1.0", "data": { "resourceUri": "https://dummyurl.com" @@ -97,7 +97,7 @@ } }, { - "RequestUri": "https://endpoint/topics/testtopic1/eventsubscriptions/testsubscription1:receive?api-version=2023-06-01-preview", + "RequestUri": "https://endpoint/topics/testtopic1/eventsubscriptions/testsubscription1:receive?api-version=2023-10-01-preview", "RequestMethod": "POST", "RequestHeaders": { "Accept": "application/json", @@ -105,29 +105,29 @@ "Authorization": "Sanitized", "Connection": "keep-alive", "Content-Length": "0", - "User-Agent": "azsdk-js-event-grid-modular-rest/1.0.0-beta.1 core-rest-pipeline/1.10.4 Node/v18.15.0 OS/(x64-Windows_NT-10.0.22621)", - "x-ms-client-request-id": "508c240f-adae-459f-a83f-9aca023b7ba0" + "User-Agent": "azsdk-js-eventgrid-rest/4.13.0-beta.2 core-rest-pipeline/1.11.1 Node/v18.18.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "5401db60-1c1a-4fa8-9c2d-f8f5b680682d" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "Content-Length": "364", + "Content-Length": "393", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 22 Jun 2023 19:23:10 GMT" + "Date": "Tue, 07 Nov 2023 00:52:44 GMT" }, "ResponseBody": { "value": [ { "brokerProperties": { - "lockToken": "CiYKJEM5OTk5RDE5LTExN0ItNEM2Ni04NjNFLTg2QUJERkVBODlGMRISChBmS2/36ExHIo\u002BbCIxum\u002BwN", + "lockToken": "CiYKJEVEMjNGRjVGLUU0MDktNEE5Ni04NDYwLUYyMTA2M0NFNDg4NxISChBh8AjB0VVOzo\u002BWn9tTOm88", "deliveryCount": 2 }, "event": { "type": "example", "source": "https://example.com", - "time": "2023-06-22T19:22:09Z", - "id": "singleEventId10001", - "datacontenttype": "application/json", + "time": "2023-11-07T00:51:43Z", + "id": "singleEventIdV210001", + "datacontenttype": "application/cloudevents\u002Bjson; charset=utf-8", "specversion": "1.0", "data": { "resourceUri": "https://dummyurl.com" @@ -138,7 +138,7 @@ } }, { - "RequestUri": "https://endpoint/topics/testtopic1/eventsubscriptions/testsubscription1:acknowledge?api-version=2023-06-01-preview", + "RequestUri": "https://endpoint/topics/testtopic1/eventsubscriptions/testsubscription1:acknowledge?api-version=2023-10-01-preview", "RequestMethod": "POST", "RequestHeaders": { "Accept": "application/json", @@ -146,30 +146,30 @@ "Authorization": "Sanitized", "Connection": "keep-alive", "Content-Length": "99", - "Content-Type": "application/json; charset=utf-8", - "User-Agent": "azsdk-js-event-grid-modular-rest/1.0.0-beta.1 core-rest-pipeline/1.10.4 Node/v18.15.0 OS/(x64-Windows_NT-10.0.22621)", - "x-ms-client-request-id": "6f76b01e-0431-4af6-b9aa-52bfe8b100b0" + "Content-Type": "application/json; charset=UTF-8", + "User-Agent": "azsdk-js-eventgrid-rest/4.13.0-beta.2 core-rest-pipeline/1.11.1 Node/v18.18.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "559c4a6d-d192-4d02-8521-99fbade86b71" }, "RequestBody": { "lockTokens": [ - "CiYKJEM5OTk5RDE5LTExN0ItNEM2Ni04NjNFLTg2QUJERkVBODlGMRISChBmS2/36ExHIo\u002BbCIxum\u002BwN" + "CiYKJEVEMjNGRjVGLUU0MDktNEE5Ni04NDYwLUYyMTA2M0NFNDg4NxISChBh8AjB0VVOzo\u002BWn9tTOm88" ] }, "StatusCode": 200, "ResponseHeaders": { "Content-Length": "130", "Content-Type": "application/json", - "Date": "Thu, 22 Jun 2023 19:23:10 GMT" + "Date": "Tue, 07 Nov 2023 00:52:44 GMT" }, "ResponseBody": { "succeededLockTokens": [ - "CiYKJEM5OTk5RDE5LTExN0ItNEM2Ni04NjNFLTg2QUJERkVBODlGMRISChBmS2/36ExHIo\u002BbCIxum\u002BwN" + "CiYKJEVEMjNGRjVGLUU0MDktNEE5Ni04NDYwLUYyMTA2M0NFNDg4NxISChBh8AjB0VVOzo\u002BWn9tTOm88" ], "failedLockTokens": [] } }, { - "RequestUri": "https://endpoint/topics/testtopic1/eventsubscriptions/testsubscription1:receive?api-version=2023-06-01-preview", + "RequestUri": "https://endpoint/topics/testtopic1/eventsubscriptions/testsubscription1:receive?api-version=2023-10-01-preview", "RequestMethod": "POST", "RequestHeaders": { "Accept": "application/json", @@ -177,15 +177,15 @@ "Authorization": "Sanitized", "Connection": "keep-alive", "Content-Length": "0", - "User-Agent": "azsdk-js-event-grid-modular-rest/1.0.0-beta.1 core-rest-pipeline/1.10.4 Node/v18.15.0 OS/(x64-Windows_NT-10.0.22621)", - "x-ms-client-request-id": "744f1e33-bf36-4d82-8815-a9a5e15f8a6f" + "User-Agent": "azsdk-js-eventgrid-rest/4.13.0-beta.2 core-rest-pipeline/1.11.1 Node/v18.18.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "4ef3a664-10b8-4e8b-acd6-a565c2b63417" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { "Content-Length": "12", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 22 Jun 2023 19:24:10 GMT" + "Date": "Tue, 07 Nov 2023 00:53:44 GMT" }, "ResponseBody": { "value": [] @@ -193,7 +193,7 @@ } ], "Variables": { - "singleEventDate": "Thu Jun 22 2023 12:22:09 GMT-0700 (Pacific Daylight Time)", - "singleEventId": "singleEventId10001" + "singleEventDate": "Mon Nov 06 2023 16:51:43 GMT-0800 (Pacific Standard Time)", + "singleEventId": "singleEventIdV210001" } } diff --git a/sdk/eventgrid/eventgrid/recordings/node/event_grid_client_v2/recording_publishes_multiple_cloud_events.json b/sdk/eventgrid/eventgrid/recordings/node/event_grid_client_v2_non_binary_mode_publishing/recording_publishes_multiple_cloud_events.json similarity index 55% rename from sdk/eventgrid/eventgrid/recordings/node/event_grid_client_v2/recording_publishes_multiple_cloud_events.json rename to sdk/eventgrid/eventgrid/recordings/node/event_grid_client_v2_non_binary_mode_publishing/recording_publishes_multiple_cloud_events.json index 605f035cce85..05b78d66ed13 100644 --- a/sdk/eventgrid/eventgrid/recordings/node/event_grid_client_v2/recording_publishes_multiple_cloud_events.json +++ b/sdk/eventgrid/eventgrid/recordings/node/event_grid_client_v2_non_binary_mode_publishing/recording_publishes_multiple_cloud_events.json @@ -1,7 +1,7 @@ { "Entries": [ { - "RequestUri": "https://endpoint/topics/testtopic1/eventsubscriptions/testsubscription1:receive?api-version=2023-06-01-preview", + "RequestUri": "https://endpoint/topics/testtopic1/eventsubscriptions/testsubscription1:receive?api-version=2023-10-01-preview", "RequestMethod": "POST", "RequestHeaders": { "Accept": "application/json", @@ -9,44 +9,44 @@ "Authorization": "Sanitized", "Connection": "keep-alive", "Content-Length": "0", - "User-Agent": "azsdk-js-event-grid-modular-rest/1.0.0-beta.1 core-rest-pipeline/1.10.4 Node/v18.15.0 OS/(x64-Windows_NT-10.0.22621)", - "x-ms-client-request-id": "26f30f0f-d047-410d-9eb0-7842ec53a3f4" + "User-Agent": "azsdk-js-eventgrid-rest/4.13.0-beta.2 core-rest-pipeline/1.11.1 Node/v18.18.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "33e537dc-9578-45d7-8a7d-0638ce1cbf31" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { "Content-Length": "12", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 22 Jun 2023 19:25:10 GMT" + "Date": "Tue, 07 Nov 2023 00:54:44 GMT" }, "ResponseBody": { "value": [] } }, { - "RequestUri": "https://endpoint/topics/testtopic1:publish?api-version=2023-06-01-preview", + "RequestUri": "https://endpoint/topics/testtopic1:publish?api-version=2023-10-01-preview", "RequestMethod": "POST", "RequestHeaders": { "Accept": "application/json", "Accept-Encoding": "gzip,deflate", "Authorization": "Sanitized", "Connection": "keep-alive", - "Content-Length": "433", + "Content-Length": "487", "Content-Type": "application/cloudevents-batch\u002Bjson; charset=utf-8", - "User-Agent": "azsdk-js-event-grid-modular-rest/1.0.0-beta.1 core-rest-pipeline/1.10.4 Node/v18.15.0 OS/(x64-Windows_NT-10.0.22621)", - "x-ms-client-request-id": "fdc4a675-1193-4024-9586-b6c13f89dc72" + "User-Agent": "azsdk-js-eventgrid-rest/4.13.0-beta.2 core-rest-pipeline/1.11.1 Node/v18.18.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "33afd483-1d3c-4452-8806-cfe740b10000" }, - "RequestBody": "[{\u0022specversion\u0022:\u00221.0\u0022,\u0022type\u0022:\u0022example\u0022,\u0022source\u0022:\u0022https://example.com\u0022,\u0022id\u0022:\u0022MultipleEventId110002\u0022,\u0022time\u0022:\u00222023-06-22T19:25:10.000Z\u0022,\u0022datacontenttype\u0022:\u0022application/json\u0022,\u0022data\u0022:{\u0022resourceUri\u0022:\u0022https://dummyurl.com\u0022}},{\u0022specversion\u0022:\u00221.0\u0022,\u0022type\u0022:\u0022example\u0022,\u0022source\u0022:\u0022https://example.com\u0022,\u0022id\u0022:\u0022MultipleEventId210003\u0022,\u0022time\u0022:\u00222023-06-22T19:25:10.000Z\u0022,\u0022datacontenttype\u0022:\u0022application/json\u0022,\u0022data\u0022:{\u0022resourceUri\u0022:\u0022https://dummyurl.com\u0022}}]", + "RequestBody": "[{\u0022id\u0022:\u0022MultipleEventId110002\u0022,\u0022source\u0022:\u0022https://example.com\u0022,\u0022data\u0022:{\u0022resourceUri\u0022:\u0022https://dummyurl.com\u0022},\u0022type\u0022:\u0022example\u0022,\u0022time\u0022:\u00222023-11-07T00:54:44.000Z\u0022,\u0022specversion\u0022:\u00221.0\u0022,\u0022datacontenttype\u0022:\u0022application/cloudevents\u002Bjson; charset=utf-8\u0022},{\u0022id\u0022:\u0022MultipleEventId210003\u0022,\u0022source\u0022:\u0022https://example.com\u0022,\u0022data\u0022:{\u0022resourceUri\u0022:\u0022https://dummyurl.com\u0022},\u0022type\u0022:\u0022example\u0022,\u0022time\u0022:\u00222023-11-07T00:54:44.000Z\u0022,\u0022specversion\u0022:\u00221.0\u0022,\u0022datacontenttype\u0022:\u0022application/cloudevents\u002Bjson; charset=utf-8\u0022}]", "StatusCode": 200, "ResponseHeaders": { "Content-Length": "2", "Content-Type": "application/json", - "Date": "Thu, 22 Jun 2023 19:25:10 GMT" + "Date": "Tue, 07 Nov 2023 00:54:44 GMT" }, "ResponseBody": {} }, { - "RequestUri": "https://endpoint/topics/testtopic1/eventsubscriptions/testsubscription1:receive?maxEvents=2\u0026api-version=2023-06-01-preview", + "RequestUri": "https://endpoint/topics/testtopic1/eventsubscriptions/testsubscription1:receive?maxEvents=2\u0026api-version=2023-10-01-preview", "RequestMethod": "POST", "RequestHeaders": { "Accept": "application/json", @@ -54,29 +54,29 @@ "Authorization": "Sanitized", "Connection": "keep-alive", "Content-Length": "0", - "User-Agent": "azsdk-js-event-grid-modular-rest/1.0.0-beta.1 core-rest-pipeline/1.10.4 Node/v18.15.0 OS/(x64-Windows_NT-10.0.22621)", - "x-ms-client-request-id": "ed83133e-c163-4804-80b6-380620e5df39" + "User-Agent": "azsdk-js-eventgrid-rest/4.13.0-beta.2 core-rest-pipeline/1.11.1 Node/v18.18.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "704bc48d-01d3-4e5c-82d7-815a0327cb6d" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "Content-Length": "723", + "Content-Length": "777", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 22 Jun 2023 19:25:10 GMT" + "Date": "Tue, 07 Nov 2023 00:54:44 GMT" }, "ResponseBody": { "value": [ { "brokerProperties": { - "lockToken": "CiYKJEM5OTk5RDE5LTExN0ItNEM2Ni04NjNFLTg2QUJERkVBODlGMRISChBcnCF7KJ5BHJAMH5CDzOvY", + "lockToken": "CiYKJEVEMjNGRjVGLUU0MDktNEE5Ni04NDYwLUYyMTA2M0NFNDg4NxISChADxHAlmT5E67lPR6zsaops", "deliveryCount": 1 }, "event": { "type": "example", "source": "https://example.com", - "time": "2023-06-22T19:25:10Z", + "time": "2023-11-07T00:54:44Z", "id": "MultipleEventId110002", - "datacontenttype": "application/json", + "datacontenttype": "application/cloudevents\u002Bjson; charset=utf-8", "specversion": "1.0", "data": { "resourceUri": "https://dummyurl.com" @@ -85,15 +85,15 @@ }, { "brokerProperties": { - "lockToken": "CiYKJEM5OTk5RDE5LTExN0ItNEM2Ni04NjNFLTg2QUJERkVBODlGMRISChBZQSAAByBAz5XqvDFKGBHv", + "lockToken": "CiYKJEVEMjNGRjVGLUU0MDktNEE5Ni04NDYwLUYyMTA2M0NFNDg4NxISChDT4RgWyxlOw5Ly6PknW3F/", "deliveryCount": 1 }, "event": { "type": "example", "source": "https://example.com", - "time": "2023-06-22T19:25:10Z", + "time": "2023-11-07T00:54:44Z", "id": "MultipleEventId210003", - "datacontenttype": "application/json", + "datacontenttype": "application/cloudevents\u002Bjson; charset=utf-8", "specversion": "1.0", "data": { "resourceUri": "https://dummyurl.com" @@ -104,7 +104,7 @@ } }, { - "RequestUri": "https://endpoint/topics/testtopic1/eventsubscriptions/testsubscription1:receive?api-version=2023-06-01-preview", + "RequestUri": "https://endpoint/topics/testtopic1/eventsubscriptions/testsubscription1:receive?api-version=2023-10-01-preview", "RequestMethod": "POST", "RequestHeaders": { "Accept": "application/json", @@ -112,29 +112,29 @@ "Authorization": "Sanitized", "Connection": "keep-alive", "Content-Length": "0", - "User-Agent": "azsdk-js-event-grid-modular-rest/1.0.0-beta.1 core-rest-pipeline/1.10.4 Node/v18.15.0 OS/(x64-Windows_NT-10.0.22621)", - "x-ms-client-request-id": "bc2cbbcb-ff88-4535-bbc7-c4bcc54fd543" + "User-Agent": "azsdk-js-eventgrid-rest/4.13.0-beta.2 core-rest-pipeline/1.11.1 Node/v18.18.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "ab04dd44-ee3b-4b62-b731-16e8701a8bec" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "Content-Length": "367", + "Content-Length": "394", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 22 Jun 2023 19:26:11 GMT" + "Date": "Tue, 07 Nov 2023 00:55:44 GMT" }, "ResponseBody": { "value": [ { "brokerProperties": { - "lockToken": "CiYKJEM5OTk5RDE5LTExN0ItNEM2Ni04NjNFLTg2QUJERkVBODlGMRISChA9LNrU7MJOG7IF69B6dG\u002BI", + "lockToken": "CiYKJEVEMjNGRjVGLUU0MDktNEE5Ni04NDYwLUYyMTA2M0NFNDg4NxISChDRbFbHP\u002BBCkIkAvpJDF9qA", "deliveryCount": 2 }, "event": { "type": "example", "source": "https://example.com", - "time": "2023-06-22T19:25:10Z", + "time": "2023-11-07T00:54:44Z", "id": "MultipleEventId110002", - "datacontenttype": "application/json", + "datacontenttype": "application/cloudevents\u002Bjson; charset=utf-8", "specversion": "1.0", "data": { "resourceUri": "https://dummyurl.com" @@ -145,7 +145,7 @@ } }, { - "RequestUri": "https://endpoint/topics/testtopic1/eventsubscriptions/testsubscription1:acknowledge?api-version=2023-06-01-preview", + "RequestUri": "https://endpoint/topics/testtopic1/eventsubscriptions/testsubscription1:acknowledge?api-version=2023-10-01-preview", "RequestMethod": "POST", "RequestHeaders": { "Accept": "application/json", @@ -153,30 +153,30 @@ "Authorization": "Sanitized", "Connection": "keep-alive", "Content-Length": "99", - "Content-Type": "application/json; charset=utf-8", - "User-Agent": "azsdk-js-event-grid-modular-rest/1.0.0-beta.1 core-rest-pipeline/1.10.4 Node/v18.15.0 OS/(x64-Windows_NT-10.0.22621)", - "x-ms-client-request-id": "f520f6a6-f3e1-4e1d-ae11-4deda46bff4a" + "Content-Type": "application/json; charset=UTF-8", + "User-Agent": "azsdk-js-eventgrid-rest/4.13.0-beta.2 core-rest-pipeline/1.11.1 Node/v18.18.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "c698188e-df95-4976-af30-b5b67bb8f2af" }, "RequestBody": { "lockTokens": [ - "CiYKJEM5OTk5RDE5LTExN0ItNEM2Ni04NjNFLTg2QUJERkVBODlGMRISChA9LNrU7MJOG7IF69B6dG\u002BI" + "CiYKJEVEMjNGRjVGLUU0MDktNEE5Ni04NDYwLUYyMTA2M0NFNDg4NxISChDRbFbHP\u002BBCkIkAvpJDF9qA" ] }, "StatusCode": 200, "ResponseHeaders": { "Content-Length": "130", "Content-Type": "application/json", - "Date": "Thu, 22 Jun 2023 19:26:11 GMT" + "Date": "Tue, 07 Nov 2023 00:55:44 GMT" }, "ResponseBody": { "succeededLockTokens": [ - "CiYKJEM5OTk5RDE5LTExN0ItNEM2Ni04NjNFLTg2QUJERkVBODlGMRISChA9LNrU7MJOG7IF69B6dG\u002BI" + "CiYKJEVEMjNGRjVGLUU0MDktNEE5Ni04NDYwLUYyMTA2M0NFNDg4NxISChDRbFbHP\u002BBCkIkAvpJDF9qA" ], "failedLockTokens": [] } }, { - "RequestUri": "https://endpoint/topics/testtopic1/eventsubscriptions/testsubscription1:receive?api-version=2023-06-01-preview", + "RequestUri": "https://endpoint/topics/testtopic1/eventsubscriptions/testsubscription1:receive?api-version=2023-10-01-preview", "RequestMethod": "POST", "RequestHeaders": { "Accept": "application/json", @@ -184,29 +184,29 @@ "Authorization": "Sanitized", "Connection": "keep-alive", "Content-Length": "0", - "User-Agent": "azsdk-js-event-grid-modular-rest/1.0.0-beta.1 core-rest-pipeline/1.10.4 Node/v18.15.0 OS/(x64-Windows_NT-10.0.22621)", - "x-ms-client-request-id": "20e6c64b-42f5-4704-9985-cc03c5884b2e" + "User-Agent": "azsdk-js-eventgrid-rest/4.13.0-beta.2 core-rest-pipeline/1.11.1 Node/v18.18.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "5b2443a3-1f79-436a-885c-04324171631c" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "Content-Length": "367", + "Content-Length": "394", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 22 Jun 2023 19:26:11 GMT" + "Date": "Tue, 07 Nov 2023 00:55:44 GMT" }, "ResponseBody": { "value": [ { "brokerProperties": { - "lockToken": "CiYKJEM5OTk5RDE5LTExN0ItNEM2Ni04NjNFLTg2QUJERkVBODlGMRISChAB3pH0sBdBWbrN9SMr8M2/", + "lockToken": "CiYKJEVEMjNGRjVGLUU0MDktNEE5Ni04NDYwLUYyMTA2M0NFNDg4NxISChBL4FCyLZ5EgrG3r1M6jhOS", "deliveryCount": 2 }, "event": { "type": "example", "source": "https://example.com", - "time": "2023-06-22T19:25:10Z", + "time": "2023-11-07T00:54:44Z", "id": "MultipleEventId210003", - "datacontenttype": "application/json", + "datacontenttype": "application/cloudevents\u002Bjson; charset=utf-8", "specversion": "1.0", "data": { "resourceUri": "https://dummyurl.com" @@ -217,7 +217,7 @@ } }, { - "RequestUri": "https://endpoint/topics/testtopic1/eventsubscriptions/testsubscription1:acknowledge?api-version=2023-06-01-preview", + "RequestUri": "https://endpoint/topics/testtopic1/eventsubscriptions/testsubscription1:acknowledge?api-version=2023-10-01-preview", "RequestMethod": "POST", "RequestHeaders": { "Accept": "application/json", @@ -225,30 +225,30 @@ "Authorization": "Sanitized", "Connection": "keep-alive", "Content-Length": "99", - "Content-Type": "application/json; charset=utf-8", - "User-Agent": "azsdk-js-event-grid-modular-rest/1.0.0-beta.1 core-rest-pipeline/1.10.4 Node/v18.15.0 OS/(x64-Windows_NT-10.0.22621)", - "x-ms-client-request-id": "c1b9a082-8808-493c-9ffb-e85db4892700" + "Content-Type": "application/json; charset=UTF-8", + "User-Agent": "azsdk-js-eventgrid-rest/4.13.0-beta.2 core-rest-pipeline/1.11.1 Node/v18.18.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "af0463ad-5d16-4b05-8278-599058948d4e" }, "RequestBody": { "lockTokens": [ - "CiYKJEM5OTk5RDE5LTExN0ItNEM2Ni04NjNFLTg2QUJERkVBODlGMRISChAB3pH0sBdBWbrN9SMr8M2/" + "CiYKJEVEMjNGRjVGLUU0MDktNEE5Ni04NDYwLUYyMTA2M0NFNDg4NxISChBL4FCyLZ5EgrG3r1M6jhOS" ] }, "StatusCode": 200, "ResponseHeaders": { "Content-Length": "130", "Content-Type": "application/json", - "Date": "Thu, 22 Jun 2023 19:26:11 GMT" + "Date": "Tue, 07 Nov 2023 00:55:44 GMT" }, "ResponseBody": { "succeededLockTokens": [ - "CiYKJEM5OTk5RDE5LTExN0ItNEM2Ni04NjNFLTg2QUJERkVBODlGMRISChAB3pH0sBdBWbrN9SMr8M2/" + "CiYKJEVEMjNGRjVGLUU0MDktNEE5Ni04NDYwLUYyMTA2M0NFNDg4NxISChBL4FCyLZ5EgrG3r1M6jhOS" ], "failedLockTokens": [] } }, { - "RequestUri": "https://endpoint/topics/testtopic1/eventsubscriptions/testsubscription1:receive?api-version=2023-06-01-preview", + "RequestUri": "https://endpoint/topics/testtopic1/eventsubscriptions/testsubscription1:receive?api-version=2023-10-01-preview", "RequestMethod": "POST", "RequestHeaders": { "Accept": "application/json", @@ -256,15 +256,15 @@ "Authorization": "Sanitized", "Connection": "keep-alive", "Content-Length": "0", - "User-Agent": "azsdk-js-event-grid-modular-rest/1.0.0-beta.1 core-rest-pipeline/1.10.4 Node/v18.15.0 OS/(x64-Windows_NT-10.0.22621)", - "x-ms-client-request-id": "4329451c-6e26-4541-85e2-8446564d1a27" + "User-Agent": "azsdk-js-eventgrid-rest/4.13.0-beta.2 core-rest-pipeline/1.11.1 Node/v18.18.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "9200ac75-c981-4747-b110-71767d97b283" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { "Content-Length": "12", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 22 Jun 2023 19:27:11 GMT" + "Date": "Tue, 07 Nov 2023 00:56:45 GMT" }, "ResponseBody": { "value": [] @@ -274,7 +274,7 @@ "Variables": { "MulipleEventId1": "MultipleEventId110002", "MulipleEventId2": "MultipleEventId210003", - "singleEventDate1": "Thu Jun 22 2023 12:25:10 GMT-0700 (Pacific Daylight Time)", - "singleEventDate2": "Thu Jun 22 2023 12:25:10 GMT-0700 (Pacific Daylight Time)" + "singleEventDate1": "Mon Nov 06 2023 16:54:44 GMT-0800 (Pacific Standard Time)", + "singleEventDate2": "Mon Nov 06 2023 16:54:44 GMT-0800 (Pacific Standard Time)" } } diff --git a/sdk/eventgrid/eventgrid/recordings/node/event_grid_client_v2/recording_rejects_a_cloud_event.json b/sdk/eventgrid/eventgrid/recordings/node/event_grid_client_v2_non_binary_mode_publishing/recording_rejects_a_cloud_event.json similarity index 59% rename from sdk/eventgrid/eventgrid/recordings/node/event_grid_client_v2/recording_rejects_a_cloud_event.json rename to sdk/eventgrid/eventgrid/recordings/node/event_grid_client_v2_non_binary_mode_publishing/recording_rejects_a_cloud_event.json index f0486d75e561..89bad4d9cd06 100644 --- a/sdk/eventgrid/eventgrid/recordings/node/event_grid_client_v2/recording_rejects_a_cloud_event.json +++ b/sdk/eventgrid/eventgrid/recordings/node/event_grid_client_v2_non_binary_mode_publishing/recording_rejects_a_cloud_event.json @@ -1,7 +1,7 @@ { "Entries": [ { - "RequestUri": "https://endpoint/topics/testtopic1/eventsubscriptions/testsubscription1:receive?api-version=2023-06-01-preview", + "RequestUri": "https://endpoint/topics/testtopic1/eventsubscriptions/testsubscription1:receive?api-version=2023-10-01-preview", "RequestMethod": "POST", "RequestHeaders": { "Accept": "application/json", @@ -9,54 +9,54 @@ "Authorization": "Sanitized", "Connection": "keep-alive", "Content-Length": "0", - "User-Agent": "azsdk-js-event-grid-modular-rest/1.0.0-beta.1 core-rest-pipeline/1.10.4 Node/v18.15.0 OS/(x64-Windows_NT-10.0.22621)", - "x-ms-client-request-id": "cec7be11-f42b-4b89-af54-83f86e6ef332" + "User-Agent": "azsdk-js-eventgrid-rest/4.13.0-beta.2 core-rest-pipeline/1.11.1 Node/v18.18.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "2f3cabe8-f04e-46ed-96fd-c53efdd6d408" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { "Content-Length": "12", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 22 Jun 2023 19:31:13 GMT" + "Date": "Tue, 07 Nov 2023 01:00:48 GMT" }, "ResponseBody": { "value": [] } }, { - "RequestUri": "https://endpoint/topics/testtopic1:publish?api-version=2023-06-01-preview", + "RequestUri": "https://endpoint/topics/testtopic1:publish?api-version=2023-10-01-preview", "RequestMethod": "POST", "RequestHeaders": { "Accept": "application/json", "Accept-Encoding": "gzip,deflate", "Authorization": "Sanitized", "Connection": "keep-alive", - "Content-Length": "212", + "Content-Length": "241", "Content-Type": "application/cloudevents\u002Bjson; charset=utf-8", - "User-Agent": "azsdk-js-event-grid-modular-rest/1.0.0-beta.1 core-rest-pipeline/1.10.4 Node/v18.15.0 OS/(x64-Windows_NT-10.0.22621)", - "x-ms-client-request-id": "c26c44c5-98ed-4279-9a67-c5fcf3aeade6" + "User-Agent": "azsdk-js-eventgrid-rest/4.13.0-beta.2 core-rest-pipeline/1.11.1 Node/v18.18.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "4dca3e49-ad4f-48bd-8b79-74d59966a9ef" }, "RequestBody": { - "specversion": "1.0", - "type": "example", + "id": "singleEventIdV210005", "source": "https://example.com", - "id": "singleEventId10005", - "time": "2023-06-22T19:31:13.000Z", - "datacontenttype": "application/json", "data": { "resourceUri": "https://dummyurl.com" - } + }, + "type": "example", + "time": "2023-11-07T01:00:47.000Z", + "specversion": "1.0", + "datacontenttype": "application/cloudevents\u002Bjson; charset=utf-8" }, "StatusCode": 200, "ResponseHeaders": { "Content-Length": "2", "Content-Type": "application/json", - "Date": "Thu, 22 Jun 2023 19:31:13 GMT" + "Date": "Tue, 07 Nov 2023 01:00:48 GMT" }, "ResponseBody": {} }, { - "RequestUri": "https://endpoint/topics/testtopic1/eventsubscriptions/testsubscription1:receive?api-version=2023-06-01-preview", + "RequestUri": "https://endpoint/topics/testtopic1/eventsubscriptions/testsubscription1:receive?api-version=2023-10-01-preview", "RequestMethod": "POST", "RequestHeaders": { "Accept": "application/json", @@ -64,29 +64,29 @@ "Authorization": "Sanitized", "Connection": "keep-alive", "Content-Length": "0", - "User-Agent": "azsdk-js-event-grid-modular-rest/1.0.0-beta.1 core-rest-pipeline/1.10.4 Node/v18.15.0 OS/(x64-Windows_NT-10.0.22621)", - "x-ms-client-request-id": "bc8b79bd-f59a-4e3f-9c93-7259dd3a394f" + "User-Agent": "azsdk-js-eventgrid-rest/4.13.0-beta.2 core-rest-pipeline/1.11.1 Node/v18.18.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "11558709-0ea7-40cc-a35f-6d39fcfd5d64" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "Content-Length": "364", + "Content-Length": "393", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 22 Jun 2023 19:31:14 GMT" + "Date": "Tue, 07 Nov 2023 01:00:48 GMT" }, "ResponseBody": { "value": [ { "brokerProperties": { - "lockToken": "CiYKJEM5OTk5RDE5LTExN0ItNEM2Ni04NjNFLTg2QUJERkVBODlGMRISChCcWuLfvXlPbLPrwZmcLNCy", + "lockToken": "CiYKJEVEMjNGRjVGLUU0MDktNEE5Ni04NDYwLUYyMTA2M0NFNDg4NxISChBkjj2bm5REbZB5J0QGJUv1", "deliveryCount": 1 }, "event": { "type": "example", "source": "https://example.com", - "time": "2023-06-22T19:31:13Z", - "id": "singleEventId10005", - "datacontenttype": "application/json", + "time": "2023-11-07T01:00:47Z", + "id": "singleEventIdV210005", + "datacontenttype": "application/cloudevents\u002Bjson; charset=utf-8", "specversion": "1.0", "data": { "resourceUri": "https://dummyurl.com" @@ -97,7 +97,7 @@ } }, { - "RequestUri": "https://endpoint/topics/testtopic1/eventsubscriptions/testsubscription1:reject?api-version=2023-06-01-preview", + "RequestUri": "https://endpoint/topics/testtopic1/eventsubscriptions/testsubscription1:reject?api-version=2023-10-01-preview", "RequestMethod": "POST", "RequestHeaders": { "Accept": "application/json", @@ -105,30 +105,30 @@ "Authorization": "Sanitized", "Connection": "keep-alive", "Content-Length": "99", - "Content-Type": "application/json; charset=utf-8", - "User-Agent": "azsdk-js-event-grid-modular-rest/1.0.0-beta.1 core-rest-pipeline/1.10.4 Node/v18.15.0 OS/(x64-Windows_NT-10.0.22621)", - "x-ms-client-request-id": "62faaf8b-cc4d-4471-afde-21ea8ac03c3b" + "Content-Type": "application/json; charset=UTF-8", + "User-Agent": "azsdk-js-eventgrid-rest/4.13.0-beta.2 core-rest-pipeline/1.11.1 Node/v18.18.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "73704b40-23c3-4d6f-aeec-6a9d28ed7097" }, "RequestBody": { "lockTokens": [ - "CiYKJEM5OTk5RDE5LTExN0ItNEM2Ni04NjNFLTg2QUJERkVBODlGMRISChCcWuLfvXlPbLPrwZmcLNCy" + "CiYKJEVEMjNGRjVGLUU0MDktNEE5Ni04NDYwLUYyMTA2M0NFNDg4NxISChBkjj2bm5REbZB5J0QGJUv1" ] }, "StatusCode": 200, "ResponseHeaders": { "Content-Length": "130", "Content-Type": "application/json", - "Date": "Thu, 22 Jun 2023 19:31:14 GMT" + "Date": "Tue, 07 Nov 2023 01:00:48 GMT" }, "ResponseBody": { "succeededLockTokens": [ - "CiYKJEM5OTk5RDE5LTExN0ItNEM2Ni04NjNFLTg2QUJERkVBODlGMRISChCcWuLfvXlPbLPrwZmcLNCy" + "CiYKJEVEMjNGRjVGLUU0MDktNEE5Ni04NDYwLUYyMTA2M0NFNDg4NxISChBkjj2bm5REbZB5J0QGJUv1" ], "failedLockTokens": [] } }, { - "RequestUri": "https://endpoint/topics/testtopic1/eventsubscriptions/testsubscription1:receive?api-version=2023-06-01-preview", + "RequestUri": "https://endpoint/topics/testtopic1/eventsubscriptions/testsubscription1:receive?api-version=2023-10-01-preview", "RequestMethod": "POST", "RequestHeaders": { "Accept": "application/json", @@ -136,22 +136,22 @@ "Authorization": "Sanitized", "Connection": "keep-alive", "Content-Length": "0", - "User-Agent": "azsdk-js-event-grid-modular-rest/1.0.0-beta.1 core-rest-pipeline/1.10.4 Node/v18.15.0 OS/(x64-Windows_NT-10.0.22621)", - "x-ms-client-request-id": "9b9a1d28-53a2-4b70-aa6e-0efb57da30cf" + "User-Agent": "azsdk-js-eventgrid-rest/4.13.0-beta.2 core-rest-pipeline/1.11.1 Node/v18.18.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "f880fdb6-33f5-4b5e-8553-8caad9fccc1f" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { "Content-Length": "12", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 22 Jun 2023 19:32:14 GMT" + "Date": "Tue, 07 Nov 2023 01:01:48 GMT" }, "ResponseBody": { "value": [] } }, { - "RequestUri": "https://endpoint/topics/testtopic1/eventsubscriptions/testsubscription1:receive?api-version=2023-06-01-preview", + "RequestUri": "https://endpoint/topics/testtopic1/eventsubscriptions/testsubscription1:receive?api-version=2023-10-01-preview", "RequestMethod": "POST", "RequestHeaders": { "Accept": "application/json", @@ -159,15 +159,15 @@ "Authorization": "Sanitized", "Connection": "keep-alive", "Content-Length": "0", - "User-Agent": "azsdk-js-event-grid-modular-rest/1.0.0-beta.1 core-rest-pipeline/1.10.4 Node/v18.15.0 OS/(x64-Windows_NT-10.0.22621)", - "x-ms-client-request-id": "49354bea-7802-43fd-8711-c1650c6c3e14" + "User-Agent": "azsdk-js-eventgrid-rest/4.13.0-beta.2 core-rest-pipeline/1.11.1 Node/v18.18.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "3f22c6c4-ae8c-4c16-b873-6c98a84ce3b6" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { "Content-Length": "12", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 22 Jun 2023 19:33:14 GMT" + "Date": "Tue, 07 Nov 2023 01:02:49 GMT" }, "ResponseBody": { "value": [] @@ -175,7 +175,7 @@ } ], "Variables": { - "singleEventDate": "Thu Jun 22 2023 12:31:13 GMT-0700 (Pacific Daylight Time)", - "singleEventId": "singleEventId10005" + "singleEventDate": "Mon Nov 06 2023 17:00:47 GMT-0800 (Pacific Standard Time)", + "singleEventId": "singleEventIdV210005" } } diff --git a/sdk/eventgrid/eventgrid/recordings/node/event_grid_client_v2_non_binary_mode_publishing/recording_releases_a_cloud_event.json b/sdk/eventgrid/eventgrid/recordings/node/event_grid_client_v2_non_binary_mode_publishing/recording_releases_a_cloud_event.json new file mode 100644 index 000000000000..4ff33398119b --- /dev/null +++ b/sdk/eventgrid/eventgrid/recordings/node/event_grid_client_v2_non_binary_mode_publishing/recording_releases_a_cloud_event.json @@ -0,0 +1,829 @@ +{ + "Entries": [ + { + "RequestUri": "https://endpoint/topics/testtopic1/eventsubscriptions/testsubscription1:receive?api-version=2023-10-01-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-js-eventgrid-rest/4.13.0-beta.2 core-rest-pipeline/1.11.1 Node/v18.18.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "faaa034c-4ae3-4a08-9dad-18114455eef0" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Length": "12", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 07 Nov 2023 00:57:45 GMT" + }, + "ResponseBody": { + "value": [] + } + }, + { + "RequestUri": "https://endpoint/topics/testtopic1:publish?api-version=2023-10-01-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "241", + "Content-Type": "application/cloudevents\u002Bjson; charset=utf-8", + "User-Agent": "azsdk-js-eventgrid-rest/4.13.0-beta.2 core-rest-pipeline/1.11.1 Node/v18.18.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "11509830-40c3-4d58-af71-1df5df4cdb17" + }, + "RequestBody": { + "id": "singleEventIdV210004", + "source": "https://example.com", + "data": { + "resourceUri": "https://dummyurl.com" + }, + "type": "example", + "time": "2023-11-07T00:57:45.000Z", + "specversion": "1.0", + "datacontenttype": "application/cloudevents\u002Bjson; charset=utf-8" + }, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Length": "2", + "Content-Type": "application/json", + "Date": "Tue, 07 Nov 2023 00:57:45 GMT" + }, + "ResponseBody": {} + }, + { + "RequestUri": "https://endpoint/topics/testtopic1/eventsubscriptions/testsubscription1:receive?api-version=2023-10-01-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-js-eventgrid-rest/4.13.0-beta.2 core-rest-pipeline/1.11.1 Node/v18.18.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "7fd36f21-8b2f-4fa9-8c44-f7ab27858bd8" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Length": "393", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 07 Nov 2023 00:57:45 GMT" + }, + "ResponseBody": { + "value": [ + { + "brokerProperties": { + "lockToken": "CiYKJEVEMjNGRjVGLUU0MDktNEE5Ni04NDYwLUYyMTA2M0NFNDg4NxISChCXcu3fihNFhrUBa5ieg011", + "deliveryCount": 1 + }, + "event": { + "type": "example", + "source": "https://example.com", + "time": "2023-11-07T00:57:45Z", + "id": "singleEventIdV210004", + "datacontenttype": "application/cloudevents\u002Bjson; charset=utf-8", + "specversion": "1.0", + "data": { + "resourceUri": "https://dummyurl.com" + } + } + } + ] + } + }, + { + "RequestUri": "https://endpoint/topics/testtopic1/eventsubscriptions/testsubscription1:release?api-version=2023-10-01-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "99", + "Content-Type": "application/json; charset=UTF-8", + "User-Agent": "azsdk-js-eventgrid-rest/4.13.0-beta.2 core-rest-pipeline/1.11.1 Node/v18.18.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "dfd804f6-7fd9-43fa-8462-207f246a32e8" + }, + "RequestBody": { + "lockTokens": [ + "CiYKJEVEMjNGRjVGLUU0MDktNEE5Ni04NDYwLUYyMTA2M0NFNDg4NxISChCXcu3fihNFhrUBa5ieg011" + ] + }, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Length": "130", + "Content-Type": "application/json", + "Date": "Tue, 07 Nov 2023 00:57:45 GMT" + }, + "ResponseBody": { + "succeededLockTokens": [ + "CiYKJEVEMjNGRjVGLUU0MDktNEE5Ni04NDYwLUYyMTA2M0NFNDg4NxISChCXcu3fihNFhrUBa5ieg011" + ], + "failedLockTokens": [] + } + }, + { + "RequestUri": "https://endpoint/topics/testtopic1/eventsubscriptions/testsubscription1:receive?api-version=2023-10-01-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-js-eventgrid-rest/4.13.0-beta.2 core-rest-pipeline/1.11.1 Node/v18.18.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "67b79ad5-e98a-4a92-a750-a30e045615f0" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Length": "393", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 07 Nov 2023 00:57:45 GMT" + }, + "ResponseBody": { + "value": [ + { + "brokerProperties": { + "lockToken": "CiYKJEVEMjNGRjVGLUU0MDktNEE5Ni04NDYwLUYyMTA2M0NFNDg4NxISChCqlzkTuOdL0bAuH1viTile", + "deliveryCount": 2 + }, + "event": { + "type": "example", + "source": "https://example.com", + "time": "2023-11-07T00:57:45Z", + "id": "singleEventIdV210004", + "datacontenttype": "application/cloudevents\u002Bjson; charset=utf-8", + "specversion": "1.0", + "data": { + "resourceUri": "https://dummyurl.com" + } + } + } + ] + } + }, + { + "RequestUri": "https://endpoint/topics/testtopic1/eventsubscriptions/testsubscription1:release?api-version=2023-10-01-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "99", + "Content-Type": "application/json; charset=UTF-8", + "User-Agent": "azsdk-js-eventgrid-rest/4.13.0-beta.2 core-rest-pipeline/1.11.1 Node/v18.18.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "53a76790-fd49-4013-9b42-eb1bbc5638de" + }, + "RequestBody": { + "lockTokens": [ + "CiYKJEVEMjNGRjVGLUU0MDktNEE5Ni04NDYwLUYyMTA2M0NFNDg4NxISChCqlzkTuOdL0bAuH1viTile" + ] + }, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Length": "130", + "Content-Type": "application/json", + "Date": "Tue, 07 Nov 2023 00:57:45 GMT" + }, + "ResponseBody": { + "succeededLockTokens": [ + "CiYKJEVEMjNGRjVGLUU0MDktNEE5Ni04NDYwLUYyMTA2M0NFNDg4NxISChCqlzkTuOdL0bAuH1viTile" + ], + "failedLockTokens": [] + } + }, + { + "RequestUri": "https://endpoint/topics/testtopic1/eventsubscriptions/testsubscription1:receive?api-version=2023-10-01-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-js-eventgrid-rest/4.13.0-beta.2 core-rest-pipeline/1.11.1 Node/v18.18.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "29ff0b6b-9caf-49de-9377-760899b468f0" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Length": "393", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 07 Nov 2023 00:57:46 GMT" + }, + "ResponseBody": { + "value": [ + { + "brokerProperties": { + "lockToken": "CiYKJEVEMjNGRjVGLUU0MDktNEE5Ni04NDYwLUYyMTA2M0NFNDg4NxISChAjN\u002BlJgOhNbLkYihzdBZJJ", + "deliveryCount": 3 + }, + "event": { + "type": "example", + "source": "https://example.com", + "time": "2023-11-07T00:57:45Z", + "id": "singleEventIdV210004", + "datacontenttype": "application/cloudevents\u002Bjson; charset=utf-8", + "specversion": "1.0", + "data": { + "resourceUri": "https://dummyurl.com" + } + } + } + ] + } + }, + { + "RequestUri": "https://endpoint/topics/testtopic1/eventsubscriptions/testsubscription1:release?api-version=2023-10-01-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "99", + "Content-Type": "application/json; charset=UTF-8", + "User-Agent": "azsdk-js-eventgrid-rest/4.13.0-beta.2 core-rest-pipeline/1.11.1 Node/v18.18.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "f434971c-a140-49f8-bdb0-cd9d0e4fb8a1" + }, + "RequestBody": { + "lockTokens": [ + "CiYKJEVEMjNGRjVGLUU0MDktNEE5Ni04NDYwLUYyMTA2M0NFNDg4NxISChAjN\u002BlJgOhNbLkYihzdBZJJ" + ] + }, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Length": "130", + "Content-Type": "application/json", + "Date": "Tue, 07 Nov 2023 00:57:46 GMT" + }, + "ResponseBody": { + "succeededLockTokens": [ + "CiYKJEVEMjNGRjVGLUU0MDktNEE5Ni04NDYwLUYyMTA2M0NFNDg4NxISChAjN\u002BlJgOhNbLkYihzdBZJJ" + ], + "failedLockTokens": [] + } + }, + { + "RequestUri": "https://endpoint/topics/testtopic1/eventsubscriptions/testsubscription1:receive?api-version=2023-10-01-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-js-eventgrid-rest/4.13.0-beta.2 core-rest-pipeline/1.11.1 Node/v18.18.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "b2c422c7-7fa7-4550-aee3-39cbb1608e2c" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Length": "393", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 07 Nov 2023 00:57:46 GMT" + }, + "ResponseBody": { + "value": [ + { + "brokerProperties": { + "lockToken": "CiYKJEVEMjNGRjVGLUU0MDktNEE5Ni04NDYwLUYyMTA2M0NFNDg4NxISChC3uIA9ekdJY7mK6IfiJ4s3", + "deliveryCount": 4 + }, + "event": { + "type": "example", + "source": "https://example.com", + "time": "2023-11-07T00:57:45Z", + "id": "singleEventIdV210004", + "datacontenttype": "application/cloudevents\u002Bjson; charset=utf-8", + "specversion": "1.0", + "data": { + "resourceUri": "https://dummyurl.com" + } + } + } + ] + } + }, + { + "RequestUri": "https://endpoint/topics/testtopic1/eventsubscriptions/testsubscription1:release?api-version=2023-10-01-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "99", + "Content-Type": "application/json; charset=UTF-8", + "User-Agent": "azsdk-js-eventgrid-rest/4.13.0-beta.2 core-rest-pipeline/1.11.1 Node/v18.18.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "f16a2a2c-3f17-4f14-81c2-785636016c37" + }, + "RequestBody": { + "lockTokens": [ + "CiYKJEVEMjNGRjVGLUU0MDktNEE5Ni04NDYwLUYyMTA2M0NFNDg4NxISChC3uIA9ekdJY7mK6IfiJ4s3" + ] + }, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Length": "130", + "Content-Type": "application/json", + "Date": "Tue, 07 Nov 2023 00:57:46 GMT" + }, + "ResponseBody": { + "succeededLockTokens": [ + "CiYKJEVEMjNGRjVGLUU0MDktNEE5Ni04NDYwLUYyMTA2M0NFNDg4NxISChC3uIA9ekdJY7mK6IfiJ4s3" + ], + "failedLockTokens": [] + } + }, + { + "RequestUri": "https://endpoint/topics/testtopic1/eventsubscriptions/testsubscription1:receive?api-version=2023-10-01-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-js-eventgrid-rest/4.13.0-beta.2 core-rest-pipeline/1.11.1 Node/v18.18.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "4d7673be-b89e-4cdd-a66e-e6277a917977" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Length": "393", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 07 Nov 2023 00:57:46 GMT" + }, + "ResponseBody": { + "value": [ + { + "brokerProperties": { + "lockToken": "CiYKJEVEMjNGRjVGLUU0MDktNEE5Ni04NDYwLUYyMTA2M0NFNDg4NxISChDn21iwid5ABbjskdugSuyR", + "deliveryCount": 5 + }, + "event": { + "type": "example", + "source": "https://example.com", + "time": "2023-11-07T00:57:45Z", + "id": "singleEventIdV210004", + "datacontenttype": "application/cloudevents\u002Bjson; charset=utf-8", + "specversion": "1.0", + "data": { + "resourceUri": "https://dummyurl.com" + } + } + } + ] + } + }, + { + "RequestUri": "https://endpoint/topics/testtopic1/eventsubscriptions/testsubscription1:release?api-version=2023-10-01-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "99", + "Content-Type": "application/json; charset=UTF-8", + "User-Agent": "azsdk-js-eventgrid-rest/4.13.0-beta.2 core-rest-pipeline/1.11.1 Node/v18.18.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "066354d8-cda4-4ab0-8816-b62d37cdd5b9" + }, + "RequestBody": { + "lockTokens": [ + "CiYKJEVEMjNGRjVGLUU0MDktNEE5Ni04NDYwLUYyMTA2M0NFNDg4NxISChDn21iwid5ABbjskdugSuyR" + ] + }, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Length": "130", + "Content-Type": "application/json", + "Date": "Tue, 07 Nov 2023 00:57:46 GMT" + }, + "ResponseBody": { + "succeededLockTokens": [ + "CiYKJEVEMjNGRjVGLUU0MDktNEE5Ni04NDYwLUYyMTA2M0NFNDg4NxISChDn21iwid5ABbjskdugSuyR" + ], + "failedLockTokens": [] + } + }, + { + "RequestUri": "https://endpoint/topics/testtopic1/eventsubscriptions/testsubscription1:receive?api-version=2023-10-01-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-js-eventgrid-rest/4.13.0-beta.2 core-rest-pipeline/1.11.1 Node/v18.18.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "db686ea9-ca9f-41ba-8733-2be63503251d" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Length": "393", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 07 Nov 2023 00:57:46 GMT" + }, + "ResponseBody": { + "value": [ + { + "brokerProperties": { + "lockToken": "CiYKJEVEMjNGRjVGLUU0MDktNEE5Ni04NDYwLUYyMTA2M0NFNDg4NxISChAcZBMVTv5OUaMsks15zVj5", + "deliveryCount": 6 + }, + "event": { + "type": "example", + "source": "https://example.com", + "time": "2023-11-07T00:57:45Z", + "id": "singleEventIdV210004", + "datacontenttype": "application/cloudevents\u002Bjson; charset=utf-8", + "specversion": "1.0", + "data": { + "resourceUri": "https://dummyurl.com" + } + } + } + ] + } + }, + { + "RequestUri": "https://endpoint/topics/testtopic1/eventsubscriptions/testsubscription1:release?api-version=2023-10-01-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "99", + "Content-Type": "application/json; charset=UTF-8", + "User-Agent": "azsdk-js-eventgrid-rest/4.13.0-beta.2 core-rest-pipeline/1.11.1 Node/v18.18.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "88daca96-851c-47ce-8d46-729540ba2831" + }, + "RequestBody": { + "lockTokens": [ + "CiYKJEVEMjNGRjVGLUU0MDktNEE5Ni04NDYwLUYyMTA2M0NFNDg4NxISChAcZBMVTv5OUaMsks15zVj5" + ] + }, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Length": "130", + "Content-Type": "application/json", + "Date": "Tue, 07 Nov 2023 00:57:47 GMT" + }, + "ResponseBody": { + "succeededLockTokens": [ + "CiYKJEVEMjNGRjVGLUU0MDktNEE5Ni04NDYwLUYyMTA2M0NFNDg4NxISChAcZBMVTv5OUaMsks15zVj5" + ], + "failedLockTokens": [] + } + }, + { + "RequestUri": "https://endpoint/topics/testtopic1/eventsubscriptions/testsubscription1:receive?api-version=2023-10-01-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-js-eventgrid-rest/4.13.0-beta.2 core-rest-pipeline/1.11.1 Node/v18.18.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "91bbdcdb-04e4-4bd7-a2ac-f23198478987" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Length": "393", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 07 Nov 2023 00:57:47 GMT" + }, + "ResponseBody": { + "value": [ + { + "brokerProperties": { + "lockToken": "CiYKJEVEMjNGRjVGLUU0MDktNEE5Ni04NDYwLUYyMTA2M0NFNDg4NxISChA6pkfvhOlLaaehk/yflgq/", + "deliveryCount": 7 + }, + "event": { + "type": "example", + "source": "https://example.com", + "time": "2023-11-07T00:57:45Z", + "id": "singleEventIdV210004", + "datacontenttype": "application/cloudevents\u002Bjson; charset=utf-8", + "specversion": "1.0", + "data": { + "resourceUri": "https://dummyurl.com" + } + } + } + ] + } + }, + { + "RequestUri": "https://endpoint/topics/testtopic1/eventsubscriptions/testsubscription1:release?api-version=2023-10-01-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "99", + "Content-Type": "application/json; charset=UTF-8", + "User-Agent": "azsdk-js-eventgrid-rest/4.13.0-beta.2 core-rest-pipeline/1.11.1 Node/v18.18.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "5668d7f4-6dab-4ca6-b827-44b5daeed6d5" + }, + "RequestBody": { + "lockTokens": [ + "CiYKJEVEMjNGRjVGLUU0MDktNEE5Ni04NDYwLUYyMTA2M0NFNDg4NxISChA6pkfvhOlLaaehk/yflgq/" + ] + }, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Length": "130", + "Content-Type": "application/json", + "Date": "Tue, 07 Nov 2023 00:57:47 GMT" + }, + "ResponseBody": { + "succeededLockTokens": [ + "CiYKJEVEMjNGRjVGLUU0MDktNEE5Ni04NDYwLUYyMTA2M0NFNDg4NxISChA6pkfvhOlLaaehk/yflgq/" + ], + "failedLockTokens": [] + } + }, + { + "RequestUri": "https://endpoint/topics/testtopic1/eventsubscriptions/testsubscription1:receive?api-version=2023-10-01-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-js-eventgrid-rest/4.13.0-beta.2 core-rest-pipeline/1.11.1 Node/v18.18.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "06d2b308-71d7-4e3c-a726-4b4a2d08068d" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Length": "393", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 07 Nov 2023 00:57:47 GMT" + }, + "ResponseBody": { + "value": [ + { + "brokerProperties": { + "lockToken": "CiYKJEVEMjNGRjVGLUU0MDktNEE5Ni04NDYwLUYyMTA2M0NFNDg4NxISChDEyNvrHi9Eer48XMxOmJuU", + "deliveryCount": 8 + }, + "event": { + "type": "example", + "source": "https://example.com", + "time": "2023-11-07T00:57:45Z", + "id": "singleEventIdV210004", + "datacontenttype": "application/cloudevents\u002Bjson; charset=utf-8", + "specversion": "1.0", + "data": { + "resourceUri": "https://dummyurl.com" + } + } + } + ] + } + }, + { + "RequestUri": "https://endpoint/topics/testtopic1/eventsubscriptions/testsubscription1:release?api-version=2023-10-01-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "99", + "Content-Type": "application/json; charset=UTF-8", + "User-Agent": "azsdk-js-eventgrid-rest/4.13.0-beta.2 core-rest-pipeline/1.11.1 Node/v18.18.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "6c2ad411-3e77-469b-92be-0fd1e862ad4f" + }, + "RequestBody": { + "lockTokens": [ + "CiYKJEVEMjNGRjVGLUU0MDktNEE5Ni04NDYwLUYyMTA2M0NFNDg4NxISChDEyNvrHi9Eer48XMxOmJuU" + ] + }, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Length": "130", + "Content-Type": "application/json", + "Date": "Tue, 07 Nov 2023 00:57:47 GMT" + }, + "ResponseBody": { + "succeededLockTokens": [ + "CiYKJEVEMjNGRjVGLUU0MDktNEE5Ni04NDYwLUYyMTA2M0NFNDg4NxISChDEyNvrHi9Eer48XMxOmJuU" + ], + "failedLockTokens": [] + } + }, + { + "RequestUri": "https://endpoint/topics/testtopic1/eventsubscriptions/testsubscription1:receive?api-version=2023-10-01-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-js-eventgrid-rest/4.13.0-beta.2 core-rest-pipeline/1.11.1 Node/v18.18.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "31c0965b-7ee7-4179-80e9-af846ed15b4c" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Length": "393", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 07 Nov 2023 00:57:47 GMT" + }, + "ResponseBody": { + "value": [ + { + "brokerProperties": { + "lockToken": "CiYKJEVEMjNGRjVGLUU0MDktNEE5Ni04NDYwLUYyMTA2M0NFNDg4NxISChCVMbvPVcJBXrhWjQZ\u002BM\u002B5S", + "deliveryCount": 9 + }, + "event": { + "type": "example", + "source": "https://example.com", + "time": "2023-11-07T00:57:45Z", + "id": "singleEventIdV210004", + "datacontenttype": "application/cloudevents\u002Bjson; charset=utf-8", + "specversion": "1.0", + "data": { + "resourceUri": "https://dummyurl.com" + } + } + } + ] + } + }, + { + "RequestUri": "https://endpoint/topics/testtopic1/eventsubscriptions/testsubscription1:release?api-version=2023-10-01-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "99", + "Content-Type": "application/json; charset=UTF-8", + "User-Agent": "azsdk-js-eventgrid-rest/4.13.0-beta.2 core-rest-pipeline/1.11.1 Node/v18.18.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "be9b9d40-c93f-430c-8a6c-3438202bfe92" + }, + "RequestBody": { + "lockTokens": [ + "CiYKJEVEMjNGRjVGLUU0MDktNEE5Ni04NDYwLUYyMTA2M0NFNDg4NxISChCVMbvPVcJBXrhWjQZ\u002BM\u002B5S" + ] + }, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Length": "130", + "Content-Type": "application/json", + "Date": "Tue, 07 Nov 2023 00:57:47 GMT" + }, + "ResponseBody": { + "succeededLockTokens": [ + "CiYKJEVEMjNGRjVGLUU0MDktNEE5Ni04NDYwLUYyMTA2M0NFNDg4NxISChCVMbvPVcJBXrhWjQZ\u002BM\u002B5S" + ], + "failedLockTokens": [] + } + }, + { + "RequestUri": "https://endpoint/topics/testtopic1/eventsubscriptions/testsubscription1:receive?api-version=2023-10-01-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-js-eventgrid-rest/4.13.0-beta.2 core-rest-pipeline/1.11.1 Node/v18.18.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "5052e0c8-9aa0-40ab-8f9e-acf6424e2c81" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Length": "394", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 07 Nov 2023 00:57:47 GMT" + }, + "ResponseBody": { + "value": [ + { + "brokerProperties": { + "lockToken": "CiYKJEVEMjNGRjVGLUU0MDktNEE5Ni04NDYwLUYyMTA2M0NFNDg4NxISChCHRVAiMo5FEbKKfYgfbYOV", + "deliveryCount": 10 + }, + "event": { + "type": "example", + "source": "https://example.com", + "time": "2023-11-07T00:57:45Z", + "id": "singleEventIdV210004", + "datacontenttype": "application/cloudevents\u002Bjson; charset=utf-8", + "specversion": "1.0", + "data": { + "resourceUri": "https://dummyurl.com" + } + } + } + ] + } + }, + { + "RequestUri": "https://endpoint/topics/testtopic1/eventsubscriptions/testsubscription1:release?api-version=2023-10-01-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "99", + "Content-Type": "application/json; charset=UTF-8", + "User-Agent": "azsdk-js-eventgrid-rest/4.13.0-beta.2 core-rest-pipeline/1.11.1 Node/v18.18.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "39834e96-16f4-42cb-9434-16a9f1b13966" + }, + "RequestBody": { + "lockTokens": [ + "CiYKJEVEMjNGRjVGLUU0MDktNEE5Ni04NDYwLUYyMTA2M0NFNDg4NxISChCHRVAiMo5FEbKKfYgfbYOV" + ] + }, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Length": "130", + "Content-Type": "application/json", + "Date": "Tue, 07 Nov 2023 00:57:47 GMT" + }, + "ResponseBody": { + "succeededLockTokens": [ + "CiYKJEVEMjNGRjVGLUU0MDktNEE5Ni04NDYwLUYyMTA2M0NFNDg4NxISChCHRVAiMo5FEbKKfYgfbYOV" + ], + "failedLockTokens": [] + } + }, + { + "RequestUri": "https://endpoint/topics/testtopic1/eventsubscriptions/testsubscription1:receive?api-version=2023-10-01-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-js-eventgrid-rest/4.13.0-beta.2 core-rest-pipeline/1.11.1 Node/v18.18.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "209c6195-55b6-45cf-af0b-a98f4e7f0109" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Length": "12", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 07 Nov 2023 00:58:47 GMT" + }, + "ResponseBody": { + "value": [] + } + }, + { + "RequestUri": "https://endpoint/topics/testtopic1/eventsubscriptions/testsubscription1:receive?api-version=2023-10-01-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-js-eventgrid-rest/4.13.0-beta.2 core-rest-pipeline/1.11.1 Node/v18.18.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "4e759c67-e39a-401e-aee5-00db0f88d75a" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Length": "12", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 07 Nov 2023 00:59:48 GMT" + }, + "ResponseBody": { + "value": [] + } + } + ], + "Variables": { + "singleEventDate": "Mon Nov 06 2023 16:57:45 GMT-0800 (Pacific Standard Time)", + "singleEventId": "singleEventIdV210004" + } +} diff --git a/sdk/eventgrid/eventgrid/recordings/node/event_grid_client_v2_non_binary_mode_publishing/recording_renews_a_cloud_event.json b/sdk/eventgrid/eventgrid/recordings/node/event_grid_client_v2_non_binary_mode_publishing/recording_renews_a_cloud_event.json new file mode 100644 index 000000000000..f0c9b3a8e720 --- /dev/null +++ b/sdk/eventgrid/eventgrid/recordings/node/event_grid_client_v2_non_binary_mode_publishing/recording_renews_a_cloud_event.json @@ -0,0 +1,271 @@ +{ + "Entries": [ + { + "RequestUri": "https://endpoint/topics/testtopic1/eventsubscriptions/testsubscription1:receive?api-version=2023-10-01-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-js-eventgrid-rest/4.13.0-beta.2 core-rest-pipeline/1.11.1 Node/v18.18.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "89ab09fc-d297-42c9-bee4-00e272509c13" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Length": "12", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 07 Nov 2023 01:03:49 GMT" + }, + "ResponseBody": { + "value": [] + } + }, + { + "RequestUri": "https://endpoint/topics/testtopic1:publish?api-version=2023-10-01-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "241", + "Content-Type": "application/cloudevents\u002Bjson; charset=utf-8", + "User-Agent": "azsdk-js-eventgrid-rest/4.13.0-beta.2 core-rest-pipeline/1.11.1 Node/v18.18.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "205cb511-c958-4055-9ffa-e03cd86816f8" + }, + "RequestBody": { + "id": "singleEventIdV210008", + "source": "https://example.com", + "data": { + "resourceUri": "https://dummyurl.com" + }, + "type": "example", + "time": "2023-11-07T01:03:48.000Z", + "specversion": "1.0", + "datacontenttype": "application/cloudevents\u002Bjson; charset=utf-8" + }, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Length": "2", + "Content-Type": "application/json", + "Date": "Tue, 07 Nov 2023 01:03:49 GMT" + }, + "ResponseBody": {} + }, + { + "RequestUri": "https://endpoint/topics/testtopic1/eventsubscriptions/testsubscription1:receive?api-version=2023-10-01-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-js-eventgrid-rest/4.13.0-beta.2 core-rest-pipeline/1.11.1 Node/v18.18.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "2c5ecc4f-f43f-4af8-a585-df9847e4c2c7" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Length": "393", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 07 Nov 2023 01:03:49 GMT" + }, + "ResponseBody": { + "value": [ + { + "brokerProperties": { + "lockToken": "CiYKJEVEMjNGRjVGLUU0MDktNEE5Ni04NDYwLUYyMTA2M0NFNDg4NxISChCuoBao/PhHu6IbaNeWesKn", + "deliveryCount": 1 + }, + "event": { + "type": "example", + "source": "https://example.com", + "time": "2023-11-07T01:03:48Z", + "id": "singleEventIdV210008", + "datacontenttype": "application/cloudevents\u002Bjson; charset=utf-8", + "specversion": "1.0", + "data": { + "resourceUri": "https://dummyurl.com" + } + } + } + ] + } + }, + { + "RequestUri": "https://endpoint/topics/testtopic1/eventsubscriptions/testsubscription1:renewLock?api-version=2023-10-01-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "99", + "Content-Type": "application/json; charset=UTF-8", + "User-Agent": "azsdk-js-eventgrid-rest/4.13.0-beta.2 core-rest-pipeline/1.11.1 Node/v18.18.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "4e4e45b6-01ce-4f11-9b97-fa361e0dc561" + }, + "RequestBody": { + "lockTokens": [ + "CiYKJEVEMjNGRjVGLUU0MDktNEE5Ni04NDYwLUYyMTA2M0NFNDg4NxISChCuoBao/PhHu6IbaNeWesKn" + ] + }, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Length": "130", + "Content-Type": "application/json", + "Date": "Tue, 07 Nov 2023 01:03:49 GMT" + }, + "ResponseBody": { + "succeededLockTokens": [ + "CiYKJEVEMjNGRjVGLUU0MDktNEE5Ni04NDYwLUYyMTA2M0NFNDg4NxISChCuoBao/PhHu6IbaNeWesKn" + ], + "failedLockTokens": [] + } + }, + { + "RequestUri": "https://endpoint/topics/testtopic1/eventsubscriptions/testsubscription1:receive?api-version=2023-10-01-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-js-eventgrid-rest/4.13.0-beta.2 core-rest-pipeline/1.11.1 Node/v18.18.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "f17af688-5a54-48f6-a810-35e8f05d09a2" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Length": "393", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 07 Nov 2023 01:04:49 GMT" + }, + "ResponseBody": { + "value": [ + { + "brokerProperties": { + "lockToken": "CiYKJEVEMjNGRjVGLUU0MDktNEE5Ni04NDYwLUYyMTA2M0NFNDg4NxISChCiEg1eqnxCVKJqmXPLljYY", + "deliveryCount": 2 + }, + "event": { + "type": "example", + "source": "https://example.com", + "time": "2023-11-07T01:03:48Z", + "id": "singleEventIdV210008", + "datacontenttype": "application/cloudevents\u002Bjson; charset=utf-8", + "specversion": "1.0", + "data": { + "resourceUri": "https://dummyurl.com" + } + } + } + ] + } + }, + { + "RequestUri": "https://endpoint/topics/testtopic1/eventsubscriptions/testsubscription1:receive?api-version=2023-10-01-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-js-eventgrid-rest/4.13.0-beta.2 core-rest-pipeline/1.11.1 Node/v18.18.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "41473797-0bfb-415a-b2b7-6fa59755c62a" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Length": "393", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 07 Nov 2023 01:05:49 GMT" + }, + "ResponseBody": { + "value": [ + { + "brokerProperties": { + "lockToken": "CiYKJEVEMjNGRjVGLUU0MDktNEE5Ni04NDYwLUYyMTA2M0NFNDg4NxISChBGnPUFVydI0IdAmsrzEBIK", + "deliveryCount": 3 + }, + "event": { + "type": "example", + "source": "https://example.com", + "time": "2023-11-07T01:03:48Z", + "id": "singleEventIdV210008", + "datacontenttype": "application/cloudevents\u002Bjson; charset=utf-8", + "specversion": "1.0", + "data": { + "resourceUri": "https://dummyurl.com" + } + } + } + ] + } + }, + { + "RequestUri": "https://endpoint/topics/testtopic1/eventsubscriptions/testsubscription1:acknowledge?api-version=2023-10-01-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "99", + "Content-Type": "application/json; charset=UTF-8", + "User-Agent": "azsdk-js-eventgrid-rest/4.13.0-beta.2 core-rest-pipeline/1.11.1 Node/v18.18.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "6dd9eeb7-3d44-4854-b20b-a25feeb38f6e" + }, + "RequestBody": { + "lockTokens": [ + "CiYKJEVEMjNGRjVGLUU0MDktNEE5Ni04NDYwLUYyMTA2M0NFNDg4NxISChBGnPUFVydI0IdAmsrzEBIK" + ] + }, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Length": "130", + "Content-Type": "application/json", + "Date": "Tue, 07 Nov 2023 01:05:49 GMT" + }, + "ResponseBody": { + "succeededLockTokens": [ + "CiYKJEVEMjNGRjVGLUU0MDktNEE5Ni04NDYwLUYyMTA2M0NFNDg4NxISChBGnPUFVydI0IdAmsrzEBIK" + ], + "failedLockTokens": [] + } + }, + { + "RequestUri": "https://endpoint/topics/testtopic1/eventsubscriptions/testsubscription1:receive?api-version=2023-10-01-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azsdk-js-eventgrid-rest/4.13.0-beta.2 core-rest-pipeline/1.11.1 Node/v18.18.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "f7100844-0501-4dfd-90fa-b84ee4942813" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Content-Length": "12", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 07 Nov 2023 01:06:49 GMT" + }, + "ResponseBody": { + "value": [] + } + } + ], + "Variables": { + "singleEventDate": "Mon Nov 06 2023 17:03:48 GMT-0800 (Pacific Standard Time)", + "singleEventId": "singleEventIdV210008" + } +} diff --git a/sdk/eventgrid/eventgrid/recordings/node/eventgridpublisherclient_send_cloudevent_schema/recording_sends_a_single_event.json b/sdk/eventgrid/eventgrid/recordings/node/eventgridpublisherclient_send_cloudevent_schema/recording_sends_a_single_event.json index 052429c17b07..d888e1cc241f 100644 --- a/sdk/eventgrid/eventgrid/recordings/node/eventgridpublisherclient_send_cloudevent_schema/recording_sends_a_single_event.json +++ b/sdk/eventgrid/eventgrid/recordings/node/eventgridpublisherclient_send_cloudevent_schema/recording_sends_a_single_event.json @@ -9,24 +9,24 @@ "Connection": "keep-alive", "Content-Length": "241", "Content-Type": "application/cloudevents-batch\u002Bjson; charset=utf-8", - "User-Agent": "azsdk-js-eventgrid/4.7.1 core-rest-pipeline/1.5.1 Node/v14.17.6 OS/(x64-Linux-5.4.0-1067-azure)", - "x-ms-client-request-id": "cf7d98e8-f533-43a4-96d7-3459c6f846a6" + "User-Agent": "azsdk-js-eventgrid/4.13.0-beta.2 core-rest-pipeline/1.11.1 Node/v18.18.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "a0f6fa98-2428-483c-ba31-893e103c1521" }, - "RequestBody": "[{\u0022id\u0022:\u0022cloudSingleEventId100909\u0022,\u0022source\u0022:\u0022/earth/unitedstates/washington/kirkland/finnhill\u0022,\u0022data\u0022:{\u0022hello\u0022:\u0022world\u0022},\u0022type\u0022:\u0022Azure.Sdk.TestEvent1\u0022,\u0022time\u0022:\u00222022-02-09T01:44:23.000Z\u0022,\u0022specversion\u0022:\u00221.0\u0022,\u0022datacontenttype\u0022:\u0022application/json\u0022}]", + "RequestBody": "[{\u0022id\u0022:\u0022cloudSingleEventId100579\u0022,\u0022source\u0022:\u0022/earth/unitedstates/washington/kirkland/finnhill\u0022,\u0022data\u0022:{\u0022hello\u0022:\u0022world\u0022},\u0022type\u0022:\u0022Azure.Sdk.TestEvent1\u0022,\u0022time\u0022:\u00222023-11-07T00:50:41.000Z\u0022,\u0022specversion\u0022:\u00221.0\u0022,\u0022datacontenttype\u0022:\u0022application/json\u0022}]", "StatusCode": 200, "ResponseHeaders": { "api-supported-versions": "2018-01-01", "Content-Length": "0", - "Date": "Wed, 09 Feb 2022 01:44:23 GMT", + "Date": "Tue, 07 Nov 2023 00:50:41 GMT", "Server": "Microsoft-HTTPAPI/2.0", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "x-ms-request-id": "be09bde7-ee3a-4d75-80bc-ce8dca1788cd" + "x-ms-request-id": "e8835b7c-8626-48fc-af64-49cfcdb284bd" }, "ResponseBody": null } ], "Variables": { - "cloudSingleEventDate": "Wed Feb 09 2022 01:44:23 GMT\u002B0000 (Coordinated Universal Time)", - "cloudSingleEventId": "cloudSingleEventId100909" + "cloudSingleEventDate": "Mon Nov 06 2023 16:50:41 GMT-0800 (Pacific Standard Time)", + "cloudSingleEventId": "cloudSingleEventId100579" } } diff --git a/sdk/eventgrid/eventgrid/recordings/node/eventgridpublisherclient_send_cloudevent_schema/recording_sends_multiple_events.json b/sdk/eventgrid/eventgrid/recordings/node/eventgridpublisherclient_send_cloudevent_schema/recording_sends_multiple_events.json index 2c8ab136fc2f..6d1423fc3dc6 100644 --- a/sdk/eventgrid/eventgrid/recordings/node/eventgridpublisherclient_send_cloudevent_schema/recording_sends_multiple_events.json +++ b/sdk/eventgrid/eventgrid/recordings/node/eventgridpublisherclient_send_cloudevent_schema/recording_sends_multiple_events.json @@ -9,26 +9,26 @@ "Connection": "keep-alive", "Content-Length": "527", "Content-Type": "application/cloudevents-batch\u002Bjson; charset=utf-8", - "User-Agent": "azsdk-js-eventgrid/4.7.1 core-rest-pipeline/1.5.1 Node/v14.17.6 OS/(x64-Linux-5.4.0-1067-azure)", - "x-ms-client-request-id": "44377582-f9b3-463f-a3f6-b54a50572dbe" + "User-Agent": "azsdk-js-eventgrid/4.13.0-beta.2 core-rest-pipeline/1.11.1 Node/v18.18.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "641cdd7d-b9c9-4463-90b4-ce6acea4fd0c" }, - "RequestBody": "[{\u0022id\u0022:\u0022cloudMultiEventId1100717\u0022,\u0022source\u0022:\u0022/earth/unitedstates/washington/kirkland/finnhill\u0022,\u0022data\u0022:{\u0022hello\u0022:\u0022world\u0022},\u0022type\u0022:\u0022Azure.Sdk.TestEvent1\u0022,\u0022time\u0022:\u00222022-02-09T01:44:23.000Z\u0022,\u0022specversion\u0022:\u00221.0\u0022,\u0022datacontenttype\u0022:\u0022application/json\u0022,\u0022subject\u0022:\u0022Multiple 1\u0022},{\u0022id\u0022:\u0022cloudMultiEventId2100674\u0022,\u0022source\u0022:\u0022/earth/unitedstates/washington/kirkland/finnhill\u0022,\u0022data\u0022:{\u0022hello\u0022:\u0022world\u0022},\u0022type\u0022:\u0022Azure.Sdk.TestEvent1\u0022,\u0022time\u0022:\u00222022-02-09T01:44:23.000Z\u0022,\u0022specversion\u0022:\u00221.0\u0022,\u0022datacontenttype\u0022:\u0022application/json\u0022,\u0022subject\u0022:\u0022Multiple 2\u0022}]", + "RequestBody": "[{\u0022id\u0022:\u0022cloudMultiEventId1100561\u0022,\u0022source\u0022:\u0022/earth/unitedstates/washington/kirkland/finnhill\u0022,\u0022data\u0022:{\u0022hello\u0022:\u0022world\u0022},\u0022type\u0022:\u0022Azure.Sdk.TestEvent1\u0022,\u0022time\u0022:\u00222023-11-07T00:50:41.000Z\u0022,\u0022specversion\u0022:\u00221.0\u0022,\u0022datacontenttype\u0022:\u0022application/json\u0022,\u0022subject\u0022:\u0022Multiple 1\u0022},{\u0022id\u0022:\u0022cloudMultiEventId2100447\u0022,\u0022source\u0022:\u0022/earth/unitedstates/washington/kirkland/finnhill\u0022,\u0022data\u0022:{\u0022hello\u0022:\u0022world\u0022},\u0022type\u0022:\u0022Azure.Sdk.TestEvent1\u0022,\u0022time\u0022:\u00222023-11-07T00:50:41.000Z\u0022,\u0022specversion\u0022:\u00221.0\u0022,\u0022datacontenttype\u0022:\u0022application/json\u0022,\u0022subject\u0022:\u0022Multiple 2\u0022}]", "StatusCode": 200, "ResponseHeaders": { "api-supported-versions": "2018-01-01", "Content-Length": "0", - "Date": "Wed, 09 Feb 2022 01:44:23 GMT", + "Date": "Tue, 07 Nov 2023 00:50:41 GMT", "Server": "Microsoft-HTTPAPI/2.0", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "x-ms-request-id": "51125dca-55d6-4801-88b1-d36a208a15fa" + "x-ms-request-id": "de3430c1-c4cf-4db8-9082-78d782e2eaa9" }, "ResponseBody": null } ], "Variables": { - "cloudMultiEventDate1": "Wed Feb 09 2022 01:44:23 GMT\u002B0000 (Coordinated Universal Time)", - "cloudMultiEventDate2": "Wed Feb 09 2022 01:44:23 GMT\u002B0000 (Coordinated Universal Time)", - "cloudMultiEventId1": "cloudMultiEventId1100717", - "cloudMultiEventId2": "cloudMultiEventId2100674" + "cloudMultiEventDate1": "Mon Nov 06 2023 16:50:41 GMT-0800 (Pacific Standard Time)", + "cloudMultiEventDate2": "Mon Nov 06 2023 16:50:41 GMT-0800 (Pacific Standard Time)", + "cloudMultiEventId1": "cloudMultiEventId1100561", + "cloudMultiEventId2": "cloudMultiEventId2100447" } } diff --git a/sdk/eventgrid/eventgrid/recordings/node/eventgridpublisherclient_send_cloudevent_schema_when_tracing_headers_are_present_in_the_request/recording_enriches_events_with_distributed_tracing_information.json b/sdk/eventgrid/eventgrid/recordings/node/eventgridpublisherclient_send_cloudevent_schema_when_tracing_headers_are_present_in_the_request/recording_enriches_events_with_distributed_tracing_information.json index de9d237e3923..e82a46b192bd 100644 --- a/sdk/eventgrid/eventgrid/recordings/node/eventgridpublisherclient_send_cloudevent_schema_when_tracing_headers_are_present_in_the_request/recording_enriches_events_with_distributed_tracing_information.json +++ b/sdk/eventgrid/eventgrid/recordings/node/eventgridpublisherclient_send_cloudevent_schema_when_tracing_headers_are_present_in_the_request/recording_enriches_events_with_distributed_tracing_information.json @@ -11,24 +11,24 @@ "Content-Type": "application/cloudevents-batch\u002Bjson; charset=utf-8", "traceparent": "00-00000000000000000000000000000001-0000000000000003-00", "tracestate": "00-123", - "User-Agent": "azsdk-js-eventgrid/4.9.0 core-rest-pipeline/1.8.1 Node/v16.14.0 OS/(x64-Linux-5.10.102.1-microsoft-standard-WSL2)", - "x-ms-client-request-id": "68086a5b-f49a-45e2-be04-717e04bc09d3" + "User-Agent": "azsdk-js-eventgrid/4.13.0-beta.2 core-rest-pipeline/1.11.1 Node/v18.18.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "930fcb9f-e091-40e7-a912-ae267cf84a1c" }, - "RequestBody": "[{\u0022id\u0022:\u0022cloudTracingEventId100181\u0022,\u0022source\u0022:\u0022/earth/unitedstates/washington/kirkland/finnhill\u0022,\u0022data\u0022:{\u0022hello\u0022:\u0022world\u0022},\u0022type\u0022:\u0022Azure.Sdk.TestEvent1\u0022,\u0022time\u0022:\u00222022-04-07T17:44:32.000Z\u0022,\u0022specversion\u0022:\u00221.0\u0022,\u0022datacontenttype\u0022:\u0022application/json\u0022,\u0022subject\u0022:\u0022Single with Trace Parent\u0022,\u0022traceparent\u0022:\u002200-00000000000000000000000000000001-0000000000000003-00\u0022,\u0022tracestate\u0022:\u002200-123\u0022}]", + "RequestBody": "[{\u0022id\u0022:\u0022cloudTracingEventId100954\u0022,\u0022source\u0022:\u0022/earth/unitedstates/washington/kirkland/finnhill\u0022,\u0022data\u0022:{\u0022hello\u0022:\u0022world\u0022},\u0022type\u0022:\u0022Azure.Sdk.TestEvent1\u0022,\u0022time\u0022:\u00222023-11-07T00:50:41.000Z\u0022,\u0022specversion\u0022:\u00221.0\u0022,\u0022datacontenttype\u0022:\u0022application/json\u0022,\u0022subject\u0022:\u0022Single with Trace Parent\u0022,\u0022traceparent\u0022:\u002200-00000000000000000000000000000001-0000000000000003-00\u0022,\u0022tracestate\u0022:\u002200-123\u0022}]", "StatusCode": 200, "ResponseHeaders": { "api-supported-versions": "2018-01-01", "Content-Length": "0", - "Date": "Thu, 07 Apr 2022 17:44:33 GMT", + "Date": "Tue, 07 Nov 2023 00:50:41 GMT", "Server": "Microsoft-HTTPAPI/2.0", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "x-ms-request-id": "8887727f-59ee-48aa-8f28-f457fc45d1c9" + "x-ms-request-id": "3975947f-3397-4daa-a3ae-9ce301fb6c6f" }, "ResponseBody": null } ], "Variables": { - "cloudTracingEventDate": "Thu Apr 07 2022 10:44:32 GMT-0700 (Pacific Daylight Time)", - "cloudTracingEventId": "cloudTracingEventId100181" + "cloudTracingEventDate": "Mon Nov 06 2023 16:50:41 GMT-0800 (Pacific Standard Time)", + "cloudTracingEventId": "cloudTracingEventId100954" } } diff --git a/sdk/eventgrid/eventgrid/recordings/node/eventgridpublisherclient_send_custom_event_schema/recording_sends_a_single_event.json b/sdk/eventgrid/eventgrid/recordings/node/eventgridpublisherclient_send_custom_event_schema/recording_sends_a_single_event.json index cdd01b5b4768..3fe0b284cb3c 100644 --- a/sdk/eventgrid/eventgrid/recordings/node/eventgridpublisherclient_send_custom_event_schema/recording_sends_a_single_event.json +++ b/sdk/eventgrid/eventgrid/recordings/node/eventgridpublisherclient_send_custom_event_schema/recording_sends_a_single_event.json @@ -9,19 +9,18 @@ "Connection": "keep-alive", "Content-Length": "87", "Content-Type": "application/json", - "User-Agent": "azsdk-js-eventgrid/4.7.1 core-rest-pipeline/1.5.1 Node/v14.17.6 OS/(x64-Linux-5.4.0-1067-azure)", - "x-ms-client-request-id": "d8bfc82c-a7fc-4f88-a46e-75e4d3e7ac12" + "User-Agent": "azsdk-js-eventgrid/4.13.0-beta.2 core-rest-pipeline/1.11.1 Node/v18.18.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "f4b3c596-5d7b-4eca-a3ce-2ead491a0971" }, "RequestBody": "[{\u0022ver\u0022:\u00221.0\u0022,\u0022typ\u0022:\u0022Azure.Sdk.TestEvent1\u0022,\u0022sub\u0022:\u0022Single\u0022,\u0022payload\u0022:{\u0022hello\u0022:\u0022world\u0022}}]", "StatusCode": 200, "ResponseHeaders": { "api-supported-versions": "2018-01-01", - "Connection": "close", "Content-Length": "0", - "Date": "Wed, 09 Feb 2022 01:44:24 GMT", + "Date": "Tue, 07 Nov 2023 00:50:42 GMT", "Server": "Microsoft-HTTPAPI/2.0", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "x-ms-request-id": "93505e3a-2c4b-4885-baf9-b1e404902a14" + "x-ms-request-id": "73d39702-461f-4610-aed7-d2716c7df33d" }, "ResponseBody": null } diff --git a/sdk/eventgrid/eventgrid/recordings/node/eventgridpublisherclient_send_custom_event_schema/recording_sends_multiple_events.json b/sdk/eventgrid/eventgrid/recordings/node/eventgridpublisherclient_send_custom_event_schema/recording_sends_multiple_events.json index 111c9fcf0e98..64fcc6b398d0 100644 --- a/sdk/eventgrid/eventgrid/recordings/node/eventgridpublisherclient_send_custom_event_schema/recording_sends_multiple_events.json +++ b/sdk/eventgrid/eventgrid/recordings/node/eventgridpublisherclient_send_custom_event_schema/recording_sends_multiple_events.json @@ -9,18 +9,18 @@ "Connection": "keep-alive", "Content-Length": "181", "Content-Type": "application/json", - "User-Agent": "azsdk-js-eventgrid/4.7.1 core-rest-pipeline/1.5.1 Node/v14.17.6 OS/(x64-Linux-5.4.0-1067-azure)", - "x-ms-client-request-id": "2766a6d8-00e4-4005-8cd9-4d2bd5c8bdba" + "User-Agent": "azsdk-js-eventgrid/4.13.0-beta.2 core-rest-pipeline/1.11.1 Node/v18.18.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "fa9f9ea6-9afa-4b6b-953b-8adf25c9cfc5" }, "RequestBody": "[{\u0022ver\u0022:\u00221.0\u0022,\u0022typ\u0022:\u0022Azure.Sdk.TestEvent1\u0022,\u0022sub\u0022:\u0022Multiple 1\u0022,\u0022payload\u0022:{\u0022hello\u0022:\u0022world\u0022}},{\u0022ver\u0022:\u00221.0\u0022,\u0022typ\u0022:\u0022Azure.Sdk.TestEvent1\u0022,\u0022sub\u0022:\u0022Multiple 2\u0022,\u0022payload\u0022:{\u0022hello\u0022:\u0022world\u0022}}]", "StatusCode": 200, "ResponseHeaders": { "api-supported-versions": "2018-01-01", "Content-Length": "0", - "Date": "Wed, 09 Feb 2022 01:44:24 GMT", + "Date": "Tue, 07 Nov 2023 00:50:42 GMT", "Server": "Microsoft-HTTPAPI/2.0", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "x-ms-request-id": "3cce925e-d34d-4357-941d-7a46f6fd7c12" + "x-ms-request-id": "d01687c0-1366-4391-bf3b-44a94a569114" }, "ResponseBody": null } diff --git a/sdk/eventgrid/eventgrid/recordings/node/eventgridpublisherclient_send_error_cases_cloudevent_schema/recording_does_not_append_apievents.json b/sdk/eventgrid/eventgrid/recordings/node/eventgridpublisherclient_send_error_cases_cloudevent_schema/recording_does_not_append_apievents.json index de877b0b0a09..4a6955aaeab9 100644 --- a/sdk/eventgrid/eventgrid/recordings/node/eventgridpublisherclient_send_error_cases_cloudevent_schema/recording_does_not_append_apievents.json +++ b/sdk/eventgrid/eventgrid/recordings/node/eventgridpublisherclient_send_error_cases_cloudevent_schema/recording_does_not_append_apievents.json @@ -9,27 +9,27 @@ "Connection": "keep-alive", "Content-Length": "241", "Content-Type": "application/cloudevents-batch\u002Bjson; charset=utf-8", - "User-Agent": "azsdk-js-eventgrid/4.10.0-beta.2 core-rest-pipeline/1.8.2 Node/v16.13.0 OS/(x64-Linux-5.10.102.1-microsoft-standard-WSL2)", - "x-ms-client-request-id": "8977d74b-7e17-4f96-aa19-4c8ba9196c56" + "User-Agent": "azsdk-js-eventgrid/4.13.0-beta.2 core-rest-pipeline/1.11.1 Node/v18.18.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "54cdee25-0abf-4e54-8e63-41fcaa5c1f42" }, - "RequestBody": "[{\u0022id\u0022:\u0022cloudSingleEventId100167\u0022,\u0022source\u0022:\u0022/earth/unitedstates/washington/kirkland/finnhill\u0022,\u0022data\u0022:{\u0022hello\u0022:\u0022world\u0022},\u0022type\u0022:\u0022Azure.Sdk.TestEvent1\u0022,\u0022time\u0022:\u00222022-05-11T00:24:44.000Z\u0022,\u0022specversion\u0022:\u00221.0\u0022,\u0022datacontenttype\u0022:\u0022application/json\u0022}]", + "RequestBody": "[{\u0022id\u0022:\u0022cloudSingleEventId100637\u0022,\u0022source\u0022:\u0022/earth/unitedstates/washington/kirkland/finnhill\u0022,\u0022data\u0022:{\u0022hello\u0022:\u0022world\u0022},\u0022type\u0022:\u0022Azure.Sdk.TestEvent1\u0022,\u0022time\u0022:\u00222023-11-07T00:50:42.000Z\u0022,\u0022specversion\u0022:\u00221.0\u0022,\u0022datacontenttype\u0022:\u0022application/json\u0022}]", "StatusCode": 404, "ResponseHeaders": { "Content-Length": "635", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 11 May 2022 00:24:45 GMT", + "Date": "Tue, 07 Nov 2023 00:50:41 GMT", "Server": "Microsoft-HTTPAPI/2.0", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "x-ms-request-id": "f2393a8e-cada-4a40-b42e-4b8376e63823" + "x-ms-request-id": "004491cb-c795-43d5-a1e8-23d52f1d79c8" }, "ResponseBody": { "error": { "code": "NotFound", - "message": "No HTTP resource was found that matches the request URI \u0027https://endpoint/?api-version=2018-01-01\u0027. Report \u0027f2393a8e-cada-4a40-b42e-4b8376e63823:5/11/2022 12:24:46 AM (UTC)\u0027 to our forums for assistance or raise a support ticket.", + "message": "No HTTP resource was found that matches the request URI \u0027https://endpoint/?api-version=2018-01-01\u0027. Report \u0027004491cb-c795-43d5-a1e8-23d52f1d79c8:11/7/2023 12:50:42 AM (UTC)\u0027 to our forums for assistance or raise a support ticket.", "details": [ { "code": "ResourceNotFound", - "message": "No HTTP resource was found that matches the request URI \u0027https://endpoint/?api-version=2018-01-01\u0027. Report \u0027f2393a8e-cada-4a40-b42e-4b8376e63823:5/11/2022 12:24:46 AM (UTC)\u0027 to our forums for assistance or raise a support ticket." + "message": "No HTTP resource was found that matches the request URI \u0027https://endpoint/?api-version=2018-01-01\u0027. Report \u0027004491cb-c795-43d5-a1e8-23d52f1d79c8:11/7/2023 12:50:42 AM (UTC)\u0027 to our forums for assistance or raise a support ticket." } ] } @@ -37,7 +37,7 @@ } ], "Variables": { - "cloudSingleEventDate": "Tue May 10 2022 17:24:44 GMT-0700 (Pacific Daylight Time)", - "cloudSingleEventId": "cloudSingleEventId100167" + "cloudSingleEventDate": "Mon Nov 06 2023 16:50:42 GMT-0800 (Pacific Standard Time)", + "cloudSingleEventId": "cloudSingleEventId100637" } } diff --git a/sdk/eventgrid/eventgrid/recordings/node/eventgridpublisherclient_send_error_cases_custom_event_schema/recording_does_not_append_apievents.json b/sdk/eventgrid/eventgrid/recordings/node/eventgridpublisherclient_send_error_cases_custom_event_schema/recording_does_not_append_apievents.json index d71a46511dff..fc7d527e57d5 100644 --- a/sdk/eventgrid/eventgrid/recordings/node/eventgridpublisherclient_send_error_cases_custom_event_schema/recording_does_not_append_apievents.json +++ b/sdk/eventgrid/eventgrid/recordings/node/eventgridpublisherclient_send_error_cases_custom_event_schema/recording_does_not_append_apievents.json @@ -9,27 +9,27 @@ "Connection": "keep-alive", "Content-Length": "87", "Content-Type": "application/json", - "User-Agent": "azsdk-js-eventgrid/4.10.0-beta.2 core-rest-pipeline/1.8.2 Node/v16.13.0 OS/(x64-Linux-5.10.102.1-microsoft-standard-WSL2)", - "x-ms-client-request-id": "07191704-2b79-4abd-9862-1fa80319cad1" + "User-Agent": "azsdk-js-eventgrid/4.13.0-beta.2 core-rest-pipeline/1.11.1 Node/v18.18.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "09568349-5b4f-4126-ac1f-b164373f6966" }, "RequestBody": "[{\u0022ver\u0022:\u00221.0\u0022,\u0022typ\u0022:\u0022Azure.Sdk.TestEvent1\u0022,\u0022sub\u0022:\u0022Single\u0022,\u0022payload\u0022:{\u0022hello\u0022:\u0022world\u0022}}]", "StatusCode": 404, "ResponseHeaders": { "Content-Length": "635", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 11 May 2022 00:24:46 GMT", + "Date": "Tue, 07 Nov 2023 00:50:42 GMT", "Server": "Microsoft-HTTPAPI/2.0", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "x-ms-request-id": "5071a216-8329-42e5-b85c-331cb7662a55" + "x-ms-request-id": "f2ac1820-5fb8-4d68-8dbe-cc5b6681dc6c" }, "ResponseBody": { "error": { "code": "NotFound", - "message": "No HTTP resource was found that matches the request URI \u0027https://endpoint/?api-version=2018-01-01\u0027. Report \u00275071a216-8329-42e5-b85c-331cb7662a55:5/11/2022 12:24:46 AM (UTC)\u0027 to our forums for assistance or raise a support ticket.", + "message": "No HTTP resource was found that matches the request URI \u0027https://endpoint/?api-version=2018-01-01\u0027. Report \u0027f2ac1820-5fb8-4d68-8dbe-cc5b6681dc6c:11/7/2023 12:50:42 AM (UTC)\u0027 to our forums for assistance or raise a support ticket.", "details": [ { "code": "ResourceNotFound", - "message": "No HTTP resource was found that matches the request URI \u0027https://endpoint/?api-version=2018-01-01\u0027. Report \u00275071a216-8329-42e5-b85c-331cb7662a55:5/11/2022 12:24:46 AM (UTC)\u0027 to our forums for assistance or raise a support ticket." + "message": "No HTTP resource was found that matches the request URI \u0027https://endpoint/?api-version=2018-01-01\u0027. Report \u0027f2ac1820-5fb8-4d68-8dbe-cc5b6681dc6c:11/7/2023 12:50:42 AM (UTC)\u0027 to our forums for assistance or raise a support ticket." } ] } diff --git a/sdk/eventgrid/eventgrid/recordings/node/eventgridpublisherclient_send_error_cases_eventgrid_schema/recording_does_not_append_apievents.json b/sdk/eventgrid/eventgrid/recordings/node/eventgridpublisherclient_send_error_cases_eventgrid_schema/recording_does_not_append_apievents.json index c58786c090b8..e8a28b94d75e 100644 --- a/sdk/eventgrid/eventgrid/recordings/node/eventgridpublisherclient_send_error_cases_eventgrid_schema/recording_does_not_append_apievents.json +++ b/sdk/eventgrid/eventgrid/recordings/node/eventgridpublisherclient_send_error_cases_eventgrid_schema/recording_does_not_append_apievents.json @@ -9,27 +9,27 @@ "Connection": "keep-alive", "Content-Length": "170", "Content-Type": "application/json", - "User-Agent": "azsdk-js-eventgrid/4.10.0-beta.2 core-rest-pipeline/1.8.2 Node/v16.13.0 OS/(x64-Linux-5.10.102.1-microsoft-standard-WSL2)", - "x-ms-client-request-id": "4dd1abfa-94b0-4cb1-a582-fea0aab11bec" + "User-Agent": "azsdk-js-eventgrid/4.13.0-beta.2 core-rest-pipeline/1.11.1 Node/v18.18.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "6921008f-e0e5-4cc1-8003-a3b5084c007d" }, - "RequestBody": "[{\u0022id\u0022:\u0022singleEventId100213\u0022,\u0022subject\u0022:\u0022Single 1\u0022,\u0022data\u0022:{\u0022hello\u0022:\u0022world\u0022},\u0022eventType\u0022:\u0022Azure.Sdk.TestEvent1\u0022,\u0022eventTime\u0022:\u00222022-05-11T00:24:43.000Z\u0022,\u0022dataVersion\u0022:\u00221.0\u0022}]", + "RequestBody": "[{\u0022id\u0022:\u0022singleEventId100646\u0022,\u0022subject\u0022:\u0022Single 1\u0022,\u0022data\u0022:{\u0022hello\u0022:\u0022world\u0022},\u0022eventType\u0022:\u0022Azure.Sdk.TestEvent1\u0022,\u0022eventTime\u0022:\u00222023-11-07T00:50:41.000Z\u0022,\u0022dataVersion\u0022:\u00221.0\u0022}]", "StatusCode": 404, "ResponseHeaders": { "Content-Length": "635", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 11 May 2022 00:24:44 GMT", + "Date": "Tue, 07 Nov 2023 00:50:41 GMT", "Server": "Microsoft-HTTPAPI/2.0", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "x-ms-request-id": "e9bcc9d6-f649-42bc-92fa-3c7e426304d7" + "x-ms-request-id": "5180033f-35b2-4c5d-932b-04574f170669" }, "ResponseBody": { "error": { "code": "NotFound", - "message": "No HTTP resource was found that matches the request URI \u0027https://endpoint/?api-version=2018-01-01\u0027. Report \u0027e9bcc9d6-f649-42bc-92fa-3c7e426304d7:5/11/2022 12:24:44 AM (UTC)\u0027 to our forums for assistance or raise a support ticket.", + "message": "No HTTP resource was found that matches the request URI \u0027https://endpoint/?api-version=2018-01-01\u0027. Report \u00275180033f-35b2-4c5d-932b-04574f170669:11/7/2023 12:50:41 AM (UTC)\u0027 to our forums for assistance or raise a support ticket.", "details": [ { "code": "ResourceNotFound", - "message": "No HTTP resource was found that matches the request URI \u0027https://endpoint/?api-version=2018-01-01\u0027. Report \u0027e9bcc9d6-f649-42bc-92fa-3c7e426304d7:5/11/2022 12:24:44 AM (UTC)\u0027 to our forums for assistance or raise a support ticket." + "message": "No HTTP resource was found that matches the request URI \u0027https://endpoint/?api-version=2018-01-01\u0027. Report \u00275180033f-35b2-4c5d-932b-04574f170669:11/7/2023 12:50:41 AM (UTC)\u0027 to our forums for assistance or raise a support ticket." } ] } @@ -37,7 +37,7 @@ } ], "Variables": { - "singleEventDate": "Tue May 10 2022 17:24:43 GMT-0700 (Pacific Daylight Time)", - "singleEventId": "singleEventId100213" + "singleEventDate": "Mon Nov 06 2023 16:50:41 GMT-0800 (Pacific Standard Time)", + "singleEventId": "singleEventId100646" } } diff --git a/sdk/eventgrid/eventgrid/recordings/node/eventgridpublisherclient_send_eventgrid_schema/recording_sends_a_single_event.json b/sdk/eventgrid/eventgrid/recordings/node/eventgridpublisherclient_send_eventgrid_schema/recording_sends_a_single_event.json index cf8d45136066..cf3365e8cef8 100644 --- a/sdk/eventgrid/eventgrid/recordings/node/eventgridpublisherclient_send_eventgrid_schema/recording_sends_a_single_event.json +++ b/sdk/eventgrid/eventgrid/recordings/node/eventgridpublisherclient_send_eventgrid_schema/recording_sends_a_single_event.json @@ -9,24 +9,24 @@ "Connection": "keep-alive", "Content-Length": "170", "Content-Type": "application/json", - "User-Agent": "azsdk-js-eventgrid/4.7.1 core-rest-pipeline/1.5.1 Node/v14.17.6 OS/(x64-Linux-5.4.0-1067-azure)", - "x-ms-client-request-id": "7642dc8d-d801-4cde-96b3-ab5c509879df" + "User-Agent": "azsdk-js-eventgrid/4.13.0-beta.2 core-rest-pipeline/1.11.1 Node/v18.18.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "d3c62884-9e1d-4287-b167-179a6d708c89" }, - "RequestBody": "[{\u0022id\u0022:\u0022singleEventId100797\u0022,\u0022subject\u0022:\u0022Single 1\u0022,\u0022data\u0022:{\u0022hello\u0022:\u0022world\u0022},\u0022eventType\u0022:\u0022Azure.Sdk.TestEvent1\u0022,\u0022eventTime\u0022:\u00222022-02-09T01:44:22.000Z\u0022,\u0022dataVersion\u0022:\u00221.0\u0022}]", + "RequestBody": "[{\u0022id\u0022:\u0022singleEventId100185\u0022,\u0022subject\u0022:\u0022Single 1\u0022,\u0022data\u0022:{\u0022hello\u0022:\u0022world\u0022},\u0022eventType\u0022:\u0022Azure.Sdk.TestEvent1\u0022,\u0022eventTime\u0022:\u00222023-11-07T00:50:40.000Z\u0022,\u0022dataVersion\u0022:\u00221.0\u0022}]", "StatusCode": 200, "ResponseHeaders": { "api-supported-versions": "2018-01-01", "Content-Length": "0", - "Date": "Wed, 09 Feb 2022 01:44:22 GMT", + "Date": "Tue, 07 Nov 2023 00:50:40 GMT", "Server": "Microsoft-HTTPAPI/2.0", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "x-ms-request-id": "e456bbc6-afc0-41fa-ad9b-53e49baee258" + "x-ms-request-id": "dc62a54a-66bc-45b6-a269-277298fe6794" }, "ResponseBody": null } ], "Variables": { - "singleEventDate": "Wed Feb 09 2022 01:44:22 GMT\u002B0000 (Coordinated Universal Time)", - "singleEventId": "singleEventId100797" + "singleEventDate": "Mon Nov 06 2023 16:50:40 GMT-0800 (Pacific Standard Time)", + "singleEventId": "singleEventId100185" } } diff --git a/sdk/eventgrid/eventgrid/recordings/node/eventgridpublisherclient_send_eventgrid_schema/recording_sends_multiple_events.json b/sdk/eventgrid/eventgrid/recordings/node/eventgridpublisherclient_send_eventgrid_schema/recording_sends_multiple_events.json index 8c2bfbca4fc7..b030489d5d0e 100644 --- a/sdk/eventgrid/eventgrid/recordings/node/eventgridpublisherclient_send_eventgrid_schema/recording_sends_multiple_events.json +++ b/sdk/eventgrid/eventgrid/recordings/node/eventgridpublisherclient_send_eventgrid_schema/recording_sends_multiple_events.json @@ -9,26 +9,26 @@ "Connection": "keep-alive", "Content-Length": "343", "Content-Type": "application/json", - "User-Agent": "azsdk-js-eventgrid/4.7.1 core-rest-pipeline/1.5.1 Node/v14.17.6 OS/(x64-Linux-5.4.0-1067-azure)", - "x-ms-client-request-id": "b6d2c741-8c18-48e1-88d7-c6d8d60b990c" + "User-Agent": "azsdk-js-eventgrid/4.13.0-beta.2 core-rest-pipeline/1.11.1 Node/v18.18.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "24ae1b4c-5365-426a-a747-de95397b712c" }, - "RequestBody": "[{\u0022id\u0022:\u0022multiEventId1100522\u0022,\u0022subject\u0022:\u0022Multiple 1\u0022,\u0022data\u0022:{\u0022hello\u0022:\u0022world\u0022},\u0022eventType\u0022:\u0022Azure.Sdk.TestEvent1\u0022,\u0022eventTime\u0022:\u00222022-02-09T01:44:23.000Z\u0022,\u0022dataVersion\u0022:\u00221.0\u0022},{\u0022id\u0022:\u0022multiEventId2100036\u0022,\u0022subject\u0022:\u0022Multiple 2\u0022,\u0022data\u0022:{\u0022hello\u0022:\u0022world\u0022},\u0022eventType\u0022:\u0022Azure.Sdk.TestEvent1\u0022,\u0022eventTime\u0022:\u00222022-02-09T01:44:23.000Z\u0022,\u0022dataVersion\u0022:\u00221.0\u0022}]", + "RequestBody": "[{\u0022id\u0022:\u0022multiEventId1100027\u0022,\u0022subject\u0022:\u0022Multiple 1\u0022,\u0022data\u0022:{\u0022hello\u0022:\u0022world\u0022},\u0022eventType\u0022:\u0022Azure.Sdk.TestEvent1\u0022,\u0022eventTime\u0022:\u00222023-11-07T00:50:40.000Z\u0022,\u0022dataVersion\u0022:\u00221.0\u0022},{\u0022id\u0022:\u0022multiEventId2100936\u0022,\u0022subject\u0022:\u0022Multiple 2\u0022,\u0022data\u0022:{\u0022hello\u0022:\u0022world\u0022},\u0022eventType\u0022:\u0022Azure.Sdk.TestEvent1\u0022,\u0022eventTime\u0022:\u00222023-11-07T00:50:40.000Z\u0022,\u0022dataVersion\u0022:\u00221.0\u0022}]", "StatusCode": 200, "ResponseHeaders": { "api-supported-versions": "2018-01-01", "Content-Length": "0", - "Date": "Wed, 09 Feb 2022 01:44:22 GMT", + "Date": "Tue, 07 Nov 2023 00:50:40 GMT", "Server": "Microsoft-HTTPAPI/2.0", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "x-ms-request-id": "065bb6a9-e020-4e3e-82f0-ee675535c71a" + "x-ms-request-id": "b3ae7835-b314-4a25-9f6c-8f4d482a8c54" }, "ResponseBody": null } ], "Variables": { - "multiEventDate1": "Wed Feb 09 2022 01:44:23 GMT\u002B0000 (Coordinated Universal Time)", - "multiEventDate2": "Wed Feb 09 2022 01:44:23 GMT\u002B0000 (Coordinated Universal Time)", - "multiEventId1": "multiEventId1100522", - "multiEventId2": "multiEventId2100036" + "multiEventDate1": "Mon Nov 06 2023 16:50:40 GMT-0800 (Pacific Standard Time)", + "multiEventDate2": "Mon Nov 06 2023 16:50:40 GMT-0800 (Pacific Standard Time)", + "multiEventId1": "multiEventId1100027", + "multiEventId2": "multiEventId2100936" } } diff --git a/sdk/eventgrid/eventgrid/review/eventgrid.api.md b/sdk/eventgrid/eventgrid/review/eventgrid.api.md index 0d27a1d0ebb6..1d4b5be47b27 100644 --- a/sdk/eventgrid/eventgrid/review/eventgrid.api.md +++ b/sdk/eventgrid/eventgrid/review/eventgrid.api.md @@ -6,23 +6,17 @@ import { AzureKeyCredential } from '@azure/core-auth'; import { AzureSASCredential } from '@azure/core-auth'; -import { ClientOptions as ClientOptions_2 } from '@azure-rest/core-client'; +import { ClientOptions } from '@azure-rest/core-client'; import { CommonClientOptions } from '@azure/core-client'; -import { HttpResponse } from '@azure-rest/core-client'; +import { ErrorModel } from '@azure-rest/core-client'; import { KeyCredential } from '@azure/core-auth'; import { OperationOptions } from '@azure/core-client'; -import { RawHttpHeadersInput } from '@azure/core-rest-pipeline'; +import { OperationOptions as OperationRestOptions } from '@azure-rest/core-client'; import { SASCredential } from '@azure/core-auth'; import { TokenCredential } from '@azure/core-auth'; // @public (undocumented) -export interface AcknowledgeCloudEventsOptions extends RequestOptions { - contentType?: string; -} - -// @public -export interface AcknowledgeOptions { - lockTokens: string[]; +export interface AcknowledgeCloudEventsOptions extends OperationRestOptions { } // @public @@ -463,10 +457,6 @@ export interface BrokerProperties { lockToken: string; } -// @public (undocumented) -export interface ClientOptions extends ClientOptions_2 { -} - // @public export interface CloudEvent { data?: T; @@ -687,13 +677,18 @@ export interface DeviceTwinMetadata { // @public export class EventGridClient { - constructor(endpoint: string, credential: AzureKeyCredential, options?: ClientOptions); + constructor(endpoint: string, credential: AzureKeyCredential, options?: EventGridClientOptions); acknowledgeCloudEvents(lockTokens: string[], topicName: string, eventSubscriptionName: string, options?: AcknowledgeCloudEventsOptions): Promise; publishCloudEvent(event: CloudEvent, topicName: string, options?: PublishCloudEventOptions): Promise; publishCloudEvents(events: CloudEvent[], topicName: string, options?: PublishCloudEventsOptions): Promise; receiveCloudEvents(topicName: string, eventSubscriptionName: string, options?: ReceiveCloudEventsOptions): Promise>; rejectCloudEvents(lockTokens: string[], topicName: string, eventSubscriptionName: string, options?: RejectCloudEventsOptions): Promise; releaseCloudEvents(lockTokens: string[], topicName: string, eventSubscriptionName: string, options?: ReleaseCloudEventsOptions): Promise; + renewCloudEventLocks(lockTokens: string[], topicName: string, eventSubscriptionName: string, options?: RenewCloudEventLocksOptions): Promise; +} + +// @public (undocumented) +export interface EventGridClientOptions extends ClientOptions { } // @public @@ -741,8 +736,7 @@ export interface EventHubCaptureFileCreatedEventData { // @public export interface FailedLockToken { - errorCode: string; - errorDescription: string; + error: ErrorModel; lockToken: string; } @@ -1294,6 +1288,8 @@ export interface MicrosoftTeamsUserIdentifierModel { userId: string; } +export { OperationRestOptions } + // @public export interface PhoneNumberIdentifierModel { value: string; @@ -1333,12 +1329,13 @@ export interface PolicyInsightsPolicyStateDeletedEventData { } // @public (undocumented) -export interface PublishCloudEventOptions extends RequestOptions { +export interface PublishCloudEventOptions extends OperationRestOptions { + binaryMode?: boolean; contentType?: string; } // @public (undocumented) -export interface PublishCloudEventsOptions extends RequestOptions { +export interface PublishCloudEventsOptions extends OperationRestOptions { contentType?: string; } @@ -1347,7 +1344,7 @@ export interface PublishResultOutput { } // @public (undocumented) -export interface ReceiveCloudEventsOptions extends RequestOptions { +export interface ReceiveCloudEventsOptions extends OperationRestOptions { maxEvents?: number; maxWaitTime?: number; } @@ -1373,13 +1370,7 @@ export type RecordingContentType = string; export type RecordingFormatType = string; // @public (undocumented) -export interface RejectCloudEventsOptions extends RequestOptions { - contentType?: string; -} - -// @public -export interface RejectOptions { - lockTokens: string[]; +export interface RejectCloudEventsOptions extends OperationRestOptions { } // @public @@ -1389,14 +1380,12 @@ export interface RejectResult { } // @public (undocumented) -export interface ReleaseCloudEventsOptions extends RequestOptions { - contentType?: string; +export interface ReleaseCloudEventsOptions extends OperationRestOptions { + releaseDelayInSeconds?: ReleaseDelay; } // @public -export interface ReleaseOptions { - lockTokens: string[]; -} +export type ReleaseDelay = string; // @public export interface ReleaseResult { @@ -1405,14 +1394,13 @@ export interface ReleaseResult { } // @public (undocumented) -export interface RequestOptions { - // (undocumented) - requestOptions?: { - headers?: RawHttpHeadersInput; - allowInsecureConnection?: boolean; - skipUrlEncoding?: boolean; - onResponse?: (response: HttpResponse) => void; - }; +export interface RenewCloudEventLocksOptions extends OperationRestOptions { +} + +// @public +export interface RenewCloudEventLocksResult { + failedLockTokens: FailedLockToken[]; + succeededLockTokens: string[]; } // @public diff --git a/sdk/eventgrid/eventgrid/src/cadl-generated/EventGridClient.ts b/sdk/eventgrid/eventgrid/src/cadl-generated/EventGridClient.ts index 130aec1baa4f..d376de48c292 100644 --- a/sdk/eventgrid/eventgrid/src/cadl-generated/EventGridClient.ts +++ b/sdk/eventgrid/eventgrid/src/cadl-generated/EventGridClient.ts @@ -1,46 +1,68 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT license. -import { AzureKeyCredential } from "@azure/core-auth"; -import { ClientOptions } from "./common/interfaces"; +import { TokenCredential } from "@azure/core-auth"; import { - createEventGrid, - EventGridContext, + CloudEvent, ReceiveResult, AcknowledgeResult, ReleaseResult, RejectResult, - publishCloudEvent, - publishCloudEvents, - receiveCloudEvents, - acknowledgeCloudEvents, - releaseCloudEvents, - rejectCloudEvents, + RenewCloudEventLocksResult, +} from "./models/models"; +import { PublishCloudEventOptions, PublishCloudEventsOptions, ReceiveCloudEventsOptions, AcknowledgeCloudEventsOptions, ReleaseCloudEventsOptions, RejectCloudEventsOptions, + RenewCloudEventLocksOptions, +} from "./models/options"; +import { + createEventGrid, + EventGridClientOptions, + EventGridContext, + publishCloudEvent, + publishCloudEvents, + receiveCloudEvents, + acknowledgeCloudEvents, + releaseCloudEvents, + rejectCloudEvents, + renewCloudEventLocks, } from "./api/index"; -import { CloudEvent } from "./rest/models"; + +export { EventGridClientOptions } from "./api/EventGridContext"; export class EventGridClient { private _client: EventGridContext; + getClient(): EventGridContext { + return this._client; + } + /** Azure Messaging EventGrid Client */ - constructor(endpoint: string, credential: AzureKeyCredential, options: ClientOptions = {}) { + constructor( + endpoint: string, + credential: any | TokenCredential, + options: EventGridClientOptions = {} + ) { this._client = createEventGrid(endpoint, credential, options); } + /** 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. */ publishCloudEvent( - event: CloudEvent, + id: string, + source: string, + type: string, + specversion: string, topicName: string, options: PublishCloudEventOptions = { requestOptions: {} } ): Promise> { - return publishCloudEvent(this._client, event, topicName, options); + return publishCloudEvent(this._client, id, source, type, specversion, topicName, options); } + /** 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. */ publishCloudEvents( events: CloudEvent[], topicName: string, @@ -49,6 +71,7 @@ export class EventGridClient { return publishCloudEvents(this._client, events, topicName, options); } + /** Receive Batch of Cloud Events from the Event Subscription. */ receiveCloudEvents( topicName: string, eventSubscriptionName: string, @@ -57,6 +80,7 @@ export class EventGridClient { return receiveCloudEvents(this._client, topicName, eventSubscriptionName, options); } + /** Acknowledge batch of Cloud Events. The server responds with an HTTP 200 status code if the request is successfully accepted. The response body will include the set of successfully acknowledged lockTokens, along with other failed lockTokens with their corresponding error information. Successfully acknowledged events will no longer be available to any consumer. */ acknowledgeCloudEvents( lockTokens: string[], topicName: string, @@ -72,6 +96,7 @@ export class EventGridClient { ); } + /** Release batch of Cloud Events. The server responds with an HTTP 200 status code if the request is successfully accepted. The response body will include the set of successfully released lockTokens, along with other failed lockTokens with their corresponding error information. */ releaseCloudEvents( lockTokens: string[], topicName: string, @@ -81,6 +106,7 @@ export class EventGridClient { return releaseCloudEvents(this._client, lockTokens, topicName, eventSubscriptionName, options); } + /** Reject batch of Cloud Events. The server responds with an HTTP 200 status code if the request is successfully accepted. The response body will include the set of successfully rejected lockTokens, along with other failed lockTokens with their corresponding error information. */ rejectCloudEvents( lockTokens: string[], topicName: string, @@ -89,4 +115,20 @@ export class EventGridClient { ): Promise { return rejectCloudEvents(this._client, lockTokens, topicName, eventSubscriptionName, options); } + + /** Renew lock for batch of Cloud Events. The server responds with an HTTP 200 status code if the request is successfully accepted. The response body will include the set of successfully renewed lockTokens, along with other failed lockTokens with their corresponding error information. */ + renewCloudEventLocks( + lockTokens: string[], + topicName: string, + eventSubscriptionName: string, + options: RenewCloudEventLocksOptions = { requestOptions: {} } + ): Promise { + return renewCloudEventLocks( + this._client, + lockTokens, + topicName, + eventSubscriptionName, + options + ); + } } diff --git a/sdk/eventgrid/eventgrid/src/cadl-generated/api/EventGridContext.ts b/sdk/eventgrid/eventgrid/src/cadl-generated/api/EventGridContext.ts index 22ed23c2fa66..18f712bf3041 100644 --- a/sdk/eventgrid/eventgrid/src/cadl-generated/api/EventGridContext.ts +++ b/sdk/eventgrid/eventgrid/src/cadl-generated/api/EventGridContext.ts @@ -1,24 +1,22 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT license. +import { ClientOptions } from "@azure-rest/core-client"; import { EventGridContext } from "../rest/index"; -import { AzureKeyCredential } from "@azure/core-auth"; +import { TokenCredential } from "@azure/core-auth"; import getClient from "../rest/index"; -import { ClientOptions } from "../common/interfaces"; + +export interface EventGridClientOptions extends ClientOptions {} export { EventGridContext } from "../rest/index"; /** Azure Messaging EventGrid Client */ export function createEventGrid( endpoint: string, - credential: AzureKeyCredential, - options: ClientOptions = {} + credential: any | TokenCredential, + options: EventGridClientOptions = {} ): EventGridContext { const baseUrl = endpoint; - options.credentials = { - ...options.credentials, - apiKeyHeaderName: "Authorization", - }; const clientContext = getClient(baseUrl, credential, options); return clientContext; } diff --git a/sdk/eventgrid/eventgrid/src/cadl-generated/api/index.ts b/sdk/eventgrid/eventgrid/src/cadl-generated/api/index.ts index cb9056ce218d..b9034938ab98 100644 --- a/sdk/eventgrid/eventgrid/src/cadl-generated/api/index.ts +++ b/sdk/eventgrid/eventgrid/src/cadl-generated/api/index.ts @@ -1,22 +1,7 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT license. -export { createEventGrid, EventGridContext } from "./EventGridContext"; -export { - PublishCloudEventRequest, - CloudEvent, - ReceiveResult, - ReceiveDetails, - BrokerProperties, - AcknowledgeOptions, - AcknowledgeResult, - FailedLockToken, - ReleaseOptions, - ReleaseResult, - RejectOptions, - RejectResult, - PublishResultOutput, -} from "./models"; +export { createEventGrid, EventGridClientOptions, EventGridContext } from "./EventGridContext"; export { publishCloudEvent, publishCloudEvents, @@ -24,10 +9,5 @@ export { acknowledgeCloudEvents, releaseCloudEvents, rejectCloudEvents, - PublishCloudEventOptions, - PublishCloudEventsOptions, - ReceiveCloudEventsOptions, - AcknowledgeCloudEventsOptions, - ReleaseCloudEventsOptions, - RejectCloudEventsOptions, + renewCloudEventLocks, } from "./operations"; diff --git a/sdk/eventgrid/eventgrid/src/cadl-generated/api/operations.ts b/sdk/eventgrid/eventgrid/src/cadl-generated/api/operations.ts index 3f4afe82efd0..14031537f7c4 100644 --- a/sdk/eventgrid/eventgrid/src/cadl-generated/api/operations.ts +++ b/sdk/eventgrid/eventgrid/src/cadl-generated/api/operations.ts @@ -1,34 +1,77 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT license. -import { RequestOptions } from "../common/interfaces"; -import { CloudEvent, EventGridContext as Client, isUnexpected } from "../rest/index"; -import { ReceiveResult, AcknowledgeResult, ReleaseResult, RejectResult } from "./models"; +import { + CloudEvent, + ReceiveResult, + AcknowledgeResult, + ReleaseResult, + RejectResult, + RenewCloudEventLocksResult, +} from "../models/models"; +import { + isUnexpected, + EventGridContext as Client, + AcknowledgeCloudEvents200Response, + AcknowledgeCloudEventsDefaultResponse, + PublishCloudEvent200Response, + PublishCloudEventDefaultResponse, + PublishCloudEvents200Response, + PublishCloudEventsDefaultResponse, + ReceiveCloudEvents200Response, + ReceiveCloudEventsDefaultResponse, + RejectCloudEvents200Response, + RejectCloudEventsDefaultResponse, + ReleaseCloudEvents200Response, + ReleaseCloudEventsDefaultResponse, + RenewCloudEventLocks200Response, + RenewCloudEventLocksDefaultResponse, +} from "../rest/index"; +import { StreamableMethod, operationOptionsToRequestParameters } from "@azure-rest/core-client"; +import { uint8ArrayToString, stringToUint8Array } from "@azure/core-util"; +import { + PublishCloudEventOptions, + PublishCloudEventsOptions, + ReceiveCloudEventsOptions, + AcknowledgeCloudEventsOptions, + ReleaseCloudEventsOptions, + RejectCloudEventsOptions, + RenewCloudEventLocksOptions, +} from "../models/options"; -export interface PublishCloudEventOptions extends RequestOptions { - /** content type */ - contentType?: string; -} - -/** 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. */ -export async function publishCloudEvent( +export function _publishCloudEventSend( context: Client, - event: CloudEvent, + id: string, + source: string, + type: string, + specversion: string, topicName: string, options: PublishCloudEventOptions = { requestOptions: {} } -): Promise> { - const result = await context.path("/topics/{topicName}:publish", topicName).post({ - allowInsecureConnection: options.requestOptions?.allowInsecureConnection, - skipUrlEncoding: options.requestOptions?.skipUrlEncoding, +): StreamableMethod { + return context.path("/topics/{topicName}:publish", topicName).post({ + ...operationOptionsToRequestParameters(options), contentType: (options.contentType as any) ?? "application/cloudevents+json; charset=utf-8", - headers: { ...options.requestOptions?.headers }, - body: { ...event }, + body: { + id: id, + source: source, + data: options?.data, + data_base64: + options?.dataBase64 !== undefined + ? uint8ArrayToString(options?.dataBase64, "base64") + : undefined, + type: type, + time: options?.time?.toISOString(), + specversion: specversion, + dataschema: options?.dataschema, + datacontenttype: options?.datacontenttype, + subject: options?.subject, + }, }); +} - if (typeof options.requestOptions?.onResponse === "function") { - options.requestOptions.onResponse(result); - } - +export async function _publishCloudEventDeserialize( + result: PublishCloudEvent200Response | PublishCloudEventDefaultResponse +): Promise> { if (isUnexpected(result)) { throw result.body; } @@ -36,31 +79,59 @@ export async function publishCloudEvent( return result.body; } -export interface PublishCloudEventsOptions extends RequestOptions { - /** content type */ - contentType?: string; +/** 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. */ +export async function publishCloudEvent( + context: Client, + id: string, + source: string, + type: string, + specversion: string, + topicName: string, + options: PublishCloudEventOptions = { requestOptions: {} } +): Promise> { + const result = await _publishCloudEventSend( + context, + id, + source, + type, + specversion, + topicName, + options + ); + return _publishCloudEventDeserialize(result); } -/** 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. */ -export async function publishCloudEvents( +export function _publishCloudEventsSend( context: Client, events: CloudEvent[], topicName: string, options: PublishCloudEventsOptions = { requestOptions: {} } -): Promise> { - const result = await context.path("/topics/{topicName}:publish", topicName).post({ - allowInsecureConnection: options.requestOptions?.allowInsecureConnection, - skipUrlEncoding: options.requestOptions?.skipUrlEncoding, +): StreamableMethod { + return context.path("/topics/{topicName}:publish", topicName).post({ + ...operationOptionsToRequestParameters(options), contentType: (options.contentType as any) ?? "application/cloudevents-batch+json; charset=utf-8", - headers: { ...options.requestOptions?.headers }, - body: events, + body: (events ?? []).map((p) => { + return { + id: p["id"], + source: p["source"], + data: p["data"], + data_base64: + p["dataBase64"] !== undefined ? uint8ArrayToString(p["dataBase64"], "base64") : undefined, + type: p["type"], + time: p["time"]?.toISOString(), + specversion: p["specversion"], + dataschema: p["dataschema"], + datacontenttype: p["datacontenttype"], + subject: p["subject"], + }; + }), }); +} - if (typeof options.requestOptions?.onResponse === "function") { - options.requestOptions.onResponse(result); - } - +export async function _publishCloudEventsDeserialize( + result: PublishCloudEvents200Response | PublishCloudEventsDefaultResponse +): Promise> { if (isUnexpected(result)) { throw result.body; } @@ -68,40 +139,41 @@ export async function publishCloudEvents( return result.body; } -export interface ReceiveCloudEventsOptions extends RequestOptions { - /** Max Events count to be received. Minimum value is 1, while maximum value is 100 events. If not specified, the default value is 1. */ - maxEvents?: number; - /** Max wait time value for receive operation in Seconds. It is the time in seconds that the server approximately waits for the availability of an event and responds to the request. If an event is available, the broker responds immediately to the client. Minimum value is 10 seconds, while maximum value is 120 seconds. If not specified, the default value is 60 seconds. */ - maxWaitTime?: number; +/** 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. */ +export async function publishCloudEvents( + context: Client, + events: CloudEvent[], + topicName: string, + options: PublishCloudEventsOptions = { requestOptions: {} } +): Promise> { + const result = await _publishCloudEventsSend(context, events, topicName, options); + return _publishCloudEventsDeserialize(result); } -/** Receive Batch of Cloud Events from the Event Subscription. */ -export async function receiveCloudEvents( +export function _receiveCloudEventsSend( context: Client, topicName: string, eventSubscriptionName: string, options: ReceiveCloudEventsOptions = { requestOptions: {} } -): Promise> { - const result = await context +): StreamableMethod { + return context .path( "/topics/{topicName}/eventsubscriptions/{eventSubscriptionName}:receive", topicName, eventSubscriptionName ) .post({ - allowInsecureConnection: options.requestOptions?.allowInsecureConnection, - skipUrlEncoding: options.requestOptions?.skipUrlEncoding, - headers: { ...options.requestOptions?.headers }, + ...operationOptionsToRequestParameters(options), queryParameters: { - ...(options.maxEvents && { maxEvents: options.maxEvents }), - ...(options.maxWaitTime && { maxWaitTime: options.maxWaitTime }), + maxEvents: options?.maxEvents, + maxWaitTime: options?.maxWaitTime, }, }); +} - if (typeof options.requestOptions?.onResponse === "function") { - options.requestOptions.onResponse(result); - } - +export async function _receiveCloudEventsDeserialize( + result: ReceiveCloudEvents200Response | ReceiveCloudEventsDefaultResponse +): Promise> { if (isUnexpected(result)) { throw result.body; } @@ -116,9 +188,12 @@ export async function receiveCloudEvents( id: p.event["id"], source: p.event["source"], data: p.event["data"], - dataBase64: p.event["data_base64"], + dataBase64: + typeof p.event["data_base64"] === "string" + ? stringToUint8Array(p.event["data_base64"], "base64") + : p.event["data_base64"], type: p.event["type"], - time: new Date(p.event["time"] ?? ""), + time: p.event["time"] !== undefined ? new Date(p.event["time"]) : undefined, specversion: p.event["specversion"], dataschema: p.event["dataschema"], datacontenttype: p.event["datacontenttype"], @@ -128,37 +203,39 @@ export async function receiveCloudEvents( }; } -export interface AcknowledgeCloudEventsOptions extends RequestOptions { - /** content type */ - contentType?: string; +/** Receive Batch of Cloud Events from the Event Subscription. */ +export async function receiveCloudEvents( + context: Client, + topicName: string, + eventSubscriptionName: string, + options: ReceiveCloudEventsOptions = { requestOptions: {} } +): Promise> { + const result = await _receiveCloudEventsSend(context, topicName, eventSubscriptionName, options); + return _receiveCloudEventsDeserialize(result); } -/** Acknowledge batch of Cloud Events. The server responds with an HTTP 200 status code if at least one event is successfully acknowledged. The response body will include the set of successfully acknowledged lockTokens, along with other failed lockTokens with their corresponding error information. Successfully acknowledged events will no longer be available to any consumer. */ -export async function acknowledgeCloudEvents( +export function _acknowledgeCloudEventsSend( context: Client, lockTokens: string[], topicName: string, eventSubscriptionName: string, options: AcknowledgeCloudEventsOptions = { requestOptions: {} } -): Promise { - const result = await context +): StreamableMethod { + return context .path( "/topics/{topicName}/eventsubscriptions/{eventSubscriptionName}:acknowledge", topicName, eventSubscriptionName ) .post({ - allowInsecureConnection: options.requestOptions?.allowInsecureConnection, - skipUrlEncoding: options.requestOptions?.skipUrlEncoding, - contentType: (options.contentType as any) ?? "application/json; charset=utf-8", - headers: { ...options.requestOptions?.headers }, + ...operationOptionsToRequestParameters(options), body: { lockTokens: lockTokens }, }); +} - if (typeof options.requestOptions?.onResponse === "function") { - options.requestOptions.onResponse(result); - } - +export async function _acknowledgeCloudEventsDeserialize( + result: AcknowledgeCloudEvents200Response | AcknowledgeCloudEventsDefaultResponse +): Promise { if (isUnexpected(result)) { throw result.body; } @@ -166,44 +243,55 @@ export async function acknowledgeCloudEvents( return { failedLockTokens: (result.body["failedLockTokens"] ?? []).map((p) => ({ lockToken: p["lockToken"], - errorCode: p["errorCode"], - errorDescription: p["errorDescription"], + error: p.error, })), succeededLockTokens: result.body["succeededLockTokens"], }; } -export interface ReleaseCloudEventsOptions extends RequestOptions { - /** content type */ - contentType?: string; +/** Acknowledge batch of Cloud Events. The server responds with an HTTP 200 status code if the request is successfully accepted. The response body will include the set of successfully acknowledged lockTokens, along with other failed lockTokens with their corresponding error information. Successfully acknowledged events will no longer be available to any consumer. */ +export async function acknowledgeCloudEvents( + context: Client, + lockTokens: string[], + topicName: string, + eventSubscriptionName: string, + options: AcknowledgeCloudEventsOptions = { requestOptions: {} } +): Promise { + const result = await _acknowledgeCloudEventsSend( + context, + lockTokens, + topicName, + eventSubscriptionName, + options + ); + return _acknowledgeCloudEventsDeserialize(result); } -/** Release batch of Cloud Events. The server responds with an HTTP 200 status code if at least one event is successfully released. The response body will include the set of successfully released lockTokens, along with other failed lockTokens with their corresponding error information. */ -export async function releaseCloudEvents( +export function _releaseCloudEventsSend( context: Client, lockTokens: string[], topicName: string, eventSubscriptionName: string, options: ReleaseCloudEventsOptions = { requestOptions: {} } -): Promise { - const result = await context +): StreamableMethod { + return context .path( "/topics/{topicName}/eventsubscriptions/{eventSubscriptionName}:release", topicName, eventSubscriptionName ) .post({ - allowInsecureConnection: options.requestOptions?.allowInsecureConnection, - skipUrlEncoding: options.requestOptions?.skipUrlEncoding, - contentType: (options.contentType as any) ?? "application/json; charset=utf-8", - headers: { ...options.requestOptions?.headers }, + ...operationOptionsToRequestParameters(options), + queryParameters: { + releaseDelayInSeconds: options?.releaseDelayInSeconds, + }, body: { lockTokens: lockTokens }, }); +} - if (typeof options.requestOptions?.onResponse === "function") { - options.requestOptions.onResponse(result); - } - +export async function _releaseCloudEventsDeserialize( + result: ReleaseCloudEvents200Response | ReleaseCloudEventsDefaultResponse +): Promise { if (isUnexpected(result)) { throw result.body; } @@ -211,44 +299,105 @@ export async function releaseCloudEvents( return { failedLockTokens: (result.body["failedLockTokens"] ?? []).map((p) => ({ lockToken: p["lockToken"], - errorCode: p["errorCode"], - errorDescription: p["errorDescription"], + error: p.error, })), succeededLockTokens: result.body["succeededLockTokens"], }; } -export interface RejectCloudEventsOptions extends RequestOptions { - /** content type */ - contentType?: string; +/** Release batch of Cloud Events. The server responds with an HTTP 200 status code if the request is successfully accepted. The response body will include the set of successfully released lockTokens, along with other failed lockTokens with their corresponding error information. */ +export async function releaseCloudEvents( + context: Client, + lockTokens: string[], + topicName: string, + eventSubscriptionName: string, + options: ReleaseCloudEventsOptions = { requestOptions: {} } +): Promise { + const result = await _releaseCloudEventsSend( + context, + lockTokens, + topicName, + eventSubscriptionName, + options + ); + return _releaseCloudEventsDeserialize(result); } -/** Reject batch of Cloud Events. */ -export async function rejectCloudEvents( +export function _rejectCloudEventsSend( context: Client, lockTokens: string[], topicName: string, eventSubscriptionName: string, options: RejectCloudEventsOptions = { requestOptions: {} } -): Promise { - const result = await context +): StreamableMethod { + return context .path( "/topics/{topicName}/eventsubscriptions/{eventSubscriptionName}:reject", topicName, eventSubscriptionName ) .post({ - allowInsecureConnection: options.requestOptions?.allowInsecureConnection, - skipUrlEncoding: options.requestOptions?.skipUrlEncoding, - contentType: (options.contentType as any) ?? "application/json; charset=utf-8", - headers: { ...options.requestOptions?.headers }, + ...operationOptionsToRequestParameters(options), body: { lockTokens: lockTokens }, }); +} - if (typeof options.requestOptions?.onResponse === "function") { - options.requestOptions.onResponse(result); +export async function _rejectCloudEventsDeserialize( + result: RejectCloudEvents200Response | RejectCloudEventsDefaultResponse +): Promise { + if (isUnexpected(result)) { + throw result.body; } + return { + failedLockTokens: (result.body["failedLockTokens"] ?? []).map((p) => ({ + lockToken: p["lockToken"], + error: p.error, + })), + succeededLockTokens: result.body["succeededLockTokens"], + }; +} + +/** Reject batch of Cloud Events. The server responds with an HTTP 200 status code if the request is successfully accepted. The response body will include the set of successfully rejected lockTokens, along with other failed lockTokens with their corresponding error information. */ +export async function rejectCloudEvents( + context: Client, + lockTokens: string[], + topicName: string, + eventSubscriptionName: string, + options: RejectCloudEventsOptions = { requestOptions: {} } +): Promise { + const result = await _rejectCloudEventsSend( + context, + lockTokens, + topicName, + eventSubscriptionName, + options + ); + return _rejectCloudEventsDeserialize(result); +} + +export function _renewCloudEventLocksSend( + context: Client, + lockTokens: string[], + topicName: string, + eventSubscriptionName: string, + options: RenewCloudEventLocksOptions = { requestOptions: {} } +): StreamableMethod { + return context + .path( + "/topics/{topicName}/eventsubscriptions/{eventSubscriptionName}:renewLock", + topicName, + eventSubscriptionName + ) + .post({ + ...operationOptionsToRequestParameters(options), + body: { lockTokens: lockTokens }, + }); +} + +export async function _renewCloudEventLocksDeserialize( + result: RenewCloudEventLocks200Response | RenewCloudEventLocksDefaultResponse +): Promise { if (isUnexpected(result)) { throw result.body; } @@ -256,9 +405,26 @@ export async function rejectCloudEvents( return { failedLockTokens: (result.body["failedLockTokens"] ?? []).map((p) => ({ lockToken: p["lockToken"], - errorCode: p["errorCode"], - errorDescription: p["errorDescription"], + error: p.error, })), succeededLockTokens: result.body["succeededLockTokens"], }; } + +/** Renew lock for batch of Cloud Events. The server responds with an HTTP 200 status code if the request is successfully accepted. The response body will include the set of successfully renewed lockTokens, along with other failed lockTokens with their corresponding error information. */ +export async function renewCloudEventLocks( + context: Client, + lockTokens: string[], + topicName: string, + eventSubscriptionName: string, + options: RenewCloudEventLocksOptions = { requestOptions: {} } +): Promise { + const result = await _renewCloudEventLocksSend( + context, + lockTokens, + topicName, + eventSubscriptionName, + options + ); + return _renewCloudEventLocksDeserialize(result); +} diff --git a/sdk/eventgrid/eventgrid/src/cadl-generated/common/interfaces.ts b/sdk/eventgrid/eventgrid/src/cadl-generated/common/interfaces.ts deleted file mode 100644 index dd8708b1470d..000000000000 --- a/sdk/eventgrid/eventgrid/src/cadl-generated/common/interfaces.ts +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT license. - -import { ClientOptions as RestClientOptions } from "@azure-rest/core-client"; -import { RawHttpHeadersInput } from "@azure/core-rest-pipeline"; -import { HttpResponse } from "@azure-rest/core-client"; - -export interface ClientOptions extends RestClientOptions {} -export interface RequestOptions { - requestOptions?: { - /** - * Headers to send along with the request - */ - headers?: RawHttpHeadersInput; - /** Set to true if the request is sent over HTTP instead of HTTPS */ - allowInsecureConnection?: boolean; - /** Set to true if you want to skip encoding the path parameters */ - skipUrlEncoding?: boolean; - /** - * Callback to access the raw response object when the response is received - */ - onResponse?: (response: HttpResponse) => void; - }; -} diff --git a/sdk/eventgrid/eventgrid/src/cadl-generated/index.ts b/sdk/eventgrid/eventgrid/src/cadl-generated/index.ts index 6ac092e9d54b..28af84df81ec 100644 --- a/sdk/eventgrid/eventgrid/src/cadl-generated/index.ts +++ b/sdk/eventgrid/eventgrid/src/cadl-generated/index.ts @@ -1,27 +1,23 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT license. +export { EventGridClient, EventGridClientOptions } from "./EventGridClient"; export { - PublishCloudEventRequest, CloudEvent, ReceiveResult, ReceiveDetails, BrokerProperties, - AcknowledgeOptions, AcknowledgeResult, FailedLockToken, - ReleaseOptions, ReleaseResult, - RejectOptions, RejectResult, -} from "./api/models"; -export { + RenewCloudEventLocksResult, + ReleaseDelay, PublishCloudEventOptions, PublishCloudEventsOptions, ReceiveCloudEventsOptions, AcknowledgeCloudEventsOptions, ReleaseCloudEventsOptions, RejectCloudEventsOptions, -} from "./api/operations"; -export { EventGridClient } from "./EventGridClient"; -export { ClientOptions, RequestOptions } from "./common/interfaces"; + RenewCloudEventLocksOptions, +} from "./models/index"; diff --git a/sdk/eventgrid/eventgrid/src/cadl-generated/logger.ts b/sdk/eventgrid/eventgrid/src/cadl-generated/logger.ts index 48e813cdbd89..3de6ca96bbbc 100644 --- a/sdk/eventgrid/eventgrid/src/cadl-generated/logger.ts +++ b/sdk/eventgrid/eventgrid/src/cadl-generated/logger.ts @@ -2,4 +2,4 @@ // Licensed under the MIT license. import { createClientLogger } from "@azure/logger"; -export const logger = createClientLogger("event-grid-modular"); +export const logger = createClientLogger("eventgrid"); diff --git a/sdk/eventgrid/eventgrid/src/cadl-generated/models/index.ts b/sdk/eventgrid/eventgrid/src/cadl-generated/models/index.ts new file mode 100644 index 000000000000..fa953235c0ac --- /dev/null +++ b/sdk/eventgrid/eventgrid/src/cadl-generated/models/index.ts @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. + +export { + CloudEvent, + ReceiveResult, + ReceiveDetails, + BrokerProperties, + AcknowledgeResult, + FailedLockToken, + ReleaseResult, + RejectResult, + RenewCloudEventLocksResult, + ReleaseDelay, +} from "./models"; +export { + PublishCloudEventOptions, + PublishCloudEventsOptions, + ReceiveCloudEventsOptions, + AcknowledgeCloudEventsOptions, + ReleaseCloudEventsOptions, + RejectCloudEventsOptions, + RenewCloudEventLocksOptions, +} from "./options"; diff --git a/sdk/eventgrid/eventgrid/src/cadl-generated/api/models.ts b/sdk/eventgrid/eventgrid/src/cadl-generated/models/models.ts similarity index 54% rename from sdk/eventgrid/eventgrid/src/cadl-generated/api/models.ts rename to sdk/eventgrid/eventgrid/src/cadl-generated/models/models.ts index 85d99747cfe0..613e49d7c1ff 100644 --- a/sdk/eventgrid/eventgrid/src/cadl-generated/api/models.ts +++ b/sdk/eventgrid/eventgrid/src/cadl-generated/models/models.ts @@ -1,12 +1,8 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT license. -import { CloudEvent as CloudEventV1 } from "../../models"; -/** */ -export interface PublishCloudEventRequest { - /** */ - event: CloudEventV1; -} +import { CloudEvent as CloudEventV1 } from "../../models"; +import { ErrorModel } from "@azure-rest/core-client"; /** Properties of an event published to an Azure Messaging EventGrid Namespace topic using the CloudEvent 1.0 Schema. */ export interface CloudEvent { @@ -17,7 +13,7 @@ export interface CloudEvent { /** Event data specific to the event type. */ data?: any; /** Event data specific to the event type, encoded as a base64 string. */ - dataBase64?: string; + dataBase64?: Uint8Array; /** Type of event related to the originating occurrence. */ type: string; /** The time (in UTC) the event was generated, in RFC3339 format. */ @@ -32,9 +28,6 @@ export interface CloudEvent { subject?: string; } -/** The result of the Publish operation. */ -export interface PublishResultOutput {} - /** Details of the Receive operation response. */ export interface ReceiveResult { /** Array of receive responses, one per cloud event. */ @@ -51,60 +44,52 @@ export interface ReceiveDetails { /** Properties of the Event Broker operation. */ export interface BrokerProperties { - /** The token used to lock the event. */ + /** The token of the lock on the event. */ lockToken: string; /** The attempt count for delivering the event. */ deliveryCount: number; } -/** Array of lock token strings for the corresponding received Cloud Events to be acknowledged. */ -export interface AcknowledgeOptions { - /** String array of lock tokens. */ - lockTokens: string[]; -} - /** The result of the Acknowledge operation. */ export interface AcknowledgeResult { - /** Array of LockToken values for failed cloud events. Each LockToken includes the lock token value along with the related error information (namely, the error code and description). */ + /** Array of FailedLockToken for failed cloud events. Each FailedLockToken includes the lock token along with the related error information (namely, the error code and description). */ failedLockTokens: FailedLockToken[]; - /** Array of lock tokens values for the successfully acknowledged cloud events. */ + /** Array of lock tokens for the successfully acknowledged cloud events. */ succeededLockTokens: string[]; } /** Failed LockToken information. */ export interface FailedLockToken { - /** LockToken value */ + /** The lock token of an entry in the request. */ lockToken: string; - /** Error code related to the token. Example of such error codes are BadToken: which indicates the Token is not formatted correctly, TokenLost: which indicates that token is not found, and InternalServerError: For any internal server errors. */ - errorCode: string; - /** Description of the token error. */ - errorDescription: string; -} - -/** Array of lock token strings for the corresponding received Cloud Events to be released. */ -export interface ReleaseOptions { - /** String array of lock tokens. */ - lockTokens: string[]; + /** Error information of the failed operation result for the lock token in the request. */ + error: ErrorModel; } /** The result of the Release operation. */ export interface ReleaseResult { - /** Array of LockToken values for failed cloud events. Each LockToken includes the lock token value along with the related error information (namely, the error code and description). */ + /** Array of FailedLockToken for failed cloud events. Each FailedLockToken includes the lock token along with the related error information (namely, the error code and description). */ failedLockTokens: FailedLockToken[]; - /** Array of lock tokens values for the successfully released cloud events. */ + /** Array of lock tokens for the successfully released cloud events. */ succeededLockTokens: string[]; } -/** Array of lock token strings for the corresponding received Cloud Events to be rejected. */ -export interface RejectOptions { - /** String array of lock tokens. */ - lockTokens: string[]; -} - /** The result of the Reject operation. */ export interface RejectResult { - /** Array of LockToken values for failed cloud events. Each LockToken includes the lock token value along with the related error information (namely, the error code and description). */ + /** Array of FailedLockToken for failed cloud events. Each FailedLockToken includes the lock token along with the related error information (namely, the error code and description). */ + failedLockTokens: FailedLockToken[]; + /** Array of lock tokens for the successfully rejected cloud events. */ + succeededLockTokens: string[]; +} + +/** The result of the RenewLock operation. */ +export interface RenewCloudEventLocksResult { + /** Array of FailedLockToken for failed cloud events. Each FailedLockToken includes the lock token along with the related error information (namely, the error code and description). */ failedLockTokens: FailedLockToken[]; - /** Array of lock tokens values for the successfully rejected cloud events. */ + /** Array of lock tokens for the successfully renewed locks. */ succeededLockTokens: string[]; } + +/** Supported delays for release operation. */ +/** "0", "10", "60", "600", "3600" */ +export type ReleaseDelay = string; diff --git a/sdk/eventgrid/eventgrid/src/cadl-generated/models/options.ts b/sdk/eventgrid/eventgrid/src/cadl-generated/models/options.ts new file mode 100644 index 000000000000..70f6784d5189 --- /dev/null +++ b/sdk/eventgrid/eventgrid/src/cadl-generated/models/options.ts @@ -0,0 +1,45 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. + +import { OperationOptions } from "@azure-rest/core-client"; +import { ReleaseDelay } from "./models"; + +export interface PublishCloudEventOptions extends OperationOptions { + /** Event data specific to the event type. */ + data?: any; + /** Event data specific to the event type, encoded as a base64 string. */ + dataBase64?: Uint8Array; + /** The time (in UTC) the event was generated, in RFC3339 format. */ + time?: Date; + /** Identifies the schema that data adheres to. */ + dataschema?: string; + /** Content type of data value. */ + datacontenttype?: string; + /** This describes the subject of the event in the context of the event producer (identified by source). */ + subject?: string; + /** content type */ + contentType?: string; +} + +export interface PublishCloudEventsOptions extends OperationOptions { + /** content type */ + contentType?: string; +} + +export interface ReceiveCloudEventsOptions extends OperationOptions { + /** Max Events count to be received. Minimum value is 1, while maximum value is 100 events. If not specified, the default value is 1. */ + maxEvents?: number; + /** Max wait time value for receive operation in Seconds. It is the time in seconds that the server approximately waits for the availability of an event and responds to the request. If an event is available, the broker responds immediately to the client. Minimum value is 10 seconds, while maximum value is 120 seconds. If not specified, the default value is 60 seconds. */ + maxWaitTime?: number; +} + +export interface AcknowledgeCloudEventsOptions extends OperationOptions {} + +export interface ReleaseCloudEventsOptions extends OperationOptions { + /** Release cloud events with the specified delay in seconds. */ + releaseDelayInSeconds?: ReleaseDelay; +} + +export interface RejectCloudEventsOptions extends OperationOptions {} + +export interface RenewCloudEventLocksOptions extends OperationOptions {} diff --git a/sdk/eventgrid/eventgrid/src/cadl-generated/rest/clientDefinitions.ts b/sdk/eventgrid/eventgrid/src/cadl-generated/rest/clientDefinitions.ts index 27f52882b8a1..616262a9284d 100644 --- a/sdk/eventgrid/eventgrid/src/cadl-generated/rest/clientDefinitions.ts +++ b/sdk/eventgrid/eventgrid/src/cadl-generated/rest/clientDefinitions.ts @@ -8,6 +8,7 @@ import { AcknowledgeCloudEventsParameters, ReleaseCloudEventsParameters, RejectCloudEventsParameters, + RenewCloudEventLocksParameters, } from "./parameters"; import { PublishCloudEvent200Response, @@ -22,6 +23,8 @@ import { ReleaseCloudEventsDefaultResponse, RejectCloudEvents200Response, RejectCloudEventsDefaultResponse, + RenewCloudEventLocks200Response, + RenewCloudEventLocksDefaultResponse, } from "./responses"; import { Client, StreamableMethod } from "@azure-rest/core-client"; @@ -44,26 +47,33 @@ export interface ReceiveCloudEvents { } export interface AcknowledgeCloudEvents { - /** Acknowledge batch of Cloud Events. The server responds with an HTTP 200 status code if at least one event is successfully acknowledged. The response body will include the set of successfully acknowledged lockTokens, along with other failed lockTokens with their corresponding error information. Successfully acknowledged events will no longer be available to any consumer. */ + /** Acknowledge batch of Cloud Events. The server responds with an HTTP 200 status code if the request is successfully accepted. The response body will include the set of successfully acknowledged lockTokens, along with other failed lockTokens with their corresponding error information. Successfully acknowledged events will no longer be available to any consumer. */ post( options: AcknowledgeCloudEventsParameters ): StreamableMethod; } export interface ReleaseCloudEvents { - /** Release batch of Cloud Events. The server responds with an HTTP 200 status code if at least one event is successfully released. The response body will include the set of successfully released lockTokens, along with other failed lockTokens with their corresponding error information. */ + /** Release batch of Cloud Events. The server responds with an HTTP 200 status code if the request is successfully accepted. The response body will include the set of successfully released lockTokens, along with other failed lockTokens with their corresponding error information. */ post( options: ReleaseCloudEventsParameters ): StreamableMethod; } export interface RejectCloudEvents { - /** Reject batch of Cloud Events. */ + /** Reject batch of Cloud Events. The server responds with an HTTP 200 status code if the request is successfully accepted. The response body will include the set of successfully rejected lockTokens, along with other failed lockTokens with their corresponding error information. */ post( options: RejectCloudEventsParameters ): StreamableMethod; } +export interface RenewCloudEventLocks { + /** Renew lock for batch of Cloud Events. The server responds with an HTTP 200 status code if the request is successfully accepted. The response body will include the set of successfully renewed lockTokens, along with other failed lockTokens with their corresponding error information. */ + post( + options: RenewCloudEventLocksParameters + ): StreamableMethod; +} + export interface Routes { /** Resource for '/topics/\{topicName\}:publish' has methods for the following verbs: post */ (path: "/topics/{topicName}:publish", topicName: string): PublishCloudEvent; @@ -91,6 +101,12 @@ export interface Routes { topicName: string, eventSubscriptionName: string ): RejectCloudEvents; + /** Resource for '/topics/\{topicName\}/eventsubscriptions/\{eventSubscriptionName\}:renewLock' has methods for the following verbs: post */ + ( + path: "/topics/{topicName}/eventsubscriptions/{eventSubscriptionName}:renewLock", + topicName: string, + eventSubscriptionName: string + ): RenewCloudEventLocks; } export type EventGridContext = Client & { diff --git a/sdk/eventgrid/eventgrid/src/cadl-generated/rest/eventGridClient.ts b/sdk/eventgrid/eventgrid/src/cadl-generated/rest/eventGridClient.ts index 881e2e169204..11284ffeb9a9 100644 --- a/sdk/eventgrid/eventgrid/src/cadl-generated/rest/eventGridClient.ts +++ b/sdk/eventgrid/eventgrid/src/cadl-generated/rest/eventGridClient.ts @@ -9,8 +9,8 @@ import { EventGridContext } from "./clientDefinitions"; /** * Initialize a new instance of `EventGridContext` * @param endpoint - The host name of the namespace, e.g. namespaceName1.westus-1.eventgrid.azure.net - * @param credentials - Uniquely identify client credential - * @param options - optional parameters + * @param credentials - uniquely identify client credential + * @param options - the parameter for all optional parameters */ export default function createClient( endpoint: string, @@ -18,15 +18,16 @@ export default function createClient( options: ClientOptions = {} ): EventGridContext { const baseUrl = options.baseUrl ?? `${endpoint}`; - options.apiVersion = options.apiVersion ?? "2023-06-01-preview"; + options.apiVersion = options.apiVersion ?? "2023-10-01-preview"; options = { ...options, credentials: { + scopes: options.credentials?.scopes ?? ["https://eventgrid.azure.net/.default"], apiKeyHeaderName: "Authorization", }, }; - const userAgentInfo = `azsdk-js-event-grid-modular-rest/1.0.0-beta.1`; + const userAgentInfo = `azsdk-js-eventgrid-rest/5.1.0-beta.1`; const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix ? `${options.userAgentOptions.userAgentPrefix} ${userAgentInfo}` @@ -43,5 +44,12 @@ export default function createClient( const client = getClient(baseUrl, credentials, options) as EventGridContext; + client.pipeline.addPolicy({ + name: "customKeyCredentialPolicy", + async sendRequest(request, next) { + request.headers.set("Authorization", "SharedAccessKey " + credentials.key); + return next(request); + }, + }); return client; } diff --git a/sdk/eventgrid/eventgrid/src/cadl-generated/rest/isUnexpected.ts b/sdk/eventgrid/eventgrid/src/cadl-generated/rest/isUnexpected.ts index 6d461075469c..bd1c99540a58 100644 --- a/sdk/eventgrid/eventgrid/src/cadl-generated/rest/isUnexpected.ts +++ b/sdk/eventgrid/eventgrid/src/cadl-generated/rest/isUnexpected.ts @@ -12,6 +12,8 @@ import { ReleaseCloudEventsDefaultResponse, RejectCloudEvents200Response, RejectCloudEventsDefaultResponse, + RenewCloudEventLocks200Response, + RenewCloudEventLocksDefaultResponse, } from "./responses"; const responseMap: Record = { @@ -20,6 +22,7 @@ const responseMap: Record = { "POST /topics/{topicName}/eventsubscriptions/{eventSubscriptionName}:acknowledge": ["200"], "POST /topics/{topicName}/eventsubscriptions/{eventSubscriptionName}:release": ["200"], "POST /topics/{topicName}/eventsubscriptions/{eventSubscriptionName}:reject": ["200"], + "POST /topics/{topicName}/eventsubscriptions/{eventSubscriptionName}:renewLock": ["200"], }; export function isUnexpected( @@ -37,6 +40,9 @@ export function isUnexpected( export function isUnexpected( response: RejectCloudEvents200Response | RejectCloudEventsDefaultResponse ): response is RejectCloudEventsDefaultResponse; +export function isUnexpected( + response: RenewCloudEventLocks200Response | RenewCloudEventLocksDefaultResponse +): response is RenewCloudEventLocksDefaultResponse; export function isUnexpected( response: | PublishCloudEvent200Response @@ -49,12 +55,15 @@ export function isUnexpected( | ReleaseCloudEventsDefaultResponse | RejectCloudEvents200Response | RejectCloudEventsDefaultResponse + | RenewCloudEventLocks200Response + | RenewCloudEventLocksDefaultResponse ): response is | PublishCloudEventDefaultResponse | ReceiveCloudEventsDefaultResponse | AcknowledgeCloudEventsDefaultResponse | ReleaseCloudEventsDefaultResponse - | RejectCloudEventsDefaultResponse { + | RejectCloudEventsDefaultResponse + | RenewCloudEventLocksDefaultResponse { const lroOriginal = response.headers["x-ms-original-url"]; const url = new URL(lroOriginal ?? response.request.url); const method = response.request.method; diff --git a/sdk/eventgrid/eventgrid/src/cadl-generated/rest/models.ts b/sdk/eventgrid/eventgrid/src/cadl-generated/rest/models.ts index 5a96f8c7e4bb..2f257856c9b8 100644 --- a/sdk/eventgrid/eventgrid/src/cadl-generated/rest/models.ts +++ b/sdk/eventgrid/eventgrid/src/cadl-generated/rest/models.ts @@ -2,7 +2,7 @@ // Licensed under the MIT license. /** Properties of an event published to an Azure Messaging EventGrid Namespace topic using the CloudEvent 1.0 Schema. */ -export interface CloudEvent extends Record { +export interface CloudEvent { /** An identifier for the event. The combination of id and source must be unique for each distinct event. */ id: string; /** Identifies the context in which an event happened. The combination of id and source must be unique for each distinct event. */ @@ -10,7 +10,7 @@ export interface CloudEvent extends Record { /** Event data specific to the event type. */ data?: unknown; /** Event data specific to the event type, encoded as a base64 string. */ - data_base64?: Uint8Array; + data_base64?: string; /** Type of event related to the originating occurrence. */ type: string; /** The time (in UTC) the event was generated, in RFC3339 format. */ @@ -25,20 +25,26 @@ export interface CloudEvent extends Record { subject?: string; } -/** Array of lock token strings for the corresponding received Cloud Events to be acknowledged. */ +/** Array of lock tokens for the corresponding received Cloud Events to be acknowledged. */ export interface AcknowledgeOptions { - /** String array of lock tokens. */ + /** Array of lock tokens. */ lockTokens: string[]; } -/** Array of lock token strings for the corresponding received Cloud Events to be released. */ +/** Array of lock tokens for the corresponding received Cloud Events to be released. */ export interface ReleaseOptions { - /** String array of lock tokens. */ + /** Array of lock tokens. */ lockTokens: string[]; } -/** Array of lock token strings for the corresponding received Cloud Events to be rejected. */ +/** Array of lock tokens for the corresponding received Cloud Events to be rejected. */ export interface RejectOptions { - /** String array of lock tokens. */ + /** Array of lock tokens. */ + lockTokens: string[]; +} + +/** Array of lock tokens for the corresponding received Cloud Events to be renewed. */ +export interface RenewLockOptions { + /** Array of lock tokens. */ lockTokens: string[]; } diff --git a/sdk/eventgrid/eventgrid/src/cadl-generated/rest/outputModels.ts b/sdk/eventgrid/eventgrid/src/cadl-generated/rest/outputModels.ts index 389f3257364c..727b5f5587a3 100644 --- a/sdk/eventgrid/eventgrid/src/cadl-generated/rest/outputModels.ts +++ b/sdk/eventgrid/eventgrid/src/cadl-generated/rest/outputModels.ts @@ -1,8 +1,10 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT license. +import { ErrorModel } from "@azure-rest/core-client"; + /** Properties of an event published to an Azure Messaging EventGrid Namespace topic using the CloudEvent 1.0 Schema. */ -export interface CloudEventOutput extends Record { +export interface CloudEventOutput { /** An identifier for the event. The combination of id and source must be unique for each distinct event. */ id: string; /** Identifies the context in which an event happened. The combination of id and source must be unique for each distinct event. */ @@ -44,7 +46,7 @@ export interface ReceiveDetailsOutput { /** Properties of the Event Broker operation. */ export interface BrokerPropertiesOutput { - /** The token used to lock the event. */ + /** The token of the lock on the event. */ lockToken: string; /** The attempt count for delivering the event. */ deliveryCount: number; @@ -52,34 +54,40 @@ export interface BrokerPropertiesOutput { /** The result of the Acknowledge operation. */ export interface AcknowledgeResultOutput { - /** Array of LockToken values for failed cloud events. Each LockToken includes the lock token value along with the related error information (namely, the error code and description). */ + /** Array of FailedLockToken for failed cloud events. Each FailedLockToken includes the lock token along with the related error information (namely, the error code and description). */ failedLockTokens: Array; - /** Array of lock tokens values for the successfully acknowledged cloud events. */ + /** Array of lock tokens for the successfully acknowledged cloud events. */ succeededLockTokens: string[]; } /** Failed LockToken information. */ export interface FailedLockTokenOutput { - /** LockToken value */ + /** The lock token of an entry in the request. */ lockToken: string; - /** Error code related to the token. Example of such error codes are BadToken: which indicates the Token is not formatted correctly, TokenLost: which indicates that token is not found, and InternalServerError: For any internal server errors. */ - errorCode: string; - /** Description of the token error. */ - errorDescription: string; + /** Error information of the failed operation result for the lock token in the request. */ + error: ErrorModel; } /** The result of the Release operation. */ export interface ReleaseResultOutput { - /** Array of LockToken values for failed cloud events. Each LockToken includes the lock token value along with the related error information (namely, the error code and description). */ + /** Array of FailedLockToken for failed cloud events. Each FailedLockToken includes the lock token along with the related error information (namely, the error code and description). */ failedLockTokens: Array; - /** Array of lock tokens values for the successfully released cloud events. */ + /** Array of lock tokens for the successfully released cloud events. */ succeededLockTokens: string[]; } /** The result of the Reject operation. */ export interface RejectResultOutput { - /** Array of LockToken values for failed cloud events. Each LockToken includes the lock token value along with the related error information (namely, the error code and description). */ + /** Array of FailedLockToken for failed cloud events. Each FailedLockToken includes the lock token along with the related error information (namely, the error code and description). */ + failedLockTokens: Array; + /** Array of lock tokens for the successfully rejected cloud events. */ + succeededLockTokens: string[]; +} + +/** The result of the RenewLock operation. */ +export interface RenewCloudEventLocksResultOutput { + /** Array of FailedLockToken for failed cloud events. Each FailedLockToken includes the lock token along with the related error information (namely, the error code and description). */ failedLockTokens: Array; - /** Array of lock tokens values for the successfully rejected cloud events. */ + /** Array of lock tokens for the successfully renewed locks. */ succeededLockTokens: string[]; } diff --git a/sdk/eventgrid/eventgrid/src/cadl-generated/rest/parameters.ts b/sdk/eventgrid/eventgrid/src/cadl-generated/rest/parameters.ts index 6c84a34cd0d9..df352ed2cd82 100644 --- a/sdk/eventgrid/eventgrid/src/cadl-generated/rest/parameters.ts +++ b/sdk/eventgrid/eventgrid/src/cadl-generated/rest/parameters.ts @@ -2,7 +2,13 @@ // Licensed under the MIT license. import { RequestParameters } from "@azure-rest/core-client"; -import { CloudEvent, AcknowledgeOptions, ReleaseOptions, RejectOptions } from "./models"; +import { + CloudEvent, + AcknowledgeOptions, + ReleaseOptions, + RejectOptions, + RenewLockOptions, +} from "./models"; export interface PublishCloudEventBodyParam { /** Single Cloud Event being published. */ @@ -50,26 +56,27 @@ export interface AcknowledgeCloudEventsBodyParam { body: AcknowledgeOptions; } -export interface AcknowledgeCloudEventsMediaTypesParam { - /** content type */ - contentType: "application/json; charset=utf-8"; -} - -export type AcknowledgeCloudEventsParameters = AcknowledgeCloudEventsMediaTypesParam & - AcknowledgeCloudEventsBodyParam & - RequestParameters; +export type AcknowledgeCloudEventsParameters = AcknowledgeCloudEventsBodyParam & RequestParameters; export interface ReleaseCloudEventsBodyParam { /** ReleaseOptions */ body: ReleaseOptions; } -export interface ReleaseCloudEventsMediaTypesParam { - /** content type */ - contentType: "application/json; charset=utf-8"; +export interface ReleaseCloudEventsQueryParamProperties { + /** + * Release cloud events with the specified delay in seconds. + * + * Possible values: 0, 10, 60, 600, 3600 + */ + releaseDelayInSeconds?: string; } -export type ReleaseCloudEventsParameters = ReleaseCloudEventsMediaTypesParam & +export interface ReleaseCloudEventsQueryParam { + queryParameters?: ReleaseCloudEventsQueryParamProperties; +} + +export type ReleaseCloudEventsParameters = ReleaseCloudEventsQueryParam & ReleaseCloudEventsBodyParam & RequestParameters; @@ -78,11 +85,11 @@ export interface RejectCloudEventsBodyParam { body: RejectOptions; } -export interface RejectCloudEventsMediaTypesParam { - /** content type */ - contentType: "application/json; charset=utf-8"; +export type RejectCloudEventsParameters = RejectCloudEventsBodyParam & RequestParameters; + +export interface RenewCloudEventLocksBodyParam { + /** RenewLockOptions */ + body: RenewLockOptions; } -export type RejectCloudEventsParameters = RejectCloudEventsMediaTypesParam & - RejectCloudEventsBodyParam & - RequestParameters; +export type RenewCloudEventLocksParameters = RenewCloudEventLocksBodyParam & RequestParameters; diff --git a/sdk/eventgrid/eventgrid/src/cadl-generated/rest/responses.ts b/sdk/eventgrid/eventgrid/src/cadl-generated/rest/responses.ts index dab7e6e28062..9b1dcf1164db 100644 --- a/sdk/eventgrid/eventgrid/src/cadl-generated/rest/responses.ts +++ b/sdk/eventgrid/eventgrid/src/cadl-generated/rest/responses.ts @@ -9,6 +9,7 @@ import { AcknowledgeResultOutput, ReleaseResultOutput, RejectResultOutput, + RenewCloudEventLocksResultOutput, } from "./outputModels"; /** The request has succeeded. */ @@ -112,3 +113,20 @@ export interface RejectCloudEventsDefaultResponse extends HttpResponse { body: ErrorResponse; headers: RawHttpHeaders & RejectCloudEventsDefaultHeaders; } + +/** The request has succeeded. */ +export interface RenewCloudEventLocks200Response extends HttpResponse { + status: "200"; + body: RenewCloudEventLocksResultOutput; +} + +export interface RenewCloudEventLocksDefaultHeaders { + /** String error code indicating what went wrong. */ + "x-ms-error-code"?: string; +} + +export interface RenewCloudEventLocksDefaultResponse extends HttpResponse { + status: string; + body: ErrorResponse; + headers: RawHttpHeaders & RenewCloudEventLocksDefaultHeaders; +} diff --git a/sdk/eventgrid/eventgrid/src/eventGridClientV2.ts b/sdk/eventgrid/eventgrid/src/eventGridClientV2.ts index 4fe662ecddc8..fa25a1b01bfb 100644 --- a/sdk/eventgrid/eventgrid/src/eventGridClientV2.ts +++ b/sdk/eventgrid/eventgrid/src/eventGridClientV2.ts @@ -2,24 +2,27 @@ // Licensed under the MIT license. import { AzureKeyCredential } from "@azure/core-auth"; -import { ClientOptions } from "./cadl-generated/common/interfaces"; import { ReceiveResult, AcknowledgeResult, ReleaseResult, RejectResult, - PublishCloudEventOptions, PublishCloudEventsOptions, ReceiveCloudEventsOptions, AcknowledgeCloudEventsOptions, ReleaseCloudEventsOptions, RejectCloudEventsOptions, - PublishResultOutput, -} from "./cadl-generated/api/index"; + RenewCloudEventLocksOptions, + RenewCloudEventLocksResult, +} from "./cadl-generated/models"; import { CloudEvent, cloudEventReservedPropertyNames } from "./models"; import { v4 as uuidv4 } from "uuid"; -import { CloudEvent as CloudEventWireModel } from "./cadl-generated/rest/index"; +import { CloudEvent as CloudEventWireModel } from "./cadl-generated/models/"; import { EventGridClient as EventGridClientGenerated } from "./cadl-generated/EventGridClient"; +import { EventGridClientOptions } from "./cadl-generated/api"; +import { PublishResultOutput } from "./cadl-generated/rest"; +import { PublishCloudEventOptions } from "./models"; +import { publishCloudEventBinaryMode } from "./eventGridV2PublishBinaryMode"; /** * Event Grid Client @@ -28,8 +31,12 @@ export class EventGridClient { private _client: EventGridClientGenerated; /** Azure Messaging EventGrid Client */ - constructor(endpoint: string, credential: AzureKeyCredential, options: ClientOptions = {}) { - credential.update(`SharedAccessKey ${credential.key}`); + constructor( + endpoint: string, + credential: AzureKeyCredential, + options: EventGridClientOptions = {} + ) { + // credential.update(`SharedAccessKey ${credential.key}`); this._client = new EventGridClientGenerated(endpoint, credential, options); } @@ -50,7 +57,46 @@ export class EventGridClient { topicName: string, options: PublishCloudEventOptions = { requestOptions: {} } ): Promise { - return this._client.publishCloudEvent(convertCloudEventToModelType(event), topicName, options); + const cloudEventWireModel: CloudEventWireModel = convertCloudEventToModelType(event); + + if (!options.binaryMode) { + return this._client.publishCloudEvent( + cloudEventWireModel.id, + cloudEventWireModel.source, + cloudEventWireModel.type, + cloudEventWireModel.specversion, + topicName, + { + time: cloudEventWireModel.time, + dataschema: cloudEventWireModel.dataschema, + datacontenttype: cloudEventWireModel.datacontenttype, + subject: cloudEventWireModel.subject, + contentType: options.contentType, + data: cloudEventWireModel.data, + dataBase64: cloudEventWireModel.dataBase64, + ...options, + } + ); + } else { + return publishCloudEventBinaryMode( + this._client.getClient(), + cloudEventWireModel.id, + cloudEventWireModel.source, + cloudEventWireModel.type, + cloudEventWireModel.specversion, + topicName, + { + time: cloudEventWireModel.time, + dataschema: cloudEventWireModel.dataschema, + datacontenttype: cloudEventWireModel.datacontenttype, + subject: cloudEventWireModel.subject, + contentType: options.contentType, + data: cloudEventWireModel.data, + dataBase64: cloudEventWireModel.dataBase64, + ...options, + } + ); + } } /** @@ -156,6 +202,23 @@ export class EventGridClient { ): Promise { return this._client.rejectCloudEvents(lockTokens, topicName, eventSubscriptionName, options); } + + /** + * Renew lock for batch of Cloud Events. + * + * @param lockTokens - Lock Tokens + * @param topicName - Topic Name + * @param eventSubscriptionName - Name of the Event Subscription + * @param options - Options to renew + */ + renewCloudEventLocks( + lockTokens: string[], + topicName: string, + eventSubscriptionName: string, + options: RenewCloudEventLocksOptions = { requestOptions: {} } + ): Promise { + return this._client.renewCloudEventLocks(lockTokens, topicName, eventSubscriptionName, options); + } } export function convertCloudEventToModelType(event: CloudEvent): CloudEventWireModel { @@ -192,9 +255,10 @@ export function convertCloudEventToModelType(event: CloudEvent): CloudEven } converted.datacontenttype = event.datacontenttype; - converted.data_base64 = event.data; + converted.dataBase64 = event.data; } else { - converted.datacontenttype = event.datacontenttype ?? "application/json"; + converted.datacontenttype = + event.datacontenttype ?? "application/cloudevents+json; charset=utf-8"; converted.data = event.data; } diff --git a/sdk/eventgrid/eventgrid/src/eventGridV2PublishBinaryMode.ts b/sdk/eventgrid/eventgrid/src/eventGridV2PublishBinaryMode.ts new file mode 100644 index 000000000000..234c385b7a5a --- /dev/null +++ b/sdk/eventgrid/eventgrid/src/eventGridV2PublishBinaryMode.ts @@ -0,0 +1,108 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. + +import { + isUnexpected, + EventGridContext as Client, + PublishCloudEvent200Response, + PublishCloudEventDefaultResponse, +} from "./cadl-generated/rest/index"; +import { StreamableMethod, operationOptionsToRequestParameters } from "@azure-rest/core-client"; +import { PublishCloudEventOptions } from "./cadl-generated/models/options"; +import { RawHttpHeadersInput } from "@azure/core-rest-pipeline"; +import { Buffer } from "buffer"; + +export async function publishCloudEventBinaryMode( + context: Client, + id: string, + source: string, + type: string, + specversion: string, + topicName: string, + options: PublishCloudEventOptions = { requestOptions: {} } +): Promise> { + const result = await _publishCloudEventSendBinaryMode( + context, + id, + source, + type, + specversion, + topicName, + options + ); + return _publishCloudEventDeserialize(result); +} + +export async function _publishCloudEventDeserialize( + result: PublishCloudEvent200Response | PublishCloudEventDefaultResponse +): Promise> { + if (isUnexpected(result)) { + throw result.body; + } + + return result.body; +} + +export function _publishCloudEventSendBinaryMode( + context: Client, + id: string, + source: string, + type: string, + specversion: string, + topicName: string, + options: PublishCloudEventOptions = { requestOptions: {} } +): StreamableMethod { + const headers: RawHttpHeadersInput = { + "ce-id": id, + "ce-source": source, + "ce-type": type, + "ce-specversion": specversion, + }; + + if (options?.time) { + headers["ce-time"] = options.time.toISOString(); + } + + if (options?.dataschema) { + headers["ce-dataschema"] = options.dataschema; + } + + if (options?.datacontenttype) { + headers["ce-datacontenttype"] = options.datacontenttype; + } + + if (options?.subject) { + headers["ce-subject"] = options.subject; + } + + let data: any; + if (options?.data) { + // If data is already encoded + if (Buffer.isBuffer(options.data)) { + data = options.data; + } else { + throw new Error(`CloudEvent data must be binary when in binary mode.`); + } + } else { + if (options?.dataBase64) { + data = options.dataBase64; + } + } + + return context.path("/topics/{topicName}:publish", topicName).post({ + ...operationOptionsToRequestParameters(options), + contentType: (options.contentType as any) ?? "application/cloudevents+json; charset=utf-8", + headers, + body: { + id: id, + source: source, + data, + type: type, + time: options?.time?.toISOString(), + specversion: specversion, + dataschema: options?.dataschema, + datacontenttype: options?.datacontenttype, + subject: options?.subject, + }, + }); +} diff --git a/sdk/eventgrid/eventgrid/src/generated/generatedClientContext.ts b/sdk/eventgrid/eventgrid/src/generated/generatedClientContext.ts index 044ad70d170e..9803517b5d7e 100644 --- a/sdk/eventgrid/eventgrid/src/generated/generatedClientContext.ts +++ b/sdk/eventgrid/eventgrid/src/generated/generatedClientContext.ts @@ -26,7 +26,7 @@ export class GeneratedClientContext extends coreClient.ServiceClient { requestContentType: "application/json; charset=utf-8" }; - const packageDetails = `azsdk-js-eventgrid/4.13.0-beta.2`; + const packageDetails = `azsdk-js-eventgrid/5.1.0-beta.1`; const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}` diff --git a/sdk/eventgrid/eventgrid/src/index.ts b/sdk/eventgrid/eventgrid/src/index.ts index 5622ba257f20..73742dbd5c10 100644 --- a/sdk/eventgrid/eventgrid/src/index.ts +++ b/sdk/eventgrid/eventgrid/src/index.ts @@ -250,25 +250,26 @@ export { ReceiveResult, ReceiveDetails, BrokerProperties, - AcknowledgeOptions, AcknowledgeResult, FailedLockToken, - ReleaseOptions, ReleaseResult, - RejectOptions, RejectResult, - PublishResultOutput, -} from "./cadl-generated/api/models"; - -export { EventGridClient } from "./eventGridClientV2"; - -export { ClientOptions, RequestOptions } from "./cadl-generated/common/interfaces"; - -export { - PublishCloudEventOptions, PublishCloudEventsOptions, ReceiveCloudEventsOptions, AcknowledgeCloudEventsOptions, ReleaseCloudEventsOptions, RejectCloudEventsOptions, -} from "./cadl-generated/api/operations"; + ReleaseDelay, + RenewCloudEventLocksOptions, + RenewCloudEventLocksResult, +} from "./cadl-generated/models"; + +export { EventGridClient } from "./eventGridClientV2"; + +export { EventGridClientOptions } from "./cadl-generated"; + +export { PublishResultOutput } from "./cadl-generated/rest"; + +export { OperationOptions as OperationRestOptions } from "@azure-rest/core-client"; + +export { PublishCloudEventOptions } from "./models"; diff --git a/sdk/eventgrid/eventgrid/src/models.ts b/sdk/eventgrid/eventgrid/src/models.ts index 9a2d983198ea..23f802affc27 100644 --- a/sdk/eventgrid/eventgrid/src/models.ts +++ b/sdk/eventgrid/eventgrid/src/models.ts @@ -1,6 +1,8 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT license. +import { OperationOptions } from "@azure-rest/core-client"; + /** * The shape of the input for EventGridProducerClient#sendEventGridEvents */ @@ -178,3 +180,11 @@ export const cloudEventReservedPropertyNames = [ * A function which provides custom logic to be used when decoding events. */ export type CustomEventDataDeserializer = (o: any) => Promise; + +export interface PublishCloudEventOptions extends OperationOptions { + /** binary mode */ + binaryMode?: boolean; + + /** content type */ + contentType?: string; +} diff --git a/sdk/eventgrid/eventgrid/src/tracing.ts b/sdk/eventgrid/eventgrid/src/tracing.ts index 0db9baeebb53..8b768e58b4ac 100644 --- a/sdk/eventgrid/eventgrid/src/tracing.ts +++ b/sdk/eventgrid/eventgrid/src/tracing.ts @@ -10,5 +10,5 @@ import { createTracingClient } from "@azure/core-tracing"; export const tracingClient = createTracingClient({ namespace: "Microsoft.Messaging.EventGrid", packageName: "@azure/event-grid", - packageVersion: "4.13.0-beta.2", + packageVersion: "5.1.0-beta.1", }); diff --git a/sdk/eventgrid/eventgrid/swagger/README.md b/sdk/eventgrid/eventgrid/swagger/README.md index 7609f78ad30f..d8665b2c3dd3 100644 --- a/sdk/eventgrid/eventgrid/swagger/README.md +++ b/sdk/eventgrid/eventgrid/swagger/README.md @@ -7,7 +7,7 @@ ```yaml require: "https://github.com/Azure/azure-rest-api-specs/blob/3b6ae2ea162efb468a1de6742615e6c655c06e87/specification/eventgrid/data-plane/readme.md" package-name: "@azure/eventgrid" -package-version: "4.13.0-beta.2" +package-version: "5.1.0-beta.1" title: GeneratedClient description: EventGrid Client generate-metadata: false diff --git a/sdk/eventgrid/eventgrid/test/public/eventGridClientV2.spec.ts b/sdk/eventgrid/eventgrid/test/public/eventGridClientV2.spec.ts index da42bcf51641..0b42140e8b90 100644 --- a/sdk/eventgrid/eventgrid/test/public/eventGridClientV2.spec.ts +++ b/sdk/eventgrid/eventgrid/test/public/eventGridClientV2.spec.ts @@ -9,9 +9,11 @@ import { ApiManagementGatewayCreatedEventData, ReceiveResult, RejectResult, + RenewCloudEventLocksResult, } from "../../src"; import { createRecordedV2Client } from "./utils/recordedClient"; import { expect } from "chai"; +import { Buffer } from "buffer"; /* eslint no-constant-condition: "off" */ async function clearMessages( @@ -45,7 +47,7 @@ describe("Event Grid Client V2", function (this: Suite) { eventSubscripionName = env["EVENT_SUBSCRIPTION_NAME"] ?? "testsubscription1"; topicName = env["TOPIC_NAME"] ?? "testtopic1"; - maxDeliveryCount = env["MAX_DELIVERY_COUNT"] ? parseInt(env["MAX_DELIVERY_COUNT"]) : 5; + maxDeliveryCount = env["MAX_DELIVERY_COUNT"] ? parseInt(env["MAX_DELIVERY_COUNT"]) : 10; await clearMessages(client, topicName, eventSubscripionName); }); @@ -54,128 +56,216 @@ describe("Event Grid Client V2", function (this: Suite) { await recorder.stop(); }); - it("publishes a single cloud event", async () => { - const eventId: string = `singleEventId10001`; - const cloudEvent: CloudEvent = { - type: "example", - source: "https://example.com", - id: recorder.variable("singleEventId", eventId), - time: new Date(recorder.variable("singleEventDate", new Date().toString())), - data: { - resourceUri: "https://dummyurl.com", - }, - }; - // Publish the Cloud Event - await client.publishCloudEvent(cloudEvent, topicName); - // Receive the Published Cloud Event - const receiveResult: ReceiveResult = - await client.receiveCloudEvents(topicName, eventSubscripionName); - // The Received Cloud Event ID must be equal to the ID of the Event that was published. - assert.equal(receiveResult.value[0].event.id, eventId); - }); - - it("publishes multiple cloud events", async () => { - const eventIds: string[] = [`MultipleEventId110002`, `MultipleEventId210003`]; - - const cloudEvents: CloudEvent[] = [ - { + describe("Non Binary Mode Publishing", function () { + it("publishes a single cloud event", async () => { + const eventId: string = `singleEventIdV210001`; + const cloudEvent: CloudEvent = { type: "example", source: "https://example.com", - id: recorder.variable("MulipleEventId1", eventIds[0]), - time: new Date(recorder.variable("singleEventDate1", new Date().toString())), + id: recorder.variable("singleEventId", eventId), + time: new Date(recorder.variable("singleEventDate", new Date().toString())), data: { resourceUri: "https://dummyurl.com", }, - }, - { + }; + // Publish the Cloud Event + await client.publishCloudEvent(cloudEvent, topicName); + // Receive the Published Cloud Event + const receiveResult: ReceiveResult = + await client.receiveCloudEvents(topicName, eventSubscripionName); + // The Received Cloud Event ID must be equal to the ID of the Event that was published. + assert.equal(receiveResult.value[0].event.id, eventId); + }); + + it("publishes multiple cloud events", async () => { + const eventIds: string[] = [`MultipleEventId110002`, `MultipleEventId210003`]; + + const cloudEvents: CloudEvent[] = [ + { + type: "example", + source: "https://example.com", + id: recorder.variable("MulipleEventId1", eventIds[0]), + time: new Date(recorder.variable("singleEventDate1", new Date().toString())), + data: { + resourceUri: "https://dummyurl.com", + }, + }, + { + type: "example", + source: "https://example.com", + id: recorder.variable("MulipleEventId2", eventIds[1]), + time: new Date(recorder.variable("singleEventDate2", new Date().toString())), + data: { + resourceUri: "https://dummyurl.com", + }, + }, + ]; + await client.publishCloudEvents(cloudEvents, topicName); + + const receiveResult: ReceiveResult = + await client.receiveCloudEvents(topicName, eventSubscripionName, { + maxEvents: 2, + }); + + assert.equal(2, receiveResult.value.length); + + const receivedEventIds: string[] = [ + receiveResult.value[0].event.id, + receiveResult.value[1].event.id, + ]; + expect(receivedEventIds).to.have.members(eventIds); + }); + + it("releases a cloud event", async () => { + const eventId: string = `singleEventIdV210004`; + const cloudEvent: CloudEvent = { type: "example", source: "https://example.com", - id: recorder.variable("MulipleEventId2", eventIds[1]), - time: new Date(recorder.variable("singleEventDate2", new Date().toString())), + id: recorder.variable("singleEventId", eventId), + time: new Date(recorder.variable("singleEventDate", new Date().toString())), data: { resourceUri: "https://dummyurl.com", }, - }, - ]; - await client.publishCloudEvents(cloudEvents, topicName); + }; + // Publish the Cloud Event + await client.publishCloudEvent(cloudEvent, topicName); - const receiveResult: ReceiveResult = - await client.receiveCloudEvents(topicName, eventSubscripionName, { - maxEvents: 2, - }); + let counter: number = 0; + while (true) { + // Receive the Published Cloud Event + counter++; + const receiveResult: ReceiveResult = + await client.receiveCloudEvents(topicName, eventSubscripionName); - assert.equal(2, receiveResult.value.length); + if ( + (counter > maxDeliveryCount && receiveResult.value.length !== 0) || + (counter < maxDeliveryCount && receiveResult.value.length === 0) + ) { + assert.fail("Max Delivery Count exceeded/has not reached"); + } - const receivedEventIds: string[] = [ - receiveResult.value[0].event.id, - receiveResult.value[1].event.id, - ]; - expect(receivedEventIds).to.have.members(eventIds); - }); + if (counter > maxDeliveryCount && receiveResult.value.length === 0) { + break; + } - it("releases a cloud event", async () => { - const eventId: string = `singleEventId10004`; - const cloudEvent: CloudEvent = { - type: "example", - source: "https://example.com", - id: recorder.variable("singleEventId", eventId), - time: new Date(recorder.variable("singleEventDate", new Date().toString())), - data: { - resourceUri: "https://dummyurl.com", - }, - }; - // Publish the Cloud Event - await client.publishCloudEvent(cloudEvent, topicName); + const lockToken = receiveResult.value[0].brokerProperties.lockToken; + await client.releaseCloudEvents([lockToken], topicName, eventSubscripionName); + } + }); - let counter: number = 0; - while (true) { + it("rejects a cloud event", async () => { + const eventId: string = `singleEventIdV210005`; + const cloudEvent: CloudEvent = { + type: "example", + source: "https://example.com", + id: recorder.variable("singleEventId", eventId), + time: new Date(recorder.variable("singleEventDate", new Date().toString())), + data: { + resourceUri: "https://dummyurl.com", + }, + }; + // Publish the Cloud Event + await client.publishCloudEvent(cloudEvent, topicName); // Receive the Published Cloud Event - counter++; - const receiveResult: ReceiveResult = + let receiveResult: ReceiveResult = await client.receiveCloudEvents(topicName, eventSubscripionName); + const lockToken = receiveResult.value[0].brokerProperties.lockToken; + const rejectResult: RejectResult = await client.rejectCloudEvents( + [lockToken], + topicName, + eventSubscripionName + ); + assert.equal(rejectResult.succeededLockTokens.length, 1); + assert.equal(rejectResult.succeededLockTokens[0], lockToken); - if ( - (counter > maxDeliveryCount && receiveResult.value.length !== 0) || - (counter < maxDeliveryCount && receiveResult.value.length === 0) - ) { - assert.fail("Max Delivery Count exceeded/has not reached"); - } - - if (counter > maxDeliveryCount && receiveResult.value.length === 0) { - break; - } + receiveResult = await client.receiveCloudEvents(topicName, eventSubscripionName); + assert.equal(receiveResult.value.length, 0); + }); + it("renews a cloud event", async () => { + const eventId: string = `singleEventIdV210008`; + const cloudEvent: CloudEvent = { + type: "example", + source: "https://example.com", + id: recorder.variable("singleEventId", eventId), + time: new Date(recorder.variable("singleEventDate", new Date().toString())), + data: { + resourceUri: "https://dummyurl.com", + }, + }; + // Publish the Cloud Event + await client.publishCloudEvent(cloudEvent, topicName); + // Receive the Published Cloud Event + let receiveResult: ReceiveResult = + await client.receiveCloudEvents(topicName, eventSubscripionName); const lockToken = receiveResult.value[0].brokerProperties.lockToken; - await client.releaseCloudEvents([lockToken], topicName, eventSubscripionName); - } + const renewResult: RenewCloudEventLocksResult = await client.renewCloudEventLocks( + [lockToken], + topicName, + eventSubscripionName + ); + assert.equal(renewResult.succeededLockTokens.length, 1); + assert.equal(renewResult.succeededLockTokens[0], lockToken); + + receiveResult = await client.receiveCloudEvents(topicName, eventSubscripionName); + assert.equal(receiveResult.value.length, 1); + }); }); - it("rejects a cloud event", async () => { - const eventId: string = `singleEventId10005`; - const cloudEvent: CloudEvent = { - type: "example", - source: "https://example.com", - id: recorder.variable("singleEventId", eventId), - time: new Date(recorder.variable("singleEventDate", new Date().toString())), - data: { + describe("Binary Mode Publishing", function () { + it("errors a single cloud event - Non Binary Data", async () => { + const eventId: string = `singleEventIdV210006`; + const data = { + resourceUri: "https://dummyurl.com", + }; + const cloudEvent: CloudEvent = { + type: "example", + source: "https://example.com", + id: recorder.variable("singleEventId", eventId), + time: new Date(recorder.variable("singleEventDate", new Date().toString())), + data, + }; + + try { + await client.publishCloudEvent(cloudEvent, topicName, { + binaryMode: true, + }); + assert.fail("Code must error out for non binary data in binary mode."); + } catch (ex: any) { + assert.equal(ex.message, "CloudEvent data must be binary when in binary mode."); + } + }); + + it("publishes a single cloud event - Binary Data", async () => { + const eventId: string = `singleEventIdV210007`; + const data = { resourceUri: "https://dummyurl.com", - }, - }; - // Publish the Cloud Event - await client.publishCloudEvent(cloudEvent, topicName); - // Receive the Published Cloud Event - let receiveResult: ReceiveResult = - await client.receiveCloudEvents(topicName, eventSubscripionName); - const lockToken = receiveResult.value[0].brokerProperties.lockToken; - const rejectResult: RejectResult = await client.rejectCloudEvents( - [lockToken], - topicName, - eventSubscripionName - ); - assert.equal(rejectResult.succeededLockTokens.length, 1); - assert.equal(rejectResult.succeededLockTokens[0], lockToken); - - receiveResult = await client.receiveCloudEvents(topicName, eventSubscripionName); - assert.equal(receiveResult.value.length, 0); + }; + const cloudEvent: CloudEvent = { + type: "example", + source: "https://example.com", + id: recorder.variable("singleEventId", eventId), + time: new Date(recorder.variable("singleEventDate", new Date().toString())), + data: Buffer.from(JSON.stringify(data)), + datacontenttype: "application/cloudevents+json; charset=utf-8", + }; + // Publish the Cloud Event + await client.publishCloudEvent(cloudEvent, topicName, { + binaryMode: true, + }); + // Receive the Published Cloud Event + const receiveResult: ReceiveResult = await client.receiveCloudEvents( + topicName, + eventSubscripionName + ); + // The Received Cloud Event ID must be equal to the ID of the Event that was published. + assert.equal(receiveResult.value[0].event.id, eventId); + // The Received Cloud Event Data must be equal to the data of the Event that was published. + const receivedData: any = receiveResult.value[0].event.data!; + assert.equal( + JSON.stringify(data), + JSON.stringify(JSON.parse(Buffer.from(receivedData).toString())) + ); + }); }); }); diff --git a/sdk/eventgrid/eventgrid/test/public/generateSharedAccessSignature.spec.ts b/sdk/eventgrid/eventgrid/test/public/generateSharedAccessSignature.spec.ts index 10a64a78f3ce..c23f1548616f 100644 --- a/sdk/eventgrid/eventgrid/test/public/generateSharedAccessSignature.spec.ts +++ b/sdk/eventgrid/eventgrid/test/public/generateSharedAccessSignature.spec.ts @@ -6,6 +6,7 @@ import { assert } from "chai"; import { AzureKeyCredential, generateSharedAccessSignature } from "../../src"; import { isNode } from "@azure/test-utils"; +import { Buffer } from "buffer"; describe("generateSharedAccessSignature", function () { it("generates the correct signiture", async () => {