Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(466)

Side by Side Diff: generated/googleapis/lib/androidpublisher/v2.dart

Issue 1078053002: Roll of googleapis as of 4/7/2015. (Closed) Base URL: https://github.com/dart-lang/googleapis.git@master
Patch Set: Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // This is a generated file (see the discoveryapis_generator project).
2
1 library googleapis.androidpublisher.v2; 3 library googleapis.androidpublisher.v2;
2 4
3 import "dart:core" as core; 5 import 'dart:core' as core;
4 import "dart:collection" as collection; 6 import 'dart:collection' as collection;
5 import "dart:async" as async; 7 import 'dart:async' as async;
6 import "dart:convert" as convert; 8 import 'dart:convert' as convert;
7 9
8 import "package:crypto/crypto.dart" as crypto; 10 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons;
11 import 'package:crypto/crypto.dart' as crypto;
9 import 'package:http/http.dart' as http; 12 import 'package:http/http.dart' as http;
10 import '../src/common_internal.dart' as common_internal;
11 import '../common/common.dart' as common;
12 13
13 export '../common/common.dart' show ApiRequestError; 14 export 'package:_discoveryapis_commons/_discoveryapis_commons.dart' show
14 export '../common/common.dart' show DetailedApiRequestError; 15 ApiRequestError, DetailedApiRequestError, Media, UploadOptions,
16 ResumableUploadOptions, DownloadOptions, PartialDownloadOptions,
17 ByteRange;
18
19 const core.String USER_AGENT = 'dart-api-client androidpublisher/v2';
15 20
16 /** Lets Android application developers access their Google Play accounts. */ 21 /** Lets Android application developers access their Google Play accounts. */
17 class AndroidpublisherApi { 22 class AndroidpublisherApi {
18 /** View and manage your Google Play Android Developer account */ 23 /** View and manage your Google Play Android Developer account */
19 static const AndroidpublisherScope = "https://www.googleapis.com/auth/androidp ublisher"; 24 static const AndroidpublisherScope = "https://www.googleapis.com/auth/androidp ublisher";
20 25
21 26
22 final common_internal.ApiRequester _requester; 27 final commons.ApiRequester _requester;
23 28
24 EditsResourceApi get edits => new EditsResourceApi(_requester); 29 EditsResourceApi get edits => new EditsResourceApi(_requester);
25 InappproductsResourceApi get inappproducts => new InappproductsResourceApi(_re quester); 30 InappproductsResourceApi get inappproducts => new InappproductsResourceApi(_re quester);
26 PurchasesResourceApi get purchases => new PurchasesResourceApi(_requester); 31 PurchasesResourceApi get purchases => new PurchasesResourceApi(_requester);
27 32
28 AndroidpublisherApi(http.Client client, {core.String rootUrl: "https://www.goo gleapis.com/", core.String servicePath: "androidpublisher/v2/applications/"}) : 33 AndroidpublisherApi(http.Client client, {core.String rootUrl: "https://www.goo gleapis.com/", core.String servicePath: "androidpublisher/v2/applications/"}) :
29 _requester = new common_internal.ApiRequester(client, rootUrl, servicePath ); 34 _requester = new commons.ApiRequester(client, rootUrl, servicePath, USER_A GENT);
30 } 35 }
31 36
32 37
33 /** Not documented yet. */
34 class EditsResourceApi { 38 class EditsResourceApi {
35 final common_internal.ApiRequester _requester; 39 final commons.ApiRequester _requester;
36 40
37 EditsApklistingsResourceApi get apklistings => new EditsApklistingsResourceApi (_requester); 41 EditsApklistingsResourceApi get apklistings => new EditsApklistingsResourceApi (_requester);
38 EditsApksResourceApi get apks => new EditsApksResourceApi(_requester); 42 EditsApksResourceApi get apks => new EditsApksResourceApi(_requester);
39 EditsDetailsResourceApi get details => new EditsDetailsResourceApi(_requester) ; 43 EditsDetailsResourceApi get details => new EditsDetailsResourceApi(_requester) ;
40 EditsExpansionfilesResourceApi get expansionfiles => new EditsExpansionfilesRe sourceApi(_requester); 44 EditsExpansionfilesResourceApi get expansionfiles => new EditsExpansionfilesRe sourceApi(_requester);
41 EditsImagesResourceApi get images => new EditsImagesResourceApi(_requester); 45 EditsImagesResourceApi get images => new EditsImagesResourceApi(_requester);
42 EditsListingsResourceApi get listings => new EditsListingsResourceApi(_request er); 46 EditsListingsResourceApi get listings => new EditsListingsResourceApi(_request er);
43 EditsTestersResourceApi get testers => new EditsTestersResourceApi(_requester) ; 47 EditsTestersResourceApi get testers => new EditsTestersResourceApi(_requester) ;
44 EditsTracksResourceApi get tracks => new EditsTracksResourceApi(_requester); 48 EditsTracksResourceApi get tracks => new EditsTracksResourceApi(_requester);
45 49
46 EditsResourceApi(common_internal.ApiRequester client) : 50 EditsResourceApi(commons.ApiRequester client) :
47 _requester = client; 51 _requester = client;
48 52
49 /** 53 /**
50 * Commits/applies the changes made in this edit back to the app. 54 * Commits/applies the changes made in this edit back to the app.
51 * 55 *
52 * Request parameters: 56 * Request parameters:
53 * 57 *
54 * [packageName] - Unique identifier for the Android app that is being 58 * [packageName] - Unique identifier for the Android app that is being
55 * updated; for example, "com.spiffygame". 59 * updated; for example, "com.spiffygame".
56 * 60 *
57 * [editId] - Unique identifier for this edit. 61 * [editId] - Unique identifier for this edit.
58 * 62 *
59 * Completes with a [AppEdit]. 63 * Completes with a [AppEdit].
60 * 64 *
61 * Completes with a [common.ApiRequestError] if the API endpoint returned an 65 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
62 * error. 66 * error.
63 * 67 *
64 * If the used [http.Client] completes with an error when making a REST call, 68 * If the used [http.Client] completes with an error when making a REST call,
65 * this method will complete with the same error. 69 * this method will complete with the same error.
66 */ 70 */
67 async.Future<AppEdit> commit(core.String packageName, core.String editId) { 71 async.Future<AppEdit> commit(core.String packageName, core.String editId) {
68 var _url = null; 72 var _url = null;
69 var _queryParams = new core.Map(); 73 var _queryParams = new core.Map();
70 var _uploadMedia = null; 74 var _uploadMedia = null;
71 var _uploadOptions = null; 75 var _uploadOptions = null;
72 var _downloadOptions = common.DownloadOptions.Metadata; 76 var _downloadOptions = commons.DownloadOptions.Metadata;
73 var _body = null; 77 var _body = null;
74 78
75 if (packageName == null) { 79 if (packageName == null) {
76 throw new core.ArgumentError("Parameter packageName is required."); 80 throw new core.ArgumentError("Parameter packageName is required.");
77 } 81 }
78 if (editId == null) { 82 if (editId == null) {
79 throw new core.ArgumentError("Parameter editId is required."); 83 throw new core.ArgumentError("Parameter editId is required.");
80 } 84 }
81 85
82 86
83 _url = common_internal.Escaper.ecapeVariable('$packageName') + '/edits/' + c ommon_internal.Escaper.ecapeVariable('$editId') + ':commit'; 87 _url = commons.Escaper.ecapeVariable('$packageName') + '/edits/' + commons.E scaper.ecapeVariable('$editId') + ':commit';
84 88
85 var _response = _requester.request(_url, 89 var _response = _requester.request(_url,
86 "POST", 90 "POST",
87 body: _body, 91 body: _body,
88 queryParams: _queryParams, 92 queryParams: _queryParams,
89 uploadOptions: _uploadOptions, 93 uploadOptions: _uploadOptions,
90 uploadMedia: _uploadMedia, 94 uploadMedia: _uploadMedia,
91 downloadOptions: _downloadOptions); 95 downloadOptions: _downloadOptions);
92 return _response.then((data) => new AppEdit.fromJson(data)); 96 return _response.then((data) => new AppEdit.fromJson(data));
93 } 97 }
94 98
95 /** 99 /**
96 * Deletes an edit for an app. Creating a new edit will automatically delete 100 * Deletes an edit for an app. Creating a new edit will automatically delete
97 * any of your previous edits so this method need only be called if you want 101 * any of your previous edits so this method need only be called if you want
98 * to preemptively abandon an edit. 102 * to preemptively abandon an edit.
99 * 103 *
100 * Request parameters: 104 * Request parameters:
101 * 105 *
102 * [packageName] - Unique identifier for the Android app that is being 106 * [packageName] - Unique identifier for the Android app that is being
103 * updated; for example, "com.spiffygame". 107 * updated; for example, "com.spiffygame".
104 * 108 *
105 * [editId] - Unique identifier for this edit. 109 * [editId] - Unique identifier for this edit.
106 * 110 *
107 * Completes with a [common.ApiRequestError] if the API endpoint returned an 111 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
108 * error. 112 * error.
109 * 113 *
110 * If the used [http.Client] completes with an error when making a REST call, 114 * If the used [http.Client] completes with an error when making a REST call,
111 * this method will complete with the same error. 115 * this method will complete with the same error.
112 */ 116 */
113 async.Future delete(core.String packageName, core.String editId) { 117 async.Future delete(core.String packageName, core.String editId) {
114 var _url = null; 118 var _url = null;
115 var _queryParams = new core.Map(); 119 var _queryParams = new core.Map();
116 var _uploadMedia = null; 120 var _uploadMedia = null;
117 var _uploadOptions = null; 121 var _uploadOptions = null;
118 var _downloadOptions = common.DownloadOptions.Metadata; 122 var _downloadOptions = commons.DownloadOptions.Metadata;
119 var _body = null; 123 var _body = null;
120 124
121 if (packageName == null) { 125 if (packageName == null) {
122 throw new core.ArgumentError("Parameter packageName is required."); 126 throw new core.ArgumentError("Parameter packageName is required.");
123 } 127 }
124 if (editId == null) { 128 if (editId == null) {
125 throw new core.ArgumentError("Parameter editId is required."); 129 throw new core.ArgumentError("Parameter editId is required.");
126 } 130 }
127 131
128 _downloadOptions = null; 132 _downloadOptions = null;
129 133
130 _url = common_internal.Escaper.ecapeVariable('$packageName') + '/edits/' + c ommon_internal.Escaper.ecapeVariable('$editId'); 134 _url = commons.Escaper.ecapeVariable('$packageName') + '/edits/' + commons.E scaper.ecapeVariable('$editId');
131 135
132 var _response = _requester.request(_url, 136 var _response = _requester.request(_url,
133 "DELETE", 137 "DELETE",
134 body: _body, 138 body: _body,
135 queryParams: _queryParams, 139 queryParams: _queryParams,
136 uploadOptions: _uploadOptions, 140 uploadOptions: _uploadOptions,
137 uploadMedia: _uploadMedia, 141 uploadMedia: _uploadMedia,
138 downloadOptions: _downloadOptions); 142 downloadOptions: _downloadOptions);
139 return _response.then((data) => null); 143 return _response.then((data) => null);
140 } 144 }
141 145
142 /** 146 /**
143 * Returns information about the edit specified. Calls will fail if the edit 147 * Returns information about the edit specified. Calls will fail if the edit
144 * is no long active (e.g. has been deleted, superseded or expired). 148 * is no long active (e.g. has been deleted, superseded or expired).
145 * 149 *
146 * Request parameters: 150 * Request parameters:
147 * 151 *
148 * [packageName] - Unique identifier for the Android app that is being 152 * [packageName] - Unique identifier for the Android app that is being
149 * updated; for example, "com.spiffygame". 153 * updated; for example, "com.spiffygame".
150 * 154 *
151 * [editId] - Unique identifier for this edit. 155 * [editId] - Unique identifier for this edit.
152 * 156 *
153 * Completes with a [AppEdit]. 157 * Completes with a [AppEdit].
154 * 158 *
155 * Completes with a [common.ApiRequestError] if the API endpoint returned an 159 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
156 * error. 160 * error.
157 * 161 *
158 * If the used [http.Client] completes with an error when making a REST call, 162 * If the used [http.Client] completes with an error when making a REST call,
159 * this method will complete with the same error. 163 * this method will complete with the same error.
160 */ 164 */
161 async.Future<AppEdit> get(core.String packageName, core.String editId) { 165 async.Future<AppEdit> get(core.String packageName, core.String editId) {
162 var _url = null; 166 var _url = null;
163 var _queryParams = new core.Map(); 167 var _queryParams = new core.Map();
164 var _uploadMedia = null; 168 var _uploadMedia = null;
165 var _uploadOptions = null; 169 var _uploadOptions = null;
166 var _downloadOptions = common.DownloadOptions.Metadata; 170 var _downloadOptions = commons.DownloadOptions.Metadata;
167 var _body = null; 171 var _body = null;
168 172
169 if (packageName == null) { 173 if (packageName == null) {
170 throw new core.ArgumentError("Parameter packageName is required."); 174 throw new core.ArgumentError("Parameter packageName is required.");
171 } 175 }
172 if (editId == null) { 176 if (editId == null) {
173 throw new core.ArgumentError("Parameter editId is required."); 177 throw new core.ArgumentError("Parameter editId is required.");
174 } 178 }
175 179
176 180
177 _url = common_internal.Escaper.ecapeVariable('$packageName') + '/edits/' + c ommon_internal.Escaper.ecapeVariable('$editId'); 181 _url = commons.Escaper.ecapeVariable('$packageName') + '/edits/' + commons.E scaper.ecapeVariable('$editId');
178 182
179 var _response = _requester.request(_url, 183 var _response = _requester.request(_url,
180 "GET", 184 "GET",
181 body: _body, 185 body: _body,
182 queryParams: _queryParams, 186 queryParams: _queryParams,
183 uploadOptions: _uploadOptions, 187 uploadOptions: _uploadOptions,
184 uploadMedia: _uploadMedia, 188 uploadMedia: _uploadMedia,
185 downloadOptions: _downloadOptions); 189 downloadOptions: _downloadOptions);
186 return _response.then((data) => new AppEdit.fromJson(data)); 190 return _response.then((data) => new AppEdit.fromJson(data));
187 } 191 }
188 192
189 /** 193 /**
190 * Creates a new edit for an app, populated with the app's current state. 194 * Creates a new edit for an app, populated with the app's current state.
191 * 195 *
192 * [request] - The metadata request object. 196 * [request] - The metadata request object.
193 * 197 *
194 * Request parameters: 198 * Request parameters:
195 * 199 *
196 * [packageName] - Unique identifier for the Android app that is being 200 * [packageName] - Unique identifier for the Android app that is being
197 * updated; for example, "com.spiffygame". 201 * updated; for example, "com.spiffygame".
198 * 202 *
199 * Completes with a [AppEdit]. 203 * Completes with a [AppEdit].
200 * 204 *
201 * Completes with a [common.ApiRequestError] if the API endpoint returned an 205 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
202 * error. 206 * error.
203 * 207 *
204 * If the used [http.Client] completes with an error when making a REST call, 208 * If the used [http.Client] completes with an error when making a REST call,
205 * this method will complete with the same error. 209 * this method will complete with the same error.
206 */ 210 */
207 async.Future<AppEdit> insert(AppEdit request, core.String packageName) { 211 async.Future<AppEdit> insert(AppEdit request, core.String packageName) {
208 var _url = null; 212 var _url = null;
209 var _queryParams = new core.Map(); 213 var _queryParams = new core.Map();
210 var _uploadMedia = null; 214 var _uploadMedia = null;
211 var _uploadOptions = null; 215 var _uploadOptions = null;
212 var _downloadOptions = common.DownloadOptions.Metadata; 216 var _downloadOptions = commons.DownloadOptions.Metadata;
213 var _body = null; 217 var _body = null;
214 218
215 if (request != null) { 219 if (request != null) {
216 _body = convert.JSON.encode((request).toJson()); 220 _body = convert.JSON.encode((request).toJson());
217 } 221 }
218 if (packageName == null) { 222 if (packageName == null) {
219 throw new core.ArgumentError("Parameter packageName is required."); 223 throw new core.ArgumentError("Parameter packageName is required.");
220 } 224 }
221 225
222 226
223 _url = common_internal.Escaper.ecapeVariable('$packageName') + '/edits'; 227 _url = commons.Escaper.ecapeVariable('$packageName') + '/edits';
224 228
225 var _response = _requester.request(_url, 229 var _response = _requester.request(_url,
226 "POST", 230 "POST",
227 body: _body, 231 body: _body,
228 queryParams: _queryParams, 232 queryParams: _queryParams,
229 uploadOptions: _uploadOptions, 233 uploadOptions: _uploadOptions,
230 uploadMedia: _uploadMedia, 234 uploadMedia: _uploadMedia,
231 downloadOptions: _downloadOptions); 235 downloadOptions: _downloadOptions);
232 return _response.then((data) => new AppEdit.fromJson(data)); 236 return _response.then((data) => new AppEdit.fromJson(data));
233 } 237 }
234 238
235 /** 239 /**
236 * Checks that the edit can be successfully committed. The edit's changes are 240 * Checks that the edit can be successfully committed. The edit's changes are
237 * not applied to the live app. 241 * not applied to the live app.
238 * 242 *
239 * Request parameters: 243 * Request parameters:
240 * 244 *
241 * [packageName] - Unique identifier for the Android app that is being 245 * [packageName] - Unique identifier for the Android app that is being
242 * updated; for example, "com.spiffygame". 246 * updated; for example, "com.spiffygame".
243 * 247 *
244 * [editId] - Unique identifier for this edit. 248 * [editId] - Unique identifier for this edit.
245 * 249 *
246 * Completes with a [AppEdit]. 250 * Completes with a [AppEdit].
247 * 251 *
248 * Completes with a [common.ApiRequestError] if the API endpoint returned an 252 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
249 * error. 253 * error.
250 * 254 *
251 * If the used [http.Client] completes with an error when making a REST call, 255 * If the used [http.Client] completes with an error when making a REST call,
252 * this method will complete with the same error. 256 * this method will complete with the same error.
253 */ 257 */
254 async.Future<AppEdit> validate(core.String packageName, core.String editId) { 258 async.Future<AppEdit> validate(core.String packageName, core.String editId) {
255 var _url = null; 259 var _url = null;
256 var _queryParams = new core.Map(); 260 var _queryParams = new core.Map();
257 var _uploadMedia = null; 261 var _uploadMedia = null;
258 var _uploadOptions = null; 262 var _uploadOptions = null;
259 var _downloadOptions = common.DownloadOptions.Metadata; 263 var _downloadOptions = commons.DownloadOptions.Metadata;
260 var _body = null; 264 var _body = null;
261 265
262 if (packageName == null) { 266 if (packageName == null) {
263 throw new core.ArgumentError("Parameter packageName is required."); 267 throw new core.ArgumentError("Parameter packageName is required.");
264 } 268 }
265 if (editId == null) { 269 if (editId == null) {
266 throw new core.ArgumentError("Parameter editId is required."); 270 throw new core.ArgumentError("Parameter editId is required.");
267 } 271 }
268 272
269 273
270 _url = common_internal.Escaper.ecapeVariable('$packageName') + '/edits/' + c ommon_internal.Escaper.ecapeVariable('$editId') + ':validate'; 274 _url = commons.Escaper.ecapeVariable('$packageName') + '/edits/' + commons.E scaper.ecapeVariable('$editId') + ':validate';
271 275
272 var _response = _requester.request(_url, 276 var _response = _requester.request(_url,
273 "POST", 277 "POST",
274 body: _body, 278 body: _body,
275 queryParams: _queryParams, 279 queryParams: _queryParams,
276 uploadOptions: _uploadOptions, 280 uploadOptions: _uploadOptions,
277 uploadMedia: _uploadMedia, 281 uploadMedia: _uploadMedia,
278 downloadOptions: _downloadOptions); 282 downloadOptions: _downloadOptions);
279 return _response.then((data) => new AppEdit.fromJson(data)); 283 return _response.then((data) => new AppEdit.fromJson(data));
280 } 284 }
281 285
282 } 286 }
283 287
284 288
285 /** Not documented yet. */
286 class EditsApklistingsResourceApi { 289 class EditsApklistingsResourceApi {
287 final common_internal.ApiRequester _requester; 290 final commons.ApiRequester _requester;
288 291
289 EditsApklistingsResourceApi(common_internal.ApiRequester client) : 292 EditsApklistingsResourceApi(commons.ApiRequester client) :
290 _requester = client; 293 _requester = client;
291 294
292 /** 295 /**
293 * Deletes the APK-specific localized listing for a specified APK and language 296 * Deletes the APK-specific localized listing for a specified APK and language
294 * code. 297 * code.
295 * 298 *
296 * Request parameters: 299 * Request parameters:
297 * 300 *
298 * [packageName] - Unique identifier for the Android app that is being 301 * [packageName] - Unique identifier for the Android app that is being
299 * updated; for example, "com.spiffygame". 302 * updated; for example, "com.spiffygame".
300 * 303 *
301 * [editId] - Unique identifier for this edit. 304 * [editId] - Unique identifier for this edit.
302 * 305 *
303 * [apkVersionCode] - The APK version code whose APK-specific listings should 306 * [apkVersionCode] - The APK version code whose APK-specific listings should
304 * be read or modified. 307 * be read or modified.
305 * 308 *
306 * [language] - The language code (a BCP-47 language tag) of the APK-specific 309 * [language] - The language code (a BCP-47 language tag) of the APK-specific
307 * localized listing to read or modify. For example, to select Austrian 310 * localized listing to read or modify. For example, to select Austrian
308 * German, pass "de-AT". 311 * German, pass "de-AT".
309 * 312 *
310 * Completes with a [common.ApiRequestError] if the API endpoint returned an 313 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
311 * error. 314 * error.
312 * 315 *
313 * If the used [http.Client] completes with an error when making a REST call, 316 * If the used [http.Client] completes with an error when making a REST call,
314 * this method will complete with the same error. 317 * this method will complete with the same error.
315 */ 318 */
316 async.Future delete(core.String packageName, core.String editId, core.int apkV ersionCode, core.String language) { 319 async.Future delete(core.String packageName, core.String editId, core.int apkV ersionCode, core.String language) {
317 var _url = null; 320 var _url = null;
318 var _queryParams = new core.Map(); 321 var _queryParams = new core.Map();
319 var _uploadMedia = null; 322 var _uploadMedia = null;
320 var _uploadOptions = null; 323 var _uploadOptions = null;
321 var _downloadOptions = common.DownloadOptions.Metadata; 324 var _downloadOptions = commons.DownloadOptions.Metadata;
322 var _body = null; 325 var _body = null;
323 326
324 if (packageName == null) { 327 if (packageName == null) {
325 throw new core.ArgumentError("Parameter packageName is required."); 328 throw new core.ArgumentError("Parameter packageName is required.");
326 } 329 }
327 if (editId == null) { 330 if (editId == null) {
328 throw new core.ArgumentError("Parameter editId is required."); 331 throw new core.ArgumentError("Parameter editId is required.");
329 } 332 }
330 if (apkVersionCode == null) { 333 if (apkVersionCode == null) {
331 throw new core.ArgumentError("Parameter apkVersionCode is required."); 334 throw new core.ArgumentError("Parameter apkVersionCode is required.");
332 } 335 }
333 if (language == null) { 336 if (language == null) {
334 throw new core.ArgumentError("Parameter language is required."); 337 throw new core.ArgumentError("Parameter language is required.");
335 } 338 }
336 339
337 _downloadOptions = null; 340 _downloadOptions = null;
338 341
339 _url = common_internal.Escaper.ecapeVariable('$packageName') + '/edits/' + c ommon_internal.Escaper.ecapeVariable('$editId') + '/apks/' + common_internal.Esc aper.ecapeVariable('$apkVersionCode') + '/listings/' + common_internal.Escaper.e capeVariable('$language'); 342 _url = commons.Escaper.ecapeVariable('$packageName') + '/edits/' + commons.E scaper.ecapeVariable('$editId') + '/apks/' + commons.Escaper.ecapeVariable('$apk VersionCode') + '/listings/' + commons.Escaper.ecapeVariable('$language');
340 343
341 var _response = _requester.request(_url, 344 var _response = _requester.request(_url,
342 "DELETE", 345 "DELETE",
343 body: _body, 346 body: _body,
344 queryParams: _queryParams, 347 queryParams: _queryParams,
345 uploadOptions: _uploadOptions, 348 uploadOptions: _uploadOptions,
346 uploadMedia: _uploadMedia, 349 uploadMedia: _uploadMedia,
347 downloadOptions: _downloadOptions); 350 downloadOptions: _downloadOptions);
348 return _response.then((data) => null); 351 return _response.then((data) => null);
349 } 352 }
350 353
351 /** 354 /**
352 * Deletes all the APK-specific localized listings for a specified APK. 355 * Deletes all the APK-specific localized listings for a specified APK.
353 * 356 *
354 * Request parameters: 357 * Request parameters:
355 * 358 *
356 * [packageName] - Unique identifier for the Android app that is being 359 * [packageName] - Unique identifier for the Android app that is being
357 * updated; for example, "com.spiffygame". 360 * updated; for example, "com.spiffygame".
358 * 361 *
359 * [editId] - Unique identifier for this edit. 362 * [editId] - Unique identifier for this edit.
360 * 363 *
361 * [apkVersionCode] - The APK version code whose APK-specific listings should 364 * [apkVersionCode] - The APK version code whose APK-specific listings should
362 * be read or modified. 365 * be read or modified.
363 * 366 *
364 * Completes with a [common.ApiRequestError] if the API endpoint returned an 367 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
365 * error. 368 * error.
366 * 369 *
367 * If the used [http.Client] completes with an error when making a REST call, 370 * If the used [http.Client] completes with an error when making a REST call,
368 * this method will complete with the same error. 371 * this method will complete with the same error.
369 */ 372 */
370 async.Future deleteall(core.String packageName, core.String editId, core.int a pkVersionCode) { 373 async.Future deleteall(core.String packageName, core.String editId, core.int a pkVersionCode) {
371 var _url = null; 374 var _url = null;
372 var _queryParams = new core.Map(); 375 var _queryParams = new core.Map();
373 var _uploadMedia = null; 376 var _uploadMedia = null;
374 var _uploadOptions = null; 377 var _uploadOptions = null;
375 var _downloadOptions = common.DownloadOptions.Metadata; 378 var _downloadOptions = commons.DownloadOptions.Metadata;
376 var _body = null; 379 var _body = null;
377 380
378 if (packageName == null) { 381 if (packageName == null) {
379 throw new core.ArgumentError("Parameter packageName is required."); 382 throw new core.ArgumentError("Parameter packageName is required.");
380 } 383 }
381 if (editId == null) { 384 if (editId == null) {
382 throw new core.ArgumentError("Parameter editId is required."); 385 throw new core.ArgumentError("Parameter editId is required.");
383 } 386 }
384 if (apkVersionCode == null) { 387 if (apkVersionCode == null) {
385 throw new core.ArgumentError("Parameter apkVersionCode is required."); 388 throw new core.ArgumentError("Parameter apkVersionCode is required.");
386 } 389 }
387 390
388 _downloadOptions = null; 391 _downloadOptions = null;
389 392
390 _url = common_internal.Escaper.ecapeVariable('$packageName') + '/edits/' + c ommon_internal.Escaper.ecapeVariable('$editId') + '/apks/' + common_internal.Esc aper.ecapeVariable('$apkVersionCode') + '/listings'; 393 _url = commons.Escaper.ecapeVariable('$packageName') + '/edits/' + commons.E scaper.ecapeVariable('$editId') + '/apks/' + commons.Escaper.ecapeVariable('$apk VersionCode') + '/listings';
391 394
392 var _response = _requester.request(_url, 395 var _response = _requester.request(_url,
393 "DELETE", 396 "DELETE",
394 body: _body, 397 body: _body,
395 queryParams: _queryParams, 398 queryParams: _queryParams,
396 uploadOptions: _uploadOptions, 399 uploadOptions: _uploadOptions,
397 uploadMedia: _uploadMedia, 400 uploadMedia: _uploadMedia,
398 downloadOptions: _downloadOptions); 401 downloadOptions: _downloadOptions);
399 return _response.then((data) => null); 402 return _response.then((data) => null);
400 } 403 }
(...skipping 11 matching lines...) Expand all
412 * 415 *
413 * [apkVersionCode] - The APK version code whose APK-specific listings should 416 * [apkVersionCode] - The APK version code whose APK-specific listings should
414 * be read or modified. 417 * be read or modified.
415 * 418 *
416 * [language] - The language code (a BCP-47 language tag) of the APK-specific 419 * [language] - The language code (a BCP-47 language tag) of the APK-specific
417 * localized listing to read or modify. For example, to select Austrian 420 * localized listing to read or modify. For example, to select Austrian
418 * German, pass "de-AT". 421 * German, pass "de-AT".
419 * 422 *
420 * Completes with a [ApkListing]. 423 * Completes with a [ApkListing].
421 * 424 *
422 * Completes with a [common.ApiRequestError] if the API endpoint returned an 425 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
423 * error. 426 * error.
424 * 427 *
425 * If the used [http.Client] completes with an error when making a REST call, 428 * If the used [http.Client] completes with an error when making a REST call,
426 * this method will complete with the same error. 429 * this method will complete with the same error.
427 */ 430 */
428 async.Future<ApkListing> get(core.String packageName, core.String editId, core .int apkVersionCode, core.String language) { 431 async.Future<ApkListing> get(core.String packageName, core.String editId, core .int apkVersionCode, core.String language) {
429 var _url = null; 432 var _url = null;
430 var _queryParams = new core.Map(); 433 var _queryParams = new core.Map();
431 var _uploadMedia = null; 434 var _uploadMedia = null;
432 var _uploadOptions = null; 435 var _uploadOptions = null;
433 var _downloadOptions = common.DownloadOptions.Metadata; 436 var _downloadOptions = commons.DownloadOptions.Metadata;
434 var _body = null; 437 var _body = null;
435 438
436 if (packageName == null) { 439 if (packageName == null) {
437 throw new core.ArgumentError("Parameter packageName is required."); 440 throw new core.ArgumentError("Parameter packageName is required.");
438 } 441 }
439 if (editId == null) { 442 if (editId == null) {
440 throw new core.ArgumentError("Parameter editId is required."); 443 throw new core.ArgumentError("Parameter editId is required.");
441 } 444 }
442 if (apkVersionCode == null) { 445 if (apkVersionCode == null) {
443 throw new core.ArgumentError("Parameter apkVersionCode is required."); 446 throw new core.ArgumentError("Parameter apkVersionCode is required.");
444 } 447 }
445 if (language == null) { 448 if (language == null) {
446 throw new core.ArgumentError("Parameter language is required."); 449 throw new core.ArgumentError("Parameter language is required.");
447 } 450 }
448 451
449 452
450 _url = common_internal.Escaper.ecapeVariable('$packageName') + '/edits/' + c ommon_internal.Escaper.ecapeVariable('$editId') + '/apks/' + common_internal.Esc aper.ecapeVariable('$apkVersionCode') + '/listings/' + common_internal.Escaper.e capeVariable('$language'); 453 _url = commons.Escaper.ecapeVariable('$packageName') + '/edits/' + commons.E scaper.ecapeVariable('$editId') + '/apks/' + commons.Escaper.ecapeVariable('$apk VersionCode') + '/listings/' + commons.Escaper.ecapeVariable('$language');
451 454
452 var _response = _requester.request(_url, 455 var _response = _requester.request(_url,
453 "GET", 456 "GET",
454 body: _body, 457 body: _body,
455 queryParams: _queryParams, 458 queryParams: _queryParams,
456 uploadOptions: _uploadOptions, 459 uploadOptions: _uploadOptions,
457 uploadMedia: _uploadMedia, 460 uploadMedia: _uploadMedia,
458 downloadOptions: _downloadOptions); 461 downloadOptions: _downloadOptions);
459 return _response.then((data) => new ApkListing.fromJson(data)); 462 return _response.then((data) => new ApkListing.fromJson(data));
460 } 463 }
461 464
462 /** 465 /**
463 * Lists all the APK-specific localized listings for a specified APK. 466 * Lists all the APK-specific localized listings for a specified APK.
464 * 467 *
465 * Request parameters: 468 * Request parameters:
466 * 469 *
467 * [packageName] - Unique identifier for the Android app that is being 470 * [packageName] - Unique identifier for the Android app that is being
468 * updated; for example, "com.spiffygame". 471 * updated; for example, "com.spiffygame".
469 * 472 *
470 * [editId] - Unique identifier for this edit. 473 * [editId] - Unique identifier for this edit.
471 * 474 *
472 * [apkVersionCode] - The APK version code whose APK-specific listings should 475 * [apkVersionCode] - The APK version code whose APK-specific listings should
473 * be read or modified. 476 * be read or modified.
474 * 477 *
475 * Completes with a [ApkListingsListResponse]. 478 * Completes with a [ApkListingsListResponse].
476 * 479 *
477 * Completes with a [common.ApiRequestError] if the API endpoint returned an 480 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
478 * error. 481 * error.
479 * 482 *
480 * If the used [http.Client] completes with an error when making a REST call, 483 * If the used [http.Client] completes with an error when making a REST call,
481 * this method will complete with the same error. 484 * this method will complete with the same error.
482 */ 485 */
483 async.Future<ApkListingsListResponse> list(core.String packageName, core.Strin g editId, core.int apkVersionCode) { 486 async.Future<ApkListingsListResponse> list(core.String packageName, core.Strin g editId, core.int apkVersionCode) {
484 var _url = null; 487 var _url = null;
485 var _queryParams = new core.Map(); 488 var _queryParams = new core.Map();
486 var _uploadMedia = null; 489 var _uploadMedia = null;
487 var _uploadOptions = null; 490 var _uploadOptions = null;
488 var _downloadOptions = common.DownloadOptions.Metadata; 491 var _downloadOptions = commons.DownloadOptions.Metadata;
489 var _body = null; 492 var _body = null;
490 493
491 if (packageName == null) { 494 if (packageName == null) {
492 throw new core.ArgumentError("Parameter packageName is required."); 495 throw new core.ArgumentError("Parameter packageName is required.");
493 } 496 }
494 if (editId == null) { 497 if (editId == null) {
495 throw new core.ArgumentError("Parameter editId is required."); 498 throw new core.ArgumentError("Parameter editId is required.");
496 } 499 }
497 if (apkVersionCode == null) { 500 if (apkVersionCode == null) {
498 throw new core.ArgumentError("Parameter apkVersionCode is required."); 501 throw new core.ArgumentError("Parameter apkVersionCode is required.");
499 } 502 }
500 503
501 504
502 _url = common_internal.Escaper.ecapeVariable('$packageName') + '/edits/' + c ommon_internal.Escaper.ecapeVariable('$editId') + '/apks/' + common_internal.Esc aper.ecapeVariable('$apkVersionCode') + '/listings'; 505 _url = commons.Escaper.ecapeVariable('$packageName') + '/edits/' + commons.E scaper.ecapeVariable('$editId') + '/apks/' + commons.Escaper.ecapeVariable('$apk VersionCode') + '/listings';
503 506
504 var _response = _requester.request(_url, 507 var _response = _requester.request(_url,
505 "GET", 508 "GET",
506 body: _body, 509 body: _body,
507 queryParams: _queryParams, 510 queryParams: _queryParams,
508 uploadOptions: _uploadOptions, 511 uploadOptions: _uploadOptions,
509 uploadMedia: _uploadMedia, 512 uploadMedia: _uploadMedia,
510 downloadOptions: _downloadOptions); 513 downloadOptions: _downloadOptions);
511 return _response.then((data) => new ApkListingsListResponse.fromJson(data)); 514 return _response.then((data) => new ApkListingsListResponse.fromJson(data));
512 } 515 }
(...skipping 13 matching lines...) Expand all
526 * 529 *
527 * [apkVersionCode] - The APK version code whose APK-specific listings should 530 * [apkVersionCode] - The APK version code whose APK-specific listings should
528 * be read or modified. 531 * be read or modified.
529 * 532 *
530 * [language] - The language code (a BCP-47 language tag) of the APK-specific 533 * [language] - The language code (a BCP-47 language tag) of the APK-specific
531 * localized listing to read or modify. For example, to select Austrian 534 * localized listing to read or modify. For example, to select Austrian
532 * German, pass "de-AT". 535 * German, pass "de-AT".
533 * 536 *
534 * Completes with a [ApkListing]. 537 * Completes with a [ApkListing].
535 * 538 *
536 * Completes with a [common.ApiRequestError] if the API endpoint returned an 539 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
537 * error. 540 * error.
538 * 541 *
539 * If the used [http.Client] completes with an error when making a REST call, 542 * If the used [http.Client] completes with an error when making a REST call,
540 * this method will complete with the same error. 543 * this method will complete with the same error.
541 */ 544 */
542 async.Future<ApkListing> patch(ApkListing request, core.String packageName, co re.String editId, core.int apkVersionCode, core.String language) { 545 async.Future<ApkListing> patch(ApkListing request, core.String packageName, co re.String editId, core.int apkVersionCode, core.String language) {
543 var _url = null; 546 var _url = null;
544 var _queryParams = new core.Map(); 547 var _queryParams = new core.Map();
545 var _uploadMedia = null; 548 var _uploadMedia = null;
546 var _uploadOptions = null; 549 var _uploadOptions = null;
547 var _downloadOptions = common.DownloadOptions.Metadata; 550 var _downloadOptions = commons.DownloadOptions.Metadata;
548 var _body = null; 551 var _body = null;
549 552
550 if (request != null) { 553 if (request != null) {
551 _body = convert.JSON.encode((request).toJson()); 554 _body = convert.JSON.encode((request).toJson());
552 } 555 }
553 if (packageName == null) { 556 if (packageName == null) {
554 throw new core.ArgumentError("Parameter packageName is required."); 557 throw new core.ArgumentError("Parameter packageName is required.");
555 } 558 }
556 if (editId == null) { 559 if (editId == null) {
557 throw new core.ArgumentError("Parameter editId is required."); 560 throw new core.ArgumentError("Parameter editId is required.");
558 } 561 }
559 if (apkVersionCode == null) { 562 if (apkVersionCode == null) {
560 throw new core.ArgumentError("Parameter apkVersionCode is required."); 563 throw new core.ArgumentError("Parameter apkVersionCode is required.");
561 } 564 }
562 if (language == null) { 565 if (language == null) {
563 throw new core.ArgumentError("Parameter language is required."); 566 throw new core.ArgumentError("Parameter language is required.");
564 } 567 }
565 568
566 569
567 _url = common_internal.Escaper.ecapeVariable('$packageName') + '/edits/' + c ommon_internal.Escaper.ecapeVariable('$editId') + '/apks/' + common_internal.Esc aper.ecapeVariable('$apkVersionCode') + '/listings/' + common_internal.Escaper.e capeVariable('$language'); 570 _url = commons.Escaper.ecapeVariable('$packageName') + '/edits/' + commons.E scaper.ecapeVariable('$editId') + '/apks/' + commons.Escaper.ecapeVariable('$apk VersionCode') + '/listings/' + commons.Escaper.ecapeVariable('$language');
568 571
569 var _response = _requester.request(_url, 572 var _response = _requester.request(_url,
570 "PATCH", 573 "PATCH",
571 body: _body, 574 body: _body,
572 queryParams: _queryParams, 575 queryParams: _queryParams,
573 uploadOptions: _uploadOptions, 576 uploadOptions: _uploadOptions,
574 uploadMedia: _uploadMedia, 577 uploadMedia: _uploadMedia,
575 downloadOptions: _downloadOptions); 578 downloadOptions: _downloadOptions);
576 return _response.then((data) => new ApkListing.fromJson(data)); 579 return _response.then((data) => new ApkListing.fromJson(data));
577 } 580 }
(...skipping 13 matching lines...) Expand all
591 * 594 *
592 * [apkVersionCode] - The APK version code whose APK-specific listings should 595 * [apkVersionCode] - The APK version code whose APK-specific listings should
593 * be read or modified. 596 * be read or modified.
594 * 597 *
595 * [language] - The language code (a BCP-47 language tag) of the APK-specific 598 * [language] - The language code (a BCP-47 language tag) of the APK-specific
596 * localized listing to read or modify. For example, to select Austrian 599 * localized listing to read or modify. For example, to select Austrian
597 * German, pass "de-AT". 600 * German, pass "de-AT".
598 * 601 *
599 * Completes with a [ApkListing]. 602 * Completes with a [ApkListing].
600 * 603 *
601 * Completes with a [common.ApiRequestError] if the API endpoint returned an 604 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
602 * error. 605 * error.
603 * 606 *
604 * If the used [http.Client] completes with an error when making a REST call, 607 * If the used [http.Client] completes with an error when making a REST call,
605 * this method will complete with the same error. 608 * this method will complete with the same error.
606 */ 609 */
607 async.Future<ApkListing> update(ApkListing request, core.String packageName, c ore.String editId, core.int apkVersionCode, core.String language) { 610 async.Future<ApkListing> update(ApkListing request, core.String packageName, c ore.String editId, core.int apkVersionCode, core.String language) {
608 var _url = null; 611 var _url = null;
609 var _queryParams = new core.Map(); 612 var _queryParams = new core.Map();
610 var _uploadMedia = null; 613 var _uploadMedia = null;
611 var _uploadOptions = null; 614 var _uploadOptions = null;
612 var _downloadOptions = common.DownloadOptions.Metadata; 615 var _downloadOptions = commons.DownloadOptions.Metadata;
613 var _body = null; 616 var _body = null;
614 617
615 if (request != null) { 618 if (request != null) {
616 _body = convert.JSON.encode((request).toJson()); 619 _body = convert.JSON.encode((request).toJson());
617 } 620 }
618 if (packageName == null) { 621 if (packageName == null) {
619 throw new core.ArgumentError("Parameter packageName is required."); 622 throw new core.ArgumentError("Parameter packageName is required.");
620 } 623 }
621 if (editId == null) { 624 if (editId == null) {
622 throw new core.ArgumentError("Parameter editId is required."); 625 throw new core.ArgumentError("Parameter editId is required.");
623 } 626 }
624 if (apkVersionCode == null) { 627 if (apkVersionCode == null) {
625 throw new core.ArgumentError("Parameter apkVersionCode is required."); 628 throw new core.ArgumentError("Parameter apkVersionCode is required.");
626 } 629 }
627 if (language == null) { 630 if (language == null) {
628 throw new core.ArgumentError("Parameter language is required."); 631 throw new core.ArgumentError("Parameter language is required.");
629 } 632 }
630 633
631 634
632 _url = common_internal.Escaper.ecapeVariable('$packageName') + '/edits/' + c ommon_internal.Escaper.ecapeVariable('$editId') + '/apks/' + common_internal.Esc aper.ecapeVariable('$apkVersionCode') + '/listings/' + common_internal.Escaper.e capeVariable('$language'); 635 _url = commons.Escaper.ecapeVariable('$packageName') + '/edits/' + commons.E scaper.ecapeVariable('$editId') + '/apks/' + commons.Escaper.ecapeVariable('$apk VersionCode') + '/listings/' + commons.Escaper.ecapeVariable('$language');
633 636
634 var _response = _requester.request(_url, 637 var _response = _requester.request(_url,
635 "PUT", 638 "PUT",
636 body: _body, 639 body: _body,
637 queryParams: _queryParams, 640 queryParams: _queryParams,
638 uploadOptions: _uploadOptions, 641 uploadOptions: _uploadOptions,
639 uploadMedia: _uploadMedia, 642 uploadMedia: _uploadMedia,
640 downloadOptions: _downloadOptions); 643 downloadOptions: _downloadOptions);
641 return _response.then((data) => new ApkListing.fromJson(data)); 644 return _response.then((data) => new ApkListing.fromJson(data));
642 } 645 }
643 646
644 } 647 }
645 648
646 649
647 /** Not documented yet. */
648 class EditsApksResourceApi { 650 class EditsApksResourceApi {
649 final common_internal.ApiRequester _requester; 651 final commons.ApiRequester _requester;
650 652
651 EditsApksResourceApi(common_internal.ApiRequester client) : 653 EditsApksResourceApi(commons.ApiRequester client) :
652 _requester = client; 654 _requester = client;
653 655
654 /** 656 /**
655 * Creates a new APK without uploading the APK itself to Google Play, instead 657 * Creates a new APK without uploading the APK itself to Google Play, instead
656 * hosting the APK at a specified URL. This function is only available to 658 * hosting the APK at a specified URL. This function is only available to
657 * enterprises using Google Play for work whose application is configured to 659 * enterprises using Google Play for Work whose application is configured to
658 * restrict distribution to the enterprise domain. 660 * restrict distribution to the enterprise domain.
659 * 661 *
660 * [request] - The metadata request object. 662 * [request] - The metadata request object.
661 * 663 *
662 * Request parameters: 664 * Request parameters:
663 * 665 *
664 * [packageName] - Unique identifier for the Android app that is being 666 * [packageName] - Unique identifier for the Android app that is being
665 * updated; for example, "com.spiffygame". 667 * updated; for example, "com.spiffygame".
666 * 668 *
667 * [editId] - Unique identifier for this edit. 669 * [editId] - Unique identifier for this edit.
668 * 670 *
669 * Completes with a [ApksAddExternallyHostedResponse]. 671 * Completes with a [ApksAddExternallyHostedResponse].
670 * 672 *
671 * Completes with a [common.ApiRequestError] if the API endpoint returned an 673 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
672 * error. 674 * error.
673 * 675 *
674 * If the used [http.Client] completes with an error when making a REST call, 676 * If the used [http.Client] completes with an error when making a REST call,
675 * this method will complete with the same error. 677 * this method will complete with the same error.
676 */ 678 */
677 async.Future<ApksAddExternallyHostedResponse> addexternallyhosted(ApksAddExter nallyHostedRequest request, core.String packageName, core.String editId) { 679 async.Future<ApksAddExternallyHostedResponse> addexternallyhosted(ApksAddExter nallyHostedRequest request, core.String packageName, core.String editId) {
678 var _url = null; 680 var _url = null;
679 var _queryParams = new core.Map(); 681 var _queryParams = new core.Map();
680 var _uploadMedia = null; 682 var _uploadMedia = null;
681 var _uploadOptions = null; 683 var _uploadOptions = null;
682 var _downloadOptions = common.DownloadOptions.Metadata; 684 var _downloadOptions = commons.DownloadOptions.Metadata;
683 var _body = null; 685 var _body = null;
684 686
685 if (request != null) { 687 if (request != null) {
686 _body = convert.JSON.encode((request).toJson()); 688 _body = convert.JSON.encode((request).toJson());
687 } 689 }
688 if (packageName == null) { 690 if (packageName == null) {
689 throw new core.ArgumentError("Parameter packageName is required."); 691 throw new core.ArgumentError("Parameter packageName is required.");
690 } 692 }
691 if (editId == null) { 693 if (editId == null) {
692 throw new core.ArgumentError("Parameter editId is required."); 694 throw new core.ArgumentError("Parameter editId is required.");
693 } 695 }
694 696
695 697
696 _url = common_internal.Escaper.ecapeVariable('$packageName') + '/edits/' + c ommon_internal.Escaper.ecapeVariable('$editId') + '/apks/externallyHosted'; 698 _url = commons.Escaper.ecapeVariable('$packageName') + '/edits/' + commons.E scaper.ecapeVariable('$editId') + '/apks/externallyHosted';
697 699
698 var _response = _requester.request(_url, 700 var _response = _requester.request(_url,
699 "POST", 701 "POST",
700 body: _body, 702 body: _body,
701 queryParams: _queryParams, 703 queryParams: _queryParams,
702 uploadOptions: _uploadOptions, 704 uploadOptions: _uploadOptions,
703 uploadMedia: _uploadMedia, 705 uploadMedia: _uploadMedia,
704 downloadOptions: _downloadOptions); 706 downloadOptions: _downloadOptions);
705 return _response.then((data) => new ApksAddExternallyHostedResponse.fromJson (data)); 707 return _response.then((data) => new ApksAddExternallyHostedResponse.fromJson (data));
706 } 708 }
707 709
708 /** 710 /**
709 * Not documented yet.
710 *
711 * Request parameters: 711 * Request parameters:
712 * 712 *
713 * [packageName] - Unique identifier for the Android app that is being 713 * [packageName] - Unique identifier for the Android app that is being
714 * updated; for example, "com.spiffygame". 714 * updated; for example, "com.spiffygame".
715 * 715 *
716 * [editId] - Unique identifier for this edit. 716 * [editId] - Unique identifier for this edit.
717 * 717 *
718 * Completes with a [ApksListResponse]. 718 * Completes with a [ApksListResponse].
719 * 719 *
720 * Completes with a [common.ApiRequestError] if the API endpoint returned an 720 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
721 * error. 721 * error.
722 * 722 *
723 * If the used [http.Client] completes with an error when making a REST call, 723 * If the used [http.Client] completes with an error when making a REST call,
724 * this method will complete with the same error. 724 * this method will complete with the same error.
725 */ 725 */
726 async.Future<ApksListResponse> list(core.String packageName, core.String editI d) { 726 async.Future<ApksListResponse> list(core.String packageName, core.String editI d) {
727 var _url = null; 727 var _url = null;
728 var _queryParams = new core.Map(); 728 var _queryParams = new core.Map();
729 var _uploadMedia = null; 729 var _uploadMedia = null;
730 var _uploadOptions = null; 730 var _uploadOptions = null;
731 var _downloadOptions = common.DownloadOptions.Metadata; 731 var _downloadOptions = commons.DownloadOptions.Metadata;
732 var _body = null; 732 var _body = null;
733 733
734 if (packageName == null) { 734 if (packageName == null) {
735 throw new core.ArgumentError("Parameter packageName is required."); 735 throw new core.ArgumentError("Parameter packageName is required.");
736 } 736 }
737 if (editId == null) { 737 if (editId == null) {
738 throw new core.ArgumentError("Parameter editId is required."); 738 throw new core.ArgumentError("Parameter editId is required.");
739 } 739 }
740 740
741 741
742 _url = common_internal.Escaper.ecapeVariable('$packageName') + '/edits/' + c ommon_internal.Escaper.ecapeVariable('$editId') + '/apks'; 742 _url = commons.Escaper.ecapeVariable('$packageName') + '/edits/' + commons.E scaper.ecapeVariable('$editId') + '/apks';
743 743
744 var _response = _requester.request(_url, 744 var _response = _requester.request(_url,
745 "GET", 745 "GET",
746 body: _body, 746 body: _body,
747 queryParams: _queryParams, 747 queryParams: _queryParams,
748 uploadOptions: _uploadOptions, 748 uploadOptions: _uploadOptions,
749 uploadMedia: _uploadMedia, 749 uploadMedia: _uploadMedia,
750 downloadOptions: _downloadOptions); 750 downloadOptions: _downloadOptions);
751 return _response.then((data) => new ApksListResponse.fromJson(data)); 751 return _response.then((data) => new ApksListResponse.fromJson(data));
752 } 752 }
753 753
754 /** 754 /**
755 * Not documented yet.
756 *
757 * Request parameters: 755 * Request parameters:
758 * 756 *
759 * [packageName] - Unique identifier for the Android app that is being 757 * [packageName] - Unique identifier for the Android app that is being
760 * updated; for example, "com.spiffygame". 758 * updated; for example, "com.spiffygame".
761 * 759 *
762 * [editId] - Unique identifier for this edit. 760 * [editId] - Unique identifier for this edit.
763 * 761 *
764 * [uploadMedia] - The media to upload. 762 * [uploadMedia] - The media to upload.
765 * 763 *
766 * [uploadOptions] - Options for the media upload. Streaming Media without the 764 * [uploadOptions] - Options for the media upload. Streaming Media without the
767 * length being known ahead of time is only supported via resumable uploads. 765 * length being known ahead of time is only supported via resumable uploads.
768 * 766 *
769 * Completes with a [Apk]. 767 * Completes with a [Apk].
770 * 768 *
771 * Completes with a [common.ApiRequestError] if the API endpoint returned an 769 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
772 * error. 770 * error.
773 * 771 *
774 * If the used [http.Client] completes with an error when making a REST call, 772 * If the used [http.Client] completes with an error when making a REST call,
775 * this method will complete with the same error. 773 * this method will complete with the same error.
776 */ 774 */
777 async.Future<Apk> upload(core.String packageName, core.String editId, {common. UploadOptions uploadOptions : common.UploadOptions.Default, common.Media uploadM edia}) { 775 async.Future<Apk> upload(core.String packageName, core.String editId, {commons .UploadOptions uploadOptions : commons.UploadOptions.Default, commons.Media uplo adMedia}) {
778 var _url = null; 776 var _url = null;
779 var _queryParams = new core.Map(); 777 var _queryParams = new core.Map();
780 var _uploadMedia = null; 778 var _uploadMedia = null;
781 var _uploadOptions = null; 779 var _uploadOptions = null;
782 var _downloadOptions = common.DownloadOptions.Metadata; 780 var _downloadOptions = commons.DownloadOptions.Metadata;
783 var _body = null; 781 var _body = null;
784 782
785 if (packageName == null) { 783 if (packageName == null) {
786 throw new core.ArgumentError("Parameter packageName is required."); 784 throw new core.ArgumentError("Parameter packageName is required.");
787 } 785 }
788 if (editId == null) { 786 if (editId == null) {
789 throw new core.ArgumentError("Parameter editId is required."); 787 throw new core.ArgumentError("Parameter editId is required.");
790 } 788 }
791 789
792 _uploadMedia = uploadMedia; 790 _uploadMedia = uploadMedia;
793 _uploadOptions = uploadOptions; 791 _uploadOptions = uploadOptions;
794 792
795 if (_uploadMedia == null) { 793 if (_uploadMedia == null) {
796 _url = common_internal.Escaper.ecapeVariable('$packageName') + '/edits/' + common_internal.Escaper.ecapeVariable('$editId') + '/apks'; 794 _url = commons.Escaper.ecapeVariable('$packageName') + '/edits/' + commons .Escaper.ecapeVariable('$editId') + '/apks';
797 } else if (_uploadOptions is common.ResumableUploadOptions) { 795 } else if (_uploadOptions is commons.ResumableUploadOptions) {
798 _url = '/resumable/upload/androidpublisher/v2/applications/' + common_inte rnal.Escaper.ecapeVariable('$packageName') + '/edits/' + common_internal.Escaper .ecapeVariable('$editId') + '/apks'; 796 _url = '/resumable/upload/androidpublisher/v2/applications/' + commons.Esc aper.ecapeVariable('$packageName') + '/edits/' + commons.Escaper.ecapeVariable(' $editId') + '/apks';
799 } else { 797 } else {
800 _url = '/upload/androidpublisher/v2/applications/' + common_internal.Escap er.ecapeVariable('$packageName') + '/edits/' + common_internal.Escaper.ecapeVari able('$editId') + '/apks'; 798 _url = '/upload/androidpublisher/v2/applications/' + commons.Escaper.ecape Variable('$packageName') + '/edits/' + commons.Escaper.ecapeVariable('$editId') + '/apks';
801 } 799 }
802 800
803 801
804 var _response = _requester.request(_url, 802 var _response = _requester.request(_url,
805 "POST", 803 "POST",
806 body: _body, 804 body: _body,
807 queryParams: _queryParams, 805 queryParams: _queryParams,
808 uploadOptions: _uploadOptions, 806 uploadOptions: _uploadOptions,
809 uploadMedia: _uploadMedia, 807 uploadMedia: _uploadMedia,
810 downloadOptions: _downloadOptions); 808 downloadOptions: _downloadOptions);
811 return _response.then((data) => new Apk.fromJson(data)); 809 return _response.then((data) => new Apk.fromJson(data));
812 } 810 }
813 811
814 } 812 }
815 813
816 814
817 /** Not documented yet. */
818 class EditsDetailsResourceApi { 815 class EditsDetailsResourceApi {
819 final common_internal.ApiRequester _requester; 816 final commons.ApiRequester _requester;
820 817
821 EditsDetailsResourceApi(common_internal.ApiRequester client) : 818 EditsDetailsResourceApi(commons.ApiRequester client) :
822 _requester = client; 819 _requester = client;
823 820
824 /** 821 /**
825 * Fetches app details for this edit. This includes the default language and 822 * Fetches app details for this edit. This includes the default language and
826 * developer support contact information. 823 * developer support contact information.
827 * 824 *
828 * Request parameters: 825 * Request parameters:
829 * 826 *
830 * [packageName] - Unique identifier for the Android app that is being 827 * [packageName] - Unique identifier for the Android app that is being
831 * updated; for example, "com.spiffygame". 828 * updated; for example, "com.spiffygame".
832 * 829 *
833 * [editId] - Unique identifier for this edit. 830 * [editId] - Unique identifier for this edit.
834 * 831 *
835 * Completes with a [AppDetails]. 832 * Completes with a [AppDetails].
836 * 833 *
837 * Completes with a [common.ApiRequestError] if the API endpoint returned an 834 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
838 * error. 835 * error.
839 * 836 *
840 * If the used [http.Client] completes with an error when making a REST call, 837 * If the used [http.Client] completes with an error when making a REST call,
841 * this method will complete with the same error. 838 * this method will complete with the same error.
842 */ 839 */
843 async.Future<AppDetails> get(core.String packageName, core.String editId) { 840 async.Future<AppDetails> get(core.String packageName, core.String editId) {
844 var _url = null; 841 var _url = null;
845 var _queryParams = new core.Map(); 842 var _queryParams = new core.Map();
846 var _uploadMedia = null; 843 var _uploadMedia = null;
847 var _uploadOptions = null; 844 var _uploadOptions = null;
848 var _downloadOptions = common.DownloadOptions.Metadata; 845 var _downloadOptions = commons.DownloadOptions.Metadata;
849 var _body = null; 846 var _body = null;
850 847
851 if (packageName == null) { 848 if (packageName == null) {
852 throw new core.ArgumentError("Parameter packageName is required."); 849 throw new core.ArgumentError("Parameter packageName is required.");
853 } 850 }
854 if (editId == null) { 851 if (editId == null) {
855 throw new core.ArgumentError("Parameter editId is required."); 852 throw new core.ArgumentError("Parameter editId is required.");
856 } 853 }
857 854
858 855
859 _url = common_internal.Escaper.ecapeVariable('$packageName') + '/edits/' + c ommon_internal.Escaper.ecapeVariable('$editId') + '/details'; 856 _url = commons.Escaper.ecapeVariable('$packageName') + '/edits/' + commons.E scaper.ecapeVariable('$editId') + '/details';
860 857
861 var _response = _requester.request(_url, 858 var _response = _requester.request(_url,
862 "GET", 859 "GET",
863 body: _body, 860 body: _body,
864 queryParams: _queryParams, 861 queryParams: _queryParams,
865 uploadOptions: _uploadOptions, 862 uploadOptions: _uploadOptions,
866 uploadMedia: _uploadMedia, 863 uploadMedia: _uploadMedia,
867 downloadOptions: _downloadOptions); 864 downloadOptions: _downloadOptions);
868 return _response.then((data) => new AppDetails.fromJson(data)); 865 return _response.then((data) => new AppDetails.fromJson(data));
869 } 866 }
870 867
871 /** 868 /**
872 * Updates app details for this edit. This method supports patch semantics. 869 * Updates app details for this edit. This method supports patch semantics.
873 * 870 *
874 * [request] - The metadata request object. 871 * [request] - The metadata request object.
875 * 872 *
876 * Request parameters: 873 * Request parameters:
877 * 874 *
878 * [packageName] - Unique identifier for the Android app that is being 875 * [packageName] - Unique identifier for the Android app that is being
879 * updated; for example, "com.spiffygame". 876 * updated; for example, "com.spiffygame".
880 * 877 *
881 * [editId] - Unique identifier for this edit. 878 * [editId] - Unique identifier for this edit.
882 * 879 *
883 * Completes with a [AppDetails]. 880 * Completes with a [AppDetails].
884 * 881 *
885 * Completes with a [common.ApiRequestError] if the API endpoint returned an 882 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
886 * error. 883 * error.
887 * 884 *
888 * If the used [http.Client] completes with an error when making a REST call, 885 * If the used [http.Client] completes with an error when making a REST call,
889 * this method will complete with the same error. 886 * this method will complete with the same error.
890 */ 887 */
891 async.Future<AppDetails> patch(AppDetails request, core.String packageName, co re.String editId) { 888 async.Future<AppDetails> patch(AppDetails request, core.String packageName, co re.String editId) {
892 var _url = null; 889 var _url = null;
893 var _queryParams = new core.Map(); 890 var _queryParams = new core.Map();
894 var _uploadMedia = null; 891 var _uploadMedia = null;
895 var _uploadOptions = null; 892 var _uploadOptions = null;
896 var _downloadOptions = common.DownloadOptions.Metadata; 893 var _downloadOptions = commons.DownloadOptions.Metadata;
897 var _body = null; 894 var _body = null;
898 895
899 if (request != null) { 896 if (request != null) {
900 _body = convert.JSON.encode((request).toJson()); 897 _body = convert.JSON.encode((request).toJson());
901 } 898 }
902 if (packageName == null) { 899 if (packageName == null) {
903 throw new core.ArgumentError("Parameter packageName is required."); 900 throw new core.ArgumentError("Parameter packageName is required.");
904 } 901 }
905 if (editId == null) { 902 if (editId == null) {
906 throw new core.ArgumentError("Parameter editId is required."); 903 throw new core.ArgumentError("Parameter editId is required.");
907 } 904 }
908 905
909 906
910 _url = common_internal.Escaper.ecapeVariable('$packageName') + '/edits/' + c ommon_internal.Escaper.ecapeVariable('$editId') + '/details'; 907 _url = commons.Escaper.ecapeVariable('$packageName') + '/edits/' + commons.E scaper.ecapeVariable('$editId') + '/details';
911 908
912 var _response = _requester.request(_url, 909 var _response = _requester.request(_url,
913 "PATCH", 910 "PATCH",
914 body: _body, 911 body: _body,
915 queryParams: _queryParams, 912 queryParams: _queryParams,
916 uploadOptions: _uploadOptions, 913 uploadOptions: _uploadOptions,
917 uploadMedia: _uploadMedia, 914 uploadMedia: _uploadMedia,
918 downloadOptions: _downloadOptions); 915 downloadOptions: _downloadOptions);
919 return _response.then((data) => new AppDetails.fromJson(data)); 916 return _response.then((data) => new AppDetails.fromJson(data));
920 } 917 }
921 918
922 /** 919 /**
923 * Updates app details for this edit. 920 * Updates app details for this edit.
924 * 921 *
925 * [request] - The metadata request object. 922 * [request] - The metadata request object.
926 * 923 *
927 * Request parameters: 924 * Request parameters:
928 * 925 *
929 * [packageName] - Unique identifier for the Android app that is being 926 * [packageName] - Unique identifier for the Android app that is being
930 * updated; for example, "com.spiffygame". 927 * updated; for example, "com.spiffygame".
931 * 928 *
932 * [editId] - Unique identifier for this edit. 929 * [editId] - Unique identifier for this edit.
933 * 930 *
934 * Completes with a [AppDetails]. 931 * Completes with a [AppDetails].
935 * 932 *
936 * Completes with a [common.ApiRequestError] if the API endpoint returned an 933 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
937 * error. 934 * error.
938 * 935 *
939 * If the used [http.Client] completes with an error when making a REST call, 936 * If the used [http.Client] completes with an error when making a REST call,
940 * this method will complete with the same error. 937 * this method will complete with the same error.
941 */ 938 */
942 async.Future<AppDetails> update(AppDetails request, core.String packageName, c ore.String editId) { 939 async.Future<AppDetails> update(AppDetails request, core.String packageName, c ore.String editId) {
943 var _url = null; 940 var _url = null;
944 var _queryParams = new core.Map(); 941 var _queryParams = new core.Map();
945 var _uploadMedia = null; 942 var _uploadMedia = null;
946 var _uploadOptions = null; 943 var _uploadOptions = null;
947 var _downloadOptions = common.DownloadOptions.Metadata; 944 var _downloadOptions = commons.DownloadOptions.Metadata;
948 var _body = null; 945 var _body = null;
949 946
950 if (request != null) { 947 if (request != null) {
951 _body = convert.JSON.encode((request).toJson()); 948 _body = convert.JSON.encode((request).toJson());
952 } 949 }
953 if (packageName == null) { 950 if (packageName == null) {
954 throw new core.ArgumentError("Parameter packageName is required."); 951 throw new core.ArgumentError("Parameter packageName is required.");
955 } 952 }
956 if (editId == null) { 953 if (editId == null) {
957 throw new core.ArgumentError("Parameter editId is required."); 954 throw new core.ArgumentError("Parameter editId is required.");
958 } 955 }
959 956
960 957
961 _url = common_internal.Escaper.ecapeVariable('$packageName') + '/edits/' + c ommon_internal.Escaper.ecapeVariable('$editId') + '/details'; 958 _url = commons.Escaper.ecapeVariable('$packageName') + '/edits/' + commons.E scaper.ecapeVariable('$editId') + '/details';
962 959
963 var _response = _requester.request(_url, 960 var _response = _requester.request(_url,
964 "PUT", 961 "PUT",
965 body: _body, 962 body: _body,
966 queryParams: _queryParams, 963 queryParams: _queryParams,
967 uploadOptions: _uploadOptions, 964 uploadOptions: _uploadOptions,
968 uploadMedia: _uploadMedia, 965 uploadMedia: _uploadMedia,
969 downloadOptions: _downloadOptions); 966 downloadOptions: _downloadOptions);
970 return _response.then((data) => new AppDetails.fromJson(data)); 967 return _response.then((data) => new AppDetails.fromJson(data));
971 } 968 }
972 969
973 } 970 }
974 971
975 972
976 /** Not documented yet. */
977 class EditsExpansionfilesResourceApi { 973 class EditsExpansionfilesResourceApi {
978 final common_internal.ApiRequester _requester; 974 final commons.ApiRequester _requester;
979 975
980 EditsExpansionfilesResourceApi(common_internal.ApiRequester client) : 976 EditsExpansionfilesResourceApi(commons.ApiRequester client) :
981 _requester = client; 977 _requester = client;
982 978
983 /** 979 /**
984 * Fetches the Expansion File configuration for the APK specified. 980 * Fetches the Expansion File configuration for the APK specified.
985 * 981 *
986 * Request parameters: 982 * Request parameters:
987 * 983 *
988 * [packageName] - Unique identifier for the Android app that is being 984 * [packageName] - Unique identifier for the Android app that is being
989 * updated; for example, "com.spiffygame". 985 * updated; for example, "com.spiffygame".
990 * 986 *
991 * [editId] - Unique identifier for this edit. 987 * [editId] - Unique identifier for this edit.
992 * 988 *
993 * [apkVersionCode] - The version code of the APK whose Expansion File 989 * [apkVersionCode] - The version code of the APK whose Expansion File
994 * configuration is being read or modified. 990 * configuration is being read or modified.
995 * 991 *
996 * [expansionFileType] - null 992 * [expansionFileType] - null
997 * Possible string values are: 993 * Possible string values are:
998 * - "main" 994 * - "main"
999 * - "patch" 995 * - "patch"
1000 * 996 *
1001 * Completes with a [ExpansionFile]. 997 * Completes with a [ExpansionFile].
1002 * 998 *
1003 * Completes with a [common.ApiRequestError] if the API endpoint returned an 999 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
1004 * error. 1000 * error.
1005 * 1001 *
1006 * If the used [http.Client] completes with an error when making a REST call, 1002 * If the used [http.Client] completes with an error when making a REST call,
1007 * this method will complete with the same error. 1003 * this method will complete with the same error.
1008 */ 1004 */
1009 async.Future<ExpansionFile> get(core.String packageName, core.String editId, c ore.int apkVersionCode, core.String expansionFileType) { 1005 async.Future<ExpansionFile> get(core.String packageName, core.String editId, c ore.int apkVersionCode, core.String expansionFileType) {
1010 var _url = null; 1006 var _url = null;
1011 var _queryParams = new core.Map(); 1007 var _queryParams = new core.Map();
1012 var _uploadMedia = null; 1008 var _uploadMedia = null;
1013 var _uploadOptions = null; 1009 var _uploadOptions = null;
1014 var _downloadOptions = common.DownloadOptions.Metadata; 1010 var _downloadOptions = commons.DownloadOptions.Metadata;
1015 var _body = null; 1011 var _body = null;
1016 1012
1017 if (packageName == null) { 1013 if (packageName == null) {
1018 throw new core.ArgumentError("Parameter packageName is required."); 1014 throw new core.ArgumentError("Parameter packageName is required.");
1019 } 1015 }
1020 if (editId == null) { 1016 if (editId == null) {
1021 throw new core.ArgumentError("Parameter editId is required."); 1017 throw new core.ArgumentError("Parameter editId is required.");
1022 } 1018 }
1023 if (apkVersionCode == null) { 1019 if (apkVersionCode == null) {
1024 throw new core.ArgumentError("Parameter apkVersionCode is required."); 1020 throw new core.ArgumentError("Parameter apkVersionCode is required.");
1025 } 1021 }
1026 if (expansionFileType == null) { 1022 if (expansionFileType == null) {
1027 throw new core.ArgumentError("Parameter expansionFileType is required."); 1023 throw new core.ArgumentError("Parameter expansionFileType is required.");
1028 } 1024 }
1029 1025
1030 1026
1031 _url = common_internal.Escaper.ecapeVariable('$packageName') + '/edits/' + c ommon_internal.Escaper.ecapeVariable('$editId') + '/apks/' + common_internal.Esc aper.ecapeVariable('$apkVersionCode') + '/expansionFiles/' + common_internal.Esc aper.ecapeVariable('$expansionFileType'); 1027 _url = commons.Escaper.ecapeVariable('$packageName') + '/edits/' + commons.E scaper.ecapeVariable('$editId') + '/apks/' + commons.Escaper.ecapeVariable('$apk VersionCode') + '/expansionFiles/' + commons.Escaper.ecapeVariable('$expansionFi leType');
1032 1028
1033 var _response = _requester.request(_url, 1029 var _response = _requester.request(_url,
1034 "GET", 1030 "GET",
1035 body: _body, 1031 body: _body,
1036 queryParams: _queryParams, 1032 queryParams: _queryParams,
1037 uploadOptions: _uploadOptions, 1033 uploadOptions: _uploadOptions,
1038 uploadMedia: _uploadMedia, 1034 uploadMedia: _uploadMedia,
1039 downloadOptions: _downloadOptions); 1035 downloadOptions: _downloadOptions);
1040 return _response.then((data) => new ExpansionFile.fromJson(data)); 1036 return _response.then((data) => new ExpansionFile.fromJson(data));
1041 } 1037 }
(...skipping 15 matching lines...) Expand all
1057 * [apkVersionCode] - The version code of the APK whose Expansion File 1053 * [apkVersionCode] - The version code of the APK whose Expansion File
1058 * configuration is being read or modified. 1054 * configuration is being read or modified.
1059 * 1055 *
1060 * [expansionFileType] - null 1056 * [expansionFileType] - null
1061 * Possible string values are: 1057 * Possible string values are:
1062 * - "main" 1058 * - "main"
1063 * - "patch" 1059 * - "patch"
1064 * 1060 *
1065 * Completes with a [ExpansionFile]. 1061 * Completes with a [ExpansionFile].
1066 * 1062 *
1067 * Completes with a [common.ApiRequestError] if the API endpoint returned an 1063 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
1068 * error. 1064 * error.
1069 * 1065 *
1070 * If the used [http.Client] completes with an error when making a REST call, 1066 * If the used [http.Client] completes with an error when making a REST call,
1071 * this method will complete with the same error. 1067 * this method will complete with the same error.
1072 */ 1068 */
1073 async.Future<ExpansionFile> patch(ExpansionFile request, core.String packageNa me, core.String editId, core.int apkVersionCode, core.String expansionFileType) { 1069 async.Future<ExpansionFile> patch(ExpansionFile request, core.String packageNa me, core.String editId, core.int apkVersionCode, core.String expansionFileType) {
1074 var _url = null; 1070 var _url = null;
1075 var _queryParams = new core.Map(); 1071 var _queryParams = new core.Map();
1076 var _uploadMedia = null; 1072 var _uploadMedia = null;
1077 var _uploadOptions = null; 1073 var _uploadOptions = null;
1078 var _downloadOptions = common.DownloadOptions.Metadata; 1074 var _downloadOptions = commons.DownloadOptions.Metadata;
1079 var _body = null; 1075 var _body = null;
1080 1076
1081 if (request != null) { 1077 if (request != null) {
1082 _body = convert.JSON.encode((request).toJson()); 1078 _body = convert.JSON.encode((request).toJson());
1083 } 1079 }
1084 if (packageName == null) { 1080 if (packageName == null) {
1085 throw new core.ArgumentError("Parameter packageName is required."); 1081 throw new core.ArgumentError("Parameter packageName is required.");
1086 } 1082 }
1087 if (editId == null) { 1083 if (editId == null) {
1088 throw new core.ArgumentError("Parameter editId is required."); 1084 throw new core.ArgumentError("Parameter editId is required.");
1089 } 1085 }
1090 if (apkVersionCode == null) { 1086 if (apkVersionCode == null) {
1091 throw new core.ArgumentError("Parameter apkVersionCode is required."); 1087 throw new core.ArgumentError("Parameter apkVersionCode is required.");
1092 } 1088 }
1093 if (expansionFileType == null) { 1089 if (expansionFileType == null) {
1094 throw new core.ArgumentError("Parameter expansionFileType is required."); 1090 throw new core.ArgumentError("Parameter expansionFileType is required.");
1095 } 1091 }
1096 1092
1097 1093
1098 _url = common_internal.Escaper.ecapeVariable('$packageName') + '/edits/' + c ommon_internal.Escaper.ecapeVariable('$editId') + '/apks/' + common_internal.Esc aper.ecapeVariable('$apkVersionCode') + '/expansionFiles/' + common_internal.Esc aper.ecapeVariable('$expansionFileType'); 1094 _url = commons.Escaper.ecapeVariable('$packageName') + '/edits/' + commons.E scaper.ecapeVariable('$editId') + '/apks/' + commons.Escaper.ecapeVariable('$apk VersionCode') + '/expansionFiles/' + commons.Escaper.ecapeVariable('$expansionFi leType');
1099 1095
1100 var _response = _requester.request(_url, 1096 var _response = _requester.request(_url,
1101 "PATCH", 1097 "PATCH",
1102 body: _body, 1098 body: _body,
1103 queryParams: _queryParams, 1099 queryParams: _queryParams,
1104 uploadOptions: _uploadOptions, 1100 uploadOptions: _uploadOptions,
1105 uploadMedia: _uploadMedia, 1101 uploadMedia: _uploadMedia,
1106 downloadOptions: _downloadOptions); 1102 downloadOptions: _downloadOptions);
1107 return _response.then((data) => new ExpansionFile.fromJson(data)); 1103 return _response.then((data) => new ExpansionFile.fromJson(data));
1108 } 1104 }
(...skipping 14 matching lines...) Expand all
1123 * [apkVersionCode] - The version code of the APK whose Expansion File 1119 * [apkVersionCode] - The version code of the APK whose Expansion File
1124 * configuration is being read or modified. 1120 * configuration is being read or modified.
1125 * 1121 *
1126 * [expansionFileType] - null 1122 * [expansionFileType] - null
1127 * Possible string values are: 1123 * Possible string values are:
1128 * - "main" 1124 * - "main"
1129 * - "patch" 1125 * - "patch"
1130 * 1126 *
1131 * Completes with a [ExpansionFile]. 1127 * Completes with a [ExpansionFile].
1132 * 1128 *
1133 * Completes with a [common.ApiRequestError] if the API endpoint returned an 1129 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
1134 * error. 1130 * error.
1135 * 1131 *
1136 * If the used [http.Client] completes with an error when making a REST call, 1132 * If the used [http.Client] completes with an error when making a REST call,
1137 * this method will complete with the same error. 1133 * this method will complete with the same error.
1138 */ 1134 */
1139 async.Future<ExpansionFile> update(ExpansionFile request, core.String packageN ame, core.String editId, core.int apkVersionCode, core.String expansionFileType) { 1135 async.Future<ExpansionFile> update(ExpansionFile request, core.String packageN ame, core.String editId, core.int apkVersionCode, core.String expansionFileType) {
1140 var _url = null; 1136 var _url = null;
1141 var _queryParams = new core.Map(); 1137 var _queryParams = new core.Map();
1142 var _uploadMedia = null; 1138 var _uploadMedia = null;
1143 var _uploadOptions = null; 1139 var _uploadOptions = null;
1144 var _downloadOptions = common.DownloadOptions.Metadata; 1140 var _downloadOptions = commons.DownloadOptions.Metadata;
1145 var _body = null; 1141 var _body = null;
1146 1142
1147 if (request != null) { 1143 if (request != null) {
1148 _body = convert.JSON.encode((request).toJson()); 1144 _body = convert.JSON.encode((request).toJson());
1149 } 1145 }
1150 if (packageName == null) { 1146 if (packageName == null) {
1151 throw new core.ArgumentError("Parameter packageName is required."); 1147 throw new core.ArgumentError("Parameter packageName is required.");
1152 } 1148 }
1153 if (editId == null) { 1149 if (editId == null) {
1154 throw new core.ArgumentError("Parameter editId is required."); 1150 throw new core.ArgumentError("Parameter editId is required.");
1155 } 1151 }
1156 if (apkVersionCode == null) { 1152 if (apkVersionCode == null) {
1157 throw new core.ArgumentError("Parameter apkVersionCode is required."); 1153 throw new core.ArgumentError("Parameter apkVersionCode is required.");
1158 } 1154 }
1159 if (expansionFileType == null) { 1155 if (expansionFileType == null) {
1160 throw new core.ArgumentError("Parameter expansionFileType is required."); 1156 throw new core.ArgumentError("Parameter expansionFileType is required.");
1161 } 1157 }
1162 1158
1163 1159
1164 _url = common_internal.Escaper.ecapeVariable('$packageName') + '/edits/' + c ommon_internal.Escaper.ecapeVariable('$editId') + '/apks/' + common_internal.Esc aper.ecapeVariable('$apkVersionCode') + '/expansionFiles/' + common_internal.Esc aper.ecapeVariable('$expansionFileType'); 1160 _url = commons.Escaper.ecapeVariable('$packageName') + '/edits/' + commons.E scaper.ecapeVariable('$editId') + '/apks/' + commons.Escaper.ecapeVariable('$apk VersionCode') + '/expansionFiles/' + commons.Escaper.ecapeVariable('$expansionFi leType');
1165 1161
1166 var _response = _requester.request(_url, 1162 var _response = _requester.request(_url,
1167 "PUT", 1163 "PUT",
1168 body: _body, 1164 body: _body,
1169 queryParams: _queryParams, 1165 queryParams: _queryParams,
1170 uploadOptions: _uploadOptions, 1166 uploadOptions: _uploadOptions,
1171 uploadMedia: _uploadMedia, 1167 uploadMedia: _uploadMedia,
1172 downloadOptions: _downloadOptions); 1168 downloadOptions: _downloadOptions);
1173 return _response.then((data) => new ExpansionFile.fromJson(data)); 1169 return _response.then((data) => new ExpansionFile.fromJson(data));
1174 } 1170 }
(...skipping 16 matching lines...) Expand all
1191 * - "main" 1187 * - "main"
1192 * - "patch" 1188 * - "patch"
1193 * 1189 *
1194 * [uploadMedia] - The media to upload. 1190 * [uploadMedia] - The media to upload.
1195 * 1191 *
1196 * [uploadOptions] - Options for the media upload. Streaming Media without the 1192 * [uploadOptions] - Options for the media upload. Streaming Media without the
1197 * length being known ahead of time is only supported via resumable uploads. 1193 * length being known ahead of time is only supported via resumable uploads.
1198 * 1194 *
1199 * Completes with a [ExpansionFilesUploadResponse]. 1195 * Completes with a [ExpansionFilesUploadResponse].
1200 * 1196 *
1201 * Completes with a [common.ApiRequestError] if the API endpoint returned an 1197 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
1202 * error. 1198 * error.
1203 * 1199 *
1204 * If the used [http.Client] completes with an error when making a REST call, 1200 * If the used [http.Client] completes with an error when making a REST call,
1205 * this method will complete with the same error. 1201 * this method will complete with the same error.
1206 */ 1202 */
1207 async.Future<ExpansionFilesUploadResponse> upload(core.String packageName, cor e.String editId, core.int apkVersionCode, core.String expansionFileType, {common .UploadOptions uploadOptions : common.UploadOptions.Default, common.Media upload Media}) { 1203 async.Future<ExpansionFilesUploadResponse> upload(core.String packageName, cor e.String editId, core.int apkVersionCode, core.String expansionFileType, {common s.UploadOptions uploadOptions : commons.UploadOptions.Default, commons.Media upl oadMedia}) {
1208 var _url = null; 1204 var _url = null;
1209 var _queryParams = new core.Map(); 1205 var _queryParams = new core.Map();
1210 var _uploadMedia = null; 1206 var _uploadMedia = null;
1211 var _uploadOptions = null; 1207 var _uploadOptions = null;
1212 var _downloadOptions = common.DownloadOptions.Metadata; 1208 var _downloadOptions = commons.DownloadOptions.Metadata;
1213 var _body = null; 1209 var _body = null;
1214 1210
1215 if (packageName == null) { 1211 if (packageName == null) {
1216 throw new core.ArgumentError("Parameter packageName is required."); 1212 throw new core.ArgumentError("Parameter packageName is required.");
1217 } 1213 }
1218 if (editId == null) { 1214 if (editId == null) {
1219 throw new core.ArgumentError("Parameter editId is required."); 1215 throw new core.ArgumentError("Parameter editId is required.");
1220 } 1216 }
1221 if (apkVersionCode == null) { 1217 if (apkVersionCode == null) {
1222 throw new core.ArgumentError("Parameter apkVersionCode is required."); 1218 throw new core.ArgumentError("Parameter apkVersionCode is required.");
1223 } 1219 }
1224 if (expansionFileType == null) { 1220 if (expansionFileType == null) {
1225 throw new core.ArgumentError("Parameter expansionFileType is required."); 1221 throw new core.ArgumentError("Parameter expansionFileType is required.");
1226 } 1222 }
1227 1223
1228 _uploadMedia = uploadMedia; 1224 _uploadMedia = uploadMedia;
1229 _uploadOptions = uploadOptions; 1225 _uploadOptions = uploadOptions;
1230 1226
1231 if (_uploadMedia == null) { 1227 if (_uploadMedia == null) {
1232 _url = common_internal.Escaper.ecapeVariable('$packageName') + '/edits/' + common_internal.Escaper.ecapeVariable('$editId') + '/apks/' + common_internal.E scaper.ecapeVariable('$apkVersionCode') + '/expansionFiles/' + common_internal.E scaper.ecapeVariable('$expansionFileType'); 1228 _url = commons.Escaper.ecapeVariable('$packageName') + '/edits/' + commons .Escaper.ecapeVariable('$editId') + '/apks/' + commons.Escaper.ecapeVariable('$a pkVersionCode') + '/expansionFiles/' + commons.Escaper.ecapeVariable('$expansion FileType');
1233 } else if (_uploadOptions is common.ResumableUploadOptions) { 1229 } else if (_uploadOptions is commons.ResumableUploadOptions) {
1234 _url = '/resumable/upload/androidpublisher/v2/applications/' + common_inte rnal.Escaper.ecapeVariable('$packageName') + '/edits/' + common_internal.Escaper .ecapeVariable('$editId') + '/apks/' + common_internal.Escaper.ecapeVariable('$a pkVersionCode') + '/expansionFiles/' + common_internal.Escaper.ecapeVariable('$e xpansionFileType'); 1230 _url = '/resumable/upload/androidpublisher/v2/applications/' + commons.Esc aper.ecapeVariable('$packageName') + '/edits/' + commons.Escaper.ecapeVariable(' $editId') + '/apks/' + commons.Escaper.ecapeVariable('$apkVersionCode') + '/expa nsionFiles/' + commons.Escaper.ecapeVariable('$expansionFileType');
1235 } else { 1231 } else {
1236 _url = '/upload/androidpublisher/v2/applications/' + common_internal.Escap er.ecapeVariable('$packageName') + '/edits/' + common_internal.Escaper.ecapeVari able('$editId') + '/apks/' + common_internal.Escaper.ecapeVariable('$apkVersionC ode') + '/expansionFiles/' + common_internal.Escaper.ecapeVariable('$expansionFi leType'); 1232 _url = '/upload/androidpublisher/v2/applications/' + commons.Escaper.ecape Variable('$packageName') + '/edits/' + commons.Escaper.ecapeVariable('$editId') + '/apks/' + commons.Escaper.ecapeVariable('$apkVersionCode') + '/expansionFiles /' + commons.Escaper.ecapeVariable('$expansionFileType');
1237 } 1233 }
1238 1234
1239 1235
1240 var _response = _requester.request(_url, 1236 var _response = _requester.request(_url,
1241 "POST", 1237 "POST",
1242 body: _body, 1238 body: _body,
1243 queryParams: _queryParams, 1239 queryParams: _queryParams,
1244 uploadOptions: _uploadOptions, 1240 uploadOptions: _uploadOptions,
1245 uploadMedia: _uploadMedia, 1241 uploadMedia: _uploadMedia,
1246 downloadOptions: _downloadOptions); 1242 downloadOptions: _downloadOptions);
1247 return _response.then((data) => new ExpansionFilesUploadResponse.fromJson(da ta)); 1243 return _response.then((data) => new ExpansionFilesUploadResponse.fromJson(da ta));
1248 } 1244 }
1249 1245
1250 } 1246 }
1251 1247
1252 1248
1253 /** Not documented yet. */
1254 class EditsImagesResourceApi { 1249 class EditsImagesResourceApi {
1255 final common_internal.ApiRequester _requester; 1250 final commons.ApiRequester _requester;
1256 1251
1257 EditsImagesResourceApi(common_internal.ApiRequester client) : 1252 EditsImagesResourceApi(commons.ApiRequester client) :
1258 _requester = client; 1253 _requester = client;
1259 1254
1260 /** 1255 /**
1261 * Deletes the image (specified by id) from the edit. 1256 * Deletes the image (specified by id) from the edit.
1262 * 1257 *
1263 * Request parameters: 1258 * Request parameters:
1264 * 1259 *
1265 * [packageName] - Unique identifier for the Android app that is being 1260 * [packageName] - Unique identifier for the Android app that is being
1266 * updated; for example, "com.spiffygame". 1261 * updated; for example, "com.spiffygame".
1267 * 1262 *
(...skipping 10 matching lines...) Expand all
1278 * - "phoneScreenshots" 1273 * - "phoneScreenshots"
1279 * - "promoGraphic" 1274 * - "promoGraphic"
1280 * - "sevenInchScreenshots" 1275 * - "sevenInchScreenshots"
1281 * - "tenInchScreenshots" 1276 * - "tenInchScreenshots"
1282 * - "tvBanner" 1277 * - "tvBanner"
1283 * - "tvScreenshots" 1278 * - "tvScreenshots"
1284 * 1279 *
1285 * [imageId] - Unique identifier an image within the set of images attached to 1280 * [imageId] - Unique identifier an image within the set of images attached to
1286 * this edit. 1281 * this edit.
1287 * 1282 *
1288 * Completes with a [common.ApiRequestError] if the API endpoint returned an 1283 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
1289 * error. 1284 * error.
1290 * 1285 *
1291 * If the used [http.Client] completes with an error when making a REST call, 1286 * If the used [http.Client] completes with an error when making a REST call,
1292 * this method will complete with the same error. 1287 * this method will complete with the same error.
1293 */ 1288 */
1294 async.Future delete(core.String packageName, core.String editId, core.String l anguage, core.String imageType, core.String imageId) { 1289 async.Future delete(core.String packageName, core.String editId, core.String l anguage, core.String imageType, core.String imageId) {
1295 var _url = null; 1290 var _url = null;
1296 var _queryParams = new core.Map(); 1291 var _queryParams = new core.Map();
1297 var _uploadMedia = null; 1292 var _uploadMedia = null;
1298 var _uploadOptions = null; 1293 var _uploadOptions = null;
1299 var _downloadOptions = common.DownloadOptions.Metadata; 1294 var _downloadOptions = commons.DownloadOptions.Metadata;
1300 var _body = null; 1295 var _body = null;
1301 1296
1302 if (packageName == null) { 1297 if (packageName == null) {
1303 throw new core.ArgumentError("Parameter packageName is required."); 1298 throw new core.ArgumentError("Parameter packageName is required.");
1304 } 1299 }
1305 if (editId == null) { 1300 if (editId == null) {
1306 throw new core.ArgumentError("Parameter editId is required."); 1301 throw new core.ArgumentError("Parameter editId is required.");
1307 } 1302 }
1308 if (language == null) { 1303 if (language == null) {
1309 throw new core.ArgumentError("Parameter language is required."); 1304 throw new core.ArgumentError("Parameter language is required.");
1310 } 1305 }
1311 if (imageType == null) { 1306 if (imageType == null) {
1312 throw new core.ArgumentError("Parameter imageType is required."); 1307 throw new core.ArgumentError("Parameter imageType is required.");
1313 } 1308 }
1314 if (imageId == null) { 1309 if (imageId == null) {
1315 throw new core.ArgumentError("Parameter imageId is required."); 1310 throw new core.ArgumentError("Parameter imageId is required.");
1316 } 1311 }
1317 1312
1318 _downloadOptions = null; 1313 _downloadOptions = null;
1319 1314
1320 _url = common_internal.Escaper.ecapeVariable('$packageName') + '/edits/' + c ommon_internal.Escaper.ecapeVariable('$editId') + '/listings/' + common_internal .Escaper.ecapeVariable('$language') + '/' + common_internal.Escaper.ecapeVariabl e('$imageType') + '/' + common_internal.Escaper.ecapeVariable('$imageId'); 1315 _url = commons.Escaper.ecapeVariable('$packageName') + '/edits/' + commons.E scaper.ecapeVariable('$editId') + '/listings/' + commons.Escaper.ecapeVariable(' $language') + '/' + commons.Escaper.ecapeVariable('$imageType') + '/' + commons. Escaper.ecapeVariable('$imageId');
1321 1316
1322 var _response = _requester.request(_url, 1317 var _response = _requester.request(_url,
1323 "DELETE", 1318 "DELETE",
1324 body: _body, 1319 body: _body,
1325 queryParams: _queryParams, 1320 queryParams: _queryParams,
1326 uploadOptions: _uploadOptions, 1321 uploadOptions: _uploadOptions,
1327 uploadMedia: _uploadMedia, 1322 uploadMedia: _uploadMedia,
1328 downloadOptions: _downloadOptions); 1323 downloadOptions: _downloadOptions);
1329 return _response.then((data) => null); 1324 return _response.then((data) => null);
1330 } 1325 }
(...skipping 18 matching lines...) Expand all
1349 * - "icon" 1344 * - "icon"
1350 * - "phoneScreenshots" 1345 * - "phoneScreenshots"
1351 * - "promoGraphic" 1346 * - "promoGraphic"
1352 * - "sevenInchScreenshots" 1347 * - "sevenInchScreenshots"
1353 * - "tenInchScreenshots" 1348 * - "tenInchScreenshots"
1354 * - "tvBanner" 1349 * - "tvBanner"
1355 * - "tvScreenshots" 1350 * - "tvScreenshots"
1356 * 1351 *
1357 * Completes with a [ImagesDeleteAllResponse]. 1352 * Completes with a [ImagesDeleteAllResponse].
1358 * 1353 *
1359 * Completes with a [common.ApiRequestError] if the API endpoint returned an 1354 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
1360 * error. 1355 * error.
1361 * 1356 *
1362 * If the used [http.Client] completes with an error when making a REST call, 1357 * If the used [http.Client] completes with an error when making a REST call,
1363 * this method will complete with the same error. 1358 * this method will complete with the same error.
1364 */ 1359 */
1365 async.Future<ImagesDeleteAllResponse> deleteall(core.String packageName, core. String editId, core.String language, core.String imageType) { 1360 async.Future<ImagesDeleteAllResponse> deleteall(core.String packageName, core. String editId, core.String language, core.String imageType) {
1366 var _url = null; 1361 var _url = null;
1367 var _queryParams = new core.Map(); 1362 var _queryParams = new core.Map();
1368 var _uploadMedia = null; 1363 var _uploadMedia = null;
1369 var _uploadOptions = null; 1364 var _uploadOptions = null;
1370 var _downloadOptions = common.DownloadOptions.Metadata; 1365 var _downloadOptions = commons.DownloadOptions.Metadata;
1371 var _body = null; 1366 var _body = null;
1372 1367
1373 if (packageName == null) { 1368 if (packageName == null) {
1374 throw new core.ArgumentError("Parameter packageName is required."); 1369 throw new core.ArgumentError("Parameter packageName is required.");
1375 } 1370 }
1376 if (editId == null) { 1371 if (editId == null) {
1377 throw new core.ArgumentError("Parameter editId is required."); 1372 throw new core.ArgumentError("Parameter editId is required.");
1378 } 1373 }
1379 if (language == null) { 1374 if (language == null) {
1380 throw new core.ArgumentError("Parameter language is required."); 1375 throw new core.ArgumentError("Parameter language is required.");
1381 } 1376 }
1382 if (imageType == null) { 1377 if (imageType == null) {
1383 throw new core.ArgumentError("Parameter imageType is required."); 1378 throw new core.ArgumentError("Parameter imageType is required.");
1384 } 1379 }
1385 1380
1386 1381
1387 _url = common_internal.Escaper.ecapeVariable('$packageName') + '/edits/' + c ommon_internal.Escaper.ecapeVariable('$editId') + '/listings/' + common_internal .Escaper.ecapeVariable('$language') + '/' + common_internal.Escaper.ecapeVariabl e('$imageType'); 1382 _url = commons.Escaper.ecapeVariable('$packageName') + '/edits/' + commons.E scaper.ecapeVariable('$editId') + '/listings/' + commons.Escaper.ecapeVariable(' $language') + '/' + commons.Escaper.ecapeVariable('$imageType');
1388 1383
1389 var _response = _requester.request(_url, 1384 var _response = _requester.request(_url,
1390 "DELETE", 1385 "DELETE",
1391 body: _body, 1386 body: _body,
1392 queryParams: _queryParams, 1387 queryParams: _queryParams,
1393 uploadOptions: _uploadOptions, 1388 uploadOptions: _uploadOptions,
1394 uploadMedia: _uploadMedia, 1389 uploadMedia: _uploadMedia,
1395 downloadOptions: _downloadOptions); 1390 downloadOptions: _downloadOptions);
1396 return _response.then((data) => new ImagesDeleteAllResponse.fromJson(data)); 1391 return _response.then((data) => new ImagesDeleteAllResponse.fromJson(data));
1397 } 1392 }
(...skipping 18 matching lines...) Expand all
1416 * - "icon" 1411 * - "icon"
1417 * - "phoneScreenshots" 1412 * - "phoneScreenshots"
1418 * - "promoGraphic" 1413 * - "promoGraphic"
1419 * - "sevenInchScreenshots" 1414 * - "sevenInchScreenshots"
1420 * - "tenInchScreenshots" 1415 * - "tenInchScreenshots"
1421 * - "tvBanner" 1416 * - "tvBanner"
1422 * - "tvScreenshots" 1417 * - "tvScreenshots"
1423 * 1418 *
1424 * Completes with a [ImagesListResponse]. 1419 * Completes with a [ImagesListResponse].
1425 * 1420 *
1426 * Completes with a [common.ApiRequestError] if the API endpoint returned an 1421 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
1427 * error. 1422 * error.
1428 * 1423 *
1429 * If the used [http.Client] completes with an error when making a REST call, 1424 * If the used [http.Client] completes with an error when making a REST call,
1430 * this method will complete with the same error. 1425 * this method will complete with the same error.
1431 */ 1426 */
1432 async.Future<ImagesListResponse> list(core.String packageName, core.String edi tId, core.String language, core.String imageType) { 1427 async.Future<ImagesListResponse> list(core.String packageName, core.String edi tId, core.String language, core.String imageType) {
1433 var _url = null; 1428 var _url = null;
1434 var _queryParams = new core.Map(); 1429 var _queryParams = new core.Map();
1435 var _uploadMedia = null; 1430 var _uploadMedia = null;
1436 var _uploadOptions = null; 1431 var _uploadOptions = null;
1437 var _downloadOptions = common.DownloadOptions.Metadata; 1432 var _downloadOptions = commons.DownloadOptions.Metadata;
1438 var _body = null; 1433 var _body = null;
1439 1434
1440 if (packageName == null) { 1435 if (packageName == null) {
1441 throw new core.ArgumentError("Parameter packageName is required."); 1436 throw new core.ArgumentError("Parameter packageName is required.");
1442 } 1437 }
1443 if (editId == null) { 1438 if (editId == null) {
1444 throw new core.ArgumentError("Parameter editId is required."); 1439 throw new core.ArgumentError("Parameter editId is required.");
1445 } 1440 }
1446 if (language == null) { 1441 if (language == null) {
1447 throw new core.ArgumentError("Parameter language is required."); 1442 throw new core.ArgumentError("Parameter language is required.");
1448 } 1443 }
1449 if (imageType == null) { 1444 if (imageType == null) {
1450 throw new core.ArgumentError("Parameter imageType is required."); 1445 throw new core.ArgumentError("Parameter imageType is required.");
1451 } 1446 }
1452 1447
1453 1448
1454 _url = common_internal.Escaper.ecapeVariable('$packageName') + '/edits/' + c ommon_internal.Escaper.ecapeVariable('$editId') + '/listings/' + common_internal .Escaper.ecapeVariable('$language') + '/' + common_internal.Escaper.ecapeVariabl e('$imageType'); 1449 _url = commons.Escaper.ecapeVariable('$packageName') + '/edits/' + commons.E scaper.ecapeVariable('$editId') + '/listings/' + commons.Escaper.ecapeVariable(' $language') + '/' + commons.Escaper.ecapeVariable('$imageType');
1455 1450
1456 var _response = _requester.request(_url, 1451 var _response = _requester.request(_url,
1457 "GET", 1452 "GET",
1458 body: _body, 1453 body: _body,
1459 queryParams: _queryParams, 1454 queryParams: _queryParams,
1460 uploadOptions: _uploadOptions, 1455 uploadOptions: _uploadOptions,
1461 uploadMedia: _uploadMedia, 1456 uploadMedia: _uploadMedia,
1462 downloadOptions: _downloadOptions); 1457 downloadOptions: _downloadOptions);
1463 return _response.then((data) => new ImagesListResponse.fromJson(data)); 1458 return _response.then((data) => new ImagesListResponse.fromJson(data));
1464 } 1459 }
(...skipping 24 matching lines...) Expand all
1489 * - "tvBanner" 1484 * - "tvBanner"
1490 * - "tvScreenshots" 1485 * - "tvScreenshots"
1491 * 1486 *
1492 * [uploadMedia] - The media to upload. 1487 * [uploadMedia] - The media to upload.
1493 * 1488 *
1494 * [uploadOptions] - Options for the media upload. Streaming Media without the 1489 * [uploadOptions] - Options for the media upload. Streaming Media without the
1495 * length being known ahead of time is only supported via resumable uploads. 1490 * length being known ahead of time is only supported via resumable uploads.
1496 * 1491 *
1497 * Completes with a [ImagesUploadResponse]. 1492 * Completes with a [ImagesUploadResponse].
1498 * 1493 *
1499 * Completes with a [common.ApiRequestError] if the API endpoint returned an 1494 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
1500 * error. 1495 * error.
1501 * 1496 *
1502 * If the used [http.Client] completes with an error when making a REST call, 1497 * If the used [http.Client] completes with an error when making a REST call,
1503 * this method will complete with the same error. 1498 * this method will complete with the same error.
1504 */ 1499 */
1505 async.Future<ImagesUploadResponse> upload(core.String packageName, core.String editId, core.String language, core.String imageType, {common.UploadOptions uplo adOptions : common.UploadOptions.Default, common.Media uploadMedia}) { 1500 async.Future<ImagesUploadResponse> upload(core.String packageName, core.String editId, core.String language, core.String imageType, {commons.UploadOptions upl oadOptions : commons.UploadOptions.Default, commons.Media uploadMedia}) {
1506 var _url = null; 1501 var _url = null;
1507 var _queryParams = new core.Map(); 1502 var _queryParams = new core.Map();
1508 var _uploadMedia = null; 1503 var _uploadMedia = null;
1509 var _uploadOptions = null; 1504 var _uploadOptions = null;
1510 var _downloadOptions = common.DownloadOptions.Metadata; 1505 var _downloadOptions = commons.DownloadOptions.Metadata;
1511 var _body = null; 1506 var _body = null;
1512 1507
1513 if (packageName == null) { 1508 if (packageName == null) {
1514 throw new core.ArgumentError("Parameter packageName is required."); 1509 throw new core.ArgumentError("Parameter packageName is required.");
1515 } 1510 }
1516 if (editId == null) { 1511 if (editId == null) {
1517 throw new core.ArgumentError("Parameter editId is required."); 1512 throw new core.ArgumentError("Parameter editId is required.");
1518 } 1513 }
1519 if (language == null) { 1514 if (language == null) {
1520 throw new core.ArgumentError("Parameter language is required."); 1515 throw new core.ArgumentError("Parameter language is required.");
1521 } 1516 }
1522 if (imageType == null) { 1517 if (imageType == null) {
1523 throw new core.ArgumentError("Parameter imageType is required."); 1518 throw new core.ArgumentError("Parameter imageType is required.");
1524 } 1519 }
1525 1520
1526 _uploadMedia = uploadMedia; 1521 _uploadMedia = uploadMedia;
1527 _uploadOptions = uploadOptions; 1522 _uploadOptions = uploadOptions;
1528 1523
1529 if (_uploadMedia == null) { 1524 if (_uploadMedia == null) {
1530 _url = common_internal.Escaper.ecapeVariable('$packageName') + '/edits/' + common_internal.Escaper.ecapeVariable('$editId') + '/listings/' + common_intern al.Escaper.ecapeVariable('$language') + '/' + common_internal.Escaper.ecapeVaria ble('$imageType'); 1525 _url = commons.Escaper.ecapeVariable('$packageName') + '/edits/' + commons .Escaper.ecapeVariable('$editId') + '/listings/' + commons.Escaper.ecapeVariable ('$language') + '/' + commons.Escaper.ecapeVariable('$imageType');
1531 } else if (_uploadOptions is common.ResumableUploadOptions) { 1526 } else if (_uploadOptions is commons.ResumableUploadOptions) {
1532 _url = '/resumable/upload/androidpublisher/v2/applications/' + common_inte rnal.Escaper.ecapeVariable('$packageName') + '/edits/' + common_internal.Escaper .ecapeVariable('$editId') + '/listings/' + common_internal.Escaper.ecapeVariable ('$language') + '/' + common_internal.Escaper.ecapeVariable('$imageType'); 1527 _url = '/resumable/upload/androidpublisher/v2/applications/' + commons.Esc aper.ecapeVariable('$packageName') + '/edits/' + commons.Escaper.ecapeVariable(' $editId') + '/listings/' + commons.Escaper.ecapeVariable('$language') + '/' + co mmons.Escaper.ecapeVariable('$imageType');
1533 } else { 1528 } else {
1534 _url = '/upload/androidpublisher/v2/applications/' + common_internal.Escap er.ecapeVariable('$packageName') + '/edits/' + common_internal.Escaper.ecapeVari able('$editId') + '/listings/' + common_internal.Escaper.ecapeVariable('$languag e') + '/' + common_internal.Escaper.ecapeVariable('$imageType'); 1529 _url = '/upload/androidpublisher/v2/applications/' + commons.Escaper.ecape Variable('$packageName') + '/edits/' + commons.Escaper.ecapeVariable('$editId') + '/listings/' + commons.Escaper.ecapeVariable('$language') + '/' + commons.Esca per.ecapeVariable('$imageType');
1535 } 1530 }
1536 1531
1537 1532
1538 var _response = _requester.request(_url, 1533 var _response = _requester.request(_url,
1539 "POST", 1534 "POST",
1540 body: _body, 1535 body: _body,
1541 queryParams: _queryParams, 1536 queryParams: _queryParams,
1542 uploadOptions: _uploadOptions, 1537 uploadOptions: _uploadOptions,
1543 uploadMedia: _uploadMedia, 1538 uploadMedia: _uploadMedia,
1544 downloadOptions: _downloadOptions); 1539 downloadOptions: _downloadOptions);
1545 return _response.then((data) => new ImagesUploadResponse.fromJson(data)); 1540 return _response.then((data) => new ImagesUploadResponse.fromJson(data));
1546 } 1541 }
1547 1542
1548 } 1543 }
1549 1544
1550 1545
1551 /** Not documented yet. */
1552 class EditsListingsResourceApi { 1546 class EditsListingsResourceApi {
1553 final common_internal.ApiRequester _requester; 1547 final commons.ApiRequester _requester;
1554 1548
1555 EditsListingsResourceApi(common_internal.ApiRequester client) : 1549 EditsListingsResourceApi(commons.ApiRequester client) :
1556 _requester = client; 1550 _requester = client;
1557 1551
1558 /** 1552 /**
1559 * Deletes the specified localized store listing from an edit. 1553 * Deletes the specified localized store listing from an edit.
1560 * 1554 *
1561 * Request parameters: 1555 * Request parameters:
1562 * 1556 *
1563 * [packageName] - Unique identifier for the Android app that is being 1557 * [packageName] - Unique identifier for the Android app that is being
1564 * updated; for example, "com.spiffygame". 1558 * updated; for example, "com.spiffygame".
1565 * 1559 *
1566 * [editId] - Unique identifier for this edit. 1560 * [editId] - Unique identifier for this edit.
1567 * 1561 *
1568 * [language] - The language code (a BCP-47 language tag) of the localized 1562 * [language] - The language code (a BCP-47 language tag) of the localized
1569 * listing to read or modify. For example, to select Austrian German, pass 1563 * listing to read or modify. For example, to select Austrian German, pass
1570 * "de-AT". 1564 * "de-AT".
1571 * 1565 *
1572 * Completes with a [common.ApiRequestError] if the API endpoint returned an 1566 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
1573 * error. 1567 * error.
1574 * 1568 *
1575 * If the used [http.Client] completes with an error when making a REST call, 1569 * If the used [http.Client] completes with an error when making a REST call,
1576 * this method will complete with the same error. 1570 * this method will complete with the same error.
1577 */ 1571 */
1578 async.Future delete(core.String packageName, core.String editId, core.String l anguage) { 1572 async.Future delete(core.String packageName, core.String editId, core.String l anguage) {
1579 var _url = null; 1573 var _url = null;
1580 var _queryParams = new core.Map(); 1574 var _queryParams = new core.Map();
1581 var _uploadMedia = null; 1575 var _uploadMedia = null;
1582 var _uploadOptions = null; 1576 var _uploadOptions = null;
1583 var _downloadOptions = common.DownloadOptions.Metadata; 1577 var _downloadOptions = commons.DownloadOptions.Metadata;
1584 var _body = null; 1578 var _body = null;
1585 1579
1586 if (packageName == null) { 1580 if (packageName == null) {
1587 throw new core.ArgumentError("Parameter packageName is required."); 1581 throw new core.ArgumentError("Parameter packageName is required.");
1588 } 1582 }
1589 if (editId == null) { 1583 if (editId == null) {
1590 throw new core.ArgumentError("Parameter editId is required."); 1584 throw new core.ArgumentError("Parameter editId is required.");
1591 } 1585 }
1592 if (language == null) { 1586 if (language == null) {
1593 throw new core.ArgumentError("Parameter language is required."); 1587 throw new core.ArgumentError("Parameter language is required.");
1594 } 1588 }
1595 1589
1596 _downloadOptions = null; 1590 _downloadOptions = null;
1597 1591
1598 _url = common_internal.Escaper.ecapeVariable('$packageName') + '/edits/' + c ommon_internal.Escaper.ecapeVariable('$editId') + '/listings/' + common_internal .Escaper.ecapeVariable('$language'); 1592 _url = commons.Escaper.ecapeVariable('$packageName') + '/edits/' + commons.E scaper.ecapeVariable('$editId') + '/listings/' + commons.Escaper.ecapeVariable(' $language');
1599 1593
1600 var _response = _requester.request(_url, 1594 var _response = _requester.request(_url,
1601 "DELETE", 1595 "DELETE",
1602 body: _body, 1596 body: _body,
1603 queryParams: _queryParams, 1597 queryParams: _queryParams,
1604 uploadOptions: _uploadOptions, 1598 uploadOptions: _uploadOptions,
1605 uploadMedia: _uploadMedia, 1599 uploadMedia: _uploadMedia,
1606 downloadOptions: _downloadOptions); 1600 downloadOptions: _downloadOptions);
1607 return _response.then((data) => null); 1601 return _response.then((data) => null);
1608 } 1602 }
1609 1603
1610 /** 1604 /**
1611 * Deletes all localized listings from an edit. 1605 * Deletes all localized listings from an edit.
1612 * 1606 *
1613 * Request parameters: 1607 * Request parameters:
1614 * 1608 *
1615 * [packageName] - Unique identifier for the Android app that is being 1609 * [packageName] - Unique identifier for the Android app that is being
1616 * updated; for example, "com.spiffygame". 1610 * updated; for example, "com.spiffygame".
1617 * 1611 *
1618 * [editId] - Unique identifier for this edit. 1612 * [editId] - Unique identifier for this edit.
1619 * 1613 *
1620 * Completes with a [common.ApiRequestError] if the API endpoint returned an 1614 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
1621 * error. 1615 * error.
1622 * 1616 *
1623 * If the used [http.Client] completes with an error when making a REST call, 1617 * If the used [http.Client] completes with an error when making a REST call,
1624 * this method will complete with the same error. 1618 * this method will complete with the same error.
1625 */ 1619 */
1626 async.Future deleteall(core.String packageName, core.String editId) { 1620 async.Future deleteall(core.String packageName, core.String editId) {
1627 var _url = null; 1621 var _url = null;
1628 var _queryParams = new core.Map(); 1622 var _queryParams = new core.Map();
1629 var _uploadMedia = null; 1623 var _uploadMedia = null;
1630 var _uploadOptions = null; 1624 var _uploadOptions = null;
1631 var _downloadOptions = common.DownloadOptions.Metadata; 1625 var _downloadOptions = commons.DownloadOptions.Metadata;
1632 var _body = null; 1626 var _body = null;
1633 1627
1634 if (packageName == null) { 1628 if (packageName == null) {
1635 throw new core.ArgumentError("Parameter packageName is required."); 1629 throw new core.ArgumentError("Parameter packageName is required.");
1636 } 1630 }
1637 if (editId == null) { 1631 if (editId == null) {
1638 throw new core.ArgumentError("Parameter editId is required."); 1632 throw new core.ArgumentError("Parameter editId is required.");
1639 } 1633 }
1640 1634
1641 _downloadOptions = null; 1635 _downloadOptions = null;
1642 1636
1643 _url = common_internal.Escaper.ecapeVariable('$packageName') + '/edits/' + c ommon_internal.Escaper.ecapeVariable('$editId') + '/listings'; 1637 _url = commons.Escaper.ecapeVariable('$packageName') + '/edits/' + commons.E scaper.ecapeVariable('$editId') + '/listings';
1644 1638
1645 var _response = _requester.request(_url, 1639 var _response = _requester.request(_url,
1646 "DELETE", 1640 "DELETE",
1647 body: _body, 1641 body: _body,
1648 queryParams: _queryParams, 1642 queryParams: _queryParams,
1649 uploadOptions: _uploadOptions, 1643 uploadOptions: _uploadOptions,
1650 uploadMedia: _uploadMedia, 1644 uploadMedia: _uploadMedia,
1651 downloadOptions: _downloadOptions); 1645 downloadOptions: _downloadOptions);
1652 return _response.then((data) => null); 1646 return _response.then((data) => null);
1653 } 1647 }
1654 1648
1655 /** 1649 /**
1656 * Fetches information about a localized store listing. 1650 * Fetches information about a localized store listing.
1657 * 1651 *
1658 * Request parameters: 1652 * Request parameters:
1659 * 1653 *
1660 * [packageName] - Unique identifier for the Android app that is being 1654 * [packageName] - Unique identifier for the Android app that is being
1661 * updated; for example, "com.spiffygame". 1655 * updated; for example, "com.spiffygame".
1662 * 1656 *
1663 * [editId] - Unique identifier for this edit. 1657 * [editId] - Unique identifier for this edit.
1664 * 1658 *
1665 * [language] - The language code (a BCP-47 language tag) of the localized 1659 * [language] - The language code (a BCP-47 language tag) of the localized
1666 * listing to read or modify. For example, to select Austrian German, pass 1660 * listing to read or modify. For example, to select Austrian German, pass
1667 * "de-AT". 1661 * "de-AT".
1668 * 1662 *
1669 * Completes with a [Listing]. 1663 * Completes with a [Listing].
1670 * 1664 *
1671 * Completes with a [common.ApiRequestError] if the API endpoint returned an 1665 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
1672 * error. 1666 * error.
1673 * 1667 *
1674 * If the used [http.Client] completes with an error when making a REST call, 1668 * If the used [http.Client] completes with an error when making a REST call,
1675 * this method will complete with the same error. 1669 * this method will complete with the same error.
1676 */ 1670 */
1677 async.Future<Listing> get(core.String packageName, core.String editId, core.St ring language) { 1671 async.Future<Listing> get(core.String packageName, core.String editId, core.St ring language) {
1678 var _url = null; 1672 var _url = null;
1679 var _queryParams = new core.Map(); 1673 var _queryParams = new core.Map();
1680 var _uploadMedia = null; 1674 var _uploadMedia = null;
1681 var _uploadOptions = null; 1675 var _uploadOptions = null;
1682 var _downloadOptions = common.DownloadOptions.Metadata; 1676 var _downloadOptions = commons.DownloadOptions.Metadata;
1683 var _body = null; 1677 var _body = null;
1684 1678
1685 if (packageName == null) { 1679 if (packageName == null) {
1686 throw new core.ArgumentError("Parameter packageName is required."); 1680 throw new core.ArgumentError("Parameter packageName is required.");
1687 } 1681 }
1688 if (editId == null) { 1682 if (editId == null) {
1689 throw new core.ArgumentError("Parameter editId is required."); 1683 throw new core.ArgumentError("Parameter editId is required.");
1690 } 1684 }
1691 if (language == null) { 1685 if (language == null) {
1692 throw new core.ArgumentError("Parameter language is required."); 1686 throw new core.ArgumentError("Parameter language is required.");
1693 } 1687 }
1694 1688
1695 1689
1696 _url = common_internal.Escaper.ecapeVariable('$packageName') + '/edits/' + c ommon_internal.Escaper.ecapeVariable('$editId') + '/listings/' + common_internal .Escaper.ecapeVariable('$language'); 1690 _url = commons.Escaper.ecapeVariable('$packageName') + '/edits/' + commons.E scaper.ecapeVariable('$editId') + '/listings/' + commons.Escaper.ecapeVariable(' $language');
1697 1691
1698 var _response = _requester.request(_url, 1692 var _response = _requester.request(_url,
1699 "GET", 1693 "GET",
1700 body: _body, 1694 body: _body,
1701 queryParams: _queryParams, 1695 queryParams: _queryParams,
1702 uploadOptions: _uploadOptions, 1696 uploadOptions: _uploadOptions,
1703 uploadMedia: _uploadMedia, 1697 uploadMedia: _uploadMedia,
1704 downloadOptions: _downloadOptions); 1698 downloadOptions: _downloadOptions);
1705 return _response.then((data) => new Listing.fromJson(data)); 1699 return _response.then((data) => new Listing.fromJson(data));
1706 } 1700 }
1707 1701
1708 /** 1702 /**
1709 * Returns all of the localized store listings attached to this edit. 1703 * Returns all of the localized store listings attached to this edit.
1710 * 1704 *
1711 * Request parameters: 1705 * Request parameters:
1712 * 1706 *
1713 * [packageName] - Unique identifier for the Android app that is being 1707 * [packageName] - Unique identifier for the Android app that is being
1714 * updated; for example, "com.spiffygame". 1708 * updated; for example, "com.spiffygame".
1715 * 1709 *
1716 * [editId] - Unique identifier for this edit. 1710 * [editId] - Unique identifier for this edit.
1717 * 1711 *
1718 * Completes with a [ListingsListResponse]. 1712 * Completes with a [ListingsListResponse].
1719 * 1713 *
1720 * Completes with a [common.ApiRequestError] if the API endpoint returned an 1714 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
1721 * error. 1715 * error.
1722 * 1716 *
1723 * If the used [http.Client] completes with an error when making a REST call, 1717 * If the used [http.Client] completes with an error when making a REST call,
1724 * this method will complete with the same error. 1718 * this method will complete with the same error.
1725 */ 1719 */
1726 async.Future<ListingsListResponse> list(core.String packageName, core.String e ditId) { 1720 async.Future<ListingsListResponse> list(core.String packageName, core.String e ditId) {
1727 var _url = null; 1721 var _url = null;
1728 var _queryParams = new core.Map(); 1722 var _queryParams = new core.Map();
1729 var _uploadMedia = null; 1723 var _uploadMedia = null;
1730 var _uploadOptions = null; 1724 var _uploadOptions = null;
1731 var _downloadOptions = common.DownloadOptions.Metadata; 1725 var _downloadOptions = commons.DownloadOptions.Metadata;
1732 var _body = null; 1726 var _body = null;
1733 1727
1734 if (packageName == null) { 1728 if (packageName == null) {
1735 throw new core.ArgumentError("Parameter packageName is required."); 1729 throw new core.ArgumentError("Parameter packageName is required.");
1736 } 1730 }
1737 if (editId == null) { 1731 if (editId == null) {
1738 throw new core.ArgumentError("Parameter editId is required."); 1732 throw new core.ArgumentError("Parameter editId is required.");
1739 } 1733 }
1740 1734
1741 1735
1742 _url = common_internal.Escaper.ecapeVariable('$packageName') + '/edits/' + c ommon_internal.Escaper.ecapeVariable('$editId') + '/listings'; 1736 _url = commons.Escaper.ecapeVariable('$packageName') + '/edits/' + commons.E scaper.ecapeVariable('$editId') + '/listings';
1743 1737
1744 var _response = _requester.request(_url, 1738 var _response = _requester.request(_url,
1745 "GET", 1739 "GET",
1746 body: _body, 1740 body: _body,
1747 queryParams: _queryParams, 1741 queryParams: _queryParams,
1748 uploadOptions: _uploadOptions, 1742 uploadOptions: _uploadOptions,
1749 uploadMedia: _uploadMedia, 1743 uploadMedia: _uploadMedia,
1750 downloadOptions: _downloadOptions); 1744 downloadOptions: _downloadOptions);
1751 return _response.then((data) => new ListingsListResponse.fromJson(data)); 1745 return _response.then((data) => new ListingsListResponse.fromJson(data));
1752 } 1746 }
(...skipping 10 matching lines...) Expand all
1763 * updated; for example, "com.spiffygame". 1757 * updated; for example, "com.spiffygame".
1764 * 1758 *
1765 * [editId] - Unique identifier for this edit. 1759 * [editId] - Unique identifier for this edit.
1766 * 1760 *
1767 * [language] - The language code (a BCP-47 language tag) of the localized 1761 * [language] - The language code (a BCP-47 language tag) of the localized
1768 * listing to read or modify. For example, to select Austrian German, pass 1762 * listing to read or modify. For example, to select Austrian German, pass
1769 * "de-AT". 1763 * "de-AT".
1770 * 1764 *
1771 * Completes with a [Listing]. 1765 * Completes with a [Listing].
1772 * 1766 *
1773 * Completes with a [common.ApiRequestError] if the API endpoint returned an 1767 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
1774 * error. 1768 * error.
1775 * 1769 *
1776 * If the used [http.Client] completes with an error when making a REST call, 1770 * If the used [http.Client] completes with an error when making a REST call,
1777 * this method will complete with the same error. 1771 * this method will complete with the same error.
1778 */ 1772 */
1779 async.Future<Listing> patch(Listing request, core.String packageName, core.Str ing editId, core.String language) { 1773 async.Future<Listing> patch(Listing request, core.String packageName, core.Str ing editId, core.String language) {
1780 var _url = null; 1774 var _url = null;
1781 var _queryParams = new core.Map(); 1775 var _queryParams = new core.Map();
1782 var _uploadMedia = null; 1776 var _uploadMedia = null;
1783 var _uploadOptions = null; 1777 var _uploadOptions = null;
1784 var _downloadOptions = common.DownloadOptions.Metadata; 1778 var _downloadOptions = commons.DownloadOptions.Metadata;
1785 var _body = null; 1779 var _body = null;
1786 1780
1787 if (request != null) { 1781 if (request != null) {
1788 _body = convert.JSON.encode((request).toJson()); 1782 _body = convert.JSON.encode((request).toJson());
1789 } 1783 }
1790 if (packageName == null) { 1784 if (packageName == null) {
1791 throw new core.ArgumentError("Parameter packageName is required."); 1785 throw new core.ArgumentError("Parameter packageName is required.");
1792 } 1786 }
1793 if (editId == null) { 1787 if (editId == null) {
1794 throw new core.ArgumentError("Parameter editId is required."); 1788 throw new core.ArgumentError("Parameter editId is required.");
1795 } 1789 }
1796 if (language == null) { 1790 if (language == null) {
1797 throw new core.ArgumentError("Parameter language is required."); 1791 throw new core.ArgumentError("Parameter language is required.");
1798 } 1792 }
1799 1793
1800 1794
1801 _url = common_internal.Escaper.ecapeVariable('$packageName') + '/edits/' + c ommon_internal.Escaper.ecapeVariable('$editId') + '/listings/' + common_internal .Escaper.ecapeVariable('$language'); 1795 _url = commons.Escaper.ecapeVariable('$packageName') + '/edits/' + commons.E scaper.ecapeVariable('$editId') + '/listings/' + commons.Escaper.ecapeVariable(' $language');
1802 1796
1803 var _response = _requester.request(_url, 1797 var _response = _requester.request(_url,
1804 "PATCH", 1798 "PATCH",
1805 body: _body, 1799 body: _body,
1806 queryParams: _queryParams, 1800 queryParams: _queryParams,
1807 uploadOptions: _uploadOptions, 1801 uploadOptions: _uploadOptions,
1808 uploadMedia: _uploadMedia, 1802 uploadMedia: _uploadMedia,
1809 downloadOptions: _downloadOptions); 1803 downloadOptions: _downloadOptions);
1810 return _response.then((data) => new Listing.fromJson(data)); 1804 return _response.then((data) => new Listing.fromJson(data));
1811 } 1805 }
1812 1806
1813 /** 1807 /**
1814 * Creates or updates a localized store listing. 1808 * Creates or updates a localized store listing.
1815 * 1809 *
1816 * [request] - The metadata request object. 1810 * [request] - The metadata request object.
1817 * 1811 *
1818 * Request parameters: 1812 * Request parameters:
1819 * 1813 *
1820 * [packageName] - Unique identifier for the Android app that is being 1814 * [packageName] - Unique identifier for the Android app that is being
1821 * updated; for example, "com.spiffygame". 1815 * updated; for example, "com.spiffygame".
1822 * 1816 *
1823 * [editId] - Unique identifier for this edit. 1817 * [editId] - Unique identifier for this edit.
1824 * 1818 *
1825 * [language] - The language code (a BCP-47 language tag) of the localized 1819 * [language] - The language code (a BCP-47 language tag) of the localized
1826 * listing to read or modify. For example, to select Austrian German, pass 1820 * listing to read or modify. For example, to select Austrian German, pass
1827 * "de-AT". 1821 * "de-AT".
1828 * 1822 *
1829 * Completes with a [Listing]. 1823 * Completes with a [Listing].
1830 * 1824 *
1831 * Completes with a [common.ApiRequestError] if the API endpoint returned an 1825 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
1832 * error. 1826 * error.
1833 * 1827 *
1834 * If the used [http.Client] completes with an error when making a REST call, 1828 * If the used [http.Client] completes with an error when making a REST call,
1835 * this method will complete with the same error. 1829 * this method will complete with the same error.
1836 */ 1830 */
1837 async.Future<Listing> update(Listing request, core.String packageName, core.St ring editId, core.String language) { 1831 async.Future<Listing> update(Listing request, core.String packageName, core.St ring editId, core.String language) {
1838 var _url = null; 1832 var _url = null;
1839 var _queryParams = new core.Map(); 1833 var _queryParams = new core.Map();
1840 var _uploadMedia = null; 1834 var _uploadMedia = null;
1841 var _uploadOptions = null; 1835 var _uploadOptions = null;
1842 var _downloadOptions = common.DownloadOptions.Metadata; 1836 var _downloadOptions = commons.DownloadOptions.Metadata;
1843 var _body = null; 1837 var _body = null;
1844 1838
1845 if (request != null) { 1839 if (request != null) {
1846 _body = convert.JSON.encode((request).toJson()); 1840 _body = convert.JSON.encode((request).toJson());
1847 } 1841 }
1848 if (packageName == null) { 1842 if (packageName == null) {
1849 throw new core.ArgumentError("Parameter packageName is required."); 1843 throw new core.ArgumentError("Parameter packageName is required.");
1850 } 1844 }
1851 if (editId == null) { 1845 if (editId == null) {
1852 throw new core.ArgumentError("Parameter editId is required."); 1846 throw new core.ArgumentError("Parameter editId is required.");
1853 } 1847 }
1854 if (language == null) { 1848 if (language == null) {
1855 throw new core.ArgumentError("Parameter language is required."); 1849 throw new core.ArgumentError("Parameter language is required.");
1856 } 1850 }
1857 1851
1858 1852
1859 _url = common_internal.Escaper.ecapeVariable('$packageName') + '/edits/' + c ommon_internal.Escaper.ecapeVariable('$editId') + '/listings/' + common_internal .Escaper.ecapeVariable('$language'); 1853 _url = commons.Escaper.ecapeVariable('$packageName') + '/edits/' + commons.E scaper.ecapeVariable('$editId') + '/listings/' + commons.Escaper.ecapeVariable(' $language');
1860 1854
1861 var _response = _requester.request(_url, 1855 var _response = _requester.request(_url,
1862 "PUT", 1856 "PUT",
1863 body: _body, 1857 body: _body,
1864 queryParams: _queryParams, 1858 queryParams: _queryParams,
1865 uploadOptions: _uploadOptions, 1859 uploadOptions: _uploadOptions,
1866 uploadMedia: _uploadMedia, 1860 uploadMedia: _uploadMedia,
1867 downloadOptions: _downloadOptions); 1861 downloadOptions: _downloadOptions);
1868 return _response.then((data) => new Listing.fromJson(data)); 1862 return _response.then((data) => new Listing.fromJson(data));
1869 } 1863 }
1870 1864
1871 } 1865 }
1872 1866
1873 1867
1874 /** Not documented yet. */
1875 class EditsTestersResourceApi { 1868 class EditsTestersResourceApi {
1876 final common_internal.ApiRequester _requester; 1869 final commons.ApiRequester _requester;
1877 1870
1878 EditsTestersResourceApi(common_internal.ApiRequester client) : 1871 EditsTestersResourceApi(commons.ApiRequester client) :
1879 _requester = client; 1872 _requester = client;
1880 1873
1881 /** 1874 /**
1882 * Not documented yet.
1883 *
1884 * Request parameters: 1875 * Request parameters:
1885 * 1876 *
1886 * [packageName] - Unique identifier for the Android app that is being 1877 * [packageName] - Unique identifier for the Android app that is being
1887 * updated; for example, "com.spiffygame". 1878 * updated; for example, "com.spiffygame".
1888 * 1879 *
1889 * [editId] - Unique identifier for this edit. 1880 * [editId] - Unique identifier for this edit.
1890 * 1881 *
1891 * [track] - null 1882 * [track] - null
1892 * Possible string values are: 1883 * Possible string values are:
1893 * - "alpha" 1884 * - "alpha"
1894 * - "beta" 1885 * - "beta"
1895 * - "production" 1886 * - "production"
1896 * - "rollout" 1887 * - "rollout"
1897 * 1888 *
1898 * Completes with a [Testers]. 1889 * Completes with a [Testers].
1899 * 1890 *
1900 * Completes with a [common.ApiRequestError] if the API endpoint returned an 1891 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
1901 * error. 1892 * error.
1902 * 1893 *
1903 * If the used [http.Client] completes with an error when making a REST call, 1894 * If the used [http.Client] completes with an error when making a REST call,
1904 * this method will complete with the same error. 1895 * this method will complete with the same error.
1905 */ 1896 */
1906 async.Future<Testers> get(core.String packageName, core.String editId, core.St ring track) { 1897 async.Future<Testers> get(core.String packageName, core.String editId, core.St ring track) {
1907 var _url = null; 1898 var _url = null;
1908 var _queryParams = new core.Map(); 1899 var _queryParams = new core.Map();
1909 var _uploadMedia = null; 1900 var _uploadMedia = null;
1910 var _uploadOptions = null; 1901 var _uploadOptions = null;
1911 var _downloadOptions = common.DownloadOptions.Metadata; 1902 var _downloadOptions = commons.DownloadOptions.Metadata;
1912 var _body = null; 1903 var _body = null;
1913 1904
1914 if (packageName == null) { 1905 if (packageName == null) {
1915 throw new core.ArgumentError("Parameter packageName is required."); 1906 throw new core.ArgumentError("Parameter packageName is required.");
1916 } 1907 }
1917 if (editId == null) { 1908 if (editId == null) {
1918 throw new core.ArgumentError("Parameter editId is required."); 1909 throw new core.ArgumentError("Parameter editId is required.");
1919 } 1910 }
1920 if (track == null) { 1911 if (track == null) {
1921 throw new core.ArgumentError("Parameter track is required."); 1912 throw new core.ArgumentError("Parameter track is required.");
1922 } 1913 }
1923 1914
1924 1915
1925 _url = common_internal.Escaper.ecapeVariable('$packageName') + '/edits/' + c ommon_internal.Escaper.ecapeVariable('$editId') + '/testers/' + common_internal. Escaper.ecapeVariable('$track'); 1916 _url = commons.Escaper.ecapeVariable('$packageName') + '/edits/' + commons.E scaper.ecapeVariable('$editId') + '/testers/' + commons.Escaper.ecapeVariable('$ track');
1926 1917
1927 var _response = _requester.request(_url, 1918 var _response = _requester.request(_url,
1928 "GET", 1919 "GET",
1929 body: _body, 1920 body: _body,
1930 queryParams: _queryParams, 1921 queryParams: _queryParams,
1931 uploadOptions: _uploadOptions, 1922 uploadOptions: _uploadOptions,
1932 uploadMedia: _uploadMedia, 1923 uploadMedia: _uploadMedia,
1933 downloadOptions: _downloadOptions); 1924 downloadOptions: _downloadOptions);
1934 return _response.then((data) => new Testers.fromJson(data)); 1925 return _response.then((data) => new Testers.fromJson(data));
1935 } 1926 }
1936 1927
1937 /** 1928 /**
1938 * Not documented yet.
1939 *
1940 * [request] - The metadata request object. 1929 * [request] - The metadata request object.
1941 * 1930 *
1942 * Request parameters: 1931 * Request parameters:
1943 * 1932 *
1944 * [packageName] - Unique identifier for the Android app that is being 1933 * [packageName] - Unique identifier for the Android app that is being
1945 * updated; for example, "com.spiffygame". 1934 * updated; for example, "com.spiffygame".
1946 * 1935 *
1947 * [editId] - Unique identifier for this edit. 1936 * [editId] - Unique identifier for this edit.
1948 * 1937 *
1949 * [track] - null 1938 * [track] - null
1950 * Possible string values are: 1939 * Possible string values are:
1951 * - "alpha" 1940 * - "alpha"
1952 * - "beta" 1941 * - "beta"
1953 * - "production" 1942 * - "production"
1954 * - "rollout" 1943 * - "rollout"
1955 * 1944 *
1956 * Completes with a [Testers]. 1945 * Completes with a [Testers].
1957 * 1946 *
1958 * Completes with a [common.ApiRequestError] if the API endpoint returned an 1947 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
1959 * error. 1948 * error.
1960 * 1949 *
1961 * If the used [http.Client] completes with an error when making a REST call, 1950 * If the used [http.Client] completes with an error when making a REST call,
1962 * this method will complete with the same error. 1951 * this method will complete with the same error.
1963 */ 1952 */
1964 async.Future<Testers> patch(Testers request, core.String packageName, core.Str ing editId, core.String track) { 1953 async.Future<Testers> patch(Testers request, core.String packageName, core.Str ing editId, core.String track) {
1965 var _url = null; 1954 var _url = null;
1966 var _queryParams = new core.Map(); 1955 var _queryParams = new core.Map();
1967 var _uploadMedia = null; 1956 var _uploadMedia = null;
1968 var _uploadOptions = null; 1957 var _uploadOptions = null;
1969 var _downloadOptions = common.DownloadOptions.Metadata; 1958 var _downloadOptions = commons.DownloadOptions.Metadata;
1970 var _body = null; 1959 var _body = null;
1971 1960
1972 if (request != null) { 1961 if (request != null) {
1973 _body = convert.JSON.encode((request).toJson()); 1962 _body = convert.JSON.encode((request).toJson());
1974 } 1963 }
1975 if (packageName == null) { 1964 if (packageName == null) {
1976 throw new core.ArgumentError("Parameter packageName is required."); 1965 throw new core.ArgumentError("Parameter packageName is required.");
1977 } 1966 }
1978 if (editId == null) { 1967 if (editId == null) {
1979 throw new core.ArgumentError("Parameter editId is required."); 1968 throw new core.ArgumentError("Parameter editId is required.");
1980 } 1969 }
1981 if (track == null) { 1970 if (track == null) {
1982 throw new core.ArgumentError("Parameter track is required."); 1971 throw new core.ArgumentError("Parameter track is required.");
1983 } 1972 }
1984 1973
1985 1974
1986 _url = common_internal.Escaper.ecapeVariable('$packageName') + '/edits/' + c ommon_internal.Escaper.ecapeVariable('$editId') + '/testers/' + common_internal. Escaper.ecapeVariable('$track'); 1975 _url = commons.Escaper.ecapeVariable('$packageName') + '/edits/' + commons.E scaper.ecapeVariable('$editId') + '/testers/' + commons.Escaper.ecapeVariable('$ track');
1987 1976
1988 var _response = _requester.request(_url, 1977 var _response = _requester.request(_url,
1989 "PATCH", 1978 "PATCH",
1990 body: _body, 1979 body: _body,
1991 queryParams: _queryParams, 1980 queryParams: _queryParams,
1992 uploadOptions: _uploadOptions, 1981 uploadOptions: _uploadOptions,
1993 uploadMedia: _uploadMedia, 1982 uploadMedia: _uploadMedia,
1994 downloadOptions: _downloadOptions); 1983 downloadOptions: _downloadOptions);
1995 return _response.then((data) => new Testers.fromJson(data)); 1984 return _response.then((data) => new Testers.fromJson(data));
1996 } 1985 }
1997 1986
1998 /** 1987 /**
1999 * Not documented yet.
2000 *
2001 * [request] - The metadata request object. 1988 * [request] - The metadata request object.
2002 * 1989 *
2003 * Request parameters: 1990 * Request parameters:
2004 * 1991 *
2005 * [packageName] - Unique identifier for the Android app that is being 1992 * [packageName] - Unique identifier for the Android app that is being
2006 * updated; for example, "com.spiffygame". 1993 * updated; for example, "com.spiffygame".
2007 * 1994 *
2008 * [editId] - Unique identifier for this edit. 1995 * [editId] - Unique identifier for this edit.
2009 * 1996 *
2010 * [track] - null 1997 * [track] - null
2011 * Possible string values are: 1998 * Possible string values are:
2012 * - "alpha" 1999 * - "alpha"
2013 * - "beta" 2000 * - "beta"
2014 * - "production" 2001 * - "production"
2015 * - "rollout" 2002 * - "rollout"
2016 * 2003 *
2017 * Completes with a [Testers]. 2004 * Completes with a [Testers].
2018 * 2005 *
2019 * Completes with a [common.ApiRequestError] if the API endpoint returned an 2006 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
2020 * error. 2007 * error.
2021 * 2008 *
2022 * If the used [http.Client] completes with an error when making a REST call, 2009 * If the used [http.Client] completes with an error when making a REST call,
2023 * this method will complete with the same error. 2010 * this method will complete with the same error.
2024 */ 2011 */
2025 async.Future<Testers> update(Testers request, core.String packageName, core.St ring editId, core.String track) { 2012 async.Future<Testers> update(Testers request, core.String packageName, core.St ring editId, core.String track) {
2026 var _url = null; 2013 var _url = null;
2027 var _queryParams = new core.Map(); 2014 var _queryParams = new core.Map();
2028 var _uploadMedia = null; 2015 var _uploadMedia = null;
2029 var _uploadOptions = null; 2016 var _uploadOptions = null;
2030 var _downloadOptions = common.DownloadOptions.Metadata; 2017 var _downloadOptions = commons.DownloadOptions.Metadata;
2031 var _body = null; 2018 var _body = null;
2032 2019
2033 if (request != null) { 2020 if (request != null) {
2034 _body = convert.JSON.encode((request).toJson()); 2021 _body = convert.JSON.encode((request).toJson());
2035 } 2022 }
2036 if (packageName == null) { 2023 if (packageName == null) {
2037 throw new core.ArgumentError("Parameter packageName is required."); 2024 throw new core.ArgumentError("Parameter packageName is required.");
2038 } 2025 }
2039 if (editId == null) { 2026 if (editId == null) {
2040 throw new core.ArgumentError("Parameter editId is required."); 2027 throw new core.ArgumentError("Parameter editId is required.");
2041 } 2028 }
2042 if (track == null) { 2029 if (track == null) {
2043 throw new core.ArgumentError("Parameter track is required."); 2030 throw new core.ArgumentError("Parameter track is required.");
2044 } 2031 }
2045 2032
2046 2033
2047 _url = common_internal.Escaper.ecapeVariable('$packageName') + '/edits/' + c ommon_internal.Escaper.ecapeVariable('$editId') + '/testers/' + common_internal. Escaper.ecapeVariable('$track'); 2034 _url = commons.Escaper.ecapeVariable('$packageName') + '/edits/' + commons.E scaper.ecapeVariable('$editId') + '/testers/' + commons.Escaper.ecapeVariable('$ track');
2048 2035
2049 var _response = _requester.request(_url, 2036 var _response = _requester.request(_url,
2050 "PUT", 2037 "PUT",
2051 body: _body, 2038 body: _body,
2052 queryParams: _queryParams, 2039 queryParams: _queryParams,
2053 uploadOptions: _uploadOptions, 2040 uploadOptions: _uploadOptions,
2054 uploadMedia: _uploadMedia, 2041 uploadMedia: _uploadMedia,
2055 downloadOptions: _downloadOptions); 2042 downloadOptions: _downloadOptions);
2056 return _response.then((data) => new Testers.fromJson(data)); 2043 return _response.then((data) => new Testers.fromJson(data));
2057 } 2044 }
2058 2045
2059 } 2046 }
2060 2047
2061 2048
2062 /** Not documented yet. */
2063 class EditsTracksResourceApi { 2049 class EditsTracksResourceApi {
2064 final common_internal.ApiRequester _requester; 2050 final commons.ApiRequester _requester;
2065 2051
2066 EditsTracksResourceApi(common_internal.ApiRequester client) : 2052 EditsTracksResourceApi(commons.ApiRequester client) :
2067 _requester = client; 2053 _requester = client;
2068 2054
2069 /** 2055 /**
2070 * Fetches the track configuration for the specified track type. Includes the 2056 * Fetches the track configuration for the specified track type. Includes the
2071 * APK version codes that are in this track. 2057 * APK version codes that are in this track.
2072 * 2058 *
2073 * Request parameters: 2059 * Request parameters:
2074 * 2060 *
2075 * [packageName] - Unique identifier for the Android app that is being 2061 * [packageName] - Unique identifier for the Android app that is being
2076 * updated; for example, "com.spiffygame". 2062 * updated; for example, "com.spiffygame".
2077 * 2063 *
2078 * [editId] - Unique identifier for this edit. 2064 * [editId] - Unique identifier for this edit.
2079 * 2065 *
2080 * [track] - The track type to read or modify. 2066 * [track] - The track type to read or modify.
2081 * Possible string values are: 2067 * Possible string values are:
2082 * - "alpha" 2068 * - "alpha"
2083 * - "beta" 2069 * - "beta"
2084 * - "production" 2070 * - "production"
2085 * - "rollout" 2071 * - "rollout"
2086 * 2072 *
2087 * Completes with a [Track]. 2073 * Completes with a [Track].
2088 * 2074 *
2089 * Completes with a [common.ApiRequestError] if the API endpoint returned an 2075 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
2090 * error. 2076 * error.
2091 * 2077 *
2092 * If the used [http.Client] completes with an error when making a REST call, 2078 * If the used [http.Client] completes with an error when making a REST call,
2093 * this method will complete with the same error. 2079 * this method will complete with the same error.
2094 */ 2080 */
2095 async.Future<Track> get(core.String packageName, core.String editId, core.Stri ng track) { 2081 async.Future<Track> get(core.String packageName, core.String editId, core.Stri ng track) {
2096 var _url = null; 2082 var _url = null;
2097 var _queryParams = new core.Map(); 2083 var _queryParams = new core.Map();
2098 var _uploadMedia = null; 2084 var _uploadMedia = null;
2099 var _uploadOptions = null; 2085 var _uploadOptions = null;
2100 var _downloadOptions = common.DownloadOptions.Metadata; 2086 var _downloadOptions = commons.DownloadOptions.Metadata;
2101 var _body = null; 2087 var _body = null;
2102 2088
2103 if (packageName == null) { 2089 if (packageName == null) {
2104 throw new core.ArgumentError("Parameter packageName is required."); 2090 throw new core.ArgumentError("Parameter packageName is required.");
2105 } 2091 }
2106 if (editId == null) { 2092 if (editId == null) {
2107 throw new core.ArgumentError("Parameter editId is required."); 2093 throw new core.ArgumentError("Parameter editId is required.");
2108 } 2094 }
2109 if (track == null) { 2095 if (track == null) {
2110 throw new core.ArgumentError("Parameter track is required."); 2096 throw new core.ArgumentError("Parameter track is required.");
2111 } 2097 }
2112 2098
2113 2099
2114 _url = common_internal.Escaper.ecapeVariable('$packageName') + '/edits/' + c ommon_internal.Escaper.ecapeVariable('$editId') + '/tracks/' + common_internal.E scaper.ecapeVariable('$track'); 2100 _url = commons.Escaper.ecapeVariable('$packageName') + '/edits/' + commons.E scaper.ecapeVariable('$editId') + '/tracks/' + commons.Escaper.ecapeVariable('$t rack');
2115 2101
2116 var _response = _requester.request(_url, 2102 var _response = _requester.request(_url,
2117 "GET", 2103 "GET",
2118 body: _body, 2104 body: _body,
2119 queryParams: _queryParams, 2105 queryParams: _queryParams,
2120 uploadOptions: _uploadOptions, 2106 uploadOptions: _uploadOptions,
2121 uploadMedia: _uploadMedia, 2107 uploadMedia: _uploadMedia,
2122 downloadOptions: _downloadOptions); 2108 downloadOptions: _downloadOptions);
2123 return _response.then((data) => new Track.fromJson(data)); 2109 return _response.then((data) => new Track.fromJson(data));
2124 } 2110 }
2125 2111
2126 /** 2112 /**
2127 * Lists all the track configurations for this edit. 2113 * Lists all the track configurations for this edit.
2128 * 2114 *
2129 * Request parameters: 2115 * Request parameters:
2130 * 2116 *
2131 * [packageName] - Unique identifier for the Android app that is being 2117 * [packageName] - Unique identifier for the Android app that is being
2132 * updated; for example, "com.spiffygame". 2118 * updated; for example, "com.spiffygame".
2133 * 2119 *
2134 * [editId] - Unique identifier for this edit. 2120 * [editId] - Unique identifier for this edit.
2135 * 2121 *
2136 * Completes with a [TracksListResponse]. 2122 * Completes with a [TracksListResponse].
2137 * 2123 *
2138 * Completes with a [common.ApiRequestError] if the API endpoint returned an 2124 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
2139 * error. 2125 * error.
2140 * 2126 *
2141 * If the used [http.Client] completes with an error when making a REST call, 2127 * If the used [http.Client] completes with an error when making a REST call,
2142 * this method will complete with the same error. 2128 * this method will complete with the same error.
2143 */ 2129 */
2144 async.Future<TracksListResponse> list(core.String packageName, core.String edi tId) { 2130 async.Future<TracksListResponse> list(core.String packageName, core.String edi tId) {
2145 var _url = null; 2131 var _url = null;
2146 var _queryParams = new core.Map(); 2132 var _queryParams = new core.Map();
2147 var _uploadMedia = null; 2133 var _uploadMedia = null;
2148 var _uploadOptions = null; 2134 var _uploadOptions = null;
2149 var _downloadOptions = common.DownloadOptions.Metadata; 2135 var _downloadOptions = commons.DownloadOptions.Metadata;
2150 var _body = null; 2136 var _body = null;
2151 2137
2152 if (packageName == null) { 2138 if (packageName == null) {
2153 throw new core.ArgumentError("Parameter packageName is required."); 2139 throw new core.ArgumentError("Parameter packageName is required.");
2154 } 2140 }
2155 if (editId == null) { 2141 if (editId == null) {
2156 throw new core.ArgumentError("Parameter editId is required."); 2142 throw new core.ArgumentError("Parameter editId is required.");
2157 } 2143 }
2158 2144
2159 2145
2160 _url = common_internal.Escaper.ecapeVariable('$packageName') + '/edits/' + c ommon_internal.Escaper.ecapeVariable('$editId') + '/tracks'; 2146 _url = commons.Escaper.ecapeVariable('$packageName') + '/edits/' + commons.E scaper.ecapeVariable('$editId') + '/tracks';
2161 2147
2162 var _response = _requester.request(_url, 2148 var _response = _requester.request(_url,
2163 "GET", 2149 "GET",
2164 body: _body, 2150 body: _body,
2165 queryParams: _queryParams, 2151 queryParams: _queryParams,
2166 uploadOptions: _uploadOptions, 2152 uploadOptions: _uploadOptions,
2167 uploadMedia: _uploadMedia, 2153 uploadMedia: _uploadMedia,
2168 downloadOptions: _downloadOptions); 2154 downloadOptions: _downloadOptions);
2169 return _response.then((data) => new TracksListResponse.fromJson(data)); 2155 return _response.then((data) => new TracksListResponse.fromJson(data));
2170 } 2156 }
(...skipping 14 matching lines...) Expand all
2185 * 2171 *
2186 * [track] - The track type to read or modify. 2172 * [track] - The track type to read or modify.
2187 * Possible string values are: 2173 * Possible string values are:
2188 * - "alpha" 2174 * - "alpha"
2189 * - "beta" 2175 * - "beta"
2190 * - "production" 2176 * - "production"
2191 * - "rollout" 2177 * - "rollout"
2192 * 2178 *
2193 * Completes with a [Track]. 2179 * Completes with a [Track].
2194 * 2180 *
2195 * Completes with a [common.ApiRequestError] if the API endpoint returned an 2181 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
2196 * error. 2182 * error.
2197 * 2183 *
2198 * If the used [http.Client] completes with an error when making a REST call, 2184 * If the used [http.Client] completes with an error when making a REST call,
2199 * this method will complete with the same error. 2185 * this method will complete with the same error.
2200 */ 2186 */
2201 async.Future<Track> patch(Track request, core.String packageName, core.String editId, core.String track) { 2187 async.Future<Track> patch(Track request, core.String packageName, core.String editId, core.String track) {
2202 var _url = null; 2188 var _url = null;
2203 var _queryParams = new core.Map(); 2189 var _queryParams = new core.Map();
2204 var _uploadMedia = null; 2190 var _uploadMedia = null;
2205 var _uploadOptions = null; 2191 var _uploadOptions = null;
2206 var _downloadOptions = common.DownloadOptions.Metadata; 2192 var _downloadOptions = commons.DownloadOptions.Metadata;
2207 var _body = null; 2193 var _body = null;
2208 2194
2209 if (request != null) { 2195 if (request != null) {
2210 _body = convert.JSON.encode((request).toJson()); 2196 _body = convert.JSON.encode((request).toJson());
2211 } 2197 }
2212 if (packageName == null) { 2198 if (packageName == null) {
2213 throw new core.ArgumentError("Parameter packageName is required."); 2199 throw new core.ArgumentError("Parameter packageName is required.");
2214 } 2200 }
2215 if (editId == null) { 2201 if (editId == null) {
2216 throw new core.ArgumentError("Parameter editId is required."); 2202 throw new core.ArgumentError("Parameter editId is required.");
2217 } 2203 }
2218 if (track == null) { 2204 if (track == null) {
2219 throw new core.ArgumentError("Parameter track is required."); 2205 throw new core.ArgumentError("Parameter track is required.");
2220 } 2206 }
2221 2207
2222 2208
2223 _url = common_internal.Escaper.ecapeVariable('$packageName') + '/edits/' + c ommon_internal.Escaper.ecapeVariable('$editId') + '/tracks/' + common_internal.E scaper.ecapeVariable('$track'); 2209 _url = commons.Escaper.ecapeVariable('$packageName') + '/edits/' + commons.E scaper.ecapeVariable('$editId') + '/tracks/' + commons.Escaper.ecapeVariable('$t rack');
2224 2210
2225 var _response = _requester.request(_url, 2211 var _response = _requester.request(_url,
2226 "PATCH", 2212 "PATCH",
2227 body: _body, 2213 body: _body,
2228 queryParams: _queryParams, 2214 queryParams: _queryParams,
2229 uploadOptions: _uploadOptions, 2215 uploadOptions: _uploadOptions,
2230 uploadMedia: _uploadMedia, 2216 uploadMedia: _uploadMedia,
2231 downloadOptions: _downloadOptions); 2217 downloadOptions: _downloadOptions);
2232 return _response.then((data) => new Track.fromJson(data)); 2218 return _response.then((data) => new Track.fromJson(data));
2233 } 2219 }
(...skipping 14 matching lines...) Expand all
2248 * 2234 *
2249 * [track] - The track type to read or modify. 2235 * [track] - The track type to read or modify.
2250 * Possible string values are: 2236 * Possible string values are:
2251 * - "alpha" 2237 * - "alpha"
2252 * - "beta" 2238 * - "beta"
2253 * - "production" 2239 * - "production"
2254 * - "rollout" 2240 * - "rollout"
2255 * 2241 *
2256 * Completes with a [Track]. 2242 * Completes with a [Track].
2257 * 2243 *
2258 * Completes with a [common.ApiRequestError] if the API endpoint returned an 2244 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
2259 * error. 2245 * error.
2260 * 2246 *
2261 * If the used [http.Client] completes with an error when making a REST call, 2247 * If the used [http.Client] completes with an error when making a REST call,
2262 * this method will complete with the same error. 2248 * this method will complete with the same error.
2263 */ 2249 */
2264 async.Future<Track> update(Track request, core.String packageName, core.String editId, core.String track) { 2250 async.Future<Track> update(Track request, core.String packageName, core.String editId, core.String track) {
2265 var _url = null; 2251 var _url = null;
2266 var _queryParams = new core.Map(); 2252 var _queryParams = new core.Map();
2267 var _uploadMedia = null; 2253 var _uploadMedia = null;
2268 var _uploadOptions = null; 2254 var _uploadOptions = null;
2269 var _downloadOptions = common.DownloadOptions.Metadata; 2255 var _downloadOptions = commons.DownloadOptions.Metadata;
2270 var _body = null; 2256 var _body = null;
2271 2257
2272 if (request != null) { 2258 if (request != null) {
2273 _body = convert.JSON.encode((request).toJson()); 2259 _body = convert.JSON.encode((request).toJson());
2274 } 2260 }
2275 if (packageName == null) { 2261 if (packageName == null) {
2276 throw new core.ArgumentError("Parameter packageName is required."); 2262 throw new core.ArgumentError("Parameter packageName is required.");
2277 } 2263 }
2278 if (editId == null) { 2264 if (editId == null) {
2279 throw new core.ArgumentError("Parameter editId is required."); 2265 throw new core.ArgumentError("Parameter editId is required.");
2280 } 2266 }
2281 if (track == null) { 2267 if (track == null) {
2282 throw new core.ArgumentError("Parameter track is required."); 2268 throw new core.ArgumentError("Parameter track is required.");
2283 } 2269 }
2284 2270
2285 2271
2286 _url = common_internal.Escaper.ecapeVariable('$packageName') + '/edits/' + c ommon_internal.Escaper.ecapeVariable('$editId') + '/tracks/' + common_internal.E scaper.ecapeVariable('$track'); 2272 _url = commons.Escaper.ecapeVariable('$packageName') + '/edits/' + commons.E scaper.ecapeVariable('$editId') + '/tracks/' + commons.Escaper.ecapeVariable('$t rack');
2287 2273
2288 var _response = _requester.request(_url, 2274 var _response = _requester.request(_url,
2289 "PUT", 2275 "PUT",
2290 body: _body, 2276 body: _body,
2291 queryParams: _queryParams, 2277 queryParams: _queryParams,
2292 uploadOptions: _uploadOptions, 2278 uploadOptions: _uploadOptions,
2293 uploadMedia: _uploadMedia, 2279 uploadMedia: _uploadMedia,
2294 downloadOptions: _downloadOptions); 2280 downloadOptions: _downloadOptions);
2295 return _response.then((data) => new Track.fromJson(data)); 2281 return _response.then((data) => new Track.fromJson(data));
2296 } 2282 }
2297 2283
2298 } 2284 }
2299 2285
2300 2286
2301 /** Not documented yet. */
2302 class InappproductsResourceApi { 2287 class InappproductsResourceApi {
2303 final common_internal.ApiRequester _requester; 2288 final commons.ApiRequester _requester;
2304 2289
2305 InappproductsResourceApi(common_internal.ApiRequester client) : 2290 InappproductsResourceApi(commons.ApiRequester client) :
2306 _requester = client; 2291 _requester = client;
2307 2292
2308 /** 2293 /**
2309 * Not documented yet.
2310 *
2311 * [request] - The metadata request object. 2294 * [request] - The metadata request object.
2312 * 2295 *
2313 * Request parameters: 2296 * Request parameters:
2314 * 2297 *
2315 * Completes with a [InappproductsBatchResponse]. 2298 * Completes with a [InappproductsBatchResponse].
2316 * 2299 *
2317 * Completes with a [common.ApiRequestError] if the API endpoint returned an 2300 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
2318 * error. 2301 * error.
2319 * 2302 *
2320 * If the used [http.Client] completes with an error when making a REST call, 2303 * If the used [http.Client] completes with an error when making a REST call,
2321 * this method will complete with the same error. 2304 * this method will complete with the same error.
2322 */ 2305 */
2323 async.Future<InappproductsBatchResponse> batch(InappproductsBatchRequest reque st) { 2306 async.Future<InappproductsBatchResponse> batch(InappproductsBatchRequest reque st) {
2324 var _url = null; 2307 var _url = null;
2325 var _queryParams = new core.Map(); 2308 var _queryParams = new core.Map();
2326 var _uploadMedia = null; 2309 var _uploadMedia = null;
2327 var _uploadOptions = null; 2310 var _uploadOptions = null;
2328 var _downloadOptions = common.DownloadOptions.Metadata; 2311 var _downloadOptions = commons.DownloadOptions.Metadata;
2329 var _body = null; 2312 var _body = null;
2330 2313
2331 if (request != null) { 2314 if (request != null) {
2332 _body = convert.JSON.encode((request).toJson()); 2315 _body = convert.JSON.encode((request).toJson());
2333 } 2316 }
2334 2317
2335 2318
2336 _url = 'inappproducts/batch'; 2319 _url = 'inappproducts/batch';
2337 2320
2338 var _response = _requester.request(_url, 2321 var _response = _requester.request(_url,
2339 "POST", 2322 "POST",
2340 body: _body, 2323 body: _body,
2341 queryParams: _queryParams, 2324 queryParams: _queryParams,
2342 uploadOptions: _uploadOptions, 2325 uploadOptions: _uploadOptions,
2343 uploadMedia: _uploadMedia, 2326 uploadMedia: _uploadMedia,
2344 downloadOptions: _downloadOptions); 2327 downloadOptions: _downloadOptions);
2345 return _response.then((data) => new InappproductsBatchResponse.fromJson(data )); 2328 return _response.then((data) => new InappproductsBatchResponse.fromJson(data ));
2346 } 2329 }
2347 2330
2348 /** 2331 /**
2349 * Delete an in-app product for an app. 2332 * Delete an in-app product for an app.
2350 * 2333 *
2351 * Request parameters: 2334 * Request parameters:
2352 * 2335 *
2353 * [packageName] - Unique identifier for the Android app with the in-app 2336 * [packageName] - Unique identifier for the Android app with the in-app
2354 * product; for example, "com.spiffygame". 2337 * product; for example, "com.spiffygame".
2355 * 2338 *
2356 * [sku] - Unique identifier for the in-app product. 2339 * [sku] - Unique identifier for the in-app product.
2357 * 2340 *
2358 * Completes with a [common.ApiRequestError] if the API endpoint returned an 2341 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
2359 * error. 2342 * error.
2360 * 2343 *
2361 * If the used [http.Client] completes with an error when making a REST call, 2344 * If the used [http.Client] completes with an error when making a REST call,
2362 * this method will complete with the same error. 2345 * this method will complete with the same error.
2363 */ 2346 */
2364 async.Future delete(core.String packageName, core.String sku) { 2347 async.Future delete(core.String packageName, core.String sku) {
2365 var _url = null; 2348 var _url = null;
2366 var _queryParams = new core.Map(); 2349 var _queryParams = new core.Map();
2367 var _uploadMedia = null; 2350 var _uploadMedia = null;
2368 var _uploadOptions = null; 2351 var _uploadOptions = null;
2369 var _downloadOptions = common.DownloadOptions.Metadata; 2352 var _downloadOptions = commons.DownloadOptions.Metadata;
2370 var _body = null; 2353 var _body = null;
2371 2354
2372 if (packageName == null) { 2355 if (packageName == null) {
2373 throw new core.ArgumentError("Parameter packageName is required."); 2356 throw new core.ArgumentError("Parameter packageName is required.");
2374 } 2357 }
2375 if (sku == null) { 2358 if (sku == null) {
2376 throw new core.ArgumentError("Parameter sku is required."); 2359 throw new core.ArgumentError("Parameter sku is required.");
2377 } 2360 }
2378 2361
2379 _downloadOptions = null; 2362 _downloadOptions = null;
2380 2363
2381 _url = common_internal.Escaper.ecapeVariable('$packageName') + '/inappproduc ts/' + common_internal.Escaper.ecapeVariable('$sku'); 2364 _url = commons.Escaper.ecapeVariable('$packageName') + '/inappproducts/' + c ommons.Escaper.ecapeVariable('$sku');
2382 2365
2383 var _response = _requester.request(_url, 2366 var _response = _requester.request(_url,
2384 "DELETE", 2367 "DELETE",
2385 body: _body, 2368 body: _body,
2386 queryParams: _queryParams, 2369 queryParams: _queryParams,
2387 uploadOptions: _uploadOptions, 2370 uploadOptions: _uploadOptions,
2388 uploadMedia: _uploadMedia, 2371 uploadMedia: _uploadMedia,
2389 downloadOptions: _downloadOptions); 2372 downloadOptions: _downloadOptions);
2390 return _response.then((data) => null); 2373 return _response.then((data) => null);
2391 } 2374 }
2392 2375
2393 /** 2376 /**
2394 * Returns information about the in-app product specified. 2377 * Returns information about the in-app product specified.
2395 * 2378 *
2396 * Request parameters: 2379 * Request parameters:
2397 * 2380 *
2398 * [packageName] - null 2381 * [packageName] - null
2399 * 2382 *
2400 * [sku] - Unique identifier for the in-app product. 2383 * [sku] - Unique identifier for the in-app product.
2401 * 2384 *
2402 * Completes with a [InAppProduct]. 2385 * Completes with a [InAppProduct].
2403 * 2386 *
2404 * Completes with a [common.ApiRequestError] if the API endpoint returned an 2387 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
2405 * error. 2388 * error.
2406 * 2389 *
2407 * If the used [http.Client] completes with an error when making a REST call, 2390 * If the used [http.Client] completes with an error when making a REST call,
2408 * this method will complete with the same error. 2391 * this method will complete with the same error.
2409 */ 2392 */
2410 async.Future<InAppProduct> get(core.String packageName, core.String sku) { 2393 async.Future<InAppProduct> get(core.String packageName, core.String sku) {
2411 var _url = null; 2394 var _url = null;
2412 var _queryParams = new core.Map(); 2395 var _queryParams = new core.Map();
2413 var _uploadMedia = null; 2396 var _uploadMedia = null;
2414 var _uploadOptions = null; 2397 var _uploadOptions = null;
2415 var _downloadOptions = common.DownloadOptions.Metadata; 2398 var _downloadOptions = commons.DownloadOptions.Metadata;
2416 var _body = null; 2399 var _body = null;
2417 2400
2418 if (packageName == null) { 2401 if (packageName == null) {
2419 throw new core.ArgumentError("Parameter packageName is required."); 2402 throw new core.ArgumentError("Parameter packageName is required.");
2420 } 2403 }
2421 if (sku == null) { 2404 if (sku == null) {
2422 throw new core.ArgumentError("Parameter sku is required."); 2405 throw new core.ArgumentError("Parameter sku is required.");
2423 } 2406 }
2424 2407
2425 2408
2426 _url = common_internal.Escaper.ecapeVariable('$packageName') + '/inappproduc ts/' + common_internal.Escaper.ecapeVariable('$sku'); 2409 _url = commons.Escaper.ecapeVariable('$packageName') + '/inappproducts/' + c ommons.Escaper.ecapeVariable('$sku');
2427 2410
2428 var _response = _requester.request(_url, 2411 var _response = _requester.request(_url,
2429 "GET", 2412 "GET",
2430 body: _body, 2413 body: _body,
2431 queryParams: _queryParams, 2414 queryParams: _queryParams,
2432 uploadOptions: _uploadOptions, 2415 uploadOptions: _uploadOptions,
2433 uploadMedia: _uploadMedia, 2416 uploadMedia: _uploadMedia,
2434 downloadOptions: _downloadOptions); 2417 downloadOptions: _downloadOptions);
2435 return _response.then((data) => new InAppProduct.fromJson(data)); 2418 return _response.then((data) => new InAppProduct.fromJson(data));
2436 } 2419 }
2437 2420
2438 /** 2421 /**
2439 * Creates a new in-app product for an app. 2422 * Creates a new in-app product for an app.
2440 * 2423 *
2441 * [request] - The metadata request object. 2424 * [request] - The metadata request object.
2442 * 2425 *
2443 * Request parameters: 2426 * Request parameters:
2444 * 2427 *
2445 * [packageName] - Unique identifier for the Android app; for example, 2428 * [packageName] - Unique identifier for the Android app; for example,
2446 * "com.spiffygame". 2429 * "com.spiffygame".
2447 * 2430 *
2448 * [autoConvertMissingPrices] - If true the prices for all regions targeted by 2431 * [autoConvertMissingPrices] - If true the prices for all regions targeted by
2449 * the parent app that don't have a price specified for this in-app product 2432 * the parent app that don't have a price specified for this in-app product
2450 * will be auto converted to the target currency based on the default price. 2433 * will be auto converted to the target currency based on the default price.
2451 * Defaults to false. 2434 * Defaults to false.
2452 * 2435 *
2453 * Completes with a [InAppProduct]. 2436 * Completes with a [InAppProduct].
2454 * 2437 *
2455 * Completes with a [common.ApiRequestError] if the API endpoint returned an 2438 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
2456 * error. 2439 * error.
2457 * 2440 *
2458 * If the used [http.Client] completes with an error when making a REST call, 2441 * If the used [http.Client] completes with an error when making a REST call,
2459 * this method will complete with the same error. 2442 * this method will complete with the same error.
2460 */ 2443 */
2461 async.Future<InAppProduct> insert(InAppProduct request, core.String packageNam e, {core.bool autoConvertMissingPrices}) { 2444 async.Future<InAppProduct> insert(InAppProduct request, core.String packageNam e, {core.bool autoConvertMissingPrices}) {
2462 var _url = null; 2445 var _url = null;
2463 var _queryParams = new core.Map(); 2446 var _queryParams = new core.Map();
2464 var _uploadMedia = null; 2447 var _uploadMedia = null;
2465 var _uploadOptions = null; 2448 var _uploadOptions = null;
2466 var _downloadOptions = common.DownloadOptions.Metadata; 2449 var _downloadOptions = commons.DownloadOptions.Metadata;
2467 var _body = null; 2450 var _body = null;
2468 2451
2469 if (request != null) { 2452 if (request != null) {
2470 _body = convert.JSON.encode((request).toJson()); 2453 _body = convert.JSON.encode((request).toJson());
2471 } 2454 }
2472 if (packageName == null) { 2455 if (packageName == null) {
2473 throw new core.ArgumentError("Parameter packageName is required."); 2456 throw new core.ArgumentError("Parameter packageName is required.");
2474 } 2457 }
2475 if (autoConvertMissingPrices != null) { 2458 if (autoConvertMissingPrices != null) {
2476 _queryParams["autoConvertMissingPrices"] = ["${autoConvertMissingPrices}"] ; 2459 _queryParams["autoConvertMissingPrices"] = ["${autoConvertMissingPrices}"] ;
2477 } 2460 }
2478 2461
2479 2462
2480 _url = common_internal.Escaper.ecapeVariable('$packageName') + '/inappproduc ts'; 2463 _url = commons.Escaper.ecapeVariable('$packageName') + '/inappproducts';
2481 2464
2482 var _response = _requester.request(_url, 2465 var _response = _requester.request(_url,
2483 "POST", 2466 "POST",
2484 body: _body, 2467 body: _body,
2485 queryParams: _queryParams, 2468 queryParams: _queryParams,
2486 uploadOptions: _uploadOptions, 2469 uploadOptions: _uploadOptions,
2487 uploadMedia: _uploadMedia, 2470 uploadMedia: _uploadMedia,
2488 downloadOptions: _downloadOptions); 2471 downloadOptions: _downloadOptions);
2489 return _response.then((data) => new InAppProduct.fromJson(data)); 2472 return _response.then((data) => new InAppProduct.fromJson(data));
2490 } 2473 }
2491 2474
2492 /** 2475 /**
2493 * List all the in-app products for an Android app, both subscriptions and 2476 * List all the in-app products for an Android app, both subscriptions and
2494 * managed in-app products.. 2477 * managed in-app products..
2495 * 2478 *
2496 * Request parameters: 2479 * Request parameters:
2497 * 2480 *
2498 * [packageName] - Unique identifier for the Android app with in-app products; 2481 * [packageName] - Unique identifier for the Android app with in-app products;
2499 * for example, "com.spiffygame". 2482 * for example, "com.spiffygame".
2500 * 2483 *
2501 * [maxResults] - null 2484 * [maxResults] - null
2502 * 2485 *
2503 * [startIndex] - null 2486 * [startIndex] - null
2504 * 2487 *
2505 * [token] - null 2488 * [token] - null
2506 * 2489 *
2507 * Completes with a [InappproductsListResponse]. 2490 * Completes with a [InappproductsListResponse].
2508 * 2491 *
2509 * Completes with a [common.ApiRequestError] if the API endpoint returned an 2492 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
2510 * error. 2493 * error.
2511 * 2494 *
2512 * If the used [http.Client] completes with an error when making a REST call, 2495 * If the used [http.Client] completes with an error when making a REST call,
2513 * this method will complete with the same error. 2496 * this method will complete with the same error.
2514 */ 2497 */
2515 async.Future<InappproductsListResponse> list(core.String packageName, {core.in t maxResults, core.int startIndex, core.String token}) { 2498 async.Future<InappproductsListResponse> list(core.String packageName, {core.in t maxResults, core.int startIndex, core.String token}) {
2516 var _url = null; 2499 var _url = null;
2517 var _queryParams = new core.Map(); 2500 var _queryParams = new core.Map();
2518 var _uploadMedia = null; 2501 var _uploadMedia = null;
2519 var _uploadOptions = null; 2502 var _uploadOptions = null;
2520 var _downloadOptions = common.DownloadOptions.Metadata; 2503 var _downloadOptions = commons.DownloadOptions.Metadata;
2521 var _body = null; 2504 var _body = null;
2522 2505
2523 if (packageName == null) { 2506 if (packageName == null) {
2524 throw new core.ArgumentError("Parameter packageName is required."); 2507 throw new core.ArgumentError("Parameter packageName is required.");
2525 } 2508 }
2526 if (maxResults != null) { 2509 if (maxResults != null) {
2527 _queryParams["maxResults"] = ["${maxResults}"]; 2510 _queryParams["maxResults"] = ["${maxResults}"];
2528 } 2511 }
2529 if (startIndex != null) { 2512 if (startIndex != null) {
2530 _queryParams["startIndex"] = ["${startIndex}"]; 2513 _queryParams["startIndex"] = ["${startIndex}"];
2531 } 2514 }
2532 if (token != null) { 2515 if (token != null) {
2533 _queryParams["token"] = [token]; 2516 _queryParams["token"] = [token];
2534 } 2517 }
2535 2518
2536 2519
2537 _url = common_internal.Escaper.ecapeVariable('$packageName') + '/inappproduc ts'; 2520 _url = commons.Escaper.ecapeVariable('$packageName') + '/inappproducts';
2538 2521
2539 var _response = _requester.request(_url, 2522 var _response = _requester.request(_url,
2540 "GET", 2523 "GET",
2541 body: _body, 2524 body: _body,
2542 queryParams: _queryParams, 2525 queryParams: _queryParams,
2543 uploadOptions: _uploadOptions, 2526 uploadOptions: _uploadOptions,
2544 uploadMedia: _uploadMedia, 2527 uploadMedia: _uploadMedia,
2545 downloadOptions: _downloadOptions); 2528 downloadOptions: _downloadOptions);
2546 return _response.then((data) => new InappproductsListResponse.fromJson(data) ); 2529 return _response.then((data) => new InappproductsListResponse.fromJson(data) );
2547 } 2530 }
(...skipping 11 matching lines...) Expand all
2559 * 2542 *
2560 * [sku] - Unique identifier for the in-app product. 2543 * [sku] - Unique identifier for the in-app product.
2561 * 2544 *
2562 * [autoConvertMissingPrices] - If true the prices for all regions targeted by 2545 * [autoConvertMissingPrices] - If true the prices for all regions targeted by
2563 * the parent app that don't have a price specified for this in-app product 2546 * the parent app that don't have a price specified for this in-app product
2564 * will be auto converted to the target currency based on the default price. 2547 * will be auto converted to the target currency based on the default price.
2565 * Defaults to false. 2548 * Defaults to false.
2566 * 2549 *
2567 * Completes with a [InAppProduct]. 2550 * Completes with a [InAppProduct].
2568 * 2551 *
2569 * Completes with a [common.ApiRequestError] if the API endpoint returned an 2552 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
2570 * error. 2553 * error.
2571 * 2554 *
2572 * If the used [http.Client] completes with an error when making a REST call, 2555 * If the used [http.Client] completes with an error when making a REST call,
2573 * this method will complete with the same error. 2556 * this method will complete with the same error.
2574 */ 2557 */
2575 async.Future<InAppProduct> patch(InAppProduct request, core.String packageName , core.String sku, {core.bool autoConvertMissingPrices}) { 2558 async.Future<InAppProduct> patch(InAppProduct request, core.String packageName , core.String sku, {core.bool autoConvertMissingPrices}) {
2576 var _url = null; 2559 var _url = null;
2577 var _queryParams = new core.Map(); 2560 var _queryParams = new core.Map();
2578 var _uploadMedia = null; 2561 var _uploadMedia = null;
2579 var _uploadOptions = null; 2562 var _uploadOptions = null;
2580 var _downloadOptions = common.DownloadOptions.Metadata; 2563 var _downloadOptions = commons.DownloadOptions.Metadata;
2581 var _body = null; 2564 var _body = null;
2582 2565
2583 if (request != null) { 2566 if (request != null) {
2584 _body = convert.JSON.encode((request).toJson()); 2567 _body = convert.JSON.encode((request).toJson());
2585 } 2568 }
2586 if (packageName == null) { 2569 if (packageName == null) {
2587 throw new core.ArgumentError("Parameter packageName is required."); 2570 throw new core.ArgumentError("Parameter packageName is required.");
2588 } 2571 }
2589 if (sku == null) { 2572 if (sku == null) {
2590 throw new core.ArgumentError("Parameter sku is required."); 2573 throw new core.ArgumentError("Parameter sku is required.");
2591 } 2574 }
2592 if (autoConvertMissingPrices != null) { 2575 if (autoConvertMissingPrices != null) {
2593 _queryParams["autoConvertMissingPrices"] = ["${autoConvertMissingPrices}"] ; 2576 _queryParams["autoConvertMissingPrices"] = ["${autoConvertMissingPrices}"] ;
2594 } 2577 }
2595 2578
2596 2579
2597 _url = common_internal.Escaper.ecapeVariable('$packageName') + '/inappproduc ts/' + common_internal.Escaper.ecapeVariable('$sku'); 2580 _url = commons.Escaper.ecapeVariable('$packageName') + '/inappproducts/' + c ommons.Escaper.ecapeVariable('$sku');
2598 2581
2599 var _response = _requester.request(_url, 2582 var _response = _requester.request(_url,
2600 "PATCH", 2583 "PATCH",
2601 body: _body, 2584 body: _body,
2602 queryParams: _queryParams, 2585 queryParams: _queryParams,
2603 uploadOptions: _uploadOptions, 2586 uploadOptions: _uploadOptions,
2604 uploadMedia: _uploadMedia, 2587 uploadMedia: _uploadMedia,
2605 downloadOptions: _downloadOptions); 2588 downloadOptions: _downloadOptions);
2606 return _response.then((data) => new InAppProduct.fromJson(data)); 2589 return _response.then((data) => new InAppProduct.fromJson(data));
2607 } 2590 }
(...skipping 10 matching lines...) Expand all
2618 * 2601 *
2619 * [sku] - Unique identifier for the in-app product. 2602 * [sku] - Unique identifier for the in-app product.
2620 * 2603 *
2621 * [autoConvertMissingPrices] - If true the prices for all regions targeted by 2604 * [autoConvertMissingPrices] - If true the prices for all regions targeted by
2622 * the parent app that don't have a price specified for this in-app product 2605 * the parent app that don't have a price specified for this in-app product
2623 * will be auto converted to the target currency based on the default price. 2606 * will be auto converted to the target currency based on the default price.
2624 * Defaults to false. 2607 * Defaults to false.
2625 * 2608 *
2626 * Completes with a [InAppProduct]. 2609 * Completes with a [InAppProduct].
2627 * 2610 *
2628 * Completes with a [common.ApiRequestError] if the API endpoint returned an 2611 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
2629 * error. 2612 * error.
2630 * 2613 *
2631 * If the used [http.Client] completes with an error when making a REST call, 2614 * If the used [http.Client] completes with an error when making a REST call,
2632 * this method will complete with the same error. 2615 * this method will complete with the same error.
2633 */ 2616 */
2634 async.Future<InAppProduct> update(InAppProduct request, core.String packageNam e, core.String sku, {core.bool autoConvertMissingPrices}) { 2617 async.Future<InAppProduct> update(InAppProduct request, core.String packageNam e, core.String sku, {core.bool autoConvertMissingPrices}) {
2635 var _url = null; 2618 var _url = null;
2636 var _queryParams = new core.Map(); 2619 var _queryParams = new core.Map();
2637 var _uploadMedia = null; 2620 var _uploadMedia = null;
2638 var _uploadOptions = null; 2621 var _uploadOptions = null;
2639 var _downloadOptions = common.DownloadOptions.Metadata; 2622 var _downloadOptions = commons.DownloadOptions.Metadata;
2640 var _body = null; 2623 var _body = null;
2641 2624
2642 if (request != null) { 2625 if (request != null) {
2643 _body = convert.JSON.encode((request).toJson()); 2626 _body = convert.JSON.encode((request).toJson());
2644 } 2627 }
2645 if (packageName == null) { 2628 if (packageName == null) {
2646 throw new core.ArgumentError("Parameter packageName is required."); 2629 throw new core.ArgumentError("Parameter packageName is required.");
2647 } 2630 }
2648 if (sku == null) { 2631 if (sku == null) {
2649 throw new core.ArgumentError("Parameter sku is required."); 2632 throw new core.ArgumentError("Parameter sku is required.");
2650 } 2633 }
2651 if (autoConvertMissingPrices != null) { 2634 if (autoConvertMissingPrices != null) {
2652 _queryParams["autoConvertMissingPrices"] = ["${autoConvertMissingPrices}"] ; 2635 _queryParams["autoConvertMissingPrices"] = ["${autoConvertMissingPrices}"] ;
2653 } 2636 }
2654 2637
2655 2638
2656 _url = common_internal.Escaper.ecapeVariable('$packageName') + '/inappproduc ts/' + common_internal.Escaper.ecapeVariable('$sku'); 2639 _url = commons.Escaper.ecapeVariable('$packageName') + '/inappproducts/' + c ommons.Escaper.ecapeVariable('$sku');
2657 2640
2658 var _response = _requester.request(_url, 2641 var _response = _requester.request(_url,
2659 "PUT", 2642 "PUT",
2660 body: _body, 2643 body: _body,
2661 queryParams: _queryParams, 2644 queryParams: _queryParams,
2662 uploadOptions: _uploadOptions, 2645 uploadOptions: _uploadOptions,
2663 uploadMedia: _uploadMedia, 2646 uploadMedia: _uploadMedia,
2664 downloadOptions: _downloadOptions); 2647 downloadOptions: _downloadOptions);
2665 return _response.then((data) => new InAppProduct.fromJson(data)); 2648 return _response.then((data) => new InAppProduct.fromJson(data));
2666 } 2649 }
2667 2650
2668 } 2651 }
2669 2652
2670 2653
2671 /** Not documented yet. */
2672 class PurchasesResourceApi { 2654 class PurchasesResourceApi {
2673 final common_internal.ApiRequester _requester; 2655 final commons.ApiRequester _requester;
2674 2656
2675 PurchasesProductsResourceApi get products => new PurchasesProductsResourceApi( _requester); 2657 PurchasesProductsResourceApi get products => new PurchasesProductsResourceApi( _requester);
2676 PurchasesSubscriptionsResourceApi get subscriptions => new PurchasesSubscripti onsResourceApi(_requester); 2658 PurchasesSubscriptionsResourceApi get subscriptions => new PurchasesSubscripti onsResourceApi(_requester);
2677 2659
2678 PurchasesResourceApi(common_internal.ApiRequester client) : 2660 PurchasesResourceApi(commons.ApiRequester client) :
2679 _requester = client; 2661 _requester = client;
2680 } 2662 }
2681 2663
2682 2664
2683 /** Not documented yet. */
2684 class PurchasesProductsResourceApi { 2665 class PurchasesProductsResourceApi {
2685 final common_internal.ApiRequester _requester; 2666 final commons.ApiRequester _requester;
2686 2667
2687 PurchasesProductsResourceApi(common_internal.ApiRequester client) : 2668 PurchasesProductsResourceApi(commons.ApiRequester client) :
2688 _requester = client; 2669 _requester = client;
2689 2670
2690 /** 2671 /**
2691 * Checks the purchase and consumption status of an inapp item. 2672 * Checks the purchase and consumption status of an inapp item.
2692 * 2673 *
2693 * Request parameters: 2674 * Request parameters:
2694 * 2675 *
2695 * [packageName] - The package name of the application the inapp product was 2676 * [packageName] - The package name of the application the inapp product was
2696 * sold in (for example, 'com.some.thing'). 2677 * sold in (for example, 'com.some.thing').
2697 * 2678 *
2698 * [productId] - The inapp product SKU (for example, 'com.some.thing.inapp1'). 2679 * [productId] - The inapp product SKU (for example, 'com.some.thing.inapp1').
2699 * 2680 *
2700 * [token] - The token provided to the user's device when the inapp product 2681 * [token] - The token provided to the user's device when the inapp product
2701 * was purchased. 2682 * was purchased.
2702 * 2683 *
2703 * Completes with a [ProductPurchase]. 2684 * Completes with a [ProductPurchase].
2704 * 2685 *
2705 * Completes with a [common.ApiRequestError] if the API endpoint returned an 2686 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
2706 * error. 2687 * error.
2707 * 2688 *
2708 * If the used [http.Client] completes with an error when making a REST call, 2689 * If the used [http.Client] completes with an error when making a REST call,
2709 * this method will complete with the same error. 2690 * this method will complete with the same error.
2710 */ 2691 */
2711 async.Future<ProductPurchase> get(core.String packageName, core.String product Id, core.String token) { 2692 async.Future<ProductPurchase> get(core.String packageName, core.String product Id, core.String token) {
2712 var _url = null; 2693 var _url = null;
2713 var _queryParams = new core.Map(); 2694 var _queryParams = new core.Map();
2714 var _uploadMedia = null; 2695 var _uploadMedia = null;
2715 var _uploadOptions = null; 2696 var _uploadOptions = null;
2716 var _downloadOptions = common.DownloadOptions.Metadata; 2697 var _downloadOptions = commons.DownloadOptions.Metadata;
2717 var _body = null; 2698 var _body = null;
2718 2699
2719 if (packageName == null) { 2700 if (packageName == null) {
2720 throw new core.ArgumentError("Parameter packageName is required."); 2701 throw new core.ArgumentError("Parameter packageName is required.");
2721 } 2702 }
2722 if (productId == null) { 2703 if (productId == null) {
2723 throw new core.ArgumentError("Parameter productId is required."); 2704 throw new core.ArgumentError("Parameter productId is required.");
2724 } 2705 }
2725 if (token == null) { 2706 if (token == null) {
2726 throw new core.ArgumentError("Parameter token is required."); 2707 throw new core.ArgumentError("Parameter token is required.");
2727 } 2708 }
2728 2709
2729 2710
2730 _url = common_internal.Escaper.ecapeVariable('$packageName') + '/purchases/p roducts/' + common_internal.Escaper.ecapeVariable('$productId') + '/tokens/' + c ommon_internal.Escaper.ecapeVariable('$token'); 2711 _url = commons.Escaper.ecapeVariable('$packageName') + '/purchases/products/ ' + commons.Escaper.ecapeVariable('$productId') + '/tokens/' + commons.Escaper.e capeVariable('$token');
2731 2712
2732 var _response = _requester.request(_url, 2713 var _response = _requester.request(_url,
2733 "GET", 2714 "GET",
2734 body: _body, 2715 body: _body,
2735 queryParams: _queryParams, 2716 queryParams: _queryParams,
2736 uploadOptions: _uploadOptions, 2717 uploadOptions: _uploadOptions,
2737 uploadMedia: _uploadMedia, 2718 uploadMedia: _uploadMedia,
2738 downloadOptions: _downloadOptions); 2719 downloadOptions: _downloadOptions);
2739 return _response.then((data) => new ProductPurchase.fromJson(data)); 2720 return _response.then((data) => new ProductPurchase.fromJson(data));
2740 } 2721 }
2741 2722
2742 } 2723 }
2743 2724
2744 2725
2745 /** Not documented yet. */
2746 class PurchasesSubscriptionsResourceApi { 2726 class PurchasesSubscriptionsResourceApi {
2747 final common_internal.ApiRequester _requester; 2727 final commons.ApiRequester _requester;
2748 2728
2749 PurchasesSubscriptionsResourceApi(common_internal.ApiRequester client) : 2729 PurchasesSubscriptionsResourceApi(commons.ApiRequester client) :
2750 _requester = client; 2730 _requester = client;
2751 2731
2752 /** 2732 /**
2753 * Cancels a user's subscription purchase. The subscription remains valid 2733 * Cancels a user's subscription purchase. The subscription remains valid
2754 * until its expiration time. 2734 * until its expiration time.
2755 * 2735 *
2756 * Request parameters: 2736 * Request parameters:
2757 * 2737 *
2758 * [packageName] - The package name of the application for which this 2738 * [packageName] - The package name of the application for which this
2759 * subscription was purchased (for example, 'com.some.thing'). 2739 * subscription was purchased (for example, 'com.some.thing').
2760 * 2740 *
2761 * [subscriptionId] - The purchased subscription ID (for example, 2741 * [subscriptionId] - The purchased subscription ID (for example,
2762 * 'monthly001'). 2742 * 'monthly001').
2763 * 2743 *
2764 * [token] - The token provided to the user's device when the subscription was 2744 * [token] - The token provided to the user's device when the subscription was
2765 * purchased. 2745 * purchased.
2766 * 2746 *
2767 * Completes with a [common.ApiRequestError] if the API endpoint returned an 2747 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
2768 * error. 2748 * error.
2769 * 2749 *
2770 * If the used [http.Client] completes with an error when making a REST call, 2750 * If the used [http.Client] completes with an error when making a REST call,
2771 * this method will complete with the same error. 2751 * this method will complete with the same error.
2772 */ 2752 */
2773 async.Future cancel(core.String packageName, core.String subscriptionId, core. String token) { 2753 async.Future cancel(core.String packageName, core.String subscriptionId, core. String token) {
2774 var _url = null; 2754 var _url = null;
2775 var _queryParams = new core.Map(); 2755 var _queryParams = new core.Map();
2776 var _uploadMedia = null; 2756 var _uploadMedia = null;
2777 var _uploadOptions = null; 2757 var _uploadOptions = null;
2778 var _downloadOptions = common.DownloadOptions.Metadata; 2758 var _downloadOptions = commons.DownloadOptions.Metadata;
2779 var _body = null; 2759 var _body = null;
2780 2760
2781 if (packageName == null) { 2761 if (packageName == null) {
2782 throw new core.ArgumentError("Parameter packageName is required."); 2762 throw new core.ArgumentError("Parameter packageName is required.");
2783 } 2763 }
2784 if (subscriptionId == null) { 2764 if (subscriptionId == null) {
2785 throw new core.ArgumentError("Parameter subscriptionId is required."); 2765 throw new core.ArgumentError("Parameter subscriptionId is required.");
2786 } 2766 }
2787 if (token == null) { 2767 if (token == null) {
2788 throw new core.ArgumentError("Parameter token is required."); 2768 throw new core.ArgumentError("Parameter token is required.");
2789 } 2769 }
2790 2770
2791 _downloadOptions = null; 2771 _downloadOptions = null;
2792 2772
2793 _url = common_internal.Escaper.ecapeVariable('$packageName') + '/purchases/s ubscriptions/' + common_internal.Escaper.ecapeVariable('$subscriptionId') + '/to kens/' + common_internal.Escaper.ecapeVariable('$token') + ':cancel'; 2773 _url = commons.Escaper.ecapeVariable('$packageName') + '/purchases/subscript ions/' + commons.Escaper.ecapeVariable('$subscriptionId') + '/tokens/' + commons .Escaper.ecapeVariable('$token') + ':cancel';
2794 2774
2795 var _response = _requester.request(_url, 2775 var _response = _requester.request(_url,
2796 "POST", 2776 "POST",
2797 body: _body, 2777 body: _body,
2798 queryParams: _queryParams, 2778 queryParams: _queryParams,
2799 uploadOptions: _uploadOptions, 2779 uploadOptions: _uploadOptions,
2800 uploadMedia: _uploadMedia, 2780 uploadMedia: _uploadMedia,
2801 downloadOptions: _downloadOptions); 2781 downloadOptions: _downloadOptions);
2802 return _response.then((data) => null); 2782 return _response.then((data) => null);
2803 } 2783 }
(...skipping 10 matching lines...) Expand all
2814 * subscription was purchased (for example, 'com.some.thing'). 2794 * subscription was purchased (for example, 'com.some.thing').
2815 * 2795 *
2816 * [subscriptionId] - The purchased subscription ID (for example, 2796 * [subscriptionId] - The purchased subscription ID (for example,
2817 * 'monthly001'). 2797 * 'monthly001').
2818 * 2798 *
2819 * [token] - The token provided to the user's device when the subscription was 2799 * [token] - The token provided to the user's device when the subscription was
2820 * purchased. 2800 * purchased.
2821 * 2801 *
2822 * Completes with a [SubscriptionPurchasesDeferResponse]. 2802 * Completes with a [SubscriptionPurchasesDeferResponse].
2823 * 2803 *
2824 * Completes with a [common.ApiRequestError] if the API endpoint returned an 2804 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
2825 * error. 2805 * error.
2826 * 2806 *
2827 * If the used [http.Client] completes with an error when making a REST call, 2807 * If the used [http.Client] completes with an error when making a REST call,
2828 * this method will complete with the same error. 2808 * this method will complete with the same error.
2829 */ 2809 */
2830 async.Future<SubscriptionPurchasesDeferResponse> defer(SubscriptionPurchasesDe ferRequest request, core.String packageName, core.String subscriptionId, core.St ring token) { 2810 async.Future<SubscriptionPurchasesDeferResponse> defer(SubscriptionPurchasesDe ferRequest request, core.String packageName, core.String subscriptionId, core.St ring token) {
2831 var _url = null; 2811 var _url = null;
2832 var _queryParams = new core.Map(); 2812 var _queryParams = new core.Map();
2833 var _uploadMedia = null; 2813 var _uploadMedia = null;
2834 var _uploadOptions = null; 2814 var _uploadOptions = null;
2835 var _downloadOptions = common.DownloadOptions.Metadata; 2815 var _downloadOptions = commons.DownloadOptions.Metadata;
2836 var _body = null; 2816 var _body = null;
2837 2817
2838 if (request != null) { 2818 if (request != null) {
2839 _body = convert.JSON.encode((request).toJson()); 2819 _body = convert.JSON.encode((request).toJson());
2840 } 2820 }
2841 if (packageName == null) { 2821 if (packageName == null) {
2842 throw new core.ArgumentError("Parameter packageName is required."); 2822 throw new core.ArgumentError("Parameter packageName is required.");
2843 } 2823 }
2844 if (subscriptionId == null) { 2824 if (subscriptionId == null) {
2845 throw new core.ArgumentError("Parameter subscriptionId is required."); 2825 throw new core.ArgumentError("Parameter subscriptionId is required.");
2846 } 2826 }
2847 if (token == null) { 2827 if (token == null) {
2848 throw new core.ArgumentError("Parameter token is required."); 2828 throw new core.ArgumentError("Parameter token is required.");
2849 } 2829 }
2850 2830
2851 2831
2852 _url = common_internal.Escaper.ecapeVariable('$packageName') + '/purchases/s ubscriptions/' + common_internal.Escaper.ecapeVariable('$subscriptionId') + '/to kens/' + common_internal.Escaper.ecapeVariable('$token') + ':defer'; 2832 _url = commons.Escaper.ecapeVariable('$packageName') + '/purchases/subscript ions/' + commons.Escaper.ecapeVariable('$subscriptionId') + '/tokens/' + commons .Escaper.ecapeVariable('$token') + ':defer';
2853 2833
2854 var _response = _requester.request(_url, 2834 var _response = _requester.request(_url,
2855 "POST", 2835 "POST",
2856 body: _body, 2836 body: _body,
2857 queryParams: _queryParams, 2837 queryParams: _queryParams,
2858 uploadOptions: _uploadOptions, 2838 uploadOptions: _uploadOptions,
2859 uploadMedia: _uploadMedia, 2839 uploadMedia: _uploadMedia,
2860 downloadOptions: _downloadOptions); 2840 downloadOptions: _downloadOptions);
2861 return _response.then((data) => new SubscriptionPurchasesDeferResponse.fromJ son(data)); 2841 return _response.then((data) => new SubscriptionPurchasesDeferResponse.fromJ son(data));
2862 } 2842 }
2863 2843
2864 /** 2844 /**
2865 * Checks whether a user's subscription purchase is valid and returns its 2845 * Checks whether a user's subscription purchase is valid and returns its
2866 * expiry time. 2846 * expiry time.
2867 * 2847 *
2868 * Request parameters: 2848 * Request parameters:
2869 * 2849 *
2870 * [packageName] - The package name of the application for which this 2850 * [packageName] - The package name of the application for which this
2871 * subscription was purchased (for example, 'com.some.thing'). 2851 * subscription was purchased (for example, 'com.some.thing').
2872 * 2852 *
2873 * [subscriptionId] - The purchased subscription ID (for example, 2853 * [subscriptionId] - The purchased subscription ID (for example,
2874 * 'monthly001'). 2854 * 'monthly001').
2875 * 2855 *
2876 * [token] - The token provided to the user's device when the subscription was 2856 * [token] - The token provided to the user's device when the subscription was
2877 * purchased. 2857 * purchased.
2878 * 2858 *
2879 * Completes with a [SubscriptionPurchase]. 2859 * Completes with a [SubscriptionPurchase].
2880 * 2860 *
2881 * Completes with a [common.ApiRequestError] if the API endpoint returned an 2861 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
2882 * error. 2862 * error.
2883 * 2863 *
2884 * If the used [http.Client] completes with an error when making a REST call, 2864 * If the used [http.Client] completes with an error when making a REST call,
2885 * this method will complete with the same error. 2865 * this method will complete with the same error.
2886 */ 2866 */
2887 async.Future<SubscriptionPurchase> get(core.String packageName, core.String su bscriptionId, core.String token) { 2867 async.Future<SubscriptionPurchase> get(core.String packageName, core.String su bscriptionId, core.String token) {
2888 var _url = null; 2868 var _url = null;
2889 var _queryParams = new core.Map(); 2869 var _queryParams = new core.Map();
2890 var _uploadMedia = null; 2870 var _uploadMedia = null;
2891 var _uploadOptions = null; 2871 var _uploadOptions = null;
2892 var _downloadOptions = common.DownloadOptions.Metadata; 2872 var _downloadOptions = commons.DownloadOptions.Metadata;
2893 var _body = null; 2873 var _body = null;
2894 2874
2895 if (packageName == null) { 2875 if (packageName == null) {
2896 throw new core.ArgumentError("Parameter packageName is required."); 2876 throw new core.ArgumentError("Parameter packageName is required.");
2897 } 2877 }
2898 if (subscriptionId == null) { 2878 if (subscriptionId == null) {
2899 throw new core.ArgumentError("Parameter subscriptionId is required."); 2879 throw new core.ArgumentError("Parameter subscriptionId is required.");
2900 } 2880 }
2901 if (token == null) { 2881 if (token == null) {
2902 throw new core.ArgumentError("Parameter token is required."); 2882 throw new core.ArgumentError("Parameter token is required.");
2903 } 2883 }
2904 2884
2905 2885
2906 _url = common_internal.Escaper.ecapeVariable('$packageName') + '/purchases/s ubscriptions/' + common_internal.Escaper.ecapeVariable('$subscriptionId') + '/to kens/' + common_internal.Escaper.ecapeVariable('$token'); 2886 _url = commons.Escaper.ecapeVariable('$packageName') + '/purchases/subscript ions/' + commons.Escaper.ecapeVariable('$subscriptionId') + '/tokens/' + commons .Escaper.ecapeVariable('$token');
2907 2887
2908 var _response = _requester.request(_url, 2888 var _response = _requester.request(_url,
2909 "GET", 2889 "GET",
2910 body: _body, 2890 body: _body,
2911 queryParams: _queryParams, 2891 queryParams: _queryParams,
2912 uploadOptions: _uploadOptions, 2892 uploadOptions: _uploadOptions,
2913 uploadMedia: _uploadMedia, 2893 uploadMedia: _uploadMedia,
2914 downloadOptions: _downloadOptions); 2894 downloadOptions: _downloadOptions);
2915 return _response.then((data) => new SubscriptionPurchase.fromJson(data)); 2895 return _response.then((data) => new SubscriptionPurchase.fromJson(data));
2916 } 2896 }
2917 2897
2918 /** 2898 /**
2919 * Refunds a user's subscription purchase, but the subscription remains valid 2899 * Refunds a user's subscription purchase, but the subscription remains valid
2920 * until its expiration time and it will continue to recur. 2900 * until its expiration time and it will continue to recur.
2921 * 2901 *
2922 * Request parameters: 2902 * Request parameters:
2923 * 2903 *
2924 * [packageName] - The package name of the application for which this 2904 * [packageName] - The package name of the application for which this
2925 * subscription was purchased (for example, 'com.some.thing'). 2905 * subscription was purchased (for example, 'com.some.thing').
2926 * 2906 *
2927 * [subscriptionId] - The purchased subscription ID (for example, 2907 * [subscriptionId] - The purchased subscription ID (for example,
2928 * 'monthly001'). 2908 * 'monthly001').
2929 * 2909 *
2930 * [token] - The token provided to the user's device when the subscription was 2910 * [token] - The token provided to the user's device when the subscription was
2931 * purchased. 2911 * purchased.
2932 * 2912 *
2933 * Completes with a [common.ApiRequestError] if the API endpoint returned an 2913 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
2934 * error. 2914 * error.
2935 * 2915 *
2936 * If the used [http.Client] completes with an error when making a REST call, 2916 * If the used [http.Client] completes with an error when making a REST call,
2937 * this method will complete with the same error. 2917 * this method will complete with the same error.
2938 */ 2918 */
2939 async.Future refund(core.String packageName, core.String subscriptionId, core. String token) { 2919 async.Future refund(core.String packageName, core.String subscriptionId, core. String token) {
2940 var _url = null; 2920 var _url = null;
2941 var _queryParams = new core.Map(); 2921 var _queryParams = new core.Map();
2942 var _uploadMedia = null; 2922 var _uploadMedia = null;
2943 var _uploadOptions = null; 2923 var _uploadOptions = null;
2944 var _downloadOptions = common.DownloadOptions.Metadata; 2924 var _downloadOptions = commons.DownloadOptions.Metadata;
2945 var _body = null; 2925 var _body = null;
2946 2926
2947 if (packageName == null) { 2927 if (packageName == null) {
2948 throw new core.ArgumentError("Parameter packageName is required."); 2928 throw new core.ArgumentError("Parameter packageName is required.");
2949 } 2929 }
2950 if (subscriptionId == null) { 2930 if (subscriptionId == null) {
2951 throw new core.ArgumentError("Parameter subscriptionId is required."); 2931 throw new core.ArgumentError("Parameter subscriptionId is required.");
2952 } 2932 }
2953 if (token == null) { 2933 if (token == null) {
2954 throw new core.ArgumentError("Parameter token is required."); 2934 throw new core.ArgumentError("Parameter token is required.");
2955 } 2935 }
2956 2936
2957 _downloadOptions = null; 2937 _downloadOptions = null;
2958 2938
2959 _url = common_internal.Escaper.ecapeVariable('$packageName') + '/purchases/s ubscriptions/' + common_internal.Escaper.ecapeVariable('$subscriptionId') + '/to kens/' + common_internal.Escaper.ecapeVariable('$token') + ':refund'; 2939 _url = commons.Escaper.ecapeVariable('$packageName') + '/purchases/subscript ions/' + commons.Escaper.ecapeVariable('$subscriptionId') + '/tokens/' + commons .Escaper.ecapeVariable('$token') + ':refund';
2960 2940
2961 var _response = _requester.request(_url, 2941 var _response = _requester.request(_url,
2962 "POST", 2942 "POST",
2963 body: _body, 2943 body: _body,
2964 queryParams: _queryParams, 2944 queryParams: _queryParams,
2965 uploadOptions: _uploadOptions, 2945 uploadOptions: _uploadOptions,
2966 uploadMedia: _uploadMedia, 2946 uploadMedia: _uploadMedia,
2967 downloadOptions: _downloadOptions); 2947 downloadOptions: _downloadOptions);
2968 return _response.then((data) => null); 2948 return _response.then((data) => null);
2969 } 2949 }
2970 2950
2971 /** 2951 /**
2972 * Refunds and immediately revokes a user's subscription purchase. Access to 2952 * Refunds and immediately revokes a user's subscription purchase. Access to
2973 * the subscription will be terminated immediately and it will stop recurring. 2953 * the subscription will be terminated immediately and it will stop recurring.
2974 * 2954 *
2975 * Request parameters: 2955 * Request parameters:
2976 * 2956 *
2977 * [packageName] - The package name of the application for which this 2957 * [packageName] - The package name of the application for which this
2978 * subscription was purchased (for example, 'com.some.thing'). 2958 * subscription was purchased (for example, 'com.some.thing').
2979 * 2959 *
2980 * [subscriptionId] - The purchased subscription ID (for example, 2960 * [subscriptionId] - The purchased subscription ID (for example,
2981 * 'monthly001'). 2961 * 'monthly001').
2982 * 2962 *
2983 * [token] - The token provided to the user's device when the subscription was 2963 * [token] - The token provided to the user's device when the subscription was
2984 * purchased. 2964 * purchased.
2985 * 2965 *
2986 * Completes with a [common.ApiRequestError] if the API endpoint returned an 2966 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
2987 * error. 2967 * error.
2988 * 2968 *
2989 * If the used [http.Client] completes with an error when making a REST call, 2969 * If the used [http.Client] completes with an error when making a REST call,
2990 * this method will complete with the same error. 2970 * this method will complete with the same error.
2991 */ 2971 */
2992 async.Future revoke(core.String packageName, core.String subscriptionId, core. String token) { 2972 async.Future revoke(core.String packageName, core.String subscriptionId, core. String token) {
2993 var _url = null; 2973 var _url = null;
2994 var _queryParams = new core.Map(); 2974 var _queryParams = new core.Map();
2995 var _uploadMedia = null; 2975 var _uploadMedia = null;
2996 var _uploadOptions = null; 2976 var _uploadOptions = null;
2997 var _downloadOptions = common.DownloadOptions.Metadata; 2977 var _downloadOptions = commons.DownloadOptions.Metadata;
2998 var _body = null; 2978 var _body = null;
2999 2979
3000 if (packageName == null) { 2980 if (packageName == null) {
3001 throw new core.ArgumentError("Parameter packageName is required."); 2981 throw new core.ArgumentError("Parameter packageName is required.");
3002 } 2982 }
3003 if (subscriptionId == null) { 2983 if (subscriptionId == null) {
3004 throw new core.ArgumentError("Parameter subscriptionId is required."); 2984 throw new core.ArgumentError("Parameter subscriptionId is required.");
3005 } 2985 }
3006 if (token == null) { 2986 if (token == null) {
3007 throw new core.ArgumentError("Parameter token is required."); 2987 throw new core.ArgumentError("Parameter token is required.");
3008 } 2988 }
3009 2989
3010 _downloadOptions = null; 2990 _downloadOptions = null;
3011 2991
3012 _url = common_internal.Escaper.ecapeVariable('$packageName') + '/purchases/s ubscriptions/' + common_internal.Escaper.ecapeVariable('$subscriptionId') + '/to kens/' + common_internal.Escaper.ecapeVariable('$token') + ':revoke'; 2992 _url = commons.Escaper.ecapeVariable('$packageName') + '/purchases/subscript ions/' + commons.Escaper.ecapeVariable('$subscriptionId') + '/tokens/' + commons .Escaper.ecapeVariable('$token') + ':revoke';
3013 2993
3014 var _response = _requester.request(_url, 2994 var _response = _requester.request(_url,
3015 "POST", 2995 "POST",
3016 body: _body, 2996 body: _body,
3017 queryParams: _queryParams, 2997 queryParams: _queryParams,
3018 uploadOptions: _uploadOptions, 2998 uploadOptions: _uploadOptions,
3019 uploadMedia: _uploadMedia, 2999 uploadMedia: _uploadMedia,
3020 downloadOptions: _downloadOptions); 3000 downloadOptions: _downloadOptions);
3021 return _response.then((data) => null); 3001 return _response.then((data) => null);
3022 } 3002 }
3023 3003
3024 } 3004 }
3025 3005
3026 3006
3027 3007
3028 /** Not documented yet. */
3029 class Apk { 3008 class Apk {
3030 /** Information about the binary payload of this APK. */ 3009 /** Information about the binary payload of this APK. */
3031 ApkBinary binary; 3010 ApkBinary binary;
3032 3011
3033 /** The version code of the APK, as specified in the APK's manifest file. */ 3012 /** The version code of the APK, as specified in the APK's manifest file. */
3034 core.int versionCode; 3013 core.int versionCode;
3035 3014
3036 3015
3037 Apk(); 3016 Apk();
3038 3017
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
3078 core.Map toJson() { 3057 core.Map toJson() {
3079 var _json = new core.Map(); 3058 var _json = new core.Map();
3080 if (sha1 != null) { 3059 if (sha1 != null) {
3081 _json["sha1"] = sha1; 3060 _json["sha1"] = sha1;
3082 } 3061 }
3083 return _json; 3062 return _json;
3084 } 3063 }
3085 } 3064 }
3086 3065
3087 3066
3088 /** Not documented yet. */
3089 class ApkListing { 3067 class ApkListing {
3090 /** The language code, in BCP 47 format (eg "en-US"). */ 3068 /** The language code, in BCP 47 format (eg "en-US"). */
3091 core.String language; 3069 core.String language;
3092 3070
3093 /** Describe what's new in your APK. */ 3071 /** Describe what's new in your APK. */
3094 core.String recentChanges; 3072 core.String recentChanges;
3095 3073
3096 3074
3097 ApkListing(); 3075 ApkListing();
3098 3076
(...skipping 12 matching lines...) Expand all
3111 _json["language"] = language; 3089 _json["language"] = language;
3112 } 3090 }
3113 if (recentChanges != null) { 3091 if (recentChanges != null) {
3114 _json["recentChanges"] = recentChanges; 3092 _json["recentChanges"] = recentChanges;
3115 } 3093 }
3116 return _json; 3094 return _json;
3117 } 3095 }
3118 } 3096 }
3119 3097
3120 3098
3121 /** Not documented yet. */
3122 class ApkListingsListResponse { 3099 class ApkListingsListResponse {
3123 /** 3100 /**
3124 * Identifies what kind of resource this is. Value: the fixed string 3101 * Identifies what kind of resource this is. Value: the fixed string
3125 * "androidpublisher#apkListingsListResponse". 3102 * "androidpublisher#apkListingsListResponse".
3126 */ 3103 */
3127 core.String kind; 3104 core.String kind;
3128 3105
3129 /** Not documented yet. */
3130 core.List<ApkListing> listings; 3106 core.List<ApkListing> listings;
3131 3107
3132 3108
3133 ApkListingsListResponse(); 3109 ApkListingsListResponse();
3134 3110
3135 ApkListingsListResponse.fromJson(core.Map _json) { 3111 ApkListingsListResponse.fromJson(core.Map _json) {
3136 if (_json.containsKey("kind")) { 3112 if (_json.containsKey("kind")) {
3137 kind = _json["kind"]; 3113 kind = _json["kind"];
3138 } 3114 }
3139 if (_json.containsKey("listings")) { 3115 if (_json.containsKey("listings")) {
3140 listings = _json["listings"].map((value) => new ApkListing.fromJson(value) ).toList(); 3116 listings = _json["listings"].map((value) => new ApkListing.fromJson(value) ).toList();
3141 } 3117 }
3142 } 3118 }
3143 3119
3144 core.Map toJson() { 3120 core.Map toJson() {
3145 var _json = new core.Map(); 3121 var _json = new core.Map();
3146 if (kind != null) { 3122 if (kind != null) {
3147 _json["kind"] = kind; 3123 _json["kind"] = kind;
3148 } 3124 }
3149 if (listings != null) { 3125 if (listings != null) {
3150 _json["listings"] = listings.map((value) => (value).toJson()).toList(); 3126 _json["listings"] = listings.map((value) => (value).toJson()).toList();
3151 } 3127 }
3152 return _json; 3128 return _json;
3153 } 3129 }
3154 } 3130 }
3155 3131
3156 3132
3157 /** Not documented yet. */
3158 class ApksAddExternallyHostedRequest { 3133 class ApksAddExternallyHostedRequest {
3159 /** The definition of the externally-hosted APK and where it is located. */ 3134 /** The definition of the externally-hosted APK and where it is located. */
3160 ExternallyHostedApk externallyHostedApk; 3135 ExternallyHostedApk externallyHostedApk;
3161 3136
3162 3137
3163 ApksAddExternallyHostedRequest(); 3138 ApksAddExternallyHostedRequest();
3164 3139
3165 ApksAddExternallyHostedRequest.fromJson(core.Map _json) { 3140 ApksAddExternallyHostedRequest.fromJson(core.Map _json) {
3166 if (_json.containsKey("externallyHostedApk")) { 3141 if (_json.containsKey("externallyHostedApk")) {
3167 externallyHostedApk = new ExternallyHostedApk.fromJson(_json["externallyHo stedApk"]); 3142 externallyHostedApk = new ExternallyHostedApk.fromJson(_json["externallyHo stedApk"]);
3168 } 3143 }
3169 } 3144 }
3170 3145
3171 core.Map toJson() { 3146 core.Map toJson() {
3172 var _json = new core.Map(); 3147 var _json = new core.Map();
3173 if (externallyHostedApk != null) { 3148 if (externallyHostedApk != null) {
3174 _json["externallyHostedApk"] = (externallyHostedApk).toJson(); 3149 _json["externallyHostedApk"] = (externallyHostedApk).toJson();
3175 } 3150 }
3176 return _json; 3151 return _json;
3177 } 3152 }
3178 } 3153 }
3179 3154
3180 3155
3181 /** Not documented yet. */
3182 class ApksAddExternallyHostedResponse { 3156 class ApksAddExternallyHostedResponse {
3183 /** The definition of the externally-hosted APK and where it is located. */ 3157 /** The definition of the externally-hosted APK and where it is located. */
3184 ExternallyHostedApk externallyHostedApk; 3158 ExternallyHostedApk externallyHostedApk;
3185 3159
3186 3160
3187 ApksAddExternallyHostedResponse(); 3161 ApksAddExternallyHostedResponse();
3188 3162
3189 ApksAddExternallyHostedResponse.fromJson(core.Map _json) { 3163 ApksAddExternallyHostedResponse.fromJson(core.Map _json) {
3190 if (_json.containsKey("externallyHostedApk")) { 3164 if (_json.containsKey("externallyHostedApk")) {
3191 externallyHostedApk = new ExternallyHostedApk.fromJson(_json["externallyHo stedApk"]); 3165 externallyHostedApk = new ExternallyHostedApk.fromJson(_json["externallyHo stedApk"]);
3192 } 3166 }
3193 } 3167 }
3194 3168
3195 core.Map toJson() { 3169 core.Map toJson() {
3196 var _json = new core.Map(); 3170 var _json = new core.Map();
3197 if (externallyHostedApk != null) { 3171 if (externallyHostedApk != null) {
3198 _json["externallyHostedApk"] = (externallyHostedApk).toJson(); 3172 _json["externallyHostedApk"] = (externallyHostedApk).toJson();
3199 } 3173 }
3200 return _json; 3174 return _json;
3201 } 3175 }
3202 } 3176 }
3203 3177
3204 3178
3205 /** Not documented yet. */
3206 class ApksListResponse { 3179 class ApksListResponse {
3207 /** Not documented yet. */
3208 core.List<Apk> apks; 3180 core.List<Apk> apks;
3209 3181
3210 /** 3182 /**
3211 * Identifies what kind of resource this is. Value: the fixed string 3183 * Identifies what kind of resource this is. Value: the fixed string
3212 * "androidpublisher#apksListResponse". 3184 * "androidpublisher#apksListResponse".
3213 */ 3185 */
3214 core.String kind; 3186 core.String kind;
3215 3187
3216 3188
3217 ApksListResponse(); 3189 ApksListResponse();
(...skipping 13 matching lines...) Expand all
3231 _json["apks"] = apks.map((value) => (value).toJson()).toList(); 3203 _json["apks"] = apks.map((value) => (value).toJson()).toList();
3232 } 3204 }
3233 if (kind != null) { 3205 if (kind != null) {
3234 _json["kind"] = kind; 3206 _json["kind"] = kind;
3235 } 3207 }
3236 return _json; 3208 return _json;
3237 } 3209 }
3238 } 3210 }
3239 3211
3240 3212
3241 /** Not documented yet. */
3242 class AppDetails { 3213 class AppDetails {
3243 /** The user-visible support email for this app. */ 3214 /** The user-visible support email for this app. */
3244 core.String contactEmail; 3215 core.String contactEmail;
3245 3216
3246 /** The user-visible support telephone number for this app. */ 3217 /** The user-visible support telephone number for this app. */
3247 core.String contactPhone; 3218 core.String contactPhone;
3248 3219
3249 /** The user-visible website for this app. */ 3220 /** The user-visible website for this app. */
3250 core.String contactWebsite; 3221 core.String contactWebsite;
3251 3222
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
3321 _json["expiryTimeSeconds"] = expiryTimeSeconds; 3292 _json["expiryTimeSeconds"] = expiryTimeSeconds;
3322 } 3293 }
3323 if (id != null) { 3294 if (id != null) {
3324 _json["id"] = id; 3295 _json["id"] = id;
3325 } 3296 }
3326 return _json; 3297 return _json;
3327 } 3298 }
3328 } 3299 }
3329 3300
3330 3301
3331 /** Not documented yet. */
3332 class ExpansionFile { 3302 class ExpansionFile {
3333 /** 3303 /**
3334 * If set this field indicates that this APK has an Expansion File uploaded to 3304 * If set this field indicates that this APK has an Expansion File uploaded to
3335 * it: this APK does not reference another APK's Expansion File. The field's 3305 * it: this APK does not reference another APK's Expansion File. The field's
3336 * value is the size of the uploaded Expansion File in bytes. 3306 * value is the size of the uploaded Expansion File in bytes.
3337 */ 3307 */
3338 core.String fileSize; 3308 core.String fileSize;
3339 3309
3340 /** 3310 /**
3341 * If set this APK's Expansion File references another APK's Expansion File. 3311 * If set this APK's Expansion File references another APK's Expansion File.
(...skipping 19 matching lines...) Expand all
3361 _json["fileSize"] = fileSize; 3331 _json["fileSize"] = fileSize;
3362 } 3332 }
3363 if (referencesVersion != null) { 3333 if (referencesVersion != null) {
3364 _json["referencesVersion"] = referencesVersion; 3334 _json["referencesVersion"] = referencesVersion;
3365 } 3335 }
3366 return _json; 3336 return _json;
3367 } 3337 }
3368 } 3338 }
3369 3339
3370 3340
3371 /** Not documented yet. */
3372 class ExpansionFilesUploadResponse { 3341 class ExpansionFilesUploadResponse {
3373 /** Not documented yet. */
3374 ExpansionFile expansionFile; 3342 ExpansionFile expansionFile;
3375 3343
3376 3344
3377 ExpansionFilesUploadResponse(); 3345 ExpansionFilesUploadResponse();
3378 3346
3379 ExpansionFilesUploadResponse.fromJson(core.Map _json) { 3347 ExpansionFilesUploadResponse.fromJson(core.Map _json) {
3380 if (_json.containsKey("expansionFile")) { 3348 if (_json.containsKey("expansionFile")) {
3381 expansionFile = new ExpansionFile.fromJson(_json["expansionFile"]); 3349 expansionFile = new ExpansionFile.fromJson(_json["expansionFile"]);
3382 } 3350 }
3383 } 3351 }
3384 3352
3385 core.Map toJson() { 3353 core.Map toJson() {
3386 var _json = new core.Map(); 3354 var _json = new core.Map();
3387 if (expansionFile != null) { 3355 if (expansionFile != null) {
3388 _json["expansionFile"] = (expansionFile).toJson(); 3356 _json["expansionFile"] = (expansionFile).toJson();
3389 } 3357 }
3390 return _json; 3358 return _json;
3391 } 3359 }
3392 } 3360 }
3393 3361
3394 3362
3395 /** 3363 /**
3396 * Defines an APK available for this application that is hosted externally and 3364 * Defines an APK available for this application that is hosted externally and
3397 * not uploaded to Google Play. This function is only available to enterprises 3365 * not uploaded to Google Play. This function is only available to enterprises
3398 * who are using Android for Work, and whos application is restricted to the 3366 * who are using Google Play for Work, and whos application is restricted to the
3399 * enterprise private channel 3367 * enterprise private channel
3400 */ 3368 */
3401 class ExternallyHostedApk { 3369 class ExternallyHostedApk {
3402 /** The application label. */ 3370 /** The application label. */
3403 core.String applicationLabel; 3371 core.String applicationLabel;
3404 3372
3405 /** 3373 /**
3406 * A certificate (or array of certificates if a certificate-chain is used) 3374 * A certificate (or array of certificates if a certificate-chain is used)
3407 * used to signed this APK, represented as a base64 encoded byte array. 3375 * used to signed this APK, represented as a base64 encoded byte array.
3408 */ 3376 */
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
3583 _json["maxSdkVersion"] = maxSdkVersion; 3551 _json["maxSdkVersion"] = maxSdkVersion;
3584 } 3552 }
3585 if (name != null) { 3553 if (name != null) {
3586 _json["name"] = name; 3554 _json["name"] = name;
3587 } 3555 }
3588 return _json; 3556 return _json;
3589 } 3557 }
3590 } 3558 }
3591 3559
3592 3560
3593 /** Not documented yet. */
3594 class Image { 3561 class Image {
3595 /** A unique id representing this image. */ 3562 /** A unique id representing this image. */
3596 core.String id; 3563 core.String id;
3597 3564
3598 /** A sha1 hash of the image that was uploaded. */ 3565 /** A sha1 hash of the image that was uploaded. */
3599 core.String sha1; 3566 core.String sha1;
3600 3567
3601 /** A URL that will serve a preview of the image. */ 3568 /** A URL that will serve a preview of the image. */
3602 core.String url; 3569 core.String url;
3603 3570
(...skipping 21 matching lines...) Expand all
3625 _json["sha1"] = sha1; 3592 _json["sha1"] = sha1;
3626 } 3593 }
3627 if (url != null) { 3594 if (url != null) {
3628 _json["url"] = url; 3595 _json["url"] = url;
3629 } 3596 }
3630 return _json; 3597 return _json;
3631 } 3598 }
3632 } 3599 }
3633 3600
3634 3601
3635 /** Not documented yet. */
3636 class ImagesDeleteAllResponse { 3602 class ImagesDeleteAllResponse {
3637 /** Not documented yet. */
3638 core.List<Image> deleted; 3603 core.List<Image> deleted;
3639 3604
3640 3605
3641 ImagesDeleteAllResponse(); 3606 ImagesDeleteAllResponse();
3642 3607
3643 ImagesDeleteAllResponse.fromJson(core.Map _json) { 3608 ImagesDeleteAllResponse.fromJson(core.Map _json) {
3644 if (_json.containsKey("deleted")) { 3609 if (_json.containsKey("deleted")) {
3645 deleted = _json["deleted"].map((value) => new Image.fromJson(value)).toLis t(); 3610 deleted = _json["deleted"].map((value) => new Image.fromJson(value)).toLis t();
3646 } 3611 }
3647 } 3612 }
3648 3613
3649 core.Map toJson() { 3614 core.Map toJson() {
3650 var _json = new core.Map(); 3615 var _json = new core.Map();
3651 if (deleted != null) { 3616 if (deleted != null) {
3652 _json["deleted"] = deleted.map((value) => (value).toJson()).toList(); 3617 _json["deleted"] = deleted.map((value) => (value).toJson()).toList();
3653 } 3618 }
3654 return _json; 3619 return _json;
3655 } 3620 }
3656 } 3621 }
3657 3622
3658 3623
3659 /** Not documented yet. */
3660 class ImagesListResponse { 3624 class ImagesListResponse {
3661 /** Not documented yet. */
3662 core.List<Image> images; 3625 core.List<Image> images;
3663 3626
3664 3627
3665 ImagesListResponse(); 3628 ImagesListResponse();
3666 3629
3667 ImagesListResponse.fromJson(core.Map _json) { 3630 ImagesListResponse.fromJson(core.Map _json) {
3668 if (_json.containsKey("images")) { 3631 if (_json.containsKey("images")) {
3669 images = _json["images"].map((value) => new Image.fromJson(value)).toList( ); 3632 images = _json["images"].map((value) => new Image.fromJson(value)).toList( );
3670 } 3633 }
3671 } 3634 }
3672 3635
3673 core.Map toJson() { 3636 core.Map toJson() {
3674 var _json = new core.Map(); 3637 var _json = new core.Map();
3675 if (images != null) { 3638 if (images != null) {
3676 _json["images"] = images.map((value) => (value).toJson()).toList(); 3639 _json["images"] = images.map((value) => (value).toJson()).toList();
3677 } 3640 }
3678 return _json; 3641 return _json;
3679 } 3642 }
3680 } 3643 }
3681 3644
3682 3645
3683 /** Not documented yet. */
3684 class ImagesUploadResponse { 3646 class ImagesUploadResponse {
3685 /** Not documented yet. */
3686 Image image; 3647 Image image;
3687 3648
3688 3649
3689 ImagesUploadResponse(); 3650 ImagesUploadResponse();
3690 3651
3691 ImagesUploadResponse.fromJson(core.Map _json) { 3652 ImagesUploadResponse.fromJson(core.Map _json) {
3692 if (_json.containsKey("image")) { 3653 if (_json.containsKey("image")) {
3693 image = new Image.fromJson(_json["image"]); 3654 image = new Image.fromJson(_json["image"]);
3694 } 3655 }
3695 } 3656 }
3696 3657
3697 core.Map toJson() { 3658 core.Map toJson() {
3698 var _json = new core.Map(); 3659 var _json = new core.Map();
3699 if (image != null) { 3660 if (image != null) {
3700 _json["image"] = (image).toJson(); 3661 _json["image"] = (image).toJson();
3701 } 3662 }
3702 return _json; 3663 return _json;
3703 } 3664 }
3704 } 3665 }
3705 3666
3706 3667
3707 /** Not documented yet. */
3708 class InAppProduct { 3668 class InAppProduct {
3709 /** 3669 /**
3710 * The default language of the localized data, as defined by BCP 47. e.g. 3670 * The default language of the localized data, as defined by BCP 47. e.g.
3711 * "en-US", "en-GB". 3671 * "en-US", "en-GB".
3712 */ 3672 */
3713 core.String defaultLanguage; 3673 core.String defaultLanguage;
3714 3674
3715 /** 3675 /**
3716 * Default price cannot be zero. In-app products can never be free. Default 3676 * Default price cannot be zero. In-app products can never be free. Default
3717 * price is always in the developer's Checkout merchant currency. 3677 * price is always in the developer's Checkout merchant currency.
(...skipping 17 matching lines...) Expand all
3735 3695
3736 /** 3696 /**
3737 * Definition of a season for a seasonal subscription. Can be defined only for 3697 * Definition of a season for a seasonal subscription. Can be defined only for
3738 * yearly subscriptions. 3698 * yearly subscriptions.
3739 */ 3699 */
3740 Season season; 3700 Season season;
3741 3701
3742 /** The stock-keeping-unit (SKU) of the product, unique within an app. */ 3702 /** The stock-keeping-unit (SKU) of the product, unique within an app. */
3743 core.String sku; 3703 core.String sku;
3744 3704
3745 /** Not documented yet. */
3746 core.String status; 3705 core.String status;
3747 3706
3748 /** 3707 /**
3749 * The period of the subscription (if any), i.e. period at which payments must 3708 * The period of the subscription (if any), i.e. period at which payments must
3750 * happen. Defined as ISO 8601 duration, i.e. "P1M" for 1 month period. 3709 * happen. Defined as ISO 8601 duration, i.e. "P1M" for 1 month period.
3751 */ 3710 */
3752 core.String subscriptionPeriod; 3711 core.String subscriptionPeriod;
3753 3712
3754 /** 3713 /**
3755 * Trial period, specified in ISO 8601 format. Acceptable values are anything 3714 * Trial period, specified in ISO 8601 format. Acceptable values are anything
3756 * between "P7D" (seven days) and "P999D" (999 days). Seasonal subscriptions 3715 * between "P7D" (seven days) and "P999D" (999 days). Seasonal subscriptions
3757 * cannot have a trial period. 3716 * cannot have a trial period.
3758 */ 3717 */
3759 core.String trialPeriod; 3718 core.String trialPeriod;
3760 3719
3761 3720
3762 InAppProduct(); 3721 InAppProduct();
3763 3722
3764 InAppProduct.fromJson(core.Map _json) { 3723 InAppProduct.fromJson(core.Map _json) {
3765 if (_json.containsKey("defaultLanguage")) { 3724 if (_json.containsKey("defaultLanguage")) {
3766 defaultLanguage = _json["defaultLanguage"]; 3725 defaultLanguage = _json["defaultLanguage"];
3767 } 3726 }
3768 if (_json.containsKey("defaultPrice")) { 3727 if (_json.containsKey("defaultPrice")) {
3769 defaultPrice = new Price.fromJson(_json["defaultPrice"]); 3728 defaultPrice = new Price.fromJson(_json["defaultPrice"]);
3770 } 3729 }
3771 if (_json.containsKey("listings")) { 3730 if (_json.containsKey("listings")) {
3772 listings = common_internal.mapMap(_json["listings"], (item) => new InAppPr oductListing.fromJson(item)); 3731 listings = commons.mapMap(_json["listings"], (item) => new InAppProductLis ting.fromJson(item));
3773 } 3732 }
3774 if (_json.containsKey("packageName")) { 3733 if (_json.containsKey("packageName")) {
3775 packageName = _json["packageName"]; 3734 packageName = _json["packageName"];
3776 } 3735 }
3777 if (_json.containsKey("prices")) { 3736 if (_json.containsKey("prices")) {
3778 prices = common_internal.mapMap(_json["prices"], (item) => new Price.fromJ son(item)); 3737 prices = commons.mapMap(_json["prices"], (item) => new Price.fromJson(item ));
3779 } 3738 }
3780 if (_json.containsKey("purchaseType")) { 3739 if (_json.containsKey("purchaseType")) {
3781 purchaseType = _json["purchaseType"]; 3740 purchaseType = _json["purchaseType"];
3782 } 3741 }
3783 if (_json.containsKey("season")) { 3742 if (_json.containsKey("season")) {
3784 season = new Season.fromJson(_json["season"]); 3743 season = new Season.fromJson(_json["season"]);
3785 } 3744 }
3786 if (_json.containsKey("sku")) { 3745 if (_json.containsKey("sku")) {
3787 sku = _json["sku"]; 3746 sku = _json["sku"];
3788 } 3747 }
(...skipping 10 matching lines...) Expand all
3799 3758
3800 core.Map toJson() { 3759 core.Map toJson() {
3801 var _json = new core.Map(); 3760 var _json = new core.Map();
3802 if (defaultLanguage != null) { 3761 if (defaultLanguage != null) {
3803 _json["defaultLanguage"] = defaultLanguage; 3762 _json["defaultLanguage"] = defaultLanguage;
3804 } 3763 }
3805 if (defaultPrice != null) { 3764 if (defaultPrice != null) {
3806 _json["defaultPrice"] = (defaultPrice).toJson(); 3765 _json["defaultPrice"] = (defaultPrice).toJson();
3807 } 3766 }
3808 if (listings != null) { 3767 if (listings != null) {
3809 _json["listings"] = common_internal.mapMap(listings, (item) => (item).toJs on()); 3768 _json["listings"] = commons.mapMap(listings, (item) => (item).toJson());
3810 } 3769 }
3811 if (packageName != null) { 3770 if (packageName != null) {
3812 _json["packageName"] = packageName; 3771 _json["packageName"] = packageName;
3813 } 3772 }
3814 if (prices != null) { 3773 if (prices != null) {
3815 _json["prices"] = common_internal.mapMap(prices, (item) => (item).toJson() ); 3774 _json["prices"] = commons.mapMap(prices, (item) => (item).toJson());
3816 } 3775 }
3817 if (purchaseType != null) { 3776 if (purchaseType != null) {
3818 _json["purchaseType"] = purchaseType; 3777 _json["purchaseType"] = purchaseType;
3819 } 3778 }
3820 if (season != null) { 3779 if (season != null) {
3821 _json["season"] = (season).toJson(); 3780 _json["season"] = (season).toJson();
3822 } 3781 }
3823 if (sku != null) { 3782 if (sku != null) {
3824 _json["sku"] = sku; 3783 _json["sku"] = sku;
3825 } 3784 }
3826 if (status != null) { 3785 if (status != null) {
3827 _json["status"] = status; 3786 _json["status"] = status;
3828 } 3787 }
3829 if (subscriptionPeriod != null) { 3788 if (subscriptionPeriod != null) {
3830 _json["subscriptionPeriod"] = subscriptionPeriod; 3789 _json["subscriptionPeriod"] = subscriptionPeriod;
3831 } 3790 }
3832 if (trialPeriod != null) { 3791 if (trialPeriod != null) {
3833 _json["trialPeriod"] = trialPeriod; 3792 _json["trialPeriod"] = trialPeriod;
3834 } 3793 }
3835 return _json; 3794 return _json;
3836 } 3795 }
3837 } 3796 }
3838 3797
3839 3798
3840 /** Not documented yet. */
3841 class InAppProductListing { 3799 class InAppProductListing {
3842 /** Not documented yet. */
3843 core.String description; 3800 core.String description;
3844 3801
3845 /** Not documented yet. */
3846 core.String title; 3802 core.String title;
3847 3803
3848 3804
3849 InAppProductListing(); 3805 InAppProductListing();
3850 3806
3851 InAppProductListing.fromJson(core.Map _json) { 3807 InAppProductListing.fromJson(core.Map _json) {
3852 if (_json.containsKey("description")) { 3808 if (_json.containsKey("description")) {
3853 description = _json["description"]; 3809 description = _json["description"];
3854 } 3810 }
3855 if (_json.containsKey("title")) { 3811 if (_json.containsKey("title")) {
3856 title = _json["title"]; 3812 title = _json["title"];
3857 } 3813 }
3858 } 3814 }
3859 3815
3860 core.Map toJson() { 3816 core.Map toJson() {
3861 var _json = new core.Map(); 3817 var _json = new core.Map();
3862 if (description != null) { 3818 if (description != null) {
3863 _json["description"] = description; 3819 _json["description"] = description;
3864 } 3820 }
3865 if (title != null) { 3821 if (title != null) {
3866 _json["title"] = title; 3822 _json["title"] = title;
3867 } 3823 }
3868 return _json; 3824 return _json;
3869 } 3825 }
3870 } 3826 }
3871 3827
3872 3828
3873 /** Not documented yet. */
3874 class InappproductsBatchRequest { 3829 class InappproductsBatchRequest {
3875 /** Not documented yet. */
3876 core.List<InappproductsBatchRequestEntry> entrys; 3830 core.List<InappproductsBatchRequestEntry> entrys;
3877 3831
3878 3832
3879 InappproductsBatchRequest(); 3833 InappproductsBatchRequest();
3880 3834
3881 InappproductsBatchRequest.fromJson(core.Map _json) { 3835 InappproductsBatchRequest.fromJson(core.Map _json) {
3882 if (_json.containsKey("entrys")) { 3836 if (_json.containsKey("entrys")) {
3883 entrys = _json["entrys"].map((value) => new InappproductsBatchRequestEntry .fromJson(value)).toList(); 3837 entrys = _json["entrys"].map((value) => new InappproductsBatchRequestEntry .fromJson(value)).toList();
3884 } 3838 }
3885 } 3839 }
3886 3840
3887 core.Map toJson() { 3841 core.Map toJson() {
3888 var _json = new core.Map(); 3842 var _json = new core.Map();
3889 if (entrys != null) { 3843 if (entrys != null) {
3890 _json["entrys"] = entrys.map((value) => (value).toJson()).toList(); 3844 _json["entrys"] = entrys.map((value) => (value).toJson()).toList();
3891 } 3845 }
3892 return _json; 3846 return _json;
3893 } 3847 }
3894 } 3848 }
3895 3849
3896 3850
3897 /** Not documented yet. */
3898 class InappproductsBatchRequestEntry { 3851 class InappproductsBatchRequestEntry {
3899 /** Not documented yet. */
3900 core.int batchId; 3852 core.int batchId;
3901 3853
3902 /** Not documented yet. */
3903 InappproductsInsertRequest inappproductsinsertrequest; 3854 InappproductsInsertRequest inappproductsinsertrequest;
3904 3855
3905 /** Not documented yet. */
3906 InappproductsUpdateRequest inappproductsupdaterequest; 3856 InappproductsUpdateRequest inappproductsupdaterequest;
3907 3857
3908 /** Not documented yet. */
3909 core.String methodName; 3858 core.String methodName;
3910 3859
3911 3860
3912 InappproductsBatchRequestEntry(); 3861 InappproductsBatchRequestEntry();
3913 3862
3914 InappproductsBatchRequestEntry.fromJson(core.Map _json) { 3863 InappproductsBatchRequestEntry.fromJson(core.Map _json) {
3915 if (_json.containsKey("batchId")) { 3864 if (_json.containsKey("batchId")) {
3916 batchId = _json["batchId"]; 3865 batchId = _json["batchId"];
3917 } 3866 }
3918 if (_json.containsKey("inappproductsinsertrequest")) { 3867 if (_json.containsKey("inappproductsinsertrequest")) {
(...skipping 19 matching lines...) Expand all
3938 _json["inappproductsupdaterequest"] = (inappproductsupdaterequest).toJson( ); 3887 _json["inappproductsupdaterequest"] = (inappproductsupdaterequest).toJson( );
3939 } 3888 }
3940 if (methodName != null) { 3889 if (methodName != null) {
3941 _json["methodName"] = methodName; 3890 _json["methodName"] = methodName;
3942 } 3891 }
3943 return _json; 3892 return _json;
3944 } 3893 }
3945 } 3894 }
3946 3895
3947 3896
3948 /** Not documented yet. */
3949 class InappproductsBatchResponse { 3897 class InappproductsBatchResponse {
3950 /** Not documented yet. */
3951 core.List<InappproductsBatchResponseEntry> entrys; 3898 core.List<InappproductsBatchResponseEntry> entrys;
3952 3899
3953 /** 3900 /**
3954 * Identifies what kind of resource this is. Value: the fixed string 3901 * Identifies what kind of resource this is. Value: the fixed string
3955 * "androidpublisher#inappproductsBatchResponse". 3902 * "androidpublisher#inappproductsBatchResponse".
3956 */ 3903 */
3957 core.String kind; 3904 core.String kind;
3958 3905
3959 3906
3960 InappproductsBatchResponse(); 3907 InappproductsBatchResponse();
(...skipping 13 matching lines...) Expand all
3974 _json["entrys"] = entrys.map((value) => (value).toJson()).toList(); 3921 _json["entrys"] = entrys.map((value) => (value).toJson()).toList();
3975 } 3922 }
3976 if (kind != null) { 3923 if (kind != null) {
3977 _json["kind"] = kind; 3924 _json["kind"] = kind;
3978 } 3925 }
3979 return _json; 3926 return _json;
3980 } 3927 }
3981 } 3928 }
3982 3929
3983 3930
3984 /** Not documented yet. */
3985 class InappproductsBatchResponseEntry { 3931 class InappproductsBatchResponseEntry {
3986 /** Not documented yet. */
3987 core.int batchId; 3932 core.int batchId;
3988 3933
3989 /** Not documented yet. */
3990 InappproductsInsertResponse inappproductsinsertresponse; 3934 InappproductsInsertResponse inappproductsinsertresponse;
3991 3935
3992 /** Not documented yet. */
3993 InappproductsUpdateResponse inappproductsupdateresponse; 3936 InappproductsUpdateResponse inappproductsupdateresponse;
3994 3937
3995 3938
3996 InappproductsBatchResponseEntry(); 3939 InappproductsBatchResponseEntry();
3997 3940
3998 InappproductsBatchResponseEntry.fromJson(core.Map _json) { 3941 InappproductsBatchResponseEntry.fromJson(core.Map _json) {
3999 if (_json.containsKey("batchId")) { 3942 if (_json.containsKey("batchId")) {
4000 batchId = _json["batchId"]; 3943 batchId = _json["batchId"];
4001 } 3944 }
4002 if (_json.containsKey("inappproductsinsertresponse")) { 3945 if (_json.containsKey("inappproductsinsertresponse")) {
(...skipping 13 matching lines...) Expand all
4016 _json["inappproductsinsertresponse"] = (inappproductsinsertresponse).toJso n(); 3959 _json["inappproductsinsertresponse"] = (inappproductsinsertresponse).toJso n();
4017 } 3960 }
4018 if (inappproductsupdateresponse != null) { 3961 if (inappproductsupdateresponse != null) {
4019 _json["inappproductsupdateresponse"] = (inappproductsupdateresponse).toJso n(); 3962 _json["inappproductsupdateresponse"] = (inappproductsupdateresponse).toJso n();
4020 } 3963 }
4021 return _json; 3964 return _json;
4022 } 3965 }
4023 } 3966 }
4024 3967
4025 3968
4026 /** Not documented yet. */
4027 class InappproductsInsertRequest { 3969 class InappproductsInsertRequest {
4028 /** Not documented yet. */
4029 InAppProduct inappproduct; 3970 InAppProduct inappproduct;
4030 3971
4031 3972
4032 InappproductsInsertRequest(); 3973 InappproductsInsertRequest();
4033 3974
4034 InappproductsInsertRequest.fromJson(core.Map _json) { 3975 InappproductsInsertRequest.fromJson(core.Map _json) {
4035 if (_json.containsKey("inappproduct")) { 3976 if (_json.containsKey("inappproduct")) {
4036 inappproduct = new InAppProduct.fromJson(_json["inappproduct"]); 3977 inappproduct = new InAppProduct.fromJson(_json["inappproduct"]);
4037 } 3978 }
4038 } 3979 }
4039 3980
4040 core.Map toJson() { 3981 core.Map toJson() {
4041 var _json = new core.Map(); 3982 var _json = new core.Map();
4042 if (inappproduct != null) { 3983 if (inappproduct != null) {
4043 _json["inappproduct"] = (inappproduct).toJson(); 3984 _json["inappproduct"] = (inappproduct).toJson();
4044 } 3985 }
4045 return _json; 3986 return _json;
4046 } 3987 }
4047 } 3988 }
4048 3989
4049 3990
4050 /** Not documented yet. */
4051 class InappproductsInsertResponse { 3991 class InappproductsInsertResponse {
4052 /** Not documented yet. */
4053 InAppProduct inappproduct; 3992 InAppProduct inappproduct;
4054 3993
4055 3994
4056 InappproductsInsertResponse(); 3995 InappproductsInsertResponse();
4057 3996
4058 InappproductsInsertResponse.fromJson(core.Map _json) { 3997 InappproductsInsertResponse.fromJson(core.Map _json) {
4059 if (_json.containsKey("inappproduct")) { 3998 if (_json.containsKey("inappproduct")) {
4060 inappproduct = new InAppProduct.fromJson(_json["inappproduct"]); 3999 inappproduct = new InAppProduct.fromJson(_json["inappproduct"]);
4061 } 4000 }
4062 } 4001 }
4063 4002
4064 core.Map toJson() { 4003 core.Map toJson() {
4065 var _json = new core.Map(); 4004 var _json = new core.Map();
4066 if (inappproduct != null) { 4005 if (inappproduct != null) {
4067 _json["inappproduct"] = (inappproduct).toJson(); 4006 _json["inappproduct"] = (inappproduct).toJson();
4068 } 4007 }
4069 return _json; 4008 return _json;
4070 } 4009 }
4071 } 4010 }
4072 4011
4073 4012
4074 /** Not documented yet. */
4075 class InappproductsListResponse { 4013 class InappproductsListResponse {
4076 /** Not documented yet. */
4077 core.List<InAppProduct> inappproduct; 4014 core.List<InAppProduct> inappproduct;
4078 4015
4079 /** 4016 /**
4080 * Identifies what kind of resource this is. Value: the fixed string 4017 * Identifies what kind of resource this is. Value: the fixed string
4081 * "androidpublisher#inappproductsListResponse". 4018 * "androidpublisher#inappproductsListResponse".
4082 */ 4019 */
4083 core.String kind; 4020 core.String kind;
4084 4021
4085 /** Not documented yet. */
4086 PageInfo pageInfo; 4022 PageInfo pageInfo;
4087 4023
4088 /** Not documented yet. */
4089 TokenPagination tokenPagination; 4024 TokenPagination tokenPagination;
4090 4025
4091 4026
4092 InappproductsListResponse(); 4027 InappproductsListResponse();
4093 4028
4094 InappproductsListResponse.fromJson(core.Map _json) { 4029 InappproductsListResponse.fromJson(core.Map _json) {
4095 if (_json.containsKey("inappproduct")) { 4030 if (_json.containsKey("inappproduct")) {
4096 inappproduct = _json["inappproduct"].map((value) => new InAppProduct.fromJ son(value)).toList(); 4031 inappproduct = _json["inappproduct"].map((value) => new InAppProduct.fromJ son(value)).toList();
4097 } 4032 }
4098 if (_json.containsKey("kind")) { 4033 if (_json.containsKey("kind")) {
(...skipping 19 matching lines...) Expand all
4118 _json["pageInfo"] = (pageInfo).toJson(); 4053 _json["pageInfo"] = (pageInfo).toJson();
4119 } 4054 }
4120 if (tokenPagination != null) { 4055 if (tokenPagination != null) {
4121 _json["tokenPagination"] = (tokenPagination).toJson(); 4056 _json["tokenPagination"] = (tokenPagination).toJson();
4122 } 4057 }
4123 return _json; 4058 return _json;
4124 } 4059 }
4125 } 4060 }
4126 4061
4127 4062
4128 /** Not documented yet. */
4129 class InappproductsUpdateRequest { 4063 class InappproductsUpdateRequest {
4130 /** Not documented yet. */
4131 InAppProduct inappproduct; 4064 InAppProduct inappproduct;
4132 4065
4133 4066
4134 InappproductsUpdateRequest(); 4067 InappproductsUpdateRequest();
4135 4068
4136 InappproductsUpdateRequest.fromJson(core.Map _json) { 4069 InappproductsUpdateRequest.fromJson(core.Map _json) {
4137 if (_json.containsKey("inappproduct")) { 4070 if (_json.containsKey("inappproduct")) {
4138 inappproduct = new InAppProduct.fromJson(_json["inappproduct"]); 4071 inappproduct = new InAppProduct.fromJson(_json["inappproduct"]);
4139 } 4072 }
4140 } 4073 }
4141 4074
4142 core.Map toJson() { 4075 core.Map toJson() {
4143 var _json = new core.Map(); 4076 var _json = new core.Map();
4144 if (inappproduct != null) { 4077 if (inappproduct != null) {
4145 _json["inappproduct"] = (inappproduct).toJson(); 4078 _json["inappproduct"] = (inappproduct).toJson();
4146 } 4079 }
4147 return _json; 4080 return _json;
4148 } 4081 }
4149 } 4082 }
4150 4083
4151 4084
4152 /** Not documented yet. */
4153 class InappproductsUpdateResponse { 4085 class InappproductsUpdateResponse {
4154 /** Not documented yet. */
4155 InAppProduct inappproduct; 4086 InAppProduct inappproduct;
4156 4087
4157 4088
4158 InappproductsUpdateResponse(); 4089 InappproductsUpdateResponse();
4159 4090
4160 InappproductsUpdateResponse.fromJson(core.Map _json) { 4091 InappproductsUpdateResponse.fromJson(core.Map _json) {
4161 if (_json.containsKey("inappproduct")) { 4092 if (_json.containsKey("inappproduct")) {
4162 inappproduct = new InAppProduct.fromJson(_json["inappproduct"]); 4093 inappproduct = new InAppProduct.fromJson(_json["inappproduct"]);
4163 } 4094 }
4164 } 4095 }
4165 4096
4166 core.Map toJson() { 4097 core.Map toJson() {
4167 var _json = new core.Map(); 4098 var _json = new core.Map();
4168 if (inappproduct != null) { 4099 if (inappproduct != null) {
4169 _json["inappproduct"] = (inappproduct).toJson(); 4100 _json["inappproduct"] = (inappproduct).toJson();
4170 } 4101 }
4171 return _json; 4102 return _json;
4172 } 4103 }
4173 } 4104 }
4174 4105
4175 4106
4176 /** Not documented yet. */
4177 class Listing { 4107 class Listing {
4178 /** 4108 /**
4179 * Full description of the app; this may be up to 4000 characters in length. 4109 * Full description of the app; this may be up to 4000 characters in length.
4180 */ 4110 */
4181 core.String fullDescription; 4111 core.String fullDescription;
4182 4112
4183 /** Language localization code (for example, "de-AT" for Austrian German). */ 4113 /** Language localization code (for example, "de-AT" for Austrian German). */
4184 core.String language; 4114 core.String language;
4185 4115
4186 /** 4116 /**
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
4231 _json["title"] = title; 4161 _json["title"] = title;
4232 } 4162 }
4233 if (video != null) { 4163 if (video != null) {
4234 _json["video"] = video; 4164 _json["video"] = video;
4235 } 4165 }
4236 return _json; 4166 return _json;
4237 } 4167 }
4238 } 4168 }
4239 4169
4240 4170
4241 /** Not documented yet. */
4242 class ListingsListResponse { 4171 class ListingsListResponse {
4243 /** 4172 /**
4244 * Identifies what kind of resource this is. Value: the fixed string 4173 * Identifies what kind of resource this is. Value: the fixed string
4245 * "androidpublisher#listingsListResponse". 4174 * "androidpublisher#listingsListResponse".
4246 */ 4175 */
4247 core.String kind; 4176 core.String kind;
4248 4177
4249 /** Not documented yet. */
4250 core.List<Listing> listings; 4178 core.List<Listing> listings;
4251 4179
4252 4180
4253 ListingsListResponse(); 4181 ListingsListResponse();
4254 4182
4255 ListingsListResponse.fromJson(core.Map _json) { 4183 ListingsListResponse.fromJson(core.Map _json) {
4256 if (_json.containsKey("kind")) { 4184 if (_json.containsKey("kind")) {
4257 kind = _json["kind"]; 4185 kind = _json["kind"];
4258 } 4186 }
4259 if (_json.containsKey("listings")) { 4187 if (_json.containsKey("listings")) {
4260 listings = _json["listings"].map((value) => new Listing.fromJson(value)).t oList(); 4188 listings = _json["listings"].map((value) => new Listing.fromJson(value)).t oList();
4261 } 4189 }
4262 } 4190 }
4263 4191
4264 core.Map toJson() { 4192 core.Map toJson() {
4265 var _json = new core.Map(); 4193 var _json = new core.Map();
4266 if (kind != null) { 4194 if (kind != null) {
4267 _json["kind"] = kind; 4195 _json["kind"] = kind;
4268 } 4196 }
4269 if (listings != null) { 4197 if (listings != null) {
4270 _json["listings"] = listings.map((value) => (value).toJson()).toList(); 4198 _json["listings"] = listings.map((value) => (value).toJson()).toList();
4271 } 4199 }
4272 return _json; 4200 return _json;
4273 } 4201 }
4274 } 4202 }
4275 4203
4276 4204
4277 /** Not documented yet. */
4278 class MonthDay { 4205 class MonthDay {
4279 /** 4206 /**
4280 * Day of a month, value in [1, 31] range. Valid range depends on the 4207 * Day of a month, value in [1, 31] range. Valid range depends on the
4281 * specified month. 4208 * specified month.
4282 */ 4209 */
4283 core.int day; 4210 core.int day;
4284 4211
4285 /** Month of a year. e.g. 1 = JAN, 2 = FEB etc. */ 4212 /** Month of a year. e.g. 1 = JAN, 2 = FEB etc. */
4286 core.int month; 4213 core.int month;
4287 4214
(...skipping 15 matching lines...) Expand all
4303 _json["day"] = day; 4230 _json["day"] = day;
4304 } 4231 }
4305 if (month != null) { 4232 if (month != null) {
4306 _json["month"] = month; 4233 _json["month"] = month;
4307 } 4234 }
4308 return _json; 4235 return _json;
4309 } 4236 }
4310 } 4237 }
4311 4238
4312 4239
4313 /** Not documented yet. */
4314 class PageInfo { 4240 class PageInfo {
4315 /** Not documented yet. */
4316 core.int resultPerPage; 4241 core.int resultPerPage;
4317 4242
4318 /** Not documented yet. */
4319 core.int startIndex; 4243 core.int startIndex;
4320 4244
4321 /** Not documented yet. */
4322 core.int totalResults; 4245 core.int totalResults;
4323 4246
4324 4247
4325 PageInfo(); 4248 PageInfo();
4326 4249
4327 PageInfo.fromJson(core.Map _json) { 4250 PageInfo.fromJson(core.Map _json) {
4328 if (_json.containsKey("resultPerPage")) { 4251 if (_json.containsKey("resultPerPage")) {
4329 resultPerPage = _json["resultPerPage"]; 4252 resultPerPage = _json["resultPerPage"];
4330 } 4253 }
4331 if (_json.containsKey("startIndex")) { 4254 if (_json.containsKey("startIndex")) {
(...skipping 13 matching lines...) Expand all
4345 _json["startIndex"] = startIndex; 4268 _json["startIndex"] = startIndex;
4346 } 4269 }
4347 if (totalResults != null) { 4270 if (totalResults != null) {
4348 _json["totalResults"] = totalResults; 4271 _json["totalResults"] = totalResults;
4349 } 4272 }
4350 return _json; 4273 return _json;
4351 } 4274 }
4352 } 4275 }
4353 4276
4354 4277
4355 /** Not documented yet. */
4356 class Price { 4278 class Price {
4357 /** 3 letter Currency code, as defined by ISO 4217. */ 4279 /** 3 letter Currency code, as defined by ISO 4217. */
4358 core.String currency; 4280 core.String currency;
4359 4281
4360 /** 4282 /**
4361 * The price in millionths of the currency base unit represented as a string. 4283 * The price in millionths of the currency base unit represented as a string.
4362 */ 4284 */
4363 core.String priceMicros; 4285 core.String priceMicros;
4364 4286
4365 4287
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
4460 _json["purchaseState"] = purchaseState; 4382 _json["purchaseState"] = purchaseState;
4461 } 4383 }
4462 if (purchaseTimeMillis != null) { 4384 if (purchaseTimeMillis != null) {
4463 _json["purchaseTimeMillis"] = purchaseTimeMillis; 4385 _json["purchaseTimeMillis"] = purchaseTimeMillis;
4464 } 4386 }
4465 return _json; 4387 return _json;
4466 } 4388 }
4467 } 4389 }
4468 4390
4469 4391
4470 /** Not documented yet. */
4471 class Season { 4392 class Season {
4472 /** Inclusive end date of the recurrence period. */ 4393 /** Inclusive end date of the recurrence period. */
4473 MonthDay end; 4394 MonthDay end;
4474 4395
4475 /** Inclusive start date of the recurrence period. */ 4396 /** Inclusive start date of the recurrence period. */
4476 MonthDay start; 4397 MonthDay start;
4477 4398
4478 4399
4479 Season(); 4400 Season();
4480 4401
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
4601 _json["kind"] = kind; 4522 _json["kind"] = kind;
4602 } 4523 }
4603 if (startTimeMillis != null) { 4524 if (startTimeMillis != null) {
4604 _json["startTimeMillis"] = startTimeMillis; 4525 _json["startTimeMillis"] = startTimeMillis;
4605 } 4526 }
4606 return _json; 4527 return _json;
4607 } 4528 }
4608 } 4529 }
4609 4530
4610 4531
4611 /** Not documented yet. */
4612 class SubscriptionPurchasesDeferRequest { 4532 class SubscriptionPurchasesDeferRequest {
4613 /** 4533 /**
4614 * The information about the new desired expiry time for the subscription. 4534 * The information about the new desired expiry time for the subscription.
4615 */ 4535 */
4616 SubscriptionDeferralInfo deferralInfo; 4536 SubscriptionDeferralInfo deferralInfo;
4617 4537
4618 4538
4619 SubscriptionPurchasesDeferRequest(); 4539 SubscriptionPurchasesDeferRequest();
4620 4540
4621 SubscriptionPurchasesDeferRequest.fromJson(core.Map _json) { 4541 SubscriptionPurchasesDeferRequest.fromJson(core.Map _json) {
4622 if (_json.containsKey("deferralInfo")) { 4542 if (_json.containsKey("deferralInfo")) {
4623 deferralInfo = new SubscriptionDeferralInfo.fromJson(_json["deferralInfo"] ); 4543 deferralInfo = new SubscriptionDeferralInfo.fromJson(_json["deferralInfo"] );
4624 } 4544 }
4625 } 4545 }
4626 4546
4627 core.Map toJson() { 4547 core.Map toJson() {
4628 var _json = new core.Map(); 4548 var _json = new core.Map();
4629 if (deferralInfo != null) { 4549 if (deferralInfo != null) {
4630 _json["deferralInfo"] = (deferralInfo).toJson(); 4550 _json["deferralInfo"] = (deferralInfo).toJson();
4631 } 4551 }
4632 return _json; 4552 return _json;
4633 } 4553 }
4634 } 4554 }
4635 4555
4636 4556
4637 /** Not documented yet. */
4638 class SubscriptionPurchasesDeferResponse { 4557 class SubscriptionPurchasesDeferResponse {
4639 /** 4558 /**
4640 * The new expiry time for the subscription in milliseconds since the Epoch. 4559 * The new expiry time for the subscription in milliseconds since the Epoch.
4641 */ 4560 */
4642 core.String newExpiryTimeMillis; 4561 core.String newExpiryTimeMillis;
4643 4562
4644 4563
4645 SubscriptionPurchasesDeferResponse(); 4564 SubscriptionPurchasesDeferResponse();
4646 4565
4647 SubscriptionPurchasesDeferResponse.fromJson(core.Map _json) { 4566 SubscriptionPurchasesDeferResponse.fromJson(core.Map _json) {
4648 if (_json.containsKey("newExpiryTimeMillis")) { 4567 if (_json.containsKey("newExpiryTimeMillis")) {
4649 newExpiryTimeMillis = _json["newExpiryTimeMillis"]; 4568 newExpiryTimeMillis = _json["newExpiryTimeMillis"];
4650 } 4569 }
4651 } 4570 }
4652 4571
4653 core.Map toJson() { 4572 core.Map toJson() {
4654 var _json = new core.Map(); 4573 var _json = new core.Map();
4655 if (newExpiryTimeMillis != null) { 4574 if (newExpiryTimeMillis != null) {
4656 _json["newExpiryTimeMillis"] = newExpiryTimeMillis; 4575 _json["newExpiryTimeMillis"] = newExpiryTimeMillis;
4657 } 4576 }
4658 return _json; 4577 return _json;
4659 } 4578 }
4660 } 4579 }
4661 4580
4662 4581
4663 /** Not documented yet. */
4664 class Testers { 4582 class Testers {
4665 /** Not documented yet. */
4666 core.List<core.String> googleGroups; 4583 core.List<core.String> googleGroups;
4667 4584
4668 /** Not documented yet. */
4669 core.List<core.String> googlePlusCommunities; 4585 core.List<core.String> googlePlusCommunities;
4670 4586
4671 4587
4672 Testers(); 4588 Testers();
4673 4589
4674 Testers.fromJson(core.Map _json) { 4590 Testers.fromJson(core.Map _json) {
4675 if (_json.containsKey("googleGroups")) { 4591 if (_json.containsKey("googleGroups")) {
4676 googleGroups = _json["googleGroups"]; 4592 googleGroups = _json["googleGroups"];
4677 } 4593 }
4678 if (_json.containsKey("googlePlusCommunities")) { 4594 if (_json.containsKey("googlePlusCommunities")) {
4679 googlePlusCommunities = _json["googlePlusCommunities"]; 4595 googlePlusCommunities = _json["googlePlusCommunities"];
4680 } 4596 }
4681 } 4597 }
4682 4598
4683 core.Map toJson() { 4599 core.Map toJson() {
4684 var _json = new core.Map(); 4600 var _json = new core.Map();
4685 if (googleGroups != null) { 4601 if (googleGroups != null) {
4686 _json["googleGroups"] = googleGroups; 4602 _json["googleGroups"] = googleGroups;
4687 } 4603 }
4688 if (googlePlusCommunities != null) { 4604 if (googlePlusCommunities != null) {
4689 _json["googlePlusCommunities"] = googlePlusCommunities; 4605 _json["googlePlusCommunities"] = googlePlusCommunities;
4690 } 4606 }
4691 return _json; 4607 return _json;
4692 } 4608 }
4693 } 4609 }
4694 4610
4695 4611
4696 /** Not documented yet. */
4697 class TokenPagination { 4612 class TokenPagination {
4698 /** Not documented yet. */
4699 core.String nextPageToken; 4613 core.String nextPageToken;
4700 4614
4701 /** Not documented yet. */
4702 core.String previousPageToken; 4615 core.String previousPageToken;
4703 4616
4704 4617
4705 TokenPagination(); 4618 TokenPagination();
4706 4619
4707 TokenPagination.fromJson(core.Map _json) { 4620 TokenPagination.fromJson(core.Map _json) {
4708 if (_json.containsKey("nextPageToken")) { 4621 if (_json.containsKey("nextPageToken")) {
4709 nextPageToken = _json["nextPageToken"]; 4622 nextPageToken = _json["nextPageToken"];
4710 } 4623 }
4711 if (_json.containsKey("previousPageToken")) { 4624 if (_json.containsKey("previousPageToken")) {
4712 previousPageToken = _json["previousPageToken"]; 4625 previousPageToken = _json["previousPageToken"];
4713 } 4626 }
4714 } 4627 }
4715 4628
4716 core.Map toJson() { 4629 core.Map toJson() {
4717 var _json = new core.Map(); 4630 var _json = new core.Map();
4718 if (nextPageToken != null) { 4631 if (nextPageToken != null) {
4719 _json["nextPageToken"] = nextPageToken; 4632 _json["nextPageToken"] = nextPageToken;
4720 } 4633 }
4721 if (previousPageToken != null) { 4634 if (previousPageToken != null) {
4722 _json["previousPageToken"] = previousPageToken; 4635 _json["previousPageToken"] = previousPageToken;
4723 } 4636 }
4724 return _json; 4637 return _json;
4725 } 4638 }
4726 } 4639 }
4727 4640
4728 4641
4729 /** Not documented yet. */
4730 class Track { 4642 class Track {
4731 /** Not documented yet. */
4732 core.String track; 4643 core.String track;
4733 4644
4734 /** Not documented yet. */
4735 core.double userFraction; 4645 core.double userFraction;
4736 4646
4737 /** Not documented yet. */
4738 core.List<core.int> versionCodes; 4647 core.List<core.int> versionCodes;
4739 4648
4740 4649
4741 Track(); 4650 Track();
4742 4651
4743 Track.fromJson(core.Map _json) { 4652 Track.fromJson(core.Map _json) {
4744 if (_json.containsKey("track")) { 4653 if (_json.containsKey("track")) {
4745 track = _json["track"]; 4654 track = _json["track"];
4746 } 4655 }
4747 if (_json.containsKey("userFraction")) { 4656 if (_json.containsKey("userFraction")) {
(...skipping 13 matching lines...) Expand all
4761 _json["userFraction"] = userFraction; 4670 _json["userFraction"] = userFraction;
4762 } 4671 }
4763 if (versionCodes != null) { 4672 if (versionCodes != null) {
4764 _json["versionCodes"] = versionCodes; 4673 _json["versionCodes"] = versionCodes;
4765 } 4674 }
4766 return _json; 4675 return _json;
4767 } 4676 }
4768 } 4677 }
4769 4678
4770 4679
4771 /** Not documented yet. */
4772 class TracksListResponse { 4680 class TracksListResponse {
4773 /** 4681 /**
4774 * Identifies what kind of resource this is. Value: the fixed string 4682 * Identifies what kind of resource this is. Value: the fixed string
4775 * "androidpublisher#tracksListResponse". 4683 * "androidpublisher#tracksListResponse".
4776 */ 4684 */
4777 core.String kind; 4685 core.String kind;
4778 4686
4779 /** Not documented yet. */
4780 core.List<Track> tracks; 4687 core.List<Track> tracks;
4781 4688
4782 4689
4783 TracksListResponse(); 4690 TracksListResponse();
4784 4691
4785 TracksListResponse.fromJson(core.Map _json) { 4692 TracksListResponse.fromJson(core.Map _json) {
4786 if (_json.containsKey("kind")) { 4693 if (_json.containsKey("kind")) {
4787 kind = _json["kind"]; 4694 kind = _json["kind"];
4788 } 4695 }
4789 if (_json.containsKey("tracks")) { 4696 if (_json.containsKey("tracks")) {
4790 tracks = _json["tracks"].map((value) => new Track.fromJson(value)).toList( ); 4697 tracks = _json["tracks"].map((value) => new Track.fromJson(value)).toList( );
4791 } 4698 }
4792 } 4699 }
4793 4700
4794 core.Map toJson() { 4701 core.Map toJson() {
4795 var _json = new core.Map(); 4702 var _json = new core.Map();
4796 if (kind != null) { 4703 if (kind != null) {
4797 _json["kind"] = kind; 4704 _json["kind"] = kind;
4798 } 4705 }
4799 if (tracks != null) { 4706 if (tracks != null) {
4800 _json["tracks"] = tracks.map((value) => (value).toJson()).toList(); 4707 _json["tracks"] = tracks.map((value) => (value).toJson()).toList();
4801 } 4708 }
4802 return _json; 4709 return _json;
4803 } 4710 }
4804 } 4711 }
4805
4806
OLDNEW
« no previous file with comments | « generated/googleapis/lib/androidenterprise/v1.dart ('k') | generated/googleapis/lib/appsactivity/v1.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698