google.cloud.bigquery.external_config.GoogleSheetsOptions¶
-
class
google.cloud.bigquery.external_config.
GoogleSheetsOptions
[source]¶ Options that describe how to treat Google Sheets as BigQuery tables.
Methods
__init__
()Initialize self.
from_api_repr
(resource)Factory: construct a
GoogleSheetsOptions
instance given its API representation.Build an API representation of this object.
Attributes
The range of a sheet that BigQuery will query from.
The number of rows at the top of a sheet that BigQuery will skip when reading the data.
-
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
-
property
range
¶ The range of a sheet that BigQuery will query from.
See https://cloud.google.com/bigquery/docs/reference/rest/v2/tables#GoogleSheetsOptions.FIELDS.range
- Type
-
property
skip_leading_rows
¶ The number of rows at the top of a sheet that BigQuery will skip when reading the data.
- Type
-
classmethod