Reference documentation and code samples for the Google Cloud Batch V1 Client class LogsPolicy.
LogsPolicy describes how outputs from a Job's Tasks (stdout/stderr) will be preserved.
Generated from protobuf message google.cloud.batch.v1.LogsPolicy
Methods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ destination |
int
Where logs should be saved. |
↳ logs_path |
string
The path to which logs are saved when the destination = PATH. This can be a local file path on the VM, or under the mount point of a Persistent Disk or Filestore, or a Cloud Storage path. |
getDestination
Where logs should be saved.
Returns | |
---|---|
Type | Description |
int |
setDestination
Where logs should be saved.
Parameter | |
---|---|
Name | Description |
var |
int
|
Returns | |
---|---|
Type | Description |
$this |
getLogsPath
The path to which logs are saved when the destination = PATH. This can be a local file path on the VM, or under the mount point of a Persistent Disk or Filestore, or a Cloud Storage path.
Returns | |
---|---|
Type | Description |
string |
setLogsPath
The path to which logs are saved when the destination = PATH. This can be a local file path on the VM, or under the mount point of a Persistent Disk or Filestore, or a Cloud Storage path.
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |