Class: Google::Apis::RunV1::TaskStatus

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/run_v1/classes.rb,
lib/google/apis/run_v1/representations.rb,
lib/google/apis/run_v1/representations.rb

Overview

TaskStatus represents the status of a task of a job execution.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ TaskStatus

Returns a new instance of TaskStatus.



3637
3638
3639
# File 'lib/google/apis/run_v1/classes.rb', line 3637

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

Instance Attribute Details

#completion_timeString

Optional. Represents time when the task was completed. It is not guaranteed to be set in happens-before order across separate operations. It is represented in RFC3339 form and is in UTC. +optional Corresponds to the JSON property completionTime

Returns:

  • (String)


3594
3595
3596
# File 'lib/google/apis/run_v1/classes.rb', line 3594

def completion_time
  @completion_time
end

#conditionsArray<Google::Apis::RunV1::GoogleCloudRunV1Condition>

Optional. The latest available observations of a task's current state. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to- completion/ +optional Corresponds to the JSON property conditions



3601
3602
3603
# File 'lib/google/apis/run_v1/classes.rb', line 3601

def conditions
  @conditions
end

#indexFixnum

Required. Index of the task, unique per execution, and beginning at 0. Corresponds to the JSON property index

Returns:

  • (Fixnum)


3606
3607
3608
# File 'lib/google/apis/run_v1/classes.rb', line 3606

def index
  @index
end

#last_attempt_resultGoogle::Apis::RunV1::TaskAttemptResult

Result of a task attempt. Corresponds to the JSON property lastAttemptResult



3611
3612
3613
# File 'lib/google/apis/run_v1/classes.rb', line 3611

def last_attempt_result
  @last_attempt_result
end

#log_uriString

Optional. URI where logs for this task can be found in Cloud Console. Corresponds to the JSON property logUri

Returns:

  • (String)


3616
3617
3618
# File 'lib/google/apis/run_v1/classes.rb', line 3616

def log_uri
  @log_uri
end

#observed_generationFixnum

Optional. The 'generation' of the execution that was last processed by the controller. Corresponds to the JSON property observedGeneration

Returns:

  • (Fixnum)


3622
3623
3624
# File 'lib/google/apis/run_v1/classes.rb', line 3622

def observed_generation
  @observed_generation
end

#retriedFixnum

Optional. The number of times this task was retried. Instances are retried when they fail up to the maxRetries limit. +optional Corresponds to the JSON property retried

Returns:

  • (Fixnum)


3628
3629
3630
# File 'lib/google/apis/run_v1/classes.rb', line 3628

def retried
  @retried
end

#start_timeString

Optional. Represents time when the task started to run. It is not guaranteed to be set in happens-before order across separate operations. It is represented in RFC3339 form and is in UTC. +optional Corresponds to the JSON property startTime

Returns:

  • (String)


3635
3636
3637
# File 'lib/google/apis/run_v1/classes.rb', line 3635

def start_time
  @start_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3642
3643
3644
3645
3646
3647
3648
3649
3650
3651
# File 'lib/google/apis/run_v1/classes.rb', line 3642

def update!(**args)
  @completion_time = args[:completion_time] if args.key?(:completion_time)
  @conditions = args[:conditions] if args.key?(:conditions)
  @index = args[:index] if args.key?(:index)
  @last_attempt_result = args[:last_attempt_result] if args.key?(:last_attempt_result)
  @log_uri = args[:log_uri] if args.key?(:log_uri)
  @observed_generation = args[:observed_generation] if args.key?(:observed_generation)
  @retried = args[:retried] if args.key?(:retried)
  @start_time = args[:start_time] if args.key?(:start_time)
end