Autogenerated update (2020-06-14)
Update: - playcustomapp_v1
This commit is contained in:
parent
2c1e1f5349
commit
436ffa04f2
|
@ -20,12 +20,12 @@ module Google
|
|||
module Apis
|
||||
# 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
|
||||
VERSION = 'V1'
|
||||
REVISION = '20170622'
|
||||
REVISION = '20200611'
|
||||
|
||||
# View and manage your Google Play Developer account
|
||||
AUTH_ANDROIDPUBLISHER = 'https://www.googleapis.com/auth/androidpublisher'
|
||||
|
|
|
@ -31,6 +31,12 @@ module Google
|
|||
# @return [String]
|
||||
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.
|
||||
# Corresponds to the JSON property `title`
|
||||
# @return [String]
|
||||
|
@ -43,6 +49,7 @@ module Google
|
|||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@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)
|
||||
end
|
||||
end
|
||||
|
|
|
@ -32,6 +32,7 @@ module Google
|
|||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :language_code, as: 'languageCode'
|
||||
property :package_name, as: 'packageName'
|
||||
property :title, as: 'title'
|
||||
end
|
||||
end
|
||||
|
|
|
@ -22,7 +22,7 @@ module Google
|
|||
module PlaycustomappV1
|
||||
# Google Play Custom App Publishing API
|
||||
#
|
||||
# An API to publish custom Android apps.
|
||||
# API to create and publish custom Android apps
|
||||
#
|
||||
# @example
|
||||
# require 'google/apis/playcustomapp_v1'
|
||||
|
@ -30,7 +30,7 @@ module Google
|
|||
# Playcustomapp = Google::Apis::PlaycustomappV1 # Alias the module
|
||||
# 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
|
||||
# @return [String]
|
||||
# API key. Your API key identifies your project and provides you with API access,
|
||||
|
@ -38,30 +38,24 @@ module Google
|
|||
attr_accessor :key
|
||||
|
||||
# @return [String]
|
||||
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
||||
# characters.
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
attr_accessor :quota_user
|
||||
|
||||
# @return [String]
|
||||
# Deprecated. Please use quotaUser instead.
|
||||
attr_accessor :user_ip
|
||||
|
||||
def initialize
|
||||
super('https://www.googleapis.com/', 'playcustomapp/v1/accounts/')
|
||||
super('https://www.googleapis.com/', '')
|
||||
@batch_path = 'batch/playcustomapp/v1'
|
||||
end
|
||||
|
||||
# Create and publish a new custom app.
|
||||
# Creates a new custom app.
|
||||
# @param [Fixnum] account
|
||||
# Developer account ID.
|
||||
# @param [Google::Apis::PlaycustomappV1::CustomApp] custom_app_object
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
||||
# characters.
|
||||
# @param [String] user_ip
|
||||
# Deprecated. Please use quotaUser instead.
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# @param [IO, String] upload_source
|
||||
# IO stream or filename containing content to upload
|
||||
# @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::ClientError] The request is invalid and should not be retried without modification
|
||||
# @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?
|
||||
command = make_simple_command(:post, '{account}/customApps', options)
|
||||
command = make_simple_command(:post, 'playcustomapp/v1/accounts/{account}/customApps', options)
|
||||
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_content_type = content_type
|
||||
end
|
||||
|
@ -93,7 +87,6 @@ module Google
|
|||
command.params['account'] = account unless account.nil?
|
||||
command.query['fields'] = fields unless fields.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)
|
||||
end
|
||||
|
||||
|
@ -102,7 +95,6 @@ module Google
|
|||
def apply_command_defaults(command)
|
||||
command.query['key'] = key unless key.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
command.query['userIp'] = user_ip unless user_ip.nil?
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue