Closed
Description
The following is a checklist for migrating over to the new v1beta2 pubsub API. It lists the incompatible changes that occurred between the two APIs.
- All requests now using a new url scheme:
https://pubsub.googleapis.com/v1beta2/...
Subscriptions:
- acknowledge: Move
subscription
to path parameter from request body. - acknowledge:
ackId
changes toackIds
. - create: No longer accepts a name in request body (subscription resource).
- list:
pageSize
instead ofmaxResults
. - list: project in path parameter.
- list: no
query
parameter. - list: returns
subscriptions
instead ofsubscription
in response. - pull: subscription moved to path parameter instead of request body.
- pull: added
maxMessages
to set max number of messages to pull. - pull: response now contains top level
receivedMessages
and is drastically different response. - pullBatch: removed pullBatch.
Topics:
- create: name now a path parameter instead of in request body.
- delete: different url scheme for topic name.
- get: topic name now in path parameter instead of in request body.
- list: require project in path parameter.
- list: no
query
parameter. - list:
pageSize
instead ofmaxResults
. - list: returns
topics
instead oftopic
in response. - publish: topic now a path parameter instead of in request body.
- publish: request body now takes
messages
array of messages. - publish: response will now return list of
messageIds
rather than an empty response. - publishBatch: removed publishBatch.
NEW:
- topics.subscriptions.list which results the name of the subscriptions for a particular topic.
- PubSubMessage description which describes the pubsub message response for various requests.