GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Update pubsub to v1beta2 · Issue #414 · googleapis/google-cloud-node

Update pubsub to v1beta2 #414

New issue
Copy link
New issue
Copy link
Closed
#433
Closed
Update pubsub to v1beta2#414
#433
Copy link
Assignees
ryanseys
Labels
🚨This issue needs some love.api: pubsubIssues related to the Pub/Sub API.triage meI really want to be triaged.
Milestone
Pub/Sub Beta

Description

@ryanseys
ryanseys
opened on Feb 27, 2015
Issue body actions

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:

  • 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.

Activity

Next
  1. tmatsuo commented on Feb 27, 2015

    @tmatsuo
    tmatsuo
    on Feb 27, 2015
    Contributor
    More actions

    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}
  2. ryanseys
    modified the milestone: Pub/Sub Beta on Feb 28, 2015
  3. stephenplusplus
    added
    api: storageIssues related to the Cloud Storage API.
    api: pubsubIssues related to the Pub/Sub API.
    and removed
    api: storageIssues related to the Cloud Storage API.
    on Mar 3, 2015
  4. ryanseys
    self-assigned this
    on Mar 5, 2015
  5. ryanseys commented on Mar 5, 2015

    @ryanseys
    ryanseys
    on Mar 5, 2015
    ContributorAuthor
    More actions

    @tmatsuo So maxResults changed to pageSize, 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?

  6. tmatsuo commented on Mar 6, 2015

    @tmatsuo
    tmatsuo
    on Mar 6, 2015
    Contributor
    More actions

    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?

  7. ryanseys commented on Mar 6, 2015

    @ryanseys
    ryanseys
    on Mar 6, 2015
    ContributorAuthor
    More actions

    @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.

  8. tmatsuo commented on Mar 6, 2015

    @tmatsuo
    tmatsuo
    on Mar 6, 2015
    Contributor
    More actions

    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.

  9. ryanseys commented on Mar 7, 2015

    @ryanseys
    ryanseys
    on Mar 7, 2015
    ContributorAuthor
    More actions

    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.

  10. tmatsuo commented on Mar 7, 2015

    @tmatsuo
    tmatsuo
    on Mar 7, 2015
    Contributor
    More actions

    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.

  11. stephenplusplus
    closed this as completedin #433on Mar 10, 2015
  12. yoshi-automation
    added
    🚨This issue needs some love.
    on Apr 6, 2020
  13. 29 remaining items

  14. sofisl
    added 2 commits that reference this issue on Feb 3, 2026

    refactor(ts): cast arrified rows (#414)

    04ba69a

    build: update linkinator config (#414)

    1f623fc
  15. GautamSharda
    added a commit that references this issue on Feb 5, 2026

    chore: release 1.1.3 (#414)

    9fe0fe8
  16. GautamSharda
    added a commit that references this issue on Feb 23, 2026

    chore: release 1.1.3 (#414)

    7f6dcd1
  17. sofisl
    added a commit that references this issue on Feb 24, 2026

    Add Firebase Version to header (#414)

    38e6424
  18. GautamSharda
    added a commit that references this issue on Feb 26, 2026

    chore: release 1.1.3 (#414)

    ccf6502
  19. GautamSharda
    added a commit that references this issue on Mar 5, 2026

    fix: do not push duplicate scopes (#414)

    2e97aa9
  20. sofisl
    added a commit that references this issue on Mar 5, 2026

    chore: migrate code from googleapis/gcp-metadata (#53)

    fa9a454
  21. GautamSharda
    added 2 commits that reference this issue on Mar 11, 2026

    fix: modernize the sample tests (#414)

    75d7f9f

    fix(deps): update dependency @google-cloud/projectify to v1 (#414)

    de96434
  22. GautamSharda
    added 2 commits that reference this issue on Mar 23, 2026

    docs: update contributing path in README (#414)

    3851a09

    docs: update contributing path in README (#414)

    f1f8fab
  23. feywind
    added a commit that references this issue on Mar 27, 2026

    fix: modernize the sample tests (#414)

    de8e36b
  24. shivanee-p
    added a commit that references this issue on Mar 27, 2026

    docs: update contributing path in README (#414)

    6055e72
  25. thiyaguk09
    added a commit that references this issue on May 5, 2026

    docs: update contributing path in README (googleapis#414)

    16fb1ae
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @ryanseys
    ryanseys

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

    • Pub/Sub Beta

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.