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.
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.
724 725 726 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 724 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
717 718 719 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 717 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
722 723 724 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 722 def shell_command @shell_command end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
729 730 731 732 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 729 def update!(**args) @agent_command = args[:agent_command] if args.key?(:agent_command) @shell_command = args[:shell_command] if args.key?(:shell_command) end |