Repository navigation
Update pubsub to v1beta2 #414
Description
Activity
Great list! Few additions.
- labels renamed to attributes
- resource name format changed; /topics/{projectid}/{topicname} to projects/{projectid}/topics/{topicname} and /subscriptions/{projectid}/{subscriptionname} to projects/{projectid}/subscriptions/{subscriptionname}
- addedapi: storageIssues related to the Cloud Storage API.Issues related to the Cloud Storage API.api: pubsubIssues related to the Pub/Sub API.Issues related to the Pub/Sub API.and removedapi: storageIssues related to the Cloud Storage API.Issues related to the Cloud Storage API.
on Mar 3, 2015 @tmatsuo So
maxResultschanged topageSize, which is documented as "Maximum number of topics to return." Is this the max number of results returned PER PAGE i.e. if I have more results, then it will still give me a page token, or does it mean that it will only show me that many ever? Did this functionality change from the previous API or is it just better (or worsely) documented now?Is this the max number of results returned PER PAGE
yes, the name of the parameter strongly suggests that.if I have more results, then it will still give me a page token
yes.Do you have any suggestions to improve things?
@tmatsuo I have some feedback. topics/subscriptions/list returns a list of subscription names where as subscriptions/list returns a list of Subscription objects. It would be nice if they both returned Subscription objects if possible.
Yes, good eye catching that discrepancy. I think however, this is because topics.subscriptions.list may return subscriptions in other project, and thus the API issuer may not have permission to access them.
It doesn't make sense that it will show me subscriptions for other projects because we specify a specific project on request. Also why would it show me the names of subscriptions if I don't have access to use them in the first place? This would seem like a violation of permissions. I don't want someone seeing my subscriptions on my project if they don't have access to it.
It doesn't make sense that it will show me subscriptions for other projects because we specify a specific project on request.
Not true. With the bare API, you can create a subscription in project1 attached to a topic in project2.
This would seem like a violation of permissions. I don't want someone seeing my subscriptions on my project if they don't have access to it.
When creating that subscription, the creator said explicitly "I subscribe to this topic". So I think seeing only the subscription name with the topic read permission seems OK to me.
You can't get the internal data of that subscription if you don't have a permission.
29 remaining items
- added 2 commits that reference this issue
on Feb 3, 2026 - added a commit that references this issue
on Feb 5, 2026 - added a commit that references this issue
on Feb 23, 2026 - added a commit that references this issue
on Feb 24, 2026 - added a commit that references this issue
on Feb 26, 2026 - added a commit that references this issue
on Mar 5, 2026 - added a commit that references this issue
on Mar 5, 2026 - added a commit that references this issue
on Mar 27, 2026 - added a commit that references this issue
on Mar 27, 2026 - added a commit that references this issue
on May 5, 2026
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.
https://pubsub.googleapis.com/v1beta2/...Subscriptions:
subscriptionto path parameter from request body.ackIdchanges toackIds.pageSizeinstead ofmaxResults.queryparameter.subscriptionsinstead ofsubscriptionin response.maxMessagesto set max number of messages to pull.receivedMessagesand is drastically different response.Topics:
queryparameter.pageSizeinstead ofmaxResults.topicsinstead oftopicin response.messagesarray of messages.messageIdsrather than an empty response.NEW: