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.
8049 8050 8051 |
# File 'lib/google/apis/sheets_v4/classes.rb', line 8049 def initialize(**args) update!(**args) end |
Instance Attribute Details
#error_code ⇒ String
The error code.
Corresponds to the JSON property errorCode
8042 8043 8044 |
# File 'lib/google/apis/sheets_v4/classes.rb', line 8042 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
8047 8048 8049 |
# File 'lib/google/apis/sheets_v4/classes.rb', line 8047 def state @state end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
8054 8055 8056 8057 |
# File 'lib/google/apis/sheets_v4/classes.rb', line 8054 def update!(**args) @error_code = args[:error_code] if args.key?(:error_code) @state = args[:state] if args.key?(:state) end |