Class: Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1VersionVariantsVariant
- Inherits:
-
Object
- Object
- Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1VersionVariantsVariant
- 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
-
#is_control_group ⇒ Boolean
(also: #is_control_group?)
Whether the variant is for the control group.
-
#traffic_allocation ⇒ Float
Percentage of the traffic which should be routed to this version of flow.
-
#version ⇒ String
The name of the flow version.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDialogflowCxV3beta1VersionVariantsVariant
constructor
A new instance of GoogleCloudDialogflowCxV3beta1VersionVariantsVariant.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDialogflowCxV3beta1VersionVariantsVariant
Returns a new instance of GoogleCloudDialogflowCxV3beta1VersionVariantsVariant.
7264 7265 7266 |
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 7264 def initialize(**args) update!(**args) end |
Instance Attribute Details
#is_control_group ⇒ Boolean Also known as: is_control_group?
Whether the variant is for the control group.
Corresponds to the JSON property isControlGroup
7249 7250 7251 |
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 7249 def is_control_group @is_control_group end |
#traffic_allocation ⇒ Float
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
7256 7257 7258 |
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 7256 def traffic_allocation @traffic_allocation end |
#version ⇒ String
The name of the flow version. Format: projects//locations//agents//flows//
versions/.
Corresponds to the JSON property version
7262 7263 7264 |
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 7262 def version @version end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
7269 7270 7271 7272 7273 |
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 7269 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 |