google-apis-games_configuration_v1configuration 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.yardopts +13 -0
- data/CHANGELOG.md +7 -0
- data/LICENSE.md +202 -0
- data/OVERVIEW.md +96 -0
- data/lib/google-apis-games_configuration_v1configuration.rb +15 -0
- data/lib/google/apis/games_configuration_v1configuration.rb +37 -0
- data/lib/google/apis/games_configuration_v1configuration/classes.rb +490 -0
- data/lib/google/apis/games_configuration_v1configuration/gem_version.rb +28 -0
- data/lib/google/apis/games_configuration_v1configuration/representations.rb +228 -0
- data/lib/google/apis/games_configuration_v1configuration/service.rb +429 -0
- metadata +77 -0
@@ -0,0 +1,28 @@
|
|
1
|
+
# Copyright 2020 Google LLC
|
2
|
+
#
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
+
# you may not use this file except in compliance with the License.
|
5
|
+
# You may obtain a copy of the License at
|
6
|
+
#
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
8
|
+
#
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
+
# See the License for the specific language governing permissions and
|
13
|
+
# limitations under the License.
|
14
|
+
|
15
|
+
module Google
|
16
|
+
module Apis
|
17
|
+
module GamesConfigurationV1configuration
|
18
|
+
# Version of the google-apis-games_configuration_v1configuration gem
|
19
|
+
GEM_VERSION = "0.1.0"
|
20
|
+
|
21
|
+
# Version of the code generator used to generate this client
|
22
|
+
GENERATOR_VERSION = "0.1.1"
|
23
|
+
|
24
|
+
# Revision of the discovery document this client was generated from
|
25
|
+
REVISION = "20200811"
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
@@ -0,0 +1,228 @@
|
|
1
|
+
# Copyright 2020 Google LLC
|
2
|
+
#
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
+
# you may not use this file except in compliance with the License.
|
5
|
+
# You may obtain a copy of the License at
|
6
|
+
#
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
8
|
+
#
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
+
# See the License for the specific language governing permissions and
|
13
|
+
# limitations under the License.
|
14
|
+
|
15
|
+
require 'date'
|
16
|
+
require 'google/apis/core/base_service'
|
17
|
+
require 'google/apis/core/json_representation'
|
18
|
+
require 'google/apis/core/hashable'
|
19
|
+
require 'google/apis/errors'
|
20
|
+
|
21
|
+
module Google
|
22
|
+
module Apis
|
23
|
+
module GamesConfigurationV1configuration
|
24
|
+
|
25
|
+
class AchievementConfiguration
|
26
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
27
|
+
|
28
|
+
include Google::Apis::Core::JsonObjectSupport
|
29
|
+
end
|
30
|
+
|
31
|
+
class AchievementConfigurationDetail
|
32
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
33
|
+
|
34
|
+
include Google::Apis::Core::JsonObjectSupport
|
35
|
+
end
|
36
|
+
|
37
|
+
class ListAchievementConfigurationResponse
|
38
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
39
|
+
|
40
|
+
include Google::Apis::Core::JsonObjectSupport
|
41
|
+
end
|
42
|
+
|
43
|
+
class GamesNumberAffixConfiguration
|
44
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
45
|
+
|
46
|
+
include Google::Apis::Core::JsonObjectSupport
|
47
|
+
end
|
48
|
+
|
49
|
+
class GamesNumberFormatConfiguration
|
50
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
51
|
+
|
52
|
+
include Google::Apis::Core::JsonObjectSupport
|
53
|
+
end
|
54
|
+
|
55
|
+
class ImageConfiguration
|
56
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
57
|
+
|
58
|
+
include Google::Apis::Core::JsonObjectSupport
|
59
|
+
end
|
60
|
+
|
61
|
+
class LeaderboardConfiguration
|
62
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
63
|
+
|
64
|
+
include Google::Apis::Core::JsonObjectSupport
|
65
|
+
end
|
66
|
+
|
67
|
+
class LeaderboardConfigurationDetail
|
68
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
69
|
+
|
70
|
+
include Google::Apis::Core::JsonObjectSupport
|
71
|
+
end
|
72
|
+
|
73
|
+
class ListLeaderboardConfigurationResponse
|
74
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
75
|
+
|
76
|
+
include Google::Apis::Core::JsonObjectSupport
|
77
|
+
end
|
78
|
+
|
79
|
+
class LocalizedString
|
80
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
81
|
+
|
82
|
+
include Google::Apis::Core::JsonObjectSupport
|
83
|
+
end
|
84
|
+
|
85
|
+
class LocalizedStringBundle
|
86
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
87
|
+
|
88
|
+
include Google::Apis::Core::JsonObjectSupport
|
89
|
+
end
|
90
|
+
|
91
|
+
class AchievementConfiguration
|
92
|
+
# @private
|
93
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
94
|
+
property :achievement_type, as: 'achievementType'
|
95
|
+
property :draft, as: 'draft', class: Google::Apis::GamesConfigurationV1configuration::AchievementConfigurationDetail, decorator: Google::Apis::GamesConfigurationV1configuration::AchievementConfigurationDetail::Representation
|
96
|
+
|
97
|
+
property :id, as: 'id'
|
98
|
+
property :initial_state, as: 'initialState'
|
99
|
+
property :kind, as: 'kind'
|
100
|
+
property :published, as: 'published', class: Google::Apis::GamesConfigurationV1configuration::AchievementConfigurationDetail, decorator: Google::Apis::GamesConfigurationV1configuration::AchievementConfigurationDetail::Representation
|
101
|
+
|
102
|
+
property :steps_to_unlock, as: 'stepsToUnlock'
|
103
|
+
property :token, as: 'token'
|
104
|
+
end
|
105
|
+
end
|
106
|
+
|
107
|
+
class AchievementConfigurationDetail
|
108
|
+
# @private
|
109
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
110
|
+
property :description, as: 'description', class: Google::Apis::GamesConfigurationV1configuration::LocalizedStringBundle, decorator: Google::Apis::GamesConfigurationV1configuration::LocalizedStringBundle::Representation
|
111
|
+
|
112
|
+
property :icon_url, as: 'iconUrl'
|
113
|
+
property :kind, as: 'kind'
|
114
|
+
property :name, as: 'name', class: Google::Apis::GamesConfigurationV1configuration::LocalizedStringBundle, decorator: Google::Apis::GamesConfigurationV1configuration::LocalizedStringBundle::Representation
|
115
|
+
|
116
|
+
property :point_value, as: 'pointValue'
|
117
|
+
property :sort_rank, as: 'sortRank'
|
118
|
+
end
|
119
|
+
end
|
120
|
+
|
121
|
+
class ListAchievementConfigurationResponse
|
122
|
+
# @private
|
123
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
124
|
+
collection :items, as: 'items', class: Google::Apis::GamesConfigurationV1configuration::AchievementConfiguration, decorator: Google::Apis::GamesConfigurationV1configuration::AchievementConfiguration::Representation
|
125
|
+
|
126
|
+
property :kind, as: 'kind'
|
127
|
+
property :next_page_token, as: 'nextPageToken'
|
128
|
+
end
|
129
|
+
end
|
130
|
+
|
131
|
+
class GamesNumberAffixConfiguration
|
132
|
+
# @private
|
133
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
134
|
+
property :few, as: 'few', class: Google::Apis::GamesConfigurationV1configuration::LocalizedStringBundle, decorator: Google::Apis::GamesConfigurationV1configuration::LocalizedStringBundle::Representation
|
135
|
+
|
136
|
+
property :many, as: 'many', class: Google::Apis::GamesConfigurationV1configuration::LocalizedStringBundle, decorator: Google::Apis::GamesConfigurationV1configuration::LocalizedStringBundle::Representation
|
137
|
+
|
138
|
+
property :one, as: 'one', class: Google::Apis::GamesConfigurationV1configuration::LocalizedStringBundle, decorator: Google::Apis::GamesConfigurationV1configuration::LocalizedStringBundle::Representation
|
139
|
+
|
140
|
+
property :other, as: 'other', class: Google::Apis::GamesConfigurationV1configuration::LocalizedStringBundle, decorator: Google::Apis::GamesConfigurationV1configuration::LocalizedStringBundle::Representation
|
141
|
+
|
142
|
+
property :two, as: 'two', class: Google::Apis::GamesConfigurationV1configuration::LocalizedStringBundle, decorator: Google::Apis::GamesConfigurationV1configuration::LocalizedStringBundle::Representation
|
143
|
+
|
144
|
+
property :zero, as: 'zero', class: Google::Apis::GamesConfigurationV1configuration::LocalizedStringBundle, decorator: Google::Apis::GamesConfigurationV1configuration::LocalizedStringBundle::Representation
|
145
|
+
|
146
|
+
end
|
147
|
+
end
|
148
|
+
|
149
|
+
class GamesNumberFormatConfiguration
|
150
|
+
# @private
|
151
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
152
|
+
property :currency_code, as: 'currencyCode'
|
153
|
+
property :num_decimal_places, as: 'numDecimalPlaces'
|
154
|
+
property :number_format_type, as: 'numberFormatType'
|
155
|
+
property :suffix, as: 'suffix', class: Google::Apis::GamesConfigurationV1configuration::GamesNumberAffixConfiguration, decorator: Google::Apis::GamesConfigurationV1configuration::GamesNumberAffixConfiguration::Representation
|
156
|
+
|
157
|
+
end
|
158
|
+
end
|
159
|
+
|
160
|
+
class ImageConfiguration
|
161
|
+
# @private
|
162
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
163
|
+
property :image_type, as: 'imageType'
|
164
|
+
property :kind, as: 'kind'
|
165
|
+
property :resource_id, as: 'resourceId'
|
166
|
+
property :url, as: 'url'
|
167
|
+
end
|
168
|
+
end
|
169
|
+
|
170
|
+
class LeaderboardConfiguration
|
171
|
+
# @private
|
172
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
173
|
+
property :draft, as: 'draft', class: Google::Apis::GamesConfigurationV1configuration::LeaderboardConfigurationDetail, decorator: Google::Apis::GamesConfigurationV1configuration::LeaderboardConfigurationDetail::Representation
|
174
|
+
|
175
|
+
property :id, as: 'id'
|
176
|
+
property :kind, as: 'kind'
|
177
|
+
property :published, as: 'published', class: Google::Apis::GamesConfigurationV1configuration::LeaderboardConfigurationDetail, decorator: Google::Apis::GamesConfigurationV1configuration::LeaderboardConfigurationDetail::Representation
|
178
|
+
|
179
|
+
property :score_max, :numeric_string => true, as: 'scoreMax'
|
180
|
+
property :score_min, :numeric_string => true, as: 'scoreMin'
|
181
|
+
property :score_order, as: 'scoreOrder'
|
182
|
+
property :token, as: 'token'
|
183
|
+
end
|
184
|
+
end
|
185
|
+
|
186
|
+
class LeaderboardConfigurationDetail
|
187
|
+
# @private
|
188
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
189
|
+
property :icon_url, as: 'iconUrl'
|
190
|
+
property :kind, as: 'kind'
|
191
|
+
property :name, as: 'name', class: Google::Apis::GamesConfigurationV1configuration::LocalizedStringBundle, decorator: Google::Apis::GamesConfigurationV1configuration::LocalizedStringBundle::Representation
|
192
|
+
|
193
|
+
property :score_format, as: 'scoreFormat', class: Google::Apis::GamesConfigurationV1configuration::GamesNumberFormatConfiguration, decorator: Google::Apis::GamesConfigurationV1configuration::GamesNumberFormatConfiguration::Representation
|
194
|
+
|
195
|
+
property :sort_rank, as: 'sortRank'
|
196
|
+
end
|
197
|
+
end
|
198
|
+
|
199
|
+
class ListLeaderboardConfigurationResponse
|
200
|
+
# @private
|
201
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
202
|
+
collection :items, as: 'items', class: Google::Apis::GamesConfigurationV1configuration::LeaderboardConfiguration, decorator: Google::Apis::GamesConfigurationV1configuration::LeaderboardConfiguration::Representation
|
203
|
+
|
204
|
+
property :kind, as: 'kind'
|
205
|
+
property :next_page_token, as: 'nextPageToken'
|
206
|
+
end
|
207
|
+
end
|
208
|
+
|
209
|
+
class LocalizedString
|
210
|
+
# @private
|
211
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
212
|
+
property :kind, as: 'kind'
|
213
|
+
property :locale, as: 'locale'
|
214
|
+
property :value, as: 'value'
|
215
|
+
end
|
216
|
+
end
|
217
|
+
|
218
|
+
class LocalizedStringBundle
|
219
|
+
# @private
|
220
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
221
|
+
property :kind, as: 'kind'
|
222
|
+
collection :translations, as: 'translations', class: Google::Apis::GamesConfigurationV1configuration::LocalizedString, decorator: Google::Apis::GamesConfigurationV1configuration::LocalizedString::Representation
|
223
|
+
|
224
|
+
end
|
225
|
+
end
|
226
|
+
end
|
227
|
+
end
|
228
|
+
end
|
@@ -0,0 +1,429 @@
|
|
1
|
+
# Copyright 2020 Google LLC
|
2
|
+
#
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
+
# you may not use this file except in compliance with the License.
|
5
|
+
# You may obtain a copy of the License at
|
6
|
+
#
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
8
|
+
#
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
+
# See the License for the specific language governing permissions and
|
13
|
+
# limitations under the License.
|
14
|
+
|
15
|
+
require 'google/apis/core/base_service'
|
16
|
+
require 'google/apis/core/json_representation'
|
17
|
+
require 'google/apis/core/hashable'
|
18
|
+
require 'google/apis/errors'
|
19
|
+
|
20
|
+
module Google
|
21
|
+
module Apis
|
22
|
+
module GamesConfigurationV1configuration
|
23
|
+
# Google Play Game Services Publishing API
|
24
|
+
#
|
25
|
+
# The Google Play Game Services Publishing API allows developers to configure
|
26
|
+
# their games in Game Services.
|
27
|
+
#
|
28
|
+
# @example
|
29
|
+
# require 'google/apis/games_configuration_v1configuration'
|
30
|
+
#
|
31
|
+
# GamesConfiguration = Google::Apis::GamesConfigurationV1configuration # Alias the module
|
32
|
+
# service = GamesConfiguration::GamesConfigurationService.new
|
33
|
+
#
|
34
|
+
# @see https://developers.google.com/games/
|
35
|
+
class GamesConfigurationService < Google::Apis::Core::BaseService
|
36
|
+
# @return [String]
|
37
|
+
# API key. Your API key identifies your project and provides you with API access,
|
38
|
+
# quota, and reports. Required unless you provide an OAuth 2.0 token.
|
39
|
+
attr_accessor :key
|
40
|
+
|
41
|
+
# @return [String]
|
42
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
43
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
44
|
+
attr_accessor :quota_user
|
45
|
+
|
46
|
+
def initialize
|
47
|
+
super('https://gamesconfiguration.googleapis.com/', '',
|
48
|
+
client_name: 'google-apis-games_configuration_v1configuration',
|
49
|
+
client_version: Google::Apis::GamesConfigurationV1configuration::GEM_VERSION)
|
50
|
+
@batch_path = 'batch'
|
51
|
+
end
|
52
|
+
|
53
|
+
# Delete the achievement configuration with the given ID.
|
54
|
+
# @param [String] achievement_id
|
55
|
+
# The ID of the achievement used by this method.
|
56
|
+
# @param [String] fields
|
57
|
+
# Selector specifying which fields to include in a partial response.
|
58
|
+
# @param [String] quota_user
|
59
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
60
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
61
|
+
# @param [Google::Apis::RequestOptions] options
|
62
|
+
# Request-specific options
|
63
|
+
#
|
64
|
+
# @yield [result, err] Result & error if block supplied
|
65
|
+
# @yieldparam result [NilClass] No result returned for this method
|
66
|
+
# @yieldparam err [StandardError] error object if request failed
|
67
|
+
#
|
68
|
+
# @return [void]
|
69
|
+
#
|
70
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
71
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
72
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
73
|
+
def delete_achievement_configuration(achievement_id, fields: nil, quota_user: nil, options: nil, &block)
|
74
|
+
command = make_simple_command(:delete, 'games/v1configuration/achievements/{achievementId}', options)
|
75
|
+
command.params['achievementId'] = achievement_id unless achievement_id.nil?
|
76
|
+
command.query['fields'] = fields unless fields.nil?
|
77
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
78
|
+
execute_or_queue_command(command, &block)
|
79
|
+
end
|
80
|
+
|
81
|
+
# Retrieves the metadata of the achievement configuration with the given ID.
|
82
|
+
# @param [String] achievement_id
|
83
|
+
# The ID of the achievement used by this method.
|
84
|
+
# @param [String] fields
|
85
|
+
# Selector specifying which fields to include in a partial response.
|
86
|
+
# @param [String] quota_user
|
87
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
88
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
89
|
+
# @param [Google::Apis::RequestOptions] options
|
90
|
+
# Request-specific options
|
91
|
+
#
|
92
|
+
# @yield [result, err] Result & error if block supplied
|
93
|
+
# @yieldparam result [Google::Apis::GamesConfigurationV1configuration::AchievementConfiguration] parsed result object
|
94
|
+
# @yieldparam err [StandardError] error object if request failed
|
95
|
+
#
|
96
|
+
# @return [Google::Apis::GamesConfigurationV1configuration::AchievementConfiguration]
|
97
|
+
#
|
98
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
99
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
100
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
101
|
+
def get_achievement_configuration(achievement_id, fields: nil, quota_user: nil, options: nil, &block)
|
102
|
+
command = make_simple_command(:get, 'games/v1configuration/achievements/{achievementId}', options)
|
103
|
+
command.response_representation = Google::Apis::GamesConfigurationV1configuration::AchievementConfiguration::Representation
|
104
|
+
command.response_class = Google::Apis::GamesConfigurationV1configuration::AchievementConfiguration
|
105
|
+
command.params['achievementId'] = achievement_id unless achievement_id.nil?
|
106
|
+
command.query['fields'] = fields unless fields.nil?
|
107
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
108
|
+
execute_or_queue_command(command, &block)
|
109
|
+
end
|
110
|
+
|
111
|
+
# Insert a new achievement configuration in this application.
|
112
|
+
# @param [String] application_id
|
113
|
+
# The application ID from the Google Play developer console.
|
114
|
+
# @param [Google::Apis::GamesConfigurationV1configuration::AchievementConfiguration] achievement_configuration_object
|
115
|
+
# @param [String] fields
|
116
|
+
# Selector specifying which fields to include in a partial response.
|
117
|
+
# @param [String] quota_user
|
118
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
119
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
120
|
+
# @param [Google::Apis::RequestOptions] options
|
121
|
+
# Request-specific options
|
122
|
+
#
|
123
|
+
# @yield [result, err] Result & error if block supplied
|
124
|
+
# @yieldparam result [Google::Apis::GamesConfigurationV1configuration::AchievementConfiguration] parsed result object
|
125
|
+
# @yieldparam err [StandardError] error object if request failed
|
126
|
+
#
|
127
|
+
# @return [Google::Apis::GamesConfigurationV1configuration::AchievementConfiguration]
|
128
|
+
#
|
129
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
130
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
131
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
132
|
+
def insert_achievement_configuration(application_id, achievement_configuration_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
133
|
+
command = make_simple_command(:post, 'games/v1configuration/applications/{applicationId}/achievements', options)
|
134
|
+
command.request_representation = Google::Apis::GamesConfigurationV1configuration::AchievementConfiguration::Representation
|
135
|
+
command.request_object = achievement_configuration_object
|
136
|
+
command.response_representation = Google::Apis::GamesConfigurationV1configuration::AchievementConfiguration::Representation
|
137
|
+
command.response_class = Google::Apis::GamesConfigurationV1configuration::AchievementConfiguration
|
138
|
+
command.params['applicationId'] = application_id unless application_id.nil?
|
139
|
+
command.query['fields'] = fields unless fields.nil?
|
140
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
141
|
+
execute_or_queue_command(command, &block)
|
142
|
+
end
|
143
|
+
|
144
|
+
# Returns a list of the achievement configurations in this application.
|
145
|
+
# @param [String] application_id
|
146
|
+
# The application ID from the Google Play developer console.
|
147
|
+
# @param [Fixnum] max_results
|
148
|
+
# The maximum number of resource configurations to return in the response, used
|
149
|
+
# for paging. For any response, the actual number of resources returned may be
|
150
|
+
# less than the specified `maxResults`.
|
151
|
+
# @param [String] page_token
|
152
|
+
# The token returned by the previous request.
|
153
|
+
# @param [String] fields
|
154
|
+
# Selector specifying which fields to include in a partial response.
|
155
|
+
# @param [String] quota_user
|
156
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
157
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
158
|
+
# @param [Google::Apis::RequestOptions] options
|
159
|
+
# Request-specific options
|
160
|
+
#
|
161
|
+
# @yield [result, err] Result & error if block supplied
|
162
|
+
# @yieldparam result [Google::Apis::GamesConfigurationV1configuration::ListAchievementConfigurationResponse] parsed result object
|
163
|
+
# @yieldparam err [StandardError] error object if request failed
|
164
|
+
#
|
165
|
+
# @return [Google::Apis::GamesConfigurationV1configuration::ListAchievementConfigurationResponse]
|
166
|
+
#
|
167
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
168
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
169
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
170
|
+
def list_achievement_configurations(application_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
171
|
+
command = make_simple_command(:get, 'games/v1configuration/applications/{applicationId}/achievements', options)
|
172
|
+
command.response_representation = Google::Apis::GamesConfigurationV1configuration::ListAchievementConfigurationResponse::Representation
|
173
|
+
command.response_class = Google::Apis::GamesConfigurationV1configuration::ListAchievementConfigurationResponse
|
174
|
+
command.params['applicationId'] = application_id unless application_id.nil?
|
175
|
+
command.query['maxResults'] = max_results unless max_results.nil?
|
176
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
177
|
+
command.query['fields'] = fields unless fields.nil?
|
178
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
179
|
+
execute_or_queue_command(command, &block)
|
180
|
+
end
|
181
|
+
|
182
|
+
# Update the metadata of the achievement configuration with the given ID.
|
183
|
+
# @param [String] achievement_id
|
184
|
+
# The ID of the achievement used by this method.
|
185
|
+
# @param [Google::Apis::GamesConfigurationV1configuration::AchievementConfiguration] achievement_configuration_object
|
186
|
+
# @param [String] fields
|
187
|
+
# Selector specifying which fields to include in a partial response.
|
188
|
+
# @param [String] quota_user
|
189
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
190
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
191
|
+
# @param [Google::Apis::RequestOptions] options
|
192
|
+
# Request-specific options
|
193
|
+
#
|
194
|
+
# @yield [result, err] Result & error if block supplied
|
195
|
+
# @yieldparam result [Google::Apis::GamesConfigurationV1configuration::AchievementConfiguration] parsed result object
|
196
|
+
# @yieldparam err [StandardError] error object if request failed
|
197
|
+
#
|
198
|
+
# @return [Google::Apis::GamesConfigurationV1configuration::AchievementConfiguration]
|
199
|
+
#
|
200
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
201
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
202
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
203
|
+
def update_achievement_configuration(achievement_id, achievement_configuration_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
204
|
+
command = make_simple_command(:put, 'games/v1configuration/achievements/{achievementId}', options)
|
205
|
+
command.request_representation = Google::Apis::GamesConfigurationV1configuration::AchievementConfiguration::Representation
|
206
|
+
command.request_object = achievement_configuration_object
|
207
|
+
command.response_representation = Google::Apis::GamesConfigurationV1configuration::AchievementConfiguration::Representation
|
208
|
+
command.response_class = Google::Apis::GamesConfigurationV1configuration::AchievementConfiguration
|
209
|
+
command.params['achievementId'] = achievement_id unless achievement_id.nil?
|
210
|
+
command.query['fields'] = fields unless fields.nil?
|
211
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
212
|
+
execute_or_queue_command(command, &block)
|
213
|
+
end
|
214
|
+
|
215
|
+
# Uploads an image for a resource with the given ID and image type.
|
216
|
+
# @param [String] resource_id
|
217
|
+
# The ID of the resource used by this method.
|
218
|
+
# @param [String] image_type
|
219
|
+
# Selects which image in a resource for this method.
|
220
|
+
# @param [String] fields
|
221
|
+
# Selector specifying which fields to include in a partial response.
|
222
|
+
# @param [String] quota_user
|
223
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
224
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
225
|
+
# @param [IO, String] upload_source
|
226
|
+
# IO stream or filename containing content to upload
|
227
|
+
# @param [String] content_type
|
228
|
+
# Content type of the uploaded content.
|
229
|
+
# @param [Google::Apis::RequestOptions] options
|
230
|
+
# Request-specific options
|
231
|
+
#
|
232
|
+
# @yield [result, err] Result & error if block supplied
|
233
|
+
# @yieldparam result [Google::Apis::GamesConfigurationV1configuration::ImageConfiguration] parsed result object
|
234
|
+
# @yieldparam err [StandardError] error object if request failed
|
235
|
+
#
|
236
|
+
# @return [Google::Apis::GamesConfigurationV1configuration::ImageConfiguration]
|
237
|
+
#
|
238
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
239
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
240
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
241
|
+
def upload_image_configuration(resource_id, image_type, fields: nil, quota_user: nil, upload_source: nil, content_type: nil, options: nil, &block)
|
242
|
+
if upload_source.nil?
|
243
|
+
command = make_simple_command(:post, 'games/v1configuration/images/{resourceId}/imageType/{imageType}', options)
|
244
|
+
else
|
245
|
+
command = make_upload_command(:post, 'games/v1configuration/images/{resourceId}/imageType/{imageType}', options)
|
246
|
+
command.upload_source = upload_source
|
247
|
+
command.upload_content_type = content_type
|
248
|
+
end
|
249
|
+
command.response_representation = Google::Apis::GamesConfigurationV1configuration::ImageConfiguration::Representation
|
250
|
+
command.response_class = Google::Apis::GamesConfigurationV1configuration::ImageConfiguration
|
251
|
+
command.params['resourceId'] = resource_id unless resource_id.nil?
|
252
|
+
command.params['imageType'] = image_type unless image_type.nil?
|
253
|
+
command.query['fields'] = fields unless fields.nil?
|
254
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
255
|
+
execute_or_queue_command(command, &block)
|
256
|
+
end
|
257
|
+
|
258
|
+
# Delete the leaderboard configuration with the given ID.
|
259
|
+
# @param [String] leaderboard_id
|
260
|
+
# The ID of the leaderboard.
|
261
|
+
# @param [String] fields
|
262
|
+
# Selector specifying which fields to include in a partial response.
|
263
|
+
# @param [String] quota_user
|
264
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
265
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
266
|
+
# @param [Google::Apis::RequestOptions] options
|
267
|
+
# Request-specific options
|
268
|
+
#
|
269
|
+
# @yield [result, err] Result & error if block supplied
|
270
|
+
# @yieldparam result [NilClass] No result returned for this method
|
271
|
+
# @yieldparam err [StandardError] error object if request failed
|
272
|
+
#
|
273
|
+
# @return [void]
|
274
|
+
#
|
275
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
276
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
277
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
278
|
+
def delete_leaderboard_configuration(leaderboard_id, fields: nil, quota_user: nil, options: nil, &block)
|
279
|
+
command = make_simple_command(:delete, 'games/v1configuration/leaderboards/{leaderboardId}', options)
|
280
|
+
command.params['leaderboardId'] = leaderboard_id unless leaderboard_id.nil?
|
281
|
+
command.query['fields'] = fields unless fields.nil?
|
282
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
283
|
+
execute_or_queue_command(command, &block)
|
284
|
+
end
|
285
|
+
|
286
|
+
# Retrieves the metadata of the leaderboard configuration with the given ID.
|
287
|
+
# @param [String] leaderboard_id
|
288
|
+
# The ID of the leaderboard.
|
289
|
+
# @param [String] fields
|
290
|
+
# Selector specifying which fields to include in a partial response.
|
291
|
+
# @param [String] quota_user
|
292
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
293
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
294
|
+
# @param [Google::Apis::RequestOptions] options
|
295
|
+
# Request-specific options
|
296
|
+
#
|
297
|
+
# @yield [result, err] Result & error if block supplied
|
298
|
+
# @yieldparam result [Google::Apis::GamesConfigurationV1configuration::LeaderboardConfiguration] parsed result object
|
299
|
+
# @yieldparam err [StandardError] error object if request failed
|
300
|
+
#
|
301
|
+
# @return [Google::Apis::GamesConfigurationV1configuration::LeaderboardConfiguration]
|
302
|
+
#
|
303
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
304
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
305
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
306
|
+
def get_leaderboard_configuration(leaderboard_id, fields: nil, quota_user: nil, options: nil, &block)
|
307
|
+
command = make_simple_command(:get, 'games/v1configuration/leaderboards/{leaderboardId}', options)
|
308
|
+
command.response_representation = Google::Apis::GamesConfigurationV1configuration::LeaderboardConfiguration::Representation
|
309
|
+
command.response_class = Google::Apis::GamesConfigurationV1configuration::LeaderboardConfiguration
|
310
|
+
command.params['leaderboardId'] = leaderboard_id unless leaderboard_id.nil?
|
311
|
+
command.query['fields'] = fields unless fields.nil?
|
312
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
313
|
+
execute_or_queue_command(command, &block)
|
314
|
+
end
|
315
|
+
|
316
|
+
# Insert a new leaderboard configuration in this application.
|
317
|
+
# @param [String] application_id
|
318
|
+
# The application ID from the Google Play developer console.
|
319
|
+
# @param [Google::Apis::GamesConfigurationV1configuration::LeaderboardConfiguration] leaderboard_configuration_object
|
320
|
+
# @param [String] fields
|
321
|
+
# Selector specifying which fields to include in a partial response.
|
322
|
+
# @param [String] quota_user
|
323
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
324
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
325
|
+
# @param [Google::Apis::RequestOptions] options
|
326
|
+
# Request-specific options
|
327
|
+
#
|
328
|
+
# @yield [result, err] Result & error if block supplied
|
329
|
+
# @yieldparam result [Google::Apis::GamesConfigurationV1configuration::LeaderboardConfiguration] parsed result object
|
330
|
+
# @yieldparam err [StandardError] error object if request failed
|
331
|
+
#
|
332
|
+
# @return [Google::Apis::GamesConfigurationV1configuration::LeaderboardConfiguration]
|
333
|
+
#
|
334
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
335
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
336
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
337
|
+
def insert_leaderboard_configuration(application_id, leaderboard_configuration_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
338
|
+
command = make_simple_command(:post, 'games/v1configuration/applications/{applicationId}/leaderboards', options)
|
339
|
+
command.request_representation = Google::Apis::GamesConfigurationV1configuration::LeaderboardConfiguration::Representation
|
340
|
+
command.request_object = leaderboard_configuration_object
|
341
|
+
command.response_representation = Google::Apis::GamesConfigurationV1configuration::LeaderboardConfiguration::Representation
|
342
|
+
command.response_class = Google::Apis::GamesConfigurationV1configuration::LeaderboardConfiguration
|
343
|
+
command.params['applicationId'] = application_id unless application_id.nil?
|
344
|
+
command.query['fields'] = fields unless fields.nil?
|
345
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
346
|
+
execute_or_queue_command(command, &block)
|
347
|
+
end
|
348
|
+
|
349
|
+
# Returns a list of the leaderboard configurations in this application.
|
350
|
+
# @param [String] application_id
|
351
|
+
# The application ID from the Google Play developer console.
|
352
|
+
# @param [Fixnum] max_results
|
353
|
+
# The maximum number of resource configurations to return in the response, used
|
354
|
+
# for paging. For any response, the actual number of resources returned may be
|
355
|
+
# less than the specified `maxResults`.
|
356
|
+
# @param [String] page_token
|
357
|
+
# The token returned by the previous request.
|
358
|
+
# @param [String] fields
|
359
|
+
# Selector specifying which fields to include in a partial response.
|
360
|
+
# @param [String] quota_user
|
361
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
362
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
363
|
+
# @param [Google::Apis::RequestOptions] options
|
364
|
+
# Request-specific options
|
365
|
+
#
|
366
|
+
# @yield [result, err] Result & error if block supplied
|
367
|
+
# @yieldparam result [Google::Apis::GamesConfigurationV1configuration::ListLeaderboardConfigurationResponse] parsed result object
|
368
|
+
# @yieldparam err [StandardError] error object if request failed
|
369
|
+
#
|
370
|
+
# @return [Google::Apis::GamesConfigurationV1configuration::ListLeaderboardConfigurationResponse]
|
371
|
+
#
|
372
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
373
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
374
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
375
|
+
def list_leaderboard_configurations(application_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
376
|
+
command = make_simple_command(:get, 'games/v1configuration/applications/{applicationId}/leaderboards', options)
|
377
|
+
command.response_representation = Google::Apis::GamesConfigurationV1configuration::ListLeaderboardConfigurationResponse::Representation
|
378
|
+
command.response_class = Google::Apis::GamesConfigurationV1configuration::ListLeaderboardConfigurationResponse
|
379
|
+
command.params['applicationId'] = application_id unless application_id.nil?
|
380
|
+
command.query['maxResults'] = max_results unless max_results.nil?
|
381
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
382
|
+
command.query['fields'] = fields unless fields.nil?
|
383
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
384
|
+
execute_or_queue_command(command, &block)
|
385
|
+
end
|
386
|
+
|
387
|
+
# Update the metadata of the leaderboard configuration with the given ID.
|
388
|
+
# @param [String] leaderboard_id
|
389
|
+
# The ID of the leaderboard.
|
390
|
+
# @param [Google::Apis::GamesConfigurationV1configuration::LeaderboardConfiguration] leaderboard_configuration_object
|
391
|
+
# @param [String] fields
|
392
|
+
# Selector specifying which fields to include in a partial response.
|
393
|
+
# @param [String] quota_user
|
394
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
395
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
396
|
+
# @param [Google::Apis::RequestOptions] options
|
397
|
+
# Request-specific options
|
398
|
+
#
|
399
|
+
# @yield [result, err] Result & error if block supplied
|
400
|
+
# @yieldparam result [Google::Apis::GamesConfigurationV1configuration::LeaderboardConfiguration] parsed result object
|
401
|
+
# @yieldparam err [StandardError] error object if request failed
|
402
|
+
#
|
403
|
+
# @return [Google::Apis::GamesConfigurationV1configuration::LeaderboardConfiguration]
|
404
|
+
#
|
405
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
406
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
407
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
408
|
+
def update_leaderboard_configuration(leaderboard_id, leaderboard_configuration_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
409
|
+
command = make_simple_command(:put, 'games/v1configuration/leaderboards/{leaderboardId}', options)
|
410
|
+
command.request_representation = Google::Apis::GamesConfigurationV1configuration::LeaderboardConfiguration::Representation
|
411
|
+
command.request_object = leaderboard_configuration_object
|
412
|
+
command.response_representation = Google::Apis::GamesConfigurationV1configuration::LeaderboardConfiguration::Representation
|
413
|
+
command.response_class = Google::Apis::GamesConfigurationV1configuration::LeaderboardConfiguration
|
414
|
+
command.params['leaderboardId'] = leaderboard_id unless leaderboard_id.nil?
|
415
|
+
command.query['fields'] = fields unless fields.nil?
|
416
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
417
|
+
execute_or_queue_command(command, &block)
|
418
|
+
end
|
419
|
+
|
420
|
+
protected
|
421
|
+
|
422
|
+
def apply_command_defaults(command)
|
423
|
+
command.query['key'] = key unless key.nil?
|
424
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
425
|
+
end
|
426
|
+
end
|
427
|
+
end
|
428
|
+
end
|
429
|
+
end
|