Class: Google::Apis::SheetsV4::CancelDataSourceRefreshStatus

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

The status of cancelling a single data source object refresh.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ CancelDataSourceRefreshStatus

Returns a new instance of CancelDataSourceRefreshStatus.



2431
2432
2433
# File 'lib/google/apis/sheets_v4/classes.rb', line 2431

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

Instance Attribute Details

#referenceGoogle::Apis::SheetsV4::DataSourceObjectReference

Reference to a data source object. Corresponds to the JSON property reference



2423
2424
2425
# File 'lib/google/apis/sheets_v4/classes.rb', line 2423

def reference
  @reference
end

#refresh_cancellation_statusGoogle::Apis::SheetsV4::RefreshCancellationStatus

The status of a refresh cancellation. You can send a cancel request to explicitly cancel one or multiple data source object refreshes. Corresponds to the JSON property refreshCancellationStatus



2429
2430
2431
# File 'lib/google/apis/sheets_v4/classes.rb', line 2429

def refresh_cancellation_status
  @refresh_cancellation_status
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2436
2437
2438
2439
# File 'lib/google/apis/sheets_v4/classes.rb', line 2436

def update!(**args)
  @reference = args[:reference] if args.key?(:reference)
  @refresh_cancellation_status = args[:refresh_cancellation_status] if args.key?(:refresh_cancellation_status)
end