4.0.0 (2020-03-11)
New Features
- added
sendEvent
toEventGridPublisherClient
andEventGridPublisherAsyncClient
to send a single event.
Breaking changes
CloudEvent
is moved toazure-core
SDK version 1.14.0. Its constructor usesBinaryData
instead ofObject
as the data type fordata
.EventGridEvent
constructor also usesBinaryData
instead ofObject
as the data type fordata
.- To send custom events,
sendEvents
acceptsIterable<BinaryData>
instead ofIterable<Object>
. EventGridPublisherClientBuilder.serializer()
is removed becauseBinaryData.fromObject(Object data, ObjectSerializer serializer)
already supports custom serializer, which can be used to
serialize custom events and the data ofCloudEvent
andEventGridEvent
.EventGridPublisherClient
is changed toEventGridPublisherClient<T>
that can be statically instantiated to sendCloudEvent
,EventGridEvent
or custom events (useBinaryData
)
with methodssendEvents
andsendEvent
.
EventGridPublisherClientBuilder
now hasbuildCloudEventPublisherClient
,buildEventGridEventPublisherClient
andbuildCustomEventPublisherClient
to build the generic-instantiated clients respectively.
The async client has the same change.EventGridPublisherClientBuilder.endpoint()
now requires the EventGrid topic or domain full url endpoint because
different EventGrid service deployments may require different url patterns.EventGridSasGenerator
is removed. MethodgenerateSas
is moved toEventGridPublisherClient
andEventGridPublisherAsyncClient
.
Dependency Updates
- Update
azure-core
dependency to1.14.0
. - Update
azure-core-http-netty
dependency to1.9.0
.