Class: Google::Apis::WorkloadmanagerV1::Command
- Inherits:
-
Object
- Object
- Google::Apis::WorkloadmanagerV1::Command
- 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
- Command specifies the type of command to execute.
Instance Attribute Summary collapse
-
#agent_command ⇒ Google::Apis::WorkloadmanagerV1::AgentCommand
- An AgentCommand specifies a one-time executable program for the agent to run.
-
#shell_command ⇒ Google::Apis::WorkloadmanagerV1::ShellCommand
- A ShellCommand is invoked via the agent's command line executor Corresponds to the JSON property
shellCommand.
- A ShellCommand is invoked via the agent's command line executor Corresponds to the JSON property
Instance Method Summary collapse
-
#initialize(**args) ⇒ Command
constructor
A new instance of Command.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Command
Returns a new instance of Command.
208 209 210 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 208 def initialize(**args) update!(**args) end |
Instance Attribute Details
#agent_command ⇒ Google::Apis::WorkloadmanagerV1::AgentCommand
- An AgentCommand specifies a one-time executable program for the agent to run.
Corresponds to the JSON property
agentCommand
201 202 203 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 201 def agent_command @agent_command end |
#shell_command ⇒ Google::Apis::WorkloadmanagerV1::ShellCommand
- A ShellCommand is invoked via the agent's command line executor
Corresponds to the JSON property
shellCommand
206 207 208 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 206 def shell_command @shell_command end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
213 214 215 216 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 213 def update!(**args) @agent_command = args[:agent_command] if args.key?(:agent_command) @shell_command = args[:shell_command] if args.key?(:shell_command) end |