From e9b49c94fb22730bdc6374dcf7584f9f9bdbf1c1 Mon Sep 17 00:00:00 2001 From: DPE bot Date: Thu, 8 Mar 2018 13:33:57 -0800 Subject: [PATCH] Auto-update dependencies. (#1389) --- appengine/flexible/pubsub/requirements.txt | 2 +- iot/api-client/end_to_end_example/requirements.txt | 2 +- iot/api-client/gcs_file_to_device/requirements.txt | 2 +- iot/api-client/http_example/requirements.txt | 2 +- iot/api-client/mqtt_example/requirements.txt | 2 +- iot/api-client/scripts/requirements.txt | 2 +- pubsub/cloud-client/requirements.txt | 2 +- pubsub/cloud-client/subscriber.py | 6 +++--- storage/cloud-client/requirements.txt | 2 +- 9 files changed, 11 insertions(+), 11 deletions(-) diff --git a/appengine/flexible/pubsub/requirements.txt b/appengine/flexible/pubsub/requirements.txt index 35f7a82b6c43..0d906a5c7194 100644 --- a/appengine/flexible/pubsub/requirements.txt +++ b/appengine/flexible/pubsub/requirements.txt @@ -1,3 +1,3 @@ Flask==0.12.2 -google-cloud-pubsub==0.32.0 +google-cloud-pubsub==0.32.1 gunicorn==19.7.1 diff --git a/iot/api-client/end_to_end_example/requirements.txt b/iot/api-client/end_to_end_example/requirements.txt index d84ee67fe339..6574c9028201 100644 --- a/iot/api-client/end_to_end_example/requirements.txt +++ b/iot/api-client/end_to_end_example/requirements.txt @@ -2,6 +2,6 @@ cryptography==2.1.4 google-api-python-client==1.6.5 google-auth-httplib2==0.0.3 google-auth==1.4.1 -google-cloud-pubsub==0.32.0 +google-cloud-pubsub==0.32.1 pyjwt==1.6.0 paho-mqtt==1.3.1 diff --git a/iot/api-client/gcs_file_to_device/requirements.txt b/iot/api-client/gcs_file_to_device/requirements.txt index e89a1ab54544..f90e201be74e 100644 --- a/iot/api-client/gcs_file_to_device/requirements.txt +++ b/iot/api-client/gcs_file_to_device/requirements.txt @@ -1,7 +1,7 @@ google-api-python-client==1.6.5 google-auth==1.4.1 google-auth-httplib2==0.0.3 -google-cloud-pubsub==0.32.0 +google-cloud-pubsub==0.32.1 google-cloud-storage==1.8.0 cryptography==2.1.4 paho-mqtt==1.3.1 diff --git a/iot/api-client/http_example/requirements.txt b/iot/api-client/http_example/requirements.txt index abdf1a3f246c..a48a13a4c8d5 100644 --- a/iot/api-client/http_example/requirements.txt +++ b/iot/api-client/http_example/requirements.txt @@ -2,6 +2,6 @@ cryptography==2.1.4 google-api-python-client==1.6.5 google-auth-httplib2==0.0.3 google-auth==1.4.1 -google-cloud-pubsub==0.32.0 +google-cloud-pubsub==0.32.1 pyjwt==1.6.0 requests==2.18.4 diff --git a/iot/api-client/mqtt_example/requirements.txt b/iot/api-client/mqtt_example/requirements.txt index 43b19e196f1b..146c59366ab6 100644 --- a/iot/api-client/mqtt_example/requirements.txt +++ b/iot/api-client/mqtt_example/requirements.txt @@ -1,7 +1,7 @@ google-api-python-client==1.6.5 google-auth-httplib2==0.0.3 google-auth==1.4.1 -google-cloud-pubsub==0.32.0 +google-cloud-pubsub==0.32.1 cryptography==2.1.4 pyjwt==1.6.0 paho-mqtt==1.3.1 diff --git a/iot/api-client/scripts/requirements.txt b/iot/api-client/scripts/requirements.txt index d300b96a86fd..fdea342db45a 100644 --- a/iot/api-client/scripts/requirements.txt +++ b/iot/api-client/scripts/requirements.txt @@ -1 +1 @@ -google-cloud-pubsub==0.32.0 +google-cloud-pubsub==0.32.1 diff --git a/pubsub/cloud-client/requirements.txt b/pubsub/cloud-client/requirements.txt index d300b96a86fd..fdea342db45a 100644 --- a/pubsub/cloud-client/requirements.txt +++ b/pubsub/cloud-client/requirements.txt @@ -1 +1 @@ -google-cloud-pubsub==0.32.0 +google-cloud-pubsub==0.32.1 diff --git a/pubsub/cloud-client/subscriber.py b/pubsub/cloud-client/subscriber.py index f03039bbccff..827dcd313b54 100644 --- a/pubsub/cloud-client/subscriber.py +++ b/pubsub/cloud-client/subscriber.py @@ -29,11 +29,11 @@ def list_subscriptions_in_topic(project, topic_name): """Lists all subscriptions for a given topic.""" - subscriber = pubsub_v1.SubscriberClient() + subscriber = pubsub_v1.PublisherClient() topic_path = subscriber.topic_path(project, topic_name) - for subscription in subscriber.list_subscriptions(topic_path): - print(subscription.name) + for subscription in subscriber.list_topic_subscriptions(topic_path): + print(subscription) def list_subscriptions_in_project(project): diff --git a/storage/cloud-client/requirements.txt b/storage/cloud-client/requirements.txt index e779429dc3ea..2aa1cdc9b441 100644 --- a/storage/cloud-client/requirements.txt +++ b/storage/cloud-client/requirements.txt @@ -1,2 +1,2 @@ google-cloud-storage==1.8.0 -google-cloud-pubsub==0.32.0 +google-cloud-pubsub==0.32.1