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:

    {
    "kind": "bigquery#getServiceAccountResponse", # The resource type of the response.
    "email": "A String", # The service account email address.
  }
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:

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