Reference documentation and code samples for the Google Cloud Workload Manager V1 Client class Command.
Command specifies the type of command to execute.
Generated from protobuf message google.cloud.workloadmanager.v1.Command
Namespace
Google \ Cloud \ WorkloadManager \ V1Methods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ agent_command |
AgentCommand
AgentCommand specifies a one-time executable program for the agent to run. |
↳ shell_command |
ShellCommand
ShellCommand is invoked via the agent's command line executor. |
getAgentCommand
AgentCommand specifies a one-time executable program for the agent to run.
| Returns | |
|---|---|
| Type | Description |
AgentCommand|null |
|
hasAgentCommand
setAgentCommand
AgentCommand specifies a one-time executable program for the agent to run.
| Parameter | |
|---|---|
| Name | Description |
var |
AgentCommand
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getShellCommand
ShellCommand is invoked via the agent's command line executor.
| Returns | |
|---|---|
| Type | Description |
ShellCommand|null |
|
hasShellCommand
setShellCommand
ShellCommand is invoked via the agent's command line executor.
| Parameter | |
|---|---|
| Name | Description |
var |
ShellCommand
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getCommandType
| Returns | |
|---|---|
| Type | Description |
string |
|