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

Side by Side Diff: generated/googleapis/lib/mapsengine/v1.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
« no previous file with comments | « generated/googleapis/lib/licensing/v1.dart ('k') | generated/googleapis/lib/mirror/v1.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // This is a generated file (see the discoveryapis_generator project).
2
1 library googleapis.mapsengine.v1; 3 library googleapis.mapsengine.v1;
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 mapsengine/v1';
15 20
16 /** 21 /**
17 * The Google Maps Engine API allows developers to store and query geospatial 22 * The Google Maps Engine API allows developers to store and query geospatial
18 * vector and raster data. 23 * vector and raster data.
19 */ 24 */
20 class MapsengineApi { 25 class MapsengineApi {
21 /** View and manage your Google My Maps data */ 26 /** View and manage your Google My Maps data */
22 static const MapsengineScope = "https://www.googleapis.com/auth/mapsengine"; 27 static const MapsengineScope = "https://www.googleapis.com/auth/mapsengine";
23 28
24 /** View your Google My Maps data */ 29 /** View your Google My Maps data */
25 static const MapsengineReadonlyScope = "https://www.googleapis.com/auth/mapsen gine.readonly"; 30 static const MapsengineReadonlyScope = "https://www.googleapis.com/auth/mapsen gine.readonly";
26 31
27 32
28 final common_internal.ApiRequester _requester; 33 final commons.ApiRequester _requester;
29 34
30 AssetsResourceApi get assets => new AssetsResourceApi(_requester); 35 AssetsResourceApi get assets => new AssetsResourceApi(_requester);
31 LayersResourceApi get layers => new LayersResourceApi(_requester); 36 LayersResourceApi get layers => new LayersResourceApi(_requester);
32 MapsResourceApi get maps => new MapsResourceApi(_requester); 37 MapsResourceApi get maps => new MapsResourceApi(_requester);
33 ProjectsResourceApi get projects => new ProjectsResourceApi(_requester); 38 ProjectsResourceApi get projects => new ProjectsResourceApi(_requester);
34 RasterCollectionsResourceApi get rasterCollections => new RasterCollectionsRes ourceApi(_requester); 39 RasterCollectionsResourceApi get rasterCollections => new RasterCollectionsRes ourceApi(_requester);
35 RastersResourceApi get rasters => new RastersResourceApi(_requester); 40 RastersResourceApi get rasters => new RastersResourceApi(_requester);
36 TablesResourceApi get tables => new TablesResourceApi(_requester); 41 TablesResourceApi get tables => new TablesResourceApi(_requester);
37 42
38 MapsengineApi(http.Client client, {core.String rootUrl: "https://www.googleapi s.com/", core.String servicePath: "mapsengine/v1/"}) : 43 MapsengineApi(http.Client client, {core.String rootUrl: "https://www.googleapi s.com/", core.String servicePath: "mapsengine/v1/"}) :
39 _requester = new common_internal.ApiRequester(client, rootUrl, servicePath ); 44 _requester = new commons.ApiRequester(client, rootUrl, servicePath, USER_A GENT);
40 } 45 }
41 46
42 47
43 /** Not documented yet. */
44 class AssetsResourceApi { 48 class AssetsResourceApi {
45 final common_internal.ApiRequester _requester; 49 final commons.ApiRequester _requester;
46 50
47 AssetsParentsResourceApi get parents => new AssetsParentsResourceApi(_requeste r); 51 AssetsParentsResourceApi get parents => new AssetsParentsResourceApi(_requeste r);
48 AssetsPermissionsResourceApi get permissions => new AssetsPermissionsResourceA pi(_requester); 52 AssetsPermissionsResourceApi get permissions => new AssetsPermissionsResourceA pi(_requester);
49 53
50 AssetsResourceApi(common_internal.ApiRequester client) : 54 AssetsResourceApi(commons.ApiRequester client) :
51 _requester = client; 55 _requester = client;
52 56
53 /** 57 /**
54 * Return metadata for a particular asset. 58 * Return metadata for a particular asset.
55 * 59 *
56 * Request parameters: 60 * Request parameters:
57 * 61 *
58 * [id] - The ID of the asset. 62 * [id] - The ID of the asset.
59 * 63 *
60 * Completes with a [Asset]. 64 * Completes with a [Asset].
61 * 65 *
62 * Completes with a [common.ApiRequestError] if the API endpoint returned an 66 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
63 * error. 67 * error.
64 * 68 *
65 * If the used [http.Client] completes with an error when making a REST call, 69 * If the used [http.Client] completes with an error when making a REST call,
66 * this method will complete with the same error. 70 * this method will complete with the same error.
67 */ 71 */
68 async.Future<Asset> get(core.String id) { 72 async.Future<Asset> get(core.String id) {
69 var _url = null; 73 var _url = null;
70 var _queryParams = new core.Map(); 74 var _queryParams = new core.Map();
71 var _uploadMedia = null; 75 var _uploadMedia = null;
72 var _uploadOptions = null; 76 var _uploadOptions = null;
73 var _downloadOptions = common.DownloadOptions.Metadata; 77 var _downloadOptions = commons.DownloadOptions.Metadata;
74 var _body = null; 78 var _body = null;
75 79
76 if (id == null) { 80 if (id == null) {
77 throw new core.ArgumentError("Parameter id is required."); 81 throw new core.ArgumentError("Parameter id is required.");
78 } 82 }
79 83
80 84
81 _url = 'assets/' + common_internal.Escaper.ecapeVariable('$id'); 85 _url = 'assets/' + commons.Escaper.ecapeVariable('$id');
82 86
83 var _response = _requester.request(_url, 87 var _response = _requester.request(_url,
84 "GET", 88 "GET",
85 body: _body, 89 body: _body,
86 queryParams: _queryParams, 90 queryParams: _queryParams,
87 uploadOptions: _uploadOptions, 91 uploadOptions: _uploadOptions,
88 uploadMedia: _uploadMedia, 92 uploadMedia: _uploadMedia,
89 downloadOptions: _downloadOptions); 93 downloadOptions: _downloadOptions);
90 return _response.then((data) => new Asset.fromJson(data)); 94 return _response.then((data) => new Asset.fromJson(data));
91 } 95 }
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 * 145 *
142 * [tags] - A comma separated list of tags. Returned assets will contain all 146 * [tags] - A comma separated list of tags. Returned assets will contain all
143 * the tags from the list. 147 * the tags from the list.
144 * 148 *
145 * [type] - A comma separated list of asset types. Returned assets will have 149 * [type] - A comma separated list of asset types. Returned assets will have
146 * one of the types from the provided list. Supported values are 'map', 150 * one of the types from the provided list. Supported values are 'map',
147 * 'layer', 'rasterCollection' and 'table'. 151 * 'layer', 'rasterCollection' and 'table'.
148 * 152 *
149 * Completes with a [AssetsListResponse]. 153 * Completes with a [AssetsListResponse].
150 * 154 *
151 * Completes with a [common.ApiRequestError] if the API endpoint returned an 155 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
152 * error. 156 * error.
153 * 157 *
154 * If the used [http.Client] completes with an error when making a REST call, 158 * If the used [http.Client] completes with an error when making a REST call,
155 * this method will complete with the same error. 159 * this method will complete with the same error.
156 */ 160 */
157 async.Future<AssetsListResponse> list({core.String bbox, core.DateTime created After, core.DateTime createdBefore, core.String creatorEmail, core.int maxResult s, core.DateTime modifiedAfter, core.DateTime modifiedBefore, core.String pageTo ken, core.String projectId, core.String role, core.String search, core.String ta gs, core.String type}) { 161 async.Future<AssetsListResponse> list({core.String bbox, core.DateTime created After, core.DateTime createdBefore, core.String creatorEmail, core.int maxResult s, core.DateTime modifiedAfter, core.DateTime modifiedBefore, core.String pageTo ken, core.String projectId, core.String role, core.String search, core.String ta gs, core.String type}) {
158 var _url = null; 162 var _url = null;
159 var _queryParams = new core.Map(); 163 var _queryParams = new core.Map();
160 var _uploadMedia = null; 164 var _uploadMedia = null;
161 var _uploadOptions = null; 165 var _uploadOptions = null;
162 var _downloadOptions = common.DownloadOptions.Metadata; 166 var _downloadOptions = commons.DownloadOptions.Metadata;
163 var _body = null; 167 var _body = null;
164 168
165 if (bbox != null) { 169 if (bbox != null) {
166 _queryParams["bbox"] = [bbox]; 170 _queryParams["bbox"] = [bbox];
167 } 171 }
168 if (createdAfter != null) { 172 if (createdAfter != null) {
169 _queryParams["createdAfter"] = [(createdAfter).toIso8601String()]; 173 _queryParams["createdAfter"] = [(createdAfter).toIso8601String()];
170 } 174 }
171 if (createdBefore != null) { 175 if (createdBefore != null) {
172 _queryParams["createdBefore"] = [(createdBefore).toIso8601String()]; 176 _queryParams["createdBefore"] = [(createdBefore).toIso8601String()];
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
211 queryParams: _queryParams, 215 queryParams: _queryParams,
212 uploadOptions: _uploadOptions, 216 uploadOptions: _uploadOptions,
213 uploadMedia: _uploadMedia, 217 uploadMedia: _uploadMedia,
214 downloadOptions: _downloadOptions); 218 downloadOptions: _downloadOptions);
215 return _response.then((data) => new AssetsListResponse.fromJson(data)); 219 return _response.then((data) => new AssetsListResponse.fromJson(data));
216 } 220 }
217 221
218 } 222 }
219 223
220 224
221 /** Not documented yet. */
222 class AssetsParentsResourceApi { 225 class AssetsParentsResourceApi {
223 final common_internal.ApiRequester _requester; 226 final commons.ApiRequester _requester;
224 227
225 AssetsParentsResourceApi(common_internal.ApiRequester client) : 228 AssetsParentsResourceApi(commons.ApiRequester client) :
226 _requester = client; 229 _requester = client;
227 230
228 /** 231 /**
229 * Return all parent ids of the specified asset. 232 * Return all parent ids of the specified asset.
230 * 233 *
231 * Request parameters: 234 * Request parameters:
232 * 235 *
233 * [id] - The ID of the asset whose parents will be listed. 236 * [id] - The ID of the asset whose parents will be listed.
234 * 237 *
235 * [maxResults] - The maximum number of items to include in a single response 238 * [maxResults] - The maximum number of items to include in a single response
236 * page. The maximum supported value is 50. 239 * page. The maximum supported value is 50.
237 * 240 *
238 * [pageToken] - The continuation token, used to page through large result 241 * [pageToken] - The continuation token, used to page through large result
239 * sets. To get the next page of results, set this parameter to the value of 242 * sets. To get the next page of results, set this parameter to the value of
240 * nextPageToken from the previous response. 243 * nextPageToken from the previous response.
241 * 244 *
242 * Completes with a [ParentsListResponse]. 245 * Completes with a [ParentsListResponse].
243 * 246 *
244 * Completes with a [common.ApiRequestError] if the API endpoint returned an 247 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
245 * error. 248 * error.
246 * 249 *
247 * If the used [http.Client] completes with an error when making a REST call, 250 * If the used [http.Client] completes with an error when making a REST call,
248 * this method will complete with the same error. 251 * this method will complete with the same error.
249 */ 252 */
250 async.Future<ParentsListResponse> list(core.String id, {core.int maxResults, c ore.String pageToken}) { 253 async.Future<ParentsListResponse> list(core.String id, {core.int maxResults, c ore.String pageToken}) {
251 var _url = null; 254 var _url = null;
252 var _queryParams = new core.Map(); 255 var _queryParams = new core.Map();
253 var _uploadMedia = null; 256 var _uploadMedia = null;
254 var _uploadOptions = null; 257 var _uploadOptions = null;
255 var _downloadOptions = common.DownloadOptions.Metadata; 258 var _downloadOptions = commons.DownloadOptions.Metadata;
256 var _body = null; 259 var _body = null;
257 260
258 if (id == null) { 261 if (id == null) {
259 throw new core.ArgumentError("Parameter id is required."); 262 throw new core.ArgumentError("Parameter id is required.");
260 } 263 }
261 if (maxResults != null) { 264 if (maxResults != null) {
262 _queryParams["maxResults"] = ["${maxResults}"]; 265 _queryParams["maxResults"] = ["${maxResults}"];
263 } 266 }
264 if (pageToken != null) { 267 if (pageToken != null) {
265 _queryParams["pageToken"] = [pageToken]; 268 _queryParams["pageToken"] = [pageToken];
266 } 269 }
267 270
268 271
269 _url = 'assets/' + common_internal.Escaper.ecapeVariable('$id') + '/parents' ; 272 _url = 'assets/' + commons.Escaper.ecapeVariable('$id') + '/parents';
270 273
271 var _response = _requester.request(_url, 274 var _response = _requester.request(_url,
272 "GET", 275 "GET",
273 body: _body, 276 body: _body,
274 queryParams: _queryParams, 277 queryParams: _queryParams,
275 uploadOptions: _uploadOptions, 278 uploadOptions: _uploadOptions,
276 uploadMedia: _uploadMedia, 279 uploadMedia: _uploadMedia,
277 downloadOptions: _downloadOptions); 280 downloadOptions: _downloadOptions);
278 return _response.then((data) => new ParentsListResponse.fromJson(data)); 281 return _response.then((data) => new ParentsListResponse.fromJson(data));
279 } 282 }
280 283
281 } 284 }
282 285
283 286
284 /** Not documented yet. */
285 class AssetsPermissionsResourceApi { 287 class AssetsPermissionsResourceApi {
286 final common_internal.ApiRequester _requester; 288 final commons.ApiRequester _requester;
287 289
288 AssetsPermissionsResourceApi(common_internal.ApiRequester client) : 290 AssetsPermissionsResourceApi(commons.ApiRequester client) :
289 _requester = client; 291 _requester = client;
290 292
291 /** 293 /**
292 * Return all of the permissions for the specified asset. 294 * Return all of the permissions for the specified asset.
293 * 295 *
294 * Request parameters: 296 * Request parameters:
295 * 297 *
296 * [id] - The ID of the asset whose permissions will be listed. 298 * [id] - The ID of the asset whose permissions will be listed.
297 * 299 *
298 * Completes with a [PermissionsListResponse]. 300 * Completes with a [PermissionsListResponse].
299 * 301 *
300 * Completes with a [common.ApiRequestError] if the API endpoint returned an 302 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
301 * error. 303 * error.
302 * 304 *
303 * If the used [http.Client] completes with an error when making a REST call, 305 * If the used [http.Client] completes with an error when making a REST call,
304 * this method will complete with the same error. 306 * this method will complete with the same error.
305 */ 307 */
306 async.Future<PermissionsListResponse> list(core.String id) { 308 async.Future<PermissionsListResponse> list(core.String id) {
307 var _url = null; 309 var _url = null;
308 var _queryParams = new core.Map(); 310 var _queryParams = new core.Map();
309 var _uploadMedia = null; 311 var _uploadMedia = null;
310 var _uploadOptions = null; 312 var _uploadOptions = null;
311 var _downloadOptions = common.DownloadOptions.Metadata; 313 var _downloadOptions = commons.DownloadOptions.Metadata;
312 var _body = null; 314 var _body = null;
313 315
314 if (id == null) { 316 if (id == null) {
315 throw new core.ArgumentError("Parameter id is required."); 317 throw new core.ArgumentError("Parameter id is required.");
316 } 318 }
317 319
318 320
319 _url = 'assets/' + common_internal.Escaper.ecapeVariable('$id') + '/permissi ons'; 321 _url = 'assets/' + commons.Escaper.ecapeVariable('$id') + '/permissions';
320 322
321 var _response = _requester.request(_url, 323 var _response = _requester.request(_url,
322 "GET", 324 "GET",
323 body: _body, 325 body: _body,
324 queryParams: _queryParams, 326 queryParams: _queryParams,
325 uploadOptions: _uploadOptions, 327 uploadOptions: _uploadOptions,
326 uploadMedia: _uploadMedia, 328 uploadMedia: _uploadMedia,
327 downloadOptions: _downloadOptions); 329 downloadOptions: _downloadOptions);
328 return _response.then((data) => new PermissionsListResponse.fromJson(data)); 330 return _response.then((data) => new PermissionsListResponse.fromJson(data));
329 } 331 }
330 332
331 } 333 }
332 334
333 335
334 /** Not documented yet. */
335 class LayersResourceApi { 336 class LayersResourceApi {
336 final common_internal.ApiRequester _requester; 337 final commons.ApiRequester _requester;
337 338
338 LayersParentsResourceApi get parents => new LayersParentsResourceApi(_requeste r); 339 LayersParentsResourceApi get parents => new LayersParentsResourceApi(_requeste r);
339 LayersPermissionsResourceApi get permissions => new LayersPermissionsResourceA pi(_requester); 340 LayersPermissionsResourceApi get permissions => new LayersPermissionsResourceA pi(_requester);
340 341
341 LayersResourceApi(common_internal.ApiRequester client) : 342 LayersResourceApi(commons.ApiRequester client) :
342 _requester = client; 343 _requester = client;
343 344
344 /** 345 /**
345 * Cancel processing on a layer asset. 346 * Cancel processing on a layer asset.
346 * 347 *
347 * Request parameters: 348 * Request parameters:
348 * 349 *
349 * [id] - The ID of the layer. 350 * [id] - The ID of the layer.
350 * 351 *
351 * Completes with a [ProcessResponse]. 352 * Completes with a [ProcessResponse].
352 * 353 *
353 * Completes with a [common.ApiRequestError] if the API endpoint returned an 354 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
354 * error. 355 * error.
355 * 356 *
356 * If the used [http.Client] completes with an error when making a REST call, 357 * If the used [http.Client] completes with an error when making a REST call,
357 * this method will complete with the same error. 358 * this method will complete with the same error.
358 */ 359 */
359 async.Future<ProcessResponse> cancelProcessing(core.String id) { 360 async.Future<ProcessResponse> cancelProcessing(core.String id) {
360 var _url = null; 361 var _url = null;
361 var _queryParams = new core.Map(); 362 var _queryParams = new core.Map();
362 var _uploadMedia = null; 363 var _uploadMedia = null;
363 var _uploadOptions = null; 364 var _uploadOptions = null;
364 var _downloadOptions = common.DownloadOptions.Metadata; 365 var _downloadOptions = commons.DownloadOptions.Metadata;
365 var _body = null; 366 var _body = null;
366 367
367 if (id == null) { 368 if (id == null) {
368 throw new core.ArgumentError("Parameter id is required."); 369 throw new core.ArgumentError("Parameter id is required.");
369 } 370 }
370 371
371 372
372 _url = 'layers/' + common_internal.Escaper.ecapeVariable('$id') + '/cancelPr ocessing'; 373 _url = 'layers/' + commons.Escaper.ecapeVariable('$id') + '/cancelProcessing ';
373 374
374 var _response = _requester.request(_url, 375 var _response = _requester.request(_url,
375 "POST", 376 "POST",
376 body: _body, 377 body: _body,
377 queryParams: _queryParams, 378 queryParams: _queryParams,
378 uploadOptions: _uploadOptions, 379 uploadOptions: _uploadOptions,
379 uploadMedia: _uploadMedia, 380 uploadMedia: _uploadMedia,
380 downloadOptions: _downloadOptions); 381 downloadOptions: _downloadOptions);
381 return _response.then((data) => new ProcessResponse.fromJson(data)); 382 return _response.then((data) => new ProcessResponse.fromJson(data));
382 } 383 }
383 384
384 /** 385 /**
385 * Create a layer asset. 386 * Create a layer asset.
386 * 387 *
387 * [request] - The metadata request object. 388 * [request] - The metadata request object.
388 * 389 *
389 * Request parameters: 390 * Request parameters:
390 * 391 *
391 * [process_1] - Whether to queue the created layer for processing. 392 * [process_1] - Whether to queue the created layer for processing.
392 * 393 *
393 * Completes with a [Layer]. 394 * Completes with a [Layer].
394 * 395 *
395 * Completes with a [common.ApiRequestError] if the API endpoint returned an 396 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
396 * error. 397 * error.
397 * 398 *
398 * If the used [http.Client] completes with an error when making a REST call, 399 * If the used [http.Client] completes with an error when making a REST call,
399 * this method will complete with the same error. 400 * this method will complete with the same error.
400 */ 401 */
401 async.Future<Layer> create(Layer request, {core.bool process_1}) { 402 async.Future<Layer> create(Layer request, {core.bool process_1}) {
402 var _url = null; 403 var _url = null;
403 var _queryParams = new core.Map(); 404 var _queryParams = new core.Map();
404 var _uploadMedia = null; 405 var _uploadMedia = null;
405 var _uploadOptions = null; 406 var _uploadOptions = null;
406 var _downloadOptions = common.DownloadOptions.Metadata; 407 var _downloadOptions = commons.DownloadOptions.Metadata;
407 var _body = null; 408 var _body = null;
408 409
409 if (request != null) { 410 if (request != null) {
410 _body = convert.JSON.encode((request).toJson()); 411 _body = convert.JSON.encode((request).toJson());
411 } 412 }
412 if (process_1 != null) { 413 if (process_1 != null) {
413 _queryParams["process"] = ["${process_1}"]; 414 _queryParams["process"] = ["${process_1}"];
414 } 415 }
415 416
416 417
(...skipping 12 matching lines...) Expand all
429 /** 430 /**
430 * Delete a layer. 431 * Delete a layer.
431 * 432 *
432 * Request parameters: 433 * Request parameters:
433 * 434 *
434 * [id] - The ID of the layer. Only the layer creator or project owner are 435 * [id] - The ID of the layer. Only the layer creator or project owner are
435 * permitted to delete. If the layer is published, or included in a map, the 436 * permitted to delete. If the layer is published, or included in a map, the
436 * request will fail. Unpublish the layer, and remove it from all maps prior 437 * request will fail. Unpublish the layer, and remove it from all maps prior
437 * to deleting. 438 * to deleting.
438 * 439 *
439 * Completes with a [common.ApiRequestError] if the API endpoint returned an 440 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
440 * error. 441 * error.
441 * 442 *
442 * If the used [http.Client] completes with an error when making a REST call, 443 * If the used [http.Client] completes with an error when making a REST call,
443 * this method will complete with the same error. 444 * this method will complete with the same error.
444 */ 445 */
445 async.Future delete(core.String id) { 446 async.Future delete(core.String id) {
446 var _url = null; 447 var _url = null;
447 var _queryParams = new core.Map(); 448 var _queryParams = new core.Map();
448 var _uploadMedia = null; 449 var _uploadMedia = null;
449 var _uploadOptions = null; 450 var _uploadOptions = null;
450 var _downloadOptions = common.DownloadOptions.Metadata; 451 var _downloadOptions = commons.DownloadOptions.Metadata;
451 var _body = null; 452 var _body = null;
452 453
453 if (id == null) { 454 if (id == null) {
454 throw new core.ArgumentError("Parameter id is required."); 455 throw new core.ArgumentError("Parameter id is required.");
455 } 456 }
456 457
457 _downloadOptions = null; 458 _downloadOptions = null;
458 459
459 _url = 'layers/' + common_internal.Escaper.ecapeVariable('$id'); 460 _url = 'layers/' + commons.Escaper.ecapeVariable('$id');
460 461
461 var _response = _requester.request(_url, 462 var _response = _requester.request(_url,
462 "DELETE", 463 "DELETE",
463 body: _body, 464 body: _body,
464 queryParams: _queryParams, 465 queryParams: _queryParams,
465 uploadOptions: _uploadOptions, 466 uploadOptions: _uploadOptions,
466 uploadMedia: _uploadMedia, 467 uploadMedia: _uploadMedia,
467 downloadOptions: _downloadOptions); 468 downloadOptions: _downloadOptions);
468 return _response.then((data) => null); 469 return _response.then((data) => null);
469 } 470 }
470 471
471 /** 472 /**
472 * Return metadata for a particular layer. 473 * Return metadata for a particular layer.
473 * 474 *
474 * Request parameters: 475 * Request parameters:
475 * 476 *
476 * [id] - The ID of the layer. 477 * [id] - The ID of the layer.
477 * 478 *
478 * [version] - Deprecated: The version parameter indicates which version of 479 * [version] - Deprecated: The version parameter indicates which version of
479 * the layer should be returned. When version is set to published, the 480 * the layer should be returned. When version is set to published, the
480 * published version of the layer will be returned. Please use the 481 * published version of the layer will be returned. Please use the
481 * layers.getPublished endpoint instead. 482 * layers.getPublished endpoint instead.
482 * Possible string values are: 483 * Possible string values are:
483 * - "draft" : The draft version. 484 * - "draft" : The draft version.
484 * - "published" : The published version. 485 * - "published" : The published version.
485 * 486 *
486 * Completes with a [Layer]. 487 * Completes with a [Layer].
487 * 488 *
488 * Completes with a [common.ApiRequestError] if the API endpoint returned an 489 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
489 * error. 490 * error.
490 * 491 *
491 * If the used [http.Client] completes with an error when making a REST call, 492 * If the used [http.Client] completes with an error when making a REST call,
492 * this method will complete with the same error. 493 * this method will complete with the same error.
493 */ 494 */
494 async.Future<Layer> get(core.String id, {core.String version}) { 495 async.Future<Layer> get(core.String id, {core.String version}) {
495 var _url = null; 496 var _url = null;
496 var _queryParams = new core.Map(); 497 var _queryParams = new core.Map();
497 var _uploadMedia = null; 498 var _uploadMedia = null;
498 var _uploadOptions = null; 499 var _uploadOptions = null;
499 var _downloadOptions = common.DownloadOptions.Metadata; 500 var _downloadOptions = commons.DownloadOptions.Metadata;
500 var _body = null; 501 var _body = null;
501 502
502 if (id == null) { 503 if (id == null) {
503 throw new core.ArgumentError("Parameter id is required."); 504 throw new core.ArgumentError("Parameter id is required.");
504 } 505 }
505 if (version != null) { 506 if (version != null) {
506 _queryParams["version"] = [version]; 507 _queryParams["version"] = [version];
507 } 508 }
508 509
509 510
510 _url = 'layers/' + common_internal.Escaper.ecapeVariable('$id'); 511 _url = 'layers/' + commons.Escaper.ecapeVariable('$id');
511 512
512 var _response = _requester.request(_url, 513 var _response = _requester.request(_url,
513 "GET", 514 "GET",
514 body: _body, 515 body: _body,
515 queryParams: _queryParams, 516 queryParams: _queryParams,
516 uploadOptions: _uploadOptions, 517 uploadOptions: _uploadOptions,
517 uploadMedia: _uploadMedia, 518 uploadMedia: _uploadMedia,
518 downloadOptions: _downloadOptions); 519 downloadOptions: _downloadOptions);
519 return _response.then((data) => new Layer.fromJson(data)); 520 return _response.then((data) => new Layer.fromJson(data));
520 } 521 }
521 522
522 /** 523 /**
523 * Return the published metadata for a particular layer. 524 * Return the published metadata for a particular layer.
524 * 525 *
525 * Request parameters: 526 * Request parameters:
526 * 527 *
527 * [id] - The ID of the layer. 528 * [id] - The ID of the layer.
528 * 529 *
529 * Completes with a [PublishedLayer]. 530 * Completes with a [PublishedLayer].
530 * 531 *
531 * Completes with a [common.ApiRequestError] if the API endpoint returned an 532 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
532 * error. 533 * error.
533 * 534 *
534 * If the used [http.Client] completes with an error when making a REST call, 535 * If the used [http.Client] completes with an error when making a REST call,
535 * this method will complete with the same error. 536 * this method will complete with the same error.
536 */ 537 */
537 async.Future<PublishedLayer> getPublished(core.String id) { 538 async.Future<PublishedLayer> getPublished(core.String id) {
538 var _url = null; 539 var _url = null;
539 var _queryParams = new core.Map(); 540 var _queryParams = new core.Map();
540 var _uploadMedia = null; 541 var _uploadMedia = null;
541 var _uploadOptions = null; 542 var _uploadOptions = null;
542 var _downloadOptions = common.DownloadOptions.Metadata; 543 var _downloadOptions = commons.DownloadOptions.Metadata;
543 var _body = null; 544 var _body = null;
544 545
545 if (id == null) { 546 if (id == null) {
546 throw new core.ArgumentError("Parameter id is required."); 547 throw new core.ArgumentError("Parameter id is required.");
547 } 548 }
548 549
549 550
550 _url = 'layers/' + common_internal.Escaper.ecapeVariable('$id') + '/publishe d'; 551 _url = 'layers/' + commons.Escaper.ecapeVariable('$id') + '/published';
551 552
552 var _response = _requester.request(_url, 553 var _response = _requester.request(_url,
553 "GET", 554 "GET",
554 body: _body, 555 body: _body,
555 queryParams: _queryParams, 556 queryParams: _queryParams,
556 uploadOptions: _uploadOptions, 557 uploadOptions: _uploadOptions,
557 uploadMedia: _uploadMedia, 558 uploadMedia: _uploadMedia,
558 downloadOptions: _downloadOptions); 559 downloadOptions: _downloadOptions);
559 return _response.then((data) => new PublishedLayer.fromJson(data)); 560 return _response.then((data) => new PublishedLayer.fromJson(data));
560 } 561 }
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
614 * - "writer" : The user can read and write the asset. 615 * - "writer" : The user can read and write the asset.
615 * 616 *
616 * [search] - An unstructured search string used to filter the set of results 617 * [search] - An unstructured search string used to filter the set of results
617 * based on asset metadata. 618 * based on asset metadata.
618 * 619 *
619 * [tags] - A comma separated list of tags. Returned assets will contain all 620 * [tags] - A comma separated list of tags. Returned assets will contain all
620 * the tags from the list. 621 * the tags from the list.
621 * 622 *
622 * Completes with a [LayersListResponse]. 623 * Completes with a [LayersListResponse].
623 * 624 *
624 * Completes with a [common.ApiRequestError] if the API endpoint returned an 625 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
625 * error. 626 * error.
626 * 627 *
627 * If the used [http.Client] completes with an error when making a REST call, 628 * If the used [http.Client] completes with an error when making a REST call,
628 * this method will complete with the same error. 629 * this method will complete with the same error.
629 */ 630 */
630 async.Future<LayersListResponse> list({core.String bbox, core.DateTime created After, core.DateTime createdBefore, core.String creatorEmail, core.int maxResult s, core.DateTime modifiedAfter, core.DateTime modifiedBefore, core.String pageTo ken, core.String processingStatus, core.String projectId, core.String role, core .String search, core.String tags}) { 631 async.Future<LayersListResponse> list({core.String bbox, core.DateTime created After, core.DateTime createdBefore, core.String creatorEmail, core.int maxResult s, core.DateTime modifiedAfter, core.DateTime modifiedBefore, core.String pageTo ken, core.String processingStatus, core.String projectId, core.String role, core .String search, core.String tags}) {
631 var _url = null; 632 var _url = null;
632 var _queryParams = new core.Map(); 633 var _queryParams = new core.Map();
633 var _uploadMedia = null; 634 var _uploadMedia = null;
634 var _uploadOptions = null; 635 var _uploadOptions = null;
635 var _downloadOptions = common.DownloadOptions.Metadata; 636 var _downloadOptions = commons.DownloadOptions.Metadata;
636 var _body = null; 637 var _body = null;
637 638
638 if (bbox != null) { 639 if (bbox != null) {
639 _queryParams["bbox"] = [bbox]; 640 _queryParams["bbox"] = [bbox];
640 } 641 }
641 if (createdAfter != null) { 642 if (createdAfter != null) {
642 _queryParams["createdAfter"] = [(createdAfter).toIso8601String()]; 643 _queryParams["createdAfter"] = [(createdAfter).toIso8601String()];
643 } 644 }
644 if (createdBefore != null) { 645 if (createdBefore != null) {
645 _queryParams["createdBefore"] = [(createdBefore).toIso8601String()]; 646 _queryParams["createdBefore"] = [(createdBefore).toIso8601String()];
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
700 * sets. To get the next page of results, set this parameter to the value of 701 * sets. To get the next page of results, set this parameter to the value of
701 * nextPageToken from the previous response. 702 * nextPageToken from the previous response.
702 * 703 *
703 * [projectId] - The ID of a Maps Engine project, used to filter the response. 704 * [projectId] - The ID of a Maps Engine project, used to filter the response.
704 * To list all available projects with their IDs, send a Projects: list 705 * To list all available projects with their IDs, send a Projects: list
705 * request. You can also find your project ID as the value of the 706 * request. You can also find your project ID as the value of the
706 * DashboardPlace:cid URL parameter when signed in to mapsengine.google.com. 707 * DashboardPlace:cid URL parameter when signed in to mapsengine.google.com.
707 * 708 *
708 * Completes with a [PublishedLayersListResponse]. 709 * Completes with a [PublishedLayersListResponse].
709 * 710 *
710 * Completes with a [common.ApiRequestError] if the API endpoint returned an 711 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
711 * error. 712 * error.
712 * 713 *
713 * If the used [http.Client] completes with an error when making a REST call, 714 * If the used [http.Client] completes with an error when making a REST call,
714 * this method will complete with the same error. 715 * this method will complete with the same error.
715 */ 716 */
716 async.Future<PublishedLayersListResponse> listPublished({core.int maxResults, core.String pageToken, core.String projectId}) { 717 async.Future<PublishedLayersListResponse> listPublished({core.int maxResults, core.String pageToken, core.String projectId}) {
717 var _url = null; 718 var _url = null;
718 var _queryParams = new core.Map(); 719 var _queryParams = new core.Map();
719 var _uploadMedia = null; 720 var _uploadMedia = null;
720 var _uploadOptions = null; 721 var _uploadOptions = null;
721 var _downloadOptions = common.DownloadOptions.Metadata; 722 var _downloadOptions = commons.DownloadOptions.Metadata;
722 var _body = null; 723 var _body = null;
723 724
724 if (maxResults != null) { 725 if (maxResults != null) {
725 _queryParams["maxResults"] = ["${maxResults}"]; 726 _queryParams["maxResults"] = ["${maxResults}"];
726 } 727 }
727 if (pageToken != null) { 728 if (pageToken != null) {
728 _queryParams["pageToken"] = [pageToken]; 729 _queryParams["pageToken"] = [pageToken];
729 } 730 }
730 if (projectId != null) { 731 if (projectId != null) {
731 _queryParams["projectId"] = [projectId]; 732 _queryParams["projectId"] = [projectId];
(...skipping 14 matching lines...) Expand all
746 747
747 /** 748 /**
748 * Mutate a layer asset. 749 * Mutate a layer asset.
749 * 750 *
750 * [request] - The metadata request object. 751 * [request] - The metadata request object.
751 * 752 *
752 * Request parameters: 753 * Request parameters:
753 * 754 *
754 * [id] - The ID of the layer. 755 * [id] - The ID of the layer.
755 * 756 *
756 * Completes with a [common.ApiRequestError] if the API endpoint returned an 757 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
757 * error. 758 * error.
758 * 759 *
759 * If the used [http.Client] completes with an error when making a REST call, 760 * If the used [http.Client] completes with an error when making a REST call,
760 * this method will complete with the same error. 761 * this method will complete with the same error.
761 */ 762 */
762 async.Future patch(Layer request, core.String id) { 763 async.Future patch(Layer request, core.String id) {
763 var _url = null; 764 var _url = null;
764 var _queryParams = new core.Map(); 765 var _queryParams = new core.Map();
765 var _uploadMedia = null; 766 var _uploadMedia = null;
766 var _uploadOptions = null; 767 var _uploadOptions = null;
767 var _downloadOptions = common.DownloadOptions.Metadata; 768 var _downloadOptions = commons.DownloadOptions.Metadata;
768 var _body = null; 769 var _body = null;
769 770
770 if (request != null) { 771 if (request != null) {
771 _body = convert.JSON.encode((request).toJson()); 772 _body = convert.JSON.encode((request).toJson());
772 } 773 }
773 if (id == null) { 774 if (id == null) {
774 throw new core.ArgumentError("Parameter id is required."); 775 throw new core.ArgumentError("Parameter id is required.");
775 } 776 }
776 777
777 _downloadOptions = null; 778 _downloadOptions = null;
778 779
779 _url = 'layers/' + common_internal.Escaper.ecapeVariable('$id'); 780 _url = 'layers/' + commons.Escaper.ecapeVariable('$id');
780 781
781 var _response = _requester.request(_url, 782 var _response = _requester.request(_url,
782 "PATCH", 783 "PATCH",
783 body: _body, 784 body: _body,
784 queryParams: _queryParams, 785 queryParams: _queryParams,
785 uploadOptions: _uploadOptions, 786 uploadOptions: _uploadOptions,
786 uploadMedia: _uploadMedia, 787 uploadMedia: _uploadMedia,
787 downloadOptions: _downloadOptions); 788 downloadOptions: _downloadOptions);
788 return _response.then((data) => null); 789 return _response.then((data) => null);
789 } 790 }
790 791
791 /** 792 /**
792 * Process a layer asset. 793 * Process a layer asset.
793 * 794 *
794 * Request parameters: 795 * Request parameters:
795 * 796 *
796 * [id] - The ID of the layer. 797 * [id] - The ID of the layer.
797 * 798 *
798 * Completes with a [ProcessResponse]. 799 * Completes with a [ProcessResponse].
799 * 800 *
800 * Completes with a [common.ApiRequestError] if the API endpoint returned an 801 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
801 * error. 802 * error.
802 * 803 *
803 * If the used [http.Client] completes with an error when making a REST call, 804 * If the used [http.Client] completes with an error when making a REST call,
804 * this method will complete with the same error. 805 * this method will complete with the same error.
805 */ 806 */
806 async.Future<ProcessResponse> process(core.String id) { 807 async.Future<ProcessResponse> process(core.String id) {
807 var _url = null; 808 var _url = null;
808 var _queryParams = new core.Map(); 809 var _queryParams = new core.Map();
809 var _uploadMedia = null; 810 var _uploadMedia = null;
810 var _uploadOptions = null; 811 var _uploadOptions = null;
811 var _downloadOptions = common.DownloadOptions.Metadata; 812 var _downloadOptions = commons.DownloadOptions.Metadata;
812 var _body = null; 813 var _body = null;
813 814
814 if (id == null) { 815 if (id == null) {
815 throw new core.ArgumentError("Parameter id is required."); 816 throw new core.ArgumentError("Parameter id is required.");
816 } 817 }
817 818
818 819
819 _url = 'layers/' + common_internal.Escaper.ecapeVariable('$id') + '/process' ; 820 _url = 'layers/' + commons.Escaper.ecapeVariable('$id') + '/process';
820 821
821 var _response = _requester.request(_url, 822 var _response = _requester.request(_url,
822 "POST", 823 "POST",
823 body: _body, 824 body: _body,
824 queryParams: _queryParams, 825 queryParams: _queryParams,
825 uploadOptions: _uploadOptions, 826 uploadOptions: _uploadOptions,
826 uploadMedia: _uploadMedia, 827 uploadMedia: _uploadMedia,
827 downloadOptions: _downloadOptions); 828 downloadOptions: _downloadOptions);
828 return _response.then((data) => new ProcessResponse.fromJson(data)); 829 return _response.then((data) => new ProcessResponse.fromJson(data));
829 } 830 }
830 831
831 /** 832 /**
832 * Publish a layer asset. 833 * Publish a layer asset.
833 * 834 *
834 * Request parameters: 835 * Request parameters:
835 * 836 *
836 * [id] - The ID of the layer. 837 * [id] - The ID of the layer.
837 * 838 *
838 * [force] - If set to true, the API will allow publication of the layer even 839 * [force] - If set to true, the API will allow publication of the layer even
839 * if it's out of date. If not true, you'll need to reprocess any out-of-date 840 * if it's out of date. If not true, you'll need to reprocess any out-of-date
840 * layer before publishing. 841 * layer before publishing.
841 * 842 *
842 * Completes with a [PublishResponse]. 843 * Completes with a [PublishResponse].
843 * 844 *
844 * Completes with a [common.ApiRequestError] if the API endpoint returned an 845 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
845 * error. 846 * error.
846 * 847 *
847 * If the used [http.Client] completes with an error when making a REST call, 848 * If the used [http.Client] completes with an error when making a REST call,
848 * this method will complete with the same error. 849 * this method will complete with the same error.
849 */ 850 */
850 async.Future<PublishResponse> publish(core.String id, {core.bool force}) { 851 async.Future<PublishResponse> publish(core.String id, {core.bool force}) {
851 var _url = null; 852 var _url = null;
852 var _queryParams = new core.Map(); 853 var _queryParams = new core.Map();
853 var _uploadMedia = null; 854 var _uploadMedia = null;
854 var _uploadOptions = null; 855 var _uploadOptions = null;
855 var _downloadOptions = common.DownloadOptions.Metadata; 856 var _downloadOptions = commons.DownloadOptions.Metadata;
856 var _body = null; 857 var _body = null;
857 858
858 if (id == null) { 859 if (id == null) {
859 throw new core.ArgumentError("Parameter id is required."); 860 throw new core.ArgumentError("Parameter id is required.");
860 } 861 }
861 if (force != null) { 862 if (force != null) {
862 _queryParams["force"] = ["${force}"]; 863 _queryParams["force"] = ["${force}"];
863 } 864 }
864 865
865 866
866 _url = 'layers/' + common_internal.Escaper.ecapeVariable('$id') + '/publish' ; 867 _url = 'layers/' + commons.Escaper.ecapeVariable('$id') + '/publish';
867 868
868 var _response = _requester.request(_url, 869 var _response = _requester.request(_url,
869 "POST", 870 "POST",
870 body: _body, 871 body: _body,
871 queryParams: _queryParams, 872 queryParams: _queryParams,
872 uploadOptions: _uploadOptions, 873 uploadOptions: _uploadOptions,
873 uploadMedia: _uploadMedia, 874 uploadMedia: _uploadMedia,
874 downloadOptions: _downloadOptions); 875 downloadOptions: _downloadOptions);
875 return _response.then((data) => new PublishResponse.fromJson(data)); 876 return _response.then((data) => new PublishResponse.fromJson(data));
876 } 877 }
877 878
878 /** 879 /**
879 * Unpublish a layer asset. 880 * Unpublish a layer asset.
880 * 881 *
881 * Request parameters: 882 * Request parameters:
882 * 883 *
883 * [id] - The ID of the layer. 884 * [id] - The ID of the layer.
884 * 885 *
885 * Completes with a [PublishResponse]. 886 * Completes with a [PublishResponse].
886 * 887 *
887 * Completes with a [common.ApiRequestError] if the API endpoint returned an 888 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
888 * error. 889 * error.
889 * 890 *
890 * If the used [http.Client] completes with an error when making a REST call, 891 * If the used [http.Client] completes with an error when making a REST call,
891 * this method will complete with the same error. 892 * this method will complete with the same error.
892 */ 893 */
893 async.Future<PublishResponse> unpublish(core.String id) { 894 async.Future<PublishResponse> unpublish(core.String id) {
894 var _url = null; 895 var _url = null;
895 var _queryParams = new core.Map(); 896 var _queryParams = new core.Map();
896 var _uploadMedia = null; 897 var _uploadMedia = null;
897 var _uploadOptions = null; 898 var _uploadOptions = null;
898 var _downloadOptions = common.DownloadOptions.Metadata; 899 var _downloadOptions = commons.DownloadOptions.Metadata;
899 var _body = null; 900 var _body = null;
900 901
901 if (id == null) { 902 if (id == null) {
902 throw new core.ArgumentError("Parameter id is required."); 903 throw new core.ArgumentError("Parameter id is required.");
903 } 904 }
904 905
905 906
906 _url = 'layers/' + common_internal.Escaper.ecapeVariable('$id') + '/unpublis h'; 907 _url = 'layers/' + commons.Escaper.ecapeVariable('$id') + '/unpublish';
907 908
908 var _response = _requester.request(_url, 909 var _response = _requester.request(_url,
909 "POST", 910 "POST",
910 body: _body, 911 body: _body,
911 queryParams: _queryParams, 912 queryParams: _queryParams,
912 uploadOptions: _uploadOptions, 913 uploadOptions: _uploadOptions,
913 uploadMedia: _uploadMedia, 914 uploadMedia: _uploadMedia,
914 downloadOptions: _downloadOptions); 915 downloadOptions: _downloadOptions);
915 return _response.then((data) => new PublishResponse.fromJson(data)); 916 return _response.then((data) => new PublishResponse.fromJson(data));
916 } 917 }
917 918
918 } 919 }
919 920
920 921
921 /** Not documented yet. */
922 class LayersParentsResourceApi { 922 class LayersParentsResourceApi {
923 final common_internal.ApiRequester _requester; 923 final commons.ApiRequester _requester;
924 924
925 LayersParentsResourceApi(common_internal.ApiRequester client) : 925 LayersParentsResourceApi(commons.ApiRequester client) :
926 _requester = client; 926 _requester = client;
927 927
928 /** 928 /**
929 * Return all parent ids of the specified layer. 929 * Return all parent ids of the specified layer.
930 * 930 *
931 * Request parameters: 931 * Request parameters:
932 * 932 *
933 * [id] - The ID of the layer whose parents will be listed. 933 * [id] - The ID of the layer whose parents will be listed.
934 * 934 *
935 * [maxResults] - The maximum number of items to include in a single response 935 * [maxResults] - The maximum number of items to include in a single response
936 * page. The maximum supported value is 50. 936 * page. The maximum supported value is 50.
937 * 937 *
938 * [pageToken] - The continuation token, used to page through large result 938 * [pageToken] - The continuation token, used to page through large result
939 * sets. To get the next page of results, set this parameter to the value of 939 * sets. To get the next page of results, set this parameter to the value of
940 * nextPageToken from the previous response. 940 * nextPageToken from the previous response.
941 * 941 *
942 * Completes with a [ParentsListResponse]. 942 * Completes with a [ParentsListResponse].
943 * 943 *
944 * Completes with a [common.ApiRequestError] if the API endpoint returned an 944 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
945 * error. 945 * error.
946 * 946 *
947 * If the used [http.Client] completes with an error when making a REST call, 947 * If the used [http.Client] completes with an error when making a REST call,
948 * this method will complete with the same error. 948 * this method will complete with the same error.
949 */ 949 */
950 async.Future<ParentsListResponse> list(core.String id, {core.int maxResults, c ore.String pageToken}) { 950 async.Future<ParentsListResponse> list(core.String id, {core.int maxResults, c ore.String pageToken}) {
951 var _url = null; 951 var _url = null;
952 var _queryParams = new core.Map(); 952 var _queryParams = new core.Map();
953 var _uploadMedia = null; 953 var _uploadMedia = null;
954 var _uploadOptions = null; 954 var _uploadOptions = null;
955 var _downloadOptions = common.DownloadOptions.Metadata; 955 var _downloadOptions = commons.DownloadOptions.Metadata;
956 var _body = null; 956 var _body = null;
957 957
958 if (id == null) { 958 if (id == null) {
959 throw new core.ArgumentError("Parameter id is required."); 959 throw new core.ArgumentError("Parameter id is required.");
960 } 960 }
961 if (maxResults != null) { 961 if (maxResults != null) {
962 _queryParams["maxResults"] = ["${maxResults}"]; 962 _queryParams["maxResults"] = ["${maxResults}"];
963 } 963 }
964 if (pageToken != null) { 964 if (pageToken != null) {
965 _queryParams["pageToken"] = [pageToken]; 965 _queryParams["pageToken"] = [pageToken];
966 } 966 }
967 967
968 968
969 _url = 'layers/' + common_internal.Escaper.ecapeVariable('$id') + '/parents' ; 969 _url = 'layers/' + commons.Escaper.ecapeVariable('$id') + '/parents';
970 970
971 var _response = _requester.request(_url, 971 var _response = _requester.request(_url,
972 "GET", 972 "GET",
973 body: _body, 973 body: _body,
974 queryParams: _queryParams, 974 queryParams: _queryParams,
975 uploadOptions: _uploadOptions, 975 uploadOptions: _uploadOptions,
976 uploadMedia: _uploadMedia, 976 uploadMedia: _uploadMedia,
977 downloadOptions: _downloadOptions); 977 downloadOptions: _downloadOptions);
978 return _response.then((data) => new ParentsListResponse.fromJson(data)); 978 return _response.then((data) => new ParentsListResponse.fromJson(data));
979 } 979 }
980 980
981 } 981 }
982 982
983 983
984 /** Not documented yet. */
985 class LayersPermissionsResourceApi { 984 class LayersPermissionsResourceApi {
986 final common_internal.ApiRequester _requester; 985 final commons.ApiRequester _requester;
987 986
988 LayersPermissionsResourceApi(common_internal.ApiRequester client) : 987 LayersPermissionsResourceApi(commons.ApiRequester client) :
989 _requester = client; 988 _requester = client;
990 989
991 /** 990 /**
992 * Remove permission entries from an already existing asset. 991 * Remove permission entries from an already existing asset.
993 * 992 *
994 * [request] - The metadata request object. 993 * [request] - The metadata request object.
995 * 994 *
996 * Request parameters: 995 * Request parameters:
997 * 996 *
998 * [id] - The ID of the asset from which permissions will be removed. 997 * [id] - The ID of the asset from which permissions will be removed.
999 * 998 *
1000 * Completes with a [PermissionsBatchDeleteResponse]. 999 * Completes with a [PermissionsBatchDeleteResponse].
1001 * 1000 *
1002 * Completes with a [common.ApiRequestError] if the API endpoint returned an 1001 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
1003 * error. 1002 * error.
1004 * 1003 *
1005 * If the used [http.Client] completes with an error when making a REST call, 1004 * If the used [http.Client] completes with an error when making a REST call,
1006 * this method will complete with the same error. 1005 * this method will complete with the same error.
1007 */ 1006 */
1008 async.Future<PermissionsBatchDeleteResponse> batchDelete(PermissionsBatchDelet eRequest request, core.String id) { 1007 async.Future<PermissionsBatchDeleteResponse> batchDelete(PermissionsBatchDelet eRequest request, core.String id) {
1009 var _url = null; 1008 var _url = null;
1010 var _queryParams = new core.Map(); 1009 var _queryParams = new core.Map();
1011 var _uploadMedia = null; 1010 var _uploadMedia = null;
1012 var _uploadOptions = null; 1011 var _uploadOptions = null;
1013 var _downloadOptions = common.DownloadOptions.Metadata; 1012 var _downloadOptions = commons.DownloadOptions.Metadata;
1014 var _body = null; 1013 var _body = null;
1015 1014
1016 if (request != null) { 1015 if (request != null) {
1017 _body = convert.JSON.encode((request).toJson()); 1016 _body = convert.JSON.encode((request).toJson());
1018 } 1017 }
1019 if (id == null) { 1018 if (id == null) {
1020 throw new core.ArgumentError("Parameter id is required."); 1019 throw new core.ArgumentError("Parameter id is required.");
1021 } 1020 }
1022 1021
1023 1022
1024 _url = 'layers/' + common_internal.Escaper.ecapeVariable('$id') + '/permissi ons/batchDelete'; 1023 _url = 'layers/' + commons.Escaper.ecapeVariable('$id') + '/permissions/batc hDelete';
1025 1024
1026 var _response = _requester.request(_url, 1025 var _response = _requester.request(_url,
1027 "POST", 1026 "POST",
1028 body: _body, 1027 body: _body,
1029 queryParams: _queryParams, 1028 queryParams: _queryParams,
1030 uploadOptions: _uploadOptions, 1029 uploadOptions: _uploadOptions,
1031 uploadMedia: _uploadMedia, 1030 uploadMedia: _uploadMedia,
1032 downloadOptions: _downloadOptions); 1031 downloadOptions: _downloadOptions);
1033 return _response.then((data) => new PermissionsBatchDeleteResponse.fromJson( data)); 1032 return _response.then((data) => new PermissionsBatchDeleteResponse.fromJson( data));
1034 } 1033 }
1035 1034
1036 /** 1035 /**
1037 * Add or update permission entries to an already existing asset. 1036 * Add or update permission entries to an already existing asset.
1038 * 1037 *
1039 * An asset can hold up to 20 different permission entries. Each batchInsert 1038 * An asset can hold up to 20 different permission entries. Each batchInsert
1040 * request is atomic. 1039 * request is atomic.
1041 * 1040 *
1042 * [request] - The metadata request object. 1041 * [request] - The metadata request object.
1043 * 1042 *
1044 * Request parameters: 1043 * Request parameters:
1045 * 1044 *
1046 * [id] - The ID of the asset to which permissions will be added. 1045 * [id] - The ID of the asset to which permissions will be added.
1047 * 1046 *
1048 * Completes with a [PermissionsBatchUpdateResponse]. 1047 * Completes with a [PermissionsBatchUpdateResponse].
1049 * 1048 *
1050 * Completes with a [common.ApiRequestError] if the API endpoint returned an 1049 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
1051 * error. 1050 * error.
1052 * 1051 *
1053 * If the used [http.Client] completes with an error when making a REST call, 1052 * If the used [http.Client] completes with an error when making a REST call,
1054 * this method will complete with the same error. 1053 * this method will complete with the same error.
1055 */ 1054 */
1056 async.Future<PermissionsBatchUpdateResponse> batchUpdate(PermissionsBatchUpdat eRequest request, core.String id) { 1055 async.Future<PermissionsBatchUpdateResponse> batchUpdate(PermissionsBatchUpdat eRequest request, core.String id) {
1057 var _url = null; 1056 var _url = null;
1058 var _queryParams = new core.Map(); 1057 var _queryParams = new core.Map();
1059 var _uploadMedia = null; 1058 var _uploadMedia = null;
1060 var _uploadOptions = null; 1059 var _uploadOptions = null;
1061 var _downloadOptions = common.DownloadOptions.Metadata; 1060 var _downloadOptions = commons.DownloadOptions.Metadata;
1062 var _body = null; 1061 var _body = null;
1063 1062
1064 if (request != null) { 1063 if (request != null) {
1065 _body = convert.JSON.encode((request).toJson()); 1064 _body = convert.JSON.encode((request).toJson());
1066 } 1065 }
1067 if (id == null) { 1066 if (id == null) {
1068 throw new core.ArgumentError("Parameter id is required."); 1067 throw new core.ArgumentError("Parameter id is required.");
1069 } 1068 }
1070 1069
1071 1070
1072 _url = 'layers/' + common_internal.Escaper.ecapeVariable('$id') + '/permissi ons/batchUpdate'; 1071 _url = 'layers/' + commons.Escaper.ecapeVariable('$id') + '/permissions/batc hUpdate';
1073 1072
1074 var _response = _requester.request(_url, 1073 var _response = _requester.request(_url,
1075 "POST", 1074 "POST",
1076 body: _body, 1075 body: _body,
1077 queryParams: _queryParams, 1076 queryParams: _queryParams,
1078 uploadOptions: _uploadOptions, 1077 uploadOptions: _uploadOptions,
1079 uploadMedia: _uploadMedia, 1078 uploadMedia: _uploadMedia,
1080 downloadOptions: _downloadOptions); 1079 downloadOptions: _downloadOptions);
1081 return _response.then((data) => new PermissionsBatchUpdateResponse.fromJson( data)); 1080 return _response.then((data) => new PermissionsBatchUpdateResponse.fromJson( data));
1082 } 1081 }
1083 1082
1084 /** 1083 /**
1085 * Return all of the permissions for the specified asset. 1084 * Return all of the permissions for the specified asset.
1086 * 1085 *
1087 * Request parameters: 1086 * Request parameters:
1088 * 1087 *
1089 * [id] - The ID of the asset whose permissions will be listed. 1088 * [id] - The ID of the asset whose permissions will be listed.
1090 * 1089 *
1091 * Completes with a [PermissionsListResponse]. 1090 * Completes with a [PermissionsListResponse].
1092 * 1091 *
1093 * Completes with a [common.ApiRequestError] if the API endpoint returned an 1092 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
1094 * error. 1093 * error.
1095 * 1094 *
1096 * If the used [http.Client] completes with an error when making a REST call, 1095 * If the used [http.Client] completes with an error when making a REST call,
1097 * this method will complete with the same error. 1096 * this method will complete with the same error.
1098 */ 1097 */
1099 async.Future<PermissionsListResponse> list(core.String id) { 1098 async.Future<PermissionsListResponse> list(core.String id) {
1100 var _url = null; 1099 var _url = null;
1101 var _queryParams = new core.Map(); 1100 var _queryParams = new core.Map();
1102 var _uploadMedia = null; 1101 var _uploadMedia = null;
1103 var _uploadOptions = null; 1102 var _uploadOptions = null;
1104 var _downloadOptions = common.DownloadOptions.Metadata; 1103 var _downloadOptions = commons.DownloadOptions.Metadata;
1105 var _body = null; 1104 var _body = null;
1106 1105
1107 if (id == null) { 1106 if (id == null) {
1108 throw new core.ArgumentError("Parameter id is required."); 1107 throw new core.ArgumentError("Parameter id is required.");
1109 } 1108 }
1110 1109
1111 1110
1112 _url = 'layers/' + common_internal.Escaper.ecapeVariable('$id') + '/permissi ons'; 1111 _url = 'layers/' + commons.Escaper.ecapeVariable('$id') + '/permissions';
1113 1112
1114 var _response = _requester.request(_url, 1113 var _response = _requester.request(_url,
1115 "GET", 1114 "GET",
1116 body: _body, 1115 body: _body,
1117 queryParams: _queryParams, 1116 queryParams: _queryParams,
1118 uploadOptions: _uploadOptions, 1117 uploadOptions: _uploadOptions,
1119 uploadMedia: _uploadMedia, 1118 uploadMedia: _uploadMedia,
1120 downloadOptions: _downloadOptions); 1119 downloadOptions: _downloadOptions);
1121 return _response.then((data) => new PermissionsListResponse.fromJson(data)); 1120 return _response.then((data) => new PermissionsListResponse.fromJson(data));
1122 } 1121 }
1123 1122
1124 } 1123 }
1125 1124
1126 1125
1127 /** Not documented yet. */
1128 class MapsResourceApi { 1126 class MapsResourceApi {
1129 final common_internal.ApiRequester _requester; 1127 final commons.ApiRequester _requester;
1130 1128
1131 MapsPermissionsResourceApi get permissions => new MapsPermissionsResourceApi(_ requester); 1129 MapsPermissionsResourceApi get permissions => new MapsPermissionsResourceApi(_ requester);
1132 1130
1133 MapsResourceApi(common_internal.ApiRequester client) : 1131 MapsResourceApi(commons.ApiRequester client) :
1134 _requester = client; 1132 _requester = client;
1135 1133
1136 /** 1134 /**
1137 * Create a map asset. 1135 * Create a map asset.
1138 * 1136 *
1139 * [request] - The metadata request object. 1137 * [request] - The metadata request object.
1140 * 1138 *
1141 * Request parameters: 1139 * Request parameters:
1142 * 1140 *
1143 * Completes with a [Map]. 1141 * Completes with a [Map].
1144 * 1142 *
1145 * Completes with a [common.ApiRequestError] if the API endpoint returned an 1143 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
1146 * error. 1144 * error.
1147 * 1145 *
1148 * If the used [http.Client] completes with an error when making a REST call, 1146 * If the used [http.Client] completes with an error when making a REST call,
1149 * this method will complete with the same error. 1147 * this method will complete with the same error.
1150 */ 1148 */
1151 async.Future<Map> create(Map request) { 1149 async.Future<Map> create(Map request) {
1152 var _url = null; 1150 var _url = null;
1153 var _queryParams = new core.Map(); 1151 var _queryParams = new core.Map();
1154 var _uploadMedia = null; 1152 var _uploadMedia = null;
1155 var _uploadOptions = null; 1153 var _uploadOptions = null;
1156 var _downloadOptions = common.DownloadOptions.Metadata; 1154 var _downloadOptions = commons.DownloadOptions.Metadata;
1157 var _body = null; 1155 var _body = null;
1158 1156
1159 if (request != null) { 1157 if (request != null) {
1160 _body = convert.JSON.encode((request).toJson()); 1158 _body = convert.JSON.encode((request).toJson());
1161 } 1159 }
1162 1160
1163 1161
1164 _url = 'maps'; 1162 _url = 'maps';
1165 1163
1166 var _response = _requester.request(_url, 1164 var _response = _requester.request(_url,
1167 "POST", 1165 "POST",
1168 body: _body, 1166 body: _body,
1169 queryParams: _queryParams, 1167 queryParams: _queryParams,
1170 uploadOptions: _uploadOptions, 1168 uploadOptions: _uploadOptions,
1171 uploadMedia: _uploadMedia, 1169 uploadMedia: _uploadMedia,
1172 downloadOptions: _downloadOptions); 1170 downloadOptions: _downloadOptions);
1173 return _response.then((data) => new Map.fromJson(data)); 1171 return _response.then((data) => new Map.fromJson(data));
1174 } 1172 }
1175 1173
1176 /** 1174 /**
1177 * Delete a map. 1175 * Delete a map.
1178 * 1176 *
1179 * Request parameters: 1177 * Request parameters:
1180 * 1178 *
1181 * [id] - The ID of the map. Only the map creator or project owner are 1179 * [id] - The ID of the map. Only the map creator or project owner are
1182 * permitted to delete. If the map is published the request will fail. 1180 * permitted to delete. If the map is published the request will fail.
1183 * Unpublish the map prior to deleting. 1181 * Unpublish the map prior to deleting.
1184 * 1182 *
1185 * Completes with a [common.ApiRequestError] if the API endpoint returned an 1183 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
1186 * error. 1184 * error.
1187 * 1185 *
1188 * If the used [http.Client] completes with an error when making a REST call, 1186 * If the used [http.Client] completes with an error when making a REST call,
1189 * this method will complete with the same error. 1187 * this method will complete with the same error.
1190 */ 1188 */
1191 async.Future delete(core.String id) { 1189 async.Future delete(core.String id) {
1192 var _url = null; 1190 var _url = null;
1193 var _queryParams = new core.Map(); 1191 var _queryParams = new core.Map();
1194 var _uploadMedia = null; 1192 var _uploadMedia = null;
1195 var _uploadOptions = null; 1193 var _uploadOptions = null;
1196 var _downloadOptions = common.DownloadOptions.Metadata; 1194 var _downloadOptions = commons.DownloadOptions.Metadata;
1197 var _body = null; 1195 var _body = null;
1198 1196
1199 if (id == null) { 1197 if (id == null) {
1200 throw new core.ArgumentError("Parameter id is required."); 1198 throw new core.ArgumentError("Parameter id is required.");
1201 } 1199 }
1202 1200
1203 _downloadOptions = null; 1201 _downloadOptions = null;
1204 1202
1205 _url = 'maps/' + common_internal.Escaper.ecapeVariable('$id'); 1203 _url = 'maps/' + commons.Escaper.ecapeVariable('$id');
1206 1204
1207 var _response = _requester.request(_url, 1205 var _response = _requester.request(_url,
1208 "DELETE", 1206 "DELETE",
1209 body: _body, 1207 body: _body,
1210 queryParams: _queryParams, 1208 queryParams: _queryParams,
1211 uploadOptions: _uploadOptions, 1209 uploadOptions: _uploadOptions,
1212 uploadMedia: _uploadMedia, 1210 uploadMedia: _uploadMedia,
1213 downloadOptions: _downloadOptions); 1211 downloadOptions: _downloadOptions);
1214 return _response.then((data) => null); 1212 return _response.then((data) => null);
1215 } 1213 }
1216 1214
1217 /** 1215 /**
1218 * Return metadata for a particular map. 1216 * Return metadata for a particular map.
1219 * 1217 *
1220 * Request parameters: 1218 * Request parameters:
1221 * 1219 *
1222 * [id] - The ID of the map. 1220 * [id] - The ID of the map.
1223 * 1221 *
1224 * [version] - Deprecated: The version parameter indicates which version of 1222 * [version] - Deprecated: The version parameter indicates which version of
1225 * the map should be returned. When version is set to published, the published 1223 * the map should be returned. When version is set to published, the published
1226 * version of the map will be returned. Please use the maps.getPublished 1224 * version of the map will be returned. Please use the maps.getPublished
1227 * endpoint instead. 1225 * endpoint instead.
1228 * Possible string values are: 1226 * Possible string values are:
1229 * - "draft" : The draft version. 1227 * - "draft" : The draft version.
1230 * - "published" : The published version. 1228 * - "published" : The published version.
1231 * 1229 *
1232 * Completes with a [Map]. 1230 * Completes with a [Map].
1233 * 1231 *
1234 * Completes with a [common.ApiRequestError] if the API endpoint returned an 1232 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
1235 * error. 1233 * error.
1236 * 1234 *
1237 * If the used [http.Client] completes with an error when making a REST call, 1235 * If the used [http.Client] completes with an error when making a REST call,
1238 * this method will complete with the same error. 1236 * this method will complete with the same error.
1239 */ 1237 */
1240 async.Future<Map> get(core.String id, {core.String version}) { 1238 async.Future<Map> get(core.String id, {core.String version}) {
1241 var _url = null; 1239 var _url = null;
1242 var _queryParams = new core.Map(); 1240 var _queryParams = new core.Map();
1243 var _uploadMedia = null; 1241 var _uploadMedia = null;
1244 var _uploadOptions = null; 1242 var _uploadOptions = null;
1245 var _downloadOptions = common.DownloadOptions.Metadata; 1243 var _downloadOptions = commons.DownloadOptions.Metadata;
1246 var _body = null; 1244 var _body = null;
1247 1245
1248 if (id == null) { 1246 if (id == null) {
1249 throw new core.ArgumentError("Parameter id is required."); 1247 throw new core.ArgumentError("Parameter id is required.");
1250 } 1248 }
1251 if (version != null) { 1249 if (version != null) {
1252 _queryParams["version"] = [version]; 1250 _queryParams["version"] = [version];
1253 } 1251 }
1254 1252
1255 1253
1256 _url = 'maps/' + common_internal.Escaper.ecapeVariable('$id'); 1254 _url = 'maps/' + commons.Escaper.ecapeVariable('$id');
1257 1255
1258 var _response = _requester.request(_url, 1256 var _response = _requester.request(_url,
1259 "GET", 1257 "GET",
1260 body: _body, 1258 body: _body,
1261 queryParams: _queryParams, 1259 queryParams: _queryParams,
1262 uploadOptions: _uploadOptions, 1260 uploadOptions: _uploadOptions,
1263 uploadMedia: _uploadMedia, 1261 uploadMedia: _uploadMedia,
1264 downloadOptions: _downloadOptions); 1262 downloadOptions: _downloadOptions);
1265 return _response.then((data) => new Map.fromJson(data)); 1263 return _response.then((data) => new Map.fromJson(data));
1266 } 1264 }
1267 1265
1268 /** 1266 /**
1269 * Return the published metadata for a particular map. 1267 * Return the published metadata for a particular map.
1270 * 1268 *
1271 * Request parameters: 1269 * Request parameters:
1272 * 1270 *
1273 * [id] - The ID of the map. 1271 * [id] - The ID of the map.
1274 * 1272 *
1275 * Completes with a [PublishedMap]. 1273 * Completes with a [PublishedMap].
1276 * 1274 *
1277 * Completes with a [common.ApiRequestError] if the API endpoint returned an 1275 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
1278 * error. 1276 * error.
1279 * 1277 *
1280 * If the used [http.Client] completes with an error when making a REST call, 1278 * If the used [http.Client] completes with an error when making a REST call,
1281 * this method will complete with the same error. 1279 * this method will complete with the same error.
1282 */ 1280 */
1283 async.Future<PublishedMap> getPublished(core.String id) { 1281 async.Future<PublishedMap> getPublished(core.String id) {
1284 var _url = null; 1282 var _url = null;
1285 var _queryParams = new core.Map(); 1283 var _queryParams = new core.Map();
1286 var _uploadMedia = null; 1284 var _uploadMedia = null;
1287 var _uploadOptions = null; 1285 var _uploadOptions = null;
1288 var _downloadOptions = common.DownloadOptions.Metadata; 1286 var _downloadOptions = commons.DownloadOptions.Metadata;
1289 var _body = null; 1287 var _body = null;
1290 1288
1291 if (id == null) { 1289 if (id == null) {
1292 throw new core.ArgumentError("Parameter id is required."); 1290 throw new core.ArgumentError("Parameter id is required.");
1293 } 1291 }
1294 1292
1295 1293
1296 _url = 'maps/' + common_internal.Escaper.ecapeVariable('$id') + '/published' ; 1294 _url = 'maps/' + commons.Escaper.ecapeVariable('$id') + '/published';
1297 1295
1298 var _response = _requester.request(_url, 1296 var _response = _requester.request(_url,
1299 "GET", 1297 "GET",
1300 body: _body, 1298 body: _body,
1301 queryParams: _queryParams, 1299 queryParams: _queryParams,
1302 uploadOptions: _uploadOptions, 1300 uploadOptions: _uploadOptions,
1303 uploadMedia: _uploadMedia, 1301 uploadMedia: _uploadMedia,
1304 downloadOptions: _downloadOptions); 1302 downloadOptions: _downloadOptions);
1305 return _response.then((data) => new PublishedMap.fromJson(data)); 1303 return _response.then((data) => new PublishedMap.fromJson(data));
1306 } 1304 }
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
1359 * - "writer" : The user can read and write the asset. 1357 * - "writer" : The user can read and write the asset.
1360 * 1358 *
1361 * [search] - An unstructured search string used to filter the set of results 1359 * [search] - An unstructured search string used to filter the set of results
1362 * based on asset metadata. 1360 * based on asset metadata.
1363 * 1361 *
1364 * [tags] - A comma separated list of tags. Returned assets will contain all 1362 * [tags] - A comma separated list of tags. Returned assets will contain all
1365 * the tags from the list. 1363 * the tags from the list.
1366 * 1364 *
1367 * Completes with a [MapsListResponse]. 1365 * Completes with a [MapsListResponse].
1368 * 1366 *
1369 * Completes with a [common.ApiRequestError] if the API endpoint returned an 1367 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
1370 * error. 1368 * error.
1371 * 1369 *
1372 * If the used [http.Client] completes with an error when making a REST call, 1370 * If the used [http.Client] completes with an error when making a REST call,
1373 * this method will complete with the same error. 1371 * this method will complete with the same error.
1374 */ 1372 */
1375 async.Future<MapsListResponse> list({core.String bbox, core.DateTime createdAf ter, core.DateTime createdBefore, core.String creatorEmail, core.int maxResults, core.DateTime modifiedAfter, core.DateTime modifiedBefore, core.String pageToke n, core.String processingStatus, core.String projectId, core.String role, core.S tring search, core.String tags}) { 1373 async.Future<MapsListResponse> list({core.String bbox, core.DateTime createdAf ter, core.DateTime createdBefore, core.String creatorEmail, core.int maxResults, core.DateTime modifiedAfter, core.DateTime modifiedBefore, core.String pageToke n, core.String processingStatus, core.String projectId, core.String role, core.S tring search, core.String tags}) {
1376 var _url = null; 1374 var _url = null;
1377 var _queryParams = new core.Map(); 1375 var _queryParams = new core.Map();
1378 var _uploadMedia = null; 1376 var _uploadMedia = null;
1379 var _uploadOptions = null; 1377 var _uploadOptions = null;
1380 var _downloadOptions = common.DownloadOptions.Metadata; 1378 var _downloadOptions = commons.DownloadOptions.Metadata;
1381 var _body = null; 1379 var _body = null;
1382 1380
1383 if (bbox != null) { 1381 if (bbox != null) {
1384 _queryParams["bbox"] = [bbox]; 1382 _queryParams["bbox"] = [bbox];
1385 } 1383 }
1386 if (createdAfter != null) { 1384 if (createdAfter != null) {
1387 _queryParams["createdAfter"] = [(createdAfter).toIso8601String()]; 1385 _queryParams["createdAfter"] = [(createdAfter).toIso8601String()];
1388 } 1386 }
1389 if (createdBefore != null) { 1387 if (createdBefore != null) {
1390 _queryParams["createdBefore"] = [(createdBefore).toIso8601String()]; 1388 _queryParams["createdBefore"] = [(createdBefore).toIso8601String()];
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
1445 * sets. To get the next page of results, set this parameter to the value of 1443 * sets. To get the next page of results, set this parameter to the value of
1446 * nextPageToken from the previous response. 1444 * nextPageToken from the previous response.
1447 * 1445 *
1448 * [projectId] - The ID of a Maps Engine project, used to filter the response. 1446 * [projectId] - The ID of a Maps Engine project, used to filter the response.
1449 * To list all available projects with their IDs, send a Projects: list 1447 * To list all available projects with their IDs, send a Projects: list
1450 * request. You can also find your project ID as the value of the 1448 * request. You can also find your project ID as the value of the
1451 * DashboardPlace:cid URL parameter when signed in to mapsengine.google.com. 1449 * DashboardPlace:cid URL parameter when signed in to mapsengine.google.com.
1452 * 1450 *
1453 * Completes with a [PublishedMapsListResponse]. 1451 * Completes with a [PublishedMapsListResponse].
1454 * 1452 *
1455 * Completes with a [common.ApiRequestError] if the API endpoint returned an 1453 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
1456 * error. 1454 * error.
1457 * 1455 *
1458 * If the used [http.Client] completes with an error when making a REST call, 1456 * If the used [http.Client] completes with an error when making a REST call,
1459 * this method will complete with the same error. 1457 * this method will complete with the same error.
1460 */ 1458 */
1461 async.Future<PublishedMapsListResponse> listPublished({core.int maxResults, co re.String pageToken, core.String projectId}) { 1459 async.Future<PublishedMapsListResponse> listPublished({core.int maxResults, co re.String pageToken, core.String projectId}) {
1462 var _url = null; 1460 var _url = null;
1463 var _queryParams = new core.Map(); 1461 var _queryParams = new core.Map();
1464 var _uploadMedia = null; 1462 var _uploadMedia = null;
1465 var _uploadOptions = null; 1463 var _uploadOptions = null;
1466 var _downloadOptions = common.DownloadOptions.Metadata; 1464 var _downloadOptions = commons.DownloadOptions.Metadata;
1467 var _body = null; 1465 var _body = null;
1468 1466
1469 if (maxResults != null) { 1467 if (maxResults != null) {
1470 _queryParams["maxResults"] = ["${maxResults}"]; 1468 _queryParams["maxResults"] = ["${maxResults}"];
1471 } 1469 }
1472 if (pageToken != null) { 1470 if (pageToken != null) {
1473 _queryParams["pageToken"] = [pageToken]; 1471 _queryParams["pageToken"] = [pageToken];
1474 } 1472 }
1475 if (projectId != null) { 1473 if (projectId != null) {
1476 _queryParams["projectId"] = [projectId]; 1474 _queryParams["projectId"] = [projectId];
(...skipping 14 matching lines...) Expand all
1491 1489
1492 /** 1490 /**
1493 * Mutate a map asset. 1491 * Mutate a map asset.
1494 * 1492 *
1495 * [request] - The metadata request object. 1493 * [request] - The metadata request object.
1496 * 1494 *
1497 * Request parameters: 1495 * Request parameters:
1498 * 1496 *
1499 * [id] - The ID of the map. 1497 * [id] - The ID of the map.
1500 * 1498 *
1501 * Completes with a [common.ApiRequestError] if the API endpoint returned an 1499 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
1502 * error. 1500 * error.
1503 * 1501 *
1504 * If the used [http.Client] completes with an error when making a REST call, 1502 * If the used [http.Client] completes with an error when making a REST call,
1505 * this method will complete with the same error. 1503 * this method will complete with the same error.
1506 */ 1504 */
1507 async.Future patch(Map request, core.String id) { 1505 async.Future patch(Map request, core.String id) {
1508 var _url = null; 1506 var _url = null;
1509 var _queryParams = new core.Map(); 1507 var _queryParams = new core.Map();
1510 var _uploadMedia = null; 1508 var _uploadMedia = null;
1511 var _uploadOptions = null; 1509 var _uploadOptions = null;
1512 var _downloadOptions = common.DownloadOptions.Metadata; 1510 var _downloadOptions = commons.DownloadOptions.Metadata;
1513 var _body = null; 1511 var _body = null;
1514 1512
1515 if (request != null) { 1513 if (request != null) {
1516 _body = convert.JSON.encode((request).toJson()); 1514 _body = convert.JSON.encode((request).toJson());
1517 } 1515 }
1518 if (id == null) { 1516 if (id == null) {
1519 throw new core.ArgumentError("Parameter id is required."); 1517 throw new core.ArgumentError("Parameter id is required.");
1520 } 1518 }
1521 1519
1522 _downloadOptions = null; 1520 _downloadOptions = null;
1523 1521
1524 _url = 'maps/' + common_internal.Escaper.ecapeVariable('$id'); 1522 _url = 'maps/' + commons.Escaper.ecapeVariable('$id');
1525 1523
1526 var _response = _requester.request(_url, 1524 var _response = _requester.request(_url,
1527 "PATCH", 1525 "PATCH",
1528 body: _body, 1526 body: _body,
1529 queryParams: _queryParams, 1527 queryParams: _queryParams,
1530 uploadOptions: _uploadOptions, 1528 uploadOptions: _uploadOptions,
1531 uploadMedia: _uploadMedia, 1529 uploadMedia: _uploadMedia,
1532 downloadOptions: _downloadOptions); 1530 downloadOptions: _downloadOptions);
1533 return _response.then((data) => null); 1531 return _response.then((data) => null);
1534 } 1532 }
1535 1533
1536 /** 1534 /**
1537 * Publish a map asset. 1535 * Publish a map asset.
1538 * 1536 *
1539 * Request parameters: 1537 * Request parameters:
1540 * 1538 *
1541 * [id] - The ID of the map. 1539 * [id] - The ID of the map.
1542 * 1540 *
1543 * [force] - If set to true, the API will allow publication of the map even if 1541 * [force] - If set to true, the API will allow publication of the map even if
1544 * it's out of date. If false, the map must have a processingStatus of 1542 * it's out of date. If false, the map must have a processingStatus of
1545 * complete before publishing. 1543 * complete before publishing.
1546 * 1544 *
1547 * Completes with a [PublishResponse]. 1545 * Completes with a [PublishResponse].
1548 * 1546 *
1549 * Completes with a [common.ApiRequestError] if the API endpoint returned an 1547 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
1550 * error. 1548 * error.
1551 * 1549 *
1552 * If the used [http.Client] completes with an error when making a REST call, 1550 * If the used [http.Client] completes with an error when making a REST call,
1553 * this method will complete with the same error. 1551 * this method will complete with the same error.
1554 */ 1552 */
1555 async.Future<PublishResponse> publish(core.String id, {core.bool force}) { 1553 async.Future<PublishResponse> publish(core.String id, {core.bool force}) {
1556 var _url = null; 1554 var _url = null;
1557 var _queryParams = new core.Map(); 1555 var _queryParams = new core.Map();
1558 var _uploadMedia = null; 1556 var _uploadMedia = null;
1559 var _uploadOptions = null; 1557 var _uploadOptions = null;
1560 var _downloadOptions = common.DownloadOptions.Metadata; 1558 var _downloadOptions = commons.DownloadOptions.Metadata;
1561 var _body = null; 1559 var _body = null;
1562 1560
1563 if (id == null) { 1561 if (id == null) {
1564 throw new core.ArgumentError("Parameter id is required."); 1562 throw new core.ArgumentError("Parameter id is required.");
1565 } 1563 }
1566 if (force != null) { 1564 if (force != null) {
1567 _queryParams["force"] = ["${force}"]; 1565 _queryParams["force"] = ["${force}"];
1568 } 1566 }
1569 1567
1570 1568
1571 _url = 'maps/' + common_internal.Escaper.ecapeVariable('$id') + '/publish'; 1569 _url = 'maps/' + commons.Escaper.ecapeVariable('$id') + '/publish';
1572 1570
1573 var _response = _requester.request(_url, 1571 var _response = _requester.request(_url,
1574 "POST", 1572 "POST",
1575 body: _body, 1573 body: _body,
1576 queryParams: _queryParams, 1574 queryParams: _queryParams,
1577 uploadOptions: _uploadOptions, 1575 uploadOptions: _uploadOptions,
1578 uploadMedia: _uploadMedia, 1576 uploadMedia: _uploadMedia,
1579 downloadOptions: _downloadOptions); 1577 downloadOptions: _downloadOptions);
1580 return _response.then((data) => new PublishResponse.fromJson(data)); 1578 return _response.then((data) => new PublishResponse.fromJson(data));
1581 } 1579 }
1582 1580
1583 /** 1581 /**
1584 * Unpublish a map asset. 1582 * Unpublish a map asset.
1585 * 1583 *
1586 * Request parameters: 1584 * Request parameters:
1587 * 1585 *
1588 * [id] - The ID of the map. 1586 * [id] - The ID of the map.
1589 * 1587 *
1590 * Completes with a [PublishResponse]. 1588 * Completes with a [PublishResponse].
1591 * 1589 *
1592 * Completes with a [common.ApiRequestError] if the API endpoint returned an 1590 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
1593 * error. 1591 * error.
1594 * 1592 *
1595 * If the used [http.Client] completes with an error when making a REST call, 1593 * If the used [http.Client] completes with an error when making a REST call,
1596 * this method will complete with the same error. 1594 * this method will complete with the same error.
1597 */ 1595 */
1598 async.Future<PublishResponse> unpublish(core.String id) { 1596 async.Future<PublishResponse> unpublish(core.String id) {
1599 var _url = null; 1597 var _url = null;
1600 var _queryParams = new core.Map(); 1598 var _queryParams = new core.Map();
1601 var _uploadMedia = null; 1599 var _uploadMedia = null;
1602 var _uploadOptions = null; 1600 var _uploadOptions = null;
1603 var _downloadOptions = common.DownloadOptions.Metadata; 1601 var _downloadOptions = commons.DownloadOptions.Metadata;
1604 var _body = null; 1602 var _body = null;
1605 1603
1606 if (id == null) { 1604 if (id == null) {
1607 throw new core.ArgumentError("Parameter id is required."); 1605 throw new core.ArgumentError("Parameter id is required.");
1608 } 1606 }
1609 1607
1610 1608
1611 _url = 'maps/' + common_internal.Escaper.ecapeVariable('$id') + '/unpublish' ; 1609 _url = 'maps/' + commons.Escaper.ecapeVariable('$id') + '/unpublish';
1612 1610
1613 var _response = _requester.request(_url, 1611 var _response = _requester.request(_url,
1614 "POST", 1612 "POST",
1615 body: _body, 1613 body: _body,
1616 queryParams: _queryParams, 1614 queryParams: _queryParams,
1617 uploadOptions: _uploadOptions, 1615 uploadOptions: _uploadOptions,
1618 uploadMedia: _uploadMedia, 1616 uploadMedia: _uploadMedia,
1619 downloadOptions: _downloadOptions); 1617 downloadOptions: _downloadOptions);
1620 return _response.then((data) => new PublishResponse.fromJson(data)); 1618 return _response.then((data) => new PublishResponse.fromJson(data));
1621 } 1619 }
1622 1620
1623 } 1621 }
1624 1622
1625 1623
1626 /** Not documented yet. */
1627 class MapsPermissionsResourceApi { 1624 class MapsPermissionsResourceApi {
1628 final common_internal.ApiRequester _requester; 1625 final commons.ApiRequester _requester;
1629 1626
1630 MapsPermissionsResourceApi(common_internal.ApiRequester client) : 1627 MapsPermissionsResourceApi(commons.ApiRequester client) :
1631 _requester = client; 1628 _requester = client;
1632 1629
1633 /** 1630 /**
1634 * Remove permission entries from an already existing asset. 1631 * Remove permission entries from an already existing asset.
1635 * 1632 *
1636 * [request] - The metadata request object. 1633 * [request] - The metadata request object.
1637 * 1634 *
1638 * Request parameters: 1635 * Request parameters:
1639 * 1636 *
1640 * [id] - The ID of the asset from which permissions will be removed. 1637 * [id] - The ID of the asset from which permissions will be removed.
1641 * 1638 *
1642 * Completes with a [PermissionsBatchDeleteResponse]. 1639 * Completes with a [PermissionsBatchDeleteResponse].
1643 * 1640 *
1644 * Completes with a [common.ApiRequestError] if the API endpoint returned an 1641 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
1645 * error. 1642 * error.
1646 * 1643 *
1647 * If the used [http.Client] completes with an error when making a REST call, 1644 * If the used [http.Client] completes with an error when making a REST call,
1648 * this method will complete with the same error. 1645 * this method will complete with the same error.
1649 */ 1646 */
1650 async.Future<PermissionsBatchDeleteResponse> batchDelete(PermissionsBatchDelet eRequest request, core.String id) { 1647 async.Future<PermissionsBatchDeleteResponse> batchDelete(PermissionsBatchDelet eRequest request, core.String id) {
1651 var _url = null; 1648 var _url = null;
1652 var _queryParams = new core.Map(); 1649 var _queryParams = new core.Map();
1653 var _uploadMedia = null; 1650 var _uploadMedia = null;
1654 var _uploadOptions = null; 1651 var _uploadOptions = null;
1655 var _downloadOptions = common.DownloadOptions.Metadata; 1652 var _downloadOptions = commons.DownloadOptions.Metadata;
1656 var _body = null; 1653 var _body = null;
1657 1654
1658 if (request != null) { 1655 if (request != null) {
1659 _body = convert.JSON.encode((request).toJson()); 1656 _body = convert.JSON.encode((request).toJson());
1660 } 1657 }
1661 if (id == null) { 1658 if (id == null) {
1662 throw new core.ArgumentError("Parameter id is required."); 1659 throw new core.ArgumentError("Parameter id is required.");
1663 } 1660 }
1664 1661
1665 1662
1666 _url = 'maps/' + common_internal.Escaper.ecapeVariable('$id') + '/permission s/batchDelete'; 1663 _url = 'maps/' + commons.Escaper.ecapeVariable('$id') + '/permissions/batchD elete';
1667 1664
1668 var _response = _requester.request(_url, 1665 var _response = _requester.request(_url,
1669 "POST", 1666 "POST",
1670 body: _body, 1667 body: _body,
1671 queryParams: _queryParams, 1668 queryParams: _queryParams,
1672 uploadOptions: _uploadOptions, 1669 uploadOptions: _uploadOptions,
1673 uploadMedia: _uploadMedia, 1670 uploadMedia: _uploadMedia,
1674 downloadOptions: _downloadOptions); 1671 downloadOptions: _downloadOptions);
1675 return _response.then((data) => new PermissionsBatchDeleteResponse.fromJson( data)); 1672 return _response.then((data) => new PermissionsBatchDeleteResponse.fromJson( data));
1676 } 1673 }
1677 1674
1678 /** 1675 /**
1679 * Add or update permission entries to an already existing asset. 1676 * Add or update permission entries to an already existing asset.
1680 * 1677 *
1681 * An asset can hold up to 20 different permission entries. Each batchInsert 1678 * An asset can hold up to 20 different permission entries. Each batchInsert
1682 * request is atomic. 1679 * request is atomic.
1683 * 1680 *
1684 * [request] - The metadata request object. 1681 * [request] - The metadata request object.
1685 * 1682 *
1686 * Request parameters: 1683 * Request parameters:
1687 * 1684 *
1688 * [id] - The ID of the asset to which permissions will be added. 1685 * [id] - The ID of the asset to which permissions will be added.
1689 * 1686 *
1690 * Completes with a [PermissionsBatchUpdateResponse]. 1687 * Completes with a [PermissionsBatchUpdateResponse].
1691 * 1688 *
1692 * Completes with a [common.ApiRequestError] if the API endpoint returned an 1689 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
1693 * error. 1690 * error.
1694 * 1691 *
1695 * If the used [http.Client] completes with an error when making a REST call, 1692 * If the used [http.Client] completes with an error when making a REST call,
1696 * this method will complete with the same error. 1693 * this method will complete with the same error.
1697 */ 1694 */
1698 async.Future<PermissionsBatchUpdateResponse> batchUpdate(PermissionsBatchUpdat eRequest request, core.String id) { 1695 async.Future<PermissionsBatchUpdateResponse> batchUpdate(PermissionsBatchUpdat eRequest request, core.String id) {
1699 var _url = null; 1696 var _url = null;
1700 var _queryParams = new core.Map(); 1697 var _queryParams = new core.Map();
1701 var _uploadMedia = null; 1698 var _uploadMedia = null;
1702 var _uploadOptions = null; 1699 var _uploadOptions = null;
1703 var _downloadOptions = common.DownloadOptions.Metadata; 1700 var _downloadOptions = commons.DownloadOptions.Metadata;
1704 var _body = null; 1701 var _body = null;
1705 1702
1706 if (request != null) { 1703 if (request != null) {
1707 _body = convert.JSON.encode((request).toJson()); 1704 _body = convert.JSON.encode((request).toJson());
1708 } 1705 }
1709 if (id == null) { 1706 if (id == null) {
1710 throw new core.ArgumentError("Parameter id is required."); 1707 throw new core.ArgumentError("Parameter id is required.");
1711 } 1708 }
1712 1709
1713 1710
1714 _url = 'maps/' + common_internal.Escaper.ecapeVariable('$id') + '/permission s/batchUpdate'; 1711 _url = 'maps/' + commons.Escaper.ecapeVariable('$id') + '/permissions/batchU pdate';
1715 1712
1716 var _response = _requester.request(_url, 1713 var _response = _requester.request(_url,
1717 "POST", 1714 "POST",
1718 body: _body, 1715 body: _body,
1719 queryParams: _queryParams, 1716 queryParams: _queryParams,
1720 uploadOptions: _uploadOptions, 1717 uploadOptions: _uploadOptions,
1721 uploadMedia: _uploadMedia, 1718 uploadMedia: _uploadMedia,
1722 downloadOptions: _downloadOptions); 1719 downloadOptions: _downloadOptions);
1723 return _response.then((data) => new PermissionsBatchUpdateResponse.fromJson( data)); 1720 return _response.then((data) => new PermissionsBatchUpdateResponse.fromJson( data));
1724 } 1721 }
1725 1722
1726 /** 1723 /**
1727 * Return all of the permissions for the specified asset. 1724 * Return all of the permissions for the specified asset.
1728 * 1725 *
1729 * Request parameters: 1726 * Request parameters:
1730 * 1727 *
1731 * [id] - The ID of the asset whose permissions will be listed. 1728 * [id] - The ID of the asset whose permissions will be listed.
1732 * 1729 *
1733 * Completes with a [PermissionsListResponse]. 1730 * Completes with a [PermissionsListResponse].
1734 * 1731 *
1735 * Completes with a [common.ApiRequestError] if the API endpoint returned an 1732 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
1736 * error. 1733 * error.
1737 * 1734 *
1738 * If the used [http.Client] completes with an error when making a REST call, 1735 * If the used [http.Client] completes with an error when making a REST call,
1739 * this method will complete with the same error. 1736 * this method will complete with the same error.
1740 */ 1737 */
1741 async.Future<PermissionsListResponse> list(core.String id) { 1738 async.Future<PermissionsListResponse> list(core.String id) {
1742 var _url = null; 1739 var _url = null;
1743 var _queryParams = new core.Map(); 1740 var _queryParams = new core.Map();
1744 var _uploadMedia = null; 1741 var _uploadMedia = null;
1745 var _uploadOptions = null; 1742 var _uploadOptions = null;
1746 var _downloadOptions = common.DownloadOptions.Metadata; 1743 var _downloadOptions = commons.DownloadOptions.Metadata;
1747 var _body = null; 1744 var _body = null;
1748 1745
1749 if (id == null) { 1746 if (id == null) {
1750 throw new core.ArgumentError("Parameter id is required."); 1747 throw new core.ArgumentError("Parameter id is required.");
1751 } 1748 }
1752 1749
1753 1750
1754 _url = 'maps/' + common_internal.Escaper.ecapeVariable('$id') + '/permission s'; 1751 _url = 'maps/' + commons.Escaper.ecapeVariable('$id') + '/permissions';
1755 1752
1756 var _response = _requester.request(_url, 1753 var _response = _requester.request(_url,
1757 "GET", 1754 "GET",
1758 body: _body, 1755 body: _body,
1759 queryParams: _queryParams, 1756 queryParams: _queryParams,
1760 uploadOptions: _uploadOptions, 1757 uploadOptions: _uploadOptions,
1761 uploadMedia: _uploadMedia, 1758 uploadMedia: _uploadMedia,
1762 downloadOptions: _downloadOptions); 1759 downloadOptions: _downloadOptions);
1763 return _response.then((data) => new PermissionsListResponse.fromJson(data)); 1760 return _response.then((data) => new PermissionsListResponse.fromJson(data));
1764 } 1761 }
1765 1762
1766 } 1763 }
1767 1764
1768 1765
1769 /** Not documented yet. */
1770 class ProjectsResourceApi { 1766 class ProjectsResourceApi {
1771 final common_internal.ApiRequester _requester; 1767 final commons.ApiRequester _requester;
1772 1768
1773 ProjectsIconsResourceApi get icons => new ProjectsIconsResourceApi(_requester) ; 1769 ProjectsIconsResourceApi get icons => new ProjectsIconsResourceApi(_requester) ;
1774 1770
1775 ProjectsResourceApi(common_internal.ApiRequester client) : 1771 ProjectsResourceApi(commons.ApiRequester client) :
1776 _requester = client; 1772 _requester = client;
1777 1773
1778 /** 1774 /**
1779 * Return all projects readable by the current user. 1775 * Return all projects readable by the current user.
1780 * 1776 *
1781 * Request parameters: 1777 * Request parameters:
1782 * 1778 *
1783 * Completes with a [ProjectsListResponse]. 1779 * Completes with a [ProjectsListResponse].
1784 * 1780 *
1785 * Completes with a [common.ApiRequestError] if the API endpoint returned an 1781 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
1786 * error. 1782 * error.
1787 * 1783 *
1788 * If the used [http.Client] completes with an error when making a REST call, 1784 * If the used [http.Client] completes with an error when making a REST call,
1789 * this method will complete with the same error. 1785 * this method will complete with the same error.
1790 */ 1786 */
1791 async.Future<ProjectsListResponse> list() { 1787 async.Future<ProjectsListResponse> list() {
1792 var _url = null; 1788 var _url = null;
1793 var _queryParams = new core.Map(); 1789 var _queryParams = new core.Map();
1794 var _uploadMedia = null; 1790 var _uploadMedia = null;
1795 var _uploadOptions = null; 1791 var _uploadOptions = null;
1796 var _downloadOptions = common.DownloadOptions.Metadata; 1792 var _downloadOptions = commons.DownloadOptions.Metadata;
1797 var _body = null; 1793 var _body = null;
1798 1794
1799 1795
1800 1796
1801 _url = 'projects'; 1797 _url = 'projects';
1802 1798
1803 var _response = _requester.request(_url, 1799 var _response = _requester.request(_url,
1804 "GET", 1800 "GET",
1805 body: _body, 1801 body: _body,
1806 queryParams: _queryParams, 1802 queryParams: _queryParams,
1807 uploadOptions: _uploadOptions, 1803 uploadOptions: _uploadOptions,
1808 uploadMedia: _uploadMedia, 1804 uploadMedia: _uploadMedia,
1809 downloadOptions: _downloadOptions); 1805 downloadOptions: _downloadOptions);
1810 return _response.then((data) => new ProjectsListResponse.fromJson(data)); 1806 return _response.then((data) => new ProjectsListResponse.fromJson(data));
1811 } 1807 }
1812 1808
1813 } 1809 }
1814 1810
1815 1811
1816 /** Not documented yet. */
1817 class ProjectsIconsResourceApi { 1812 class ProjectsIconsResourceApi {
1818 final common_internal.ApiRequester _requester; 1813 final commons.ApiRequester _requester;
1819 1814
1820 ProjectsIconsResourceApi(common_internal.ApiRequester client) : 1815 ProjectsIconsResourceApi(commons.ApiRequester client) :
1821 _requester = client; 1816 _requester = client;
1822 1817
1823 /** 1818 /**
1824 * Create an icon. 1819 * Create an icon.
1825 * 1820 *
1826 * [request] - The metadata request object. 1821 * [request] - The metadata request object.
1827 * 1822 *
1828 * Request parameters: 1823 * Request parameters:
1829 * 1824 *
1830 * [projectId] - The ID of the project. 1825 * [projectId] - The ID of the project.
1831 * 1826 *
1832 * [uploadMedia] - The media to upload. 1827 * [uploadMedia] - The media to upload.
1833 * 1828 *
1834 * [uploadOptions] - Options for the media upload. Streaming Media without the 1829 * [uploadOptions] - Options for the media upload. Streaming Media without the
1835 * length being known ahead of time is only supported via resumable uploads. 1830 * length being known ahead of time is only supported via resumable uploads.
1836 * 1831 *
1837 * Completes with a [Icon]. 1832 * Completes with a [Icon].
1838 * 1833 *
1839 * Completes with a [common.ApiRequestError] if the API endpoint returned an 1834 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
1840 * error. 1835 * error.
1841 * 1836 *
1842 * If the used [http.Client] completes with an error when making a REST call, 1837 * If the used [http.Client] completes with an error when making a REST call,
1843 * this method will complete with the same error. 1838 * this method will complete with the same error.
1844 */ 1839 */
1845 async.Future<Icon> create(Icon request, core.String projectId, {common.UploadO ptions uploadOptions : common.UploadOptions.Default, common.Media uploadMedia}) { 1840 async.Future<Icon> create(Icon request, core.String projectId, {commons.Upload Options uploadOptions : commons.UploadOptions.Default, commons.Media uploadMedia }) {
1846 var _url = null; 1841 var _url = null;
1847 var _queryParams = new core.Map(); 1842 var _queryParams = new core.Map();
1848 var _uploadMedia = null; 1843 var _uploadMedia = null;
1849 var _uploadOptions = null; 1844 var _uploadOptions = null;
1850 var _downloadOptions = common.DownloadOptions.Metadata; 1845 var _downloadOptions = commons.DownloadOptions.Metadata;
1851 var _body = null; 1846 var _body = null;
1852 1847
1853 if (request != null) { 1848 if (request != null) {
1854 _body = convert.JSON.encode((request).toJson()); 1849 _body = convert.JSON.encode((request).toJson());
1855 } 1850 }
1856 if (projectId == null) { 1851 if (projectId == null) {
1857 throw new core.ArgumentError("Parameter projectId is required."); 1852 throw new core.ArgumentError("Parameter projectId is required.");
1858 } 1853 }
1859 1854
1860 _uploadMedia = uploadMedia; 1855 _uploadMedia = uploadMedia;
1861 _uploadOptions = uploadOptions; 1856 _uploadOptions = uploadOptions;
1862 1857
1863 if (_uploadMedia == null) { 1858 if (_uploadMedia == null) {
1864 _url = 'projects/' + common_internal.Escaper.ecapeVariable('$projectId') + '/icons'; 1859 _url = 'projects/' + commons.Escaper.ecapeVariable('$projectId') + '/icons ';
1865 } else if (_uploadOptions is common.ResumableUploadOptions) { 1860 } else if (_uploadOptions is commons.ResumableUploadOptions) {
1866 _url = '/resumable/upload/mapsengine/v1/projects/' + common_internal.Escap er.ecapeVariable('$projectId') + '/icons'; 1861 _url = '/resumable/upload/mapsengine/v1/projects/' + commons.Escaper.ecape Variable('$projectId') + '/icons';
1867 } else { 1862 } else {
1868 _url = '/upload/mapsengine/v1/projects/' + common_internal.Escaper.ecapeVa riable('$projectId') + '/icons'; 1863 _url = '/upload/mapsengine/v1/projects/' + commons.Escaper.ecapeVariable(' $projectId') + '/icons';
1869 } 1864 }
1870 1865
1871 1866
1872 var _response = _requester.request(_url, 1867 var _response = _requester.request(_url,
1873 "POST", 1868 "POST",
1874 body: _body, 1869 body: _body,
1875 queryParams: _queryParams, 1870 queryParams: _queryParams,
1876 uploadOptions: _uploadOptions, 1871 uploadOptions: _uploadOptions,
1877 uploadMedia: _uploadMedia, 1872 uploadMedia: _uploadMedia,
1878 downloadOptions: _downloadOptions); 1873 downloadOptions: _downloadOptions);
(...skipping 10 matching lines...) Expand all
1889 * [id] - The ID of the icon. 1884 * [id] - The ID of the icon.
1890 * 1885 *
1891 * [downloadOptions] - Options for downloading. A download can be either a 1886 * [downloadOptions] - Options for downloading. A download can be either a
1892 * Metadata (default) or Media download. Partial Media downloads are possible 1887 * Metadata (default) or Media download. Partial Media downloads are possible
1893 * as well. 1888 * as well.
1894 * 1889 *
1895 * Completes with a 1890 * Completes with a
1896 * 1891 *
1897 * - [Icon] for Metadata downloads (see [downloadOptions]). 1892 * - [Icon] for Metadata downloads (see [downloadOptions]).
1898 * 1893 *
1899 * - [common.Media] for Media downloads (see [downloadOptions]). 1894 * - [commons.Media] for Media downloads (see [downloadOptions]).
1900 * 1895 *
1901 * Completes with a [common.ApiRequestError] if the API endpoint returned an 1896 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
1902 * error. 1897 * error.
1903 * 1898 *
1904 * If the used [http.Client] completes with an error when making a REST call, 1899 * If the used [http.Client] completes with an error when making a REST call,
1905 * this method will complete with the same error. 1900 * this method will complete with the same error.
1906 */ 1901 */
1907 async.Future get(core.String projectId, core.String id, {common.DownloadOption s downloadOptions: common.DownloadOptions.Metadata}) { 1902 async.Future get(core.String projectId, core.String id, {commons.DownloadOptio ns downloadOptions: commons.DownloadOptions.Metadata}) {
1908 var _url = null; 1903 var _url = null;
1909 var _queryParams = new core.Map(); 1904 var _queryParams = new core.Map();
1910 var _uploadMedia = null; 1905 var _uploadMedia = null;
1911 var _uploadOptions = null; 1906 var _uploadOptions = null;
1912 var _downloadOptions = common.DownloadOptions.Metadata; 1907 var _downloadOptions = commons.DownloadOptions.Metadata;
1913 var _body = null; 1908 var _body = null;
1914 1909
1915 if (projectId == null) { 1910 if (projectId == null) {
1916 throw new core.ArgumentError("Parameter projectId is required."); 1911 throw new core.ArgumentError("Parameter projectId is required.");
1917 } 1912 }
1918 if (id == null) { 1913 if (id == null) {
1919 throw new core.ArgumentError("Parameter id is required."); 1914 throw new core.ArgumentError("Parameter id is required.");
1920 } 1915 }
1921 1916
1922 _downloadOptions = downloadOptions; 1917 _downloadOptions = downloadOptions;
1923 1918
1924 _url = 'projects/' + common_internal.Escaper.ecapeVariable('$projectId') + ' /icons/' + common_internal.Escaper.ecapeVariable('$id'); 1919 _url = 'projects/' + commons.Escaper.ecapeVariable('$projectId') + '/icons/' + commons.Escaper.ecapeVariable('$id');
1925 1920
1926 var _response = _requester.request(_url, 1921 var _response = _requester.request(_url,
1927 "GET", 1922 "GET",
1928 body: _body, 1923 body: _body,
1929 queryParams: _queryParams, 1924 queryParams: _queryParams,
1930 uploadOptions: _uploadOptions, 1925 uploadOptions: _uploadOptions,
1931 uploadMedia: _uploadMedia, 1926 uploadMedia: _uploadMedia,
1932 downloadOptions: _downloadOptions); 1927 downloadOptions: _downloadOptions);
1933 if (_downloadOptions == null || 1928 if (_downloadOptions == null ||
1934 _downloadOptions == common.DownloadOptions.Metadata) { 1929 _downloadOptions == commons.DownloadOptions.Metadata) {
1935 return _response.then((data) => new Icon.fromJson(data)); 1930 return _response.then((data) => new Icon.fromJson(data));
1936 } else { 1931 } else {
1937 return _response; 1932 return _response;
1938 } 1933 }
1939 } 1934 }
1940 1935
1941 /** 1936 /**
1942 * Return all icons in the current project 1937 * Return all icons in the current project
1943 * 1938 *
1944 * Request parameters: 1939 * Request parameters:
1945 * 1940 *
1946 * [projectId] - The ID of the project. 1941 * [projectId] - The ID of the project.
1947 * 1942 *
1948 * [maxResults] - The maximum number of items to include in a single response 1943 * [maxResults] - The maximum number of items to include in a single response
1949 * page. The maximum supported value is 50. 1944 * page. The maximum supported value is 50.
1950 * 1945 *
1951 * [pageToken] - The continuation token, used to page through large result 1946 * [pageToken] - The continuation token, used to page through large result
1952 * sets. To get the next page of results, set this parameter to the value of 1947 * sets. To get the next page of results, set this parameter to the value of
1953 * nextPageToken from the previous response. 1948 * nextPageToken from the previous response.
1954 * 1949 *
1955 * Completes with a [IconsListResponse]. 1950 * Completes with a [IconsListResponse].
1956 * 1951 *
1957 * Completes with a [common.ApiRequestError] if the API endpoint returned an 1952 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
1958 * error. 1953 * error.
1959 * 1954 *
1960 * If the used [http.Client] completes with an error when making a REST call, 1955 * If the used [http.Client] completes with an error when making a REST call,
1961 * this method will complete with the same error. 1956 * this method will complete with the same error.
1962 */ 1957 */
1963 async.Future<IconsListResponse> list(core.String projectId, {core.int maxResul ts, core.String pageToken}) { 1958 async.Future<IconsListResponse> list(core.String projectId, {core.int maxResul ts, core.String pageToken}) {
1964 var _url = null; 1959 var _url = null;
1965 var _queryParams = new core.Map(); 1960 var _queryParams = new core.Map();
1966 var _uploadMedia = null; 1961 var _uploadMedia = null;
1967 var _uploadOptions = null; 1962 var _uploadOptions = null;
1968 var _downloadOptions = common.DownloadOptions.Metadata; 1963 var _downloadOptions = commons.DownloadOptions.Metadata;
1969 var _body = null; 1964 var _body = null;
1970 1965
1971 if (projectId == null) { 1966 if (projectId == null) {
1972 throw new core.ArgumentError("Parameter projectId is required."); 1967 throw new core.ArgumentError("Parameter projectId is required.");
1973 } 1968 }
1974 if (maxResults != null) { 1969 if (maxResults != null) {
1975 _queryParams["maxResults"] = ["${maxResults}"]; 1970 _queryParams["maxResults"] = ["${maxResults}"];
1976 } 1971 }
1977 if (pageToken != null) { 1972 if (pageToken != null) {
1978 _queryParams["pageToken"] = [pageToken]; 1973 _queryParams["pageToken"] = [pageToken];
1979 } 1974 }
1980 1975
1981 1976
1982 _url = 'projects/' + common_internal.Escaper.ecapeVariable('$projectId') + ' /icons'; 1977 _url = 'projects/' + commons.Escaper.ecapeVariable('$projectId') + '/icons';
1983 1978
1984 var _response = _requester.request(_url, 1979 var _response = _requester.request(_url,
1985 "GET", 1980 "GET",
1986 body: _body, 1981 body: _body,
1987 queryParams: _queryParams, 1982 queryParams: _queryParams,
1988 uploadOptions: _uploadOptions, 1983 uploadOptions: _uploadOptions,
1989 uploadMedia: _uploadMedia, 1984 uploadMedia: _uploadMedia,
1990 downloadOptions: _downloadOptions); 1985 downloadOptions: _downloadOptions);
1991 return _response.then((data) => new IconsListResponse.fromJson(data)); 1986 return _response.then((data) => new IconsListResponse.fromJson(data));
1992 } 1987 }
1993 1988
1994 } 1989 }
1995 1990
1996 1991
1997 /** Not documented yet. */
1998 class RasterCollectionsResourceApi { 1992 class RasterCollectionsResourceApi {
1999 final common_internal.ApiRequester _requester; 1993 final commons.ApiRequester _requester;
2000 1994
2001 RasterCollectionsParentsResourceApi get parents => new RasterCollectionsParent sResourceApi(_requester); 1995 RasterCollectionsParentsResourceApi get parents => new RasterCollectionsParent sResourceApi(_requester);
2002 RasterCollectionsPermissionsResourceApi get permissions => new RasterCollectio nsPermissionsResourceApi(_requester); 1996 RasterCollectionsPermissionsResourceApi get permissions => new RasterCollectio nsPermissionsResourceApi(_requester);
2003 RasterCollectionsRastersResourceApi get rasters => new RasterCollectionsRaster sResourceApi(_requester); 1997 RasterCollectionsRastersResourceApi get rasters => new RasterCollectionsRaster sResourceApi(_requester);
2004 1998
2005 RasterCollectionsResourceApi(common_internal.ApiRequester client) : 1999 RasterCollectionsResourceApi(commons.ApiRequester client) :
2006 _requester = client; 2000 _requester = client;
2007 2001
2008 /** 2002 /**
2009 * Cancel processing on a raster collection asset. 2003 * Cancel processing on a raster collection asset.
2010 * 2004 *
2011 * Request parameters: 2005 * Request parameters:
2012 * 2006 *
2013 * [id] - The ID of the raster collection. 2007 * [id] - The ID of the raster collection.
2014 * 2008 *
2015 * Completes with a [ProcessResponse]. 2009 * Completes with a [ProcessResponse].
2016 * 2010 *
2017 * Completes with a [common.ApiRequestError] if the API endpoint returned an 2011 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
2018 * error. 2012 * error.
2019 * 2013 *
2020 * If the used [http.Client] completes with an error when making a REST call, 2014 * If the used [http.Client] completes with an error when making a REST call,
2021 * this method will complete with the same error. 2015 * this method will complete with the same error.
2022 */ 2016 */
2023 async.Future<ProcessResponse> cancelProcessing(core.String id) { 2017 async.Future<ProcessResponse> cancelProcessing(core.String id) {
2024 var _url = null; 2018 var _url = null;
2025 var _queryParams = new core.Map(); 2019 var _queryParams = new core.Map();
2026 var _uploadMedia = null; 2020 var _uploadMedia = null;
2027 var _uploadOptions = null; 2021 var _uploadOptions = null;
2028 var _downloadOptions = common.DownloadOptions.Metadata; 2022 var _downloadOptions = commons.DownloadOptions.Metadata;
2029 var _body = null; 2023 var _body = null;
2030 2024
2031 if (id == null) { 2025 if (id == null) {
2032 throw new core.ArgumentError("Parameter id is required."); 2026 throw new core.ArgumentError("Parameter id is required.");
2033 } 2027 }
2034 2028
2035 2029
2036 _url = 'rasterCollections/' + common_internal.Escaper.ecapeVariable('$id') + '/cancelProcessing'; 2030 _url = 'rasterCollections/' + commons.Escaper.ecapeVariable('$id') + '/cance lProcessing';
2037 2031
2038 var _response = _requester.request(_url, 2032 var _response = _requester.request(_url,
2039 "POST", 2033 "POST",
2040 body: _body, 2034 body: _body,
2041 queryParams: _queryParams, 2035 queryParams: _queryParams,
2042 uploadOptions: _uploadOptions, 2036 uploadOptions: _uploadOptions,
2043 uploadMedia: _uploadMedia, 2037 uploadMedia: _uploadMedia,
2044 downloadOptions: _downloadOptions); 2038 downloadOptions: _downloadOptions);
2045 return _response.then((data) => new ProcessResponse.fromJson(data)); 2039 return _response.then((data) => new ProcessResponse.fromJson(data));
2046 } 2040 }
2047 2041
2048 /** 2042 /**
2049 * Create a raster collection asset. 2043 * Create a raster collection asset.
2050 * 2044 *
2051 * [request] - The metadata request object. 2045 * [request] - The metadata request object.
2052 * 2046 *
2053 * Request parameters: 2047 * Request parameters:
2054 * 2048 *
2055 * Completes with a [RasterCollection]. 2049 * Completes with a [RasterCollection].
2056 * 2050 *
2057 * Completes with a [common.ApiRequestError] if the API endpoint returned an 2051 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
2058 * error. 2052 * error.
2059 * 2053 *
2060 * If the used [http.Client] completes with an error when making a REST call, 2054 * If the used [http.Client] completes with an error when making a REST call,
2061 * this method will complete with the same error. 2055 * this method will complete with the same error.
2062 */ 2056 */
2063 async.Future<RasterCollection> create(RasterCollection request) { 2057 async.Future<RasterCollection> create(RasterCollection request) {
2064 var _url = null; 2058 var _url = null;
2065 var _queryParams = new core.Map(); 2059 var _queryParams = new core.Map();
2066 var _uploadMedia = null; 2060 var _uploadMedia = null;
2067 var _uploadOptions = null; 2061 var _uploadOptions = null;
2068 var _downloadOptions = common.DownloadOptions.Metadata; 2062 var _downloadOptions = commons.DownloadOptions.Metadata;
2069 var _body = null; 2063 var _body = null;
2070 2064
2071 if (request != null) { 2065 if (request != null) {
2072 _body = convert.JSON.encode((request).toJson()); 2066 _body = convert.JSON.encode((request).toJson());
2073 } 2067 }
2074 2068
2075 2069
2076 _url = 'rasterCollections'; 2070 _url = 'rasterCollections';
2077 2071
2078 var _response = _requester.request(_url, 2072 var _response = _requester.request(_url,
2079 "POST", 2073 "POST",
2080 body: _body, 2074 body: _body,
2081 queryParams: _queryParams, 2075 queryParams: _queryParams,
2082 uploadOptions: _uploadOptions, 2076 uploadOptions: _uploadOptions,
2083 uploadMedia: _uploadMedia, 2077 uploadMedia: _uploadMedia,
2084 downloadOptions: _downloadOptions); 2078 downloadOptions: _downloadOptions);
2085 return _response.then((data) => new RasterCollection.fromJson(data)); 2079 return _response.then((data) => new RasterCollection.fromJson(data));
2086 } 2080 }
2087 2081
2088 /** 2082 /**
2089 * Delete a raster collection. 2083 * Delete a raster collection.
2090 * 2084 *
2091 * Request parameters: 2085 * Request parameters:
2092 * 2086 *
2093 * [id] - The ID of the raster collection. Only the raster collection creator 2087 * [id] - The ID of the raster collection. Only the raster collection creator
2094 * or project owner are permitted to delete. If the rastor collection is 2088 * or project owner are permitted to delete. If the rastor collection is
2095 * included in a layer, the request will fail. Remove the raster collection 2089 * included in a layer, the request will fail. Remove the raster collection
2096 * from all layers prior to deleting. 2090 * from all layers prior to deleting.
2097 * 2091 *
2098 * Completes with a [common.ApiRequestError] if the API endpoint returned an 2092 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
2099 * error. 2093 * error.
2100 * 2094 *
2101 * If the used [http.Client] completes with an error when making a REST call, 2095 * If the used [http.Client] completes with an error when making a REST call,
2102 * this method will complete with the same error. 2096 * this method will complete with the same error.
2103 */ 2097 */
2104 async.Future delete(core.String id) { 2098 async.Future delete(core.String id) {
2105 var _url = null; 2099 var _url = null;
2106 var _queryParams = new core.Map(); 2100 var _queryParams = new core.Map();
2107 var _uploadMedia = null; 2101 var _uploadMedia = null;
2108 var _uploadOptions = null; 2102 var _uploadOptions = null;
2109 var _downloadOptions = common.DownloadOptions.Metadata; 2103 var _downloadOptions = commons.DownloadOptions.Metadata;
2110 var _body = null; 2104 var _body = null;
2111 2105
2112 if (id == null) { 2106 if (id == null) {
2113 throw new core.ArgumentError("Parameter id is required."); 2107 throw new core.ArgumentError("Parameter id is required.");
2114 } 2108 }
2115 2109
2116 _downloadOptions = null; 2110 _downloadOptions = null;
2117 2111
2118 _url = 'rasterCollections/' + common_internal.Escaper.ecapeVariable('$id'); 2112 _url = 'rasterCollections/' + commons.Escaper.ecapeVariable('$id');
2119 2113
2120 var _response = _requester.request(_url, 2114 var _response = _requester.request(_url,
2121 "DELETE", 2115 "DELETE",
2122 body: _body, 2116 body: _body,
2123 queryParams: _queryParams, 2117 queryParams: _queryParams,
2124 uploadOptions: _uploadOptions, 2118 uploadOptions: _uploadOptions,
2125 uploadMedia: _uploadMedia, 2119 uploadMedia: _uploadMedia,
2126 downloadOptions: _downloadOptions); 2120 downloadOptions: _downloadOptions);
2127 return _response.then((data) => null); 2121 return _response.then((data) => null);
2128 } 2122 }
2129 2123
2130 /** 2124 /**
2131 * Return metadata for a particular raster collection. 2125 * Return metadata for a particular raster collection.
2132 * 2126 *
2133 * Request parameters: 2127 * Request parameters:
2134 * 2128 *
2135 * [id] - The ID of the raster collection. 2129 * [id] - The ID of the raster collection.
2136 * 2130 *
2137 * Completes with a [RasterCollection]. 2131 * Completes with a [RasterCollection].
2138 * 2132 *
2139 * Completes with a [common.ApiRequestError] if the API endpoint returned an 2133 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
2140 * error. 2134 * error.
2141 * 2135 *
2142 * If the used [http.Client] completes with an error when making a REST call, 2136 * If the used [http.Client] completes with an error when making a REST call,
2143 * this method will complete with the same error. 2137 * this method will complete with the same error.
2144 */ 2138 */
2145 async.Future<RasterCollection> get(core.String id) { 2139 async.Future<RasterCollection> get(core.String id) {
2146 var _url = null; 2140 var _url = null;
2147 var _queryParams = new core.Map(); 2141 var _queryParams = new core.Map();
2148 var _uploadMedia = null; 2142 var _uploadMedia = null;
2149 var _uploadOptions = null; 2143 var _uploadOptions = null;
2150 var _downloadOptions = common.DownloadOptions.Metadata; 2144 var _downloadOptions = commons.DownloadOptions.Metadata;
2151 var _body = null; 2145 var _body = null;
2152 2146
2153 if (id == null) { 2147 if (id == null) {
2154 throw new core.ArgumentError("Parameter id is required."); 2148 throw new core.ArgumentError("Parameter id is required.");
2155 } 2149 }
2156 2150
2157 2151
2158 _url = 'rasterCollections/' + common_internal.Escaper.ecapeVariable('$id'); 2152 _url = 'rasterCollections/' + commons.Escaper.ecapeVariable('$id');
2159 2153
2160 var _response = _requester.request(_url, 2154 var _response = _requester.request(_url,
2161 "GET", 2155 "GET",
2162 body: _body, 2156 body: _body,
2163 queryParams: _queryParams, 2157 queryParams: _queryParams,
2164 uploadOptions: _uploadOptions, 2158 uploadOptions: _uploadOptions,
2165 uploadMedia: _uploadMedia, 2159 uploadMedia: _uploadMedia,
2166 downloadOptions: _downloadOptions); 2160 downloadOptions: _downloadOptions);
2167 return _response.then((data) => new RasterCollection.fromJson(data)); 2161 return _response.then((data) => new RasterCollection.fromJson(data));
2168 } 2162 }
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
2222 * - "writer" : The user can read and write the asset. 2216 * - "writer" : The user can read and write the asset.
2223 * 2217 *
2224 * [search] - An unstructured search string used to filter the set of results 2218 * [search] - An unstructured search string used to filter the set of results
2225 * based on asset metadata. 2219 * based on asset metadata.
2226 * 2220 *
2227 * [tags] - A comma separated list of tags. Returned assets will contain all 2221 * [tags] - A comma separated list of tags. Returned assets will contain all
2228 * the tags from the list. 2222 * the tags from the list.
2229 * 2223 *
2230 * Completes with a [RasterCollectionsListResponse]. 2224 * Completes with a [RasterCollectionsListResponse].
2231 * 2225 *
2232 * Completes with a [common.ApiRequestError] if the API endpoint returned an 2226 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
2233 * error. 2227 * error.
2234 * 2228 *
2235 * If the used [http.Client] completes with an error when making a REST call, 2229 * If the used [http.Client] completes with an error when making a REST call,
2236 * this method will complete with the same error. 2230 * this method will complete with the same error.
2237 */ 2231 */
2238 async.Future<RasterCollectionsListResponse> list({core.String bbox, core.DateT ime createdAfter, core.DateTime createdBefore, core.String creatorEmail, core.in t maxResults, core.DateTime modifiedAfter, core.DateTime modifiedBefore, core.St ring pageToken, core.String processingStatus, core.String projectId, core.String role, core.String search, core.String tags}) { 2232 async.Future<RasterCollectionsListResponse> list({core.String bbox, core.DateT ime createdAfter, core.DateTime createdBefore, core.String creatorEmail, core.in t maxResults, core.DateTime modifiedAfter, core.DateTime modifiedBefore, core.St ring pageToken, core.String processingStatus, core.String projectId, core.String role, core.String search, core.String tags}) {
2239 var _url = null; 2233 var _url = null;
2240 var _queryParams = new core.Map(); 2234 var _queryParams = new core.Map();
2241 var _uploadMedia = null; 2235 var _uploadMedia = null;
2242 var _uploadOptions = null; 2236 var _uploadOptions = null;
2243 var _downloadOptions = common.DownloadOptions.Metadata; 2237 var _downloadOptions = commons.DownloadOptions.Metadata;
2244 var _body = null; 2238 var _body = null;
2245 2239
2246 if (bbox != null) { 2240 if (bbox != null) {
2247 _queryParams["bbox"] = [bbox]; 2241 _queryParams["bbox"] = [bbox];
2248 } 2242 }
2249 if (createdAfter != null) { 2243 if (createdAfter != null) {
2250 _queryParams["createdAfter"] = [(createdAfter).toIso8601String()]; 2244 _queryParams["createdAfter"] = [(createdAfter).toIso8601String()];
2251 } 2245 }
2252 if (createdBefore != null) { 2246 if (createdBefore != null) {
2253 _queryParams["createdBefore"] = [(createdBefore).toIso8601String()]; 2247 _queryParams["createdBefore"] = [(createdBefore).toIso8601String()];
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
2298 2292
2299 /** 2293 /**
2300 * Mutate a raster collection asset. 2294 * Mutate a raster collection asset.
2301 * 2295 *
2302 * [request] - The metadata request object. 2296 * [request] - The metadata request object.
2303 * 2297 *
2304 * Request parameters: 2298 * Request parameters:
2305 * 2299 *
2306 * [id] - The ID of the raster collection. 2300 * [id] - The ID of the raster collection.
2307 * 2301 *
2308 * Completes with a [common.ApiRequestError] if the API endpoint returned an 2302 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
2309 * error. 2303 * error.
2310 * 2304 *
2311 * If the used [http.Client] completes with an error when making a REST call, 2305 * If the used [http.Client] completes with an error when making a REST call,
2312 * this method will complete with the same error. 2306 * this method will complete with the same error.
2313 */ 2307 */
2314 async.Future patch(RasterCollection request, core.String id) { 2308 async.Future patch(RasterCollection request, core.String id) {
2315 var _url = null; 2309 var _url = null;
2316 var _queryParams = new core.Map(); 2310 var _queryParams = new core.Map();
2317 var _uploadMedia = null; 2311 var _uploadMedia = null;
2318 var _uploadOptions = null; 2312 var _uploadOptions = null;
2319 var _downloadOptions = common.DownloadOptions.Metadata; 2313 var _downloadOptions = commons.DownloadOptions.Metadata;
2320 var _body = null; 2314 var _body = null;
2321 2315
2322 if (request != null) { 2316 if (request != null) {
2323 _body = convert.JSON.encode((request).toJson()); 2317 _body = convert.JSON.encode((request).toJson());
2324 } 2318 }
2325 if (id == null) { 2319 if (id == null) {
2326 throw new core.ArgumentError("Parameter id is required."); 2320 throw new core.ArgumentError("Parameter id is required.");
2327 } 2321 }
2328 2322
2329 _downloadOptions = null; 2323 _downloadOptions = null;
2330 2324
2331 _url = 'rasterCollections/' + common_internal.Escaper.ecapeVariable('$id'); 2325 _url = 'rasterCollections/' + commons.Escaper.ecapeVariable('$id');
2332 2326
2333 var _response = _requester.request(_url, 2327 var _response = _requester.request(_url,
2334 "PATCH", 2328 "PATCH",
2335 body: _body, 2329 body: _body,
2336 queryParams: _queryParams, 2330 queryParams: _queryParams,
2337 uploadOptions: _uploadOptions, 2331 uploadOptions: _uploadOptions,
2338 uploadMedia: _uploadMedia, 2332 uploadMedia: _uploadMedia,
2339 downloadOptions: _downloadOptions); 2333 downloadOptions: _downloadOptions);
2340 return _response.then((data) => null); 2334 return _response.then((data) => null);
2341 } 2335 }
2342 2336
2343 /** 2337 /**
2344 * Process a raster collection asset. 2338 * Process a raster collection asset.
2345 * 2339 *
2346 * Request parameters: 2340 * Request parameters:
2347 * 2341 *
2348 * [id] - The ID of the raster collection. 2342 * [id] - The ID of the raster collection.
2349 * 2343 *
2350 * Completes with a [ProcessResponse]. 2344 * Completes with a [ProcessResponse].
2351 * 2345 *
2352 * Completes with a [common.ApiRequestError] if the API endpoint returned an 2346 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
2353 * error. 2347 * error.
2354 * 2348 *
2355 * If the used [http.Client] completes with an error when making a REST call, 2349 * If the used [http.Client] completes with an error when making a REST call,
2356 * this method will complete with the same error. 2350 * this method will complete with the same error.
2357 */ 2351 */
2358 async.Future<ProcessResponse> process(core.String id) { 2352 async.Future<ProcessResponse> process(core.String id) {
2359 var _url = null; 2353 var _url = null;
2360 var _queryParams = new core.Map(); 2354 var _queryParams = new core.Map();
2361 var _uploadMedia = null; 2355 var _uploadMedia = null;
2362 var _uploadOptions = null; 2356 var _uploadOptions = null;
2363 var _downloadOptions = common.DownloadOptions.Metadata; 2357 var _downloadOptions = commons.DownloadOptions.Metadata;
2364 var _body = null; 2358 var _body = null;
2365 2359
2366 if (id == null) { 2360 if (id == null) {
2367 throw new core.ArgumentError("Parameter id is required."); 2361 throw new core.ArgumentError("Parameter id is required.");
2368 } 2362 }
2369 2363
2370 2364
2371 _url = 'rasterCollections/' + common_internal.Escaper.ecapeVariable('$id') + '/process'; 2365 _url = 'rasterCollections/' + commons.Escaper.ecapeVariable('$id') + '/proce ss';
2372 2366
2373 var _response = _requester.request(_url, 2367 var _response = _requester.request(_url,
2374 "POST", 2368 "POST",
2375 body: _body, 2369 body: _body,
2376 queryParams: _queryParams, 2370 queryParams: _queryParams,
2377 uploadOptions: _uploadOptions, 2371 uploadOptions: _uploadOptions,
2378 uploadMedia: _uploadMedia, 2372 uploadMedia: _uploadMedia,
2379 downloadOptions: _downloadOptions); 2373 downloadOptions: _downloadOptions);
2380 return _response.then((data) => new ProcessResponse.fromJson(data)); 2374 return _response.then((data) => new ProcessResponse.fromJson(data));
2381 } 2375 }
2382 2376
2383 } 2377 }
2384 2378
2385 2379
2386 /** Not documented yet. */
2387 class RasterCollectionsParentsResourceApi { 2380 class RasterCollectionsParentsResourceApi {
2388 final common_internal.ApiRequester _requester; 2381 final commons.ApiRequester _requester;
2389 2382
2390 RasterCollectionsParentsResourceApi(common_internal.ApiRequester client) : 2383 RasterCollectionsParentsResourceApi(commons.ApiRequester client) :
2391 _requester = client; 2384 _requester = client;
2392 2385
2393 /** 2386 /**
2394 * Return all parent ids of the specified raster collection. 2387 * Return all parent ids of the specified raster collection.
2395 * 2388 *
2396 * Request parameters: 2389 * Request parameters:
2397 * 2390 *
2398 * [id] - The ID of the raster collection whose parents will be listed. 2391 * [id] - The ID of the raster collection whose parents will be listed.
2399 * 2392 *
2400 * [maxResults] - The maximum number of items to include in a single response 2393 * [maxResults] - The maximum number of items to include in a single response
2401 * page. The maximum supported value is 50. 2394 * page. The maximum supported value is 50.
2402 * 2395 *
2403 * [pageToken] - The continuation token, used to page through large result 2396 * [pageToken] - The continuation token, used to page through large result
2404 * sets. To get the next page of results, set this parameter to the value of 2397 * sets. To get the next page of results, set this parameter to the value of
2405 * nextPageToken from the previous response. 2398 * nextPageToken from the previous response.
2406 * 2399 *
2407 * Completes with a [ParentsListResponse]. 2400 * Completes with a [ParentsListResponse].
2408 * 2401 *
2409 * Completes with a [common.ApiRequestError] if the API endpoint returned an 2402 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
2410 * error. 2403 * error.
2411 * 2404 *
2412 * If the used [http.Client] completes with an error when making a REST call, 2405 * If the used [http.Client] completes with an error when making a REST call,
2413 * this method will complete with the same error. 2406 * this method will complete with the same error.
2414 */ 2407 */
2415 async.Future<ParentsListResponse> list(core.String id, {core.int maxResults, c ore.String pageToken}) { 2408 async.Future<ParentsListResponse> list(core.String id, {core.int maxResults, c ore.String pageToken}) {
2416 var _url = null; 2409 var _url = null;
2417 var _queryParams = new core.Map(); 2410 var _queryParams = new core.Map();
2418 var _uploadMedia = null; 2411 var _uploadMedia = null;
2419 var _uploadOptions = null; 2412 var _uploadOptions = null;
2420 var _downloadOptions = common.DownloadOptions.Metadata; 2413 var _downloadOptions = commons.DownloadOptions.Metadata;
2421 var _body = null; 2414 var _body = null;
2422 2415
2423 if (id == null) { 2416 if (id == null) {
2424 throw new core.ArgumentError("Parameter id is required."); 2417 throw new core.ArgumentError("Parameter id is required.");
2425 } 2418 }
2426 if (maxResults != null) { 2419 if (maxResults != null) {
2427 _queryParams["maxResults"] = ["${maxResults}"]; 2420 _queryParams["maxResults"] = ["${maxResults}"];
2428 } 2421 }
2429 if (pageToken != null) { 2422 if (pageToken != null) {
2430 _queryParams["pageToken"] = [pageToken]; 2423 _queryParams["pageToken"] = [pageToken];
2431 } 2424 }
2432 2425
2433 2426
2434 _url = 'rasterCollections/' + common_internal.Escaper.ecapeVariable('$id') + '/parents'; 2427 _url = 'rasterCollections/' + commons.Escaper.ecapeVariable('$id') + '/paren ts';
2435 2428
2436 var _response = _requester.request(_url, 2429 var _response = _requester.request(_url,
2437 "GET", 2430 "GET",
2438 body: _body, 2431 body: _body,
2439 queryParams: _queryParams, 2432 queryParams: _queryParams,
2440 uploadOptions: _uploadOptions, 2433 uploadOptions: _uploadOptions,
2441 uploadMedia: _uploadMedia, 2434 uploadMedia: _uploadMedia,
2442 downloadOptions: _downloadOptions); 2435 downloadOptions: _downloadOptions);
2443 return _response.then((data) => new ParentsListResponse.fromJson(data)); 2436 return _response.then((data) => new ParentsListResponse.fromJson(data));
2444 } 2437 }
2445 2438
2446 } 2439 }
2447 2440
2448 2441
2449 /** Not documented yet. */
2450 class RasterCollectionsPermissionsResourceApi { 2442 class RasterCollectionsPermissionsResourceApi {
2451 final common_internal.ApiRequester _requester; 2443 final commons.ApiRequester _requester;
2452 2444
2453 RasterCollectionsPermissionsResourceApi(common_internal.ApiRequester client) : 2445 RasterCollectionsPermissionsResourceApi(commons.ApiRequester client) :
2454 _requester = client; 2446 _requester = client;
2455 2447
2456 /** 2448 /**
2457 * Remove permission entries from an already existing asset. 2449 * Remove permission entries from an already existing asset.
2458 * 2450 *
2459 * [request] - The metadata request object. 2451 * [request] - The metadata request object.
2460 * 2452 *
2461 * Request parameters: 2453 * Request parameters:
2462 * 2454 *
2463 * [id] - The ID of the asset from which permissions will be removed. 2455 * [id] - The ID of the asset from which permissions will be removed.
2464 * 2456 *
2465 * Completes with a [PermissionsBatchDeleteResponse]. 2457 * Completes with a [PermissionsBatchDeleteResponse].
2466 * 2458 *
2467 * Completes with a [common.ApiRequestError] if the API endpoint returned an 2459 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
2468 * error. 2460 * error.
2469 * 2461 *
2470 * If the used [http.Client] completes with an error when making a REST call, 2462 * If the used [http.Client] completes with an error when making a REST call,
2471 * this method will complete with the same error. 2463 * this method will complete with the same error.
2472 */ 2464 */
2473 async.Future<PermissionsBatchDeleteResponse> batchDelete(PermissionsBatchDelet eRequest request, core.String id) { 2465 async.Future<PermissionsBatchDeleteResponse> batchDelete(PermissionsBatchDelet eRequest request, core.String id) {
2474 var _url = null; 2466 var _url = null;
2475 var _queryParams = new core.Map(); 2467 var _queryParams = new core.Map();
2476 var _uploadMedia = null; 2468 var _uploadMedia = null;
2477 var _uploadOptions = null; 2469 var _uploadOptions = null;
2478 var _downloadOptions = common.DownloadOptions.Metadata; 2470 var _downloadOptions = commons.DownloadOptions.Metadata;
2479 var _body = null; 2471 var _body = null;
2480 2472
2481 if (request != null) { 2473 if (request != null) {
2482 _body = convert.JSON.encode((request).toJson()); 2474 _body = convert.JSON.encode((request).toJson());
2483 } 2475 }
2484 if (id == null) { 2476 if (id == null) {
2485 throw new core.ArgumentError("Parameter id is required."); 2477 throw new core.ArgumentError("Parameter id is required.");
2486 } 2478 }
2487 2479
2488 2480
2489 _url = 'rasterCollections/' + common_internal.Escaper.ecapeVariable('$id') + '/permissions/batchDelete'; 2481 _url = 'rasterCollections/' + commons.Escaper.ecapeVariable('$id') + '/permi ssions/batchDelete';
2490 2482
2491 var _response = _requester.request(_url, 2483 var _response = _requester.request(_url,
2492 "POST", 2484 "POST",
2493 body: _body, 2485 body: _body,
2494 queryParams: _queryParams, 2486 queryParams: _queryParams,
2495 uploadOptions: _uploadOptions, 2487 uploadOptions: _uploadOptions,
2496 uploadMedia: _uploadMedia, 2488 uploadMedia: _uploadMedia,
2497 downloadOptions: _downloadOptions); 2489 downloadOptions: _downloadOptions);
2498 return _response.then((data) => new PermissionsBatchDeleteResponse.fromJson( data)); 2490 return _response.then((data) => new PermissionsBatchDeleteResponse.fromJson( data));
2499 } 2491 }
2500 2492
2501 /** 2493 /**
2502 * Add or update permission entries to an already existing asset. 2494 * Add or update permission entries to an already existing asset.
2503 * 2495 *
2504 * An asset can hold up to 20 different permission entries. Each batchInsert 2496 * An asset can hold up to 20 different permission entries. Each batchInsert
2505 * request is atomic. 2497 * request is atomic.
2506 * 2498 *
2507 * [request] - The metadata request object. 2499 * [request] - The metadata request object.
2508 * 2500 *
2509 * Request parameters: 2501 * Request parameters:
2510 * 2502 *
2511 * [id] - The ID of the asset to which permissions will be added. 2503 * [id] - The ID of the asset to which permissions will be added.
2512 * 2504 *
2513 * Completes with a [PermissionsBatchUpdateResponse]. 2505 * Completes with a [PermissionsBatchUpdateResponse].
2514 * 2506 *
2515 * Completes with a [common.ApiRequestError] if the API endpoint returned an 2507 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
2516 * error. 2508 * error.
2517 * 2509 *
2518 * If the used [http.Client] completes with an error when making a REST call, 2510 * If the used [http.Client] completes with an error when making a REST call,
2519 * this method will complete with the same error. 2511 * this method will complete with the same error.
2520 */ 2512 */
2521 async.Future<PermissionsBatchUpdateResponse> batchUpdate(PermissionsBatchUpdat eRequest request, core.String id) { 2513 async.Future<PermissionsBatchUpdateResponse> batchUpdate(PermissionsBatchUpdat eRequest request, core.String id) {
2522 var _url = null; 2514 var _url = null;
2523 var _queryParams = new core.Map(); 2515 var _queryParams = new core.Map();
2524 var _uploadMedia = null; 2516 var _uploadMedia = null;
2525 var _uploadOptions = null; 2517 var _uploadOptions = null;
2526 var _downloadOptions = common.DownloadOptions.Metadata; 2518 var _downloadOptions = commons.DownloadOptions.Metadata;
2527 var _body = null; 2519 var _body = null;
2528 2520
2529 if (request != null) { 2521 if (request != null) {
2530 _body = convert.JSON.encode((request).toJson()); 2522 _body = convert.JSON.encode((request).toJson());
2531 } 2523 }
2532 if (id == null) { 2524 if (id == null) {
2533 throw new core.ArgumentError("Parameter id is required."); 2525 throw new core.ArgumentError("Parameter id is required.");
2534 } 2526 }
2535 2527
2536 2528
2537 _url = 'rasterCollections/' + common_internal.Escaper.ecapeVariable('$id') + '/permissions/batchUpdate'; 2529 _url = 'rasterCollections/' + commons.Escaper.ecapeVariable('$id') + '/permi ssions/batchUpdate';
2538 2530
2539 var _response = _requester.request(_url, 2531 var _response = _requester.request(_url,
2540 "POST", 2532 "POST",
2541 body: _body, 2533 body: _body,
2542 queryParams: _queryParams, 2534 queryParams: _queryParams,
2543 uploadOptions: _uploadOptions, 2535 uploadOptions: _uploadOptions,
2544 uploadMedia: _uploadMedia, 2536 uploadMedia: _uploadMedia,
2545 downloadOptions: _downloadOptions); 2537 downloadOptions: _downloadOptions);
2546 return _response.then((data) => new PermissionsBatchUpdateResponse.fromJson( data)); 2538 return _response.then((data) => new PermissionsBatchUpdateResponse.fromJson( data));
2547 } 2539 }
2548 2540
2549 /** 2541 /**
2550 * Return all of the permissions for the specified asset. 2542 * Return all of the permissions for the specified asset.
2551 * 2543 *
2552 * Request parameters: 2544 * Request parameters:
2553 * 2545 *
2554 * [id] - The ID of the asset whose permissions will be listed. 2546 * [id] - The ID of the asset whose permissions will be listed.
2555 * 2547 *
2556 * Completes with a [PermissionsListResponse]. 2548 * Completes with a [PermissionsListResponse].
2557 * 2549 *
2558 * Completes with a [common.ApiRequestError] if the API endpoint returned an 2550 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
2559 * error. 2551 * error.
2560 * 2552 *
2561 * If the used [http.Client] completes with an error when making a REST call, 2553 * If the used [http.Client] completes with an error when making a REST call,
2562 * this method will complete with the same error. 2554 * this method will complete with the same error.
2563 */ 2555 */
2564 async.Future<PermissionsListResponse> list(core.String id) { 2556 async.Future<PermissionsListResponse> list(core.String id) {
2565 var _url = null; 2557 var _url = null;
2566 var _queryParams = new core.Map(); 2558 var _queryParams = new core.Map();
2567 var _uploadMedia = null; 2559 var _uploadMedia = null;
2568 var _uploadOptions = null; 2560 var _uploadOptions = null;
2569 var _downloadOptions = common.DownloadOptions.Metadata; 2561 var _downloadOptions = commons.DownloadOptions.Metadata;
2570 var _body = null; 2562 var _body = null;
2571 2563
2572 if (id == null) { 2564 if (id == null) {
2573 throw new core.ArgumentError("Parameter id is required."); 2565 throw new core.ArgumentError("Parameter id is required.");
2574 } 2566 }
2575 2567
2576 2568
2577 _url = 'rasterCollections/' + common_internal.Escaper.ecapeVariable('$id') + '/permissions'; 2569 _url = 'rasterCollections/' + commons.Escaper.ecapeVariable('$id') + '/permi ssions';
2578 2570
2579 var _response = _requester.request(_url, 2571 var _response = _requester.request(_url,
2580 "GET", 2572 "GET",
2581 body: _body, 2573 body: _body,
2582 queryParams: _queryParams, 2574 queryParams: _queryParams,
2583 uploadOptions: _uploadOptions, 2575 uploadOptions: _uploadOptions,
2584 uploadMedia: _uploadMedia, 2576 uploadMedia: _uploadMedia,
2585 downloadOptions: _downloadOptions); 2577 downloadOptions: _downloadOptions);
2586 return _response.then((data) => new PermissionsListResponse.fromJson(data)); 2578 return _response.then((data) => new PermissionsListResponse.fromJson(data));
2587 } 2579 }
2588 2580
2589 } 2581 }
2590 2582
2591 2583
2592 /** Not documented yet. */
2593 class RasterCollectionsRastersResourceApi { 2584 class RasterCollectionsRastersResourceApi {
2594 final common_internal.ApiRequester _requester; 2585 final commons.ApiRequester _requester;
2595 2586
2596 RasterCollectionsRastersResourceApi(common_internal.ApiRequester client) : 2587 RasterCollectionsRastersResourceApi(commons.ApiRequester client) :
2597 _requester = client; 2588 _requester = client;
2598 2589
2599 /** 2590 /**
2600 * Remove rasters from an existing raster collection. 2591 * Remove rasters from an existing raster collection.
2601 * 2592 *
2602 * Up to 50 rasters can be included in a single batchDelete request. Each 2593 * Up to 50 rasters can be included in a single batchDelete request. Each
2603 * batchDelete request is atomic. 2594 * batchDelete request is atomic.
2604 * 2595 *
2605 * [request] - The metadata request object. 2596 * [request] - The metadata request object.
2606 * 2597 *
2607 * Request parameters: 2598 * Request parameters:
2608 * 2599 *
2609 * [id] - The ID of the raster collection to which these rasters belong. 2600 * [id] - The ID of the raster collection to which these rasters belong.
2610 * 2601 *
2611 * Completes with a [RasterCollectionsRastersBatchDeleteResponse]. 2602 * Completes with a [RasterCollectionsRastersBatchDeleteResponse].
2612 * 2603 *
2613 * Completes with a [common.ApiRequestError] if the API endpoint returned an 2604 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
2614 * error. 2605 * error.
2615 * 2606 *
2616 * If the used [http.Client] completes with an error when making a REST call, 2607 * If the used [http.Client] completes with an error when making a REST call,
2617 * this method will complete with the same error. 2608 * this method will complete with the same error.
2618 */ 2609 */
2619 async.Future<RasterCollectionsRastersBatchDeleteResponse> batchDelete(RasterCo llectionsRasterBatchDeleteRequest request, core.String id) { 2610 async.Future<RasterCollectionsRastersBatchDeleteResponse> batchDelete(RasterCo llectionsRasterBatchDeleteRequest request, core.String id) {
2620 var _url = null; 2611 var _url = null;
2621 var _queryParams = new core.Map(); 2612 var _queryParams = new core.Map();
2622 var _uploadMedia = null; 2613 var _uploadMedia = null;
2623 var _uploadOptions = null; 2614 var _uploadOptions = null;
2624 var _downloadOptions = common.DownloadOptions.Metadata; 2615 var _downloadOptions = commons.DownloadOptions.Metadata;
2625 var _body = null; 2616 var _body = null;
2626 2617
2627 if (request != null) { 2618 if (request != null) {
2628 _body = convert.JSON.encode((request).toJson()); 2619 _body = convert.JSON.encode((request).toJson());
2629 } 2620 }
2630 if (id == null) { 2621 if (id == null) {
2631 throw new core.ArgumentError("Parameter id is required."); 2622 throw new core.ArgumentError("Parameter id is required.");
2632 } 2623 }
2633 2624
2634 2625
2635 _url = 'rasterCollections/' + common_internal.Escaper.ecapeVariable('$id') + '/rasters/batchDelete'; 2626 _url = 'rasterCollections/' + commons.Escaper.ecapeVariable('$id') + '/raste rs/batchDelete';
2636 2627
2637 var _response = _requester.request(_url, 2628 var _response = _requester.request(_url,
2638 "POST", 2629 "POST",
2639 body: _body, 2630 body: _body,
2640 queryParams: _queryParams, 2631 queryParams: _queryParams,
2641 uploadOptions: _uploadOptions, 2632 uploadOptions: _uploadOptions,
2642 uploadMedia: _uploadMedia, 2633 uploadMedia: _uploadMedia,
2643 downloadOptions: _downloadOptions); 2634 downloadOptions: _downloadOptions);
2644 return _response.then((data) => new RasterCollectionsRastersBatchDeleteRespo nse.fromJson(data)); 2635 return _response.then((data) => new RasterCollectionsRastersBatchDeleteRespo nse.fromJson(data));
2645 } 2636 }
2646 2637
2647 /** 2638 /**
2648 * Add rasters to an existing raster collection. Rasters must be successfully 2639 * Add rasters to an existing raster collection. Rasters must be successfully
2649 * processed in order to be added to a raster collection. 2640 * processed in order to be added to a raster collection.
2650 * 2641 *
2651 * Up to 50 rasters can be included in a single batchInsert request. Each 2642 * Up to 50 rasters can be included in a single batchInsert request. Each
2652 * batchInsert request is atomic. 2643 * batchInsert request is atomic.
2653 * 2644 *
2654 * [request] - The metadata request object. 2645 * [request] - The metadata request object.
2655 * 2646 *
2656 * Request parameters: 2647 * Request parameters:
2657 * 2648 *
2658 * [id] - The ID of the raster collection to which these rasters belong. 2649 * [id] - The ID of the raster collection to which these rasters belong.
2659 * 2650 *
2660 * Completes with a [RasterCollectionsRastersBatchInsertResponse]. 2651 * Completes with a [RasterCollectionsRastersBatchInsertResponse].
2661 * 2652 *
2662 * Completes with a [common.ApiRequestError] if the API endpoint returned an 2653 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
2663 * error. 2654 * error.
2664 * 2655 *
2665 * If the used [http.Client] completes with an error when making a REST call, 2656 * If the used [http.Client] completes with an error when making a REST call,
2666 * this method will complete with the same error. 2657 * this method will complete with the same error.
2667 */ 2658 */
2668 async.Future<RasterCollectionsRastersBatchInsertResponse> batchInsert(RasterCo llectionsRastersBatchInsertRequest request, core.String id) { 2659 async.Future<RasterCollectionsRastersBatchInsertResponse> batchInsert(RasterCo llectionsRastersBatchInsertRequest request, core.String id) {
2669 var _url = null; 2660 var _url = null;
2670 var _queryParams = new core.Map(); 2661 var _queryParams = new core.Map();
2671 var _uploadMedia = null; 2662 var _uploadMedia = null;
2672 var _uploadOptions = null; 2663 var _uploadOptions = null;
2673 var _downloadOptions = common.DownloadOptions.Metadata; 2664 var _downloadOptions = commons.DownloadOptions.Metadata;
2674 var _body = null; 2665 var _body = null;
2675 2666
2676 if (request != null) { 2667 if (request != null) {
2677 _body = convert.JSON.encode((request).toJson()); 2668 _body = convert.JSON.encode((request).toJson());
2678 } 2669 }
2679 if (id == null) { 2670 if (id == null) {
2680 throw new core.ArgumentError("Parameter id is required."); 2671 throw new core.ArgumentError("Parameter id is required.");
2681 } 2672 }
2682 2673
2683 2674
2684 _url = 'rasterCollections/' + common_internal.Escaper.ecapeVariable('$id') + '/rasters/batchInsert'; 2675 _url = 'rasterCollections/' + commons.Escaper.ecapeVariable('$id') + '/raste rs/batchInsert';
2685 2676
2686 var _response = _requester.request(_url, 2677 var _response = _requester.request(_url,
2687 "POST", 2678 "POST",
2688 body: _body, 2679 body: _body,
2689 queryParams: _queryParams, 2680 queryParams: _queryParams,
2690 uploadOptions: _uploadOptions, 2681 uploadOptions: _uploadOptions,
2691 uploadMedia: _uploadMedia, 2682 uploadMedia: _uploadMedia,
2692 downloadOptions: _downloadOptions); 2683 downloadOptions: _downloadOptions);
2693 return _response.then((data) => new RasterCollectionsRastersBatchInsertRespo nse.fromJson(data)); 2684 return _response.then((data) => new RasterCollectionsRastersBatchInsertRespo nse.fromJson(data));
2694 } 2685 }
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
2737 * - "writer" : The user can read and write the asset. 2728 * - "writer" : The user can read and write the asset.
2738 * 2729 *
2739 * [search] - An unstructured search string used to filter the set of results 2730 * [search] - An unstructured search string used to filter the set of results
2740 * based on asset metadata. 2731 * based on asset metadata.
2741 * 2732 *
2742 * [tags] - A comma separated list of tags. Returned assets will contain all 2733 * [tags] - A comma separated list of tags. Returned assets will contain all
2743 * the tags from the list. 2734 * the tags from the list.
2744 * 2735 *
2745 * Completes with a [RasterCollectionsRastersListResponse]. 2736 * Completes with a [RasterCollectionsRastersListResponse].
2746 * 2737 *
2747 * Completes with a [common.ApiRequestError] if the API endpoint returned an 2738 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
2748 * error. 2739 * error.
2749 * 2740 *
2750 * If the used [http.Client] completes with an error when making a REST call, 2741 * If the used [http.Client] completes with an error when making a REST call,
2751 * this method will complete with the same error. 2742 * this method will complete with the same error.
2752 */ 2743 */
2753 async.Future<RasterCollectionsRastersListResponse> list(core.String id, {core. String bbox, core.DateTime createdAfter, core.DateTime createdBefore, core.Strin g creatorEmail, core.int maxResults, core.DateTime modifiedAfter, core.DateTime modifiedBefore, core.String pageToken, core.String role, core.String search, cor e.String tags}) { 2744 async.Future<RasterCollectionsRastersListResponse> list(core.String id, {core. String bbox, core.DateTime createdAfter, core.DateTime createdBefore, core.Strin g creatorEmail, core.int maxResults, core.DateTime modifiedAfter, core.DateTime modifiedBefore, core.String pageToken, core.String role, core.String search, cor e.String tags}) {
2754 var _url = null; 2745 var _url = null;
2755 var _queryParams = new core.Map(); 2746 var _queryParams = new core.Map();
2756 var _uploadMedia = null; 2747 var _uploadMedia = null;
2757 var _uploadOptions = null; 2748 var _uploadOptions = null;
2758 var _downloadOptions = common.DownloadOptions.Metadata; 2749 var _downloadOptions = commons.DownloadOptions.Metadata;
2759 var _body = null; 2750 var _body = null;
2760 2751
2761 if (id == null) { 2752 if (id == null) {
2762 throw new core.ArgumentError("Parameter id is required."); 2753 throw new core.ArgumentError("Parameter id is required.");
2763 } 2754 }
2764 if (bbox != null) { 2755 if (bbox != null) {
2765 _queryParams["bbox"] = [bbox]; 2756 _queryParams["bbox"] = [bbox];
2766 } 2757 }
2767 if (createdAfter != null) { 2758 if (createdAfter != null) {
2768 _queryParams["createdAfter"] = [(createdAfter).toIso8601String()]; 2759 _queryParams["createdAfter"] = [(createdAfter).toIso8601String()];
(...skipping 20 matching lines...) Expand all
2789 _queryParams["role"] = [role]; 2780 _queryParams["role"] = [role];
2790 } 2781 }
2791 if (search != null) { 2782 if (search != null) {
2792 _queryParams["search"] = [search]; 2783 _queryParams["search"] = [search];
2793 } 2784 }
2794 if (tags != null) { 2785 if (tags != null) {
2795 _queryParams["tags"] = [tags]; 2786 _queryParams["tags"] = [tags];
2796 } 2787 }
2797 2788
2798 2789
2799 _url = 'rasterCollections/' + common_internal.Escaper.ecapeVariable('$id') + '/rasters'; 2790 _url = 'rasterCollections/' + commons.Escaper.ecapeVariable('$id') + '/raste rs';
2800 2791
2801 var _response = _requester.request(_url, 2792 var _response = _requester.request(_url,
2802 "GET", 2793 "GET",
2803 body: _body, 2794 body: _body,
2804 queryParams: _queryParams, 2795 queryParams: _queryParams,
2805 uploadOptions: _uploadOptions, 2796 uploadOptions: _uploadOptions,
2806 uploadMedia: _uploadMedia, 2797 uploadMedia: _uploadMedia,
2807 downloadOptions: _downloadOptions); 2798 downloadOptions: _downloadOptions);
2808 return _response.then((data) => new RasterCollectionsRastersListResponse.fro mJson(data)); 2799 return _response.then((data) => new RasterCollectionsRastersListResponse.fro mJson(data));
2809 } 2800 }
2810 2801
2811 } 2802 }
2812 2803
2813 2804
2814 /** Not documented yet. */
2815 class RastersResourceApi { 2805 class RastersResourceApi {
2816 final common_internal.ApiRequester _requester; 2806 final commons.ApiRequester _requester;
2817 2807
2818 RastersFilesResourceApi get files => new RastersFilesResourceApi(_requester); 2808 RastersFilesResourceApi get files => new RastersFilesResourceApi(_requester);
2819 RastersParentsResourceApi get parents => new RastersParentsResourceApi(_reques ter); 2809 RastersParentsResourceApi get parents => new RastersParentsResourceApi(_reques ter);
2820 RastersPermissionsResourceApi get permissions => new RastersPermissionsResourc eApi(_requester); 2810 RastersPermissionsResourceApi get permissions => new RastersPermissionsResourc eApi(_requester);
2821 2811
2822 RastersResourceApi(common_internal.ApiRequester client) : 2812 RastersResourceApi(commons.ApiRequester client) :
2823 _requester = client; 2813 _requester = client;
2824 2814
2825 /** 2815 /**
2826 * Delete a raster. 2816 * Delete a raster.
2827 * 2817 *
2828 * Request parameters: 2818 * Request parameters:
2829 * 2819 *
2830 * [id] - The ID of the raster. Only the raster creator or project owner are 2820 * [id] - The ID of the raster. Only the raster creator or project owner are
2831 * permitted to delete. If the raster is included in a layer or mosaic, the 2821 * permitted to delete. If the raster is included in a layer or mosaic, the
2832 * request will fail. Remove it from all parents prior to deleting. 2822 * request will fail. Remove it from all parents prior to deleting.
2833 * 2823 *
2834 * Completes with a [common.ApiRequestError] if the API endpoint returned an 2824 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
2835 * error. 2825 * error.
2836 * 2826 *
2837 * If the used [http.Client] completes with an error when making a REST call, 2827 * If the used [http.Client] completes with an error when making a REST call,
2838 * this method will complete with the same error. 2828 * this method will complete with the same error.
2839 */ 2829 */
2840 async.Future delete(core.String id) { 2830 async.Future delete(core.String id) {
2841 var _url = null; 2831 var _url = null;
2842 var _queryParams = new core.Map(); 2832 var _queryParams = new core.Map();
2843 var _uploadMedia = null; 2833 var _uploadMedia = null;
2844 var _uploadOptions = null; 2834 var _uploadOptions = null;
2845 var _downloadOptions = common.DownloadOptions.Metadata; 2835 var _downloadOptions = commons.DownloadOptions.Metadata;
2846 var _body = null; 2836 var _body = null;
2847 2837
2848 if (id == null) { 2838 if (id == null) {
2849 throw new core.ArgumentError("Parameter id is required."); 2839 throw new core.ArgumentError("Parameter id is required.");
2850 } 2840 }
2851 2841
2852 _downloadOptions = null; 2842 _downloadOptions = null;
2853 2843
2854 _url = 'rasters/' + common_internal.Escaper.ecapeVariable('$id'); 2844 _url = 'rasters/' + commons.Escaper.ecapeVariable('$id');
2855 2845
2856 var _response = _requester.request(_url, 2846 var _response = _requester.request(_url,
2857 "DELETE", 2847 "DELETE",
2858 body: _body, 2848 body: _body,
2859 queryParams: _queryParams, 2849 queryParams: _queryParams,
2860 uploadOptions: _uploadOptions, 2850 uploadOptions: _uploadOptions,
2861 uploadMedia: _uploadMedia, 2851 uploadMedia: _uploadMedia,
2862 downloadOptions: _downloadOptions); 2852 downloadOptions: _downloadOptions);
2863 return _response.then((data) => null); 2853 return _response.then((data) => null);
2864 } 2854 }
2865 2855
2866 /** 2856 /**
2867 * Return metadata for a single raster. 2857 * Return metadata for a single raster.
2868 * 2858 *
2869 * Request parameters: 2859 * Request parameters:
2870 * 2860 *
2871 * [id] - The ID of the raster. 2861 * [id] - The ID of the raster.
2872 * 2862 *
2873 * Completes with a [Raster]. 2863 * Completes with a [Raster].
2874 * 2864 *
2875 * Completes with a [common.ApiRequestError] if the API endpoint returned an 2865 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
2876 * error. 2866 * error.
2877 * 2867 *
2878 * If the used [http.Client] completes with an error when making a REST call, 2868 * If the used [http.Client] completes with an error when making a REST call,
2879 * this method will complete with the same error. 2869 * this method will complete with the same error.
2880 */ 2870 */
2881 async.Future<Raster> get(core.String id) { 2871 async.Future<Raster> get(core.String id) {
2882 var _url = null; 2872 var _url = null;
2883 var _queryParams = new core.Map(); 2873 var _queryParams = new core.Map();
2884 var _uploadMedia = null; 2874 var _uploadMedia = null;
2885 var _uploadOptions = null; 2875 var _uploadOptions = null;
2886 var _downloadOptions = common.DownloadOptions.Metadata; 2876 var _downloadOptions = commons.DownloadOptions.Metadata;
2887 var _body = null; 2877 var _body = null;
2888 2878
2889 if (id == null) { 2879 if (id == null) {
2890 throw new core.ArgumentError("Parameter id is required."); 2880 throw new core.ArgumentError("Parameter id is required.");
2891 } 2881 }
2892 2882
2893 2883
2894 _url = 'rasters/' + common_internal.Escaper.ecapeVariable('$id'); 2884 _url = 'rasters/' + commons.Escaper.ecapeVariable('$id');
2895 2885
2896 var _response = _requester.request(_url, 2886 var _response = _requester.request(_url,
2897 "GET", 2887 "GET",
2898 body: _body, 2888 body: _body,
2899 queryParams: _queryParams, 2889 queryParams: _queryParams,
2900 uploadOptions: _uploadOptions, 2890 uploadOptions: _uploadOptions,
2901 uploadMedia: _uploadMedia, 2891 uploadMedia: _uploadMedia,
2902 downloadOptions: _downloadOptions); 2892 downloadOptions: _downloadOptions);
2903 return _response.then((data) => new Raster.fromJson(data)); 2893 return _response.then((data) => new Raster.fromJson(data));
2904 } 2894 }
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
2958 * - "writer" : The user can read and write the asset. 2948 * - "writer" : The user can read and write the asset.
2959 * 2949 *
2960 * [search] - An unstructured search string used to filter the set of results 2950 * [search] - An unstructured search string used to filter the set of results
2961 * based on asset metadata. 2951 * based on asset metadata.
2962 * 2952 *
2963 * [tags] - A comma separated list of tags. Returned assets will contain all 2953 * [tags] - A comma separated list of tags. Returned assets will contain all
2964 * the tags from the list. 2954 * the tags from the list.
2965 * 2955 *
2966 * Completes with a [RastersListResponse]. 2956 * Completes with a [RastersListResponse].
2967 * 2957 *
2968 * Completes with a [common.ApiRequestError] if the API endpoint returned an 2958 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
2969 * error. 2959 * error.
2970 * 2960 *
2971 * If the used [http.Client] completes with an error when making a REST call, 2961 * If the used [http.Client] completes with an error when making a REST call,
2972 * this method will complete with the same error. 2962 * this method will complete with the same error.
2973 */ 2963 */
2974 async.Future<RastersListResponse> list(core.String projectId, {core.String bbo x, core.DateTime createdAfter, core.DateTime createdBefore, core.String creatorE mail, core.int maxResults, core.DateTime modifiedAfter, core.DateTime modifiedBe fore, core.String pageToken, core.String processingStatus, core.String role, cor e.String search, core.String tags}) { 2964 async.Future<RastersListResponse> list(core.String projectId, {core.String bbo x, core.DateTime createdAfter, core.DateTime createdBefore, core.String creatorE mail, core.int maxResults, core.DateTime modifiedAfter, core.DateTime modifiedBe fore, core.String pageToken, core.String processingStatus, core.String role, cor e.String search, core.String tags}) {
2975 var _url = null; 2965 var _url = null;
2976 var _queryParams = new core.Map(); 2966 var _queryParams = new core.Map();
2977 var _uploadMedia = null; 2967 var _uploadMedia = null;
2978 var _uploadOptions = null; 2968 var _uploadOptions = null;
2979 var _downloadOptions = common.DownloadOptions.Metadata; 2969 var _downloadOptions = commons.DownloadOptions.Metadata;
2980 var _body = null; 2970 var _body = null;
2981 2971
2982 if (projectId == null) { 2972 if (projectId == null) {
2983 throw new core.ArgumentError("Parameter projectId is required."); 2973 throw new core.ArgumentError("Parameter projectId is required.");
2984 } 2974 }
2985 _queryParams["projectId"] = [projectId]; 2975 _queryParams["projectId"] = [projectId];
2986 if (bbox != null) { 2976 if (bbox != null) {
2987 _queryParams["bbox"] = [bbox]; 2977 _queryParams["bbox"] = [bbox];
2988 } 2978 }
2989 if (createdAfter != null) { 2979 if (createdAfter != null) {
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
3035 3025
3036 /** 3026 /**
3037 * Mutate a raster asset. 3027 * Mutate a raster asset.
3038 * 3028 *
3039 * [request] - The metadata request object. 3029 * [request] - The metadata request object.
3040 * 3030 *
3041 * Request parameters: 3031 * Request parameters:
3042 * 3032 *
3043 * [id] - The ID of the raster. 3033 * [id] - The ID of the raster.
3044 * 3034 *
3045 * Completes with a [common.ApiRequestError] if the API endpoint returned an 3035 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
3046 * error. 3036 * error.
3047 * 3037 *
3048 * If the used [http.Client] completes with an error when making a REST call, 3038 * If the used [http.Client] completes with an error when making a REST call,
3049 * this method will complete with the same error. 3039 * this method will complete with the same error.
3050 */ 3040 */
3051 async.Future patch(Raster request, core.String id) { 3041 async.Future patch(Raster request, core.String id) {
3052 var _url = null; 3042 var _url = null;
3053 var _queryParams = new core.Map(); 3043 var _queryParams = new core.Map();
3054 var _uploadMedia = null; 3044 var _uploadMedia = null;
3055 var _uploadOptions = null; 3045 var _uploadOptions = null;
3056 var _downloadOptions = common.DownloadOptions.Metadata; 3046 var _downloadOptions = commons.DownloadOptions.Metadata;
3057 var _body = null; 3047 var _body = null;
3058 3048
3059 if (request != null) { 3049 if (request != null) {
3060 _body = convert.JSON.encode((request).toJson()); 3050 _body = convert.JSON.encode((request).toJson());
3061 } 3051 }
3062 if (id == null) { 3052 if (id == null) {
3063 throw new core.ArgumentError("Parameter id is required."); 3053 throw new core.ArgumentError("Parameter id is required.");
3064 } 3054 }
3065 3055
3066 _downloadOptions = null; 3056 _downloadOptions = null;
3067 3057
3068 _url = 'rasters/' + common_internal.Escaper.ecapeVariable('$id'); 3058 _url = 'rasters/' + commons.Escaper.ecapeVariable('$id');
3069 3059
3070 var _response = _requester.request(_url, 3060 var _response = _requester.request(_url,
3071 "PATCH", 3061 "PATCH",
3072 body: _body, 3062 body: _body,
3073 queryParams: _queryParams, 3063 queryParams: _queryParams,
3074 uploadOptions: _uploadOptions, 3064 uploadOptions: _uploadOptions,
3075 uploadMedia: _uploadMedia, 3065 uploadMedia: _uploadMedia,
3076 downloadOptions: _downloadOptions); 3066 downloadOptions: _downloadOptions);
3077 return _response.then((data) => null); 3067 return _response.then((data) => null);
3078 } 3068 }
3079 3069
3080 /** 3070 /**
3081 * Process a raster asset. 3071 * Process a raster asset.
3082 * 3072 *
3083 * Request parameters: 3073 * Request parameters:
3084 * 3074 *
3085 * [id] - The ID of the raster. 3075 * [id] - The ID of the raster.
3086 * 3076 *
3087 * Completes with a [ProcessResponse]. 3077 * Completes with a [ProcessResponse].
3088 * 3078 *
3089 * Completes with a [common.ApiRequestError] if the API endpoint returned an 3079 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
3090 * error. 3080 * error.
3091 * 3081 *
3092 * If the used [http.Client] completes with an error when making a REST call, 3082 * If the used [http.Client] completes with an error when making a REST call,
3093 * this method will complete with the same error. 3083 * this method will complete with the same error.
3094 */ 3084 */
3095 async.Future<ProcessResponse> process(core.String id) { 3085 async.Future<ProcessResponse> process(core.String id) {
3096 var _url = null; 3086 var _url = null;
3097 var _queryParams = new core.Map(); 3087 var _queryParams = new core.Map();
3098 var _uploadMedia = null; 3088 var _uploadMedia = null;
3099 var _uploadOptions = null; 3089 var _uploadOptions = null;
3100 var _downloadOptions = common.DownloadOptions.Metadata; 3090 var _downloadOptions = commons.DownloadOptions.Metadata;
3101 var _body = null; 3091 var _body = null;
3102 3092
3103 if (id == null) { 3093 if (id == null) {
3104 throw new core.ArgumentError("Parameter id is required."); 3094 throw new core.ArgumentError("Parameter id is required.");
3105 } 3095 }
3106 3096
3107 3097
3108 _url = 'rasters/' + common_internal.Escaper.ecapeVariable('$id') + '/process '; 3098 _url = 'rasters/' + commons.Escaper.ecapeVariable('$id') + '/process';
3109 3099
3110 var _response = _requester.request(_url, 3100 var _response = _requester.request(_url,
3111 "POST", 3101 "POST",
3112 body: _body, 3102 body: _body,
3113 queryParams: _queryParams, 3103 queryParams: _queryParams,
3114 uploadOptions: _uploadOptions, 3104 uploadOptions: _uploadOptions,
3115 uploadMedia: _uploadMedia, 3105 uploadMedia: _uploadMedia,
3116 downloadOptions: _downloadOptions); 3106 downloadOptions: _downloadOptions);
3117 return _response.then((data) => new ProcessResponse.fromJson(data)); 3107 return _response.then((data) => new ProcessResponse.fromJson(data));
3118 } 3108 }
3119 3109
3120 /** 3110 /**
3121 * Create a skeleton raster asset for upload. 3111 * Create a skeleton raster asset for upload.
3122 * 3112 *
3123 * [request] - The metadata request object. 3113 * [request] - The metadata request object.
3124 * 3114 *
3125 * Request parameters: 3115 * Request parameters:
3126 * 3116 *
3127 * Completes with a [Raster]. 3117 * Completes with a [Raster].
3128 * 3118 *
3129 * Completes with a [common.ApiRequestError] if the API endpoint returned an 3119 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
3130 * error. 3120 * error.
3131 * 3121 *
3132 * If the used [http.Client] completes with an error when making a REST call, 3122 * If the used [http.Client] completes with an error when making a REST call,
3133 * this method will complete with the same error. 3123 * this method will complete with the same error.
3134 */ 3124 */
3135 async.Future<Raster> upload(Raster request) { 3125 async.Future<Raster> upload(Raster request) {
3136 var _url = null; 3126 var _url = null;
3137 var _queryParams = new core.Map(); 3127 var _queryParams = new core.Map();
3138 var _uploadMedia = null; 3128 var _uploadMedia = null;
3139 var _uploadOptions = null; 3129 var _uploadOptions = null;
3140 var _downloadOptions = common.DownloadOptions.Metadata; 3130 var _downloadOptions = commons.DownloadOptions.Metadata;
3141 var _body = null; 3131 var _body = null;
3142 3132
3143 if (request != null) { 3133 if (request != null) {
3144 _body = convert.JSON.encode((request).toJson()); 3134 _body = convert.JSON.encode((request).toJson());
3145 } 3135 }
3146 3136
3147 3137
3148 _url = 'rasters/upload'; 3138 _url = 'rasters/upload';
3149 3139
3150 var _response = _requester.request(_url, 3140 var _response = _requester.request(_url,
3151 "POST", 3141 "POST",
3152 body: _body, 3142 body: _body,
3153 queryParams: _queryParams, 3143 queryParams: _queryParams,
3154 uploadOptions: _uploadOptions, 3144 uploadOptions: _uploadOptions,
3155 uploadMedia: _uploadMedia, 3145 uploadMedia: _uploadMedia,
3156 downloadOptions: _downloadOptions); 3146 downloadOptions: _downloadOptions);
3157 return _response.then((data) => new Raster.fromJson(data)); 3147 return _response.then((data) => new Raster.fromJson(data));
3158 } 3148 }
3159 3149
3160 } 3150 }
3161 3151
3162 3152
3163 /** Not documented yet. */
3164 class RastersFilesResourceApi { 3153 class RastersFilesResourceApi {
3165 final common_internal.ApiRequester _requester; 3154 final commons.ApiRequester _requester;
3166 3155
3167 RastersFilesResourceApi(common_internal.ApiRequester client) : 3156 RastersFilesResourceApi(commons.ApiRequester client) :
3168 _requester = client; 3157 _requester = client;
3169 3158
3170 /** 3159 /**
3171 * Upload a file to a raster asset. 3160 * Upload a file to a raster asset.
3172 * 3161 *
3173 * Request parameters: 3162 * Request parameters:
3174 * 3163 *
3175 * [id] - The ID of the raster asset. 3164 * [id] - The ID of the raster asset.
3176 * 3165 *
3177 * [filename] - The file name of this uploaded file. 3166 * [filename] - The file name of this uploaded file.
3178 * 3167 *
3179 * [uploadMedia] - The media to upload. 3168 * [uploadMedia] - The media to upload.
3180 * 3169 *
3181 * [uploadOptions] - Options for the media upload. Streaming Media without the 3170 * [uploadOptions] - Options for the media upload. Streaming Media without the
3182 * length being known ahead of time is only supported via resumable uploads. 3171 * length being known ahead of time is only supported via resumable uploads.
3183 * 3172 *
3184 * Completes with a [common.ApiRequestError] if the API endpoint returned an 3173 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
3185 * error. 3174 * error.
3186 * 3175 *
3187 * If the used [http.Client] completes with an error when making a REST call, 3176 * If the used [http.Client] completes with an error when making a REST call,
3188 * this method will complete with the same error. 3177 * this method will complete with the same error.
3189 */ 3178 */
3190 async.Future insert(core.String id, core.String filename, {common.UploadOption s uploadOptions : common.UploadOptions.Default, common.Media uploadMedia}) { 3179 async.Future insert(core.String id, core.String filename, {commons.UploadOptio ns uploadOptions : commons.UploadOptions.Default, commons.Media uploadMedia}) {
3191 var _url = null; 3180 var _url = null;
3192 var _queryParams = new core.Map(); 3181 var _queryParams = new core.Map();
3193 var _uploadMedia = null; 3182 var _uploadMedia = null;
3194 var _uploadOptions = null; 3183 var _uploadOptions = null;
3195 var _downloadOptions = common.DownloadOptions.Metadata; 3184 var _downloadOptions = commons.DownloadOptions.Metadata;
3196 var _body = null; 3185 var _body = null;
3197 3186
3198 if (id == null) { 3187 if (id == null) {
3199 throw new core.ArgumentError("Parameter id is required."); 3188 throw new core.ArgumentError("Parameter id is required.");
3200 } 3189 }
3201 if (filename == null) { 3190 if (filename == null) {
3202 throw new core.ArgumentError("Parameter filename is required."); 3191 throw new core.ArgumentError("Parameter filename is required.");
3203 } 3192 }
3204 _queryParams["filename"] = [filename]; 3193 _queryParams["filename"] = [filename];
3205 3194
3206 _uploadMedia = uploadMedia; 3195 _uploadMedia = uploadMedia;
3207 _uploadOptions = uploadOptions; 3196 _uploadOptions = uploadOptions;
3208 _downloadOptions = null; 3197 _downloadOptions = null;
3209 3198
3210 if (_uploadMedia == null) { 3199 if (_uploadMedia == null) {
3211 _url = 'rasters/' + common_internal.Escaper.ecapeVariable('$id') + '/files '; 3200 _url = 'rasters/' + commons.Escaper.ecapeVariable('$id') + '/files';
3212 } else if (_uploadOptions is common.ResumableUploadOptions) { 3201 } else if (_uploadOptions is commons.ResumableUploadOptions) {
3213 _url = '/resumable/upload/mapsengine/v1/rasters/' + common_internal.Escape r.ecapeVariable('$id') + '/files'; 3202 _url = '/resumable/upload/mapsengine/v1/rasters/' + commons.Escaper.ecapeV ariable('$id') + '/files';
3214 } else { 3203 } else {
3215 _url = '/upload/mapsengine/v1/rasters/' + common_internal.Escaper.ecapeVar iable('$id') + '/files'; 3204 _url = '/upload/mapsengine/v1/rasters/' + commons.Escaper.ecapeVariable('$ id') + '/files';
3216 } 3205 }
3217 3206
3218 3207
3219 var _response = _requester.request(_url, 3208 var _response = _requester.request(_url,
3220 "POST", 3209 "POST",
3221 body: _body, 3210 body: _body,
3222 queryParams: _queryParams, 3211 queryParams: _queryParams,
3223 uploadOptions: _uploadOptions, 3212 uploadOptions: _uploadOptions,
3224 uploadMedia: _uploadMedia, 3213 uploadMedia: _uploadMedia,
3225 downloadOptions: _downloadOptions); 3214 downloadOptions: _downloadOptions);
3226 return _response.then((data) => null); 3215 return _response.then((data) => null);
3227 } 3216 }
3228 3217
3229 } 3218 }
3230 3219
3231 3220
3232 /** Not documented yet. */
3233 class RastersParentsResourceApi { 3221 class RastersParentsResourceApi {
3234 final common_internal.ApiRequester _requester; 3222 final commons.ApiRequester _requester;
3235 3223
3236 RastersParentsResourceApi(common_internal.ApiRequester client) : 3224 RastersParentsResourceApi(commons.ApiRequester client) :
3237 _requester = client; 3225 _requester = client;
3238 3226
3239 /** 3227 /**
3240 * Return all parent ids of the specified rasters. 3228 * Return all parent ids of the specified rasters.
3241 * 3229 *
3242 * Request parameters: 3230 * Request parameters:
3243 * 3231 *
3244 * [id] - The ID of the rasters whose parents will be listed. 3232 * [id] - The ID of the rasters whose parents will be listed.
3245 * 3233 *
3246 * [maxResults] - The maximum number of items to include in a single response 3234 * [maxResults] - The maximum number of items to include in a single response
3247 * page. The maximum supported value is 50. 3235 * page. The maximum supported value is 50.
3248 * 3236 *
3249 * [pageToken] - The continuation token, used to page through large result 3237 * [pageToken] - The continuation token, used to page through large result
3250 * sets. To get the next page of results, set this parameter to the value of 3238 * sets. To get the next page of results, set this parameter to the value of
3251 * nextPageToken from the previous response. 3239 * nextPageToken from the previous response.
3252 * 3240 *
3253 * Completes with a [ParentsListResponse]. 3241 * Completes with a [ParentsListResponse].
3254 * 3242 *
3255 * Completes with a [common.ApiRequestError] if the API endpoint returned an 3243 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
3256 * error. 3244 * error.
3257 * 3245 *
3258 * If the used [http.Client] completes with an error when making a REST call, 3246 * If the used [http.Client] completes with an error when making a REST call,
3259 * this method will complete with the same error. 3247 * this method will complete with the same error.
3260 */ 3248 */
3261 async.Future<ParentsListResponse> list(core.String id, {core.int maxResults, c ore.String pageToken}) { 3249 async.Future<ParentsListResponse> list(core.String id, {core.int maxResults, c ore.String pageToken}) {
3262 var _url = null; 3250 var _url = null;
3263 var _queryParams = new core.Map(); 3251 var _queryParams = new core.Map();
3264 var _uploadMedia = null; 3252 var _uploadMedia = null;
3265 var _uploadOptions = null; 3253 var _uploadOptions = null;
3266 var _downloadOptions = common.DownloadOptions.Metadata; 3254 var _downloadOptions = commons.DownloadOptions.Metadata;
3267 var _body = null; 3255 var _body = null;
3268 3256
3269 if (id == null) { 3257 if (id == null) {
3270 throw new core.ArgumentError("Parameter id is required."); 3258 throw new core.ArgumentError("Parameter id is required.");
3271 } 3259 }
3272 if (maxResults != null) { 3260 if (maxResults != null) {
3273 _queryParams["maxResults"] = ["${maxResults}"]; 3261 _queryParams["maxResults"] = ["${maxResults}"];
3274 } 3262 }
3275 if (pageToken != null) { 3263 if (pageToken != null) {
3276 _queryParams["pageToken"] = [pageToken]; 3264 _queryParams["pageToken"] = [pageToken];
3277 } 3265 }
3278 3266
3279 3267
3280 _url = 'rasters/' + common_internal.Escaper.ecapeVariable('$id') + '/parents '; 3268 _url = 'rasters/' + commons.Escaper.ecapeVariable('$id') + '/parents';
3281 3269
3282 var _response = _requester.request(_url, 3270 var _response = _requester.request(_url,
3283 "GET", 3271 "GET",
3284 body: _body, 3272 body: _body,
3285 queryParams: _queryParams, 3273 queryParams: _queryParams,
3286 uploadOptions: _uploadOptions, 3274 uploadOptions: _uploadOptions,
3287 uploadMedia: _uploadMedia, 3275 uploadMedia: _uploadMedia,
3288 downloadOptions: _downloadOptions); 3276 downloadOptions: _downloadOptions);
3289 return _response.then((data) => new ParentsListResponse.fromJson(data)); 3277 return _response.then((data) => new ParentsListResponse.fromJson(data));
3290 } 3278 }
3291 3279
3292 } 3280 }
3293 3281
3294 3282
3295 /** Not documented yet. */
3296 class RastersPermissionsResourceApi { 3283 class RastersPermissionsResourceApi {
3297 final common_internal.ApiRequester _requester; 3284 final commons.ApiRequester _requester;
3298 3285
3299 RastersPermissionsResourceApi(common_internal.ApiRequester client) : 3286 RastersPermissionsResourceApi(commons.ApiRequester client) :
3300 _requester = client; 3287 _requester = client;
3301 3288
3302 /** 3289 /**
3303 * Remove permission entries from an already existing asset. 3290 * Remove permission entries from an already existing asset.
3304 * 3291 *
3305 * [request] - The metadata request object. 3292 * [request] - The metadata request object.
3306 * 3293 *
3307 * Request parameters: 3294 * Request parameters:
3308 * 3295 *
3309 * [id] - The ID of the asset from which permissions will be removed. 3296 * [id] - The ID of the asset from which permissions will be removed.
3310 * 3297 *
3311 * Completes with a [PermissionsBatchDeleteResponse]. 3298 * Completes with a [PermissionsBatchDeleteResponse].
3312 * 3299 *
3313 * Completes with a [common.ApiRequestError] if the API endpoint returned an 3300 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
3314 * error. 3301 * error.
3315 * 3302 *
3316 * If the used [http.Client] completes with an error when making a REST call, 3303 * If the used [http.Client] completes with an error when making a REST call,
3317 * this method will complete with the same error. 3304 * this method will complete with the same error.
3318 */ 3305 */
3319 async.Future<PermissionsBatchDeleteResponse> batchDelete(PermissionsBatchDelet eRequest request, core.String id) { 3306 async.Future<PermissionsBatchDeleteResponse> batchDelete(PermissionsBatchDelet eRequest request, core.String id) {
3320 var _url = null; 3307 var _url = null;
3321 var _queryParams = new core.Map(); 3308 var _queryParams = new core.Map();
3322 var _uploadMedia = null; 3309 var _uploadMedia = null;
3323 var _uploadOptions = null; 3310 var _uploadOptions = null;
3324 var _downloadOptions = common.DownloadOptions.Metadata; 3311 var _downloadOptions = commons.DownloadOptions.Metadata;
3325 var _body = null; 3312 var _body = null;
3326 3313
3327 if (request != null) { 3314 if (request != null) {
3328 _body = convert.JSON.encode((request).toJson()); 3315 _body = convert.JSON.encode((request).toJson());
3329 } 3316 }
3330 if (id == null) { 3317 if (id == null) {
3331 throw new core.ArgumentError("Parameter id is required."); 3318 throw new core.ArgumentError("Parameter id is required.");
3332 } 3319 }
3333 3320
3334 3321
3335 _url = 'rasters/' + common_internal.Escaper.ecapeVariable('$id') + '/permiss ions/batchDelete'; 3322 _url = 'rasters/' + commons.Escaper.ecapeVariable('$id') + '/permissions/bat chDelete';
3336 3323
3337 var _response = _requester.request(_url, 3324 var _response = _requester.request(_url,
3338 "POST", 3325 "POST",
3339 body: _body, 3326 body: _body,
3340 queryParams: _queryParams, 3327 queryParams: _queryParams,
3341 uploadOptions: _uploadOptions, 3328 uploadOptions: _uploadOptions,
3342 uploadMedia: _uploadMedia, 3329 uploadMedia: _uploadMedia,
3343 downloadOptions: _downloadOptions); 3330 downloadOptions: _downloadOptions);
3344 return _response.then((data) => new PermissionsBatchDeleteResponse.fromJson( data)); 3331 return _response.then((data) => new PermissionsBatchDeleteResponse.fromJson( data));
3345 } 3332 }
3346 3333
3347 /** 3334 /**
3348 * Add or update permission entries to an already existing asset. 3335 * Add or update permission entries to an already existing asset.
3349 * 3336 *
3350 * An asset can hold up to 20 different permission entries. Each batchInsert 3337 * An asset can hold up to 20 different permission entries. Each batchInsert
3351 * request is atomic. 3338 * request is atomic.
3352 * 3339 *
3353 * [request] - The metadata request object. 3340 * [request] - The metadata request object.
3354 * 3341 *
3355 * Request parameters: 3342 * Request parameters:
3356 * 3343 *
3357 * [id] - The ID of the asset to which permissions will be added. 3344 * [id] - The ID of the asset to which permissions will be added.
3358 * 3345 *
3359 * Completes with a [PermissionsBatchUpdateResponse]. 3346 * Completes with a [PermissionsBatchUpdateResponse].
3360 * 3347 *
3361 * Completes with a [common.ApiRequestError] if the API endpoint returned an 3348 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
3362 * error. 3349 * error.
3363 * 3350 *
3364 * If the used [http.Client] completes with an error when making a REST call, 3351 * If the used [http.Client] completes with an error when making a REST call,
3365 * this method will complete with the same error. 3352 * this method will complete with the same error.
3366 */ 3353 */
3367 async.Future<PermissionsBatchUpdateResponse> batchUpdate(PermissionsBatchUpdat eRequest request, core.String id) { 3354 async.Future<PermissionsBatchUpdateResponse> batchUpdate(PermissionsBatchUpdat eRequest request, core.String id) {
3368 var _url = null; 3355 var _url = null;
3369 var _queryParams = new core.Map(); 3356 var _queryParams = new core.Map();
3370 var _uploadMedia = null; 3357 var _uploadMedia = null;
3371 var _uploadOptions = null; 3358 var _uploadOptions = null;
3372 var _downloadOptions = common.DownloadOptions.Metadata; 3359 var _downloadOptions = commons.DownloadOptions.Metadata;
3373 var _body = null; 3360 var _body = null;
3374 3361
3375 if (request != null) { 3362 if (request != null) {
3376 _body = convert.JSON.encode((request).toJson()); 3363 _body = convert.JSON.encode((request).toJson());
3377 } 3364 }
3378 if (id == null) { 3365 if (id == null) {
3379 throw new core.ArgumentError("Parameter id is required."); 3366 throw new core.ArgumentError("Parameter id is required.");
3380 } 3367 }
3381 3368
3382 3369
3383 _url = 'rasters/' + common_internal.Escaper.ecapeVariable('$id') + '/permiss ions/batchUpdate'; 3370 _url = 'rasters/' + commons.Escaper.ecapeVariable('$id') + '/permissions/bat chUpdate';
3384 3371
3385 var _response = _requester.request(_url, 3372 var _response = _requester.request(_url,
3386 "POST", 3373 "POST",
3387 body: _body, 3374 body: _body,
3388 queryParams: _queryParams, 3375 queryParams: _queryParams,
3389 uploadOptions: _uploadOptions, 3376 uploadOptions: _uploadOptions,
3390 uploadMedia: _uploadMedia, 3377 uploadMedia: _uploadMedia,
3391 downloadOptions: _downloadOptions); 3378 downloadOptions: _downloadOptions);
3392 return _response.then((data) => new PermissionsBatchUpdateResponse.fromJson( data)); 3379 return _response.then((data) => new PermissionsBatchUpdateResponse.fromJson( data));
3393 } 3380 }
3394 3381
3395 /** 3382 /**
3396 * Return all of the permissions for the specified asset. 3383 * Return all of the permissions for the specified asset.
3397 * 3384 *
3398 * Request parameters: 3385 * Request parameters:
3399 * 3386 *
3400 * [id] - The ID of the asset whose permissions will be listed. 3387 * [id] - The ID of the asset whose permissions will be listed.
3401 * 3388 *
3402 * Completes with a [PermissionsListResponse]. 3389 * Completes with a [PermissionsListResponse].
3403 * 3390 *
3404 * Completes with a [common.ApiRequestError] if the API endpoint returned an 3391 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
3405 * error. 3392 * error.
3406 * 3393 *
3407 * If the used [http.Client] completes with an error when making a REST call, 3394 * If the used [http.Client] completes with an error when making a REST call,
3408 * this method will complete with the same error. 3395 * this method will complete with the same error.
3409 */ 3396 */
3410 async.Future<PermissionsListResponse> list(core.String id) { 3397 async.Future<PermissionsListResponse> list(core.String id) {
3411 var _url = null; 3398 var _url = null;
3412 var _queryParams = new core.Map(); 3399 var _queryParams = new core.Map();
3413 var _uploadMedia = null; 3400 var _uploadMedia = null;
3414 var _uploadOptions = null; 3401 var _uploadOptions = null;
3415 var _downloadOptions = common.DownloadOptions.Metadata; 3402 var _downloadOptions = commons.DownloadOptions.Metadata;
3416 var _body = null; 3403 var _body = null;
3417 3404
3418 if (id == null) { 3405 if (id == null) {
3419 throw new core.ArgumentError("Parameter id is required."); 3406 throw new core.ArgumentError("Parameter id is required.");
3420 } 3407 }
3421 3408
3422 3409
3423 _url = 'rasters/' + common_internal.Escaper.ecapeVariable('$id') + '/permiss ions'; 3410 _url = 'rasters/' + commons.Escaper.ecapeVariable('$id') + '/permissions';
3424 3411
3425 var _response = _requester.request(_url, 3412 var _response = _requester.request(_url,
3426 "GET", 3413 "GET",
3427 body: _body, 3414 body: _body,
3428 queryParams: _queryParams, 3415 queryParams: _queryParams,
3429 uploadOptions: _uploadOptions, 3416 uploadOptions: _uploadOptions,
3430 uploadMedia: _uploadMedia, 3417 uploadMedia: _uploadMedia,
3431 downloadOptions: _downloadOptions); 3418 downloadOptions: _downloadOptions);
3432 return _response.then((data) => new PermissionsListResponse.fromJson(data)); 3419 return _response.then((data) => new PermissionsListResponse.fromJson(data));
3433 } 3420 }
3434 3421
3435 } 3422 }
3436 3423
3437 3424
3438 /** Not documented yet. */
3439 class TablesResourceApi { 3425 class TablesResourceApi {
3440 final common_internal.ApiRequester _requester; 3426 final commons.ApiRequester _requester;
3441 3427
3442 TablesFeaturesResourceApi get features => new TablesFeaturesResourceApi(_reque ster); 3428 TablesFeaturesResourceApi get features => new TablesFeaturesResourceApi(_reque ster);
3443 TablesFilesResourceApi get files => new TablesFilesResourceApi(_requester); 3429 TablesFilesResourceApi get files => new TablesFilesResourceApi(_requester);
3444 TablesParentsResourceApi get parents => new TablesParentsResourceApi(_requeste r); 3430 TablesParentsResourceApi get parents => new TablesParentsResourceApi(_requeste r);
3445 TablesPermissionsResourceApi get permissions => new TablesPermissionsResourceA pi(_requester); 3431 TablesPermissionsResourceApi get permissions => new TablesPermissionsResourceA pi(_requester);
3446 3432
3447 TablesResourceApi(common_internal.ApiRequester client) : 3433 TablesResourceApi(commons.ApiRequester client) :
3448 _requester = client; 3434 _requester = client;
3449 3435
3450 /** 3436 /**
3451 * Create a table asset. 3437 * Create a table asset.
3452 * 3438 *
3453 * [request] - The metadata request object. 3439 * [request] - The metadata request object.
3454 * 3440 *
3455 * Request parameters: 3441 * Request parameters:
3456 * 3442 *
3457 * Completes with a [Table]. 3443 * Completes with a [Table].
3458 * 3444 *
3459 * Completes with a [common.ApiRequestError] if the API endpoint returned an 3445 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
3460 * error. 3446 * error.
3461 * 3447 *
3462 * If the used [http.Client] completes with an error when making a REST call, 3448 * If the used [http.Client] completes with an error when making a REST call,
3463 * this method will complete with the same error. 3449 * this method will complete with the same error.
3464 */ 3450 */
3465 async.Future<Table> create(Table request) { 3451 async.Future<Table> create(Table request) {
3466 var _url = null; 3452 var _url = null;
3467 var _queryParams = new core.Map(); 3453 var _queryParams = new core.Map();
3468 var _uploadMedia = null; 3454 var _uploadMedia = null;
3469 var _uploadOptions = null; 3455 var _uploadOptions = null;
3470 var _downloadOptions = common.DownloadOptions.Metadata; 3456 var _downloadOptions = commons.DownloadOptions.Metadata;
3471 var _body = null; 3457 var _body = null;
3472 3458
3473 if (request != null) { 3459 if (request != null) {
3474 _body = convert.JSON.encode((request).toJson()); 3460 _body = convert.JSON.encode((request).toJson());
3475 } 3461 }
3476 3462
3477 3463
3478 _url = 'tables'; 3464 _url = 'tables';
3479 3465
3480 var _response = _requester.request(_url, 3466 var _response = _requester.request(_url,
3481 "POST", 3467 "POST",
3482 body: _body, 3468 body: _body,
3483 queryParams: _queryParams, 3469 queryParams: _queryParams,
3484 uploadOptions: _uploadOptions, 3470 uploadOptions: _uploadOptions,
3485 uploadMedia: _uploadMedia, 3471 uploadMedia: _uploadMedia,
3486 downloadOptions: _downloadOptions); 3472 downloadOptions: _downloadOptions);
3487 return _response.then((data) => new Table.fromJson(data)); 3473 return _response.then((data) => new Table.fromJson(data));
3488 } 3474 }
3489 3475
3490 /** 3476 /**
3491 * Delete a table. 3477 * Delete a table.
3492 * 3478 *
3493 * Request parameters: 3479 * Request parameters:
3494 * 3480 *
3495 * [id] - The ID of the table. Only the table creator or project owner are 3481 * [id] - The ID of the table. Only the table creator or project owner are
3496 * permitted to delete. If the table is included in a layer, the request will 3482 * permitted to delete. If the table is included in a layer, the request will
3497 * fail. Remove it from all layers prior to deleting. 3483 * fail. Remove it from all layers prior to deleting.
3498 * 3484 *
3499 * Completes with a [common.ApiRequestError] if the API endpoint returned an 3485 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
3500 * error. 3486 * error.
3501 * 3487 *
3502 * If the used [http.Client] completes with an error when making a REST call, 3488 * If the used [http.Client] completes with an error when making a REST call,
3503 * this method will complete with the same error. 3489 * this method will complete with the same error.
3504 */ 3490 */
3505 async.Future delete(core.String id) { 3491 async.Future delete(core.String id) {
3506 var _url = null; 3492 var _url = null;
3507 var _queryParams = new core.Map(); 3493 var _queryParams = new core.Map();
3508 var _uploadMedia = null; 3494 var _uploadMedia = null;
3509 var _uploadOptions = null; 3495 var _uploadOptions = null;
3510 var _downloadOptions = common.DownloadOptions.Metadata; 3496 var _downloadOptions = commons.DownloadOptions.Metadata;
3511 var _body = null; 3497 var _body = null;
3512 3498
3513 if (id == null) { 3499 if (id == null) {
3514 throw new core.ArgumentError("Parameter id is required."); 3500 throw new core.ArgumentError("Parameter id is required.");
3515 } 3501 }
3516 3502
3517 _downloadOptions = null; 3503 _downloadOptions = null;
3518 3504
3519 _url = 'tables/' + common_internal.Escaper.ecapeVariable('$id'); 3505 _url = 'tables/' + commons.Escaper.ecapeVariable('$id');
3520 3506
3521 var _response = _requester.request(_url, 3507 var _response = _requester.request(_url,
3522 "DELETE", 3508 "DELETE",
3523 body: _body, 3509 body: _body,
3524 queryParams: _queryParams, 3510 queryParams: _queryParams,
3525 uploadOptions: _uploadOptions, 3511 uploadOptions: _uploadOptions,
3526 uploadMedia: _uploadMedia, 3512 uploadMedia: _uploadMedia,
3527 downloadOptions: _downloadOptions); 3513 downloadOptions: _downloadOptions);
3528 return _response.then((data) => null); 3514 return _response.then((data) => null);
3529 } 3515 }
3530 3516
3531 /** 3517 /**
3532 * Return metadata for a particular table, including the schema. 3518 * Return metadata for a particular table, including the schema.
3533 * 3519 *
3534 * Request parameters: 3520 * Request parameters:
3535 * 3521 *
3536 * [id] - The ID of the table. 3522 * [id] - The ID of the table.
3537 * 3523 *
3538 * [version] - null 3524 * [version] - null
3539 * Possible string values are: 3525 * Possible string values are:
3540 * - "draft" : The draft version. 3526 * - "draft" : The draft version.
3541 * - "published" : The published version. 3527 * - "published" : The published version.
3542 * 3528 *
3543 * Completes with a [Table]. 3529 * Completes with a [Table].
3544 * 3530 *
3545 * Completes with a [common.ApiRequestError] if the API endpoint returned an 3531 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
3546 * error. 3532 * error.
3547 * 3533 *
3548 * If the used [http.Client] completes with an error when making a REST call, 3534 * If the used [http.Client] completes with an error when making a REST call,
3549 * this method will complete with the same error. 3535 * this method will complete with the same error.
3550 */ 3536 */
3551 async.Future<Table> get(core.String id, {core.String version}) { 3537 async.Future<Table> get(core.String id, {core.String version}) {
3552 var _url = null; 3538 var _url = null;
3553 var _queryParams = new core.Map(); 3539 var _queryParams = new core.Map();
3554 var _uploadMedia = null; 3540 var _uploadMedia = null;
3555 var _uploadOptions = null; 3541 var _uploadOptions = null;
3556 var _downloadOptions = common.DownloadOptions.Metadata; 3542 var _downloadOptions = commons.DownloadOptions.Metadata;
3557 var _body = null; 3543 var _body = null;
3558 3544
3559 if (id == null) { 3545 if (id == null) {
3560 throw new core.ArgumentError("Parameter id is required."); 3546 throw new core.ArgumentError("Parameter id is required.");
3561 } 3547 }
3562 if (version != null) { 3548 if (version != null) {
3563 _queryParams["version"] = [version]; 3549 _queryParams["version"] = [version];
3564 } 3550 }
3565 3551
3566 3552
3567 _url = 'tables/' + common_internal.Escaper.ecapeVariable('$id'); 3553 _url = 'tables/' + commons.Escaper.ecapeVariable('$id');
3568 3554
3569 var _response = _requester.request(_url, 3555 var _response = _requester.request(_url,
3570 "GET", 3556 "GET",
3571 body: _body, 3557 body: _body,
3572 queryParams: _queryParams, 3558 queryParams: _queryParams,
3573 uploadOptions: _uploadOptions, 3559 uploadOptions: _uploadOptions,
3574 uploadMedia: _uploadMedia, 3560 uploadMedia: _uploadMedia,
3575 downloadOptions: _downloadOptions); 3561 downloadOptions: _downloadOptions);
3576 return _response.then((data) => new Table.fromJson(data)); 3562 return _response.then((data) => new Table.fromJson(data));
3577 } 3563 }
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
3631 * - "writer" : The user can read and write the asset. 3617 * - "writer" : The user can read and write the asset.
3632 * 3618 *
3633 * [search] - An unstructured search string used to filter the set of results 3619 * [search] - An unstructured search string used to filter the set of results
3634 * based on asset metadata. 3620 * based on asset metadata.
3635 * 3621 *
3636 * [tags] - A comma separated list of tags. Returned assets will contain all 3622 * [tags] - A comma separated list of tags. Returned assets will contain all
3637 * the tags from the list. 3623 * the tags from the list.
3638 * 3624 *
3639 * Completes with a [TablesListResponse]. 3625 * Completes with a [TablesListResponse].
3640 * 3626 *
3641 * Completes with a [common.ApiRequestError] if the API endpoint returned an 3627 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
3642 * error. 3628 * error.
3643 * 3629 *
3644 * If the used [http.Client] completes with an error when making a REST call, 3630 * If the used [http.Client] completes with an error when making a REST call,
3645 * this method will complete with the same error. 3631 * this method will complete with the same error.
3646 */ 3632 */
3647 async.Future<TablesListResponse> list({core.String bbox, core.DateTime created After, core.DateTime createdBefore, core.String creatorEmail, core.int maxResult s, core.DateTime modifiedAfter, core.DateTime modifiedBefore, core.String pageTo ken, core.String processingStatus, core.String projectId, core.String role, core .String search, core.String tags}) { 3633 async.Future<TablesListResponse> list({core.String bbox, core.DateTime created After, core.DateTime createdBefore, core.String creatorEmail, core.int maxResult s, core.DateTime modifiedAfter, core.DateTime modifiedBefore, core.String pageTo ken, core.String processingStatus, core.String projectId, core.String role, core .String search, core.String tags}) {
3648 var _url = null; 3634 var _url = null;
3649 var _queryParams = new core.Map(); 3635 var _queryParams = new core.Map();
3650 var _uploadMedia = null; 3636 var _uploadMedia = null;
3651 var _uploadOptions = null; 3637 var _uploadOptions = null;
3652 var _downloadOptions = common.DownloadOptions.Metadata; 3638 var _downloadOptions = commons.DownloadOptions.Metadata;
3653 var _body = null; 3639 var _body = null;
3654 3640
3655 if (bbox != null) { 3641 if (bbox != null) {
3656 _queryParams["bbox"] = [bbox]; 3642 _queryParams["bbox"] = [bbox];
3657 } 3643 }
3658 if (createdAfter != null) { 3644 if (createdAfter != null) {
3659 _queryParams["createdAfter"] = [(createdAfter).toIso8601String()]; 3645 _queryParams["createdAfter"] = [(createdAfter).toIso8601String()];
3660 } 3646 }
3661 if (createdBefore != null) { 3647 if (createdBefore != null) {
3662 _queryParams["createdBefore"] = [(createdBefore).toIso8601String()]; 3648 _queryParams["createdBefore"] = [(createdBefore).toIso8601String()];
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
3707 3693
3708 /** 3694 /**
3709 * Mutate a table asset. 3695 * Mutate a table asset.
3710 * 3696 *
3711 * [request] - The metadata request object. 3697 * [request] - The metadata request object.
3712 * 3698 *
3713 * Request parameters: 3699 * Request parameters:
3714 * 3700 *
3715 * [id] - The ID of the table. 3701 * [id] - The ID of the table.
3716 * 3702 *
3717 * Completes with a [common.ApiRequestError] if the API endpoint returned an 3703 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
3718 * error. 3704 * error.
3719 * 3705 *
3720 * If the used [http.Client] completes with an error when making a REST call, 3706 * If the used [http.Client] completes with an error when making a REST call,
3721 * this method will complete with the same error. 3707 * this method will complete with the same error.
3722 */ 3708 */
3723 async.Future patch(Table request, core.String id) { 3709 async.Future patch(Table request, core.String id) {
3724 var _url = null; 3710 var _url = null;
3725 var _queryParams = new core.Map(); 3711 var _queryParams = new core.Map();
3726 var _uploadMedia = null; 3712 var _uploadMedia = null;
3727 var _uploadOptions = null; 3713 var _uploadOptions = null;
3728 var _downloadOptions = common.DownloadOptions.Metadata; 3714 var _downloadOptions = commons.DownloadOptions.Metadata;
3729 var _body = null; 3715 var _body = null;
3730 3716
3731 if (request != null) { 3717 if (request != null) {
3732 _body = convert.JSON.encode((request).toJson()); 3718 _body = convert.JSON.encode((request).toJson());
3733 } 3719 }
3734 if (id == null) { 3720 if (id == null) {
3735 throw new core.ArgumentError("Parameter id is required."); 3721 throw new core.ArgumentError("Parameter id is required.");
3736 } 3722 }
3737 3723
3738 _downloadOptions = null; 3724 _downloadOptions = null;
3739 3725
3740 _url = 'tables/' + common_internal.Escaper.ecapeVariable('$id'); 3726 _url = 'tables/' + commons.Escaper.ecapeVariable('$id');
3741 3727
3742 var _response = _requester.request(_url, 3728 var _response = _requester.request(_url,
3743 "PATCH", 3729 "PATCH",
3744 body: _body, 3730 body: _body,
3745 queryParams: _queryParams, 3731 queryParams: _queryParams,
3746 uploadOptions: _uploadOptions, 3732 uploadOptions: _uploadOptions,
3747 uploadMedia: _uploadMedia, 3733 uploadMedia: _uploadMedia,
3748 downloadOptions: _downloadOptions); 3734 downloadOptions: _downloadOptions);
3749 return _response.then((data) => null); 3735 return _response.then((data) => null);
3750 } 3736 }
3751 3737
3752 /** 3738 /**
3753 * Process a table asset. 3739 * Process a table asset.
3754 * 3740 *
3755 * Request parameters: 3741 * Request parameters:
3756 * 3742 *
3757 * [id] - The ID of the table. 3743 * [id] - The ID of the table.
3758 * 3744 *
3759 * Completes with a [ProcessResponse]. 3745 * Completes with a [ProcessResponse].
3760 * 3746 *
3761 * Completes with a [common.ApiRequestError] if the API endpoint returned an 3747 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
3762 * error. 3748 * error.
3763 * 3749 *
3764 * If the used [http.Client] completes with an error when making a REST call, 3750 * If the used [http.Client] completes with an error when making a REST call,
3765 * this method will complete with the same error. 3751 * this method will complete with the same error.
3766 */ 3752 */
3767 async.Future<ProcessResponse> process(core.String id) { 3753 async.Future<ProcessResponse> process(core.String id) {
3768 var _url = null; 3754 var _url = null;
3769 var _queryParams = new core.Map(); 3755 var _queryParams = new core.Map();
3770 var _uploadMedia = null; 3756 var _uploadMedia = null;
3771 var _uploadOptions = null; 3757 var _uploadOptions = null;
3772 var _downloadOptions = common.DownloadOptions.Metadata; 3758 var _downloadOptions = commons.DownloadOptions.Metadata;
3773 var _body = null; 3759 var _body = null;
3774 3760
3775 if (id == null) { 3761 if (id == null) {
3776 throw new core.ArgumentError("Parameter id is required."); 3762 throw new core.ArgumentError("Parameter id is required.");
3777 } 3763 }
3778 3764
3779 3765
3780 _url = 'tables/' + common_internal.Escaper.ecapeVariable('$id') + '/process' ; 3766 _url = 'tables/' + commons.Escaper.ecapeVariable('$id') + '/process';
3781 3767
3782 var _response = _requester.request(_url, 3768 var _response = _requester.request(_url,
3783 "POST", 3769 "POST",
3784 body: _body, 3770 body: _body,
3785 queryParams: _queryParams, 3771 queryParams: _queryParams,
3786 uploadOptions: _uploadOptions, 3772 uploadOptions: _uploadOptions,
3787 uploadMedia: _uploadMedia, 3773 uploadMedia: _uploadMedia,
3788 downloadOptions: _downloadOptions); 3774 downloadOptions: _downloadOptions);
3789 return _response.then((data) => new ProcessResponse.fromJson(data)); 3775 return _response.then((data) => new ProcessResponse.fromJson(data));
3790 } 3776 }
3791 3777
3792 /** 3778 /**
3793 * Create a placeholder table asset to which table files can be uploaded. 3779 * Create a placeholder table asset to which table files can be uploaded.
3794 * Once the placeholder has been created, files are uploaded to the 3780 * Once the placeholder has been created, files are uploaded to the
3795 * https://www.googleapis.com/upload/mapsengine/v1/tables/table_id/files 3781 * https://www.googleapis.com/upload/mapsengine/v1/tables/table_id/files
3796 * endpoint. 3782 * endpoint.
3797 * See Table Upload in the Developer's Guide or Table.files: insert in the 3783 * See Table Upload in the Developer's Guide or Table.files: insert in the
3798 * reference documentation for more information. 3784 * reference documentation for more information.
3799 * 3785 *
3800 * [request] - The metadata request object. 3786 * [request] - The metadata request object.
3801 * 3787 *
3802 * Request parameters: 3788 * Request parameters:
3803 * 3789 *
3804 * Completes with a [Table]. 3790 * Completes with a [Table].
3805 * 3791 *
3806 * Completes with a [common.ApiRequestError] if the API endpoint returned an 3792 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
3807 * error. 3793 * error.
3808 * 3794 *
3809 * If the used [http.Client] completes with an error when making a REST call, 3795 * If the used [http.Client] completes with an error when making a REST call,
3810 * this method will complete with the same error. 3796 * this method will complete with the same error.
3811 */ 3797 */
3812 async.Future<Table> upload(Table request) { 3798 async.Future<Table> upload(Table request) {
3813 var _url = null; 3799 var _url = null;
3814 var _queryParams = new core.Map(); 3800 var _queryParams = new core.Map();
3815 var _uploadMedia = null; 3801 var _uploadMedia = null;
3816 var _uploadOptions = null; 3802 var _uploadOptions = null;
3817 var _downloadOptions = common.DownloadOptions.Metadata; 3803 var _downloadOptions = commons.DownloadOptions.Metadata;
3818 var _body = null; 3804 var _body = null;
3819 3805
3820 if (request != null) { 3806 if (request != null) {
3821 _body = convert.JSON.encode((request).toJson()); 3807 _body = convert.JSON.encode((request).toJson());
3822 } 3808 }
3823 3809
3824 3810
3825 _url = 'tables/upload'; 3811 _url = 'tables/upload';
3826 3812
3827 var _response = _requester.request(_url, 3813 var _response = _requester.request(_url,
3828 "POST", 3814 "POST",
3829 body: _body, 3815 body: _body,
3830 queryParams: _queryParams, 3816 queryParams: _queryParams,
3831 uploadOptions: _uploadOptions, 3817 uploadOptions: _uploadOptions,
3832 uploadMedia: _uploadMedia, 3818 uploadMedia: _uploadMedia,
3833 downloadOptions: _downloadOptions); 3819 downloadOptions: _downloadOptions);
3834 return _response.then((data) => new Table.fromJson(data)); 3820 return _response.then((data) => new Table.fromJson(data));
3835 } 3821 }
3836 3822
3837 } 3823 }
3838 3824
3839 3825
3840 /** Not documented yet. */
3841 class TablesFeaturesResourceApi { 3826 class TablesFeaturesResourceApi {
3842 final common_internal.ApiRequester _requester; 3827 final commons.ApiRequester _requester;
3843 3828
3844 TablesFeaturesResourceApi(common_internal.ApiRequester client) : 3829 TablesFeaturesResourceApi(commons.ApiRequester client) :
3845 _requester = client; 3830 _requester = client;
3846 3831
3847 /** 3832 /**
3848 * Delete all features matching the given IDs. 3833 * Delete all features matching the given IDs.
3849 * 3834 *
3850 * [request] - The metadata request object. 3835 * [request] - The metadata request object.
3851 * 3836 *
3852 * Request parameters: 3837 * Request parameters:
3853 * 3838 *
3854 * [id] - The ID of the table that contains the features to be deleted. 3839 * [id] - The ID of the table that contains the features to be deleted.
3855 * 3840 *
3856 * Completes with a [common.ApiRequestError] if the API endpoint returned an 3841 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
3857 * error. 3842 * error.
3858 * 3843 *
3859 * If the used [http.Client] completes with an error when making a REST call, 3844 * If the used [http.Client] completes with an error when making a REST call,
3860 * this method will complete with the same error. 3845 * this method will complete with the same error.
3861 */ 3846 */
3862 async.Future batchDelete(FeaturesBatchDeleteRequest request, core.String id) { 3847 async.Future batchDelete(FeaturesBatchDeleteRequest request, core.String id) {
3863 var _url = null; 3848 var _url = null;
3864 var _queryParams = new core.Map(); 3849 var _queryParams = new core.Map();
3865 var _uploadMedia = null; 3850 var _uploadMedia = null;
3866 var _uploadOptions = null; 3851 var _uploadOptions = null;
3867 var _downloadOptions = common.DownloadOptions.Metadata; 3852 var _downloadOptions = commons.DownloadOptions.Metadata;
3868 var _body = null; 3853 var _body = null;
3869 3854
3870 if (request != null) { 3855 if (request != null) {
3871 _body = convert.JSON.encode((request).toJson()); 3856 _body = convert.JSON.encode((request).toJson());
3872 } 3857 }
3873 if (id == null) { 3858 if (id == null) {
3874 throw new core.ArgumentError("Parameter id is required."); 3859 throw new core.ArgumentError("Parameter id is required.");
3875 } 3860 }
3876 3861
3877 _downloadOptions = null; 3862 _downloadOptions = null;
3878 3863
3879 _url = 'tables/' + common_internal.Escaper.ecapeVariable('$id') + '/features /batchDelete'; 3864 _url = 'tables/' + commons.Escaper.ecapeVariable('$id') + '/features/batchDe lete';
3880 3865
3881 var _response = _requester.request(_url, 3866 var _response = _requester.request(_url,
3882 "POST", 3867 "POST",
3883 body: _body, 3868 body: _body,
3884 queryParams: _queryParams, 3869 queryParams: _queryParams,
3885 uploadOptions: _uploadOptions, 3870 uploadOptions: _uploadOptions,
3886 uploadMedia: _uploadMedia, 3871 uploadMedia: _uploadMedia,
3887 downloadOptions: _downloadOptions); 3872 downloadOptions: _downloadOptions);
3888 return _response.then((data) => null); 3873 return _response.then((data) => null);
3889 } 3874 }
(...skipping 11 matching lines...) Expand all
3901 * 3886 *
3902 * For more information about inserting features, read Creating features in 3887 * For more information about inserting features, read Creating features in
3903 * the Google Maps Engine developer's guide. 3888 * the Google Maps Engine developer's guide.
3904 * 3889 *
3905 * [request] - The metadata request object. 3890 * [request] - The metadata request object.
3906 * 3891 *
3907 * Request parameters: 3892 * Request parameters:
3908 * 3893 *
3909 * [id] - The ID of the table to append the features to. 3894 * [id] - The ID of the table to append the features to.
3910 * 3895 *
3911 * Completes with a [common.ApiRequestError] if the API endpoint returned an 3896 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
3912 * error. 3897 * error.
3913 * 3898 *
3914 * If the used [http.Client] completes with an error when making a REST call, 3899 * If the used [http.Client] completes with an error when making a REST call,
3915 * this method will complete with the same error. 3900 * this method will complete with the same error.
3916 */ 3901 */
3917 async.Future batchInsert(FeaturesBatchInsertRequest request, core.String id) { 3902 async.Future batchInsert(FeaturesBatchInsertRequest request, core.String id) {
3918 var _url = null; 3903 var _url = null;
3919 var _queryParams = new core.Map(); 3904 var _queryParams = new core.Map();
3920 var _uploadMedia = null; 3905 var _uploadMedia = null;
3921 var _uploadOptions = null; 3906 var _uploadOptions = null;
3922 var _downloadOptions = common.DownloadOptions.Metadata; 3907 var _downloadOptions = commons.DownloadOptions.Metadata;
3923 var _body = null; 3908 var _body = null;
3924 3909
3925 if (request != null) { 3910 if (request != null) {
3926 _body = convert.JSON.encode((request).toJson()); 3911 _body = convert.JSON.encode((request).toJson());
3927 } 3912 }
3928 if (id == null) { 3913 if (id == null) {
3929 throw new core.ArgumentError("Parameter id is required."); 3914 throw new core.ArgumentError("Parameter id is required.");
3930 } 3915 }
3931 3916
3932 _downloadOptions = null; 3917 _downloadOptions = null;
3933 3918
3934 _url = 'tables/' + common_internal.Escaper.ecapeVariable('$id') + '/features /batchInsert'; 3919 _url = 'tables/' + commons.Escaper.ecapeVariable('$id') + '/features/batchIn sert';
3935 3920
3936 var _response = _requester.request(_url, 3921 var _response = _requester.request(_url,
3937 "POST", 3922 "POST",
3938 body: _body, 3923 body: _body,
3939 queryParams: _queryParams, 3924 queryParams: _queryParams,
3940 uploadOptions: _uploadOptions, 3925 uploadOptions: _uploadOptions,
3941 uploadMedia: _uploadMedia, 3926 uploadMedia: _uploadMedia,
3942 downloadOptions: _downloadOptions); 3927 downloadOptions: _downloadOptions);
3943 return _response.then((data) => null); 3928 return _response.then((data) => null);
3944 } 3929 }
(...skipping 19 matching lines...) Expand all
3964 * - Setting a property's value to null deletes that property. 3949 * - Setting a property's value to null deletes that property.
3965 * For more information about updating features, read Updating features in the 3950 * For more information about updating features, read Updating features in the
3966 * Google Maps Engine developer's guide. 3951 * Google Maps Engine developer's guide.
3967 * 3952 *
3968 * [request] - The metadata request object. 3953 * [request] - The metadata request object.
3969 * 3954 *
3970 * Request parameters: 3955 * Request parameters:
3971 * 3956 *
3972 * [id] - The ID of the table containing the features to be patched. 3957 * [id] - The ID of the table containing the features to be patched.
3973 * 3958 *
3974 * Completes with a [common.ApiRequestError] if the API endpoint returned an 3959 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
3975 * error. 3960 * error.
3976 * 3961 *
3977 * If the used [http.Client] completes with an error when making a REST call, 3962 * If the used [http.Client] completes with an error when making a REST call,
3978 * this method will complete with the same error. 3963 * this method will complete with the same error.
3979 */ 3964 */
3980 async.Future batchPatch(FeaturesBatchPatchRequest request, core.String id) { 3965 async.Future batchPatch(FeaturesBatchPatchRequest request, core.String id) {
3981 var _url = null; 3966 var _url = null;
3982 var _queryParams = new core.Map(); 3967 var _queryParams = new core.Map();
3983 var _uploadMedia = null; 3968 var _uploadMedia = null;
3984 var _uploadOptions = null; 3969 var _uploadOptions = null;
3985 var _downloadOptions = common.DownloadOptions.Metadata; 3970 var _downloadOptions = commons.DownloadOptions.Metadata;
3986 var _body = null; 3971 var _body = null;
3987 3972
3988 if (request != null) { 3973 if (request != null) {
3989 _body = convert.JSON.encode((request).toJson()); 3974 _body = convert.JSON.encode((request).toJson());
3990 } 3975 }
3991 if (id == null) { 3976 if (id == null) {
3992 throw new core.ArgumentError("Parameter id is required."); 3977 throw new core.ArgumentError("Parameter id is required.");
3993 } 3978 }
3994 3979
3995 _downloadOptions = null; 3980 _downloadOptions = null;
3996 3981
3997 _url = 'tables/' + common_internal.Escaper.ecapeVariable('$id') + '/features /batchPatch'; 3982 _url = 'tables/' + commons.Escaper.ecapeVariable('$id') + '/features/batchPa tch';
3998 3983
3999 var _response = _requester.request(_url, 3984 var _response = _requester.request(_url,
4000 "POST", 3985 "POST",
4001 body: _body, 3986 body: _body,
4002 queryParams: _queryParams, 3987 queryParams: _queryParams,
4003 uploadOptions: _uploadOptions, 3988 uploadOptions: _uploadOptions,
4004 uploadMedia: _uploadMedia, 3989 uploadMedia: _uploadMedia,
4005 downloadOptions: _downloadOptions); 3990 downloadOptions: _downloadOptions);
4006 return _response.then((data) => null); 3991 return _response.then((data) => null);
4007 } 3992 }
(...skipping 11 matching lines...) Expand all
4019 * properties. If this parameter is not included, all properties are returned. 4004 * properties. If this parameter is not included, all properties are returned.
4020 * 4005 *
4021 * [version] - The table version to access. See Accessing Public Data for 4006 * [version] - The table version to access. See Accessing Public Data for
4022 * information. 4007 * information.
4023 * Possible string values are: 4008 * Possible string values are:
4024 * - "draft" : The draft version. 4009 * - "draft" : The draft version.
4025 * - "published" : The published version. 4010 * - "published" : The published version.
4026 * 4011 *
4027 * Completes with a [Feature]. 4012 * Completes with a [Feature].
4028 * 4013 *
4029 * Completes with a [common.ApiRequestError] if the API endpoint returned an 4014 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
4030 * error. 4015 * error.
4031 * 4016 *
4032 * If the used [http.Client] completes with an error when making a REST call, 4017 * If the used [http.Client] completes with an error when making a REST call,
4033 * this method will complete with the same error. 4018 * this method will complete with the same error.
4034 */ 4019 */
4035 async.Future<Feature> get(core.String tableId, core.String id, {core.String se lect, core.String version}) { 4020 async.Future<Feature> get(core.String tableId, core.String id, {core.String se lect, core.String version}) {
4036 var _url = null; 4021 var _url = null;
4037 var _queryParams = new core.Map(); 4022 var _queryParams = new core.Map();
4038 var _uploadMedia = null; 4023 var _uploadMedia = null;
4039 var _uploadOptions = null; 4024 var _uploadOptions = null;
4040 var _downloadOptions = common.DownloadOptions.Metadata; 4025 var _downloadOptions = commons.DownloadOptions.Metadata;
4041 var _body = null; 4026 var _body = null;
4042 4027
4043 if (tableId == null) { 4028 if (tableId == null) {
4044 throw new core.ArgumentError("Parameter tableId is required."); 4029 throw new core.ArgumentError("Parameter tableId is required.");
4045 } 4030 }
4046 if (id == null) { 4031 if (id == null) {
4047 throw new core.ArgumentError("Parameter id is required."); 4032 throw new core.ArgumentError("Parameter id is required.");
4048 } 4033 }
4049 if (select != null) { 4034 if (select != null) {
4050 _queryParams["select"] = [select]; 4035 _queryParams["select"] = [select];
4051 } 4036 }
4052 if (version != null) { 4037 if (version != null) {
4053 _queryParams["version"] = [version]; 4038 _queryParams["version"] = [version];
4054 } 4039 }
4055 4040
4056 4041
4057 _url = 'tables/' + common_internal.Escaper.ecapeVariable('$tableId') + '/fea tures/' + common_internal.Escaper.ecapeVariable('$id'); 4042 _url = 'tables/' + commons.Escaper.ecapeVariable('$tableId') + '/features/' + commons.Escaper.ecapeVariable('$id');
4058 4043
4059 var _response = _requester.request(_url, 4044 var _response = _requester.request(_url,
4060 "GET", 4045 "GET",
4061 body: _body, 4046 body: _body,
4062 queryParams: _queryParams, 4047 queryParams: _queryParams,
4063 uploadOptions: _uploadOptions, 4048 uploadOptions: _uploadOptions,
4064 uploadMedia: _uploadMedia, 4049 uploadMedia: _uploadMedia,
4065 downloadOptions: _downloadOptions); 4050 downloadOptions: _downloadOptions);
4066 return _response.then((data) => new Feature.fromJson(data)); 4051 return _response.then((data) => new Feature.fromJson(data));
4067 } 4052 }
(...skipping 30 matching lines...) Expand all
4098 * [version] - The table version to access. See Accessing Public Data for 4083 * [version] - The table version to access. See Accessing Public Data for
4099 * information. 4084 * information.
4100 * Possible string values are: 4085 * Possible string values are:
4101 * - "draft" : The draft version. 4086 * - "draft" : The draft version.
4102 * - "published" : The published version. 4087 * - "published" : The published version.
4103 * 4088 *
4104 * [where] - An SQL-like predicate used to filter results. 4089 * [where] - An SQL-like predicate used to filter results.
4105 * 4090 *
4106 * Completes with a [FeaturesListResponse]. 4091 * Completes with a [FeaturesListResponse].
4107 * 4092 *
4108 * Completes with a [common.ApiRequestError] if the API endpoint returned an 4093 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
4109 * error. 4094 * error.
4110 * 4095 *
4111 * If the used [http.Client] completes with an error when making a REST call, 4096 * If the used [http.Client] completes with an error when making a REST call,
4112 * this method will complete with the same error. 4097 * this method will complete with the same error.
4113 */ 4098 */
4114 async.Future<FeaturesListResponse> list(core.String id, {core.String include, core.String intersects, core.int limit, core.int maxResults, core.String orderBy , core.String pageToken, core.String select, core.String version, core.String wh ere}) { 4099 async.Future<FeaturesListResponse> list(core.String id, {core.String include, core.String intersects, core.int limit, core.int maxResults, core.String orderBy , core.String pageToken, core.String select, core.String version, core.String wh ere}) {
4115 var _url = null; 4100 var _url = null;
4116 var _queryParams = new core.Map(); 4101 var _queryParams = new core.Map();
4117 var _uploadMedia = null; 4102 var _uploadMedia = null;
4118 var _uploadOptions = null; 4103 var _uploadOptions = null;
4119 var _downloadOptions = common.DownloadOptions.Metadata; 4104 var _downloadOptions = commons.DownloadOptions.Metadata;
4120 var _body = null; 4105 var _body = null;
4121 4106
4122 if (id == null) { 4107 if (id == null) {
4123 throw new core.ArgumentError("Parameter id is required."); 4108 throw new core.ArgumentError("Parameter id is required.");
4124 } 4109 }
4125 if (include != null) { 4110 if (include != null) {
4126 _queryParams["include"] = [include]; 4111 _queryParams["include"] = [include];
4127 } 4112 }
4128 if (intersects != null) { 4113 if (intersects != null) {
4129 _queryParams["intersects"] = [intersects]; 4114 _queryParams["intersects"] = [intersects];
(...skipping 14 matching lines...) Expand all
4144 _queryParams["select"] = [select]; 4129 _queryParams["select"] = [select];
4145 } 4130 }
4146 if (version != null) { 4131 if (version != null) {
4147 _queryParams["version"] = [version]; 4132 _queryParams["version"] = [version];
4148 } 4133 }
4149 if (where != null) { 4134 if (where != null) {
4150 _queryParams["where"] = [where]; 4135 _queryParams["where"] = [where];
4151 } 4136 }
4152 4137
4153 4138
4154 _url = 'tables/' + common_internal.Escaper.ecapeVariable('$id') + '/features '; 4139 _url = 'tables/' + commons.Escaper.ecapeVariable('$id') + '/features';
4155 4140
4156 var _response = _requester.request(_url, 4141 var _response = _requester.request(_url,
4157 "GET", 4142 "GET",
4158 body: _body, 4143 body: _body,
4159 queryParams: _queryParams, 4144 queryParams: _queryParams,
4160 uploadOptions: _uploadOptions, 4145 uploadOptions: _uploadOptions,
4161 uploadMedia: _uploadMedia, 4146 uploadMedia: _uploadMedia,
4162 downloadOptions: _downloadOptions); 4147 downloadOptions: _downloadOptions);
4163 return _response.then((data) => new FeaturesListResponse.fromJson(data)); 4148 return _response.then((data) => new FeaturesListResponse.fromJson(data));
4164 } 4149 }
4165 4150
4166 } 4151 }
4167 4152
4168 4153
4169 /** Not documented yet. */
4170 class TablesFilesResourceApi { 4154 class TablesFilesResourceApi {
4171 final common_internal.ApiRequester _requester; 4155 final commons.ApiRequester _requester;
4172 4156
4173 TablesFilesResourceApi(common_internal.ApiRequester client) : 4157 TablesFilesResourceApi(commons.ApiRequester client) :
4174 _requester = client; 4158 _requester = client;
4175 4159
4176 /** 4160 /**
4177 * Upload a file to a placeholder table asset. See Table Upload in the 4161 * Upload a file to a placeholder table asset. See Table Upload in the
4178 * Developer's Guide for more information. 4162 * Developer's Guide for more information.
4179 * Supported file types are listed in the Supported data formats and limits 4163 * Supported file types are listed in the Supported data formats and limits
4180 * article of the Google Maps Engine help center. 4164 * article of the Google Maps Engine help center.
4181 * 4165 *
4182 * Request parameters: 4166 * Request parameters:
4183 * 4167 *
4184 * [id] - The ID of the table asset. 4168 * [id] - The ID of the table asset.
4185 * 4169 *
4186 * [filename] - The file name of this uploaded file. 4170 * [filename] - The file name of this uploaded file.
4187 * 4171 *
4188 * [uploadMedia] - The media to upload. 4172 * [uploadMedia] - The media to upload.
4189 * 4173 *
4190 * [uploadOptions] - Options for the media upload. Streaming Media without the 4174 * [uploadOptions] - Options for the media upload. Streaming Media without the
4191 * length being known ahead of time is only supported via resumable uploads. 4175 * length being known ahead of time is only supported via resumable uploads.
4192 * 4176 *
4193 * Completes with a [common.ApiRequestError] if the API endpoint returned an 4177 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
4194 * error. 4178 * error.
4195 * 4179 *
4196 * If the used [http.Client] completes with an error when making a REST call, 4180 * If the used [http.Client] completes with an error when making a REST call,
4197 * this method will complete with the same error. 4181 * this method will complete with the same error.
4198 */ 4182 */
4199 async.Future insert(core.String id, core.String filename, {common.UploadOption s uploadOptions : common.UploadOptions.Default, common.Media uploadMedia}) { 4183 async.Future insert(core.String id, core.String filename, {commons.UploadOptio ns uploadOptions : commons.UploadOptions.Default, commons.Media uploadMedia}) {
4200 var _url = null; 4184 var _url = null;
4201 var _queryParams = new core.Map(); 4185 var _queryParams = new core.Map();
4202 var _uploadMedia = null; 4186 var _uploadMedia = null;
4203 var _uploadOptions = null; 4187 var _uploadOptions = null;
4204 var _downloadOptions = common.DownloadOptions.Metadata; 4188 var _downloadOptions = commons.DownloadOptions.Metadata;
4205 var _body = null; 4189 var _body = null;
4206 4190
4207 if (id == null) { 4191 if (id == null) {
4208 throw new core.ArgumentError("Parameter id is required."); 4192 throw new core.ArgumentError("Parameter id is required.");
4209 } 4193 }
4210 if (filename == null) { 4194 if (filename == null) {
4211 throw new core.ArgumentError("Parameter filename is required."); 4195 throw new core.ArgumentError("Parameter filename is required.");
4212 } 4196 }
4213 _queryParams["filename"] = [filename]; 4197 _queryParams["filename"] = [filename];
4214 4198
4215 _uploadMedia = uploadMedia; 4199 _uploadMedia = uploadMedia;
4216 _uploadOptions = uploadOptions; 4200 _uploadOptions = uploadOptions;
4217 _downloadOptions = null; 4201 _downloadOptions = null;
4218 4202
4219 if (_uploadMedia == null) { 4203 if (_uploadMedia == null) {
4220 _url = 'tables/' + common_internal.Escaper.ecapeVariable('$id') + '/files' ; 4204 _url = 'tables/' + commons.Escaper.ecapeVariable('$id') + '/files';
4221 } else if (_uploadOptions is common.ResumableUploadOptions) { 4205 } else if (_uploadOptions is commons.ResumableUploadOptions) {
4222 _url = '/resumable/upload/mapsengine/v1/tables/' + common_internal.Escaper .ecapeVariable('$id') + '/files'; 4206 _url = '/resumable/upload/mapsengine/v1/tables/' + commons.Escaper.ecapeVa riable('$id') + '/files';
4223 } else { 4207 } else {
4224 _url = '/upload/mapsengine/v1/tables/' + common_internal.Escaper.ecapeVari able('$id') + '/files'; 4208 _url = '/upload/mapsengine/v1/tables/' + commons.Escaper.ecapeVariable('$i d') + '/files';
4225 } 4209 }
4226 4210
4227 4211
4228 var _response = _requester.request(_url, 4212 var _response = _requester.request(_url,
4229 "POST", 4213 "POST",
4230 body: _body, 4214 body: _body,
4231 queryParams: _queryParams, 4215 queryParams: _queryParams,
4232 uploadOptions: _uploadOptions, 4216 uploadOptions: _uploadOptions,
4233 uploadMedia: _uploadMedia, 4217 uploadMedia: _uploadMedia,
4234 downloadOptions: _downloadOptions); 4218 downloadOptions: _downloadOptions);
4235 return _response.then((data) => null); 4219 return _response.then((data) => null);
4236 } 4220 }
4237 4221
4238 } 4222 }
4239 4223
4240 4224
4241 /** Not documented yet. */
4242 class TablesParentsResourceApi { 4225 class TablesParentsResourceApi {
4243 final common_internal.ApiRequester _requester; 4226 final commons.ApiRequester _requester;
4244 4227
4245 TablesParentsResourceApi(common_internal.ApiRequester client) : 4228 TablesParentsResourceApi(commons.ApiRequester client) :
4246 _requester = client; 4229 _requester = client;
4247 4230
4248 /** 4231 /**
4249 * Return all parent ids of the specified table. 4232 * Return all parent ids of the specified table.
4250 * 4233 *
4251 * Request parameters: 4234 * Request parameters:
4252 * 4235 *
4253 * [id] - The ID of the table whose parents will be listed. 4236 * [id] - The ID of the table whose parents will be listed.
4254 * 4237 *
4255 * [maxResults] - The maximum number of items to include in a single response 4238 * [maxResults] - The maximum number of items to include in a single response
4256 * page. The maximum supported value is 50. 4239 * page. The maximum supported value is 50.
4257 * 4240 *
4258 * [pageToken] - The continuation token, used to page through large result 4241 * [pageToken] - The continuation token, used to page through large result
4259 * sets. To get the next page of results, set this parameter to the value of 4242 * sets. To get the next page of results, set this parameter to the value of
4260 * nextPageToken from the previous response. 4243 * nextPageToken from the previous response.
4261 * 4244 *
4262 * Completes with a [ParentsListResponse]. 4245 * Completes with a [ParentsListResponse].
4263 * 4246 *
4264 * Completes with a [common.ApiRequestError] if the API endpoint returned an 4247 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
4265 * error. 4248 * error.
4266 * 4249 *
4267 * If the used [http.Client] completes with an error when making a REST call, 4250 * If the used [http.Client] completes with an error when making a REST call,
4268 * this method will complete with the same error. 4251 * this method will complete with the same error.
4269 */ 4252 */
4270 async.Future<ParentsListResponse> list(core.String id, {core.int maxResults, c ore.String pageToken}) { 4253 async.Future<ParentsListResponse> list(core.String id, {core.int maxResults, c ore.String pageToken}) {
4271 var _url = null; 4254 var _url = null;
4272 var _queryParams = new core.Map(); 4255 var _queryParams = new core.Map();
4273 var _uploadMedia = null; 4256 var _uploadMedia = null;
4274 var _uploadOptions = null; 4257 var _uploadOptions = null;
4275 var _downloadOptions = common.DownloadOptions.Metadata; 4258 var _downloadOptions = commons.DownloadOptions.Metadata;
4276 var _body = null; 4259 var _body = null;
4277 4260
4278 if (id == null) { 4261 if (id == null) {
4279 throw new core.ArgumentError("Parameter id is required."); 4262 throw new core.ArgumentError("Parameter id is required.");
4280 } 4263 }
4281 if (maxResults != null) { 4264 if (maxResults != null) {
4282 _queryParams["maxResults"] = ["${maxResults}"]; 4265 _queryParams["maxResults"] = ["${maxResults}"];
4283 } 4266 }
4284 if (pageToken != null) { 4267 if (pageToken != null) {
4285 _queryParams["pageToken"] = [pageToken]; 4268 _queryParams["pageToken"] = [pageToken];
4286 } 4269 }
4287 4270
4288 4271
4289 _url = 'tables/' + common_internal.Escaper.ecapeVariable('$id') + '/parents' ; 4272 _url = 'tables/' + commons.Escaper.ecapeVariable('$id') + '/parents';
4290 4273
4291 var _response = _requester.request(_url, 4274 var _response = _requester.request(_url,
4292 "GET", 4275 "GET",
4293 body: _body, 4276 body: _body,
4294 queryParams: _queryParams, 4277 queryParams: _queryParams,
4295 uploadOptions: _uploadOptions, 4278 uploadOptions: _uploadOptions,
4296 uploadMedia: _uploadMedia, 4279 uploadMedia: _uploadMedia,
4297 downloadOptions: _downloadOptions); 4280 downloadOptions: _downloadOptions);
4298 return _response.then((data) => new ParentsListResponse.fromJson(data)); 4281 return _response.then((data) => new ParentsListResponse.fromJson(data));
4299 } 4282 }
4300 4283
4301 } 4284 }
4302 4285
4303 4286
4304 /** Not documented yet. */
4305 class TablesPermissionsResourceApi { 4287 class TablesPermissionsResourceApi {
4306 final common_internal.ApiRequester _requester; 4288 final commons.ApiRequester _requester;
4307 4289
4308 TablesPermissionsResourceApi(common_internal.ApiRequester client) : 4290 TablesPermissionsResourceApi(commons.ApiRequester client) :
4309 _requester = client; 4291 _requester = client;
4310 4292
4311 /** 4293 /**
4312 * Remove permission entries from an already existing asset. 4294 * Remove permission entries from an already existing asset.
4313 * 4295 *
4314 * [request] - The metadata request object. 4296 * [request] - The metadata request object.
4315 * 4297 *
4316 * Request parameters: 4298 * Request parameters:
4317 * 4299 *
4318 * [id] - The ID of the asset from which permissions will be removed. 4300 * [id] - The ID of the asset from which permissions will be removed.
4319 * 4301 *
4320 * Completes with a [PermissionsBatchDeleteResponse]. 4302 * Completes with a [PermissionsBatchDeleteResponse].
4321 * 4303 *
4322 * Completes with a [common.ApiRequestError] if the API endpoint returned an 4304 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
4323 * error. 4305 * error.
4324 * 4306 *
4325 * If the used [http.Client] completes with an error when making a REST call, 4307 * If the used [http.Client] completes with an error when making a REST call,
4326 * this method will complete with the same error. 4308 * this method will complete with the same error.
4327 */ 4309 */
4328 async.Future<PermissionsBatchDeleteResponse> batchDelete(PermissionsBatchDelet eRequest request, core.String id) { 4310 async.Future<PermissionsBatchDeleteResponse> batchDelete(PermissionsBatchDelet eRequest request, core.String id) {
4329 var _url = null; 4311 var _url = null;
4330 var _queryParams = new core.Map(); 4312 var _queryParams = new core.Map();
4331 var _uploadMedia = null; 4313 var _uploadMedia = null;
4332 var _uploadOptions = null; 4314 var _uploadOptions = null;
4333 var _downloadOptions = common.DownloadOptions.Metadata; 4315 var _downloadOptions = commons.DownloadOptions.Metadata;
4334 var _body = null; 4316 var _body = null;
4335 4317
4336 if (request != null) { 4318 if (request != null) {
4337 _body = convert.JSON.encode((request).toJson()); 4319 _body = convert.JSON.encode((request).toJson());
4338 } 4320 }
4339 if (id == null) { 4321 if (id == null) {
4340 throw new core.ArgumentError("Parameter id is required."); 4322 throw new core.ArgumentError("Parameter id is required.");
4341 } 4323 }
4342 4324
4343 4325
4344 _url = 'tables/' + common_internal.Escaper.ecapeVariable('$id') + '/permissi ons/batchDelete'; 4326 _url = 'tables/' + commons.Escaper.ecapeVariable('$id') + '/permissions/batc hDelete';
4345 4327
4346 var _response = _requester.request(_url, 4328 var _response = _requester.request(_url,
4347 "POST", 4329 "POST",
4348 body: _body, 4330 body: _body,
4349 queryParams: _queryParams, 4331 queryParams: _queryParams,
4350 uploadOptions: _uploadOptions, 4332 uploadOptions: _uploadOptions,
4351 uploadMedia: _uploadMedia, 4333 uploadMedia: _uploadMedia,
4352 downloadOptions: _downloadOptions); 4334 downloadOptions: _downloadOptions);
4353 return _response.then((data) => new PermissionsBatchDeleteResponse.fromJson( data)); 4335 return _response.then((data) => new PermissionsBatchDeleteResponse.fromJson( data));
4354 } 4336 }
4355 4337
4356 /** 4338 /**
4357 * Add or update permission entries to an already existing asset. 4339 * Add or update permission entries to an already existing asset.
4358 * 4340 *
4359 * An asset can hold up to 20 different permission entries. Each batchInsert 4341 * An asset can hold up to 20 different permission entries. Each batchInsert
4360 * request is atomic. 4342 * request is atomic.
4361 * 4343 *
4362 * [request] - The metadata request object. 4344 * [request] - The metadata request object.
4363 * 4345 *
4364 * Request parameters: 4346 * Request parameters:
4365 * 4347 *
4366 * [id] - The ID of the asset to which permissions will be added. 4348 * [id] - The ID of the asset to which permissions will be added.
4367 * 4349 *
4368 * Completes with a [PermissionsBatchUpdateResponse]. 4350 * Completes with a [PermissionsBatchUpdateResponse].
4369 * 4351 *
4370 * Completes with a [common.ApiRequestError] if the API endpoint returned an 4352 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
4371 * error. 4353 * error.
4372 * 4354 *
4373 * If the used [http.Client] completes with an error when making a REST call, 4355 * If the used [http.Client] completes with an error when making a REST call,
4374 * this method will complete with the same error. 4356 * this method will complete with the same error.
4375 */ 4357 */
4376 async.Future<PermissionsBatchUpdateResponse> batchUpdate(PermissionsBatchUpdat eRequest request, core.String id) { 4358 async.Future<PermissionsBatchUpdateResponse> batchUpdate(PermissionsBatchUpdat eRequest request, core.String id) {
4377 var _url = null; 4359 var _url = null;
4378 var _queryParams = new core.Map(); 4360 var _queryParams = new core.Map();
4379 var _uploadMedia = null; 4361 var _uploadMedia = null;
4380 var _uploadOptions = null; 4362 var _uploadOptions = null;
4381 var _downloadOptions = common.DownloadOptions.Metadata; 4363 var _downloadOptions = commons.DownloadOptions.Metadata;
4382 var _body = null; 4364 var _body = null;
4383 4365
4384 if (request != null) { 4366 if (request != null) {
4385 _body = convert.JSON.encode((request).toJson()); 4367 _body = convert.JSON.encode((request).toJson());
4386 } 4368 }
4387 if (id == null) { 4369 if (id == null) {
4388 throw new core.ArgumentError("Parameter id is required."); 4370 throw new core.ArgumentError("Parameter id is required.");
4389 } 4371 }
4390 4372
4391 4373
4392 _url = 'tables/' + common_internal.Escaper.ecapeVariable('$id') + '/permissi ons/batchUpdate'; 4374 _url = 'tables/' + commons.Escaper.ecapeVariable('$id') + '/permissions/batc hUpdate';
4393 4375
4394 var _response = _requester.request(_url, 4376 var _response = _requester.request(_url,
4395 "POST", 4377 "POST",
4396 body: _body, 4378 body: _body,
4397 queryParams: _queryParams, 4379 queryParams: _queryParams,
4398 uploadOptions: _uploadOptions, 4380 uploadOptions: _uploadOptions,
4399 uploadMedia: _uploadMedia, 4381 uploadMedia: _uploadMedia,
4400 downloadOptions: _downloadOptions); 4382 downloadOptions: _downloadOptions);
4401 return _response.then((data) => new PermissionsBatchUpdateResponse.fromJson( data)); 4383 return _response.then((data) => new PermissionsBatchUpdateResponse.fromJson( data));
4402 } 4384 }
4403 4385
4404 /** 4386 /**
4405 * Return all of the permissions for the specified asset. 4387 * Return all of the permissions for the specified asset.
4406 * 4388 *
4407 * Request parameters: 4389 * Request parameters:
4408 * 4390 *
4409 * [id] - The ID of the asset whose permissions will be listed. 4391 * [id] - The ID of the asset whose permissions will be listed.
4410 * 4392 *
4411 * Completes with a [PermissionsListResponse]. 4393 * Completes with a [PermissionsListResponse].
4412 * 4394 *
4413 * Completes with a [common.ApiRequestError] if the API endpoint returned an 4395 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
4414 * error. 4396 * error.
4415 * 4397 *
4416 * If the used [http.Client] completes with an error when making a REST call, 4398 * If the used [http.Client] completes with an error when making a REST call,
4417 * this method will complete with the same error. 4399 * this method will complete with the same error.
4418 */ 4400 */
4419 async.Future<PermissionsListResponse> list(core.String id) { 4401 async.Future<PermissionsListResponse> list(core.String id) {
4420 var _url = null; 4402 var _url = null;
4421 var _queryParams = new core.Map(); 4403 var _queryParams = new core.Map();
4422 var _uploadMedia = null; 4404 var _uploadMedia = null;
4423 var _uploadOptions = null; 4405 var _uploadOptions = null;
4424 var _downloadOptions = common.DownloadOptions.Metadata; 4406 var _downloadOptions = commons.DownloadOptions.Metadata;
4425 var _body = null; 4407 var _body = null;
4426 4408
4427 if (id == null) { 4409 if (id == null) {
4428 throw new core.ArgumentError("Parameter id is required."); 4410 throw new core.ArgumentError("Parameter id is required.");
4429 } 4411 }
4430 4412
4431 4413
4432 _url = 'tables/' + common_internal.Escaper.ecapeVariable('$id') + '/permissi ons'; 4414 _url = 'tables/' + commons.Escaper.ecapeVariable('$id') + '/permissions';
4433 4415
4434 var _response = _requester.request(_url, 4416 var _response = _requester.request(_url,
4435 "GET", 4417 "GET",
4436 body: _body, 4418 body: _body,
4437 queryParams: _queryParams, 4419 queryParams: _queryParams,
4438 uploadOptions: _uploadOptions, 4420 uploadOptions: _uploadOptions,
4439 uploadMedia: _uploadMedia, 4421 uploadMedia: _uploadMedia,
4440 downloadOptions: _downloadOptions); 4422 downloadOptions: _downloadOptions);
4441 return _response.then((data) => new PermissionsListResponse.fromJson(data)); 4423 return _response.then((data) => new PermissionsListResponse.fromJson(data));
4442 } 4424 }
(...skipping 347 matching lines...) Expand 10 before | Expand all | Expand 10 after
4790 _json["color"] = color; 4772 _json["color"] = color;
4791 } 4773 }
4792 if (opacity != null) { 4774 if (opacity != null) {
4793 _json["opacity"] = opacity; 4775 _json["opacity"] = opacity;
4794 } 4776 }
4795 return _json; 4777 return _json;
4796 } 4778 }
4797 } 4779 }
4798 4780
4799 4781
4800 /** Not documented yet. */
4801 class Datasource { 4782 class Datasource {
4802 /** The ID of a datasource. */ 4783 /** The ID of a datasource. */
4803 core.String id; 4784 core.String id;
4804 4785
4805 4786
4806 Datasource(); 4787 Datasource();
4807 4788
4808 Datasource.fromJson(core.Map _json) { 4789 Datasource.fromJson(core.Map _json) {
4809 if (_json.containsKey("id")) { 4790 if (_json.containsKey("id")) {
4810 id = _json["id"]; 4791 id = _json["id"];
4811 } 4792 }
4812 } 4793 }
4813 4794
4814 core.Map toJson() { 4795 core.Map toJson() {
4815 var _json = new core.Map(); 4796 var _json = new core.Map();
4816 if (id != null) { 4797 if (id != null) {
4817 _json["id"] = id; 4798 _json["id"] = id;
4818 } 4799 }
4819 return _json; 4800 return _json;
4820 } 4801 }
4821 } 4802 }
4822 4803
4823 4804
4824 /** Not documented yet. */
4825 class Datasources 4805 class Datasources
4826 extends collection.ListBase<Datasource> { 4806 extends collection.ListBase<Datasource> {
4827 final core.List<Datasource> _inner; 4807 final core.List<Datasource> _inner;
4828 4808
4829 Datasources() : _inner = []; 4809 Datasources() : _inner = [];
4830 4810
4831 Datasources.fromJson(core.List json) 4811 Datasources.fromJson(core.List json)
4832 : _inner = json.map((value) => new Datasource.fromJson(value)).toList(); 4812 : _inner = json.map((value) => new Datasource.fromJson(value)).toList();
4833 4813
4834 core.List toJson() { 4814 core.List toJson() {
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
4988 if (content != null) { 4968 if (content != null) {
4989 _json["content"] = content; 4969 _json["content"] = content;
4990 } 4970 }
4991 return _json; 4971 return _json;
4992 } 4972 }
4993 } 4973 }
4994 4974
4995 4975
4996 /** The request sent to features.BatchDelete. */ 4976 /** The request sent to features.BatchDelete. */
4997 class FeaturesBatchDeleteRequest { 4977 class FeaturesBatchDeleteRequest {
4998 /** Not documented yet. */
4999 core.List<core.String> gxIds; 4978 core.List<core.String> gxIds;
5000 4979
5001 /** Not documented yet. */
5002 core.List<core.String> primaryKeys; 4980 core.List<core.String> primaryKeys;
5003 4981
5004 4982
5005 FeaturesBatchDeleteRequest(); 4983 FeaturesBatchDeleteRequest();
5006 4984
5007 FeaturesBatchDeleteRequest.fromJson(core.Map _json) { 4985 FeaturesBatchDeleteRequest.fromJson(core.Map _json) {
5008 if (_json.containsKey("gx_ids")) { 4986 if (_json.containsKey("gx_ids")) {
5009 gxIds = _json["gx_ids"]; 4987 gxIds = _json["gx_ids"];
5010 } 4988 }
5011 if (_json.containsKey("primaryKeys")) { 4989 if (_json.containsKey("primaryKeys")) {
5012 primaryKeys = _json["primaryKeys"]; 4990 primaryKeys = _json["primaryKeys"];
5013 } 4991 }
5014 } 4992 }
5015 4993
5016 core.Map toJson() { 4994 core.Map toJson() {
5017 var _json = new core.Map(); 4995 var _json = new core.Map();
5018 if (gxIds != null) { 4996 if (gxIds != null) {
5019 _json["gx_ids"] = gxIds; 4997 _json["gx_ids"] = gxIds;
5020 } 4998 }
5021 if (primaryKeys != null) { 4999 if (primaryKeys != null) {
5022 _json["primaryKeys"] = primaryKeys; 5000 _json["primaryKeys"] = primaryKeys;
5023 } 5001 }
5024 return _json; 5002 return _json;
5025 } 5003 }
5026 } 5004 }
5027 5005
5028 5006
5029 /** The request sent to features.Insert. */ 5007 /** The request sent to features.Insert. */
5030 class FeaturesBatchInsertRequest { 5008 class FeaturesBatchInsertRequest {
5031 /** Not documented yet. */
5032 core.List<Feature> features; 5009 core.List<Feature> features;
5033 5010
5034 /** 5011 /**
5035 * If true, the server will normalize feature geometries. It is assumed that 5012 * If true, the server will normalize feature geometries. It is assumed that
5036 * the South Pole is exterior to any polygons given. See here for a list of 5013 * the South Pole is exterior to any polygons given. See here for a list of
5037 * normalizations. If false, all feature geometries must be given already 5014 * normalizations. If false, all feature geometries must be given already
5038 * normalized. The points in all LinearRings must be listed in 5015 * normalized. The points in all LinearRings must be listed in
5039 * counter-clockwise order, and LinearRings may not intersect. 5016 * counter-clockwise order, and LinearRings may not intersect.
5040 */ 5017 */
5041 core.bool normalizeGeometries; 5018 core.bool normalizeGeometries;
(...skipping 18 matching lines...) Expand all
5060 if (normalizeGeometries != null) { 5037 if (normalizeGeometries != null) {
5061 _json["normalizeGeometries"] = normalizeGeometries; 5038 _json["normalizeGeometries"] = normalizeGeometries;
5062 } 5039 }
5063 return _json; 5040 return _json;
5064 } 5041 }
5065 } 5042 }
5066 5043
5067 5044
5068 /** The request sent to features.BatchPatch. */ 5045 /** The request sent to features.BatchPatch. */
5069 class FeaturesBatchPatchRequest { 5046 class FeaturesBatchPatchRequest {
5070 /** Not documented yet. */
5071 core.List<Feature> features; 5047 core.List<Feature> features;
5072 5048
5073 /** 5049 /**
5074 * If true, the server will normalize feature geometries. It is assumed that 5050 * If true, the server will normalize feature geometries. It is assumed that
5075 * the South Pole is exterior to any polygons given. See here for a list of 5051 * the South Pole is exterior to any polygons given. See here for a list of
5076 * normalizations. If false, all feature geometries must be given already 5052 * normalizations. If false, all feature geometries must be given already
5077 * normalized. The points in all LinearRings must be listed in 5053 * normalized. The points in all LinearRings must be listed in
5078 * counter-clockwise order, and LinearRings may not intersect. 5054 * counter-clockwise order, and LinearRings may not intersect.
5079 */ 5055 */
5080 core.bool normalizeGeometries; 5056 core.bool normalizeGeometries;
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
5114 5090
5115 /** Resources returned. */ 5091 /** Resources returned. */
5116 core.List<Feature> features; 5092 core.List<Feature> features;
5117 5093
5118 /** Next page token. */ 5094 /** Next page token. */
5119 core.String nextPageToken; 5095 core.String nextPageToken;
5120 5096
5121 /** The feature schema. */ 5097 /** The feature schema. */
5122 Schema schema; 5098 Schema schema;
5123 5099
5124 /** Not documented yet. */
5125 core.String type; 5100 core.String type;
5126 5101
5127 5102
5128 FeaturesListResponse(); 5103 FeaturesListResponse();
5129 5104
5130 FeaturesListResponse.fromJson(core.Map _json) { 5105 FeaturesListResponse.fromJson(core.Map _json) {
5131 if (_json.containsKey("allowedQueriesPerSecond")) { 5106 if (_json.containsKey("allowedQueriesPerSecond")) {
5132 allowedQueriesPerSecond = _json["allowedQueriesPerSecond"]; 5107 allowedQueriesPerSecond = _json["allowedQueriesPerSecond"];
5133 } 5108 }
5134 if (_json.containsKey("features")) { 5109 if (_json.containsKey("features")) {
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
5268 _json["operator"] = operator; 5243 _json["operator"] = operator;
5269 } 5244 }
5270 if (value != null) { 5245 if (value != null) {
5271 _json["value"] = value; 5246 _json["value"] = value;
5272 } 5247 }
5273 return _json; 5248 return _json;
5274 } 5249 }
5275 } 5250 }
5276 5251
5277 5252
5278 /** Not documented yet. */
5279 abstract class GeoJsonGeometry { 5253 abstract class GeoJsonGeometry {
5280 GeoJsonGeometry(); 5254 GeoJsonGeometry();
5281 factory GeoJsonGeometry.fromJson(core.Map json) { 5255 factory GeoJsonGeometry.fromJson(core.Map json) {
5282 var discriminant = json["type"]; 5256 var discriminant = json["type"];
5283 if (discriminant == "GeometryCollection") { 5257 if (discriminant == "GeometryCollection") {
5284 return new GeoJsonGeometryCollection.fromJson(json); 5258 return new GeoJsonGeometryCollection.fromJson(json);
5285 } 5259 }
5286 if (discriminant == "LineString") { 5260 if (discriminant == "LineString") {
5287 return new GeoJsonLineString.fromJson(json); 5261 return new GeoJsonLineString.fromJson(json);
5288 } 5262 }
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
5339 _json["geometries"] = geometries.map((value) => (value).toJson()).toList() ; 5313 _json["geometries"] = geometries.map((value) => (value).toJson()).toList() ;
5340 } 5314 }
5341 if (type != null) { 5315 if (type != null) {
5342 _json["type"] = type; 5316 _json["type"] = type;
5343 } 5317 }
5344 return _json; 5318 return _json;
5345 } 5319 }
5346 } 5320 }
5347 5321
5348 5322
5349 /** Not documented yet. */
5350 class GeoJsonLineString extends GeoJsonGeometry { 5323 class GeoJsonLineString extends GeoJsonGeometry {
5351 /** An array of two or more positions, representing a line. */ 5324 /** An array of two or more positions, representing a line. */
5352 core.List<GeoJsonPosition> coordinates; 5325 core.List<GeoJsonPosition> coordinates;
5353 5326
5354 /** 5327 /**
5355 * Identifies this object as a GeoJsonLineString. 5328 * Identifies this object as a GeoJsonLineString.
5356 * Possible string values are: 5329 * Possible string values are:
5357 * - "LineString" 5330 * - "LineString"
5358 */ 5331 */
5359 final core.String type = "LineString"; 5332 final core.String type = "LineString";
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
5407 _json["coordinates"] = coordinates; 5380 _json["coordinates"] = coordinates;
5408 } 5381 }
5409 if (type != null) { 5382 if (type != null) {
5410 _json["type"] = type; 5383 _json["type"] = type;
5411 } 5384 }
5412 return _json; 5385 return _json;
5413 } 5386 }
5414 } 5387 }
5415 5388
5416 5389
5417 /** Not documented yet. */
5418 class GeoJsonMultiPoint extends GeoJsonGeometry { 5390 class GeoJsonMultiPoint extends GeoJsonGeometry {
5419 /** An array of at least two GeoJsonPoint coordinate arrays. */ 5391 /** An array of at least two GeoJsonPoint coordinate arrays. */
5420 core.List<GeoJsonPosition> coordinates; 5392 core.List<GeoJsonPosition> coordinates;
5421 5393
5422 /** 5394 /**
5423 * Identifies this object as a GeoJsonMultiPoint. 5395 * Identifies this object as a GeoJsonMultiPoint.
5424 * Possible string values are: 5396 * Possible string values are:
5425 * - "MultiPoint" 5397 * - "MultiPoint"
5426 */ 5398 */
5427 final core.String type = "MultiPoint"; 5399 final core.String type = "MultiPoint";
(...skipping 13 matching lines...) Expand all
5441 _json["coordinates"] = coordinates; 5413 _json["coordinates"] = coordinates;
5442 } 5414 }
5443 if (type != null) { 5415 if (type != null) {
5444 _json["type"] = type; 5416 _json["type"] = type;
5445 } 5417 }
5446 return _json; 5418 return _json;
5447 } 5419 }
5448 } 5420 }
5449 5421
5450 5422
5451 /** Not documented yet. */
5452 class GeoJsonMultiPolygon extends GeoJsonGeometry { 5423 class GeoJsonMultiPolygon extends GeoJsonGeometry {
5453 /** An array of at least two GeoJsonPolygon coordinate arrays. */ 5424 /** An array of at least two GeoJsonPolygon coordinate arrays. */
5454 core.List<core.List<core.List<GeoJsonPosition>>> coordinates; 5425 core.List<core.List<core.List<GeoJsonPosition>>> coordinates;
5455 5426
5456 /** 5427 /**
5457 * Identifies this object as a GeoJsonMultiPolygon. 5428 * Identifies this object as a GeoJsonMultiPolygon.
5458 * Possible string values are: 5429 * Possible string values are:
5459 * - "MultiPolygon" 5430 * - "MultiPolygon"
5460 */ 5431 */
5461 final core.String type = "MultiPolygon"; 5432 final core.String type = "MultiPolygon";
(...skipping 13 matching lines...) Expand all
5475 _json["coordinates"] = coordinates; 5446 _json["coordinates"] = coordinates;
5476 } 5447 }
5477 if (type != null) { 5448 if (type != null) {
5478 _json["type"] = type; 5449 _json["type"] = type;
5479 } 5450 }
5480 return _json; 5451 return _json;
5481 } 5452 }
5482 } 5453 }
5483 5454
5484 5455
5485 /** Not documented yet. */
5486 class GeoJsonPoint extends GeoJsonGeometry { 5456 class GeoJsonPoint extends GeoJsonGeometry {
5487 /** A single GeoJsonPosition, specifying the location of the point. */ 5457 /** A single GeoJsonPosition, specifying the location of the point. */
5488 GeoJsonPosition coordinates; 5458 GeoJsonPosition coordinates;
5489 5459
5490 /** 5460 /**
5491 * Identifies this object as a GeoJsonPoint. 5461 * Identifies this object as a GeoJsonPoint.
5492 * Possible string values are: 5462 * Possible string values are:
5493 * - "Point" 5463 * - "Point"
5494 */ 5464 */
5495 final core.String type = "Point"; 5465 final core.String type = "Point";
(...skipping 13 matching lines...) Expand all
5509 _json["coordinates"] = coordinates; 5479 _json["coordinates"] = coordinates;
5510 } 5480 }
5511 if (type != null) { 5481 if (type != null) {
5512 _json["type"] = type; 5482 _json["type"] = type;
5513 } 5483 }
5514 return _json; 5484 return _json;
5515 } 5485 }
5516 } 5486 }
5517 5487
5518 5488
5519 /** Not documented yet. */
5520 class GeoJsonPolygon extends GeoJsonGeometry { 5489 class GeoJsonPolygon extends GeoJsonGeometry {
5521 /** 5490 /**
5522 * An array of LinearRings. A LinearRing is a GeoJsonLineString which is 5491 * An array of LinearRings. A LinearRing is a GeoJsonLineString which is
5523 * closed (that is, the first and last GeoJsonPositions are equal), and which 5492 * closed (that is, the first and last GeoJsonPositions are equal), and which
5524 * contains at least four GeoJsonPositions. For polygons with multiple rings, 5493 * contains at least four GeoJsonPositions. For polygons with multiple rings,
5525 * the first LinearRing is the exterior ring, and any subsequent rings are 5494 * the first LinearRing is the exterior ring, and any subsequent rings are
5526 * interior rings (that is, holes). 5495 * interior rings (that is, holes).
5527 */ 5496 */
5528 core.List<core.List<GeoJsonPosition>> coordinates; 5497 core.List<core.List<GeoJsonPosition>> coordinates;
5529 5498
(...skipping 1013 matching lines...) Expand 10 before | Expand all | Expand 10 after
6543 _json["versions"] = versions; 6512 _json["versions"] = versions;
6544 } 6513 }
6545 if (writersCanEditPermissions != null) { 6514 if (writersCanEditPermissions != null) {
6546 _json["writersCanEditPermissions"] = writersCanEditPermissions; 6515 _json["writersCanEditPermissions"] = writersCanEditPermissions;
6547 } 6516 }
6548 return _json; 6517 return _json;
6549 } 6518 }
6550 } 6519 }
6551 6520
6552 6521
6553 /** Not documented yet. */
6554 class MapContents 6522 class MapContents
6555 extends collection.ListBase<MapItem> { 6523 extends collection.ListBase<MapItem> {
6556 final core.List<MapItem> _inner; 6524 final core.List<MapItem> _inner;
6557 6525
6558 MapContents() : _inner = []; 6526 MapContents() : _inner = [];
6559 6527
6560 MapContents.fromJson(core.List json) 6528 MapContents.fromJson(core.List json)
6561 : _inner = json.map((value) => new MapItem.fromJson(value)).toList(); 6529 : _inner = json.map((value) => new MapItem.fromJson(value)).toList();
6562 6530
6563 core.List toJson() { 6531 core.List toJson() {
6564 return _inner.map((value) => (value).toJson()).toList(); 6532 return _inner.map((value) => (value).toJson()).toList();
6565 } 6533 }
6566 6534
6567 MapItem operator [](core.int key) => _inner[key]; 6535 MapItem operator [](core.int key) => _inner[key];
6568 6536
6569 void operator []=(core.int key, MapItem value) { 6537 void operator []=(core.int key, MapItem value) {
6570 _inner[key] = value; 6538 _inner[key] = value;
6571 } 6539 }
6572 6540
6573 core.int get length => _inner.length; 6541 core.int get length => _inner.length;
6574 6542
6575 void set length(core.int newLength) { 6543 void set length(core.int newLength) {
6576 _inner.length = newLength; 6544 _inner.length = newLength;
6577 } 6545 }
6578 } 6546 }
6579 6547
6580 6548
6581 /** Not documented yet. */
6582 class MapFolder extends MapItem { 6549 class MapFolder extends MapItem {
6583 /** Not documented yet. */
6584 core.List<MapItem> contents; 6550 core.List<MapItem> contents;
6585 6551
6586 /** 6552 /**
6587 * An array of four numbers (west, south, east, north) which defines the 6553 * An array of four numbers (west, south, east, north) which defines the
6588 * rectangular bounding box of the default viewport. The numbers represent 6554 * rectangular bounding box of the default viewport. The numbers represent
6589 * latitude and longitude in decimal degrees. 6555 * latitude and longitude in decimal degrees.
6590 */ 6556 */
6591 core.List<core.double> defaultViewport; 6557 core.List<core.double> defaultViewport;
6592 6558
6593 /** 6559 /**
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
6660 _json["type"] = type; 6626 _json["type"] = type;
6661 } 6627 }
6662 if (visibility != null) { 6628 if (visibility != null) {
6663 _json["visibility"] = visibility; 6629 _json["visibility"] = visibility;
6664 } 6630 }
6665 return _json; 6631 return _json;
6666 } 6632 }
6667 } 6633 }
6668 6634
6669 6635
6670 /** Not documented yet. */
6671 abstract class MapItem { 6636 abstract class MapItem {
6672 MapItem(); 6637 MapItem();
6673 factory MapItem.fromJson(core.Map json) { 6638 factory MapItem.fromJson(core.Map json) {
6674 var discriminant = json["type"]; 6639 var discriminant = json["type"];
6675 if (discriminant == "folder") { 6640 if (discriminant == "folder") {
6676 return new MapFolder.fromJson(json); 6641 return new MapFolder.fromJson(json);
6677 } 6642 }
6678 if (discriminant == "kmlLink") { 6643 if (discriminant == "kmlLink") {
6679 return new MapKmlLink.fromJson(json); 6644 return new MapKmlLink.fromJson(json);
6680 } 6645 }
6681 if (discriminant == "layer") { 6646 if (discriminant == "layer") {
6682 return new MapLayer.fromJson(json); 6647 return new MapLayer.fromJson(json);
6683 } 6648 }
6684 throw new core.ArgumentError("Invalid discriminant: $discriminant!"); 6649 throw new core.ArgumentError("Invalid discriminant: $discriminant!");
6685 } 6650 }
6686 6651
6687 core.Map toJson(); 6652 core.Map toJson();
6688 6653
6689 } 6654 }
6690 6655
6691 6656
6692 /** Not documented yet. */
6693 class MapKmlLink extends MapItem { 6657 class MapKmlLink extends MapItem {
6694 /** 6658 /**
6695 * An array of four numbers (west, south, east, north) which defines the 6659 * An array of four numbers (west, south, east, north) which defines the
6696 * rectangular bounding box of the default viewport. The numbers represent 6660 * rectangular bounding box of the default viewport. The numbers represent
6697 * latitude and longitude in decimal degrees. 6661 * latitude and longitude in decimal degrees.
6698 */ 6662 */
6699 core.List<core.double> defaultViewport; 6663 core.List<core.double> defaultViewport;
6700 6664
6701 /** The URL to the KML file represented by this MapKmlLink. */ 6665 /** The URL to the KML file represented by this MapKmlLink. */
6702 core.String kmlUrl; 6666 core.String kmlUrl;
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
6750 _json["type"] = type; 6714 _json["type"] = type;
6751 } 6715 }
6752 if (visibility != null) { 6716 if (visibility != null) {
6753 _json["visibility"] = visibility; 6717 _json["visibility"] = visibility;
6754 } 6718 }
6755 return _json; 6719 return _json;
6756 } 6720 }
6757 } 6721 }
6758 6722
6759 6723
6760 /** Not documented yet. */
6761 class MapLayer extends MapItem { 6724 class MapLayer extends MapItem {
6762 /** 6725 /**
6763 * An array of four numbers (west, south, east, north) which defines the 6726 * An array of four numbers (west, south, east, north) which defines the
6764 * rectangular bounding box of the default viewport. The numbers represent 6727 * rectangular bounding box of the default viewport. The numbers represent
6765 * latitude and longitude in decimal degrees. 6728 * latitude and longitude in decimal degrees.
6766 */ 6729 */
6767 core.List<core.double> defaultViewport; 6730 core.List<core.double> defaultViewport;
6768 6731
6769 /** 6732 /**
6770 * The ID of this MapLayer. This ID can be used to request more details about 6733 * The ID of this MapLayer. This ID can be used to request more details about
(...skipping 314 matching lines...) Expand 10 before | Expand all | Expand 10 after
7085 PermissionsBatchUpdateResponse.fromJson(core.Map _json) { 7048 PermissionsBatchUpdateResponse.fromJson(core.Map _json) {
7086 } 7049 }
7087 7050
7088 core.Map toJson() { 7051 core.Map toJson() {
7089 var _json = new core.Map(); 7052 var _json = new core.Map();
7090 return _json; 7053 return _json;
7091 } 7054 }
7092 } 7055 }
7093 7056
7094 7057
7095 /** Not documented yet. */
7096 class PermissionsListResponse { 7058 class PermissionsListResponse {
7097 /** The set of permissions associated with this asset. */ 7059 /** The set of permissions associated with this asset. */
7098 core.List<Permission> permissions; 7060 core.List<Permission> permissions;
7099 7061
7100 7062
7101 PermissionsListResponse(); 7063 PermissionsListResponse();
7102 7064
7103 PermissionsListResponse.fromJson(core.Map _json) { 7065 PermissionsListResponse.fromJson(core.Map _json) {
7104 if (_json.containsKey("permissions")) { 7066 if (_json.containsKey("permissions")) {
7105 permissions = _json["permissions"].map((value) => new Permission.fromJson( value)).toList(); 7067 permissions = _json["permissions"].map((value) => new Permission.fromJson( value)).toList();
(...skipping 1567 matching lines...) Expand 10 before | Expand all | Expand 10 after
8673 _json["tags"] = tags; 8635 _json["tags"] = tags;
8674 } 8636 }
8675 if (writersCanEditPermissions != null) { 8637 if (writersCanEditPermissions != null) {
8676 _json["writersCanEditPermissions"] = writersCanEditPermissions; 8638 _json["writersCanEditPermissions"] = writersCanEditPermissions;
8677 } 8639 }
8678 return _json; 8640 return _json;
8679 } 8641 }
8680 } 8642 }
8681 8643
8682 8644
8683 /** Not documented yet. */
8684 class TableColumn { 8645 class TableColumn {
8685 /** The column name. */ 8646 /** The column name. */
8686 core.String name; 8647 core.String name;
8687 8648
8688 /** 8649 /**
8689 * The type of data stored in this column. 8650 * The type of data stored in this column.
8690 * Possible string values are: 8651 * Possible string values are:
8691 * - "datetime" 8652 * - "datetime"
8692 * - "double" 8653 * - "double"
8693 * - "integer" 8654 * - "integer"
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
8763 _json["nextPageToken"] = nextPageToken; 8724 _json["nextPageToken"] = nextPageToken;
8764 } 8725 }
8765 if (tables != null) { 8726 if (tables != null) {
8766 _json["tables"] = tables.map((value) => (value).toJson()).toList(); 8727 _json["tables"] = tables.map((value) => (value).toJson()).toList();
8767 } 8728 }
8768 return _json; 8729 return _json;
8769 } 8730 }
8770 } 8731 }
8771 8732
8772 8733
8773 /** Not documented yet. */
8774 class Tags 8734 class Tags
8775 extends collection.ListBase<core.String> { 8735 extends collection.ListBase<core.String> {
8776 final core.List<core.String> _inner; 8736 final core.List<core.String> _inner;
8777 8737
8778 Tags() : _inner = []; 8738 Tags() : _inner = [];
8779 8739
8780 Tags.fromJson(core.List json) 8740 Tags.fromJson(core.List json)
8781 : _inner = json.map((value) => value).toList(); 8741 : _inner = json.map((value) => value).toList();
8782 8742
8783 core.List toJson() { 8743 core.List toJson() {
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
8829 if (min != null) { 8789 if (min != null) {
8830 _json["min"] = min; 8790 _json["min"] = min;
8831 } 8791 }
8832 return _json; 8792 return _json;
8833 } 8793 }
8834 } 8794 }
8835 8795
8836 8796
8837 /** A vector style contains styling information for vector layer. */ 8797 /** A vector style contains styling information for vector layer. */
8838 class VectorStyle { 8798 class VectorStyle {
8839 /** Not documented yet. */
8840 core.List<DisplayRule> displayRules; 8799 core.List<DisplayRule> displayRules;
8841 8800
8842 /** 8801 /**
8843 * Individual feature info, this is called Info Window in Maps Engine UI. If 8802 * Individual feature info, this is called Info Window in Maps Engine UI. If
8844 * not provided, a default template with all attributes will be generated. 8803 * not provided, a default template with all attributes will be generated.
8845 */ 8804 */
8846 FeatureInfo featureInfo; 8805 FeatureInfo featureInfo;
8847 8806
8848 /** 8807 /**
8849 * The type of the vector style. Currently, only displayRule is supported. 8808 * The type of the vector style. Currently, only displayRule is supported.
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
8909 var _json = new core.Map(); 8868 var _json = new core.Map();
8910 if (max != null) { 8869 if (max != null) {
8911 _json["max"] = max; 8870 _json["max"] = max;
8912 } 8871 }
8913 if (min != null) { 8872 if (min != null) {
8914 _json["min"] = min; 8873 _json["min"] = min;
8915 } 8874 }
8916 return _json; 8875 return _json;
8917 } 8876 }
8918 } 8877 }
8919
8920
OLDNEW
« no previous file with comments | « generated/googleapis/lib/licensing/v1.dart ('k') | generated/googleapis/lib/mirror/v1.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698