Class: Google::Apis::CesV1::ExperimentConfigVersionRelease

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

Overview

Version release for the experiment.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ExperimentConfigVersionRelease

Returns a new instance of ExperimentConfigVersionRelease.



3123
3124
3125
# File 'lib/google/apis/ces_v1/classes.rb', line 3123

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

Instance Attribute Details

#stateString

Optional. State of the version release. Corresponds to the JSON property state

Returns:

  • (String)


3116
3117
3118
# File 'lib/google/apis/ces_v1/classes.rb', line 3116

def state
  @state
end

#traffic_allocationsArray<Google::Apis::CesV1::ExperimentConfigVersionReleaseTrafficAllocation>

Optional. Traffic allocations for the version release. Corresponds to the JSON property trafficAllocations



3121
3122
3123
# File 'lib/google/apis/ces_v1/classes.rb', line 3121

def traffic_allocations
  @traffic_allocations
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3128
3129
3130
3131
# File 'lib/google/apis/ces_v1/classes.rb', line 3128

def update!(**args)
  @state = args[:state] if args.key?(:state)
  @traffic_allocations = args[:traffic_allocations] if args.key?(:traffic_allocations)
end