Class: Google::Apis::RunV1::JobStatus

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

JobStatus represents the current state of a Job.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ JobStatus

Returns a new instance of JobStatus.



1553
1554
1555
# File 'lib/google/apis/run_v1/classes.rb', line 1553

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

Instance Attribute Details

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



1535
1536
1537
# File 'lib/google/apis/run_v1/classes.rb', line 1535

def conditions
  @conditions
end

#execution_countFixnum

Number of executions created for this job. Corresponds to the JSON property executionCount

Returns:

  • (Fixnum)


1540
1541
1542
# File 'lib/google/apis/run_v1/classes.rb', line 1540

def execution_count
  @execution_count
end

#latest_created_executionGoogle::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



1546
1547
1548
# File 'lib/google/apis/run_v1/classes.rb', line 1546

def latest_created_execution
  @latest_created_execution
end

#observed_generationFixnum

The 'generation' of the job that was last processed by the controller. Corresponds to the JSON property observedGeneration

Returns:

  • (Fixnum)


1551
1552
1553
# File 'lib/google/apis/run_v1/classes.rb', line 1551

def observed_generation
  @observed_generation
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1558
1559
1560
1561
1562
1563
# File 'lib/google/apis/run_v1/classes.rb', line 1558

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