Class: Google::Apis::BatchV1::StatusEvent

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ StatusEvent

Returns a new instance of StatusEvent.



2307
2308
2309
# File 'lib/google/apis/batch_v1/classes.rb', line 2307

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

Instance Attribute Details

#descriptionString

Description of the event. Corresponds to the JSON property description

Returns:

  • (String)


2284
2285
2286
# File 'lib/google/apis/batch_v1/classes.rb', line 2284

def description
  @description
end

#event_timeString

The time this event occurred. Corresponds to the JSON property eventTime

Returns:

  • (String)


2289
2290
2291
# File 'lib/google/apis/batch_v1/classes.rb', line 2289

def event_time
  @event_time
end

#task_executionGoogle::Apis::BatchV1::TaskExecution

This Task Execution field includes detail information for task execution procedures, based on StatusEvent types. Corresponds to the JSON property taskExecution



2295
2296
2297
# File 'lib/google/apis/batch_v1/classes.rb', line 2295

def task_execution
  @task_execution
end

#task_stateString

Task State. This field is only defined for task-level status events. Corresponds to the JSON property taskState

Returns:

  • (String)


2300
2301
2302
# File 'lib/google/apis/batch_v1/classes.rb', line 2300

def task_state
  @task_state
end

#typeString

Type of the event. Corresponds to the JSON property type

Returns:

  • (String)


2305
2306
2307
# File 'lib/google/apis/batch_v1/classes.rb', line 2305

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2312
2313
2314
2315
2316
2317
2318
# File 'lib/google/apis/batch_v1/classes.rb', line 2312

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