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.



4236
4237
4238
# File 'lib/google/apis/sheets_v4/classes.rb', line 4236

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



4229
4230
4231
# File 'lib/google/apis/sheets_v4/classes.rb', line 4229

def big_query
  @big_query
end

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

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



4234
4235
4236
# File 'lib/google/apis/sheets_v4/classes.rb', line 4234

def parameters
  @parameters
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4241
4242
4243
4244
# File 'lib/google/apis/sheets_v4/classes.rb', line 4241

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