Class: Google::Apis::SheetsV4::DataExecutionStatus
- Inherits:
-
Object
- Object
- Google::Apis::SheetsV4::DataExecutionStatus
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/sheets_v4/classes.rb,
generated/google/apis/sheets_v4/representations.rb,
generated/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
-
#error_code ⇒ String
The error code.
-
#error_message ⇒ String
The error message, which may be empty.
-
#last_refresh_time ⇒ String
Gets the time the data last successfully refreshed.
-
#state ⇒ String
The state of the data execution.
Instance Method Summary collapse
-
#initialize(**args) ⇒ DataExecutionStatus
constructor
A new instance of DataExecutionStatus.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ DataExecutionStatus
Returns a new instance of DataExecutionStatus.
3619 3620 3621 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 3619 def initialize(**args) update!(**args) end |
Instance Attribute Details
#error_code ⇒ String
The error code.
Corresponds to the JSON property errorCode
3602 3603 3604 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 3602 def error_code @error_code end |
#error_message ⇒ String
The error message, which may be empty.
Corresponds to the JSON property errorMessage
3607 3608 3609 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 3607 def @error_message end |
#last_refresh_time ⇒ String
Gets the time the data last successfully refreshed.
Corresponds to the JSON property lastRefreshTime
3612 3613 3614 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 3612 def last_refresh_time @last_refresh_time end |
#state ⇒ String
The state of the data execution.
Corresponds to the JSON property state
3617 3618 3619 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 3617 def state @state end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3624 3625 3626 3627 3628 3629 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 3624 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 |