Class: Google::Apis::WorkloadmanagerV1::ShellCommand
- Inherits:
-
Object
- Object
- Google::Apis::WorkloadmanagerV1::ShellCommand
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/workloadmanager_v1/classes.rb,
lib/google/apis/workloadmanager_v1/representations.rb,
lib/google/apis/workloadmanager_v1/representations.rb
Overview
- A ShellCommand is invoked via the agent's command line executor
Instance Attribute Summary collapse
-
#args ⇒ String
args is a string of arguments to be passed to the command.
-
#command ⇒ String
command is the name of the command to be executed.
-
#timeout_seconds ⇒ Fixnum
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ShellCommand
constructor
A new instance of ShellCommand.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ShellCommand
Returns a new instance of ShellCommand.
2029 2030 2031 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 2029 def initialize(**args) update!(**args) end |
Instance Attribute Details
#args ⇒ String
args is a string of arguments to be passed to the command.
Corresponds to the JSON property args
2017 2018 2019 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 2017 def args @args end |
#command ⇒ String
command is the name of the command to be executed.
Corresponds to the JSON property command
2022 2023 2024 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 2022 def command @command end |
#timeout_seconds ⇒ Fixnum
Optional. If not specified, the default timeout is 60 seconds.
Corresponds to the JSON property timeoutSeconds
2027 2028 2029 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 2027 def timeout_seconds @timeout_seconds end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2034 2035 2036 2037 2038 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 2034 def update!(**args) @args = args[:args] if args.key?(:args) @command = args[:command] if args.key?(:command) @timeout_seconds = args[:timeout_seconds] if args.key?(:timeout_seconds) end |