Class: Google::Apis::AndroidpublisherV3::TrackRelease

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

Overview

A release within a track.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ TrackRelease

Returns a new instance of TrackRelease.


1967
1968
1969
# File 'generated/google/apis/androidpublisher_v3/classes.rb', line 1967

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

Instance Attribute Details

#country_targetingGoogle::Apis::AndroidpublisherV3::CountryTargeting

Country targeting specification. Corresponds to the JSON property countryTargeting


1927
1928
1929
# File 'generated/google/apis/androidpublisher_v3/classes.rb', line 1927

def country_targeting
  @country_targeting
end

#in_app_update_priorityFixnum

In-app update priority of the release. All newly added APKs in the release will be considered at this priority. Can take values in the range [0, 5], with 5 the highest priority. Defaults to 0. in_app_update_priority can not be updated once the release is rolled out. See https://developer.android.com/ guide/playcore/in-app-updates. Corresponds to the JSON property inAppUpdatePriority

Returns:

  • (Fixnum)

1936
1937
1938
# File 'generated/google/apis/androidpublisher_v3/classes.rb', line 1936

def in_app_update_priority
  @in_app_update_priority
end

#nameString

The release name. Not required to be unique. If not set, the name is generated from the APK's version_name. If the release contains multiple APKs, the name is generated from the date. Corresponds to the JSON property name

Returns:

  • (String)

1943
1944
1945
# File 'generated/google/apis/androidpublisher_v3/classes.rb', line 1943

def name
  @name
end

#release_notesArray<Google::Apis::AndroidpublisherV3::LocalizedText>

A description of what is new in this release. Corresponds to the JSON property releaseNotes


1948
1949
1950
# File 'generated/google/apis/androidpublisher_v3/classes.rb', line 1948

def release_notes
  @release_notes
end

#statusString

The status of the release. Corresponds to the JSON property status

Returns:

  • (String)

1953
1954
1955
# File 'generated/google/apis/androidpublisher_v3/classes.rb', line 1953

def status
  @status
end

#user_fractionFloat

Fraction of users who are eligible for a staged release. 0 < fraction < 1. Can only be set when status is "inProgress" or "halted". Corresponds to the JSON property userFraction

Returns:

  • (Float)

1959
1960
1961
# File 'generated/google/apis/androidpublisher_v3/classes.rb', line 1959

def user_fraction
  @user_fraction
end

#version_codesArray<Fixnum>

Version codes of all APKs in the release. Must include version codes to retain from previous releases. Corresponds to the JSON property versionCodes

Returns:

  • (Array<Fixnum>)

1965
1966
1967
# File 'generated/google/apis/androidpublisher_v3/classes.rb', line 1965

def version_codes
  @version_codes
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


1972
1973
1974
1975
1976
1977
1978
1979
1980
# File 'generated/google/apis/androidpublisher_v3/classes.rb', line 1972

def update!(**args)
  @country_targeting = args[:country_targeting] if args.key?(:country_targeting)
  @in_app_update_priority = args[:in_app_update_priority] if args.key?(:in_app_update_priority)
  @name = args[:name] if args.key?(:name)
  @release_notes = args[:release_notes] if args.key?(:release_notes)
  @status = args[:status] if args.key?(:status)
  @user_fraction = args[:user_fraction] if args.key?(:user_fraction)
  @version_codes = args[:version_codes] if args.key?(:version_codes)
end