Class: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3VersionVariantsVariant

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

Overview

A single flow version with specified traffic allocation.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowCxV3VersionVariantsVariant

Returns a new instance of GoogleCloudDialogflowCxV3VersionVariantsVariant.



8336
8337
8338
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 8336

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)


8321
8322
8323
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 8321

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)


8328
8329
8330
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 8328

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)


8334
8335
8336
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 8334

def version
  @version
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



8341
8342
8343
8344
8345
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 8341

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