Class: Google::Apis::BatchV1::TaskStatus

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 of a task.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ TaskStatus

Returns a new instance of TaskStatus.



2606
2607
2608
# File 'lib/google/apis/batch_v1/classes.rb', line 2606

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

Instance Attribute Details

#stateString

Task state. Corresponds to the JSON property state

Returns:

  • (String)


2599
2600
2601
# File 'lib/google/apis/batch_v1/classes.rb', line 2599

def state
  @state
end

#status_eventsArray<Google::Apis::BatchV1::StatusEvent>

Detailed info about why the state is reached. Corresponds to the JSON property statusEvents



2604
2605
2606
# File 'lib/google/apis/batch_v1/classes.rb', line 2604

def status_events
  @status_events
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2611
2612
2613
2614
# File 'lib/google/apis/batch_v1/classes.rb', line 2611

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