Class: Google::Apis::SheetsV4::AddDataSourceRequest
- Inherits:
-
Object
- Object
- Google::Apis::SheetsV4::AddDataSourceRequest
- 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
Adds a data source. After the data source is added successfully, an associated
DATA_SOURCE sheet is created and an execution is triggered to refresh the
sheet to read data from the data source. The request requires an additional
bigquery.readonly
OAuth scope if you are adding a BigQuery data source.
Instance Attribute Summary collapse
-
#data_source ⇒ Google::Apis::SheetsV4::DataSource
Information about an external data source in the spreadsheet.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AddDataSourceRequest
constructor
A new instance of AddDataSourceRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ AddDataSourceRequest
Returns a new instance of AddDataSourceRequest.
139 140 141 |
# File 'lib/google/apis/sheets_v4/classes.rb', line 139 def initialize(**args) update!(**args) end |
Instance Attribute Details
#data_source ⇒ Google::Apis::SheetsV4::DataSource
Information about an external data source in the spreadsheet.
Corresponds to the JSON property dataSource
137 138 139 |
# File 'lib/google/apis/sheets_v4/classes.rb', line 137 def data_source @data_source end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
144 145 146 |
# File 'lib/google/apis/sheets_v4/classes.rb', line 144 def update!(**args) @data_source = args[:data_source] if args.key?(:data_source) end |