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.
-
#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.
647 648 649 |
# File 'lib/google/apis/run_v1/classes.rb', line 647 def initialize(**args) update!(**args) end |
Instance Attribute Details
#args ⇒ Array<String>
Arguments to the entrypoint. Will replace existing args for override.
Corresponds to the JSON property args
634 635 636 |
# File 'lib/google/apis/run_v1/classes.rb', line 634 def args @args end |
#env ⇒ Array<Google::Apis::RunV1::EnvVar>
List of environment variables to set in the container. Will be merged with
existing env for override.
Corresponds to the JSON property env
640 641 642 |
# File 'lib/google/apis/run_v1/classes.rb', line 640 def env @env end |
#name ⇒ String
The name of the container specified as a DNS_LABEL.
Corresponds to the JSON property name
645 646 647 |
# File 'lib/google/apis/run_v1/classes.rb', line 645 def name @name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
652 653 654 655 656 |
# File 'lib/google/apis/run_v1/classes.rb', line 652 def update!(**args) @args = args[:args] if args.key?(:args) @env = args[:env] if args.key?(:env) @name = args[:name] if args.key?(:name) end |