Reference documentation and code samples for the Google Cloud Batch V1 Client class Script.
Script runnable.
Generated from protobuf message google.cloud.batch.v1.Runnable.Script
Methods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ path |
string
Script file path on the host VM. |
↳ text |
string
Shell script text. |
getPath
Script file path on the host VM.
Generated from protobuf field string path = 1;
Returns | |
---|---|
Type | Description |
string |
hasPath
setPath
Script file path on the host VM.
Generated from protobuf field string path = 1;
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getText
Shell script text.
Generated from protobuf field string text = 2;
Returns | |
---|---|
Type | Description |
string |
hasText
setText
Shell script text.
Generated from protobuf field string text = 2;
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getCommand
Returns | |
---|---|
Type | Description |
string |