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.



4102
4103
4104
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 4102

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



4087
4088
4089
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 4087

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)


4093
4094
4095
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 4093

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



4100
4101
4102
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 4100

def service_log_generation_rules
  @service_log_generation_rules
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4107
4108
4109
4110
4111
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 4107

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