Class: Google::Apis::RunV1::ExecutionStatus

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

ExecutionStatus represents the current state of a Execution.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ExecutionStatus

Returns a new instance of ExecutionStatus.



1105
1106
1107
# File 'lib/google/apis/run_v1/classes.rb', line 1105

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

Instance Attribute Details

#completion_timeString

Optional. Represents time when the execution 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)


1063
1064
1065
# File 'lib/google/apis/run_v1/classes.rb', line 1063

def completion_time
  @completion_time
end

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

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



1070
1071
1072
# File 'lib/google/apis/run_v1/classes.rb', line 1070

def conditions
  @conditions
end

#failed_countFixnum

Optional. The number of tasks which reached phase Failed. +optional Corresponds to the JSON property failedCount

Returns:

  • (Fixnum)


1075
1076
1077
# File 'lib/google/apis/run_v1/classes.rb', line 1075

def failed_count
  @failed_count
end

#log_uriString

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

Returns:

  • (String)


1080
1081
1082
# File 'lib/google/apis/run_v1/classes.rb', line 1080

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)


1086
1087
1088
# File 'lib/google/apis/run_v1/classes.rb', line 1086

def observed_generation
  @observed_generation
end

#running_countFixnum

Optional. The number of actively running tasks. +optional Corresponds to the JSON property runningCount

Returns:

  • (Fixnum)


1091
1092
1093
# File 'lib/google/apis/run_v1/classes.rb', line 1091

def running_count
  @running_count
end

#start_timeString

Optional. Represents time when the execution 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)


1098
1099
1100
# File 'lib/google/apis/run_v1/classes.rb', line 1098

def start_time
  @start_time
end

#succeeded_countFixnum

Optional. The number of tasks which reached phase Succeeded. +optional Corresponds to the JSON property succeededCount

Returns:

  • (Fixnum)


1103
1104
1105
# File 'lib/google/apis/run_v1/classes.rb', line 1103

def succeeded_count
  @succeeded_count
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
# File 'lib/google/apis/run_v1/classes.rb', line 1110

def update!(**args)
  @completion_time = args[:completion_time] if args.key?(:completion_time)
  @conditions = args[:conditions] if args.key?(:conditions)
  @failed_count = args[:failed_count] if args.key?(:failed_count)
  @log_uri = args[:log_uri] if args.key?(:log_uri)
  @observed_generation = args[:observed_generation] if args.key?(:observed_generation)
  @running_count = args[:running_count] if args.key?(:running_count)
  @start_time = args[:start_time] if args.key?(:start_time)
  @succeeded_count = args[:succeeded_count] if args.key?(:succeeded_count)
end