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

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



1877
1878
1879
# File 'generated/google/apis/androidpublisher_v3/classes.rb', line 1877

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

Instance Attribute Details

#country_targetingGoogle::Apis::AndroidpublisherV3::CountryTargeting

Corresponds to the JSON property countryTargeting



1844
1845
1846
# File 'generated/google/apis/androidpublisher_v3/classes.rb', line 1844

def country_targeting
  @country_targeting
end

#nameString

The release name, used to identify this release in the Play Console UI. Not required to be unique. This is optional, if not set it will be generated from the version_name in the APKs. Corresponds to the JSON property name

Returns:

  • (String)


1851
1852
1853
# File 'generated/google/apis/androidpublisher_v3/classes.rb', line 1851

def name
  @name
end

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

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



1856
1857
1858
# File 'generated/google/apis/androidpublisher_v3/classes.rb', line 1856

def release_notes
  @release_notes
end

#statusString

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

Returns:

  • (String)


1861
1862
1863
# File 'generated/google/apis/androidpublisher_v3/classes.rb', line 1861

def status
  @status
end

#user_fractionFloat

Fraction of users who are eligible to receive the release. 0 < fraction < 1. To be set, release status must be "inProgress" or "halted". Corresponds to the JSON property userFraction

Returns:

  • (Float)


1867
1868
1869
# File 'generated/google/apis/androidpublisher_v3/classes.rb', line 1867

def user_fraction
  @user_fraction
end

#version_codesArray<Fixnum>

A list of all version codes of APKs that will be exposed to the users of this track when this release is rolled out. Note that this list should contain all versions you wish to be active, including those you wish to retain from previous releases. Corresponds to the JSON property versionCodes

Returns:

  • (Array<Fixnum>)


1875
1876
1877
# File 'generated/google/apis/androidpublisher_v3/classes.rb', line 1875

def version_codes
  @version_codes
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1882
1883
1884
1885
1886
1887
1888
1889
# File 'generated/google/apis/androidpublisher_v3/classes.rb', line 1882

def update!(**args)
  @country_targeting = args[:country_targeting] if args.key?(:country_targeting)
  @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