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.



3942
3943
3944
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 3942

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



3933
3934
3935
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 3933

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)


3940
3941
3942
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 3940

def service_name
  @service_name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3947
3948
3949
3950
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 3947

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