Close httplib2 connections.
list(parent, pageSize=None, pageToken=None, x__xgafv=None)
Lists Cloud Spanner database roles.
Retrieves the next page of results.
close()
Close httplib2 connections.
list(parent, pageSize=None, pageToken=None, x__xgafv=None)
Lists Cloud Spanner database roles.
Args:
parent: string, Required. The database whose roles should be listed. Values are of the form `projects//instances//databases//databaseRoles`. (required)
pageSize: integer, Number of database roles to be returned in the response. If 0 or less, defaults to the server's maximum allowed page size.
pageToken: string, If non-empty, `page_token` should contain a next_page_token from a previous ListDatabaseRolesResponse.
x__xgafv: string, V1 error format.
Allowed values
1 - v1 error format
2 - v2 error format
Returns:
An object of the form:
{ # The response for ListDatabaseRoles.
"databaseRoles": [ # Database roles that matched the request.
{ # A Cloud Spanner database role.
"name": "A String", # Required. The name of the database role. Values are of the form `projects//instances//databases//databaseRoles/ {role}`, where `` is as specified in the `CREATE ROLE` DDL statement. This name can be passed to Get/Set IAMPolicy methods to identify the database role.
},
],
"nextPageToken": "A String", # `next_page_token` can be sent in a subsequent ListDatabaseRoles call to fetch more of the matching roles.
}
list_next()
Retrieves the next page of results.
Args:
previous_request: The request for the previous page. (required)
previous_response: The response from the request for the previous page. (required)
Returns:
A request object that you can call 'execute()' on to request the next
page. Returns None if there are no more items in the collection.