-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Flesh out pubsub subscriptions #743
Flesh out pubsub subscriptions #743
Conversation
Holding off here is fine. |
Include 'create', 'delete', 'exists', and 'reload' method to manage subscription state. Allow toggling between push / pull w/ 'modify_push_config'. Consume / acknowledge messages in pull-mode w/ 'pull', 'acknowledge', and 'modify_ack_deadline'.
def list_subscriptions(page_size=None, page_token=None, topic_name=None, | ||
project=None, connection=None): | ||
"""List subscriptions for a given project. | ||
|
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
LGTM though you should get sign off from @tmatsuo to make sure you are making the correct API calls |
params['pageToken'] = page_token | ||
|
||
if topic_name is None: | ||
path = '/projects/%s/subscriptions' % project |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Left few comments, but LGTM in terms of the correctness of API paths and methods. |
Addresses: #743 (comment).
data=data) | ||
|
||
def modify_ack_deadline(self, ack_id, ack_deadline): | ||
"""API call: update acknowledgement deadline for a retrieved messages. |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
still LGTM |
[ci skip]
Flesh out pubsub subscriptions
Uses #742 as a base.