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.



727
728
729
# File 'lib/google/apis/storagebatchoperations_v1/classes.rb', line 727

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>)


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

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>)


725
726
727
# File 'lib/google/apis/storagebatchoperations_v1/classes.rb', line 725

def log_actions
  @log_actions
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



732
733
734
735
# File 'lib/google/apis/storagebatchoperations_v1/classes.rb', line 732

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