Skip to content
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

Merged
merged 8 commits into from
Mar 19, 2015
Merged

Flesh out pubsub subscriptions #743

merged 8 commits into from
Mar 19, 2015

Conversation

tseaver
Copy link
Contributor

@tseaver tseaver commented Mar 18, 2015

Uses #742 as a base.

@tseaver tseaver added the api: pubsub Issues related to the Pub/Sub API. label Mar 18, 2015
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Mar 18, 2015
@tseaver tseaver changed the title Flesh out pubsub subscription Flesh out pubsub subscriptions Mar 18, 2015
@dhermes
Copy link
Contributor

dhermes commented Mar 18, 2015

@tseaver I'm going to hold off on this until #742 is through. Is that OK or do you prefer otherwise?

@tseaver
Copy link
Contributor Author

tseaver commented Mar 18, 2015

Holding off here is fine.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 100.0% when pulling c64c0f2 on tseaver:691-flesh_out_pubsub_subscription into aa684be on GoogleCloudPlatform:master.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 100.0% when pulling 1d08a87 on tseaver:691-flesh_out_pubsub_subscription into aa684be on GoogleCloudPlatform:master.

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'.
@tseaver
Copy link
Contributor Author

tseaver commented Mar 19, 2015

@dhermes rebased after merge of #742.

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.

This comment was marked as spam.

@dhermes
Copy link
Contributor

dhermes commented Mar 19, 2015

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.

@tmatsuo
Copy link
Contributor

tmatsuo commented Mar 19, 2015

Left few comments, but LGTM in terms of the correctness of API paths and methods.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 100.0% when pulling ea1625c on tseaver:691-flesh_out_pubsub_subscription into 01d697e on GoogleCloudPlatform:master.

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.

@tmatsuo
Copy link
Contributor

tmatsuo commented Mar 19, 2015

still LGTM

tseaver added a commit that referenced this pull request Mar 19, 2015
@tseaver tseaver merged commit 85dc64b into googleapis:master Mar 19, 2015
@tseaver tseaver deleted the 691-flesh_out_pubsub_subscription branch March 19, 2015 20:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: pubsub Issues related to the Pub/Sub API. cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants