Class: Google::Apis::StoragetransferV1::LoggingConfig
- Inherits:
-
Object
- Object
- Google::Apis::StoragetransferV1::LoggingConfig
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/storagetransfer_v1/classes.rb,
lib/google/apis/storagetransfer_v1/representations.rb,
lib/google/apis/storagetransfer_v1/representations.rb
Overview
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.
Instance Attribute Summary collapse
-
#enable_onprem_gcs_transfer_logs ⇒ Boolean
(also: #enable_onprem_gcs_transfer_logs?)
For transfers with a PosixFilesystem source, this option enables the Cloud Storage transfer logs for this transfer.
-
#log_action_states ⇒ Array<String>
States in which
log_actionsare logged. -
#log_actions ⇒ Array<String>
Specifies the actions to be logged.
Instance Method Summary collapse
-
#initialize(**args) ⇒ LoggingConfig
constructor
A new instance of LoggingConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ LoggingConfig
Returns a new instance of LoggingConfig.
610 611 612 |
# File 'lib/google/apis/storagetransfer_v1/classes.rb', line 610 def initialize(**args) update!(**args) end |
Instance Attribute Details
#enable_onprem_gcs_transfer_logs ⇒ Boolean Also known as: enable_onprem_gcs_transfer_logs?
For transfers with a PosixFilesystem source, this option enables the Cloud
Storage transfer logs for this transfer.
Corresponds to the JSON property enableOnpremGcsTransferLogs
593 594 595 |
# File 'lib/google/apis/storagetransfer_v1/classes.rb', line 593 def enable_onprem_gcs_transfer_logs @enable_onprem_gcs_transfer_logs end |
#log_action_states ⇒ Array<String>
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.
Corresponds to the JSON property logActionStates
601 602 603 |
# File 'lib/google/apis/storagetransfer_v1/classes.rb', line 601 def log_action_states @log_action_states end |
#log_actions ⇒ Array<String>
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.
Corresponds to the JSON property logActions
608 609 610 |
# File 'lib/google/apis/storagetransfer_v1/classes.rb', line 608 def log_actions @log_actions end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
615 616 617 618 619 |
# File 'lib/google/apis/storagetransfer_v1/classes.rb', line 615 def update!(**args) @enable_onprem_gcs_transfer_logs = args[:enable_onprem_gcs_transfer_logs] if args.key?(:enable_onprem_gcs_transfer_logs) @log_action_states = args[:log_action_states] if args.key?(:log_action_states) @log_actions = args[:log_actions] if args.key?(:log_actions) end |