Class: Google::Apis::RunV1::Overrides
- Inherits:
-
Object
- Object
- Google::Apis::RunV1::Overrides
- 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
RunJob Overrides that contains Execution fields to be overridden on the go.
Instance Attribute Summary collapse
-
#container_overrides ⇒ Array<Google::Apis::RunV1::ContainerOverride>
Per container override specification.
-
#task_count ⇒ Fixnum
The desired number of tasks the execution should run.
-
#timeout_seconds ⇒ Fixnum
Duration in seconds the task may be active before the system will actively try to mark it failed and kill associated containers.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Overrides
constructor
A new instance of Overrides.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Overrides
Returns a new instance of Overrides.
2501 2502 2503 |
# File 'lib/google/apis/run_v1/classes.rb', line 2501 def initialize(**args) update!(**args) end |
Instance Attribute Details
#container_overrides ⇒ Array<Google::Apis::RunV1::ContainerOverride>
Per container override specification.
Corresponds to the JSON property containerOverrides
2486 2487 2488 |
# File 'lib/google/apis/run_v1/classes.rb', line 2486 def container_overrides @container_overrides end |
#task_count ⇒ Fixnum
The desired number of tasks the execution should run. Will replace existing
task_count value.
Corresponds to the JSON property taskCount
2492 2493 2494 |
# File 'lib/google/apis/run_v1/classes.rb', line 2492 def task_count @task_count end |
#timeout_seconds ⇒ Fixnum
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 timeoutSeconds
2499 2500 2501 |
# File 'lib/google/apis/run_v1/classes.rb', line 2499 def timeout_seconds @timeout_seconds end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2506 2507 2508 2509 2510 |
# File 'lib/google/apis/run_v1/classes.rb', line 2506 def update!(**args) @container_overrides = args[:container_overrides] if args.key?(:container_overrides) @task_count = args[:task_count] if args.key?(:task_count) @timeout_seconds = args[:timeout_seconds] if args.key?(:timeout_seconds) end |