Class: Google::Apis::SheetsV4::BigQueryDataSourceSpec
- Inherits:
-
Object
- Object
- Google::Apis::SheetsV4::BigQueryDataSourceSpec
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/sheets_v4/classes.rb,
lib/google/apis/sheets_v4/representations.rb,
lib/google/apis/sheets_v4/representations.rb
Overview
The specification of a BigQuery data source that's connected to a sheet.
Instance Attribute Summary collapse
-
#project_id ⇒ String
The ID of a BigQuery enabled GCP project with a billing account attached.
-
#query_spec ⇒ Google::Apis::SheetsV4::BigQueryQuerySpec
Specifies a custom BigQuery query.
-
#table_spec ⇒ Google::Apis::SheetsV4::BigQueryTableSpec
Specifies a BigQuery table definition.
Instance Method Summary collapse
-
#initialize(**args) ⇒ BigQueryDataSourceSpec
constructor
A new instance of BigQueryDataSourceSpec.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ BigQueryDataSourceSpec
Returns a new instance of BigQueryDataSourceSpec.
1984 1985 1986 |
# File 'lib/google/apis/sheets_v4/classes.rb', line 1984 def initialize(**args) update!(**args) end |
Instance Attribute Details
#project_id ⇒ String
The ID of a BigQuery enabled GCP project with a billing account attached. For
any queries executed against the data source, the project is charged.
Corresponds to the JSON property projectId
1971 1972 1973 |
# File 'lib/google/apis/sheets_v4/classes.rb', line 1971 def project_id @project_id end |
#query_spec ⇒ Google::Apis::SheetsV4::BigQueryQuerySpec
Specifies a custom BigQuery query.
Corresponds to the JSON property querySpec
1976 1977 1978 |
# File 'lib/google/apis/sheets_v4/classes.rb', line 1976 def query_spec @query_spec end |
#table_spec ⇒ Google::Apis::SheetsV4::BigQueryTableSpec
Specifies a BigQuery table definition. Only native tables is allowed.
Corresponds to the JSON property tableSpec
1982 1983 1984 |
# File 'lib/google/apis/sheets_v4/classes.rb', line 1982 def table_spec @table_spec end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1989 1990 1991 1992 1993 |
# File 'lib/google/apis/sheets_v4/classes.rb', line 1989 def update!(**args) @project_id = args[:project_id] if args.key?(:project_id) @query_spec = args[:query_spec] if args.key?(:query_spec) @table_spec = args[:table_spec] if args.key?(:table_spec) end |