-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add data as positional for cloud event (#16288)
* Add data as positional for cloud event * lint * Update sdk/eventgrid/azure-eventgrid/azure/eventgrid/_models.py * Apply suggestions from code review Co-authored-by: Adam Ling (MSFT) <adam_ling@outlook.com> * docs * Update sdk/eventgrid/azure-eventgrid/azure/eventgrid/_models.py * Update sdk/eventgrid/azure-eventgrid/azure/eventgrid/_models.py Co-authored-by: Adam Ling (MSFT) <adam_ling@outlook.com> Co-authored-by: Adam Ling (MSFT) <adam_ling@outlook.com>
- Loading branch information
1 parent
95b40c2
commit 5483b6a
Showing
7 changed files
with
156 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
38 changes: 38 additions & 0 deletions
38
...-eventgrid/tests/recordings/test_eg_publisher_client.test_send_cloud_event_data_none.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
interactions: | ||
- request: | ||
body: '[{"id": "880b26eb-96c6-4a14-b373-c3be6634cd21", "source": "http://samplesource.dev", | ||
"type": "Sample.Cloud.Event", "time": "2021-01-21T20:04:19.0468Z", "specversion": | ||
"1.0"}]' | ||
headers: | ||
Accept: | ||
- '*/*' | ||
Accept-Encoding: | ||
- gzip, deflate | ||
Connection: | ||
- keep-alive | ||
Content-Length: | ||
- '174' | ||
Content-Type: | ||
- application/cloudevents-batch+json; charset=utf-8 | ||
User-Agent: | ||
- azsdk-python-eventgrid/2.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) | ||
method: POST | ||
uri: https://cloudeventgridtestegtopic.westus-1.eventgrid.azure.net/api/events?api-version=2018-01-01 | ||
response: | ||
body: | ||
string: '' | ||
headers: | ||
api-supported-versions: | ||
- '2018-01-01' | ||
content-length: | ||
- '0' | ||
date: | ||
- Thu, 21 Jan 2021 20:04:21 GMT | ||
server: | ||
- Microsoft-HTTPAPI/2.0 | ||
strict-transport-security: | ||
- max-age=31536000; includeSubDomains | ||
status: | ||
code: 200 | ||
message: OK | ||
version: 1 |
28 changes: 28 additions & 0 deletions
28
...grid/tests/recordings/test_eg_publisher_client_async.test_send_cloud_event_data_none.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
interactions: | ||
- request: | ||
body: '[{"id": "e4d278ac-c129-433d-a9f7-10af74a41b44", "source": "http://samplesource.dev", | ||
"type": "Sample.Cloud.Event", "time": "2021-01-21T20:04:44.736922Z", "specversion": | ||
"1.0"}]' | ||
headers: | ||
Content-Length: | ||
- '176' | ||
Content-Type: | ||
- application/cloudevents-batch+json; charset=utf-8 | ||
User-Agent: | ||
- azsdk-python-eventgridpublisherclient/2.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) | ||
method: POST | ||
uri: https://cloudeventgridtestegtopic.westus-1.eventgrid.azure.net/api/events?api-version=2018-01-01 | ||
response: | ||
body: | ||
string: '' | ||
headers: | ||
api-supported-versions: '2018-01-01' | ||
content-length: '0' | ||
date: Thu, 21 Jan 2021 20:04:46 GMT | ||
server: Microsoft-HTTPAPI/2.0 | ||
strict-transport-security: max-age=31536000; includeSubDomains | ||
status: | ||
code: 200 | ||
message: OK | ||
url: https://cloudeventgridtestmehspu.westus-1.eventgrid.azure.net/api/events?api-version=2018-01-01 | ||
version: 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters