Class: Google::Apis::CesV1::ExperimentConfigVersionReleaseTrafficAllocation
- Inherits:
-
Object
- Object
- Google::Apis::CesV1::ExperimentConfigVersionReleaseTrafficAllocation
- 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
Traffic allocation for the version release.
Instance Attribute Summary collapse
-
#app_version ⇒ String
Optional.
-
#id ⇒ String
Optional.
-
#traffic_percentage ⇒ Fixnum
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ExperimentConfigVersionReleaseTrafficAllocation
constructor
A new instance of ExperimentConfigVersionReleaseTrafficAllocation.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ExperimentConfigVersionReleaseTrafficAllocation
Returns a new instance of ExperimentConfigVersionReleaseTrafficAllocation.
3156 3157 3158 |
# File 'lib/google/apis/ces_v1/classes.rb', line 3156 def initialize(**args) update!(**args) end |
Instance Attribute Details
#app_version ⇒ String
Optional. App version of the traffic allocation. Format: projects/project/
locations/location/apps/app/versions/version`
Corresponds to the JSON propertyappVersion`
3142 3143 3144 |
# File 'lib/google/apis/ces_v1/classes.rb', line 3142 def app_version @app_version end |
#id ⇒ String
Optional. Id of the traffic allocation. Free format string, up to 128
characters.
Corresponds to the JSON property id
3148 3149 3150 |
# File 'lib/google/apis/ces_v1/classes.rb', line 3148 def id @id end |
#traffic_percentage ⇒ Fixnum
Optional. Traffic percentage of the traffic allocation. Must be between 0 and
100.
Corresponds to the JSON property trafficPercentage
3154 3155 3156 |
# File 'lib/google/apis/ces_v1/classes.rb', line 3154 def traffic_percentage @traffic_percentage end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3161 3162 3163 3164 3165 |
# File 'lib/google/apis/ces_v1/classes.rb', line 3161 def update!(**args) @app_version = args[:app_version] if args.key?(:app_version) @id = args[:id] if args.key?(:id) @traffic_percentage = args[:traffic_percentage] if args.key?(:traffic_percentage) end |