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
Namespace
Google \ Cloud \ Batch \ V1 \ RunnableMethods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ path |
string
Script file path on the host VM. To specify an interpreter, please add a |
↳ text |
string
Shell script text. To specify an interpreter, please add a |
getPath
Script file path on the host VM.
To specify an interpreter, please add a #!<interpreter>
(also known as
shebang line) as the
first line of the file.(For example, to execute the script using bash,
#!/bin/bash
should be the first line of the file. To execute the
script usingPython3
, #!/usr/bin/env python3
should be the first
line of the file.) Otherwise, the file will by default be excuted by
/bin/sh
.
Returns | |
---|---|
Type | Description |
string |
hasPath
setPath
Script file path on the host VM.
To specify an interpreter, please add a #!<interpreter>
(also known as
shebang line) as the
first line of the file.(For example, to execute the script using bash,
#!/bin/bash
should be the first line of the file. To execute the
script usingPython3
, #!/usr/bin/env python3
should be the first
line of the file.) Otherwise, the file will by default be excuted by
/bin/sh
.
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getText
Shell script text.
To specify an interpreter, please add a #!<interpreter>\n
at the
beginning of the text.(For example, to execute the script using bash,
#!/bin/bash\n
should be added. To execute the script usingPython3
,
#!/usr/bin/env python3\n
should be added.) Otherwise, the script will
by default be excuted by /bin/sh
.
Returns | |
---|---|
Type | Description |
string |
hasText
setText
Shell script text.
To specify an interpreter, please add a #!<interpreter>\n
at the
beginning of the text.(For example, to execute the script using bash,
#!/bin/bash\n
should be added. To execute the script usingPython3
,
#!/usr/bin/env python3\n
should be added.) Otherwise, the script will
by default be excuted by /bin/sh
.
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getCommand
Returns | |
---|---|
Type | Description |
string |