Class: Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1RolloutConfigRolloutStep
- Inherits:
-
Object
- Object
- Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1RolloutConfigRolloutStep
- 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 rollout step with specified traffic allocation.
Instance Attribute Summary collapse
-
#display_name ⇒ String
The name of the rollout step; Corresponds to the JSON property
displayName
. -
#min_duration ⇒ String
The minimum time that this step should last.
-
#traffic_percent ⇒ Fixnum
The percentage of traffic allocated to the flow version of this rollout step.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDialogflowCxV3beta1RolloutConfigRolloutStep
constructor
A new instance of GoogleCloudDialogflowCxV3beta1RolloutConfigRolloutStep.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDialogflowCxV3beta1RolloutConfigRolloutStep
Returns a new instance of GoogleCloudDialogflowCxV3beta1RolloutConfigRolloutStep.
10400 10401 10402 |
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 10400 def initialize(**args) update!(**args) end |
Instance Attribute Details
#display_name ⇒ String
The name of the rollout step;
Corresponds to the JSON property displayName
10386 10387 10388 |
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 10386 def display_name @display_name end |
#min_duration ⇒ String
The minimum time that this step should last. Should be longer than 1 hour. If
not set, the default minimum duration for each step will be 1 hour.
Corresponds to the JSON property minDuration
10392 10393 10394 |
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 10392 def min_duration @min_duration end |
#traffic_percent ⇒ Fixnum
The percentage of traffic allocated to the flow version of this rollout step. (
0%, 100%].
Corresponds to the JSON property trafficPercent
10398 10399 10400 |
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 10398 def traffic_percent @traffic_percent end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
10405 10406 10407 10408 10409 |
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 10405 def update!(**args) @display_name = args[:display_name] if args.key?(:display_name) @min_duration = args[:min_duration] if args.key?(:min_duration) @traffic_percent = args[:traffic_percent] if args.key?(:traffic_percent) end |