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.



1115
1116
1117
# File 'lib/google/apis/run_v1/classes.rb', line 1115

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

Instance Attribute Details

#cancelled_countFixnum

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

Returns:

  • (Fixnum)


1061
1062
1063
# File 'lib/google/apis/run_v1/classes.rb', line 1061

def cancelled_count
  @cancelled_count
end

#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)


1068
1069
1070
# File 'lib/google/apis/run_v1/classes.rb', line 1068

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



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

def conditions
  @conditions
end

#failed_countFixnum

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

Returns:

  • (Fixnum)


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

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)


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

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)


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

def observed_generation
  @observed_generation
end

#retried_countFixnum

Optional. The number of tasks which have retried at least once. +optional Corresponds to the JSON property retriedCount

Returns:

  • (Fixnum)


1096
1097
1098
# File 'lib/google/apis/run_v1/classes.rb', line 1096

def retried_count
  @retried_count
end

#running_countFixnum

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

Returns:

  • (Fixnum)


1101
1102
1103
# File 'lib/google/apis/run_v1/classes.rb', line 1101

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)


1108
1109
1110
# File 'lib/google/apis/run_v1/classes.rb', line 1108

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)


1113
1114
1115
# File 'lib/google/apis/run_v1/classes.rb', line 1113

def succeeded_count
  @succeeded_count
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
# File 'lib/google/apis/run_v1/classes.rb', line 1120

def update!(**args)
  @cancelled_count = args[:cancelled_count] if args.key?(:cancelled_count)
  @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)
  @retried_count = args[:retried_count] if args.key?(:retried_count)
  @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