Class: Google::Apis::VersionhistoryV1::Release

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/versionhistory_v1/classes.rb,
lib/google/apis/versionhistory_v1/representations.rb,
lib/google/apis/versionhistory_v1/representations.rb

Overview

A Release is owned by a Version. A Release contains information about the release(s) of its parent version. This includes when the release began and ended, as well as what percentage it was released at. If the version is released again, or if the serving percentage changes, it will create another release under the version.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Release

Returns a new instance of Release.



260
261
262
# File 'lib/google/apis/versionhistory_v1/classes.rb', line 260

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#fractionFloat

Rollout fraction. This fraction indicates the fraction of people that should receive this version in this release. If the fraction is not specified in ReleaseManager, the API will assume fraction is 1. Corresponds to the JSON property fraction

Returns:

  • (Float)


226
227
228
# File 'lib/google/apis/versionhistory_v1/classes.rb', line 226

def fraction
  @fraction
end

#fraction_groupFixnum

Rollout fraction group. Only fractions with the same fraction_group are statistically comparable: there may be non-fractional differences between different fraction groups. Corresponds to the JSON property fractionGroup

Returns:

  • (Fixnum)


233
234
235
# File 'lib/google/apis/versionhistory_v1/classes.rb', line 233

def fraction_group
  @fraction_group
end

#nameString

Release name. Format is "product/platforms/platform/channels/channel/ versions/version/releases/release" Corresponds to the JSON property name

Returns:

  • (String)


239
240
241
# File 'lib/google/apis/versionhistory_v1/classes.rb', line 239

def name
  @name
end

#pinnableBoolean Also known as: pinnable?

Whether or not the release was available for version pinning. Corresponds to the JSON property pinnable

Returns:

  • (Boolean)


244
245
246
# File 'lib/google/apis/versionhistory_v1/classes.rb', line 244

def pinnable
  @pinnable
end

#servingGoogle::Apis::VersionhistoryV1::Interval

Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive). The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time. Corresponds to the JSON property serving



253
254
255
# File 'lib/google/apis/versionhistory_v1/classes.rb', line 253

def serving
  @serving
end

#versionString

String containing just the version number. e.g. "84.0.4147.38" Corresponds to the JSON property version

Returns:

  • (String)


258
259
260
# File 'lib/google/apis/versionhistory_v1/classes.rb', line 258

def version
  @version
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



265
266
267
268
269
270
271
272
# File 'lib/google/apis/versionhistory_v1/classes.rb', line 265

def update!(**args)
  @fraction = args[:fraction] if args.key?(:fraction)
  @fraction_group = args[:fraction_group] if args.key?(:fraction_group)
  @name = args[:name] if args.key?(:name)
  @pinnable = args[:pinnable] if args.key?(:pinnable)
  @serving = args[:serving] if args.key?(:serving)
  @version = args[:version] if args.key?(:version)
end