Class: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaLoggingConfig

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

Overview

Project level logging config to control what level of log will be generated and written to Cloud Logging.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudRetailV2alphaLoggingConfig

Returns a new instance of GoogleCloudRetailV2alphaLoggingConfig.



3884
3885
3886
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 3884

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

Instance Attribute Details

#default_log_generation_ruleGoogle::Apis::RetailV2alpha::GoogleCloudRetailV2alphaLoggingConfigLogGenerationRule

The logging configurations for services supporting log generation. Corresponds to the JSON property defaultLogGenerationRule



3869
3870
3871
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 3869

def default_log_generation_rule
  @default_log_generation_rule
end

#nameString

Required. Immutable. The name of the LoggingConfig singleton resource. Format: projects/*/loggingConfig Corresponds to the JSON property name

Returns:

  • (String)


3875
3876
3877
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 3875

def name
  @name
end

#service_log_generation_rulesArray<Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaLoggingConfigServiceLogGenerationRule>

Controls logging configurations more granularly for each supported service. This overrides the default_log_generation_rule for the services specified. For those not mentioned, they will fallback to the default log generation rule. Corresponds to the JSON property serviceLogGenerationRules



3882
3883
3884
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 3882

def service_log_generation_rules
  @service_log_generation_rules
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3889
3890
3891
3892
3893
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 3889

def update!(**args)
  @default_log_generation_rule = args[:default_log_generation_rule] if args.key?(:default_log_generation_rule)
  @name = args[:name] if args.key?(:name)
  @service_log_generation_rules = args[:service_log_generation_rules] if args.key?(:service_log_generation_rules)
end