Google Cloud Batch V1 Client - Class LogsPolicy (0.2.2)

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
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.

Generated from protobuf field .google.cloud.batch.v1.LogsPolicy.Destination destination = 1;

Returns
TypeDescription
int

setDestination

Where logs should be saved.

Generated from protobuf field .google.cloud.batch.v1.LogsPolicy.Destination destination = 1;

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.

Generated from protobuf field string logs_path = 2;

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.

Generated from protobuf field string logs_path = 2;

Parameter
NameDescription
var string
Returns
TypeDescription
$this