The
role_bindings client methods are currently in BETA. The API may change without notice. A one-time warning is emitted on first use.SPACE or PROJECT). Attempting to create a binding when one already exists for the user on the resource raises an error (HTTP 409 Conflict).
List Role Bindings
List role bindings for your account, filtered by resource type.resource_type is required; optionally filter to a single user with user_id. To list a service keyās bindings, pass its bot userās ID (bot_user.id from api_keys.create_service_key or api_keys.list). The server enforces an upper bound of 100 on limit.
Create a Role Binding
Assign a role to a user on a resource. Only one binding per user per resource is allowed.resource_id must identify a resource of the type given by resource_type. For a service key, user_id is the keyās bot user ID (bot_user.id), not the ID of the person who created the key.
Get a Role Binding
Update a Role Binding
Only therole_id can be changed. The user, resource type, and resource ID remain the same.