class Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1VersionVariantsVariant

A single flow version with specified traffic allocation.

Attributes

is_control_group[RW]

Whether the variant is for the control group. Corresponds to the JSON property `isControlGroup` @return [Boolean]

is_control_group?[RW]

Whether the variant is for the control group. Corresponds to the JSON property `isControlGroup` @return [Boolean]

traffic_allocation[RW]

Percentage of the traffic which should be routed to this version of flow. Traffic allocation for a single flow must sum up to 1.0. Corresponds to the JSON property `trafficAllocation` @return [Float]

version[RW]

The name of the flow version. Format: `projects//locations//agents//flows// versions/`. Corresponds to the JSON property `version` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/dialogflow_v3beta1/classes.rb, line 7982
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/dialogflow_v3beta1/classes.rb, line 7987
def update!(**args)
  @is_control_group = args[:is_control_group] if args.key?(:is_control_group)
  @traffic_allocation = args[:traffic_allocation] if args.key?(:traffic_allocation)
  @version = args[:version] if args.key?(:version)
end