You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Just filing some of the issues that have come up when auto-generating an Event Grid client:
To accomodate the multitude of packages we're going to have for Event Grid
we're going to move 'azeventgrid' to create space for a new package
(Event Grid Namespaces) and to split out system events into their
own package (azsystemevents). This also implies we'll have to create publishing pipelines for each of those areas.
Authentication header format is SharedAccessKey <shared key. I'm able to use a PerRetry policy to add this but we do need a credential type for this. It appears other libraries have defined a custom credential type for their individual packages.
PublishCloudEvents is supposed to set the Content-Type to application/cloudevents-batch+json; charset=utf-8, but instead just sets it to application/json.
There are some fields in CloudEvent that have to be filled out but I'm not sure if there's intended to be a constraint or not, as other languages don't seem to require them all (and are probably filling them out with defaults). (Specversion, ID)
ClientPublishCloudEventsResponse an embedded field called Interface of type any:
// ClientPublishCloudEventsResponse contains the response from method Client.PublishCloudEvents.typeClientPublishCloudEventsResponsestruct {
// AnythingInterfaceany
}
AcknowledgeCloudEvents has an argument that represents the lockTokens but the type is AcknowledgeOptions:
AcknowledgeCloudEvents(ctxcontext.Context,
topicNamestring,
eventSubscriptionNamestring,
// <-- This parameter here --> lockTokensAcknowledgeOptions,
options*ClientAcknowledgeCloudEventsOptions)
ReceiveCloudEvents has an explicit MaxWaitTime parameter. It's possible for us to say "we can just use the deadline of the context" but we might need some wiggle room, as the "timeout" in this case is actually a response from the service.
When receiving the CloudEvent the 'Data' field appears to be a base64 encoded version of the data, rather than just being whatever the data was (in my case, it was a string).
--
Note these all came out of the client generated from this rev of the swagger: link
The text was updated successfully, but these errors were encountered:
Just filing some of the issues that have come up when auto-generating an Event Grid client:
we're going to move 'azeventgrid' to create space for a new package
(Event Grid Namespaces) and to split out system events into their
own package (azsystemevents). This also implies we'll have to create publishing pipelines for each of those areas.
Authentication
header format isSharedAccessKey <shared key
. I'm able to use aPerRetry
policy to add this but we do need a credential type for this. It appears other libraries have defined a custom credential type for their individual packages.Content-Type
toapplication/cloudevents-batch+json; charset=utf-8
, but instead just sets it toapplication/json
.CloudEvent
type into azcore, for use with messaging SDKs #20970Specversion
,ID
)ClientPublishCloudEventsResponse
an embedded field calledInterface
of typeany
:AcknowledgeOptions
:ReceiveCloudEvents
has an explicit MaxWaitTime parameter. It's possible for us to say "we can just use the deadline of the context" but we might need some wiggle room, as the "timeout" in this case is actually a response from the service.--
Note these all came out of the client generated from this rev of the swagger: link
The text was updated successfully, but these errors were encountered: