Class: Google::Apis::StoragebatchoperationsV1::LoggingConfig

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/storagebatchoperations_v1/classes.rb,
lib/google/apis/storagebatchoperations_v1/representations.rb,
lib/google/apis/storagebatchoperations_v1/representations.rb

Overview

Specifies the Cloud Logging behavior.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ LoggingConfig

Returns a new instance of LoggingConfig.



840
841
842
# File 'lib/google/apis/storagebatchoperations_v1/classes.rb', line 840

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

Instance Attribute Details

#log_action_statesArray<String>

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

Returns:

  • (Array<String>)


833
834
835
# File 'lib/google/apis/storagebatchoperations_v1/classes.rb', line 833

def log_action_states
  @log_action_states
end

#log_actionsArray<String>

Required. Specifies the actions to be logged. Corresponds to the JSON property logActions

Returns:

  • (Array<String>)


838
839
840
# File 'lib/google/apis/storagebatchoperations_v1/classes.rb', line 838

def log_actions
  @log_actions
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



845
846
847
848
# File 'lib/google/apis/storagebatchoperations_v1/classes.rb', line 845

def update!(**args)
  @log_action_states = args[:log_action_states] if args.key?(:log_action_states)
  @log_actions = args[:log_actions] if args.key?(:log_actions)
end