class Google::Apis::SheetsV4::RefreshDataSourceRequest

Refreshes one or multiple data source objects in the spreadsheet by the specified references. The request requires an additional `bigquery.readonly` OAuth scope. If there are multiple refresh requests referencing the same data source objects in one batch, only the last refresh request is processed, and all those requests will have the same response accordingly.

Attributes

data_source_id[RW]

Reference to a DataSource. If specified, refreshes all associated data source objects for the data source. Corresponds to the JSON property `dataSourceId` @return [String]

force[RW]

Refreshes the data source objects regardless of the current state. If not set and a referenced data source object was in error state, the refresh will fail immediately. Corresponds to the JSON property `force` @return [Boolean]

force?[RW]

Refreshes the data source objects regardless of the current state. If not set and a referenced data source object was in error state, the refresh will fail immediately. Corresponds to the JSON property `force` @return [Boolean]

is_all[RW]

Refreshes all existing data source objects in the spreadsheet. Corresponds to the JSON property `isAll` @return [Boolean]

is_all?[RW]

Refreshes all existing data source objects in the spreadsheet. Corresponds to the JSON property `isAll` @return [Boolean]

references[RW]

A list of references to data source objects. Corresponds to the JSON property `references` @return [Google::Apis::SheetsV4::DataSourceObjectReferences]

Public Class Methods

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