0.3.0 (latest) 0.2.1 0.1.0 Reference documentation and code samples for the Workload Manager V1 API class Google::Cloud::WorkloadManager::V1::Command.

Command specifies the type of command to execute.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #agent_command

    def agent_command() -> ::Google::Cloud::WorkloadManager::V1::AgentCommand

**Returns**

- ([::Google::Cloud::WorkloadManager::V1::AgentCommand](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-workload_manager-v1/latest/Google-Cloud-WorkloadManager-V1-AgentCommand)) --- AgentCommand specifies a one-time executable program for the agent to run.


  Note: The following fields are mutually exclusive: `agent_command`, `shell_command`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #agent_command=

    def agent_command=(value) -> ::Google::Cloud::WorkloadManager::V1::AgentCommand

**Parameter**

- **value** ([::Google::Cloud::WorkloadManager::V1::AgentCommand](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-workload_manager-v1/latest/Google-Cloud-WorkloadManager-V1-AgentCommand)) --- AgentCommand specifies a one-time executable program for the agent to run.


  Note: The following fields are mutually exclusive: `agent_command`, `shell_command`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- ([::Google::Cloud::WorkloadManager::V1::AgentCommand](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-workload_manager-v1/latest/Google-Cloud-WorkloadManager-V1-AgentCommand)) --- AgentCommand specifies a one-time executable program for the agent to run.


  Note: The following fields are mutually exclusive: `agent_command`, `shell_command`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #shell_command

    def shell_command() -> ::Google::Cloud::WorkloadManager::V1::ShellCommand

**Returns**

- ([::Google::Cloud::WorkloadManager::V1::ShellCommand](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-workload_manager-v1/latest/Google-Cloud-WorkloadManager-V1-ShellCommand)) --- ShellCommand is invoked via the agent's command line executor.


  Note: The following fields are mutually exclusive: `shell_command`, `agent_command`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #shell_command=

    def shell_command=(value) -> ::Google::Cloud::WorkloadManager::V1::ShellCommand

**Parameter**

- **value** ([::Google::Cloud::WorkloadManager::V1::ShellCommand](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-workload_manager-v1/latest/Google-Cloud-WorkloadManager-V1-ShellCommand)) --- ShellCommand is invoked via the agent's command line executor.


  Note: The following fields are mutually exclusive: `shell_command`, `agent_command`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- ([::Google::Cloud::WorkloadManager::V1::ShellCommand](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-workload_manager-v1/latest/Google-Cloud-WorkloadManager-V1-ShellCommand)) --- ShellCommand is invoked via the agent's command line executor.


  Note: The following fields are mutually exclusive: `shell_command`, `agent_command`. If a field in that set is populated, all other fields in the set will automatically be cleared.