Class: Google::Apis::SheetsV4::RefreshCancellationStatus
- Inherits:
-
Object
- Object
- Google::Apis::SheetsV4::RefreshCancellationStatus
- 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 a refresh cancellation. You can send a cancel request to explicitly cancel one or multiple data source object refreshes.
Instance Attribute Summary collapse
-
#error_code ⇒ String
The error code.
-
#state ⇒ String
The state of a call to cancel a refresh in Sheets.
Instance Method Summary collapse
-
#initialize(**args) ⇒ RefreshCancellationStatus
constructor
A new instance of RefreshCancellationStatus.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ RefreshCancellationStatus
Returns a new instance of RefreshCancellationStatus.
7856 7857 7858 |
# File 'lib/google/apis/sheets_v4/classes.rb', line 7856 def initialize(**args) update!(**args) end |
Instance Attribute Details
#error_code ⇒ String
The error code.
Corresponds to the JSON property errorCode
7849 7850 7851 |
# File 'lib/google/apis/sheets_v4/classes.rb', line 7849 def error_code @error_code end |
#state ⇒ String
The state of a call to cancel a refresh in Sheets.
Corresponds to the JSON property state
7854 7855 7856 |
# File 'lib/google/apis/sheets_v4/classes.rb', line 7854 def state @state end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
7861 7862 7863 7864 |
# File 'lib/google/apis/sheets_v4/classes.rb', line 7861 def update!(**args) @error_code = args[:error_code] if args.key?(:error_code) @state = args[:state] if args.key?(:state) end |