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.



2145
2146
2147
# File 'generated/google/apis/androidpublisher_v3/classes.rb', line 2145

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

Instance Attribute Details

#controlsArray<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_targetingGoogle::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_priorityFixnum

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. 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)


2096
2097
2098
# File 'generated/google/apis/androidpublisher_v3/classes.rb', line 2096

def in_app_update_priority
  @in_app_update_priority
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)


2103
2104
2105
# File 'generated/google/apis/androidpublisher_v3/classes.rb', line 2103

def name
  @name
end

#pinned_versionsArray<Google::Apis::AndroidpublisherV3::TrackReleasePin>

Corresponds to the JSON property pinnedVersions



2108
2109
2110
# File 'generated/google/apis/androidpublisher_v3/classes.rb', line 2108

def pinned_versions
  @pinned_versions
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



2113
2114
2115
# File 'generated/google/apis/androidpublisher_v3/classes.rb', line 2113

def release_notes
  @release_notes
end

#rollback_enabledBoolean Also known as: rollback_enabled?

Corresponds to the JSON property rollbackEnabled

Returns:

  • (Boolean)


2118
2119
2120
# File 'generated/google/apis/androidpublisher_v3/classes.rb', line 2118

def rollback_enabled
  @rollback_enabled
end

#samplingGoogle::Apis::AndroidpublisherV3::Sampling

Corresponds to the JSON property sampling



2124
2125
2126
# File 'generated/google/apis/androidpublisher_v3/classes.rb', line 2124

def sampling
  @sampling
end

#statusString

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

Returns:

  • (String)


2129
2130
2131
# File 'generated/google/apis/androidpublisher_v3/classes.rb', line 2129

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)


2135
2136
2137
# File 'generated/google/apis/androidpublisher_v3/classes.rb', line 2135

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>)


2143
2144
2145
# File 'generated/google/apis/androidpublisher_v3/classes.rb', line 2143

def version_codes
  @version_codes
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
# File 'generated/google/apis/androidpublisher_v3/classes.rb', line 2150

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