Google Cloud Batch V1 Client - Class LogsPolicy (0.7.0)

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

Namespace

Google \ Cloud \ Batch \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
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
TypeDescription
int

setDestination

Where logs should be saved.

Parameter
NameDescription
var int
Returns
TypeDescription
$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
TypeDescription
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
NameDescription
var string
Returns
TypeDescription
$this