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>
The latest available observations of a job's current state.
-
#container_statuses ⇒ Array<Google::Apis::RunV1::ContainerStatus>
Status information for each of the specified containers.
-
#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.
1479 1480 1481 |
# File 'lib/google/apis/run_v1/classes.rb', line 1479 def initialize(**args) update!(**args) end |
Instance Attribute Details
#conditions ⇒ Array<Google::Apis::RunV1::GoogleCloudRunV1Condition>
The latest available observations of a job's current state. More info: https://
kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/
Corresponds to the JSON property conditions
1454 1455 1456 |
# File 'lib/google/apis/run_v1/classes.rb', line 1454 def conditions @conditions end |
#container_statuses ⇒ Array<Google::Apis::RunV1::ContainerStatus>
Status information for each of the specified containers. The status includes
the resolved digest for specified images, which occurs during creation of the
job.
Corresponds to the JSON property containerStatuses
1461 1462 1463 |
# File 'lib/google/apis/run_v1/classes.rb', line 1461 def container_statuses @container_statuses end |
#execution_count ⇒ Fixnum
Number of executions created for this job.
Corresponds to the JSON property executionCount
1466 1467 1468 |
# File 'lib/google/apis/run_v1/classes.rb', line 1466 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
1472 1473 1474 |
# File 'lib/google/apis/run_v1/classes.rb', line 1472 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
1477 1478 1479 |
# File 'lib/google/apis/run_v1/classes.rb', line 1477 def observed_generation @observed_generation end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1484 1485 1486 1487 1488 1489 1490 |
# File 'lib/google/apis/run_v1/classes.rb', line 1484 def update!(**args) @conditions = args[:conditions] if args.key?(:conditions) @container_statuses = args[:container_statuses] if args.key?(:container_statuses) @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 |