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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowCxV3beta1VersionVariantsVariant

Returns a new instance of GoogleCloudDialogflowCxV3beta1VersionVariantsVariant.



13936
13937
13938
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 13936

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

Instance Attribute Details

#is_control_groupBoolean Also known as: is_control_group?

Corresponds to the JSON property isControlGroup

Returns:

  • (Boolean)


13923
13924
13925
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 13923

def is_control_group
  @is_control_group
end

#traffic_allocationFloat

Corresponds to the JSON property trafficAllocation

Returns:

  • (Float)


13929
13930
13931
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 13929

def traffic_allocation
  @traffic_allocation
end

#versionString

Corresponds to the JSON property version

Returns:

  • (String)


13934
13935
13936
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 13934

def version
  @version
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



13941
13942
13943
13944
13945
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 13941

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