Class: Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1RolloutConfigRolloutStep

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 rollout step with specified traffic allocation.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowCxV3beta1RolloutConfigRolloutStep

Returns a new instance of GoogleCloudDialogflowCxV3beta1RolloutConfigRolloutStep.



7349
7350
7351
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 7349

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

Instance Attribute Details

#display_nameString

The name of the rollout step; Corresponds to the JSON property displayName

Returns:

  • (String)


7335
7336
7337
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 7335

def display_name
  @display_name
end

#min_durationString

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

Returns:

  • (String)


7341
7342
7343
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 7341

def min_duration
  @min_duration
end

#traffic_percentFixnum

The percentage of traffic allocated to the flow version of this rollout step. ( 0%, 100%]. Corresponds to the JSON property trafficPercent

Returns:

  • (Fixnum)


7347
7348
7349
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 7347

def traffic_percent
  @traffic_percent
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



7354
7355
7356
7357
7358
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 7354

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