Skip to content

Update pubsub to v1beta2 #414

Closed
Closed
@ryanseys

Description

@ryanseys

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 to ackIds.
  • create: No longer accepts a name in request body (subscription resource).
  • list: pageSize instead of maxResults.
  • list: project in path parameter.
  • list: no query parameter.
  • list: returns subscriptions instead of subscription 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 of maxResults.
  • list: returns topics instead of topic 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:

Metadata

Metadata

Assignees

Labels

🚨This issue needs some love.api: pubsubIssues related to the Pub/Sub API.triage meI really want to be triaged.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions