class Google::Apis::SheetsV4::DataExecutionStatus

The data execution status. A data execution is created to sync a data source object with the latest data from a DataSource. It is usually scheduled to run at background, you can check its state to tell if an execution completes There are several scenarios where a data execution is triggered to run: * Adding a data source creates an associated data source sheet as well as a data execution to sync the data from the data source to the sheet. * Updating a data source creates a data execution to refresh the associated data source sheet similarly. * You can send refresh request to explicitly refresh one or multiple data source objects.

Attributes

error_code[RW]

The error code. Corresponds to the JSON property `errorCode` @return [String]

error_message[RW]

The error message, which may be empty. Corresponds to the JSON property `errorMessage` @return [String]

last_refresh_time[RW]

Gets the time the data last successfully refreshed. Corresponds to the JSON property `lastRefreshTime` @return [String]

state[RW]

The state of the data execution. Corresponds to the JSON property `state` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/sheets_v4/classes.rb, line 3621
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/sheets_v4/classes.rb, line 3626
def update!(**args)
  @error_code = args[:error_code] if args.key?(:error_code)
  @error_message = args[:error_message] if args.key?(:error_message)
  @last_refresh_time = args[:last_refresh_time] if args.key?(:last_refresh_time)
  @state = args[:state] if args.key?(:state)
end