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.



715
716
717
# File 'lib/google/apis/run_v1/classes.rb', line 715

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

Instance Attribute Details

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

Returns:

  • (Array<String>)


694
695
696
# File 'lib/google/apis/run_v1/classes.rb', line 694

def args
  @args
end

#clear_argsBoolean Also known as: clear_args?

Optional. Set to True to clear all existing arguments. Corresponds to the JSON property clearArgs

Returns:

  • (Boolean)


699
700
701
# File 'lib/google/apis/run_v1/classes.rb', line 699

def clear_args
  @clear_args
end

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

Returns:



708
709
710
# File 'lib/google/apis/run_v1/classes.rb', line 708

def env
  @env
end

#nameString

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

Returns:

  • (String)


713
714
715
# File 'lib/google/apis/run_v1/classes.rb', line 713

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



720
721
722
723
724
725
# File 'lib/google/apis/run_v1/classes.rb', line 720

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