BigQuery API . projects

Instance Methods

close()

Close httplib2 connections.

getServiceAccount(projectId)

Returns the email address of the service account for your project used for interactions with Google Cloud KMS.

list(maxResults=None, pageToken=None)

Lists all projects to which you have been granted any project role.

list_next(previous_request, previous_response)

Retrieves the next page of results.

Method Details

close()
Close httplib2 connections.
getServiceAccount(projectId)
Returns the email address of the service account for your project used for interactions with Google Cloud KMS.

Args:
  projectId: string, Project ID for which the service account is requested. (required)

Returns:
  An object of the form:

    {
  "email": "A String", # The service account email address.
  "kind": "bigquery#getServiceAccountResponse", # The resource type of the response.
}
list(maxResults=None, pageToken=None)
Lists all projects to which you have been granted any project role.

Args:
  maxResults: integer, Maximum number of results to return
  pageToken: string, Page token, returned by a previous call, to request the next page of results

Returns:
  An object of the form:

    {
  "etag": "A String", # A hash of the page of results
  "kind": "bigquery#projectList", # The type of list.
  "nextPageToken": "A String", # A token to request the next page of results.
  "projects": [ # Projects to which you have at least READ access.
    {
      "friendlyName": "A String", # A descriptive name for this project.
      "id": "A String", # An opaque ID of this project.
      "kind": "bigquery#project", # The resource type.
      "numericId": "A String", # The numeric ID of this project.
      "projectReference": { # A unique reference to this project.
        "projectId": "A String", # [Required] ID of the project. Can be either the numeric ID or the assigned ID of the project.
      },
    },
  ],
  "totalItems": 42, # The total number of projects in the list.
}
list_next(previous_request, previous_response)
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.