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.



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

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. See https:// developer.android.com/guide/playcore/in-app-updates. Corresponds to the JSON property inAppUpdatePriority

Returns:

  • (Fixnum)


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

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)


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

def name
  @name
end

#pinned_versionsArray<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_notesArray<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_enabledBoolean Also known as: rollback_enabled?

Corresponds to the JSON property rollbackEnabled

Returns:

  • (Boolean)


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

def rollback_enabled
  @rollback_enabled
end

#samplingGoogle::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

#statusString

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

Returns:

  • (String)


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

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)


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

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


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