Class: Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1VersionVariantsVariant

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

Overview

A single flow version with specified traffic allocation.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowCxV3beta1VersionVariantsVariant

Returns a new instance of GoogleCloudDialogflowCxV3beta1VersionVariantsVariant.



12489
12490
12491
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 12489

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

Instance Attribute Details

#is_control_groupBoolean Also known as: is_control_group?

Whether the variant is for the control group. Corresponds to the JSON property isControlGroup

Returns:

  • (Boolean)


12474
12475
12476
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 12474

def is_control_group
  @is_control_group
end

#traffic_allocationFloat

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

Returns:

  • (Float)


12481
12482
12483
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 12481

def traffic_allocation
  @traffic_allocation
end

#versionString

The name of the flow version. Format: projects//locations//agents//flows// versions/. Corresponds to the JSON property version

Returns:

  • (String)


12487
12488
12489
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 12487

def version
  @version
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



12494
12495
12496
12497
12498
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 12494

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