Skip to content

Commit

Permalink
Auto-update dependencies. [(googleapis#1004)](GoogleCloudPlatform/pyt…
Browse files Browse the repository at this point in the history
…hon-docs-samples#1004)

* Auto-update dependencies.

* Fix natural language samples

* Fix pubsub iam samples

* Fix language samples

* Fix bigquery samples
  • Loading branch information
dpebot authored and plamut committed Jul 10, 2020
1 parent 1ed3e69 commit a0daf6d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions samples/snippets/iam.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def set_topic_policy(topic_name):
policy['roles/pubsub.viewer'] = [policy.all_users()]
# Add a group as publisherss.
publishers = policy.get('roles/pubsub.publisher', [])
publishers.append(policy.group('cloud-logs@google.com'))
publishers.add(policy.group('cloud-logs@google.com'))
policy['roles/pubsub.publisher'] = publishers

# Set the policy
Expand All @@ -90,7 +90,7 @@ def set_subscription_policy(topic_name, subscription_name):
policy['roles/viewer'] = [policy.all_users()]
# # Add a group as editors.
editors = policy.get('roles/editor', [])
editors.append(policy.group('cloud-logs@google.com'))
editors.add(policy.group('cloud-logs@google.com'))
policy['roles/editor'] = editors

# Set the policy
Expand Down
2 changes: 1 addition & 1 deletion samples/snippets/requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
google-cloud-pubsub==0.25.0
google-cloud-pubsub==0.26.0

0 comments on commit a0daf6d

Please sign in to comment.