Class: Google::Apis::CesV1::ExperimentConfigVersionRelease
- Inherits:
-
Object
- Object
- Google::Apis::CesV1::ExperimentConfigVersionRelease
- 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
-
#state ⇒ String
Optional.
-
#traffic_allocations ⇒ Array<Google::Apis::CesV1::ExperimentConfigVersionReleaseTrafficAllocation>
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ExperimentConfigVersionRelease
constructor
A new instance of ExperimentConfigVersionRelease.
-
#update!(**args) ⇒ Object
Update properties of this object.
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
#state ⇒ String
Optional. State of the version release.
Corresponds to the JSON property state
3116 3117 3118 |
# File 'lib/google/apis/ces_v1/classes.rb', line 3116 def state @state end |
#traffic_allocations ⇒ Array<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 |