Class: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaExperimentInfo

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

Metadata for active A/B testing experiment.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudRetailV2alphaExperimentInfo

Returns a new instance of GoogleCloudRetailV2alphaExperimentInfo.



2895
2896
2897
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 2895

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

Instance Attribute Details

#experimentString

The fully qualified resource name of the experiment that provides the serving config under test, should an active experiment exist. For example: projects/*/ locations/global/catalogs/default_catalog/experiments/experiment_id Corresponds to the JSON property experiment

Returns:

  • (String)


2888
2889
2890
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 2888

def experiment
  @experiment
end

#serving_config_experimentGoogle::Apis::RetailV2alpha::GoogleCloudRetailV2alphaExperimentInfoServingConfigExperiment

Metadata for active serving config A/B tests. Corresponds to the JSON property servingConfigExperiment



2893
2894
2895
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 2893

def serving_config_experiment
  @serving_config_experiment
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2900
2901
2902
2903
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 2900

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