Reference documentation and code samples for the Google Cloud Workload Manager V1 Client class ShellCommand.
A ShellCommand is invoked via the agent's command line executor.
Generated from protobuf message google.cloud.workloadmanager.v1.ShellCommand
Namespace
Google \ Cloud \ WorkloadManager \ V1Methods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ command |
string
The name of the command to be executed. |
↳ args |
string
Arguments to be passed to the command. |
↳ timeout_seconds |
int
Optional. If not specified, the default timeout is 60 seconds. |
getCommand
The name of the command to be executed.
| Returns | |
|---|---|
| Type | Description |
string |
|
setCommand
The name of the command to be executed.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getArgs
Arguments to be passed to the command.
| Returns | |
|---|---|
| Type | Description |
string |
|
setArgs
Arguments to be passed to the command.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getTimeoutSeconds
Optional. If not specified, the default timeout is 60 seconds.
| Returns | |
|---|---|
| Type | Description |
int |
|
setTimeoutSeconds
Optional. If not specified, the default timeout is 60 seconds.
| Parameter | |
|---|---|
| Name | Description |
var |
int
|
| Returns | |
|---|---|
| Type | Description |
$this |
|