google.cloud.bigquery.external_config.GoogleSheetsOptions#

Methods

from_api_repr(resource)

Factory: construct a GoogleSheetsOptions instance given its API representation.

to_api_repr()

Build an API representation of this object.

Attributes

skip_leading_rows

The number of rows at the top of a sheet that BigQuery will skip when reading the data.


class google.cloud.bigquery.external_config.GoogleSheetsOptions[source]#

Bases: object

Options that describe how to treat Google Sheets as BigQuery tables.

classmethod from_api_repr(resource)[source]#

Factory: construct a GoogleSheetsOptions instance given its API representation.

Parameters

resource (Dict[str, Any]) – Definition of a GoogleSheetsOptions instance in the same representation as is returned from the API.

Returns

Configuration parsed from resource.

Return type

GoogleSheetsOptions

property skip_leading_rows#

The number of rows at the top of a sheet that BigQuery will skip when reading the data.

See https://cloud.google.com/bigquery/docs/reference/rest/v2/jobs#configuration.query.tableDefinitions.(key).googleSheetsOptions.skipLeadingRows https://cloud.google.com/bigquery/docs/reference/rest/v2/tables#externalDataConfiguration.googleSheetsOptions.skipLeadingRows

Type

int

to_api_repr()[source]#

Build an API representation of this object.

Returns

A dictionary in the format used by the BigQuery API.

Return type

Dict[str, Any]