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.



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

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)


1044
1045
1046
# File 'lib/google/apis/run_v1/classes.rb', line 1044

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)


1051
1052
1053
# File 'lib/google/apis/run_v1/classes.rb', line 1051

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



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

def conditions
  @conditions
end

#failed_countFixnum

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

Returns:

  • (Fixnum)


1066
1067
1068
# File 'lib/google/apis/run_v1/classes.rb', line 1066

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)


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

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)


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

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)


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

def retried_count
  @retried_count
end

#running_countFixnum

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

Returns:

  • (Fixnum)


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

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)


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

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)


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

def succeeded_count
  @succeeded_count
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
# File 'lib/google/apis/run_v1/classes.rb', line 1106

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