From 0d5b1ce32ad26a4acc141f8054a526c9f370c51f Mon Sep 17 00:00:00 2001 From: Tres Seaver Date: Tue, 26 May 2015 10:30:12 -0400 Subject: [PATCH] Fix up pubsub API docs to show returned 'next_page_token'. --- docs/pubsub-usage.rst | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/docs/pubsub-usage.rst b/docs/pubsub-usage.rst index 795a64d9464b..5c6e80d7338a 100644 --- a/docs/pubsub-usage.rst +++ b/docs/pubsub-usage.rst @@ -46,7 +46,8 @@ List topics for the default project: .. doctest:: >>> from gcloud.pubsub import list_topics - >>> [topic.name for topic in list_topics()] # API request + >>> topics, next_page_token = list_topics() # API request + >>> [topic.name for topic in topics] ['topic_name'] List topics for an explicit project: @@ -54,7 +55,7 @@ List topics for an explicit project: .. doctest:: >>> from gcloud.pubsub import list_topics - >>> topics = list_topics(project='my.project') # API request + >>> topics, next_page_token = list_topics(project='my.project') # API request >>> [topic.name for topic in topics] ['topic_name'] @@ -181,7 +182,7 @@ List subscriptions for a topic: >>> from gcloud.pubsub import Topic >>> topic = Topic('topic_name') - >>> subscriptions = topic.list_subscriptions() # API request + >>> subscriptions, next_page_token = topic.list_subscriptions() # API request >>> [subscription.name for subscription in subscriptions] ['subscription_name'] @@ -190,7 +191,7 @@ List all subscriptions for the default project: .. doctest:: >>> from gcloud.pubsub import list_subscriptions - >>> subscriptions = list_subscriptions() # API request + >>> subscription, next_page_tokens = list_subscriptions() # API request >>> [subscription.name for subscription in subscriptions] ['subscription_name']