IAM Policy#

PubSub API IAM policy definitions

For allowed roles / permissions, see: https://cloud.google.com/pubsub/access_control#permissions

google.cloud.pubsub.iam.PUBSUB_ADMIN_ROLE = 'roles/pubsub.admin'#

Role implying all rights to an object.

google.cloud.pubsub.iam.PUBSUB_EDITOR_ROLE = 'roles/pubsub.editor'#

Role implying rights to modify an object.

google.cloud.pubsub.iam.PUBSUB_VIEWER_ROLE = 'roles/pubsub.viewer'#

Role implying rights to access an object.

google.cloud.pubsub.iam.PUBSUB_PUBLISHER_ROLE = 'roles/pubsub.publisher'#

Role implying rights to publish to a topic.

google.cloud.pubsub.iam.PUBSUB_SUBSCRIBER_ROLE = 'roles/pubsub.subscriber'#

Role implying rights to subscribe to a topic.

google.cloud.pubsub.iam.PUBSUB_TOPICS_CONSUME = 'pubsub.topics.consume'#

Permission: consume events from a subscription.

google.cloud.pubsub.iam.PUBSUB_TOPICS_CREATE = 'pubsub.topics.create'#

Permission: create topics.

google.cloud.pubsub.iam.PUBSUB_TOPICS_DELETE = 'pubsub.topics.delete'#

Permission: delete topics.

google.cloud.pubsub.iam.PUBSUB_TOPICS_GET = 'pubsub.topics.get'#

Permission: retrieve topics.

google.cloud.pubsub.iam.PUBSUB_TOPICS_GET_IAM_POLICY = 'pubsub.topics.getIamPolicy'#

Permission: retrieve subscription IAM policies.

google.cloud.pubsub.iam.PUBSUB_TOPICS_LIST = 'pubsub.topics.list'#

Permission: list topics.

google.cloud.pubsub.iam.PUBSUB_TOPICS_SET_IAM_POLICY = 'pubsub.topics.setIamPolicy'#

Permission: update subscription IAM policies.

google.cloud.pubsub.iam.PUBSUB_SUBSCRIPTIONS_CONSUME = 'pubsub.subscriptions.consume'#

Permission: consume events from a subscription.

google.cloud.pubsub.iam.PUBSUB_SUBSCRIPTIONS_CREATE = 'pubsub.subscriptions.create'#

Permission: create subscriptions.

google.cloud.pubsub.iam.PUBSUB_SUBSCRIPTIONS_DELETE = 'pubsub.subscriptions.delete'#

Permission: delete subscriptions.

google.cloud.pubsub.iam.PUBSUB_SUBSCRIPTIONS_GET = 'pubsub.subscriptions.get'#

Permission: retrieve subscriptions.

google.cloud.pubsub.iam.PUBSUB_SUBSCRIPTIONS_GET_IAM_POLICY = 'pubsub.subscriptions.getIamPolicy'#

Permission: retrieve subscription IAM policies.

google.cloud.pubsub.iam.PUBSUB_SUBSCRIPTIONS_LIST = 'pubsub.subscriptions.list'#

Permission: list subscriptions.

google.cloud.pubsub.iam.PUBSUB_SUBSCRIPTIONS_SET_IAM_POLICY = 'pubsub.subscriptions.setIamPolicy'#

Permission: update subscription IAM policies.

google.cloud.pubsub.iam.PUBSUB_SUBSCRIPTIONS_UPDATE = 'pubsub.subscriptions.update'#

Permission: update subscriptions.

class google.cloud.pubsub.iam.Policy(etag=None, version=None)[source]#

Bases: google.cloud.iam.Policy

IAM Policy / Bindings.

See: https://cloud.google.com/pubsub/docs/reference/rest/Shared.Types/Policy https://cloud.google.com/pubsub/docs/reference/rest/Shared.Types/Binding

publishers#

Legacy access to owner role.

subscribers#

Legacy access to owner role.