Class: Google::Apis::BatchV1::StatusEvent
- Inherits:
-
Object
- Object
- Google::Apis::BatchV1::StatusEvent
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/batch_v1/classes.rb,
lib/google/apis/batch_v1/representations.rb,
lib/google/apis/batch_v1/representations.rb
Overview
Status event.
Instance Attribute Summary collapse
-
#description ⇒ String
Description of the event.
-
#event_time ⇒ String
The time this event occurred.
-
#task_execution ⇒ Google::Apis::BatchV1::TaskExecution
This Task Execution field includes detail information for task execution procedures, based on StatusEvent types.
-
#task_state ⇒ String
Task State.
-
#type ⇒ String
Type of the event.
Instance Method Summary collapse
-
#initialize(**args) ⇒ StatusEvent
constructor
A new instance of StatusEvent.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ StatusEvent
Returns a new instance of StatusEvent.
2315 2316 2317 |
# File 'lib/google/apis/batch_v1/classes.rb', line 2315 def initialize(**args) update!(**args) end |
Instance Attribute Details
#description ⇒ String
Description of the event.
Corresponds to the JSON property description
2292 2293 2294 |
# File 'lib/google/apis/batch_v1/classes.rb', line 2292 def description @description end |
#event_time ⇒ String
The time this event occurred.
Corresponds to the JSON property eventTime
2297 2298 2299 |
# File 'lib/google/apis/batch_v1/classes.rb', line 2297 def event_time @event_time end |
#task_execution ⇒ Google::Apis::BatchV1::TaskExecution
This Task Execution field includes detail information for task execution
procedures, based on StatusEvent types.
Corresponds to the JSON property taskExecution
2303 2304 2305 |
# File 'lib/google/apis/batch_v1/classes.rb', line 2303 def task_execution @task_execution end |
#task_state ⇒ String
Task State. This field is only defined for task-level status events.
Corresponds to the JSON property taskState
2308 2309 2310 |
# File 'lib/google/apis/batch_v1/classes.rb', line 2308 def task_state @task_state end |
#type ⇒ String
Type of the event.
Corresponds to the JSON property type
2313 2314 2315 |
# File 'lib/google/apis/batch_v1/classes.rb', line 2313 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2320 2321 2322 2323 2324 2325 2326 |
# File 'lib/google/apis/batch_v1/classes.rb', line 2320 def update!(**args) @description = args[:description] if args.key?(:description) @event_time = args[:event_time] if args.key?(:event_time) @task_execution = args[:task_execution] if args.key?(:task_execution) @task_state = args[:task_state] if args.key?(:task_state) @type = args[:type] if args.key?(:type) end |