Class: Google::Apis::SheetsV4::DataSourceSpec

Inherits:
Object
  • Object
show all
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

This specifies the details of the data source. For example, for BigQuery, this specifies information about the BigQuery source.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ DataSourceSpec

Returns a new instance of DataSourceSpec.



4329
4330
4331
# File 'lib/google/apis/sheets_v4/classes.rb', line 4329

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#big_queryGoogle::Apis::SheetsV4::BigQueryDataSourceSpec

The specification of a BigQuery data source that's connected to a sheet. Corresponds to the JSON property bigQuery



4317
4318
4319
# File 'lib/google/apis/sheets_v4/classes.rb', line 4317

def big_query
  @big_query
end

#lookerGoogle::Apis::SheetsV4::LookerDataSourceSpec

The specification of a Looker data source. Corresponds to the JSON property looker



4322
4323
4324
# File 'lib/google/apis/sheets_v4/classes.rb', line 4322

def looker
  @looker
end

#parametersArray<Google::Apis::SheetsV4::DataSourceParameter>

The parameters of the data source, used when querying the data source. Corresponds to the JSON property parameters



4327
4328
4329
# File 'lib/google/apis/sheets_v4/classes.rb', line 4327

def parameters
  @parameters
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4334
4335
4336
4337
4338
# File 'lib/google/apis/sheets_v4/classes.rb', line 4334

def update!(**args)
  @big_query = args[:big_query] if args.key?(:big_query)
  @looker = args[:looker] if args.key?(:looker)
  @parameters = args[:parameters] if args.key?(:parameters)
end