Class: Google::Apis::StoragetransferV1::LoggingConfig

Inherits:
Object
  • Object
show all
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. Logs can be sent to Cloud Logging for all transfer types. See Read transfer logs for details.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ LoggingConfig

Returns a new instance of LoggingConfig.



720
721
722
# File 'lib/google/apis/storagetransfer_v1/classes.rb', line 720

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#enable_onprem_gcs_transfer_logsBoolean Also known as: enable_onprem_gcs_transfer_logs?

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. Corresponds to the JSON property enableOnpremGcsTransferLogs

Returns:

  • (Boolean)


707
708
709
# File 'lib/google/apis/storagetransfer_v1/classes.rb', line 707

def enable_onprem_gcs_transfer_logs
  @enable_onprem_gcs_transfer_logs
end

#log_action_statesArray<String>

States in which log_actions are logged. If empty, no logs are generated. Corresponds to the JSON property logActionStates

Returns:

  • (Array<String>)


713
714
715
# File 'lib/google/apis/storagetransfer_v1/classes.rb', line 713

def log_action_states
  @log_action_states
end

#log_actionsArray<String>

Specifies the actions to be logged. If empty, no logs are generated. Corresponds to the JSON property logActions

Returns:

  • (Array<String>)


718
719
720
# File 'lib/google/apis/storagetransfer_v1/classes.rb', line 718

def log_actions
  @log_actions
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



725
726
727
728
729
# File 'lib/google/apis/storagetransfer_v1/classes.rb', line 725

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