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 \ V1Methods
__construct
Constructor.
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.
setLogActions
Specifies the actions to be logged. If empty, no logs are generated.
var
int[]
$this
getLogActionStates
States in which log_actions
are logged. If empty, no logs are generated.
setLogActionStates
States in which log_actions
are logged. If empty, no logs are generated.
var
int[]
$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.
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.
var
bool
$this