Class: Google::Apis::SheetsV4::CancelDataSourceRefreshRequest

Inherits:
Object
  • Object
show all
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

Cancels one or multiple refreshes of data source objects in the spreadsheet by the specified references. The request requires an additional bigquery. readonly OAuth scope if you are cancelling a refresh on a BigQuery data source.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ CancelDataSourceRefreshRequest

Returns a new instance of CancelDataSourceRefreshRequest.



2441
2442
2443
# File 'lib/google/apis/sheets_v4/classes.rb', line 2441

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#data_source_idString

Reference to a DataSource. If specified, cancels all associated data source object refreshes for this data source. Corresponds to the JSON property dataSourceId

Returns:

  • (String)


2427
2428
2429
# File 'lib/google/apis/sheets_v4/classes.rb', line 2427

def data_source_id
  @data_source_id
end

#is_allBoolean Also known as: is_all?

Cancels all existing data source object refreshes for all data sources in the spreadsheet. Corresponds to the JSON property isAll

Returns:

  • (Boolean)


2433
2434
2435
# File 'lib/google/apis/sheets_v4/classes.rb', line 2433

def is_all
  @is_all
end

#referencesGoogle::Apis::SheetsV4::DataSourceObjectReferences

A list of references to data source objects. Corresponds to the JSON property references



2439
2440
2441
# File 'lib/google/apis/sheets_v4/classes.rb', line 2439

def references
  @references
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2446
2447
2448
2449
2450
# File 'lib/google/apis/sheets_v4/classes.rb', line 2446

def update!(**args)
  @data_source_id = args[:data_source_id] if args.key?(:data_source_id)
  @is_all = args[:is_all] if args.key?(:is_all)
  @references = args[:references] if args.key?(:references)
end