class Google::Apis::SheetsV4::UpdateDataSourceRequest

Updates a data source. After the data source is updated successfully, an execution is triggered to refresh the associated DATA_SOURCE sheet to read data from the updated 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]

fields[RW]

The fields that should be updated. At least one field must be specified. The root `dataSource` is implied and should not be specified. A single `“*”` can be used as short-hand for listing every field. Corresponds to the JSON property `fields` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/sheets_v4/classes.rb, line 10479
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 10484
def update!(**args)
  @data_source = args[:data_source] if args.key?(:data_source)
  @fields = args[:fields] if args.key?(:fields)
end