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

Logging configuration.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ LoggingConfig

Returns a new instance of LoggingConfig.



559
560
561
# File 'lib/google/apis/storagetransfer_v1/classes.rb', line 559

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

Instance Attribute Details

#enable_onprem_gcs_transfer_logsBoolean Also known as: enable_onprem_gcs_transfer_logs?

Enables the Cloud Storage transfer logs for this transfer. This is only supported for transfer jobs with PosixFilesystem sources. The default is that logs are not generated for this transfer. Corresponds to the JSON property enableOnpremGcsTransferLogs

Returns:

  • (Boolean)


544
545
546
# File 'lib/google/apis/storagetransfer_v1/classes.rb', line 544

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. This is not yet supported for transfers with PosixFilesystem data sources. Corresponds to the JSON property logActionStates

Returns:

  • (Array<String>)


551
552
553
# File 'lib/google/apis/storagetransfer_v1/classes.rb', line 551

def log_action_states
  @log_action_states
end

#log_actionsArray<String>

Actions to be logged. If empty, no logs are generated. This is not yet supported for transfers with PosixFilesystem data sources. Corresponds to the JSON property logActions

Returns:

  • (Array<String>)


557
558
559
# File 'lib/google/apis/storagetransfer_v1/classes.rb', line 557

def log_actions
  @log_actions
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



564
565
566
567
568
# File 'lib/google/apis/storagetransfer_v1/classes.rb', line 564

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