Class: Google::Apis::RunV1::ContainerOverride
- Inherits:
-
Object
- Object
- Google::Apis::RunV1::ContainerOverride
- 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
Per container override specification.
Instance Attribute Summary collapse
-
#args ⇒ Array<String>
Arguments to the entrypoint.
-
#clear_args ⇒ Boolean
(also: #clear_args?)
Optional.
-
#env ⇒ Array<Google::Apis::RunV1::EnvVar>
List of environment variables to set in the container.
-
#name ⇒ String
The name of the container specified as a DNS_LABEL.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ContainerOverride
constructor
A new instance of ContainerOverride.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ContainerOverride
Returns a new instance of ContainerOverride.
656 657 658 |
# File 'lib/google/apis/run_v1/classes.rb', line 656 def initialize(**args) update!(**args) end |
Instance Attribute Details
#args ⇒ Array<String>
Arguments to the entrypoint. The specified arguments replace and override any
existing entrypoint arguments. Must be empty if clear_args
is set to true.
Corresponds to the JSON property args
635 636 637 |
# File 'lib/google/apis/run_v1/classes.rb', line 635 def args @args end |
#clear_args ⇒ Boolean Also known as: clear_args?
Optional. Set to True to clear all existing arguments.
Corresponds to the JSON property clearArgs
640 641 642 |
# File 'lib/google/apis/run_v1/classes.rb', line 640 def clear_args @clear_args end |
#env ⇒ Array<Google::Apis::RunV1::EnvVar>
List of environment variables to set in the container. All specified
environment variables are merged with existing environment variables. When the
specified environment variables exist, these values override any existing
values.
Corresponds to the JSON property env
649 650 651 |
# File 'lib/google/apis/run_v1/classes.rb', line 649 def env @env end |
#name ⇒ String
The name of the container specified as a DNS_LABEL.
Corresponds to the JSON property name
654 655 656 |
# File 'lib/google/apis/run_v1/classes.rb', line 654 def name @name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
661 662 663 664 665 666 |
# File 'lib/google/apis/run_v1/classes.rb', line 661 def update!(**args) @args = args[:args] if args.key?(:args) @clear_args = args[:clear_args] if args.key?(:clear_args) @env = args[:env] if args.key?(:env) @name = args[:name] if args.key?(:name) end |