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.



3452
3453
3454
# File 'lib/google/apis/ces_v1/classes.rb', line 3452

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)


3438
3439
3440
# File 'lib/google/apis/ces_v1/classes.rb', line 3438

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)


3444
3445
3446
# File 'lib/google/apis/ces_v1/classes.rb', line 3444

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)


3450
3451
3452
# File 'lib/google/apis/ces_v1/classes.rb', line 3450

def traffic_percentage
  @traffic_percentage
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3457
3458
3459
3460
3461
# File 'lib/google/apis/ces_v1/classes.rb', line 3457

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