class Google::Apis::SheetsV4::AddDataSourceRequest
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.
Attributes
data_source[RW]
Information about an external data source in the spreadsheet. Corresponds to the JSON property `dataSource` @return [Google::Apis::SheetsV4::DataSource]
Public Class Methods
new(**args)
click to toggle source
# File lib/google/apis/sheets_v4/classes.rb, line 139 def initialize(**args) update!(**args) end
Public Instance Methods
update!(**args)
click to toggle source
Update properties of this object
# File lib/google/apis/sheets_v4/classes.rb, line 144 def update!(**args) @data_source = args[:data_source] if args.key?(:data_source) end