Class: Google::Apis::RetailV2beta::GoogleCloudRetailV2betaExperimentInfo

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/retail_v2beta/classes.rb,
lib/google/apis/retail_v2beta/representations.rb,
lib/google/apis/retail_v2beta/representations.rb

Overview

Metadata for active A/B testing Experiments.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudRetailV2betaExperimentInfo

Returns a new instance of GoogleCloudRetailV2betaExperimentInfo.



3008
3009
3010
# File 'lib/google/apis/retail_v2beta/classes.rb', line 3008

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

Instance Attribute Details

#experiment_nameString

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 experimentName

Returns:

  • (String)


3001
3002
3003
# File 'lib/google/apis/retail_v2beta/classes.rb', line 3001

def experiment_name
  @experiment_name
end

#serving_config_experimentGoogle::Apis::RetailV2beta::GoogleCloudRetailV2betaExperimentInfoServingConfigExperiment

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



3006
3007
3008
# File 'lib/google/apis/retail_v2beta/classes.rb', line 3006

def serving_config_experiment
  @serving_config_experiment
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3013
3014
3015
3016
# File 'lib/google/apis/retail_v2beta/classes.rb', line 3013

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