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.



4467
4468
4469
# File 'lib/google/apis/sheets_v4/classes.rb', line 4467

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



4455
4456
4457
# File 'lib/google/apis/sheets_v4/classes.rb', line 4455

def big_query
  @big_query
end

#lookerGoogle::Apis::SheetsV4::LookerDataSourceSpec

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



4460
4461
4462
# File 'lib/google/apis/sheets_v4/classes.rb', line 4460

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



4465
4466
4467
# File 'lib/google/apis/sheets_v4/classes.rb', line 4465

def parameters
  @parameters
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4472
4473
4474
4475
4476
# File 'lib/google/apis/sheets_v4/classes.rb', line 4472

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