Class: Google::Apis::RunV2::GoogleCloudRunV2Execution
- Inherits:
-
Object
- Object
- Google::Apis::RunV2::GoogleCloudRunV2Execution
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/run_v2/classes.rb,
lib/google/apis/run_v2/representations.rb,
lib/google/apis/run_v2/representations.rb
Overview
Execution represents the configuration of a single execution. A execution an immutable resource that references a container image which is run to completion.
Instance Attribute Summary collapse
-
#annotations ⇒ Hash<String,String>
KRM-style annotations for the resource.
-
#completion_time ⇒ String
Output only.
-
#conditions ⇒ Array<Google::Apis::RunV2::GoogleCloudRunV2Condition>
Output only.
-
#create_time ⇒ String
Output only.
-
#delete_time ⇒ String
Output only.
-
#etag ⇒ String
Output only.
-
#expire_time ⇒ String
Output only.
-
#failed_count ⇒ Fixnum
Output only.
-
#generation ⇒ Fixnum
Output only.
-
#job ⇒ String
Output only.
-
#labels ⇒ Hash<String,String>
KRM-style labels for the resource.
-
#launch_stage ⇒ String
Set the launch stage to a preview stage on write to allow use of preview features in that stage.
-
#name ⇒ String
Output only.
-
#observed_generation ⇒ Fixnum
Output only.
-
#parallelism ⇒ Fixnum
Output only.
-
#reconciling ⇒ Boolean
(also: #reconciling?)
Output only.
-
#running_count ⇒ Fixnum
Output only.
-
#start_time ⇒ String
Output only.
-
#succeeded_count ⇒ Fixnum
Output only.
-
#task_count ⇒ Fixnum
Output only.
-
#template ⇒ Google::Apis::RunV2::GoogleCloudRunV2TaskTemplate
TaskTemplate describes the data a task should have when created from a template.
-
#uid ⇒ String
Output only.
-
#update_time ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudRunV2Execution
constructor
A new instance of GoogleCloudRunV2Execution.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudRunV2Execution
Returns a new instance of GoogleCloudRunV2Execution.
469 470 471 |
# File 'lib/google/apis/run_v2/classes.rb', line 469 def initialize(**args) update!(**args) end |
Instance Attribute Details
#annotations ⇒ Hash<String,String>
KRM-style annotations for the resource.
Corresponds to the JSON property annotations
324 325 326 |
# File 'lib/google/apis/run_v2/classes.rb', line 324 def annotations @annotations end |
#completion_time ⇒ String
Output only. Represents time when the execution was completed. It is not
guaranteed to be set in happens-before order across separate operations.
Corresponds to the JSON property completionTime
330 331 332 |
# File 'lib/google/apis/run_v2/classes.rb', line 330 def completion_time @completion_time end |
#conditions ⇒ Array<Google::Apis::RunV2::GoogleCloudRunV2Condition>
Output only. The Condition of this Execution, containing its readiness status,
and detailed error information in case it did not reach the desired state.
Corresponds to the JSON property conditions
336 337 338 |
# File 'lib/google/apis/run_v2/classes.rb', line 336 def conditions @conditions end |
#create_time ⇒ String
Output only. Represents time when the execution was acknowledged by the
execution controller. It is not guaranteed to be set in happens-before order
across separate operations.
Corresponds to the JSON property createTime
343 344 345 |
# File 'lib/google/apis/run_v2/classes.rb', line 343 def create_time @create_time end |
#delete_time ⇒ String
Output only. For a deleted resource, the deletion time. It is only populated
as a response to a Delete request.
Corresponds to the JSON property deleteTime
349 350 351 |
# File 'lib/google/apis/run_v2/classes.rb', line 349 def delete_time @delete_time end |
#etag ⇒ String
Output only. A system-generated fingerprint for this version of the resource.
May be used to detect modification conflict during updates.
Corresponds to the JSON property etag
355 356 357 |
# File 'lib/google/apis/run_v2/classes.rb', line 355 def etag @etag end |
#expire_time ⇒ String
Output only. For a deleted resource, the time after which it will be
permamently deleted. It is only populated as a response to a Delete request.
Corresponds to the JSON property expireTime
361 362 363 |
# File 'lib/google/apis/run_v2/classes.rb', line 361 def expire_time @expire_time end |
#failed_count ⇒ Fixnum
Output only. The number of tasks which reached phase Failed.
Corresponds to the JSON property failedCount
366 367 368 |
# File 'lib/google/apis/run_v2/classes.rb', line 366 def failed_count @failed_count end |
#generation ⇒ Fixnum
Output only. A number that monotonically increases every time the user
modifies the desired state.
Corresponds to the JSON property generation
372 373 374 |
# File 'lib/google/apis/run_v2/classes.rb', line 372 def generation @generation end |
#job ⇒ String
Output only. The name of the parent Job.
Corresponds to the JSON property job
377 378 379 |
# File 'lib/google/apis/run_v2/classes.rb', line 377 def job @job end |
#labels ⇒ Hash<String,String>
KRM-style labels for the resource. User-provided labels are shared with Google'
s billing system, so they can be used to filter, or break down billing charges
by team, component, environment, state, etc. For more information, visit https:
//cloud.google.com/resource-manager/docs/creating-managing-labels or https://
cloud.google.com/run/docs/configuring/labels Cloud Run will populate some
labels with 'run.googleapis.com' or 'serving.knative.dev' namespaces. Those
labels are read-only, and user changes will not be preserved.
Corresponds to the JSON property labels
388 389 390 |
# File 'lib/google/apis/run_v2/classes.rb', line 388 def labels @labels end |
#launch_stage ⇒ String
Set the launch stage to a preview stage on write to allow use of preview
features in that stage. On read, describes whether the resource uses preview
features. Launch Stages are defined at Google Cloud Platform Launch Stages.
Corresponds to the JSON property launchStage
396 397 398 |
# File 'lib/google/apis/run_v2/classes.rb', line 396 def launch_stage @launch_stage end |
#name ⇒ String
Output only. The unique name of this Execution.
Corresponds to the JSON property name
401 402 403 |
# File 'lib/google/apis/run_v2/classes.rb', line 401 def name @name end |
#observed_generation ⇒ Fixnum
Output only. The generation of this Execution. See comments in reconciling
for additional information on reconciliation process in Cloud Run.
Corresponds to the JSON property observedGeneration
407 408 409 |
# File 'lib/google/apis/run_v2/classes.rb', line 407 def observed_generation @observed_generation end |
#parallelism ⇒ Fixnum
Output only. Specifies the maximum desired number of tasks the execution
should run at any given time. Must be <= task_count. The actual number of
tasks running in steady state will be less than this number when ((.spec.
task_count - .status.successful) < .spec.parallelism), i.e. when the work left
to do is less than max parallelism. More info: https://kubernetes.io/docs/
concepts/workloads/controllers/jobs-run-to-completion/
Corresponds to the JSON property parallelism
417 418 419 |
# File 'lib/google/apis/run_v2/classes.rb', line 417 def parallelism @parallelism end |
#reconciling ⇒ Boolean Also known as: reconciling?
Output only. Indicates whether the resource's reconciliation is still in
progress. See comments in Job.reconciling for additional information on
reconciliation process in Cloud Run.
Corresponds to the JSON property reconciling
424 425 426 |
# File 'lib/google/apis/run_v2/classes.rb', line 424 def reconciling @reconciling end |
#running_count ⇒ Fixnum
Output only. The number of actively running tasks.
Corresponds to the JSON property runningCount
430 431 432 |
# File 'lib/google/apis/run_v2/classes.rb', line 430 def running_count @running_count end |
#start_time ⇒ String
Output only. Represents time when the execution started to run. It is not
guaranteed to be set in happens-before order across separate operations.
Corresponds to the JSON property startTime
436 437 438 |
# File 'lib/google/apis/run_v2/classes.rb', line 436 def start_time @start_time end |
#succeeded_count ⇒ Fixnum
Output only. The number of tasks which reached phase Succeeded.
Corresponds to the JSON property succeededCount
441 442 443 |
# File 'lib/google/apis/run_v2/classes.rb', line 441 def succeeded_count @succeeded_count end |
#task_count ⇒ Fixnum
Output only. Specifies the desired number of tasks the execution should run.
Setting to 1 means that parallelism is limited to 1 and the success of that
task signals the success of the execution. More info: https://kubernetes.io/
docs/concepts/workloads/controllers/jobs-run-to-completion/
Corresponds to the JSON property taskCount
449 450 451 |
# File 'lib/google/apis/run_v2/classes.rb', line 449 def task_count @task_count end |
#template ⇒ Google::Apis::RunV2::GoogleCloudRunV2TaskTemplate
TaskTemplate describes the data a task should have when created from a
template.
Corresponds to the JSON property template
455 456 457 |
# File 'lib/google/apis/run_v2/classes.rb', line 455 def template @template end |
#uid ⇒ String
Output only. Server assigned unique identifier for the Execution. The value is
a UUID4 string and guaranteed to remain unchanged until the resource is
deleted.
Corresponds to the JSON property uid
462 463 464 |
# File 'lib/google/apis/run_v2/classes.rb', line 462 def uid @uid end |
#update_time ⇒ String
Output only. The last-modified time.
Corresponds to the JSON property updateTime
467 468 469 |
# File 'lib/google/apis/run_v2/classes.rb', line 467 def update_time @update_time end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 |
# File 'lib/google/apis/run_v2/classes.rb', line 474 def update!(**args) @annotations = args[:annotations] if args.key?(:annotations) @completion_time = args[:completion_time] if args.key?(:completion_time) @conditions = args[:conditions] if args.key?(:conditions) @create_time = args[:create_time] if args.key?(:create_time) @delete_time = args[:delete_time] if args.key?(:delete_time) @etag = args[:etag] if args.key?(:etag) @expire_time = args[:expire_time] if args.key?(:expire_time) @failed_count = args[:failed_count] if args.key?(:failed_count) @generation = args[:generation] if args.key?(:generation) @job = args[:job] if args.key?(:job) @labels = args[:labels] if args.key?(:labels) @launch_stage = args[:launch_stage] if args.key?(:launch_stage) @name = args[:name] if args.key?(:name) @observed_generation = args[:observed_generation] if args.key?(:observed_generation) @parallelism = args[:parallelism] if args.key?(:parallelism) @reconciling = args[:reconciling] if args.key?(:reconciling) @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) @task_count = args[:task_count] if args.key?(:task_count) @template = args[:template] if args.key?(:template) @uid = args[:uid] if args.key?(:uid) @update_time = args[:update_time] if args.key?(:update_time) end |