Class: Google::Apis::SheetsV4::RefreshCancellationStatus

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 a refresh cancellation. You can send a cancel request to explicitly cancel one or multiple data source object refreshes.

Instance Attribute Summary collapse

Instance Method Summary collapse

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_codeString

The error code. Corresponds to the JSON property errorCode

Returns:

  • (String)


7849
7850
7851
# File 'lib/google/apis/sheets_v4/classes.rb', line 7849

def error_code
  @error_code
end

#stateString

The state of a call to cancel a refresh in Sheets. Corresponds to the JSON property state

Returns:

  • (String)


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