Google Cloud Storage Transfer V1 Client - Class LoggingConfig (1.5.0)

Reference documentation and code samples for the Google Cloud Storage Transfer V1 Client class LoggingConfig.

Specifies the logging behavior for transfer operations.

Logs can be sent to Cloud Logging for all transfer types. See Read transfer logs for details.

Generated from protobuf message google.storagetransfer.v1.LoggingConfig

Namespace

Google \ Cloud \ StorageTransfer \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ log_actions array

Specifies the actions to be logged. If empty, no logs are generated.

↳ log_action_states array

States in which log_actions are logged. If empty, no logs are generated.

↳ enable_onprem_gcs_transfer_logs bool

For PosixFilesystem transfers, enables file system transfer logs instead of, or in addition to, Cloud Logging. This option ignores [LoggableAction] and [LoggableActionState]. If these are set, Cloud Logging will also be enabled for this transfer.

getLogActions

Specifies the actions to be logged. If empty, no logs are generated.

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setLogActions

Specifies the actions to be logged. If empty, no logs are generated.

Parameter
Name Description
var int[]
Returns
Type Description
$this

getLogActionStates

States in which log_actions are logged. If empty, no logs are generated.

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setLogActionStates

States in which log_actions are logged. If empty, no logs are generated.

Parameter
Name Description
var int[]
Returns
Type Description
$this

getEnableOnpremGcsTransferLogs

For PosixFilesystem transfers, enables file system transfer logs instead of, or in addition to, Cloud Logging.

This option ignores [LoggableAction] and [LoggableActionState]. If these are set, Cloud Logging will also be enabled for this transfer.

Returns
Type Description
bool

setEnableOnpremGcsTransferLogs

For PosixFilesystem transfers, enables file system transfer logs instead of, or in addition to, Cloud Logging.

This option ignores [LoggableAction] and [LoggableActionState]. If these are set, Cloud Logging will also be enabled for this transfer.

Parameter
Name Description
var bool
Returns
Type Description
$this