Globals

Abstract types

ClientConfig

object

Properties

Parameter

projectId

Optional

string

The project ID from the Google Developer's Console, e.g. 'grape-spaceship-123'. We will also check the environment variable GCLOUD_PROJECT for your project ID. If your app is running in an environment which supports Application Default Credentials, your project ID will be detected automatically.

keyFilename

Optional

string

Full path to the a .json, .pem, or .p12 key downloaded from the Google Developers Console. If you provide a path to a JSON file, the projectId option above is not necessary. NOTE: .pem and .p12 require you to specify the email option as well.

email

Optional

string

Account email address. Required when using a .pem or .p12 keyFilename.

credentials

Optional

object

Credentials object.

autoRetry

Optional

boolean

Automatically retry requests if the response is related to rate limits or certain intermittent server errors. We will exponentially backoff subsequent requests by default.

maxRetries

Optional

number

Maximum number of automatic retries attempted before returning the error.

promise

Optional

Constructor

Custom promise module to use instead of native Promises.

ManualQueryResultsCallback

ManualQueryResultsCallback(err, rows, nextQuery, apiResponse)

Parameter

err

Error

An error returned while making this request.

Value may be null.

rows

array

The results of the job.

nextQuery

object

A pre-made configuration object for your next request. This will be null if no additional results are available. If the query is not yet complete, you may get empty rows and non- null nextQuery that you should use for your next request.

Value may be null.

apiResponse

object

The full API response.

QueryResultsCallback

QueryResultsCallback(err, rows)

Parameter

err

Error

An error returned while making this request.

Value may be null.

rows

array

The results of the job.