Class: Google::Apis::SheetsV4::RefreshDataSourceObjectExecutionStatus

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 execution status of refreshing one data source object.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ RefreshDataSourceObjectExecutionStatus

Returns a new instance of RefreshDataSourceObjectExecutionStatus.



7889
7890
7891
# File 'lib/google/apis/sheets_v4/classes.rb', line 7889

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

Instance Attribute Details

#data_execution_statusGoogle::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. Corresponds to the JSON property dataExecutionStatus



7882
7883
7884
# File 'lib/google/apis/sheets_v4/classes.rb', line 7882

def data_execution_status
  @data_execution_status
end

#referenceGoogle::Apis::SheetsV4::DataSourceObjectReference

Reference to a data source object. Corresponds to the JSON property reference



7887
7888
7889
# File 'lib/google/apis/sheets_v4/classes.rb', line 7887

def reference
  @reference
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



7894
7895
7896
7897
# File 'lib/google/apis/sheets_v4/classes.rb', line 7894

def update!(**args)
  @data_execution_status = args[:data_execution_status] if args.key?(:data_execution_status)
  @reference = args[:reference] if args.key?(:reference)
end