Class: Google::Apis::RunV1::ExecAction

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

Cloud Run fully managed: not supported Cloud Run for Anthos: supported ExecAction describes a "run in container" action.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ExecAction

Returns a new instance of ExecAction.



925
926
927
# File 'lib/google/apis/run_v1/classes.rb', line 925

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

Instance Attribute Details

#commandArray<String>

(Optional) Cloud Run fully managed: not supported Cloud Run for Anthos: supported Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy. Corresponds to the JSON property command

Returns:

  • (Array<String>)


923
924
925
# File 'lib/google/apis/run_v1/classes.rb', line 923

def command
  @command
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



930
931
932
# File 'lib/google/apis/run_v1/classes.rb', line 930

def update!(**args)
  @command = args[:command] if args.key?(:command)
end