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.



3323
3324
3325
# File 'lib/google/apis/ces_v1/classes.rb', line 3323

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)


3309
3310
3311
# File 'lib/google/apis/ces_v1/classes.rb', line 3309

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)


3315
3316
3317
# File 'lib/google/apis/ces_v1/classes.rb', line 3315

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)


3321
3322
3323
# File 'lib/google/apis/ces_v1/classes.rb', line 3321

def traffic_percentage
  @traffic_percentage
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3328
3329
3330
3331
3332
# File 'lib/google/apis/ces_v1/classes.rb', line 3328

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