Class: Google::Apis::StoragebatchoperationsV1::LoggingConfig
- Inherits:
-
Object
- Object
- Google::Apis::StoragebatchoperationsV1::LoggingConfig
- 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
-
#log_action_states ⇒ Array<String>
Required.
-
#log_actions ⇒ Array<String>
Required.
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.
727 728 729 |
# File 'lib/google/apis/storagebatchoperations_v1/classes.rb', line 727 def initialize(**args) update!(**args) end |
Instance Attribute Details
#log_action_states ⇒ Array<String>
Required. States in which Action are logged.If empty, no logs are generated.
Corresponds to the JSON property logActionStates
720 721 722 |
# File 'lib/google/apis/storagebatchoperations_v1/classes.rb', line 720 def log_action_states @log_action_states end |
#log_actions ⇒ Array<String>
Required. Specifies the actions to be logged.
Corresponds to the JSON property logActions
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 |