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

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

Specifies the logging behavior for transfer operations.

For cloud-to-cloud transfers, logs are sent to Cloud Logging. See Read transfer logs for details. For transfers to or from a POSIX file system, logs are stored in the Cloud Storage bucket that is the source or sink of the transfer. See Managing Transfer for on-premises jobs for details.

Generated from protobuf message google.storagetransfer.v1.LoggingConfig

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ log_actions array

Specifies the actions to be logged. If empty, no logs are generated. Not supported for transfers with PosixFilesystem data sources; use enable_onprem_gcs_transfer_logs instead.

↳ log_action_states array

States in which log_actions are logged. If empty, no logs are generated. Not supported for transfers with PosixFilesystem data sources; use enable_onprem_gcs_transfer_logs instead.

↳ enable_onprem_gcs_transfer_logs bool

For transfers with a PosixFilesystem source, this option enables the Cloud Storage transfer logs for this transfer.

getLogActions

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

Not supported for transfers with PosixFilesystem data sources; use enable_onprem_gcs_transfer_logs instead.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setLogActions

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

Not supported for transfers with PosixFilesystem data sources; use enable_onprem_gcs_transfer_logs instead.

Parameter
NameDescription
var int[]
Returns
TypeDescription
$this

getLogActionStates

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

Not supported for transfers with PosixFilesystem data sources; use enable_onprem_gcs_transfer_logs instead.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setLogActionStates

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

Not supported for transfers with PosixFilesystem data sources; use enable_onprem_gcs_transfer_logs instead.

Parameter
NameDescription
var int[]
Returns
TypeDescription
$this

getEnableOnpremGcsTransferLogs

For transfers with a PosixFilesystem source, this option enables the Cloud Storage transfer logs for this transfer.

Returns
TypeDescription
bool

setEnableOnpremGcsTransferLogs

For transfers with a PosixFilesystem source, this option enables the Cloud Storage transfer logs for this transfer.

Parameter
NameDescription
var bool
Returns
TypeDescription
$this