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.



4160
4161
4162
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 4160

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



4151
4152
4153
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 4151

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)


4158
4159
4160
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 4158

def service_name
  @service_name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4165
4166
4167
4168
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 4165

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