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 an Execution.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ExecutionStatus

Returns a new instance of ExecutionStatus.



1133
1134
1135
# File 'lib/google/apis/run_v1/classes.rb', line 1133

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

Instance Attribute Details

#cancelled_countFixnum

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

Returns:

  • (Fixnum)


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

def cancelled_count
  @cancelled_count
end

#completion_timeString

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


1083
1084
1085
# File 'lib/google/apis/run_v1/classes.rb', line 1083

def completion_time
  @completion_time
end

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

Optional. Conditions communicate information about ongoing/complete reconciliation processes that bring the "spec" inline with the observed state of the world. Execution-specific conditions include: * ResourcesAvailable: True when underlying resources have been provisioned. * Started: True when the execution has started to execute. * Completed: True when the execution has succeeded. False when the execution has failed. Corresponds to the JSON property conditions



1093
1094
1095
# File 'lib/google/apis/run_v1/classes.rb', line 1093

def conditions
  @conditions
end

#failed_countFixnum

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

Returns:

  • (Fixnum)


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

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)


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

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)


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

def observed_generation
  @observed_generation
end

#retried_countFixnum

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

Returns:

  • (Fixnum)


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

def retried_count
  @retried_count
end

#running_countFixnum

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

Returns:

  • (Fixnum)


1119
1120
1121
# File 'lib/google/apis/run_v1/classes.rb', line 1119

def running_count
  @running_count
end

#start_timeString

Optional. Represents the time that 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. Corresponds to the JSON property startTime

Returns:

  • (String)


1126
1127
1128
# File 'lib/google/apis/run_v1/classes.rb', line 1126

def start_time
  @start_time
end

#succeeded_countFixnum

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

Returns:

  • (Fixnum)


1131
1132
1133
# File 'lib/google/apis/run_v1/classes.rb', line 1131

def succeeded_count
  @succeeded_count
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
# File 'lib/google/apis/run_v1/classes.rb', line 1138

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