Class: Google::Apis::SheetsV4::DataExecutionStatus

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 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.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ DataExecutionStatus

Returns a new instance of DataExecutionStatus.



3709
3710
3711
# File 'lib/google/apis/sheets_v4/classes.rb', line 3709

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

Instance Attribute Details

#error_codeString

The error code. Corresponds to the JSON property errorCode

Returns:

  • (String)


3692
3693
3694
# File 'lib/google/apis/sheets_v4/classes.rb', line 3692

def error_code
  @error_code
end

#error_messageString

The error message, which may be empty. Corresponds to the JSON property errorMessage

Returns:

  • (String)


3697
3698
3699
# File 'lib/google/apis/sheets_v4/classes.rb', line 3697

def error_message
  @error_message
end

#last_refresh_timeString

Gets the time the data last successfully refreshed. Corresponds to the JSON property lastRefreshTime

Returns:

  • (String)


3702
3703
3704
# File 'lib/google/apis/sheets_v4/classes.rb', line 3702

def last_refresh_time
  @last_refresh_time
end

#stateString

The state of the data execution. Corresponds to the JSON property state

Returns:

  • (String)


3707
3708
3709
# File 'lib/google/apis/sheets_v4/classes.rb', line 3707

def state
  @state
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3714
3715
3716
3717
3718
3719
# File 'lib/google/apis/sheets_v4/classes.rb', line 3714

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