Class: Google::Apis::RunV1alpha1::ExecAction
- Inherits:
-
Object
- Object
- Google::Apis::RunV1alpha1::ExecAction
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/run_v1alpha1/classes.rb,
generated/google/apis/run_v1alpha1/representations.rb,
generated/google/apis/run_v1alpha1/representations.rb
Overview
ExecAction describes a "run in container" action.
Instance Attribute Summary collapse
-
#command ⇒ String
Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ExecAction
constructor
A new instance of ExecAction.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ ExecAction
Returns a new instance of ExecAction.
1661 1662 1663 |
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 1661 def initialize(**args) update!(**args) end |
Instance Attribute Details
#command ⇒ String
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. +optional
Corresponds to the JSON property command
1659 1660 1661 |
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 1659 def command @command end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1666 1667 1668 |
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 1666 def update!(**args) @command = args[:command] if args.key?(:command) end |