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 — samples: add samples from pubsub/cloud-client by plamut · Pull Request #134 · googleapis/python-pubsub

This repository was archived by the owner on Oct 13, 2026. It is now read-only.

Conversation

@plamut

@plamut plamut commented Jun 25, 2020 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

Samples from https://github.com/GoogleCloudPlatform/python-docs-samples/tree/master/pubsub/cloud-client

Closes #136.
Towards #131.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Jon Wayne Parrott and others added 30 commits August 24, 2016 14:51
Jon Wayne Parrott
Add pubsub publisher and subscriber samples
87077b8
Change-Id: I38b90c10aef72c37188c4520897302933b9d2ea7
Jon Wayne Parrott
Update readme
b01f29c
Change-Id: Ie95e2e1556a8d97b5321dc86bf8de431aa36a2d5
Jon Wayne Parrott
Add pubsub iam samples
338ef98
Change-Id: I12c407d3cdf4a3f9736dfaeca6f20b31df6d310a
Jon Wayne Parrott
Fix lint issue
f6fb8d8
Change-Id: Ifebdab0b974cc3d3fe8900a23ca7416fed9e026a
@dpebot Jon Wayne Parrott
Auto-update dependencies. [(googleapis#540)](GoogleCloudPlatform/pyth…
b64ac3e
…on-docs-samples#540)
@dpebot
Auto-update dependencies. [(googleapis#542)](GoogleCloudPlatform/pyth…
bbad144
…on-docs-samples#542)
Jon Wayne Parrott
Move to google-cloud [(googleapis#544)](GoogleCloudPlatform/python-do…
d710b0f
…cs-samples#544)
@jmdobry Jon Wayne Parrott
Add new "quickstart" samples [(googleapis#547)](GoogleCloudPlatform/p…
f531f9a
…ython-docs-samples#547)
Jon Wayne Parrott
Quickstart tests [(googleapis#569)](GoogleCloudPlatform/python-docs-s…
3ff1de9
…amples#569)

* Add tests for quickstarts
* Update secrets
Jon Wayne Parrott
Generate readmes for most service samples [(googleapis#599)](GoogleCl…
26903ff
…oudPlatform/python-docs-samples#599)
Jon Wayne Parrott
Update samples to support latest Google Cloud Python [(googleapis#656)](
f7a45e8
GoogleCloudPlatform/python-docs-samples#656)
@dpebot Jon Wayne Parrott
Auto-update dependencies. [(googleapis#715)](GoogleCloudPlatform/pyth…
1e93ba5
…on-docs-samples#715)
Jon Wayne Parrott
Fix pubusb tests
e18f581
Change-Id: I7dfe60b0f1240dc58a664968fd97ca5a8fa1109d
@dpebot
Auto-update dependencies. [(googleapis#825)](GoogleCloudPlatform/pyth…
5d64699
…on-docs-samples#825)
@dpebot Jon Wayne Parrott
Auto-update dependencies. [(googleapis#876)](GoogleCloudPlatform/pyth…
50982b7
…on-docs-samples#876)
Jon Wayne Parrott
Fix reference to our testing tools
daeca5c
Jon Wayne Parrott
Re-generate all readmes
558ed2c
@dpebot Jon Wayne Parrott
Auto-update dependencies. [(googleapis#922)](GoogleCloudPlatform/pyth…
eba2d3c
…on-docs-samples#922)

* Auto-update dependencies.

* Fix pubsub iam samples
@waprin
Fix README rst links [(googleapis#962)](GoogleCloudPlatform/python-do…
5541966
…cs-samples#962)

* Fix README rst links

* Update all READMEs
@dpebot Jon Wayne Parrott
Auto-update dependencies. [(googleapis#1004)](GoogleCloudPlatform/pyt…
3667523
…hon-docs-samples#1004)

* Auto-update dependencies.

* Fix natural language samples

* Fix pubsub iam samples

* Fix language samples

* Fix bigquery samples
@dpebot Jon Wayne Parrott
Auto-update dependencies. [(googleapis#1055)](GoogleCloudPlatform/pyt…
362342e
…hon-docs-samples#1055)

* Auto-update dependencies.

* Explicitly use latest bigtable client

Change-Id: Id71e9e768f020730e4ca9514a0d7ebaa794e7d9e

* Revert language update for now

Change-Id: I8867f154e9a5aae00d0047c9caf880e5e8f50c53

* Remove pdb. smh

Change-Id: I5ff905fadc026eebbcd45512d4e76e003e3b2b43
Jon Wayne Parrott
Update pubsub samples [(googleapis#1092)](GoogleCloudPlatform/python-…
4fce50d
…docs-samples#1092)
Jon Wayne Parrott
Fix argpraser for pubsub subscriber
00ced55
Change-Id: I776863091846ee8ff8a70078c8b8d5498cf81ed6
Jon Wayne Parrott
Add comment about result blocking in pubsub samples
8d65d81
Change-Id: I149fc1242ceb6b2cff8eae7ef18b364dd5c26566
@dpebot Jon Wayne Parrott
Auto-update dependencies. [(googleapis#1097)](GoogleCloudPlatform/pyt…
b39cc76
…hon-docs-samples#1097)
Jon Wayne Parrott
Update all generated readme auth instructions [(googleapis#1121)](Goo…
80b77fd
…gleCloudPlatform/python-docs-samples#1121)

Change-Id: I03b5eaef8b17ac3dc3c0339fd2c7447bd3e11bd2
michaelawyu Jon Wayne Parrott
Added Link to Python Setup Guide [(googleapis#1158)](GoogleCloudPlatf…
75851b5
…orm/python-docs-samples#1158)

* Update Readme.rst to add Python setup guide

As requested in b/64770713.

This sample is linked in documentation https://cloud.google.com/bigtable/docs/scaling, and it would make more sense to update the guide here than in the documentation.

* Update README.rst

* Update README.rst

* Update README.rst

* Update README.rst

* Update README.rst

* Update install_deps.tmpl.rst

* Updated readmegen scripts and re-generated related README files

* Fixed the lint error
@dpebot Jon Wayne Parrott
Auto-update dependencies. [(googleapis#1138)](GoogleCloudPlatform/pyt…
a36f6f3
…hon-docs-samples#1138)
Jon Wayne Parrott
Fix a few more lint issues
ad66781
Change-Id: I0d420f3053f391fa225e4b8179e45fd1138f5c65
michaelawyu Jon Wayne Parrott
Add Snippet for Listing All Subscriptions in a Project [(googleapis#1169
43c2c7b
)](GoogleCloudPlatform/python-docs-samples#1169)
@googlebot

googlebot commented Jun 25, 2020

Copy link
Copy Markdown

A Googler has manually verified that the CLAs look good.

(Googler, please make sure the reason for overriding the CLA status is clearly documented in these comments.)

ℹ️ Googlers: Go here for more info.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@busunkim96

busunkim96 commented Jun 25, 2020

Copy link
Copy Markdown
Contributor

Just opened a PR internally to add the additional Kokoro checks for samples.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@busunkim96 busunkim96 added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Jun 25, 2020
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Jun 25, 2020
@anguillanneuf

anguillanneuf commented Jun 25, 2020 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

@plamut Let's coordinate on the merge because we don't want Cloud docs to link to non-existing samples. I have prepared an internal CL (cl/318355428) for docs so we can merge/submit at roughly the same time. Thanks!


Tests are failing due to a missing noxfile.py.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@anguillanneuf
anguillanneuf self-requested a review June 25, 2020 22:06
@anguillanneuf anguillanneuf changed the title docs: add samples from pubsub/cloud-client samples: add samples from pubsub/cloud-client Jun 25, 2020
@plamut
chore: update templates
5083332
@plamut

plamut commented Jun 26, 2020 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor Author

@anguillanneuf Generated/updated the templates, including the noxfile.py for the snippets. The PR is ready for another round of reviews now (cc: @busunkim96).

Re: internal PR - I think it should be fine (can't see its contents), as the samples have been copied from the samples repo. When this is approved an merged, we can just "redirect" the docs to point at the new location.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@plamut plamut mentioned this pull request Jun 26, 2020
chore: remove PubSub cloud-client samples GoogleCloudPlatform/python-docs-samples#4175
Merged
@plamut
Merge branch 'master' into add-snippets-samples
ba494c1
@googlebot

googlebot commented Jun 26, 2020

Copy link
Copy Markdown

We found a Contributor License Agreement for you (the sender of this pull request), but were unable to find agreements for all the commit author(s) or Co-authors. If you authored these, maybe you used a different email address in the git commits than was used to sign the CLA (login here to double check)? If these were authored by someone else, then they will need to sign a CLA as well, and confirm that they're okay with these being contributed to Google.
In order to pass this check, please resolve this problem and then comment @googlebot I fixed it.. If the bot doesn't comment, it means it doesn't think anything has changed.

ℹ️ Googlers: Go here for more info.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@googlebot googlebot added cla: no This human has *not* signed the Contributor License Agreement. and removed cla: yes This human has signed the Contributor License Agreement. labels Jun 26, 2020
anguillanneuf
anguillanneuf approved these changes Jun 26, 2020
View reviewed changes

@anguillanneuf anguillanneuf left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! Thanks!
Sometimes we ask people to clone python-docs-samples and cd into pubsub. Those instructions need to be updated accordingly too :)

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@anguillanneuf anguillanneuf added cla: yes This human has signed the Contributor License Agreement. and removed cla: no This human has *not* signed the Contributor License Agreement. labels Jun 26, 2020
@googlebot

googlebot commented Jun 26, 2020

Copy link
Copy Markdown

A Googler has manually verified that the CLAs look good.

(Googler, please make sure the reason for overriding the CLA status is clearly documented in these comments.)

ℹ️ Googlers: Go here for more info.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

busunkim96
busunkim96 approved these changes Jun 26, 2020
View reviewed changes
@anguillanneuf
anguillanneuf merged commit e204b86 into googleapis:master Jun 26, 2020
@plamut
plamut deleted the add-snippets-samples branch June 26, 2020 21:04
@plamut

plamut commented Jun 30, 2020

Copy link
Copy Markdown
Contributor Author

@busunkim96 @anguillanneuf Uh-oh, it appears that the sample history was squash-merged instead of using rebase and merge as specified by the migration doc.

How important is the history in this case? Do we need to purge this PR and merge it again with history preserved?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@anguillanneuf

anguillanneuf commented Jun 30, 2020 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

Is it still possible to rebase? If so, please do! Thanks @plamut. And if not, we can live with this mistake.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

busunkim96 added a commit that referenced this pull request Jun 30, 2020
@busunkim96
Revert "samples: add samples from pubsub/cloud-client (#134)"
a2b7c04
This reverts commit e204b86.
@busunkim96 busunkim96 mentioned this pull request Jun 30, 2020
Revert "samples: add samples from pubsub/cloud-client (#134)" #141
Closed
@anguillanneuf anguillanneuf mentioned this pull request Jun 30, 2020
chore: update noxfile #139
Closed
1 task
sgerrand
sgerrand reviewed Jul 7, 2020
View reviewed changes

@sgerrand sgerrand left a comment

Copy link
Copy Markdown

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like some URLs weren't updated during this migration. I've noted the key ones which are broken.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread samples/snippets/README.rst.in
Comment on lines +16 to +17
- name: Quickstart
file: quickstart.py

@sgerrand sgerrand Jul 7, 2020

Copy link
Copy Markdown

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's worth noting that this file doesn't exist.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread samples/snippets/README.rst
===============================================================================

.. image:: https://gstatic.com/cloudssh/images/open-btn.png
:target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=pubsub/cloud-client/README.rst

@sgerrand sgerrand Jul 7, 2020

Copy link
Copy Markdown

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This URL should now be https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/python-pubsub&page=editor&open_in_editor=samples/snippets/iam.py,samples/snippets/README.rst

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread samples/snippets/README.rst

.. code-block:: bash

$ git clone https://github.com/GoogleCloudPlatform/python-docs-samples.git

@sgerrand sgerrand Jul 7, 2020

Copy link
Copy Markdown

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

-        $ git clone https://github.com/GoogleCloudPlatform/python-docs-samples.git
+        $ git clone https://github.com/googleapis/python-pubsub.git

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
plamut added a commit to plamut/python-pubsub that referenced this pull request Jul 10, 2020
@plamut
Revert "samples: add samples from pubsub/cloud-client (googleapis#134)"
a740170
This reverts commit e204b86.

We want to merge the samples branch *unsquashed* to preserve
samples commit history.
@plamut plamut mentioned this pull request Jul 10, 2020
samples: add samples from pubsub/cloud-client #151
Merged
plamut added a commit that referenced this pull request Jul 10, 2020
@plamut
Revert "samples: add samples from pubsub/cloud-client (#134)"
b8ca60a
This reverts commit e204b86.

We want to merge the samples branch *unsquashed* to preserve
samples commit history.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Reviewers

3 more reviewers
@sgerrand sgerrand sgerrand left review comments
@busunkim96 busunkim96 busunkim96 approved these changes
@anguillanneuf anguillanneuf anguillanneuf approved these changes
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

cla: yes This human has signed the Contributor License Agreement. type: docs Improvement to the documentation for an API.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Add pubsub/cloud-client samples from the samples repo

Uh oh!

There was an error while loading. Please reload this page.

19 participants

@plamut @googlebot @busunkim96 @anguillanneuf @sgerrand @yoshi-kokoro @dpebot @jmdobry @waprin @noerog @luxiangu @frankyn @alixhami @michaelawyu @engelke @olivercoad @gguuss @kurtisvg @renovate-bot
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.