Class: Google::Apis::CesV1::ExperimentConfigVersionReleaseTrafficAllocation

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

Traffic allocation for the version release.

Instance Attribute Summary collapse

Instance Method Summary collapse

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_versionString

Optional. App version of the traffic allocation. Format: projects/project/ locations/location/apps/app/versions/version` Corresponds to the JSON propertyappVersion`

Returns:

  • (String)


3142
3143
3144
# File 'lib/google/apis/ces_v1/classes.rb', line 3142

def app_version
  @app_version
end

#idString

Optional. Id of the traffic allocation. Free format string, up to 128 characters. Corresponds to the JSON property id

Returns:

  • (String)


3148
3149
3150
# File 'lib/google/apis/ces_v1/classes.rb', line 3148

def id
  @id
end

#traffic_percentageFixnum

Optional. Traffic percentage of the traffic allocation. Must be between 0 and 100. Corresponds to the JSON property trafficPercentage

Returns:

  • (Fixnum)


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