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

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/sheets_v4/classes.rb,
generated/google/apis/sheets_v4/representations.rb,
generated/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.



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

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



4227
4228
4229
# File 'generated/google/apis/sheets_v4/classes.rb', line 4227

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



4232
4233
4234
# File 'generated/google/apis/sheets_v4/classes.rb', line 4232

def parameters
  @parameters
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4239
4240
4241
4242
# File 'generated/google/apis/sheets_v4/classes.rb', line 4239

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