Class: Google::Apis::RunV2::GoogleCloudRunV2Overrides

Inherits:
Object
  • Object
show all
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

RunJob Overrides that contains Execution fields to be overridden.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudRunV2Overrides

Returns a new instance of GoogleCloudRunV2Overrides.



1453
1454
1455
# File 'lib/google/apis/run_v2/classes.rb', line 1453

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

Instance Attribute Details

#container_overridesArray<Google::Apis::RunV2::GoogleCloudRunV2ContainerOverride>

Per container override specification. Corresponds to the JSON property containerOverrides



1438
1439
1440
# File 'lib/google/apis/run_v2/classes.rb', line 1438

def container_overrides
  @container_overrides
end

#task_countFixnum

Optional. The desired number of tasks the execution should run. Will replace existing task_count value. Corresponds to the JSON property taskCount

Returns:

  • (Fixnum)


1444
1445
1446
# File 'lib/google/apis/run_v2/classes.rb', line 1444

def task_count
  @task_count
end

#timeoutString

Duration in seconds the task may be active before the system will actively try to mark it failed and kill associated containers. Will replace existing timeout_seconds value. Corresponds to the JSON property timeout

Returns:

  • (String)


1451
1452
1453
# File 'lib/google/apis/run_v2/classes.rb', line 1451

def timeout
  @timeout
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1458
1459
1460
1461
1462
# File 'lib/google/apis/run_v2/classes.rb', line 1458

def update!(**args)
  @container_overrides = args[:container_overrides] if args.key?(:container_overrides)
  @task_count = args[:task_count] if args.key?(:task_count)
  @timeout = args[:timeout] if args.key?(:timeout)
end