Class: Google::Apis::RunV1::ContainerOverride

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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ContainerOverride

Returns a new instance of ContainerOverride.



652
653
654
# File 'lib/google/apis/run_v1/classes.rb', line 652

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

Instance Attribute Details

#argsArray<String>

Arguments to the entrypoint. Will replace existing args for override. Corresponds to the JSON property args

Returns:

  • (Array<String>)


639
640
641
# File 'lib/google/apis/run_v1/classes.rb', line 639

def args
  @args
end

#envArray<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

Returns:



645
646
647
# File 'lib/google/apis/run_v1/classes.rb', line 645

def env
  @env
end

#nameString

The name of the container specified as a DNS_LABEL. Corresponds to the JSON property name

Returns:

  • (String)


650
651
652
# File 'lib/google/apis/run_v1/classes.rb', line 650

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



657
658
659
660
661
# File 'lib/google/apis/run_v1/classes.rb', line 657

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