2017-08-26 01:31:01 +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 '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 AndroidpublisherV1
|
|
|
|
# Google Play Developer API
|
|
|
|
#
|
2018-10-11 00:36:32 +00:00
|
|
|
# Accesses Android application developers' Google Play accounts.
|
2017-08-26 01:31:01 +00:00
|
|
|
#
|
|
|
|
# @example
|
|
|
|
# require 'google/apis/androidpublisher_v1'
|
|
|
|
#
|
|
|
|
# Androidpublisher = Google::Apis::AndroidpublisherV1 # Alias the module
|
|
|
|
# service = Androidpublisher::AndroidPublisherService.new
|
|
|
|
#
|
|
|
|
# @see https://developers.google.com/android-publisher
|
|
|
|
class AndroidPublisherService < Google::Apis::Core::BaseService
|
|
|
|
# @return [String]
|
|
|
|
# API key. Your API key identifies your project and provides you with API access,
|
|
|
|
# quota, and reports. Required unless you provide an OAuth 2.0 token.
|
|
|
|
attr_accessor :key
|
|
|
|
|
|
|
|
# @return [String]
|
2018-05-02 00:35:55 +00:00
|
|
|
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
|
|
|
# characters.
|
2017-08-26 01:31:01 +00:00
|
|
|
attr_accessor :quota_user
|
|
|
|
|
|
|
|
# @return [String]
|
2018-05-02 00:35:55 +00:00
|
|
|
# Deprecated. Please use quotaUser instead.
|
2017-08-26 01:31:01 +00:00
|
|
|
attr_accessor :user_ip
|
|
|
|
|
|
|
|
def initialize
|
2020-05-07 20:07:42 +00:00
|
|
|
super('https://www.googleapis.com/', '')
|
2017-09-15 00:36:32 +00:00
|
|
|
@batch_path = 'batch/androidpublisher/v1'
|
2017-08-26 01:31:01 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
protected
|
|
|
|
|
|
|
|
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
|
|
|
|
end
|
|
|
|
end
|