Class: Google::Apis::AndroidpublisherV3::TrackRelease
- Inherits:
-
Object
- Object
- Google::Apis::AndroidpublisherV3::TrackRelease
- 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
-
#controls ⇒ Array<Google::Apis::AndroidpublisherV3::Control>
Corresponds to the JSON property
controls
. -
#country_targeting ⇒ Google::Apis::AndroidpublisherV3::CountryTargeting
Corresponds to the JSON property
countryTargeting
. -
#in_app_update_priority ⇒ Fixnum
In-app update priority of the release.
-
#name ⇒ String
The release name, used to identify this release in the Play Console UI.
-
#pinned_versions ⇒ Array<Google::Apis::AndroidpublisherV3::TrackReleasePin>
Corresponds to the JSON property
pinnedVersions
. -
#release_notes ⇒ Array<Google::Apis::AndroidpublisherV3::LocalizedText>
The description of what is new in the app in this release.
-
#rollback_enabled ⇒ Boolean
(also: #rollback_enabled?)
Corresponds to the JSON property
rollbackEnabled
. -
#sampling ⇒ Google::Apis::AndroidpublisherV3::Sampling
Corresponds to the JSON property
sampling
. -
#status ⇒ String
The desired status of this release.
-
#user_fraction ⇒ Float
Fraction of users who are eligible to receive the release.
-
#version_codes ⇒ Array<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.
Instance Method Summary collapse
-
#initialize(**args) ⇒ TrackRelease
constructor
A new instance of TrackRelease.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ TrackRelease
Returns a new instance of TrackRelease.
2144 2145 2146 |
# File 'generated/google/apis/androidpublisher_v3/classes.rb', line 2144 def initialize(**args) update!(**args) end |
Instance Attribute Details
#controls ⇒ Array<Google::Apis::AndroidpublisherV3::Control>
Corresponds to the JSON property controls
2082 2083 2084 |
# File 'generated/google/apis/androidpublisher_v3/classes.rb', line 2082 def controls @controls end |
#country_targeting ⇒ Google::Apis::AndroidpublisherV3::CountryTargeting
Corresponds to the JSON property countryTargeting
2087 2088 2089 |
# File 'generated/google/apis/androidpublisher_v3/classes.rb', line 2087 def country_targeting @country_targeting end |
#in_app_update_priority ⇒ Fixnum
In-app update priority of the release. All newly added APKs in the release
will be considered at this priority. in_app_update_priority can take values
between [0, 5]. 5 is the highest priority. Default priority is 0. See https://
developer.android.com/guide/playcore/in-app-updates.
Corresponds to the JSON property inAppUpdatePriority
2095 2096 2097 |
# File 'generated/google/apis/androidpublisher_v3/classes.rb', line 2095 def in_app_update_priority @in_app_update_priority end |
#name ⇒ String
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
2102 2103 2104 |
# File 'generated/google/apis/androidpublisher_v3/classes.rb', line 2102 def name @name end |
#pinned_versions ⇒ Array<Google::Apis::AndroidpublisherV3::TrackReleasePin>
Corresponds to the JSON property pinnedVersions
2107 2108 2109 |
# File 'generated/google/apis/androidpublisher_v3/classes.rb', line 2107 def pinned_versions @pinned_versions end |
#release_notes ⇒ Array<Google::Apis::AndroidpublisherV3::LocalizedText>
The description of what is new in the app in this release.
Corresponds to the JSON property releaseNotes
2112 2113 2114 |
# File 'generated/google/apis/androidpublisher_v3/classes.rb', line 2112 def release_notes @release_notes end |
#rollback_enabled ⇒ Boolean Also known as: rollback_enabled?
Corresponds to the JSON property rollbackEnabled
2117 2118 2119 |
# File 'generated/google/apis/androidpublisher_v3/classes.rb', line 2117 def rollback_enabled @rollback_enabled end |
#sampling ⇒ Google::Apis::AndroidpublisherV3::Sampling
Corresponds to the JSON property sampling
2123 2124 2125 |
# File 'generated/google/apis/androidpublisher_v3/classes.rb', line 2123 def sampling @sampling end |
#status ⇒ String
The desired status of this release.
Corresponds to the JSON property status
2128 2129 2130 |
# File 'generated/google/apis/androidpublisher_v3/classes.rb', line 2128 def status @status end |
#user_fraction ⇒ Float
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
2134 2135 2136 |
# File 'generated/google/apis/androidpublisher_v3/classes.rb', line 2134 def user_fraction @user_fraction end |
#version_codes ⇒ Array<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
2142 2143 2144 |
# File 'generated/google/apis/androidpublisher_v3/classes.rb', line 2142 def version_codes @version_codes end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 |
# File 'generated/google/apis/androidpublisher_v3/classes.rb', line 2149 def update!(**args) @controls = args[:controls] if args.key?(:controls) @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) @pinned_versions = args[:pinned_versions] if args.key?(:pinned_versions) @release_notes = args[:release_notes] if args.key?(:release_notes) @rollback_enabled = args[:rollback_enabled] if args.key?(:rollback_enabled) @sampling = args[:sampling] if args.key?(:sampling) @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 |