Class: Google::Apis::RunV1::JobStatus
- Inherits:
-
Object
- Object
- Google::Apis::RunV1::JobStatus
- 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
JobStatus represents the current state of a Job.
Instance Attribute Summary collapse
-
#conditions ⇒ Array<Google::Apis::RunV1::GoogleCloudRunV1Condition>
Conditions communicate information about ongoing/complete reconciliation processes that bring the "spec" inline with the observed state of the world.
-
#execution_count ⇒ Fixnum
Number of executions created for this job.
-
#latest_created_execution ⇒ Google::Apis::RunV1::ExecutionReference
Reference to an Execution.
-
#observed_generation ⇒ Fixnum
The 'generation' of the job that was last processed by the controller.
Instance Method Summary collapse
-
#initialize(**args) ⇒ JobStatus
constructor
A new instance of JobStatus.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ JobStatus
Returns a new instance of JobStatus.
1744 1745 1746 |
# File 'lib/google/apis/run_v1/classes.rb', line 1744 def initialize(**args) update!(**args) end |
Instance Attribute Details
#conditions ⇒ Array<Google::Apis::RunV1::GoogleCloudRunV1Condition>
Conditions communicate information about ongoing/complete reconciliation
processes that bring the "spec" inline with the observed state of the world.
Job-specific conditions include: * Ready
: True
when the job is ready to be
executed.
Corresponds to the JSON property conditions
1726 1727 1728 |
# File 'lib/google/apis/run_v1/classes.rb', line 1726 def conditions @conditions end |
#execution_count ⇒ Fixnum
Number of executions created for this job.
Corresponds to the JSON property executionCount
1731 1732 1733 |
# File 'lib/google/apis/run_v1/classes.rb', line 1731 def execution_count @execution_count end |
#latest_created_execution ⇒ Google::Apis::RunV1::ExecutionReference
Reference to an Execution. Use /Executions.GetExecution with the given name to
get full execution including the latest status.
Corresponds to the JSON property latestCreatedExecution
1737 1738 1739 |
# File 'lib/google/apis/run_v1/classes.rb', line 1737 def latest_created_execution @latest_created_execution end |
#observed_generation ⇒ Fixnum
The 'generation' of the job that was last processed by the controller.
Corresponds to the JSON property observedGeneration
1742 1743 1744 |
# File 'lib/google/apis/run_v1/classes.rb', line 1742 def observed_generation @observed_generation end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1749 1750 1751 1752 1753 1754 |
# File 'lib/google/apis/run_v1/classes.rb', line 1749 def update!(**args) @conditions = args[:conditions] if args.key?(:conditions) @execution_count = args[:execution_count] if args.key?(:execution_count) @latest_created_execution = args[:latest_created_execution] if args.key?(:latest_created_execution) @observed_generation = args[:observed_generation] if args.key?(:observed_generation) end |