2018-05-09 00:36:02 +00:00
|
|
|
# Copyright 2015 Google Inc.
|
|
|
|
#
|
|
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
# you may not use this file except in compliance with the License.
|
|
|
|
# You may obtain a copy of the License at
|
|
|
|
#
|
|
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
#
|
|
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
# See the License for the specific language governing permissions and
|
|
|
|
# limitations under the License.
|
|
|
|
|
|
|
|
require 'date'
|
|
|
|
require 'google/apis/core/base_service'
|
|
|
|
require 'google/apis/core/json_representation'
|
|
|
|
require 'google/apis/core/hashable'
|
|
|
|
require 'google/apis/errors'
|
|
|
|
|
|
|
|
module Google
|
|
|
|
module Apis
|
|
|
|
module AndroidpublisherV3
|
|
|
|
|
2020-06-09 00:38:09 +00:00
|
|
|
# Information about an APK. The resource for ApksService.
|
2018-05-09 00:36:02 +00:00
|
|
|
class Apk
|
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
|
|
|
# Represents the binary payload of an APK.
|
|
|
|
# Corresponds to the JSON property `binary`
|
|
|
|
# @return [Google::Apis::AndroidpublisherV3::ApkBinary]
|
|
|
|
attr_accessor :binary
|
|
|
|
|
2020-06-09 00:38:09 +00:00
|
|
|
# The version code of the APK, as specified in the manifest file.
|
2018-05-09 00:36:02 +00:00
|
|
|
# Corresponds to the JSON property `versionCode`
|
|
|
|
# @return [Fixnum]
|
|
|
|
attr_accessor :version_code
|
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
|
|
|
@binary = args[:binary] if args.key?(:binary)
|
|
|
|
@version_code = args[:version_code] if args.key?(:version_code)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
# Represents the binary payload of an APK.
|
|
|
|
class ApkBinary
|
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
|
|
|
# A sha1 hash of the APK payload, encoded as a hex string and matching the
|
|
|
|
# output of the sha1sum command.
|
|
|
|
# Corresponds to the JSON property `sha1`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :sha1
|
|
|
|
|
2020-08-04 00:38:33 +00:00
|
|
|
# A sha256 hash of the APK payload, encoded as a hex string and matching the
|
|
|
|
# output of the sha256sum command.
|
2018-05-09 00:36:02 +00:00
|
|
|
# Corresponds to the JSON property `sha256`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :sha256
|
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
|
|
|
@sha1 = args[:sha1] if args.key?(:sha1)
|
|
|
|
@sha256 = args[:sha256] if args.key?(:sha256)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2020-06-09 00:38:09 +00:00
|
|
|
# Request to create a new externally hosted APK.
|
2018-05-09 00:36:02 +00:00
|
|
|
class ApksAddExternallyHostedRequest
|
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
2020-08-04 00:38:33 +00:00
|
|
|
# Defines an APK available for this application that is hosted externally and
|
|
|
|
# not uploaded to Google Play. This function is only available to organizations
|
|
|
|
# using Managed Play whose application is configured to restrict distribution to
|
|
|
|
# the organizations.
|
2018-05-09 00:36:02 +00:00
|
|
|
# Corresponds to the JSON property `externallyHostedApk`
|
|
|
|
# @return [Google::Apis::AndroidpublisherV3::ExternallyHostedApk]
|
|
|
|
attr_accessor :externally_hosted_apk
|
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
|
|
|
@externally_hosted_apk = args[:externally_hosted_apk] if args.key?(:externally_hosted_apk)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2020-06-09 00:38:09 +00:00
|
|
|
# Response for creating a new externally hosted APK.
|
2018-05-09 00:36:02 +00:00
|
|
|
class ApksAddExternallyHostedResponse
|
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
2020-08-04 00:38:33 +00:00
|
|
|
# Defines an APK available for this application that is hosted externally and
|
|
|
|
# not uploaded to Google Play. This function is only available to organizations
|
|
|
|
# using Managed Play whose application is configured to restrict distribution to
|
|
|
|
# the organizations.
|
2018-05-09 00:36:02 +00:00
|
|
|
# Corresponds to the JSON property `externallyHostedApk`
|
|
|
|
# @return [Google::Apis::AndroidpublisherV3::ExternallyHostedApk]
|
|
|
|
attr_accessor :externally_hosted_apk
|
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
|
|
|
@externally_hosted_apk = args[:externally_hosted_apk] if args.key?(:externally_hosted_apk)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2020-06-09 00:38:09 +00:00
|
|
|
# Response listing all APKs.
|
2018-05-09 00:36:02 +00:00
|
|
|
class ApksListResponse
|
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
2020-06-09 00:38:09 +00:00
|
|
|
# All APKs.
|
2018-05-09 00:36:02 +00:00
|
|
|
# Corresponds to the JSON property `apks`
|
|
|
|
# @return [Array<Google::Apis::AndroidpublisherV3::Apk>]
|
|
|
|
attr_accessor :apks
|
|
|
|
|
2020-06-09 00:38:09 +00:00
|
|
|
# The kind of this response ("androidpublisher#apksListResponse").
|
2018-05-09 00:36:02 +00:00
|
|
|
# Corresponds to the JSON property `kind`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :kind
|
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
|
|
|
@apks = args[:apks] if args.key?(:apks)
|
|
|
|
@kind = args[:kind] if args.key?(:kind)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2020-06-09 00:38:09 +00:00
|
|
|
# The app details. The resource for DetailsService.
|
2018-05-09 00:36:02 +00:00
|
|
|
class AppDetails
|
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
|
|
|
# The user-visible support email for this app.
|
|
|
|
# Corresponds to the JSON property `contactEmail`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :contact_email
|
|
|
|
|
|
|
|
# The user-visible support telephone number for this app.
|
|
|
|
# Corresponds to the JSON property `contactPhone`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :contact_phone
|
|
|
|
|
|
|
|
# The user-visible website for this app.
|
|
|
|
# Corresponds to the JSON property `contactWebsite`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :contact_website
|
|
|
|
|
|
|
|
# Default language code, in BCP 47 format (eg "en-US").
|
|
|
|
# Corresponds to the JSON property `defaultLanguage`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :default_language
|
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
|
|
|
@contact_email = args[:contact_email] if args.key?(:contact_email)
|
|
|
|
@contact_phone = args[:contact_phone] if args.key?(:contact_phone)
|
|
|
|
@contact_website = args[:contact_website] if args.key?(:contact_website)
|
|
|
|
@default_language = args[:default_language] if args.key?(:default_language)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2020-06-09 00:38:09 +00:00
|
|
|
# An app edit. The resource for EditsService.
|
2018-05-09 00:36:02 +00:00
|
|
|
class AppEdit
|
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
2020-06-09 00:38:09 +00:00
|
|
|
# Output only. The time (as seconds since Epoch) at which the edit will expire
|
2020-08-04 00:38:33 +00:00
|
|
|
# and will be no longer valid for use.
|
2018-05-09 00:36:02 +00:00
|
|
|
# Corresponds to the JSON property `expiryTimeSeconds`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :expiry_time_seconds
|
|
|
|
|
2020-06-09 00:38:09 +00:00
|
|
|
# Output only. Identifier of the edit. Can be used in subsequent API calls.
|
2018-05-09 00:36:02 +00:00
|
|
|
# Corresponds to the JSON property `id`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :id
|
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
|
|
|
@expiry_time_seconds = args[:expiry_time_seconds] if args.key?(:expiry_time_seconds)
|
|
|
|
@id = args[:id] if args.key?(:id)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2020-06-09 00:38:09 +00:00
|
|
|
# Information about a bundle. The resource for BundlesService.
|
2018-05-11 00:36:23 +00:00
|
|
|
class Bundle
|
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
2020-08-04 00:38:33 +00:00
|
|
|
# A sha1 hash of the upload payload, encoded as a hex string and matching the
|
|
|
|
# output of the sha1sum command.
|
2018-05-11 00:36:23 +00:00
|
|
|
# Corresponds to the JSON property `sha1`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :sha1
|
|
|
|
|
2020-08-04 00:38:33 +00:00
|
|
|
# A sha256 hash of the upload payload, encoded as a hex string and matching the
|
|
|
|
# output of the sha256sum command.
|
2018-05-11 00:36:23 +00:00
|
|
|
# Corresponds to the JSON property `sha256`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :sha256
|
|
|
|
|
2020-06-09 00:38:09 +00:00
|
|
|
# The version code of the Android App Bundle, as specified in the Android App
|
2018-05-11 00:36:23 +00:00
|
|
|
# Bundle's base module APK manifest file.
|
|
|
|
# Corresponds to the JSON property `versionCode`
|
|
|
|
# @return [Fixnum]
|
|
|
|
attr_accessor :version_code
|
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
|
|
|
@sha1 = args[:sha1] if args.key?(:sha1)
|
|
|
|
@sha256 = args[:sha256] if args.key?(:sha256)
|
|
|
|
@version_code = args[:version_code] if args.key?(:version_code)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2020-06-09 00:38:09 +00:00
|
|
|
# Response listing all bundles.
|
2018-05-11 00:36:23 +00:00
|
|
|
class BundlesListResponse
|
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
2020-06-09 00:38:09 +00:00
|
|
|
# All bundles.
|
2018-05-11 00:36:23 +00:00
|
|
|
# Corresponds to the JSON property `bundles`
|
|
|
|
# @return [Array<Google::Apis::AndroidpublisherV3::Bundle>]
|
|
|
|
attr_accessor :bundles
|
|
|
|
|
2020-06-09 00:38:09 +00:00
|
|
|
# The kind of this response ("androidpublisher#bundlesListResponse").
|
2018-05-11 00:36:23 +00:00
|
|
|
# Corresponds to the JSON property `kind`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :kind
|
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
|
|
|
@bundles = args[:bundles] if args.key?(:bundles)
|
|
|
|
@kind = args[:kind] if args.key?(:kind)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2020-06-09 00:38:09 +00:00
|
|
|
# An entry of conversation between user and developer.
|
2018-05-09 00:36:02 +00:00
|
|
|
class Comment
|
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
2020-06-09 00:38:09 +00:00
|
|
|
# Developer entry from conversation between user and developer.
|
2018-05-09 00:36:02 +00:00
|
|
|
# Corresponds to the JSON property `developerComment`
|
|
|
|
# @return [Google::Apis::AndroidpublisherV3::DeveloperComment]
|
|
|
|
attr_accessor :developer_comment
|
|
|
|
|
2020-06-09 00:38:09 +00:00
|
|
|
# User entry from conversation between user and developer.
|
2018-05-09 00:36:02 +00:00
|
|
|
# Corresponds to the JSON property `userComment`
|
|
|
|
# @return [Google::Apis::AndroidpublisherV3::UserComment]
|
|
|
|
attr_accessor :user_comment
|
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
|
|
|
@developer_comment = args[:developer_comment] if args.key?(:developer_comment)
|
|
|
|
@user_comment = args[:user_comment] if args.key?(:user_comment)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2020-06-09 00:38:09 +00:00
|
|
|
# Country targeting specification.
|
2019-04-02 00:37:40 +00:00
|
|
|
class CountryTargeting
|
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
2020-08-04 00:38:33 +00:00
|
|
|
# Countries to target, specified as two letter [CLDR codes](https://unicode.org/
|
|
|
|
# cldr/charts/latest/supplemental/territory_containment_un_m_49.html).
|
2019-04-02 00:37:40 +00:00
|
|
|
# Corresponds to the JSON property `countries`
|
|
|
|
# @return [Array<String>]
|
|
|
|
attr_accessor :countries
|
|
|
|
|
2020-06-09 00:38:09 +00:00
|
|
|
# Include "rest of world" as well as explicitly targeted countries.
|
2019-04-02 00:37:40 +00:00
|
|
|
# Corresponds to the JSON property `includeRestOfWorld`
|
|
|
|
# @return [Boolean]
|
|
|
|
attr_accessor :include_rest_of_world
|
|
|
|
alias_method :include_rest_of_world?, :include_rest_of_world
|
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
|
|
|
@countries = args[:countries] if args.key?(:countries)
|
|
|
|
@include_rest_of_world = args[:include_rest_of_world] if args.key?(:include_rest_of_world)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2018-05-09 00:36:02 +00:00
|
|
|
# Represents a deobfuscation file.
|
|
|
|
class DeobfuscationFile
|
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
|
|
|
# The type of the deobfuscation file.
|
|
|
|
# Corresponds to the JSON property `symbolType`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :symbol_type
|
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
|
|
|
@symbol_type = args[:symbol_type] if args.key?(:symbol_type)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2020-06-09 00:38:09 +00:00
|
|
|
# Responses for the upload.
|
2018-05-09 00:36:02 +00:00
|
|
|
class DeobfuscationFilesUploadResponse
|
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
|
|
|
# Represents a deobfuscation file.
|
|
|
|
# Corresponds to the JSON property `deobfuscationFile`
|
|
|
|
# @return [Google::Apis::AndroidpublisherV3::DeobfuscationFile]
|
|
|
|
attr_accessor :deobfuscation_file
|
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
|
|
|
@deobfuscation_file = args[:deobfuscation_file] if args.key?(:deobfuscation_file)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2020-06-09 00:38:09 +00:00
|
|
|
# Developer entry from conversation between user and developer.
|
2018-05-09 00:36:02 +00:00
|
|
|
class DeveloperComment
|
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
2020-06-09 00:38:09 +00:00
|
|
|
# A Timestamp represents a point in time independent of any time zone or local
|
2020-08-04 00:38:33 +00:00
|
|
|
# calendar, encoded as a count of seconds and fractions of seconds at nanosecond
|
|
|
|
# resolution. The count is relative to an epoch at UTC midnight on January 1,
|
|
|
|
# 1970.
|
2018-05-09 00:36:02 +00:00
|
|
|
# Corresponds to the JSON property `lastModified`
|
|
|
|
# @return [Google::Apis::AndroidpublisherV3::Timestamp]
|
|
|
|
attr_accessor :last_modified
|
|
|
|
|
|
|
|
# The content of the comment, i.e. reply body.
|
|
|
|
# Corresponds to the JSON property `text`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :text
|
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
|
|
|
@last_modified = args[:last_modified] if args.key?(:last_modified)
|
|
|
|
@text = args[:text] if args.key?(:text)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2020-06-09 00:38:09 +00:00
|
|
|
# Characteristics of the user's device.
|
2018-05-09 00:36:02 +00:00
|
|
|
class DeviceMetadata
|
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
2020-06-09 00:38:09 +00:00
|
|
|
# Device CPU make, e.g. "Qualcomm"
|
2018-05-09 00:36:02 +00:00
|
|
|
# Corresponds to the JSON property `cpuMake`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :cpu_make
|
|
|
|
|
2020-06-09 00:38:09 +00:00
|
|
|
# Device CPU model, e.g. "MSM8974"
|
2018-05-09 00:36:02 +00:00
|
|
|
# Corresponds to the JSON property `cpuModel`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :cpu_model
|
|
|
|
|
|
|
|
# Device class (e.g. tablet)
|
|
|
|
# Corresponds to the JSON property `deviceClass`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :device_class
|
|
|
|
|
|
|
|
# OpenGL version
|
|
|
|
# Corresponds to the JSON property `glEsVersion`
|
|
|
|
# @return [Fixnum]
|
|
|
|
attr_accessor :gl_es_version
|
|
|
|
|
|
|
|
# Device manufacturer (e.g. Motorola)
|
|
|
|
# Corresponds to the JSON property `manufacturer`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :manufacturer
|
|
|
|
|
|
|
|
# Comma separated list of native platforms (e.g. "arm", "arm7")
|
|
|
|
# Corresponds to the JSON property `nativePlatform`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :native_platform
|
|
|
|
|
|
|
|
# Device model name (e.g. Droid)
|
|
|
|
# Corresponds to the JSON property `productName`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :product_name
|
|
|
|
|
2020-06-09 00:38:09 +00:00
|
|
|
# Device RAM in Megabytes, e.g. "2048"
|
2018-05-09 00:36:02 +00:00
|
|
|
# Corresponds to the JSON property `ramMb`
|
|
|
|
# @return [Fixnum]
|
|
|
|
attr_accessor :ram_mb
|
|
|
|
|
|
|
|
# Screen density in DPI
|
|
|
|
# Corresponds to the JSON property `screenDensityDpi`
|
|
|
|
# @return [Fixnum]
|
|
|
|
attr_accessor :screen_density_dpi
|
|
|
|
|
|
|
|
# Screen height in pixels
|
|
|
|
# Corresponds to the JSON property `screenHeightPx`
|
|
|
|
# @return [Fixnum]
|
|
|
|
attr_accessor :screen_height_px
|
|
|
|
|
|
|
|
# Screen width in pixels
|
|
|
|
# Corresponds to the JSON property `screenWidthPx`
|
|
|
|
# @return [Fixnum]
|
|
|
|
attr_accessor :screen_width_px
|
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
|
|
|
@cpu_make = args[:cpu_make] if args.key?(:cpu_make)
|
|
|
|
@cpu_model = args[:cpu_model] if args.key?(:cpu_model)
|
|
|
|
@device_class = args[:device_class] if args.key?(:device_class)
|
|
|
|
@gl_es_version = args[:gl_es_version] if args.key?(:gl_es_version)
|
|
|
|
@manufacturer = args[:manufacturer] if args.key?(:manufacturer)
|
|
|
|
@native_platform = args[:native_platform] if args.key?(:native_platform)
|
|
|
|
@product_name = args[:product_name] if args.key?(:product_name)
|
|
|
|
@ram_mb = args[:ram_mb] if args.key?(:ram_mb)
|
|
|
|
@screen_density_dpi = args[:screen_density_dpi] if args.key?(:screen_density_dpi)
|
|
|
|
@screen_height_px = args[:screen_height_px] if args.key?(:screen_height_px)
|
|
|
|
@screen_width_px = args[:screen_width_px] if args.key?(:screen_width_px)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2020-07-02 00:38:31 +00:00
|
|
|
# The device spec used to generate a system APK.
|
|
|
|
class DeviceSpec
|
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
|
|
|
# Screen dpi.
|
|
|
|
# Corresponds to the JSON property `screenDensity`
|
|
|
|
# @return [Fixnum]
|
|
|
|
attr_accessor :screen_density
|
|
|
|
|
2020-08-04 00:38:33 +00:00
|
|
|
# Supported ABI architectures in the order of preference. The values should be
|
|
|
|
# the string as reported by the platform, e.g. "armeabi-v7a", "x86_64".
|
2020-07-02 00:38:31 +00:00
|
|
|
# Corresponds to the JSON property `supportedAbis`
|
|
|
|
# @return [Array<String>]
|
|
|
|
attr_accessor :supported_abis
|
|
|
|
|
|
|
|
# All installed locales represented as BCP-47 strings, e.g. "en-US".
|
|
|
|
# Corresponds to the JSON property `supportedLocales`
|
|
|
|
# @return [Array<String>]
|
|
|
|
attr_accessor :supported_locales
|
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
|
|
|
@screen_density = args[:screen_density] if args.key?(:screen_density)
|
|
|
|
@supported_abis = args[:supported_abis] if args.key?(:supported_abis)
|
|
|
|
@supported_locales = args[:supported_locales] if args.key?(:supported_locales)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2020-06-09 00:38:09 +00:00
|
|
|
# An expansion file. The resource for ExpansionFilesService.
|
2018-05-09 00:36:02 +00:00
|
|
|
class ExpansionFile
|
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
2020-08-04 00:38:33 +00:00
|
|
|
# If set, this field indicates that this APK has an expansion file uploaded to
|
|
|
|
# it: this APK does not reference another APK's expansion file. The field's
|
|
|
|
# value is the size of the uploaded expansion file in bytes.
|
2018-05-09 00:36:02 +00:00
|
|
|
# Corresponds to the JSON property `fileSize`
|
|
|
|
# @return [Fixnum]
|
|
|
|
attr_accessor :file_size
|
|
|
|
|
2020-08-04 00:38:33 +00:00
|
|
|
# If set, this APK's expansion file references another APK's expansion file. The
|
|
|
|
# file_size field will not be set.
|
2018-05-09 00:36:02 +00:00
|
|
|
# Corresponds to the JSON property `referencesVersion`
|
|
|
|
# @return [Fixnum]
|
|
|
|
attr_accessor :references_version
|
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
|
|
|
@file_size = args[:file_size] if args.key?(:file_size)
|
|
|
|
@references_version = args[:references_version] if args.key?(:references_version)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2020-06-09 00:38:09 +00:00
|
|
|
# Response for uploading an expansion file.
|
2018-05-09 00:36:02 +00:00
|
|
|
class ExpansionFilesUploadResponse
|
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
2020-06-09 00:38:09 +00:00
|
|
|
# An expansion file. The resource for ExpansionFilesService.
|
2018-05-09 00:36:02 +00:00
|
|
|
# Corresponds to the JSON property `expansionFile`
|
|
|
|
# @return [Google::Apis::AndroidpublisherV3::ExpansionFile]
|
|
|
|
attr_accessor :expansion_file
|
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
|
|
|
@expansion_file = args[:expansion_file] if args.key?(:expansion_file)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2020-08-04 00:38:33 +00:00
|
|
|
# Defines an APK available for this application that is hosted externally and
|
|
|
|
# not uploaded to Google Play. This function is only available to organizations
|
|
|
|
# using Managed Play whose application is configured to restrict distribution to
|
|
|
|
# the organizations.
|
2018-05-09 00:36:02 +00:00
|
|
|
class ExternallyHostedApk
|
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
|
|
|
# The application label.
|
|
|
|
# Corresponds to the JSON property `applicationLabel`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :application_label
|
|
|
|
|
2020-08-04 00:38:33 +00:00
|
|
|
# A certificate (or array of certificates if a certificate-chain is used) used
|
|
|
|
# to sign this APK, represented as a base64 encoded byte array.
|
2018-05-09 00:36:02 +00:00
|
|
|
# Corresponds to the JSON property `certificateBase64s`
|
|
|
|
# @return [Array<String>]
|
|
|
|
attr_accessor :certificate_base64s
|
|
|
|
|
|
|
|
# The URL at which the APK is hosted. This must be an https URL.
|
|
|
|
# Corresponds to the JSON property `externallyHostedUrl`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :externally_hosted_url
|
|
|
|
|
2020-08-04 00:38:33 +00:00
|
|
|
# The sha1 checksum of this APK, represented as a base64 encoded byte array.
|
2018-05-09 00:36:02 +00:00
|
|
|
# Corresponds to the JSON property `fileSha1Base64`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :file_sha1_base64
|
|
|
|
|
2020-08-04 00:38:33 +00:00
|
|
|
# The sha256 checksum of this APK, represented as a base64 encoded byte array.
|
2018-05-09 00:36:02 +00:00
|
|
|
# Corresponds to the JSON property `fileSha256Base64`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :file_sha256_base64
|
|
|
|
|
|
|
|
# The file size in bytes of this APK.
|
|
|
|
# Corresponds to the JSON property `fileSize`
|
|
|
|
# @return [Fixnum]
|
|
|
|
attr_accessor :file_size
|
|
|
|
|
|
|
|
# The icon image from the APK, as a base64 encoded byte array.
|
|
|
|
# Corresponds to the JSON property `iconBase64`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :icon_base64
|
|
|
|
|
|
|
|
# The maximum SDK supported by this APK (optional).
|
|
|
|
# Corresponds to the JSON property `maximumSdk`
|
|
|
|
# @return [Fixnum]
|
|
|
|
attr_accessor :maximum_sdk
|
|
|
|
|
|
|
|
# The minimum SDK targeted by this APK.
|
|
|
|
# Corresponds to the JSON property `minimumSdk`
|
|
|
|
# @return [Fixnum]
|
|
|
|
attr_accessor :minimum_sdk
|
|
|
|
|
|
|
|
# The native code environments supported by this APK (optional).
|
|
|
|
# Corresponds to the JSON property `nativeCodes`
|
|
|
|
# @return [Array<String>]
|
|
|
|
attr_accessor :native_codes
|
|
|
|
|
|
|
|
# The package name.
|
|
|
|
# Corresponds to the JSON property `packageName`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :package_name
|
|
|
|
|
|
|
|
# The features required by this APK (optional).
|
|
|
|
# Corresponds to the JSON property `usesFeatures`
|
|
|
|
# @return [Array<String>]
|
|
|
|
attr_accessor :uses_features
|
|
|
|
|
|
|
|
# The permissions requested by this APK.
|
|
|
|
# Corresponds to the JSON property `usesPermissions`
|
2020-06-09 00:38:09 +00:00
|
|
|
# @return [Array<Google::Apis::AndroidpublisherV3::UsesPermission>]
|
2018-05-09 00:36:02 +00:00
|
|
|
attr_accessor :uses_permissions
|
|
|
|
|
|
|
|
# The version code of this APK.
|
|
|
|
# Corresponds to the JSON property `versionCode`
|
|
|
|
# @return [Fixnum]
|
|
|
|
attr_accessor :version_code
|
|
|
|
|
|
|
|
# The version name of this APK.
|
|
|
|
# Corresponds to the JSON property `versionName`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :version_name
|
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
|
|
|
@application_label = args[:application_label] if args.key?(:application_label)
|
|
|
|
@certificate_base64s = args[:certificate_base64s] if args.key?(:certificate_base64s)
|
|
|
|
@externally_hosted_url = args[:externally_hosted_url] if args.key?(:externally_hosted_url)
|
|
|
|
@file_sha1_base64 = args[:file_sha1_base64] if args.key?(:file_sha1_base64)
|
|
|
|
@file_sha256_base64 = args[:file_sha256_base64] if args.key?(:file_sha256_base64)
|
|
|
|
@file_size = args[:file_size] if args.key?(:file_size)
|
|
|
|
@icon_base64 = args[:icon_base64] if args.key?(:icon_base64)
|
|
|
|
@maximum_sdk = args[:maximum_sdk] if args.key?(:maximum_sdk)
|
|
|
|
@minimum_sdk = args[:minimum_sdk] if args.key?(:minimum_sdk)
|
|
|
|
@native_codes = args[:native_codes] if args.key?(:native_codes)
|
|
|
|
@package_name = args[:package_name] if args.key?(:package_name)
|
|
|
|
@uses_features = args[:uses_features] if args.key?(:uses_features)
|
|
|
|
@uses_permissions = args[:uses_permissions] if args.key?(:uses_permissions)
|
|
|
|
@version_code = args[:version_code] if args.key?(:version_code)
|
|
|
|
@version_name = args[:version_name] if args.key?(:version_name)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2020-06-09 00:38:09 +00:00
|
|
|
# An uploaded image. The resource for ImagesService.
|
2018-05-09 00:36:02 +00:00
|
|
|
class Image
|
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
|
|
|
# A unique id representing this image.
|
|
|
|
# Corresponds to the JSON property `id`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :id
|
|
|
|
|
2020-06-09 00:38:09 +00:00
|
|
|
# A sha1 hash of the image.
|
2018-05-09 00:36:02 +00:00
|
|
|
# Corresponds to the JSON property `sha1`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :sha1
|
|
|
|
|
2020-06-09 00:38:09 +00:00
|
|
|
# A sha256 hash of the image.
|
2019-08-06 00:38:19 +00:00
|
|
|
# Corresponds to the JSON property `sha256`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :sha256
|
|
|
|
|
2018-05-09 00:36:02 +00:00
|
|
|
# A URL that will serve a preview of the image.
|
|
|
|
# Corresponds to the JSON property `url`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :url
|
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
|
|
|
@id = args[:id] if args.key?(:id)
|
|
|
|
@sha1 = args[:sha1] if args.key?(:sha1)
|
2019-08-06 00:38:19 +00:00
|
|
|
@sha256 = args[:sha256] if args.key?(:sha256)
|
2018-05-09 00:36:02 +00:00
|
|
|
@url = args[:url] if args.key?(:url)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2020-06-09 00:38:09 +00:00
|
|
|
# Response for deleting all images.
|
2018-05-09 00:36:02 +00:00
|
|
|
class ImagesDeleteAllResponse
|
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
2020-06-09 00:38:09 +00:00
|
|
|
# The deleted images.
|
2018-05-09 00:36:02 +00:00
|
|
|
# Corresponds to the JSON property `deleted`
|
|
|
|
# @return [Array<Google::Apis::AndroidpublisherV3::Image>]
|
|
|
|
attr_accessor :deleted
|
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
|
|
|
@deleted = args[:deleted] if args.key?(:deleted)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2020-06-09 00:38:09 +00:00
|
|
|
# Response listing all images.
|
2018-05-09 00:36:02 +00:00
|
|
|
class ImagesListResponse
|
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
2020-06-09 00:38:09 +00:00
|
|
|
# All listed Images.
|
2018-05-09 00:36:02 +00:00
|
|
|
# Corresponds to the JSON property `images`
|
|
|
|
# @return [Array<Google::Apis::AndroidpublisherV3::Image>]
|
|
|
|
attr_accessor :images
|
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
|
|
|
@images = args[:images] if args.key?(:images)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2020-06-09 00:38:09 +00:00
|
|
|
# Response for uploading an image.
|
2018-05-09 00:36:02 +00:00
|
|
|
class ImagesUploadResponse
|
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
2020-06-09 00:38:09 +00:00
|
|
|
# An uploaded image. The resource for ImagesService.
|
2018-05-09 00:36:02 +00:00
|
|
|
# Corresponds to the JSON property `image`
|
|
|
|
# @return [Google::Apis::AndroidpublisherV3::Image]
|
|
|
|
attr_accessor :image
|
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
|
|
|
@image = args[:image] if args.key?(:image)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2020-06-09 00:38:09 +00:00
|
|
|
# An in-app product. The resource for InappproductsService.
|
2018-05-09 00:36:02 +00:00
|
|
|
class InAppProduct
|
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
2020-06-09 00:38:09 +00:00
|
|
|
# Default language of the localized data, as defined by BCP-47. e.g. "en-US".
|
2018-05-09 00:36:02 +00:00
|
|
|
# Corresponds to the JSON property `defaultLanguage`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :default_language
|
|
|
|
|
2020-06-09 00:38:09 +00:00
|
|
|
# Definition of a price, i.e. currency and units.
|
2018-05-09 00:36:02 +00:00
|
|
|
# Corresponds to the JSON property `defaultPrice`
|
|
|
|
# @return [Google::Apis::AndroidpublisherV3::Price]
|
|
|
|
attr_accessor :default_price
|
|
|
|
|
2020-06-09 00:38:09 +00:00
|
|
|
# Grace period of the subscription, specified in ISO 8601 format. Allows
|
2020-08-04 00:38:33 +00:00
|
|
|
# developers to give their subscribers a grace period when the payment for the
|
|
|
|
# new recurrence period is declined. Acceptable values are P0D (zero days), P3D (
|
|
|
|
# three days), P7D (seven days), P14D (14 days), and P30D (30 days).
|
2018-06-07 00:36:17 +00:00
|
|
|
# Corresponds to the JSON property `gracePeriod`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :grace_period
|
|
|
|
|
2020-08-04 00:38:33 +00:00
|
|
|
# List of localized title and description data. Map key is the language of the
|
|
|
|
# localized data, as defined by BCP-47, e.g. "en-US".
|
2018-05-09 00:36:02 +00:00
|
|
|
# Corresponds to the JSON property `listings`
|
|
|
|
# @return [Hash<String,Google::Apis::AndroidpublisherV3::InAppProductListing>]
|
|
|
|
attr_accessor :listings
|
|
|
|
|
2020-06-09 00:38:09 +00:00
|
|
|
# Package name of the parent app.
|
2018-05-09 00:36:02 +00:00
|
|
|
# Corresponds to the JSON property `packageName`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :package_name
|
|
|
|
|
2020-06-09 00:38:09 +00:00
|
|
|
# Prices per buyer region. None of these can be zero, as in-app products are
|
|
|
|
# never free. Map key is region code, as defined by ISO 3166-2.
|
2018-05-09 00:36:02 +00:00
|
|
|
# Corresponds to the JSON property `prices`
|
|
|
|
# @return [Hash<String,Google::Apis::AndroidpublisherV3::Price>]
|
|
|
|
attr_accessor :prices
|
|
|
|
|
2020-06-09 00:38:09 +00:00
|
|
|
# The type of the product, e.g. a recurring subscription.
|
2018-05-09 00:36:02 +00:00
|
|
|
# Corresponds to the JSON property `purchaseType`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :purchase_type
|
|
|
|
|
2020-06-09 00:38:09 +00:00
|
|
|
# Stock-keeping-unit (SKU) of the product, unique within an app.
|
2018-05-09 00:36:02 +00:00
|
|
|
# Corresponds to the JSON property `sku`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :sku
|
|
|
|
|
2020-06-09 00:38:09 +00:00
|
|
|
# The status of the product, e.g. whether it's active.
|
2018-05-09 00:36:02 +00:00
|
|
|
# Corresponds to the JSON property `status`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :status
|
|
|
|
|
2020-08-04 00:38:33 +00:00
|
|
|
# Subscription period, specified in ISO 8601 format. Acceptable values are P1W (
|
|
|
|
# one week), P1M (one month), P3M (three months), P6M (six months), and P1Y (one
|
|
|
|
# year).
|
2018-05-09 00:36:02 +00:00
|
|
|
# Corresponds to the JSON property `subscriptionPeriod`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :subscription_period
|
|
|
|
|
|
|
|
# Trial period, specified in ISO 8601 format. Acceptable values are anything
|
2020-06-09 00:38:09 +00:00
|
|
|
# between P7D (seven days) and P999D (999 days).
|
2018-05-09 00:36:02 +00:00
|
|
|
# Corresponds to the JSON property `trialPeriod`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :trial_period
|
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
|
|
|
@default_language = args[:default_language] if args.key?(:default_language)
|
|
|
|
@default_price = args[:default_price] if args.key?(:default_price)
|
2018-06-07 00:36:17 +00:00
|
|
|
@grace_period = args[:grace_period] if args.key?(:grace_period)
|
2018-05-09 00:36:02 +00:00
|
|
|
@listings = args[:listings] if args.key?(:listings)
|
|
|
|
@package_name = args[:package_name] if args.key?(:package_name)
|
|
|
|
@prices = args[:prices] if args.key?(:prices)
|
|
|
|
@purchase_type = args[:purchase_type] if args.key?(:purchase_type)
|
|
|
|
@sku = args[:sku] if args.key?(:sku)
|
|
|
|
@status = args[:status] if args.key?(:status)
|
|
|
|
@subscription_period = args[:subscription_period] if args.key?(:subscription_period)
|
|
|
|
@trial_period = args[:trial_period] if args.key?(:trial_period)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2020-06-09 00:38:09 +00:00
|
|
|
# Store listing of a single in-app product.
|
2018-05-09 00:36:02 +00:00
|
|
|
class InAppProductListing
|
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
2020-06-09 00:38:09 +00:00
|
|
|
# Localized entitlement benefits for a subscription.
|
2020-06-04 00:38:16 +00:00
|
|
|
# Corresponds to the JSON property `benefits`
|
|
|
|
# @return [Array<String>]
|
|
|
|
attr_accessor :benefits
|
|
|
|
|
2020-06-09 00:38:09 +00:00
|
|
|
# Description for the store listing.
|
2018-05-09 00:36:02 +00:00
|
|
|
# Corresponds to the JSON property `description`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :description
|
|
|
|
|
2020-06-09 00:38:09 +00:00
|
|
|
# Title for the store listing.
|
2018-05-09 00:36:02 +00:00
|
|
|
# Corresponds to the JSON property `title`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :title
|
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
2020-06-04 00:38:16 +00:00
|
|
|
@benefits = args[:benefits] if args.key?(:benefits)
|
2018-05-09 00:36:02 +00:00
|
|
|
@description = args[:description] if args.key?(:description)
|
|
|
|
@title = args[:title] if args.key?(:title)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2020-06-09 00:38:09 +00:00
|
|
|
# Response listing all in-app products.
|
2018-05-09 00:36:02 +00:00
|
|
|
class InappproductsListResponse
|
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
2020-06-09 00:38:09 +00:00
|
|
|
# All in-app products.
|
2018-05-09 00:36:02 +00:00
|
|
|
# Corresponds to the JSON property `inappproduct`
|
|
|
|
# @return [Array<Google::Apis::AndroidpublisherV3::InAppProduct>]
|
|
|
|
attr_accessor :inappproduct
|
|
|
|
|
2020-06-09 00:38:09 +00:00
|
|
|
# The kind of this response ("androidpublisher#inappproductsListResponse").
|
2018-05-09 00:36:02 +00:00
|
|
|
# Corresponds to the JSON property `kind`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :kind
|
|
|
|
|
2020-08-04 00:38:33 +00:00
|
|
|
# Information about the current page. List operations that supports paging
|
|
|
|
# return only one "page" of results. This protocol buffer message describes the
|
|
|
|
# page that has been returned.
|
2018-05-09 00:36:02 +00:00
|
|
|
# Corresponds to the JSON property `pageInfo`
|
|
|
|
# @return [Google::Apis::AndroidpublisherV3::PageInfo]
|
|
|
|
attr_accessor :page_info
|
|
|
|
|
2020-08-04 00:38:33 +00:00
|
|
|
# Pagination information returned by a List operation when token pagination is
|
|
|
|
# enabled. List operations that supports paging return only one "page" of
|
|
|
|
# results. This protocol buffer message describes the page that has been
|
|
|
|
# returned. When using token pagination, clients should use the next/previous
|
|
|
|
# token to get another page of the result. The presence or absence of next/
|
|
|
|
# previous token indicates whether a next/previous page is available and
|
|
|
|
# provides a mean of accessing this page. ListRequest.page_token should be set
|
|
|
|
# to either next_page_token or previous_page_token to access another page.
|
2018-05-09 00:36:02 +00:00
|
|
|
# Corresponds to the JSON property `tokenPagination`
|
|
|
|
# @return [Google::Apis::AndroidpublisherV3::TokenPagination]
|
|
|
|
attr_accessor :token_pagination
|
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
|
|
|
@inappproduct = args[:inappproduct] if args.key?(:inappproduct)
|
|
|
|
@kind = args[:kind] if args.key?(:kind)
|
|
|
|
@page_info = args[:page_info] if args.key?(:page_info)
|
|
|
|
@token_pagination = args[:token_pagination] if args.key?(:token_pagination)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2020-08-04 00:38:33 +00:00
|
|
|
# An artifact resource which gets created when uploading an APK or Android App
|
|
|
|
# Bundle through internal app sharing.
|
2019-05-08 00:37:28 +00:00
|
|
|
class InternalAppSharingArtifact
|
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
2020-08-04 00:38:33 +00:00
|
|
|
# The sha256 fingerprint of the certificate used to sign the generated artifact.
|
2019-05-08 00:37:28 +00:00
|
|
|
# Corresponds to the JSON property `certificateFingerprint`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :certificate_fingerprint
|
|
|
|
|
2020-08-04 00:38:33 +00:00
|
|
|
# The download URL generated for the uploaded artifact. Users that are
|
|
|
|
# authorized to download can follow the link to the Play Store app to install it.
|
2019-05-08 00:37:28 +00:00
|
|
|
# Corresponds to the JSON property `downloadUrl`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :download_url
|
|
|
|
|
2020-08-04 00:38:33 +00:00
|
|
|
# The sha256 hash of the artifact represented as a lowercase hexadecimal number,
|
|
|
|
# matching the output of the sha256sum command.
|
2019-05-08 00:37:28 +00:00
|
|
|
# Corresponds to the JSON property `sha256`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :sha256
|
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
|
|
|
@certificate_fingerprint = args[:certificate_fingerprint] if args.key?(:certificate_fingerprint)
|
|
|
|
@download_url = args[:download_url] if args.key?(:download_url)
|
|
|
|
@sha256 = args[:sha256] if args.key?(:sha256)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2019-07-04 00:37:48 +00:00
|
|
|
# Contains the introductory price information for a subscription.
|
|
|
|
class IntroductoryPriceInfo
|
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
2020-08-04 00:38:33 +00:00
|
|
|
# Introductory price of the subscription, not including tax. The currency is the
|
|
|
|
# same as price_currency_code. Price is expressed in micro-units, where 1,000,
|
|
|
|
# 000 micro-units represents one unit of the currency. For example, if the
|
|
|
|
# subscription price is €1.99, price_amount_micros is 1990000.
|
2019-07-04 00:37:48 +00:00
|
|
|
# Corresponds to the JSON property `introductoryPriceAmountMicros`
|
|
|
|
# @return [Fixnum]
|
|
|
|
attr_accessor :introductory_price_amount_micros
|
|
|
|
|
2020-08-04 00:38:33 +00:00
|
|
|
# ISO 4217 currency code for the introductory subscription price. For example,
|
|
|
|
# if the price is specified in British pounds sterling, price_currency_code is "
|
|
|
|
# GBP".
|
2019-07-04 00:37:48 +00:00
|
|
|
# Corresponds to the JSON property `introductoryPriceCurrencyCode`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :introductory_price_currency_code
|
|
|
|
|
|
|
|
# The number of billing period to offer introductory pricing.
|
|
|
|
# Corresponds to the JSON property `introductoryPriceCycles`
|
|
|
|
# @return [Fixnum]
|
|
|
|
attr_accessor :introductory_price_cycles
|
|
|
|
|
2020-08-04 00:38:33 +00:00
|
|
|
# Introductory price period, specified in ISO 8601 format. Common values are (
|
|
|
|
# but not limited to) "P1W" (one week), "P1M" (one month), "P3M" (three months),
|
|
|
|
# "P6M" (six months), and "P1Y" (one year).
|
2019-07-04 00:37:48 +00:00
|
|
|
# Corresponds to the JSON property `introductoryPricePeriod`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :introductory_price_period
|
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
|
|
|
@introductory_price_amount_micros = args[:introductory_price_amount_micros] if args.key?(:introductory_price_amount_micros)
|
|
|
|
@introductory_price_currency_code = args[:introductory_price_currency_code] if args.key?(:introductory_price_currency_code)
|
|
|
|
@introductory_price_cycles = args[:introductory_price_cycles] if args.key?(:introductory_price_cycles)
|
|
|
|
@introductory_price_period = args[:introductory_price_period] if args.key?(:introductory_price_period)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2020-06-09 00:38:09 +00:00
|
|
|
# A localized store listing. The resource for ListingsService.
|
2018-05-09 00:36:02 +00:00
|
|
|
class Listing
|
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
2020-06-09 00:38:09 +00:00
|
|
|
# Full description of the app.
|
2018-05-09 00:36:02 +00:00
|
|
|
# Corresponds to the JSON property `fullDescription`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :full_description
|
|
|
|
|
2020-08-04 00:38:33 +00:00
|
|
|
# Language localization code (a BCP-47 language tag; for example, "de-AT" for
|
|
|
|
# Austrian German).
|
2018-05-09 00:36:02 +00:00
|
|
|
# Corresponds to the JSON property `language`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :language
|
|
|
|
|
2020-06-09 00:38:09 +00:00
|
|
|
# Short description of the app.
|
2018-05-09 00:36:02 +00:00
|
|
|
# Corresponds to the JSON property `shortDescription`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :short_description
|
|
|
|
|
2020-06-09 00:38:09 +00:00
|
|
|
# Localized title of the app.
|
2018-05-09 00:36:02 +00:00
|
|
|
# Corresponds to the JSON property `title`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :title
|
|
|
|
|
|
|
|
# URL of a promotional YouTube video for the app.
|
|
|
|
# Corresponds to the JSON property `video`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :video
|
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
|
|
|
@full_description = args[:full_description] if args.key?(:full_description)
|
|
|
|
@language = args[:language] if args.key?(:language)
|
|
|
|
@short_description = args[:short_description] if args.key?(:short_description)
|
|
|
|
@title = args[:title] if args.key?(:title)
|
|
|
|
@video = args[:video] if args.key?(:video)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2020-06-09 00:38:09 +00:00
|
|
|
# Response listing all localized listings.
|
2018-05-09 00:36:02 +00:00
|
|
|
class ListingsListResponse
|
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
2020-06-09 00:38:09 +00:00
|
|
|
# The kind of this response ("androidpublisher#listingsListResponse").
|
2018-05-09 00:36:02 +00:00
|
|
|
# Corresponds to the JSON property `kind`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :kind
|
|
|
|
|
2020-06-09 00:38:09 +00:00
|
|
|
# All localized listings.
|
2018-05-09 00:36:02 +00:00
|
|
|
# Corresponds to the JSON property `listings`
|
|
|
|
# @return [Array<Google::Apis::AndroidpublisherV3::Listing>]
|
|
|
|
attr_accessor :listings
|
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
|
|
|
@kind = args[:kind] if args.key?(:kind)
|
|
|
|
@listings = args[:listings] if args.key?(:listings)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2020-06-09 00:38:09 +00:00
|
|
|
# Release notes specification, i.e. language and text.
|
2018-05-09 00:36:02 +00:00
|
|
|
class LocalizedText
|
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
2020-08-04 00:38:33 +00:00
|
|
|
# Language localization code (a BCP-47 language tag; for example, "de-AT" for
|
|
|
|
# Austrian German).
|
2018-05-09 00:36:02 +00:00
|
|
|
# Corresponds to the JSON property `language`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :language
|
|
|
|
|
2020-06-09 00:38:09 +00:00
|
|
|
# The text in the given language.
|
2018-05-09 00:36:02 +00:00
|
|
|
# Corresponds to the JSON property `text`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :text
|
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
|
|
|
@language = args[:language] if args.key?(:language)
|
|
|
|
@text = args[:text] if args.key?(:text)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2020-08-04 00:38:33 +00:00
|
|
|
# Information about the current page. List operations that supports paging
|
|
|
|
# return only one "page" of results. This protocol buffer message describes the
|
|
|
|
# page that has been returned.
|
2018-05-09 00:36:02 +00:00
|
|
|
class PageInfo
|
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
2020-08-04 00:38:33 +00:00
|
|
|
# Maximum number of results returned in one page. ! The number of results
|
|
|
|
# included in the API response.
|
2018-05-09 00:36:02 +00:00
|
|
|
# Corresponds to the JSON property `resultPerPage`
|
|
|
|
# @return [Fixnum]
|
|
|
|
attr_accessor :result_per_page
|
|
|
|
|
2020-06-09 00:38:09 +00:00
|
|
|
# Index of the first result returned in the current page.
|
2018-05-09 00:36:02 +00:00
|
|
|
# Corresponds to the JSON property `startIndex`
|
|
|
|
# @return [Fixnum]
|
|
|
|
attr_accessor :start_index
|
|
|
|
|
2020-08-04 00:38:33 +00:00
|
|
|
# Total number of results available on the backend ! The total number of results
|
|
|
|
# in the result set.
|
2018-05-09 00:36:02 +00:00
|
|
|
# Corresponds to the JSON property `totalResults`
|
|
|
|
# @return [Fixnum]
|
|
|
|
attr_accessor :total_results
|
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
|
|
|
@result_per_page = args[:result_per_page] if args.key?(:result_per_page)
|
|
|
|
@start_index = args[:start_index] if args.key?(:start_index)
|
|
|
|
@total_results = args[:total_results] if args.key?(:total_results)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2020-06-09 00:38:09 +00:00
|
|
|
# Definition of a price, i.e. currency and units.
|
2018-05-09 00:36:02 +00:00
|
|
|
class Price
|
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
2020-08-04 00:38:33 +00:00
|
|
|
# 3 letter Currency code, as defined by ISO 4217. See java/com/google/common/
|
|
|
|
# money/CurrencyCode.java
|
2018-05-09 00:36:02 +00:00
|
|
|
# Corresponds to the JSON property `currency`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :currency
|
|
|
|
|
2020-06-09 00:38:09 +00:00
|
|
|
# Price in 1/million of the currency base unit, represented as a string.
|
2018-05-09 00:36:02 +00:00
|
|
|
# Corresponds to the JSON property `priceMicros`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :price_micros
|
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
|
|
|
@currency = args[:currency] if args.key?(:currency)
|
|
|
|
@price_micros = args[:price_micros] if args.key?(:price_micros)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2020-08-04 00:38:33 +00:00
|
|
|
# A ProductPurchase resource indicates the status of a user's inapp product
|
|
|
|
# purchase.
|
2018-05-09 00:36:02 +00:00
|
|
|
class ProductPurchase
|
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
2020-08-04 00:38:33 +00:00
|
|
|
# The acknowledgement state of the inapp product. Possible values are: 0. Yet to
|
|
|
|
# be acknowledged 1. Acknowledged
|
2019-05-09 00:37:30 +00:00
|
|
|
# Corresponds to the JSON property `acknowledgementState`
|
|
|
|
# @return [Fixnum]
|
|
|
|
attr_accessor :acknowledgement_state
|
|
|
|
|
2020-08-04 00:38:33 +00:00
|
|
|
# The consumption state of the inapp product. Possible values are: 0. Yet to be
|
|
|
|
# consumed 1. Consumed
|
2018-05-09 00:36:02 +00:00
|
|
|
# Corresponds to the JSON property `consumptionState`
|
|
|
|
# @return [Fixnum]
|
|
|
|
attr_accessor :consumption_state
|
|
|
|
|
2020-08-04 00:38:33 +00:00
|
|
|
# A developer-specified string that contains supplemental information about an
|
|
|
|
# order.
|
2018-05-09 00:36:02 +00:00
|
|
|
# Corresponds to the JSON property `developerPayload`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :developer_payload
|
|
|
|
|
2020-08-04 00:38:33 +00:00
|
|
|
# This kind represents an inappPurchase object in the androidpublisher service.
|
2018-05-09 00:36:02 +00:00
|
|
|
# Corresponds to the JSON property `kind`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :kind
|
|
|
|
|
2020-08-04 00:38:33 +00:00
|
|
|
# An obfuscated version of the id that is uniquely associated with the user's
|
|
|
|
# account in your app. Only present if specified using https://developer.android.
|
|
|
|
# com/reference/com/android/billingclient/api/BillingFlowParams.Builder#
|
|
|
|
# setobfuscatedaccountid when the purchase was made.
|
2020-06-09 00:38:09 +00:00
|
|
|
# Corresponds to the JSON property `obfuscatedExternalAccountId`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :obfuscated_external_account_id
|
|
|
|
|
2020-08-04 00:38:33 +00:00
|
|
|
# An obfuscated version of the id that is uniquely associated with the user's
|
|
|
|
# profile in your app. Only present if specified using https://developer.android.
|
|
|
|
# com/reference/com/android/billingclient/api/BillingFlowParams.Builder#
|
|
|
|
# setobfuscatedprofileid when the purchase was made.
|
2020-06-09 00:38:09 +00:00
|
|
|
# Corresponds to the JSON property `obfuscatedExternalProfileId`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :obfuscated_external_profile_id
|
|
|
|
|
2018-05-09 00:36:02 +00:00
|
|
|
# The order id associated with the purchase of the inapp product.
|
|
|
|
# Corresponds to the JSON property `orderId`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :order_id
|
|
|
|
|
2019-10-15 00:37:33 +00:00
|
|
|
# The inapp product SKU.
|
|
|
|
# Corresponds to the JSON property `productId`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :product_id
|
|
|
|
|
2020-08-04 00:38:33 +00:00
|
|
|
# The purchase state of the order. Possible values are: 0. Purchased 1. Canceled
|
2020-06-09 00:38:09 +00:00
|
|
|
# 2. Pending
|
2018-05-09 00:36:02 +00:00
|
|
|
# Corresponds to the JSON property `purchaseState`
|
|
|
|
# @return [Fixnum]
|
|
|
|
attr_accessor :purchase_state
|
|
|
|
|
2020-08-04 00:38:33 +00:00
|
|
|
# The time the product was purchased, in milliseconds since the epoch (Jan 1,
|
|
|
|
# 1970).
|
2018-05-09 00:36:02 +00:00
|
|
|
# Corresponds to the JSON property `purchaseTimeMillis`
|
|
|
|
# @return [Fixnum]
|
|
|
|
attr_accessor :purchase_time_millis
|
|
|
|
|
2019-10-10 18:08:35 +00:00
|
|
|
# The purchase token generated to identify this purchase.
|
|
|
|
# Corresponds to the JSON property `purchaseToken`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :purchase_token
|
|
|
|
|
2020-08-04 00:38:33 +00:00
|
|
|
# The type of purchase of the inapp product. This field is only set if this
|
|
|
|
# purchase was not made using the standard in-app billing flow. Possible values
|
|
|
|
# are: 0. Test (i.e. purchased from a license testing account) 1. Promo (i.e.
|
|
|
|
# purchased using a promo code) 2. Rewarded (i.e. from watching a video ad
|
|
|
|
# instead of paying)
|
2018-05-09 00:36:02 +00:00
|
|
|
# Corresponds to the JSON property `purchaseType`
|
|
|
|
# @return [Fixnum]
|
|
|
|
attr_accessor :purchase_type
|
|
|
|
|
2020-01-11 00:38:00 +00:00
|
|
|
# The quantity associated with the purchase of the inapp product.
|
|
|
|
# Corresponds to the JSON property `quantity`
|
|
|
|
# @return [Fixnum]
|
|
|
|
attr_accessor :quantity
|
|
|
|
|
2020-09-29 00:38:39 +00:00
|
|
|
# ISO 3166-1 alpha-2 billing region code of the user at the time the product was
|
|
|
|
# granted.
|
|
|
|
# Corresponds to the JSON property `regionCode`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :region_code
|
|
|
|
|
2018-05-09 00:36:02 +00:00
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
2019-05-09 00:37:30 +00:00
|
|
|
@acknowledgement_state = args[:acknowledgement_state] if args.key?(:acknowledgement_state)
|
2018-05-09 00:36:02 +00:00
|
|
|
@consumption_state = args[:consumption_state] if args.key?(:consumption_state)
|
|
|
|
@developer_payload = args[:developer_payload] if args.key?(:developer_payload)
|
|
|
|
@kind = args[:kind] if args.key?(:kind)
|
2020-06-09 00:38:09 +00:00
|
|
|
@obfuscated_external_account_id = args[:obfuscated_external_account_id] if args.key?(:obfuscated_external_account_id)
|
|
|
|
@obfuscated_external_profile_id = args[:obfuscated_external_profile_id] if args.key?(:obfuscated_external_profile_id)
|
2018-05-09 00:36:02 +00:00
|
|
|
@order_id = args[:order_id] if args.key?(:order_id)
|
2019-10-15 00:37:33 +00:00
|
|
|
@product_id = args[:product_id] if args.key?(:product_id)
|
2018-05-09 00:36:02 +00:00
|
|
|
@purchase_state = args[:purchase_state] if args.key?(:purchase_state)
|
|
|
|
@purchase_time_millis = args[:purchase_time_millis] if args.key?(:purchase_time_millis)
|
2019-10-10 18:08:35 +00:00
|
|
|
@purchase_token = args[:purchase_token] if args.key?(:purchase_token)
|
2018-05-09 00:36:02 +00:00
|
|
|
@purchase_type = args[:purchase_type] if args.key?(:purchase_type)
|
2020-01-11 00:38:00 +00:00
|
|
|
@quantity = args[:quantity] if args.key?(:quantity)
|
2020-09-29 00:38:39 +00:00
|
|
|
@region_code = args[:region_code] if args.key?(:region_code)
|
2018-05-09 00:36:02 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2020-06-09 00:38:09 +00:00
|
|
|
# Request for the product.purchases.acknowledge API.
|
2019-05-09 00:37:30 +00:00
|
|
|
class ProductPurchasesAcknowledgeRequest
|
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
|
|
|
# Payload to attach to the purchase.
|
|
|
|
# Corresponds to the JSON property `developerPayload`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :developer_payload
|
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
|
|
|
@developer_payload = args[:developer_payload] if args.key?(:developer_payload)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2020-06-09 00:38:09 +00:00
|
|
|
# An Android app review.
|
2018-05-09 00:36:02 +00:00
|
|
|
class Review
|
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
|
|
|
# The name of the user who wrote the review.
|
|
|
|
# Corresponds to the JSON property `authorName`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :author_name
|
|
|
|
|
|
|
|
# A repeated field containing comments for the review.
|
|
|
|
# Corresponds to the JSON property `comments`
|
|
|
|
# @return [Array<Google::Apis::AndroidpublisherV3::Comment>]
|
|
|
|
attr_accessor :comments
|
|
|
|
|
|
|
|
# Unique identifier for this review.
|
|
|
|
# Corresponds to the JSON property `reviewId`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :review_id
|
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
|
|
|
@author_name = args[:author_name] if args.key?(:author_name)
|
|
|
|
@comments = args[:comments] if args.key?(:comments)
|
|
|
|
@review_id = args[:review_id] if args.key?(:review_id)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2020-06-09 00:38:09 +00:00
|
|
|
# The result of replying/updating a reply to review.
|
2018-05-09 00:36:02 +00:00
|
|
|
class ReviewReplyResult
|
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
2020-06-09 00:38:09 +00:00
|
|
|
# A Timestamp represents a point in time independent of any time zone or local
|
2020-08-04 00:38:33 +00:00
|
|
|
# calendar, encoded as a count of seconds and fractions of seconds at nanosecond
|
|
|
|
# resolution. The count is relative to an epoch at UTC midnight on January 1,
|
|
|
|
# 1970.
|
2018-05-09 00:36:02 +00:00
|
|
|
# Corresponds to the JSON property `lastEdited`
|
|
|
|
# @return [Google::Apis::AndroidpublisherV3::Timestamp]
|
|
|
|
attr_accessor :last_edited
|
|
|
|
|
|
|
|
# The reply text that was applied.
|
|
|
|
# Corresponds to the JSON property `replyText`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :reply_text
|
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
|
|
|
@last_edited = args[:last_edited] if args.key?(:last_edited)
|
|
|
|
@reply_text = args[:reply_text] if args.key?(:reply_text)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2020-06-09 00:38:09 +00:00
|
|
|
# Response listing reviews.
|
2018-05-09 00:36:02 +00:00
|
|
|
class ReviewsListResponse
|
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
2020-08-04 00:38:33 +00:00
|
|
|
# Information about the current page. List operations that supports paging
|
|
|
|
# return only one "page" of results. This protocol buffer message describes the
|
|
|
|
# page that has been returned.
|
2018-05-09 00:36:02 +00:00
|
|
|
# Corresponds to the JSON property `pageInfo`
|
|
|
|
# @return [Google::Apis::AndroidpublisherV3::PageInfo]
|
|
|
|
attr_accessor :page_info
|
|
|
|
|
2020-06-09 00:38:09 +00:00
|
|
|
# List of reviews.
|
2018-05-09 00:36:02 +00:00
|
|
|
# Corresponds to the JSON property `reviews`
|
|
|
|
# @return [Array<Google::Apis::AndroidpublisherV3::Review>]
|
|
|
|
attr_accessor :reviews
|
|
|
|
|
2020-08-04 00:38:33 +00:00
|
|
|
# Pagination information returned by a List operation when token pagination is
|
|
|
|
# enabled. List operations that supports paging return only one "page" of
|
|
|
|
# results. This protocol buffer message describes the page that has been
|
|
|
|
# returned. When using token pagination, clients should use the next/previous
|
|
|
|
# token to get another page of the result. The presence or absence of next/
|
|
|
|
# previous token indicates whether a next/previous page is available and
|
|
|
|
# provides a mean of accessing this page. ListRequest.page_token should be set
|
|
|
|
# to either next_page_token or previous_page_token to access another page.
|
2018-05-09 00:36:02 +00:00
|
|
|
# Corresponds to the JSON property `tokenPagination`
|
|
|
|
# @return [Google::Apis::AndroidpublisherV3::TokenPagination]
|
|
|
|
attr_accessor :token_pagination
|
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
|
|
|
@page_info = args[:page_info] if args.key?(:page_info)
|
|
|
|
@reviews = args[:reviews] if args.key?(:reviews)
|
|
|
|
@token_pagination = args[:token_pagination] if args.key?(:token_pagination)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2020-06-09 00:38:09 +00:00
|
|
|
# Request to reply to review or update existing reply.
|
2018-05-09 00:36:02 +00:00
|
|
|
class ReviewsReplyRequest
|
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
|
|
|
# The text to set as the reply. Replies of more than approximately 350
|
|
|
|
# characters will be rejected. HTML tags will be stripped.
|
|
|
|
# Corresponds to the JSON property `replyText`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :reply_text
|
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
|
|
|
@reply_text = args[:reply_text] if args.key?(:reply_text)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2020-06-09 00:38:09 +00:00
|
|
|
# Response on status of replying to a review.
|
2018-05-09 00:36:02 +00:00
|
|
|
class ReviewsReplyResponse
|
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
2020-06-09 00:38:09 +00:00
|
|
|
# The result of replying/updating a reply to review.
|
2018-05-09 00:36:02 +00:00
|
|
|
# Corresponds to the JSON property `result`
|
|
|
|
# @return [Google::Apis::AndroidpublisherV3::ReviewReplyResult]
|
|
|
|
attr_accessor :result
|
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
|
|
|
@result = args[:result] if args.key?(:result)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
# Information provided by the user when they complete the subscription
|
|
|
|
# cancellation flow (cancellation reason survey).
|
|
|
|
class SubscriptionCancelSurveyResult
|
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
2020-08-04 00:38:33 +00:00
|
|
|
# The cancellation reason the user chose in the survey. Possible values are: 0.
|
|
|
|
# Other 1. I don't use this service enough 2. Technical issues 3. Cost-related
|
|
|
|
# reasons 4. I found a better app
|
2018-05-09 00:36:02 +00:00
|
|
|
# Corresponds to the JSON property `cancelSurveyReason`
|
|
|
|
# @return [Fixnum]
|
|
|
|
attr_accessor :cancel_survey_reason
|
|
|
|
|
|
|
|
# The customized input cancel reason from the user. Only present when
|
|
|
|
# cancelReason is 0.
|
|
|
|
# Corresponds to the JSON property `userInputCancelReason`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :user_input_cancel_reason
|
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
|
|
|
@cancel_survey_reason = args[:cancel_survey_reason] if args.key?(:cancel_survey_reason)
|
|
|
|
@user_input_cancel_reason = args[:user_input_cancel_reason] if args.key?(:user_input_cancel_reason)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2020-08-04 00:38:33 +00:00
|
|
|
# A SubscriptionDeferralInfo contains the data needed to defer a subscription
|
|
|
|
# purchase to a future expiry time.
|
2018-05-09 00:36:02 +00:00
|
|
|
class SubscriptionDeferralInfo
|
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
2020-08-04 00:38:33 +00:00
|
|
|
# The desired next expiry time to assign to the subscription, in milliseconds
|
|
|
|
# since the Epoch. The given time must be later/greater than the current expiry
|
|
|
|
# time for the subscription.
|
2018-05-09 00:36:02 +00:00
|
|
|
# Corresponds to the JSON property `desiredExpiryTimeMillis`
|
|
|
|
# @return [Fixnum]
|
|
|
|
attr_accessor :desired_expiry_time_millis
|
|
|
|
|
2020-08-04 00:38:33 +00:00
|
|
|
# The expected expiry time for the subscription. If the current expiry time for
|
|
|
|
# the subscription is not the value specified here, the deferral will not occur.
|
2018-05-09 00:36:02 +00:00
|
|
|
# Corresponds to the JSON property `expectedExpiryTimeMillis`
|
|
|
|
# @return [Fixnum]
|
|
|
|
attr_accessor :expected_expiry_time_millis
|
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
|
|
|
@desired_expiry_time_millis = args[:desired_expiry_time_millis] if args.key?(:desired_expiry_time_millis)
|
|
|
|
@expected_expiry_time_millis = args[:expected_expiry_time_millis] if args.key?(:expected_expiry_time_millis)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2018-07-10 00:36:20 +00:00
|
|
|
# Contains the price change information for a subscription that can be used to
|
|
|
|
# control the user journey for the price change in the app. This can be in the
|
|
|
|
# form of seeking confirmation from the user or tailoring the experience for a
|
|
|
|
# successful conversion.
|
|
|
|
class SubscriptionPriceChange
|
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
2020-06-09 00:38:09 +00:00
|
|
|
# Definition of a price, i.e. currency and units.
|
2018-07-10 00:36:20 +00:00
|
|
|
# Corresponds to the JSON property `newPrice`
|
|
|
|
# @return [Google::Apis::AndroidpublisherV3::Price]
|
|
|
|
attr_accessor :new_price
|
|
|
|
|
2020-08-04 00:38:33 +00:00
|
|
|
# The current state of the price change. Possible values are: 0. Outstanding:
|
|
|
|
# State for a pending price change waiting for the user to agree. In this state,
|
|
|
|
# you can optionally seek confirmation from the user using the In-App API. 1.
|
|
|
|
# Accepted: State for an accepted price change that the subscription will renew
|
|
|
|
# with unless it's canceled. The price change takes effect on a future date when
|
|
|
|
# the subscription renews. Note that the change might not occur when the
|
|
|
|
# subscription is renewed next.
|
2018-07-10 00:36:20 +00:00
|
|
|
# Corresponds to the JSON property `state`
|
|
|
|
# @return [Fixnum]
|
|
|
|
attr_accessor :state
|
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
|
|
|
@new_price = args[:new_price] if args.key?(:new_price)
|
|
|
|
@state = args[:state] if args.key?(:state)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2020-08-04 00:38:33 +00:00
|
|
|
# A SubscriptionPurchase resource indicates the status of a user's subscription
|
|
|
|
# purchase.
|
2018-05-09 00:36:02 +00:00
|
|
|
class SubscriptionPurchase
|
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
2020-08-04 00:38:33 +00:00
|
|
|
# The acknowledgement state of the subscription product. Possible values are: 0.
|
|
|
|
# Yet to be acknowledged 1. Acknowledged
|
2019-06-06 00:40:37 +00:00
|
|
|
# Corresponds to the JSON property `acknowledgementState`
|
|
|
|
# @return [Fixnum]
|
|
|
|
attr_accessor :acknowledgement_state
|
|
|
|
|
2020-08-04 00:38:33 +00:00
|
|
|
# Whether the subscription will automatically be renewed when it reaches its
|
|
|
|
# current expiry time.
|
2018-05-09 00:36:02 +00:00
|
|
|
# Corresponds to the JSON property `autoRenewing`
|
|
|
|
# @return [Boolean]
|
|
|
|
attr_accessor :auto_renewing
|
|
|
|
alias_method :auto_renewing?, :auto_renewing
|
|
|
|
|
2020-08-04 00:38:33 +00:00
|
|
|
# Time at which the subscription will be automatically resumed, in milliseconds
|
|
|
|
# since the Epoch. Only present if the user has requested to pause the
|
|
|
|
# subscription.
|
2018-11-16 00:36:46 +00:00
|
|
|
# Corresponds to the JSON property `autoResumeTimeMillis`
|
|
|
|
# @return [Fixnum]
|
|
|
|
attr_accessor :auto_resume_time_millis
|
|
|
|
|
2020-08-04 00:38:33 +00:00
|
|
|
# The reason why a subscription was canceled or is not auto-renewing. Possible
|
|
|
|
# values are: 0. User canceled the subscription 1. Subscription was canceled by
|
|
|
|
# the system, for example because of a billing problem 2. Subscription was
|
|
|
|
# replaced with a new subscription 3. Subscription was canceled by the developer
|
2018-05-09 00:36:02 +00:00
|
|
|
# Corresponds to the JSON property `cancelReason`
|
|
|
|
# @return [Fixnum]
|
|
|
|
attr_accessor :cancel_reason
|
|
|
|
|
|
|
|
# Information provided by the user when they complete the subscription
|
|
|
|
# cancellation flow (cancellation reason survey).
|
|
|
|
# Corresponds to the JSON property `cancelSurveyResult`
|
|
|
|
# @return [Google::Apis::AndroidpublisherV3::SubscriptionCancelSurveyResult]
|
|
|
|
attr_accessor :cancel_survey_result
|
|
|
|
|
2020-08-04 00:38:33 +00:00
|
|
|
# ISO 3166-1 alpha-2 billing country/region code of the user at the time the
|
|
|
|
# subscription was granted.
|
2018-05-09 00:36:02 +00:00
|
|
|
# Corresponds to the JSON property `countryCode`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :country_code
|
|
|
|
|
2020-08-04 00:38:33 +00:00
|
|
|
# A developer-specified string that contains supplemental information about an
|
|
|
|
# order.
|
2018-05-09 00:36:02 +00:00
|
|
|
# Corresponds to the JSON property `developerPayload`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :developer_payload
|
|
|
|
|
2020-08-04 00:38:33 +00:00
|
|
|
# The email address of the user when the subscription was purchased. Only
|
|
|
|
# present for purchases made with 'Subscribe with Google'.
|
2018-05-09 00:36:02 +00:00
|
|
|
# Corresponds to the JSON property `emailAddress`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :email_address
|
|
|
|
|
2020-08-04 00:38:33 +00:00
|
|
|
# Time at which the subscription will expire, in milliseconds since the Epoch.
|
2018-05-09 00:36:02 +00:00
|
|
|
# Corresponds to the JSON property `expiryTimeMillis`
|
|
|
|
# @return [Fixnum]
|
|
|
|
attr_accessor :expiry_time_millis
|
|
|
|
|
2020-08-04 00:38:33 +00:00
|
|
|
# User account identifier in the third-party service. Only present if account
|
|
|
|
# linking happened as part of the subscription purchase flow.
|
2020-02-01 00:37:54 +00:00
|
|
|
# Corresponds to the JSON property `externalAccountId`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :external_account_id
|
|
|
|
|
2020-08-04 00:38:33 +00:00
|
|
|
# The family name of the user when the subscription was purchased. Only present
|
|
|
|
# for purchases made with 'Subscribe with Google'.
|
2018-05-09 00:36:02 +00:00
|
|
|
# Corresponds to the JSON property `familyName`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :family_name
|
|
|
|
|
2020-08-04 00:38:33 +00:00
|
|
|
# The given name of the user when the subscription was purchased. Only present
|
|
|
|
# for purchases made with 'Subscribe with Google'.
|
2018-05-09 00:36:02 +00:00
|
|
|
# Corresponds to the JSON property `givenName`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :given_name
|
|
|
|
|
2019-07-04 00:37:48 +00:00
|
|
|
# Contains the introductory price information for a subscription.
|
|
|
|
# Corresponds to the JSON property `introductoryPriceInfo`
|
|
|
|
# @return [Google::Apis::AndroidpublisherV3::IntroductoryPriceInfo]
|
|
|
|
attr_accessor :introductory_price_info
|
|
|
|
|
2018-05-09 00:36:02 +00:00
|
|
|
# This kind represents a subscriptionPurchase object in the androidpublisher
|
|
|
|
# service.
|
|
|
|
# Corresponds to the JSON property `kind`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :kind
|
|
|
|
|
2020-08-04 00:38:33 +00:00
|
|
|
# The purchase token of the originating purchase if this subscription is one of
|
|
|
|
# the following: 0. Re-signup of a canceled but non-lapsed subscription 1.
|
|
|
|
# Upgrade/downgrade from a previous subscription For example, suppose a user
|
|
|
|
# originally signs up and you receive purchase token X, then the user cancels
|
|
|
|
# and goes through the resignup flow (before their subscription lapses) and you
|
|
|
|
# receive purchase token Y, and finally the user upgrades their subscription and
|
|
|
|
# you receive purchase token Z. If you call this API with purchase token Z, this
|
|
|
|
# field will be set to Y. If you call this API with purchase token Y, this field
|
|
|
|
# will be set to X. If you call this API with purchase token X, this field will
|
|
|
|
# not be set.
|
2018-05-09 00:36:02 +00:00
|
|
|
# Corresponds to the JSON property `linkedPurchaseToken`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :linked_purchase_token
|
|
|
|
|
2020-08-04 00:38:33 +00:00
|
|
|
# An obfuscated version of the id that is uniquely associated with the user's
|
|
|
|
# account in your app. Present for the following purchases: * If account linking
|
|
|
|
# happened as part of the subscription purchase flow. * It was specified using
|
2020-06-09 00:38:09 +00:00
|
|
|
# https://developer.android.com/reference/com/android/billingclient/api/
|
2020-08-04 00:38:33 +00:00
|
|
|
# BillingFlowParams.Builder#setobfuscatedaccountid when the purchase was made.
|
2020-06-09 00:38:09 +00:00
|
|
|
# Corresponds to the JSON property `obfuscatedExternalAccountId`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :obfuscated_external_account_id
|
|
|
|
|
2020-08-04 00:38:33 +00:00
|
|
|
# An obfuscated version of the id that is uniquely associated with the user's
|
|
|
|
# profile in your app. Only present if specified using https://developer.android.
|
|
|
|
# com/reference/com/android/billingclient/api/BillingFlowParams.Builder#
|
|
|
|
# setobfuscatedprofileid when the purchase was made.
|
2020-06-09 00:38:09 +00:00
|
|
|
# Corresponds to the JSON property `obfuscatedExternalProfileId`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :obfuscated_external_profile_id
|
|
|
|
|
2020-08-04 00:38:33 +00:00
|
|
|
# The order id of the latest recurring order associated with the purchase of the
|
|
|
|
# subscription.
|
2018-05-09 00:36:02 +00:00
|
|
|
# Corresponds to the JSON property `orderId`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :order_id
|
|
|
|
|
2020-08-04 00:38:33 +00:00
|
|
|
# The payment state of the subscription. Possible values are: 0. Payment pending
|
feat: Automated regeneration of androidpublisher v3 client (#1262)
This PR was generated using Autosynth. :rainbow:
<details><summary>Log from Synthtool</summary>
```
2020-10-23 01:35:33,982 synthtool [DEBUG] > Executing /home/kbuilder/.cache/synthtool/google-api-ruby-client/synth.py.
On branch autosynth-androidpublisher-v3
nothing to commit, working tree clean
2020-10-23 01:35:34,013 synthtool [DEBUG] > Running: docker run --rm -v/home/kbuilder/.cache/synthtool/google-api-ruby-client:/workspace -v/var/run/docker.sock:/var/run/docker.sock -w /workspace --entrypoint script/synth.rb gcr.io/cloud-devrel-kokoro-resources/yoshi-ruby/autosynth androidpublisher v3
DEBUG:synthtool:Running: docker run --rm -v/home/kbuilder/.cache/synthtool/google-api-ruby-client:/workspace -v/var/run/docker.sock:/var/run/docker.sock -w /workspace --entrypoint script/synth.rb gcr.io/cloud-devrel-kokoro-resources/yoshi-ruby/autosynth androidpublisher v3
bundle install
Don't run Bundler as root. Bundler can ask for sudo if it is needed, and
installing your bundle as root will break this application for all non-root
users on this machine.
The dependency jruby-openssl (>= 0) will be unused by any of the platforms Bundler is installing for. Bundler is installing for ruby but the dependency is only for java. To add those platforms to the bundle, run `bundle lock --add-platform java`.
Fetching gem metadata from https://rubygems.org/.........
Fetching gem metadata from https://rubygems.org/.
Resolving dependencies...
Fetching rake 11.3.0
Installing rake 11.3.0
Fetching concurrent-ruby 1.1.7
Installing concurrent-ruby 1.1.7
Fetching i18n 1.8.5
Installing i18n 1.8.5
Fetching minitest 5.14.2
Installing minitest 5.14.2
Fetching thread_safe 0.3.6
Installing thread_safe 0.3.6
Fetching tzinfo 1.2.7
Installing tzinfo 1.2.7
Fetching activesupport 5.0.7.2
Installing activesupport 5.0.7.2
Fetching public_suffix 4.0.6
Installing public_suffix 4.0.6
Fetching addressable 2.7.0
Installing addressable 2.7.0
Fetching ast 2.4.1
Installing ast 2.4.1
Using bundler 2.1.4
Fetching byebug 11.1.3
Installing byebug 11.1.3 with native extensions
Fetching coderay 1.1.3
Installing coderay 1.1.3
Fetching json 2.3.1
Installing json 2.3.1 with native extensions
Fetching docile 1.3.2
Installing docile 1.3.2
Fetching simplecov-html 0.10.2
Installing simplecov-html 0.10.2
Fetching simplecov 0.16.1
Installing simplecov 0.16.1
Using sync 0.5.0
Fetching tins 1.26.0
Installing tins 1.26.0
Fetching term-ansicolor 1.7.1
Installing term-ansicolor 1.7.1
Fetching thor 0.20.3
Installing thor 0.20.3
Fetching coveralls 0.8.23
Installing coveralls 0.8.23
Fetching crack 0.4.4
Installing crack 0.4.4
Fetching declarative 0.0.20
Installing declarative 0.0.20
Fetching declarative-option 0.1.0
Installing declarative-option 0.1.0
Fetching diff-lcs 1.4.4
Installing diff-lcs 1.4.4
Fetching dotenv 2.7.6
Installing dotenv 2.7.6
Fetching fakefs 0.20.1
Installing fakefs 0.20.1
Fetching multipart-post 2.1.1
Installing multipart-post 2.1.1
Fetching ruby2_keywords 0.0.2
Installing ruby2_keywords 0.0.2
Fetching faraday 1.1.0
Installing faraday 1.1.0
Fetching github-markup 1.7.0
Installing github-markup 1.7.0
Fetching jwt 2.2.2
Installing jwt 2.2.2
Fetching memoist 0.16.2
Installing memoist 0.16.2
Fetching multi_json 1.15.0
Installing multi_json 1.15.0
Fetching os 0.9.6
Installing os 0.9.6
Fetching signet 0.14.0
Installing signet 0.14.0
Fetching googleauth 0.14.0
Installing googleauth 0.14.0
Fetching httpclient 2.8.3
Installing httpclient 2.8.3
Fetching mini_mime 1.0.2
Installing mini_mime 1.0.2
Fetching uber 0.1.0
Installing uber 0.1.0
Fetching representable 3.0.4
Installing representable 3.0.4
Fetching retriable 3.1.2
Installing retriable 3.1.2
Fetching rexml 3.2.4
Installing rexml 3.2.4
Using google-api-client 0.46.2 from source at `.`
Fetching google-id-token 1.4.2
Installing google-id-token 1.4.2
Fetching hashdiff 1.0.1
Installing hashdiff 1.0.1
Fetching mime-types-data 3.2020.0512
Installing mime-types-data 3.2020.0512
Fetching mime-types 3.3.1
Installing mime-types 3.3.1
Fetching multi_xml 0.6.0
Installing multi_xml 0.6.0
Fetching httparty 0.18.1
Installing httparty 0.18.1
Fetching rspec-support 3.9.3
Installing rspec-support 3.9.3
Fetching rspec-core 3.9.3
Installing rspec-core 3.9.3
Fetching rspec-expectations 3.9.2
Installing rspec-expectations 3.9.2
Fetching rspec-mocks 3.9.1
Installing rspec-mocks 3.9.1
Fetching rspec 3.9.0
Installing rspec 3.9.0
Fetching json_spec 1.1.5
Installing json_spec 1.1.5
Fetching launchy 2.5.0
Installing launchy 2.5.0
Fetching little-plugger 1.1.4
Installing little-plugger 1.1.4
Fetching logging 2.3.0
Installing logging 2.3.0
Fetching method_source 1.0.0
Installing method_source 1.0.0
Fetching opencensus 0.5.0
Installing opencensus 0.5.0
Fetching parallel 1.19.2
Installing parallel 1.19.2
Fetching parser 2.7.2.0
Installing parser 2.7.2.0
Fetching powerpack 0.1.2
Installing powerpack 0.1.2
Fetching pry 0.13.1
Installing pry 0.13.1
Fetching pry-byebug 3.9.0
Installing pry-byebug 3.9.0
Fetching yard 0.9.25
Installing yard 0.9.25
Fetching pry-doc 0.13.5
Installing pry-doc 0.13.5
Fetching rainbow 2.2.2
Installing rainbow 2.2.2 with native extensions
Fetching redcarpet 3.5.0
Installing redcarpet 3.5.0 with native extensions
Fetching redis 3.3.5
Installing redis 3.3.5
Fetching rmail 1.1.4
Installing rmail 1.1.4
Fetching ruby-progressbar 1.10.1
Installing ruby-progressbar 1.10.1
Fetching unicode-display_width 1.7.0
Installing unicode-display_width 1.7.0
Fetching rubocop 0.49.1
Installing rubocop 0.49.1
Fetching webmock 2.3.2
Installing webmock 2.3.2
Bundle complete! 30 Gemfile dependencies, 77 gems now installed.
Use `bundle info [gemname]` to see where a bundled gem is installed.
Post-install message from i18n:
HEADS UP! i18n 1.1 changed fallbacks to exclude default locale.
But that may break your application.
If you are upgrading your Rails application from an older version of Rails:
Please check your Rails app for 'config.i18n.fallbacks = true'.
If you're using I18n (>= 1.1.0) and Rails (< 5.2.2), this should be
'config.i18n.fallbacks = [I18n.default_locale]'.
If not, fallbacks will be broken in your app by I18n 1.1.x.
If you are starting a NEW Rails application, you can ignore this notice.
For more info see:
https://github.com/svenfuchs/i18n/releases/tag/v1.1.0
Post-install message from httparty:
When you HTTParty, you must party hard!
echo a | bundle exec bin/generate-api gen generated --api=androidpublisher.v3 --names-out=/workspace/api_names_out.yaml
Loading androidpublisher, version v3 from https://raw.githubusercontent.com/googleapis/discovery-artifact-manager/master/discoveries/androidpublisher.v3.json
conflict google/apis/androidpublisher_v3.rb
<oidpublisher_v3.rb? (enter "h" for help) [Ynaqdhm] a
force google/apis/androidpublisher_v3.rb
identical google/apis/androidpublisher_v3/service.rb
conflict google/apis/androidpublisher_v3/classes.rb
force google/apis/androidpublisher_v3/classes.rb
identical google/apis/androidpublisher_v3/representations.rb
identical /workspace/api_names_out.yaml
2020-10-23 01:36:01,120 synthtool [DEBUG] > Wrote metadata to generated/google/apis/androidpublisher_v3/synth.metadata.
DEBUG:synthtool:Wrote metadata to generated/google/apis/androidpublisher_v3/synth.metadata.
```
</details>
Full log will be available here:
https://source.cloud.google.com/results/invocations/b5264f4d-f9b1-43ca-9f8e-daf952acfa30/targets
- [ ] To automatically regenerate this PR, check this box.
2020-10-23 08:54:04 +00:00
|
|
|
# 1. Payment received 2. Free trial 3. Pending deferred upgrade/downgrade Not
|
|
|
|
# present for canceled, expired subscriptions.
|
2018-05-09 00:36:02 +00:00
|
|
|
# Corresponds to the JSON property `paymentState`
|
|
|
|
# @return [Fixnum]
|
|
|
|
attr_accessor :payment_state
|
|
|
|
|
2020-08-04 00:38:33 +00:00
|
|
|
# Price of the subscription, not including tax. Price is expressed in micro-
|
|
|
|
# units, where 1,000,000 micro-units represents one unit of the currency. For
|
|
|
|
# example, if the subscription price is €1.99, price_amount_micros is 1990000.
|
2018-05-09 00:36:02 +00:00
|
|
|
# Corresponds to the JSON property `priceAmountMicros`
|
|
|
|
# @return [Fixnum]
|
|
|
|
attr_accessor :price_amount_micros
|
|
|
|
|
2018-07-10 00:36:20 +00:00
|
|
|
# Contains the price change information for a subscription that can be used to
|
|
|
|
# control the user journey for the price change in the app. This can be in the
|
|
|
|
# form of seeking confirmation from the user or tailoring the experience for a
|
|
|
|
# successful conversion.
|
|
|
|
# Corresponds to the JSON property `priceChange`
|
|
|
|
# @return [Google::Apis::AndroidpublisherV3::SubscriptionPriceChange]
|
|
|
|
attr_accessor :price_change
|
|
|
|
|
2020-08-04 00:38:33 +00:00
|
|
|
# ISO 4217 currency code for the subscription price. For example, if the price
|
|
|
|
# is specified in British pounds sterling, price_currency_code is "GBP".
|
2018-05-09 00:36:02 +00:00
|
|
|
# Corresponds to the JSON property `priceCurrencyCode`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :price_currency_code
|
|
|
|
|
2020-08-04 00:38:33 +00:00
|
|
|
# The Google profile id of the user when the subscription was purchased. Only
|
|
|
|
# present for purchases made with 'Subscribe with Google'.
|
2018-05-09 00:36:02 +00:00
|
|
|
# Corresponds to the JSON property `profileId`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :profile_id
|
|
|
|
|
2020-08-04 00:38:33 +00:00
|
|
|
# The profile name of the user when the subscription was purchased. Only present
|
|
|
|
# for purchases made with 'Subscribe with Google'.
|
2018-05-09 00:36:02 +00:00
|
|
|
# Corresponds to the JSON property `profileName`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :profile_name
|
|
|
|
|
2020-08-04 00:38:33 +00:00
|
|
|
# The promotion code applied on this purchase. This field is only set if a
|
|
|
|
# vanity code promotion is applied when the subscription was purchased.
|
2020-01-25 00:37:19 +00:00
|
|
|
# Corresponds to the JSON property `promotionCode`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :promotion_code
|
|
|
|
|
2020-08-04 00:38:33 +00:00
|
|
|
# The type of promotion applied on this purchase. This field is only set if a
|
|
|
|
# promotion is applied when the subscription was purchased. Possible values are:
|
|
|
|
# 0. One time code 1. Vanity code
|
2020-01-25 00:37:19 +00:00
|
|
|
# Corresponds to the JSON property `promotionType`
|
|
|
|
# @return [Fixnum]
|
|
|
|
attr_accessor :promotion_type
|
|
|
|
|
2020-08-04 00:38:33 +00:00
|
|
|
# The type of purchase of the subscription. This field is only set if this
|
|
|
|
# purchase was not made using the standard in-app billing flow. Possible values
|
|
|
|
# are: 0. Test (i.e. purchased from a license testing account) 1. Promo (i.e.
|
|
|
|
# purchased using a promo code)
|
2018-05-09 00:36:02 +00:00
|
|
|
# Corresponds to the JSON property `purchaseType`
|
|
|
|
# @return [Fixnum]
|
|
|
|
attr_accessor :purchase_type
|
|
|
|
|
2020-08-04 00:38:33 +00:00
|
|
|
# Time at which the subscription was granted, in milliseconds since the Epoch.
|
2018-05-09 00:36:02 +00:00
|
|
|
# Corresponds to the JSON property `startTimeMillis`
|
|
|
|
# @return [Fixnum]
|
|
|
|
attr_accessor :start_time_millis
|
|
|
|
|
2020-08-04 00:38:33 +00:00
|
|
|
# The time at which the subscription was canceled by the user, in milliseconds
|
|
|
|
# since the epoch. Only present if cancelReason is 0.
|
2018-05-09 00:36:02 +00:00
|
|
|
# Corresponds to the JSON property `userCancellationTimeMillis`
|
|
|
|
# @return [Fixnum]
|
|
|
|
attr_accessor :user_cancellation_time_millis
|
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
2019-06-06 00:40:37 +00:00
|
|
|
@acknowledgement_state = args[:acknowledgement_state] if args.key?(:acknowledgement_state)
|
2018-05-09 00:36:02 +00:00
|
|
|
@auto_renewing = args[:auto_renewing] if args.key?(:auto_renewing)
|
2018-11-16 00:36:46 +00:00
|
|
|
@auto_resume_time_millis = args[:auto_resume_time_millis] if args.key?(:auto_resume_time_millis)
|
2018-05-09 00:36:02 +00:00
|
|
|
@cancel_reason = args[:cancel_reason] if args.key?(:cancel_reason)
|
|
|
|
@cancel_survey_result = args[:cancel_survey_result] if args.key?(:cancel_survey_result)
|
|
|
|
@country_code = args[:country_code] if args.key?(:country_code)
|
|
|
|
@developer_payload = args[:developer_payload] if args.key?(:developer_payload)
|
|
|
|
@email_address = args[:email_address] if args.key?(:email_address)
|
|
|
|
@expiry_time_millis = args[:expiry_time_millis] if args.key?(:expiry_time_millis)
|
2020-02-01 00:37:54 +00:00
|
|
|
@external_account_id = args[:external_account_id] if args.key?(:external_account_id)
|
2018-05-09 00:36:02 +00:00
|
|
|
@family_name = args[:family_name] if args.key?(:family_name)
|
|
|
|
@given_name = args[:given_name] if args.key?(:given_name)
|
2019-07-04 00:37:48 +00:00
|
|
|
@introductory_price_info = args[:introductory_price_info] if args.key?(:introductory_price_info)
|
2018-05-09 00:36:02 +00:00
|
|
|
@kind = args[:kind] if args.key?(:kind)
|
|
|
|
@linked_purchase_token = args[:linked_purchase_token] if args.key?(:linked_purchase_token)
|
2020-06-09 00:38:09 +00:00
|
|
|
@obfuscated_external_account_id = args[:obfuscated_external_account_id] if args.key?(:obfuscated_external_account_id)
|
|
|
|
@obfuscated_external_profile_id = args[:obfuscated_external_profile_id] if args.key?(:obfuscated_external_profile_id)
|
2018-05-09 00:36:02 +00:00
|
|
|
@order_id = args[:order_id] if args.key?(:order_id)
|
|
|
|
@payment_state = args[:payment_state] if args.key?(:payment_state)
|
|
|
|
@price_amount_micros = args[:price_amount_micros] if args.key?(:price_amount_micros)
|
2018-07-10 00:36:20 +00:00
|
|
|
@price_change = args[:price_change] if args.key?(:price_change)
|
2018-05-09 00:36:02 +00:00
|
|
|
@price_currency_code = args[:price_currency_code] if args.key?(:price_currency_code)
|
|
|
|
@profile_id = args[:profile_id] if args.key?(:profile_id)
|
|
|
|
@profile_name = args[:profile_name] if args.key?(:profile_name)
|
2020-01-25 00:37:19 +00:00
|
|
|
@promotion_code = args[:promotion_code] if args.key?(:promotion_code)
|
|
|
|
@promotion_type = args[:promotion_type] if args.key?(:promotion_type)
|
2018-05-09 00:36:02 +00:00
|
|
|
@purchase_type = args[:purchase_type] if args.key?(:purchase_type)
|
|
|
|
@start_time_millis = args[:start_time_millis] if args.key?(:start_time_millis)
|
|
|
|
@user_cancellation_time_millis = args[:user_cancellation_time_millis] if args.key?(:user_cancellation_time_millis)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2020-06-09 00:38:09 +00:00
|
|
|
# Request for the purchases.subscriptions.acknowledge API.
|
2019-05-09 00:37:30 +00:00
|
|
|
class SubscriptionPurchasesAcknowledgeRequest
|
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
|
|
|
# Payload to attach to the purchase.
|
|
|
|
# Corresponds to the JSON property `developerPayload`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :developer_payload
|
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
|
|
|
@developer_payload = args[:developer_payload] if args.key?(:developer_payload)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2020-06-09 00:38:09 +00:00
|
|
|
# Request for the purchases.subscriptions.defer API.
|
2018-05-09 00:36:02 +00:00
|
|
|
class SubscriptionPurchasesDeferRequest
|
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
2020-08-04 00:38:33 +00:00
|
|
|
# A SubscriptionDeferralInfo contains the data needed to defer a subscription
|
|
|
|
# purchase to a future expiry time.
|
2018-05-09 00:36:02 +00:00
|
|
|
# Corresponds to the JSON property `deferralInfo`
|
|
|
|
# @return [Google::Apis::AndroidpublisherV3::SubscriptionDeferralInfo]
|
|
|
|
attr_accessor :deferral_info
|
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
|
|
|
@deferral_info = args[:deferral_info] if args.key?(:deferral_info)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2020-06-09 00:38:09 +00:00
|
|
|
# Response for the purchases.subscriptions.defer API.
|
2018-05-09 00:36:02 +00:00
|
|
|
class SubscriptionPurchasesDeferResponse
|
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
|
|
|
# The new expiry time for the subscription in milliseconds since the Epoch.
|
|
|
|
# Corresponds to the JSON property `newExpiryTimeMillis`
|
|
|
|
# @return [Fixnum]
|
|
|
|
attr_accessor :new_expiry_time_millis
|
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
|
|
|
@new_expiry_time_millis = args[:new_expiry_time_millis] if args.key?(:new_expiry_time_millis)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2020-07-02 00:38:31 +00:00
|
|
|
# Response to list previously created system APK variants.
|
|
|
|
class SystemApksListResponse
|
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
|
|
|
# All system APK variants created.
|
|
|
|
# Corresponds to the JSON property `variants`
|
|
|
|
# @return [Array<Google::Apis::AndroidpublisherV3::Variant>]
|
|
|
|
attr_accessor :variants
|
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
|
|
|
@variants = args[:variants] if args.key?(:variants)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2020-06-09 00:38:09 +00:00
|
|
|
# The testers of an app. The resource for TestersService.
|
2018-05-09 00:36:02 +00:00
|
|
|
class Testers
|
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
2020-06-09 00:38:09 +00:00
|
|
|
# All testing Google Groups, as email addresses.
|
2018-05-09 00:36:02 +00:00
|
|
|
# Corresponds to the JSON property `googleGroups`
|
|
|
|
# @return [Array<String>]
|
|
|
|
attr_accessor :google_groups
|
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
|
|
|
@google_groups = args[:google_groups] if args.key?(:google_groups)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2020-06-09 00:38:09 +00:00
|
|
|
# A Timestamp represents a point in time independent of any time zone or local
|
2020-08-04 00:38:33 +00:00
|
|
|
# calendar, encoded as a count of seconds and fractions of seconds at nanosecond
|
|
|
|
# resolution. The count is relative to an epoch at UTC midnight on January 1,
|
|
|
|
# 1970.
|
2018-05-09 00:36:02 +00:00
|
|
|
class Timestamp
|
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
2020-08-04 00:38:33 +00:00
|
|
|
# Non-negative fractions of a second at nanosecond resolution. Must be from 0 to
|
|
|
|
# 999,999,999 inclusive.
|
2018-05-09 00:36:02 +00:00
|
|
|
# Corresponds to the JSON property `nanos`
|
|
|
|
# @return [Fixnum]
|
|
|
|
attr_accessor :nanos
|
|
|
|
|
2020-06-09 00:38:09 +00:00
|
|
|
# Represents seconds of UTC time since Unix epoch.
|
2018-05-09 00:36:02 +00:00
|
|
|
# Corresponds to the JSON property `seconds`
|
|
|
|
# @return [Fixnum]
|
|
|
|
attr_accessor :seconds
|
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
|
|
|
@nanos = args[:nanos] if args.key?(:nanos)
|
|
|
|
@seconds = args[:seconds] if args.key?(:seconds)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2020-08-04 00:38:33 +00:00
|
|
|
# Pagination information returned by a List operation when token pagination is
|
|
|
|
# enabled. List operations that supports paging return only one "page" of
|
|
|
|
# results. This protocol buffer message describes the page that has been
|
|
|
|
# returned. When using token pagination, clients should use the next/previous
|
|
|
|
# token to get another page of the result. The presence or absence of next/
|
|
|
|
# previous token indicates whether a next/previous page is available and
|
|
|
|
# provides a mean of accessing this page. ListRequest.page_token should be set
|
|
|
|
# to either next_page_token or previous_page_token to access another page.
|
2018-05-09 00:36:02 +00:00
|
|
|
class TokenPagination
|
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
2020-06-09 00:38:09 +00:00
|
|
|
# Tokens to pass to the standard list field 'page_token'. Whenever available,
|
|
|
|
# tokens are preferred over manipulating start_index.
|
2018-05-09 00:36:02 +00:00
|
|
|
# Corresponds to the JSON property `nextPageToken`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :next_page_token
|
|
|
|
|
|
|
|
#
|
|
|
|
# Corresponds to the JSON property `previousPageToken`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :previous_page_token
|
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
|
|
|
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
|
|
|
@previous_page_token = args[:previous_page_token] if args.key?(:previous_page_token)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2020-06-09 00:38:09 +00:00
|
|
|
# A track configuration. The resource for TracksService.
|
2018-05-09 00:36:02 +00:00
|
|
|
class Track
|
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
2020-08-04 00:38:33 +00:00
|
|
|
# In a read request, represents all active releases in the track. In an update
|
|
|
|
# request, represents desired changes.
|
2018-05-09 00:36:02 +00:00
|
|
|
# Corresponds to the JSON property `releases`
|
|
|
|
# @return [Array<Google::Apis::AndroidpublisherV3::TrackRelease>]
|
|
|
|
attr_accessor :releases
|
|
|
|
|
2020-06-09 00:38:09 +00:00
|
|
|
# Identifier of the track.
|
2018-05-09 00:36:02 +00:00
|
|
|
# Corresponds to the JSON property `track`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :track
|
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
|
|
|
@releases = args[:releases] if args.key?(:releases)
|
|
|
|
@track = args[:track] if args.key?(:track)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2020-06-09 00:38:09 +00:00
|
|
|
# A release within a track.
|
2018-05-09 00:36:02 +00:00
|
|
|
class TrackRelease
|
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
2020-06-09 00:38:09 +00:00
|
|
|
# Country targeting specification.
|
2019-04-02 00:37:40 +00:00
|
|
|
# Corresponds to the JSON property `countryTargeting`
|
|
|
|
# @return [Google::Apis::AndroidpublisherV3::CountryTargeting]
|
|
|
|
attr_accessor :country_targeting
|
|
|
|
|
2020-08-04 00:38:33 +00:00
|
|
|
# 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.
|
2020-02-01 00:37:54 +00:00
|
|
|
# Corresponds to the JSON property `inAppUpdatePriority`
|
|
|
|
# @return [Fixnum]
|
|
|
|
attr_accessor :in_app_update_priority
|
|
|
|
|
2020-08-04 00:38:33 +00:00
|
|
|
# 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.
|
2018-05-09 00:36:02 +00:00
|
|
|
# Corresponds to the JSON property `name`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :name
|
|
|
|
|
2020-06-09 00:38:09 +00:00
|
|
|
# A description of what is new in this release.
|
2018-05-09 00:36:02 +00:00
|
|
|
# Corresponds to the JSON property `releaseNotes`
|
|
|
|
# @return [Array<Google::Apis::AndroidpublisherV3::LocalizedText>]
|
|
|
|
attr_accessor :release_notes
|
|
|
|
|
2020-06-09 00:38:09 +00:00
|
|
|
# The status of the release.
|
2018-05-09 00:36:02 +00:00
|
|
|
# Corresponds to the JSON property `status`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :status
|
|
|
|
|
2020-08-04 00:38:33 +00:00
|
|
|
# Fraction of users who are eligible for a staged release. 0 < fraction < 1. Can
|
|
|
|
# only be set when status is "inProgress" or "halted".
|
2018-05-09 00:36:02 +00:00
|
|
|
# Corresponds to the JSON property `userFraction`
|
|
|
|
# @return [Float]
|
|
|
|
attr_accessor :user_fraction
|
|
|
|
|
2020-08-04 00:38:33 +00:00
|
|
|
# Version codes of all APKs in the release. Must include version codes to retain
|
|
|
|
# from previous releases.
|
2018-05-09 00:36:02 +00:00
|
|
|
# Corresponds to the JSON property `versionCodes`
|
|
|
|
# @return [Array<Fixnum>]
|
|
|
|
attr_accessor :version_codes
|
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
2019-04-02 00:37:40 +00:00
|
|
|
@country_targeting = args[:country_targeting] if args.key?(:country_targeting)
|
2020-02-01 00:37:54 +00:00
|
|
|
@in_app_update_priority = args[:in_app_update_priority] if args.key?(:in_app_update_priority)
|
2018-05-09 00:36:02 +00:00
|
|
|
@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
|
|
|
|
end
|
|
|
|
|
2020-06-09 00:38:09 +00:00
|
|
|
# Response listing all tracks.
|
2018-05-09 00:36:02 +00:00
|
|
|
class TracksListResponse
|
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
2020-06-09 00:38:09 +00:00
|
|
|
# The kind of this response ("androidpublisher#tracksListResponse").
|
2018-05-09 00:36:02 +00:00
|
|
|
# Corresponds to the JSON property `kind`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :kind
|
|
|
|
|
2020-06-09 00:38:09 +00:00
|
|
|
# All tracks.
|
2018-05-09 00:36:02 +00:00
|
|
|
# Corresponds to the JSON property `tracks`
|
|
|
|
# @return [Array<Google::Apis::AndroidpublisherV3::Track>]
|
|
|
|
attr_accessor :tracks
|
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
|
|
|
@kind = args[:kind] if args.key?(:kind)
|
|
|
|
@tracks = args[:tracks] if args.key?(:tracks)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2020-06-09 00:38:09 +00:00
|
|
|
# User entry from conversation between user and developer.
|
2018-05-09 00:36:02 +00:00
|
|
|
class UserComment
|
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
2020-08-04 00:38:33 +00:00
|
|
|
# Integer Android SDK version of the user's device at the time the review was
|
|
|
|
# written, e.g. 23 is Marshmallow. May be absent.
|
2018-05-09 00:36:02 +00:00
|
|
|
# Corresponds to the JSON property `androidOsVersion`
|
|
|
|
# @return [Fixnum]
|
|
|
|
attr_accessor :android_os_version
|
|
|
|
|
2020-08-04 00:38:33 +00:00
|
|
|
# Integer version code of the app as installed at the time the review was
|
|
|
|
# written. May be absent.
|
2018-05-09 00:36:02 +00:00
|
|
|
# Corresponds to the JSON property `appVersionCode`
|
|
|
|
# @return [Fixnum]
|
|
|
|
attr_accessor :app_version_code
|
|
|
|
|
2020-08-04 00:38:33 +00:00
|
|
|
# String version name of the app as installed at the time the review was written.
|
|
|
|
# May be absent.
|
2018-05-09 00:36:02 +00:00
|
|
|
# Corresponds to the JSON property `appVersionName`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :app_version_name
|
|
|
|
|
|
|
|
# Codename for the reviewer's device, e.g. klte, flounder. May be absent.
|
|
|
|
# Corresponds to the JSON property `device`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :device
|
|
|
|
|
2020-06-09 00:38:09 +00:00
|
|
|
# Characteristics of the user's device.
|
2018-05-09 00:36:02 +00:00
|
|
|
# Corresponds to the JSON property `deviceMetadata`
|
|
|
|
# @return [Google::Apis::AndroidpublisherV3::DeviceMetadata]
|
|
|
|
attr_accessor :device_metadata
|
|
|
|
|
2020-06-09 00:38:09 +00:00
|
|
|
# A Timestamp represents a point in time independent of any time zone or local
|
2020-08-04 00:38:33 +00:00
|
|
|
# calendar, encoded as a count of seconds and fractions of seconds at nanosecond
|
|
|
|
# resolution. The count is relative to an epoch at UTC midnight on January 1,
|
|
|
|
# 1970.
|
2018-05-09 00:36:02 +00:00
|
|
|
# Corresponds to the JSON property `lastModified`
|
|
|
|
# @return [Google::Apis::AndroidpublisherV3::Timestamp]
|
|
|
|
attr_accessor :last_modified
|
|
|
|
|
2020-08-04 00:38:33 +00:00
|
|
|
# Untranslated text of the review, where the review was translated. If the
|
|
|
|
# review was not translated this is left blank.
|
2018-05-09 00:36:02 +00:00
|
|
|
# Corresponds to the JSON property `originalText`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :original_text
|
|
|
|
|
2020-08-04 00:38:33 +00:00
|
|
|
# Language code for the reviewer. This is taken from the device settings so is
|
|
|
|
# not guaranteed to match the language the review is written in. May be absent.
|
2018-05-09 00:36:02 +00:00
|
|
|
# Corresponds to the JSON property `reviewerLanguage`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :reviewer_language
|
|
|
|
|
|
|
|
# The star rating associated with the review, from 1 to 5.
|
|
|
|
# Corresponds to the JSON property `starRating`
|
|
|
|
# @return [Fixnum]
|
|
|
|
attr_accessor :star_rating
|
|
|
|
|
2020-08-04 00:38:33 +00:00
|
|
|
# The content of the comment, i.e. review body. In some cases users have been
|
|
|
|
# able to write a review with separate title and body; in those cases the title
|
|
|
|
# and body are concatenated and separated by a tab character.
|
2018-05-09 00:36:02 +00:00
|
|
|
# Corresponds to the JSON property `text`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :text
|
|
|
|
|
2020-06-09 00:38:09 +00:00
|
|
|
# Number of users who have given this review a thumbs down.
|
2018-05-09 00:36:02 +00:00
|
|
|
# Corresponds to the JSON property `thumbsDownCount`
|
|
|
|
# @return [Fixnum]
|
|
|
|
attr_accessor :thumbs_down_count
|
|
|
|
|
2020-06-09 00:38:09 +00:00
|
|
|
# Number of users who have given this review a thumbs up.
|
2018-05-09 00:36:02 +00:00
|
|
|
# Corresponds to the JSON property `thumbsUpCount`
|
|
|
|
# @return [Fixnum]
|
|
|
|
attr_accessor :thumbs_up_count
|
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
|
|
|
@android_os_version = args[:android_os_version] if args.key?(:android_os_version)
|
|
|
|
@app_version_code = args[:app_version_code] if args.key?(:app_version_code)
|
|
|
|
@app_version_name = args[:app_version_name] if args.key?(:app_version_name)
|
|
|
|
@device = args[:device] if args.key?(:device)
|
|
|
|
@device_metadata = args[:device_metadata] if args.key?(:device_metadata)
|
|
|
|
@last_modified = args[:last_modified] if args.key?(:last_modified)
|
|
|
|
@original_text = args[:original_text] if args.key?(:original_text)
|
|
|
|
@reviewer_language = args[:reviewer_language] if args.key?(:reviewer_language)
|
|
|
|
@star_rating = args[:star_rating] if args.key?(:star_rating)
|
|
|
|
@text = args[:text] if args.key?(:text)
|
|
|
|
@thumbs_down_count = args[:thumbs_down_count] if args.key?(:thumbs_down_count)
|
|
|
|
@thumbs_up_count = args[:thumbs_up_count] if args.key?(:thumbs_up_count)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2020-06-09 00:38:09 +00:00
|
|
|
# A permission used by this APK.
|
|
|
|
class UsesPermission
|
2020-01-11 00:38:00 +00:00
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
2020-08-04 00:38:33 +00:00
|
|
|
# Optionally, the maximum SDK version for which the permission is required.
|
2020-06-09 00:38:09 +00:00
|
|
|
# Corresponds to the JSON property `maxSdkVersion`
|
2020-01-11 00:38:00 +00:00
|
|
|
# @return [Fixnum]
|
2020-06-09 00:38:09 +00:00
|
|
|
attr_accessor :max_sdk_version
|
|
|
|
|
|
|
|
# The name of the permission requested.
|
|
|
|
# Corresponds to the JSON property `name`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :name
|
2020-01-11 00:38:00 +00:00
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
2020-06-09 00:38:09 +00:00
|
|
|
@max_sdk_version = args[:max_sdk_version] if args.key?(:max_sdk_version)
|
|
|
|
@name = args[:name] if args.key?(:name)
|
2020-01-11 00:38:00 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2020-07-02 00:38:31 +00:00
|
|
|
# APK that is suitable for inclusion in a system image. The resource of
|
|
|
|
# SystemApksService.
|
|
|
|
class Variant
|
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
|
|
|
# The device spec used to generate a system APK.
|
|
|
|
# Corresponds to the JSON property `deviceSpec`
|
|
|
|
# @return [Google::Apis::AndroidpublisherV3::DeviceSpec]
|
|
|
|
attr_accessor :device_spec
|
|
|
|
|
|
|
|
# Output only. The ID of a previously created system APK variant.
|
|
|
|
# Corresponds to the JSON property `variantId`
|
|
|
|
# @return [Fixnum]
|
|
|
|
attr_accessor :variant_id
|
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
|
|
|
@device_spec = args[:device_spec] if args.key?(:device_spec)
|
|
|
|
@variant_id = args[:variant_id] if args.key?(:variant_id)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2020-08-04 00:38:33 +00:00
|
|
|
# A VoidedPurchase resource indicates a purchase that was either canceled/
|
|
|
|
# refunded/charged-back.
|
2018-05-09 00:36:02 +00:00
|
|
|
class VoidedPurchase
|
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
2020-08-04 00:38:33 +00:00
|
|
|
# This kind represents a voided purchase object in the androidpublisher service.
|
2018-05-09 00:36:02 +00:00
|
|
|
# Corresponds to the JSON property `kind`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :kind
|
|
|
|
|
2019-08-20 00:38:36 +00:00
|
|
|
# The order id which uniquely identifies a one-time purchase, subscription
|
|
|
|
# purchase, or subscription renewal.
|
|
|
|
# Corresponds to the JSON property `orderId`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :order_id
|
|
|
|
|
2020-08-04 00:38:33 +00:00
|
|
|
# The time at which the purchase was made, in milliseconds since the epoch (Jan
|
|
|
|
# 1, 1970).
|
2018-05-09 00:36:02 +00:00
|
|
|
# Corresponds to the JSON property `purchaseTimeMillis`
|
|
|
|
# @return [Fixnum]
|
|
|
|
attr_accessor :purchase_time_millis
|
|
|
|
|
2020-08-04 00:38:33 +00:00
|
|
|
# The token which uniquely identifies a one-time purchase or subscription. To
|
|
|
|
# uniquely identify subscription renewals use order_id (available starting from
|
|
|
|
# version 3 of the API).
|
2018-05-09 00:36:02 +00:00
|
|
|
# Corresponds to the JSON property `purchaseToken`
|
|
|
|
# @return [String]
|
|
|
|
attr_accessor :purchase_token
|
|
|
|
|
2020-08-04 00:38:33 +00:00
|
|
|
# The reason why the purchase was voided, possible values are: 0. Other 1.
|
|
|
|
# Remorse 2. Not_received 3. Defective 4. Accidental_purchase 5. Fraud 6.
|
|
|
|
# Friendly_fraud 7. Chargeback
|
2019-08-20 00:38:36 +00:00
|
|
|
# Corresponds to the JSON property `voidedReason`
|
|
|
|
# @return [Fixnum]
|
|
|
|
attr_accessor :voided_reason
|
|
|
|
|
2020-08-04 00:38:33 +00:00
|
|
|
# The initiator of voided purchase, possible values are: 0. User 1. Developer 2.
|
|
|
|
# Google
|
2019-08-20 00:38:36 +00:00
|
|
|
# Corresponds to the JSON property `voidedSource`
|
|
|
|
# @return [Fixnum]
|
|
|
|
attr_accessor :voided_source
|
|
|
|
|
2020-08-04 00:38:33 +00:00
|
|
|
# The time at which the purchase was canceled/refunded/charged-back, in
|
|
|
|
# milliseconds since the epoch (Jan 1, 1970).
|
2018-05-09 00:36:02 +00:00
|
|
|
# Corresponds to the JSON property `voidedTimeMillis`
|
|
|
|
# @return [Fixnum]
|
|
|
|
attr_accessor :voided_time_millis
|
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
|
|
|
@kind = args[:kind] if args.key?(:kind)
|
2019-08-20 00:38:36 +00:00
|
|
|
@order_id = args[:order_id] if args.key?(:order_id)
|
2018-05-09 00:36:02 +00:00
|
|
|
@purchase_time_millis = args[:purchase_time_millis] if args.key?(:purchase_time_millis)
|
|
|
|
@purchase_token = args[:purchase_token] if args.key?(:purchase_token)
|
2019-08-20 00:38:36 +00:00
|
|
|
@voided_reason = args[:voided_reason] if args.key?(:voided_reason)
|
|
|
|
@voided_source = args[:voided_source] if args.key?(:voided_source)
|
2018-05-09 00:36:02 +00:00
|
|
|
@voided_time_millis = args[:voided_time_millis] if args.key?(:voided_time_millis)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2020-06-09 00:38:09 +00:00
|
|
|
# Response for the voidedpurchases.list API.
|
2018-05-09 00:36:02 +00:00
|
|
|
class VoidedPurchasesListResponse
|
|
|
|
include Google::Apis::Core::Hashable
|
|
|
|
|
2020-08-04 00:38:33 +00:00
|
|
|
# Information about the current page. List operations that supports paging
|
|
|
|
# return only one "page" of results. This protocol buffer message describes the
|
|
|
|
# page that has been returned.
|
2018-05-09 00:36:02 +00:00
|
|
|
# Corresponds to the JSON property `pageInfo`
|
|
|
|
# @return [Google::Apis::AndroidpublisherV3::PageInfo]
|
|
|
|
attr_accessor :page_info
|
|
|
|
|
2020-08-04 00:38:33 +00:00
|
|
|
# Pagination information returned by a List operation when token pagination is
|
|
|
|
# enabled. List operations that supports paging return only one "page" of
|
|
|
|
# results. This protocol buffer message describes the page that has been
|
|
|
|
# returned. When using token pagination, clients should use the next/previous
|
|
|
|
# token to get another page of the result. The presence or absence of next/
|
|
|
|
# previous token indicates whether a next/previous page is available and
|
|
|
|
# provides a mean of accessing this page. ListRequest.page_token should be set
|
|
|
|
# to either next_page_token or previous_page_token to access another page.
|
2018-05-09 00:36:02 +00:00
|
|
|
# Corresponds to the JSON property `tokenPagination`
|
|
|
|
# @return [Google::Apis::AndroidpublisherV3::TokenPagination]
|
|
|
|
attr_accessor :token_pagination
|
|
|
|
|
|
|
|
#
|
|
|
|
# Corresponds to the JSON property `voidedPurchases`
|
|
|
|
# @return [Array<Google::Apis::AndroidpublisherV3::VoidedPurchase>]
|
|
|
|
attr_accessor :voided_purchases
|
|
|
|
|
|
|
|
def initialize(**args)
|
|
|
|
update!(**args)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Update properties of this object
|
|
|
|
def update!(**args)
|
|
|
|
@page_info = args[:page_info] if args.key?(:page_info)
|
|
|
|
@token_pagination = args[:token_pagination] if args.key?(:token_pagination)
|
|
|
|
@voided_purchases = args[:voided_purchases] if args.key?(:voided_purchases)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|