From 436ffa04f2fa99a456e364d12872b62c0d97427f Mon Sep 17 00:00:00 2001 From: Google APIs Date: Sun, 14 Jun 2020 00:38:06 +0000 Subject: [PATCH] Autogenerated update (2020-06-14) Update: - playcustomapp_v1 --- generated/google/apis/playcustomapp_v1.rb | 6 ++-- .../google/apis/playcustomapp_v1/classes.rb | 7 +++++ .../apis/playcustomapp_v1/representations.rb | 1 + .../google/apis/playcustomapp_v1/service.rb | 30 +++++++------------ 4 files changed, 22 insertions(+), 22 deletions(-) diff --git a/generated/google/apis/playcustomapp_v1.rb b/generated/google/apis/playcustomapp_v1.rb index 3d46f6c93..8aa7d3974 100644 --- a/generated/google/apis/playcustomapp_v1.rb +++ b/generated/google/apis/playcustomapp_v1.rb @@ -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' diff --git a/generated/google/apis/playcustomapp_v1/classes.rb b/generated/google/apis/playcustomapp_v1/classes.rb index 019b784bc..a7a06fb5b 100644 --- a/generated/google/apis/playcustomapp_v1/classes.rb +++ b/generated/google/apis/playcustomapp_v1/classes.rb @@ -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 diff --git a/generated/google/apis/playcustomapp_v1/representations.rb b/generated/google/apis/playcustomapp_v1/representations.rb index b11364b1c..c68d373f2 100644 --- a/generated/google/apis/playcustomapp_v1/representations.rb +++ b/generated/google/apis/playcustomapp_v1/representations.rb @@ -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 diff --git a/generated/google/apis/playcustomapp_v1/service.rb b/generated/google/apis/playcustomapp_v1/service.rb index 7b283a7d2..e191b8fa1 100644 --- a/generated/google/apis/playcustomapp_v1/service.rb +++ b/generated/google/apis/playcustomapp_v1/service.rb @@ -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