Skip to content

Commit e14dc05

Browse files
committed
update for release
1 parent 52f7a74 commit e14dc05

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed

sdk/eventgrid/azure-eventgrid/CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@ This version and all future versions will require Python 3.8+.
3737
### Features Added
3838

3939
- Added new features to the EventGridClient that supports `publish_cloud_events`, `receive_cloud_events`, `acknowledge_cloud_events` , `release_cloud_events`, and `reject_cloud_events` operations. These features include a `renew_cloud_event_locks` operation, as well as a `release_with_delay` parameter on the `release_cloud_events` operation.
40-
- `lock_tokens` parameter in `reject_cloud_events`, `release_cloud_events`, and `acknowledge_cloud_events` renamed to `reject_options`, `release_options`, and `acknowledge_options`.
40+
- The `lock_tokens` parameter in `reject_cloud_events`, `release_cloud_events`, and `acknowledge_cloud_events` was renamed to `reject_options`, `release_options`, and `acknowledge_options`.
41+
- The `binary_mode` keyword argument on `publish_cloud_events` was added to allow for binary mode support when publishing single Cloud Events.
4142
- Added new models to support these new operations on EventGridClient.
4243

4344
## 4.16.0 (2023-11-08)

sdk/eventgrid/azure-eventgrid/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Azure Event Grid is a fully-managed intelligent event routing service that allow
1212

1313
## _Disclaimer_
1414

15-
This is the first beta release of Azure EventGrid's `EventGridClient`, along with the GA `EventGridPublisherClient`. `EventGridClient` supports `publish_cloud_events`, `receive_cloud_events`, `acknowledge_cloud_events` , `release_cloud_events`, and `reject_cloud_events` operations. Please refer to the [samples](https://github.com/Azure/azure-sdk-for-python/tree/feature/eventgrid/sdk/eventgrid/azure-eventgrid/samples/sync_samples/eventgrid_client_samples) for further information.
15+
This is a beta release of Azure EventGrid's `EventGridClient`, which along with the GA `EventGridPublisherClient`. `EventGridClient` supports `publish_cloud_events`, `receive_cloud_events`, `acknowledge_cloud_events` , `release_cloud_events`, `reject_cloud_events`, and `renew_cloud_event_locks` operations. Please refer to the [samples](https://github.com/Azure/azure-sdk-for-python/tree/feature/eventgrid/sdk/eventgrid/azure-eventgrid/samples/sync_samples/eventgrid_client_samples) for further information.
1616

1717
## Getting started
1818

sdk/eventgrid/azure-eventgrid/samples/async_samples/eventgrid_client_samples/sample_binary_mode_async.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ async def run():
2828
try:
2929
# Publish CloudEvent in binary mode with str encoded as bytes
3030
cloud_event_dict = {"data":b"HI", "source":"https://example.com", "type":"example", "datacontenttype":"text/plain"}
31-
await client.publish_cloud_events(topic_name=TOPIC_NAME, body=cloud_event_dict)
31+
await client.publish_cloud_events(topic_name=TOPIC_NAME, body=cloud_event_dict, binary_mode=True)
3232

3333
# Publish CloudEvent in binary mode with json encoded as bytes
3434
cloud_event = CloudEvent(data=json.dumps({"hello":"data"}).encode("utf-8"), source="https://example.com", type="example", datacontenttype="application/json")

sdk/eventgrid/azure-eventgrid/samples/sync_samples/eventgrid_client_samples/sample_binary_mode.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
try:
2626
# Publish CloudEvent in binary mode with str encoded as bytes
2727
cloud_event_dict = {"data":b"HI", "source":"https://example.com", "type":"example", "datacontenttype":"text/plain"}
28-
client.publish_cloud_events(topic_name=TOPIC_NAME, body=cloud_event_dict)
28+
client.publish_cloud_events(topic_name=TOPIC_NAME, body=cloud_event_dict, binary_mode=True)
2929

3030
# Publish CloudEvent in binary mode with json encoded as bytes
3131
cloud_event = CloudEvent(data=json.dumps({"hello":"data"}).encode("utf-8"), source="https://example.com", type="example", datacontenttype="application/json")

0 commit comments

Comments
 (0)