Autogenerated update (2020-06-14)

Update:
- playcustomapp_v1
This commit is contained in:
Google APIs 2020-06-14 00:38:06 +00:00
parent 2c1e1f5349
commit 436ffa04f2
4 changed files with 22 additions and 22 deletions

View File

@ -20,12 +20,12 @@ module Google
module Apis module Apis
# Google Play Custom App Publishing API # Google Play Custom App Publishing API
# #
# An API to publish custom Android apps. # API to create and publish custom Android apps
# #
# @see https://developers.google.com/android/work/play/custom-app-api # @see https://developers.google.com/android/work/play/custom-app-api/
module PlaycustomappV1 module PlaycustomappV1
VERSION = 'V1' VERSION = 'V1'
REVISION = '20170622' REVISION = '20200611'
# View and manage your Google Play Developer account # View and manage your Google Play Developer account
AUTH_ANDROIDPUBLISHER = 'https://www.googleapis.com/auth/androidpublisher' AUTH_ANDROIDPUBLISHER = 'https://www.googleapis.com/auth/androidpublisher'

View File

@ -31,6 +31,12 @@ module Google
# @return [String] # @return [String]
attr_accessor :language_code attr_accessor :language_code
# Output only. Package name of the created Android app.
# Only present in the API response.
# Corresponds to the JSON property `packageName`
# @return [String]
attr_accessor :package_name
# Title for the Android app. # Title for the Android app.
# Corresponds to the JSON property `title` # Corresponds to the JSON property `title`
# @return [String] # @return [String]
@ -43,6 +49,7 @@ module Google
# Update properties of this object # Update properties of this object
def update!(**args) def update!(**args)
@language_code = args[:language_code] if args.key?(:language_code) @language_code = args[:language_code] if args.key?(:language_code)
@package_name = args[:package_name] if args.key?(:package_name)
@title = args[:title] if args.key?(:title) @title = args[:title] if args.key?(:title)
end end
end end

View File

@ -32,6 +32,7 @@ module Google
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :language_code, as: 'languageCode' property :language_code, as: 'languageCode'
property :package_name, as: 'packageName'
property :title, as: 'title' property :title, as: 'title'
end end
end end

View File

@ -22,7 +22,7 @@ module Google
module PlaycustomappV1 module PlaycustomappV1
# Google Play Custom App Publishing API # Google Play Custom App Publishing API
# #
# An API to publish custom Android apps. # API to create and publish custom Android apps
# #
# @example # @example
# require 'google/apis/playcustomapp_v1' # require 'google/apis/playcustomapp_v1'
@ -30,7 +30,7 @@ module Google
# Playcustomapp = Google::Apis::PlaycustomappV1 # Alias the module # Playcustomapp = Google::Apis::PlaycustomappV1 # Alias the module
# service = Playcustomapp::PlaycustomappService.new # service = Playcustomapp::PlaycustomappService.new
# #
# @see https://developers.google.com/android/work/play/custom-app-api # @see https://developers.google.com/android/work/play/custom-app-api/
class PlaycustomappService < Google::Apis::Core::BaseService class PlaycustomappService < Google::Apis::Core::BaseService
# @return [String] # @return [String]
# API key. Your API key identifies your project and provides you with API access, # API key. Your API key identifies your project and provides you with API access,
@ -38,30 +38,24 @@ module Google
attr_accessor :key attr_accessor :key
# @return [String] # @return [String]
# An opaque string that represents a user for quota purposes. Must not exceed 40 # Available to use for quota purposes for server-side applications. Can be any
# characters. # arbitrary string assigned to a user, but should not exceed 40 characters.
attr_accessor :quota_user attr_accessor :quota_user
# @return [String]
# Deprecated. Please use quotaUser instead.
attr_accessor :user_ip
def initialize def initialize
super('https://www.googleapis.com/', 'playcustomapp/v1/accounts/') super('https://www.googleapis.com/', '')
@batch_path = 'batch/playcustomapp/v1' @batch_path = 'batch/playcustomapp/v1'
end end
# Create and publish a new custom app. # Creates a new custom app.
# @param [Fixnum] account # @param [Fixnum] account
# Developer account ID. # Developer account ID.
# @param [Google::Apis::PlaycustomappV1::CustomApp] custom_app_object # @param [Google::Apis::PlaycustomappV1::CustomApp] custom_app_object
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
# An opaque string that represents a user for quota purposes. Must not exceed 40 # Available to use for quota purposes for server-side applications. Can be any
# characters. # arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [String] user_ip
# Deprecated. Please use quotaUser instead.
# @param [IO, String] upload_source # @param [IO, String] upload_source
# IO stream or filename containing content to upload # IO stream or filename containing content to upload
# @param [String] content_type # @param [String] content_type
@ -78,11 +72,11 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def create_account_custom_app(account, custom_app_object = nil, fields: nil, quota_user: nil, user_ip: nil, upload_source: nil, content_type: nil, options: nil, &block) def create_account_custom_app(account, custom_app_object = nil, fields: nil, quota_user: nil, upload_source: nil, content_type: nil, options: nil, &block)
if upload_source.nil? if upload_source.nil?
command = make_simple_command(:post, '{account}/customApps', options) command = make_simple_command(:post, 'playcustomapp/v1/accounts/{account}/customApps', options)
else else
command = make_upload_command(:post, '{account}/customApps', options) command = make_upload_command(:post, 'playcustomapp/v1/accounts/{account}/customApps', options)
command.upload_source = upload_source command.upload_source = upload_source
command.upload_content_type = content_type command.upload_content_type = content_type
end end
@ -93,7 +87,6 @@ module Google
command.params['account'] = account unless account.nil? command.params['account'] = account unless account.nil?
command.query['fields'] = fields unless fields.nil? command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
@ -102,7 +95,6 @@ module Google
def apply_command_defaults(command) def apply_command_defaults(command)
command.query['key'] = key unless key.nil? command.query['key'] = key unless key.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
end end
end end
end end