Class: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaLoggingConfigServiceLogGenerationRule

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

The granular logging configurations for supported services.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudRetailV2alphaLoggingConfigServiceLogGenerationRule

Returns a new instance of GoogleCloudRetailV2alphaLoggingConfigServiceLogGenerationRule.



3449
3450
3451
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 3449

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

Instance Attribute Details

#log_generation_ruleGoogle::Apis::RetailV2alpha::GoogleCloudRetailV2alphaLoggingConfigLogGenerationRule

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



3440
3441
3442
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 3440

def log_generation_rule
  @log_generation_rule
end

#service_nameString

Required. Supported service names: "CatalogService", "CompletionService", " ControlService", "MerchantCenterStreaming", "ModelService", "PredictionService" , "ProductService", "ServingConfigService", "UserEventService", Corresponds to the JSON property serviceName

Returns:

  • (String)


3447
3448
3449
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 3447

def service_name
  @service_name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3454
3455
3456
3457
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 3454

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