Skip to content

Add examples for creating push subscriptions and updating subscriptions #1330

Closed
@foresmac

Description

@foresmac

In which file did you encounter the issue?

https://github.com/GoogleCloudPlatform/python-docs-samples/blob/master/pubsub/cloud-client/subscriber.py

Did you change the file? If so, how?

No.

Describe the issue

There are no examples in Python for creating push subscriptions (it's totally possible to do, but I had to figure how to do so by reading the code and trial and error in a REPL), nor for updating said subscriptions. I tried figuring out how to update a push subscription's push_endpoint, but I couldn't sort out how to correctly make either a FieldMask or a dict with similar structure. I tried looking here to figure out what a FieldMask is supposed to look like, but it's autogenerated and looks like gibberish to me. Comment says to look in google/cloud/pubsub_v1/proto/pubsub.proto file that doesn't appear to be there.

When in doubt, more examples are better than just one, but one would be infinitely better than none.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions