OLD | NEW |
1 library googleapis.mapsengine.v1; | 1 library googleapis.mapsengine.v1; |
2 | 2 |
3 import "dart:core" as core; | 3 import "dart:core" as core; |
4 import "dart:collection" as collection; | 4 import "dart:collection" as collection; |
5 import "dart:async" as async; | 5 import "dart:async" as async; |
6 import "dart:convert" as convert; | 6 import "dart:convert" as convert; |
7 | 7 |
8 import "package:crypto/crypto.dart" as crypto; | 8 import "package:crypto/crypto.dart" as crypto; |
9 import 'package:http/http.dart' as http; | 9 import 'package:http/http.dart' as http; |
10 import '../src/common_internal.dart' as common_internal; | 10 import '../src/common_internal.dart' as common_internal; |
(...skipping 18 matching lines...) Loading... |
29 | 29 |
30 AssetsResourceApi get assets => new AssetsResourceApi(_requester); | 30 AssetsResourceApi get assets => new AssetsResourceApi(_requester); |
31 LayersResourceApi get layers => new LayersResourceApi(_requester); | 31 LayersResourceApi get layers => new LayersResourceApi(_requester); |
32 MapsResourceApi get maps => new MapsResourceApi(_requester); | 32 MapsResourceApi get maps => new MapsResourceApi(_requester); |
33 ProjectsResourceApi get projects => new ProjectsResourceApi(_requester); | 33 ProjectsResourceApi get projects => new ProjectsResourceApi(_requester); |
34 RasterCollectionsResourceApi get rasterCollections => new RasterCollectionsRes
ourceApi(_requester); | 34 RasterCollectionsResourceApi get rasterCollections => new RasterCollectionsRes
ourceApi(_requester); |
35 RastersResourceApi get rasters => new RastersResourceApi(_requester); | 35 RastersResourceApi get rasters => new RastersResourceApi(_requester); |
36 TablesResourceApi get tables => new TablesResourceApi(_requester); | 36 TablesResourceApi get tables => new TablesResourceApi(_requester); |
37 | 37 |
38 MapsengineApi(http.Client client) : | 38 MapsengineApi(http.Client client) : |
39 _requester = new common_internal.ApiRequester(client, "https://www.googlea
pis.com/", "/mapsengine/v1/"); | 39 _requester = new common_internal.ApiRequester(client, "https://www.googlea
pis.com/", "mapsengine/v1/"); |
40 } | 40 } |
41 | 41 |
42 | 42 |
43 /** Not documented yet. */ | 43 /** Not documented yet. */ |
44 class AssetsResourceApi { | 44 class AssetsResourceApi { |
45 final common_internal.ApiRequester _requester; | 45 final common_internal.ApiRequester _requester; |
46 | 46 |
47 AssetsParentsResourceApi get parents => new AssetsParentsResourceApi(_requeste
r); | 47 AssetsParentsResourceApi get parents => new AssetsParentsResourceApi(_requeste
r); |
| 48 AssetsPermissionsResourceApi get permissions => new AssetsPermissionsResourceA
pi(_requester); |
48 | 49 |
49 AssetsResourceApi(common_internal.ApiRequester client) : | 50 AssetsResourceApi(common_internal.ApiRequester client) : |
50 _requester = client; | 51 _requester = client; |
51 | 52 |
52 /** | 53 /** |
53 * Return metadata for a particular asset. | 54 * Return metadata for a particular asset. |
54 * | 55 * |
55 * Request parameters: | 56 * Request parameters: |
56 * | 57 * |
57 * [id] - The ID of the asset. | 58 * [id] - The ID of the asset. |
(...skipping 216 matching lines...) Loading... |
274 uploadOptions: _uploadOptions, | 275 uploadOptions: _uploadOptions, |
275 uploadMedia: _uploadMedia, | 276 uploadMedia: _uploadMedia, |
276 downloadOptions: _downloadOptions); | 277 downloadOptions: _downloadOptions); |
277 return _response.then((data) => new ParentsListResponse.fromJson(data)); | 278 return _response.then((data) => new ParentsListResponse.fromJson(data)); |
278 } | 279 } |
279 | 280 |
280 } | 281 } |
281 | 282 |
282 | 283 |
283 /** Not documented yet. */ | 284 /** Not documented yet. */ |
| 285 class AssetsPermissionsResourceApi { |
| 286 final common_internal.ApiRequester _requester; |
| 287 |
| 288 AssetsPermissionsResourceApi(common_internal.ApiRequester client) : |
| 289 _requester = client; |
| 290 |
| 291 /** |
| 292 * Return all of the permissions for the specified asset. |
| 293 * |
| 294 * Request parameters: |
| 295 * |
| 296 * [id] - The ID of the asset whose permissions will be listed. |
| 297 * |
| 298 * Completes with a [PermissionsListResponse]. |
| 299 * |
| 300 * Completes with a [common.ApiRequestError] if the API endpoint returned an |
| 301 * error. |
| 302 * |
| 303 * If the used [http.Client] completes with an error when making a REST call, |
| 304 * this method will complete with the same error. |
| 305 */ |
| 306 async.Future<PermissionsListResponse> list(core.String id) { |
| 307 var _url = null; |
| 308 var _queryParams = new core.Map(); |
| 309 var _uploadMedia = null; |
| 310 var _uploadOptions = null; |
| 311 var _downloadOptions = common.DownloadOptions.Metadata; |
| 312 var _body = null; |
| 313 |
| 314 if (id == null) { |
| 315 throw new core.ArgumentError("Parameter id is required."); |
| 316 } |
| 317 |
| 318 |
| 319 _url = 'assets/' + common_internal.Escaper.ecapeVariable('$id') + '/permissi
ons'; |
| 320 |
| 321 var _response = _requester.request(_url, |
| 322 "GET", |
| 323 body: _body, |
| 324 queryParams: _queryParams, |
| 325 uploadOptions: _uploadOptions, |
| 326 uploadMedia: _uploadMedia, |
| 327 downloadOptions: _downloadOptions); |
| 328 return _response.then((data) => new PermissionsListResponse.fromJson(data)); |
| 329 } |
| 330 |
| 331 } |
| 332 |
| 333 |
| 334 /** Not documented yet. */ |
284 class LayersResourceApi { | 335 class LayersResourceApi { |
285 final common_internal.ApiRequester _requester; | 336 final common_internal.ApiRequester _requester; |
286 | 337 |
287 LayersParentsResourceApi get parents => new LayersParentsResourceApi(_requeste
r); | 338 LayersParentsResourceApi get parents => new LayersParentsResourceApi(_requeste
r); |
| 339 LayersPermissionsResourceApi get permissions => new LayersPermissionsResourceA
pi(_requester); |
288 | 340 |
289 LayersResourceApi(common_internal.ApiRequester client) : | 341 LayersResourceApi(common_internal.ApiRequester client) : |
290 _requester = client; | 342 _requester = client; |
291 | 343 |
292 /** | 344 /** |
293 * Cancel processing on a layer asset. | 345 * Cancel processing on a layer asset. |
294 * | 346 * |
295 * Request parameters: | 347 * Request parameters: |
296 * | 348 * |
297 * [id] - The ID of the layer. | 349 * [id] - The ID of the layer. |
(...skipping 118 matching lines...) Loading... |
416 return _response.then((data) => null); | 468 return _response.then((data) => null); |
417 } | 469 } |
418 | 470 |
419 /** | 471 /** |
420 * Return metadata for a particular layer. | 472 * Return metadata for a particular layer. |
421 * | 473 * |
422 * Request parameters: | 474 * Request parameters: |
423 * | 475 * |
424 * [id] - The ID of the layer. | 476 * [id] - The ID of the layer. |
425 * | 477 * |
426 * [version] - null | 478 * [version] - Deprecated: The version parameter indicates which version of |
| 479 * 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 * layers.getPublished endpoint instead. |
427 * Possible string values are: | 482 * Possible string values are: |
428 * - "draft" : The draft version. | 483 * - "draft" : The draft version. |
429 * - "published" : The published version. | 484 * - "published" : The published version. |
430 * | 485 * |
431 * Completes with a [Layer]. | 486 * Completes with a [Layer]. |
432 * | 487 * |
433 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 488 * Completes with a [common.ApiRequestError] if the API endpoint returned an |
434 * error. | 489 * error. |
435 * | 490 * |
436 * If the used [http.Client] completes with an error when making a REST call, | 491 * If the used [http.Client] completes with an error when making a REST call, |
(...skipping 483 matching lines...) Loading... |
920 uploadOptions: _uploadOptions, | 975 uploadOptions: _uploadOptions, |
921 uploadMedia: _uploadMedia, | 976 uploadMedia: _uploadMedia, |
922 downloadOptions: _downloadOptions); | 977 downloadOptions: _downloadOptions); |
923 return _response.then((data) => new ParentsListResponse.fromJson(data)); | 978 return _response.then((data) => new ParentsListResponse.fromJson(data)); |
924 } | 979 } |
925 | 980 |
926 } | 981 } |
927 | 982 |
928 | 983 |
929 /** Not documented yet. */ | 984 /** Not documented yet. */ |
| 985 class LayersPermissionsResourceApi { |
| 986 final common_internal.ApiRequester _requester; |
| 987 |
| 988 LayersPermissionsResourceApi(common_internal.ApiRequester client) : |
| 989 _requester = client; |
| 990 |
| 991 /** |
| 992 * Remove permission entries from an already existing asset. |
| 993 * |
| 994 * [request] - The metadata request object. |
| 995 * |
| 996 * Request parameters: |
| 997 * |
| 998 * [id] - The ID of the asset from which permissions will be removed. |
| 999 * |
| 1000 * Completes with a [PermissionsBatchDeleteResponse]. |
| 1001 * |
| 1002 * Completes with a [common.ApiRequestError] if the API endpoint returned an |
| 1003 * error. |
| 1004 * |
| 1005 * If the used [http.Client] completes with an error when making a REST call, |
| 1006 * this method will complete with the same error. |
| 1007 */ |
| 1008 async.Future<PermissionsBatchDeleteResponse> batchDelete(PermissionsBatchDelet
eRequest request, core.String id) { |
| 1009 var _url = null; |
| 1010 var _queryParams = new core.Map(); |
| 1011 var _uploadMedia = null; |
| 1012 var _uploadOptions = null; |
| 1013 var _downloadOptions = common.DownloadOptions.Metadata; |
| 1014 var _body = null; |
| 1015 |
| 1016 if (request != null) { |
| 1017 _body = convert.JSON.encode((request).toJson()); |
| 1018 } |
| 1019 if (id == null) { |
| 1020 throw new core.ArgumentError("Parameter id is required."); |
| 1021 } |
| 1022 |
| 1023 |
| 1024 _url = 'layers/' + common_internal.Escaper.ecapeVariable('$id') + '/permissi
ons/batchDelete'; |
| 1025 |
| 1026 var _response = _requester.request(_url, |
| 1027 "POST", |
| 1028 body: _body, |
| 1029 queryParams: _queryParams, |
| 1030 uploadOptions: _uploadOptions, |
| 1031 uploadMedia: _uploadMedia, |
| 1032 downloadOptions: _downloadOptions); |
| 1033 return _response.then((data) => new PermissionsBatchDeleteResponse.fromJson(
data)); |
| 1034 } |
| 1035 |
| 1036 /** |
| 1037 * Add or update permission entries to an already existing asset. |
| 1038 * |
| 1039 * An asset can hold up to 20 different permission entries. Each batchInsert |
| 1040 * request is atomic. |
| 1041 * |
| 1042 * [request] - The metadata request object. |
| 1043 * |
| 1044 * Request parameters: |
| 1045 * |
| 1046 * [id] - The ID of the asset to which permissions will be added. |
| 1047 * |
| 1048 * Completes with a [PermissionsBatchUpdateResponse]. |
| 1049 * |
| 1050 * Completes with a [common.ApiRequestError] if the API endpoint returned an |
| 1051 * error. |
| 1052 * |
| 1053 * If the used [http.Client] completes with an error when making a REST call, |
| 1054 * this method will complete with the same error. |
| 1055 */ |
| 1056 async.Future<PermissionsBatchUpdateResponse> batchUpdate(PermissionsBatchUpdat
eRequest request, core.String id) { |
| 1057 var _url = null; |
| 1058 var _queryParams = new core.Map(); |
| 1059 var _uploadMedia = null; |
| 1060 var _uploadOptions = null; |
| 1061 var _downloadOptions = common.DownloadOptions.Metadata; |
| 1062 var _body = null; |
| 1063 |
| 1064 if (request != null) { |
| 1065 _body = convert.JSON.encode((request).toJson()); |
| 1066 } |
| 1067 if (id == null) { |
| 1068 throw new core.ArgumentError("Parameter id is required."); |
| 1069 } |
| 1070 |
| 1071 |
| 1072 _url = 'layers/' + common_internal.Escaper.ecapeVariable('$id') + '/permissi
ons/batchUpdate'; |
| 1073 |
| 1074 var _response = _requester.request(_url, |
| 1075 "POST", |
| 1076 body: _body, |
| 1077 queryParams: _queryParams, |
| 1078 uploadOptions: _uploadOptions, |
| 1079 uploadMedia: _uploadMedia, |
| 1080 downloadOptions: _downloadOptions); |
| 1081 return _response.then((data) => new PermissionsBatchUpdateResponse.fromJson(
data)); |
| 1082 } |
| 1083 |
| 1084 /** |
| 1085 * Return all of the permissions for the specified asset. |
| 1086 * |
| 1087 * Request parameters: |
| 1088 * |
| 1089 * [id] - The ID of the asset whose permissions will be listed. |
| 1090 * |
| 1091 * Completes with a [PermissionsListResponse]. |
| 1092 * |
| 1093 * Completes with a [common.ApiRequestError] if the API endpoint returned an |
| 1094 * error. |
| 1095 * |
| 1096 * If the used [http.Client] completes with an error when making a REST call, |
| 1097 * this method will complete with the same error. |
| 1098 */ |
| 1099 async.Future<PermissionsListResponse> list(core.String id) { |
| 1100 var _url = null; |
| 1101 var _queryParams = new core.Map(); |
| 1102 var _uploadMedia = null; |
| 1103 var _uploadOptions = null; |
| 1104 var _downloadOptions = common.DownloadOptions.Metadata; |
| 1105 var _body = null; |
| 1106 |
| 1107 if (id == null) { |
| 1108 throw new core.ArgumentError("Parameter id is required."); |
| 1109 } |
| 1110 |
| 1111 |
| 1112 _url = 'layers/' + common_internal.Escaper.ecapeVariable('$id') + '/permissi
ons'; |
| 1113 |
| 1114 var _response = _requester.request(_url, |
| 1115 "GET", |
| 1116 body: _body, |
| 1117 queryParams: _queryParams, |
| 1118 uploadOptions: _uploadOptions, |
| 1119 uploadMedia: _uploadMedia, |
| 1120 downloadOptions: _downloadOptions); |
| 1121 return _response.then((data) => new PermissionsListResponse.fromJson(data)); |
| 1122 } |
| 1123 |
| 1124 } |
| 1125 |
| 1126 |
| 1127 /** Not documented yet. */ |
930 class MapsResourceApi { | 1128 class MapsResourceApi { |
931 final common_internal.ApiRequester _requester; | 1129 final common_internal.ApiRequester _requester; |
932 | 1130 |
| 1131 MapsPermissionsResourceApi get permissions => new MapsPermissionsResourceApi(_
requester); |
| 1132 |
933 MapsResourceApi(common_internal.ApiRequester client) : | 1133 MapsResourceApi(common_internal.ApiRequester client) : |
934 _requester = client; | 1134 _requester = client; |
935 | 1135 |
936 /** | 1136 /** |
937 * Create a map asset. | 1137 * Create a map asset. |
938 * | 1138 * |
939 * [request] - The metadata request object. | 1139 * [request] - The metadata request object. |
940 * | 1140 * |
941 * Request parameters: | 1141 * Request parameters: |
942 * | 1142 * |
(...skipping 71 matching lines...) Loading... |
1014 return _response.then((data) => null); | 1214 return _response.then((data) => null); |
1015 } | 1215 } |
1016 | 1216 |
1017 /** | 1217 /** |
1018 * Return metadata for a particular map. | 1218 * Return metadata for a particular map. |
1019 * | 1219 * |
1020 * Request parameters: | 1220 * Request parameters: |
1021 * | 1221 * |
1022 * [id] - The ID of the map. | 1222 * [id] - The ID of the map. |
1023 * | 1223 * |
1024 * [version] - null | 1224 * [version] - Deprecated: The version parameter indicates which version of |
| 1225 * 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 |
| 1227 * endpoint instead. |
1025 * Possible string values are: | 1228 * Possible string values are: |
1026 * - "draft" : The draft version. | 1229 * - "draft" : The draft version. |
1027 * - "published" : The published version. | 1230 * - "published" : The published version. |
1028 * | 1231 * |
1029 * Completes with a [Map]. | 1232 * Completes with a [Map]. |
1030 * | 1233 * |
1031 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 1234 * Completes with a [common.ApiRequestError] if the API endpoint returned an |
1032 * error. | 1235 * error. |
1033 * | 1236 * |
1034 * If the used [http.Client] completes with an error when making a REST call, | 1237 * If the used [http.Client] completes with an error when making a REST call, |
(...skipping 379 matching lines...) Loading... |
1414 uploadOptions: _uploadOptions, | 1617 uploadOptions: _uploadOptions, |
1415 uploadMedia: _uploadMedia, | 1618 uploadMedia: _uploadMedia, |
1416 downloadOptions: _downloadOptions); | 1619 downloadOptions: _downloadOptions); |
1417 return _response.then((data) => new PublishResponse.fromJson(data)); | 1620 return _response.then((data) => new PublishResponse.fromJson(data)); |
1418 } | 1621 } |
1419 | 1622 |
1420 } | 1623 } |
1421 | 1624 |
1422 | 1625 |
1423 /** Not documented yet. */ | 1626 /** Not documented yet. */ |
1424 class ProjectsResourceApi { | 1627 class MapsPermissionsResourceApi { |
1425 final common_internal.ApiRequester _requester; | 1628 final common_internal.ApiRequester _requester; |
1426 | 1629 |
1427 ProjectsIconsResourceApi get icons => new ProjectsIconsResourceApi(_requester)
; | 1630 MapsPermissionsResourceApi(common_internal.ApiRequester client) : |
1428 | |
1429 ProjectsResourceApi(common_internal.ApiRequester client) : | |
1430 _requester = client; | 1631 _requester = client; |
1431 | 1632 |
1432 /** | 1633 /** |
1433 * Return all projects readable by the current user. | 1634 * Remove permission entries from an already existing asset. |
| 1635 * |
| 1636 * [request] - The metadata request object. |
1434 * | 1637 * |
1435 * Request parameters: | 1638 * Request parameters: |
1436 * | 1639 * |
1437 * Completes with a [ProjectsListResponse]. | 1640 * [id] - The ID of the asset from which permissions will be removed. |
| 1641 * |
| 1642 * Completes with a [PermissionsBatchDeleteResponse]. |
1438 * | 1643 * |
1439 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 1644 * Completes with a [common.ApiRequestError] if the API endpoint returned an |
1440 * error. | 1645 * error. |
1441 * | 1646 * |
1442 * If the used [http.Client] completes with an error when making a REST call, | 1647 * If the used [http.Client] completes with an error when making a REST call, |
1443 * this method will complete with the same error. | 1648 * this method will complete with the same error. |
1444 */ | 1649 */ |
1445 async.Future<ProjectsListResponse> list() { | 1650 async.Future<PermissionsBatchDeleteResponse> batchDelete(PermissionsBatchDelet
eRequest request, core.String id) { |
1446 var _url = null; | 1651 var _url = null; |
1447 var _queryParams = new core.Map(); | 1652 var _queryParams = new core.Map(); |
1448 var _uploadMedia = null; | 1653 var _uploadMedia = null; |
1449 var _uploadOptions = null; | 1654 var _uploadOptions = null; |
1450 var _downloadOptions = common.DownloadOptions.Metadata; | 1655 var _downloadOptions = common.DownloadOptions.Metadata; |
1451 var _body = null; | 1656 var _body = null; |
1452 | 1657 |
| 1658 if (request != null) { |
| 1659 _body = convert.JSON.encode((request).toJson()); |
| 1660 } |
| 1661 if (id == null) { |
| 1662 throw new core.ArgumentError("Parameter id is required."); |
| 1663 } |
1453 | 1664 |
1454 | 1665 |
1455 _url = 'projects'; | 1666 _url = 'maps/' + common_internal.Escaper.ecapeVariable('$id') + '/permission
s/batchDelete'; |
1456 | 1667 |
1457 var _response = _requester.request(_url, | 1668 var _response = _requester.request(_url, |
1458 "GET", | 1669 "POST", |
1459 body: _body, | 1670 body: _body, |
1460 queryParams: _queryParams, | 1671 queryParams: _queryParams, |
1461 uploadOptions: _uploadOptions, | 1672 uploadOptions: _uploadOptions, |
1462 uploadMedia: _uploadMedia, | 1673 uploadMedia: _uploadMedia, |
1463 downloadOptions: _downloadOptions); | 1674 downloadOptions: _downloadOptions); |
1464 return _response.then((data) => new ProjectsListResponse.fromJson(data)); | 1675 return _response.then((data) => new PermissionsBatchDeleteResponse.fromJson(
data)); |
1465 } | 1676 } |
1466 | 1677 |
1467 } | |
1468 | |
1469 | |
1470 /** Not documented yet. */ | |
1471 class ProjectsIconsResourceApi { | |
1472 final common_internal.ApiRequester _requester; | |
1473 | |
1474 ProjectsIconsResourceApi(common_internal.ApiRequester client) : | |
1475 _requester = client; | |
1476 | |
1477 /** | 1678 /** |
1478 * Create an icon. | 1679 * Add or update permission entries to an already existing asset. |
| 1680 * |
| 1681 * An asset can hold up to 20 different permission entries. Each batchInsert |
| 1682 * request is atomic. |
1479 * | 1683 * |
1480 * [request] - The metadata request object. | 1684 * [request] - The metadata request object. |
1481 * | 1685 * |
1482 * Request parameters: | 1686 * Request parameters: |
1483 * | 1687 * |
1484 * [projectId] - The ID of the project. | 1688 * [id] - The ID of the asset to which permissions will be added. |
1485 * | 1689 * |
1486 * [uploadMedia] - The media to upload. | 1690 * Completes with a [PermissionsBatchUpdateResponse]. |
1487 * | |
1488 * [uploadOptions] - Options for the media upload. Streaming Media without the | |
1489 * length being known ahead of time is only supported via resumable uploads. | |
1490 * | |
1491 * Completes with a [Icon]. | |
1492 * | 1691 * |
1493 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 1692 * Completes with a [common.ApiRequestError] if the API endpoint returned an |
1494 * error. | 1693 * error. |
1495 * | 1694 * |
1496 * If the used [http.Client] completes with an error when making a REST call, | 1695 * If the used [http.Client] completes with an error when making a REST call, |
1497 * this method will complete with the same error. | 1696 * this method will complete with the same error. |
1498 */ | 1697 */ |
1499 async.Future<Icon> create(Icon request, core.String projectId, {common.UploadO
ptions uploadOptions : common.UploadOptions.Default, common.Media uploadMedia})
{ | 1698 async.Future<PermissionsBatchUpdateResponse> batchUpdate(PermissionsBatchUpdat
eRequest request, core.String id) { |
1500 var _url = null; | 1699 var _url = null; |
1501 var _queryParams = new core.Map(); | 1700 var _queryParams = new core.Map(); |
1502 var _uploadMedia = null; | 1701 var _uploadMedia = null; |
1503 var _uploadOptions = null; | 1702 var _uploadOptions = null; |
1504 var _downloadOptions = common.DownloadOptions.Metadata; | 1703 var _downloadOptions = common.DownloadOptions.Metadata; |
1505 var _body = null; | 1704 var _body = null; |
1506 | 1705 |
1507 if (request != null) { | 1706 if (request != null) { |
1508 _body = convert.JSON.encode((request).toJson()); | 1707 _body = convert.JSON.encode((request).toJson()); |
1509 } | 1708 } |
1510 if (projectId == null) { | 1709 if (id == null) { |
1511 throw new core.ArgumentError("Parameter projectId is required."); | 1710 throw new core.ArgumentError("Parameter id is required."); |
1512 } | |
1513 | |
1514 _uploadMedia = uploadMedia; | |
1515 _uploadOptions = uploadOptions; | |
1516 | |
1517 if (_uploadMedia == null) { | |
1518 _url = 'projects/' + common_internal.Escaper.ecapeVariable('$projectId') +
'/icons'; | |
1519 } else if (_uploadOptions is common.ResumableUploadOptions) { | |
1520 _url = '/resumable/upload/mapsengine/v1/projects/' + common_internal.Escap
er.ecapeVariable('$projectId') + '/icons'; | |
1521 } else { | |
1522 _url = '/upload/mapsengine/v1/projects/' + common_internal.Escaper.ecapeVa
riable('$projectId') + '/icons'; | |
1523 } | 1711 } |
1524 | 1712 |
1525 | 1713 |
| 1714 _url = 'maps/' + common_internal.Escaper.ecapeVariable('$id') + '/permission
s/batchUpdate'; |
| 1715 |
1526 var _response = _requester.request(_url, | 1716 var _response = _requester.request(_url, |
1527 "POST", | 1717 "POST", |
1528 body: _body, | 1718 body: _body, |
1529 queryParams: _queryParams, | 1719 queryParams: _queryParams, |
1530 uploadOptions: _uploadOptions, | 1720 uploadOptions: _uploadOptions, |
1531 uploadMedia: _uploadMedia, | 1721 uploadMedia: _uploadMedia, |
1532 downloadOptions: _downloadOptions); | 1722 downloadOptions: _downloadOptions); |
1533 return _response.then((data) => new Icon.fromJson(data)); | 1723 return _response.then((data) => new PermissionsBatchUpdateResponse.fromJson(
data)); |
1534 } | 1724 } |
1535 | 1725 |
1536 /** | 1726 /** |
1537 * Return an icon or its associated metadata | 1727 * Return all of the permissions for the specified asset. |
1538 * | 1728 * |
1539 * Request parameters: | 1729 * Request parameters: |
1540 * | 1730 * |
1541 * [projectId] - The ID of the project. | 1731 * [id] - The ID of the asset whose permissions will be listed. |
1542 * | 1732 * |
1543 * [id] - The ID of the icon. | 1733 * Completes with a [PermissionsListResponse]. |
1544 * | |
1545 * [downloadOptions] - Options for downloading. A download can be either a | |
1546 * Metadata (default) or Media download. Partial Media downloads are possible | |
1547 * as well. | |
1548 * | |
1549 * Completes with a | |
1550 * | |
1551 * - [Icon] for Metadata downloads (see [downloadOptions]). | |
1552 * | |
1553 * - [common.Media] for Media downloads (see [downloadOptions]). | |
1554 * | 1734 * |
1555 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 1735 * Completes with a [common.ApiRequestError] if the API endpoint returned an |
1556 * error. | 1736 * error. |
1557 * | 1737 * |
1558 * If the used [http.Client] completes with an error when making a REST call, | 1738 * If the used [http.Client] completes with an error when making a REST call, |
1559 * this method will complete with the same error. | 1739 * this method will complete with the same error. |
1560 */ | 1740 */ |
1561 async.Future get(core.String projectId, core.String id, {common.DownloadOption
s downloadOptions: common.DownloadOptions.Metadata}) { | 1741 async.Future<PermissionsListResponse> list(core.String id) { |
1562 var _url = null; | 1742 var _url = null; |
1563 var _queryParams = new core.Map(); | 1743 var _queryParams = new core.Map(); |
1564 var _uploadMedia = null; | 1744 var _uploadMedia = null; |
1565 var _uploadOptions = null; | 1745 var _uploadOptions = null; |
1566 var _downloadOptions = common.DownloadOptions.Metadata; | 1746 var _downloadOptions = common.DownloadOptions.Metadata; |
1567 var _body = null; | 1747 var _body = null; |
1568 | 1748 |
1569 if (projectId == null) { | |
1570 throw new core.ArgumentError("Parameter projectId is required."); | |
1571 } | |
1572 if (id == null) { | 1749 if (id == null) { |
1573 throw new core.ArgumentError("Parameter id is required."); | 1750 throw new core.ArgumentError("Parameter id is required."); |
1574 } | 1751 } |
1575 | 1752 |
1576 _downloadOptions = downloadOptions; | |
1577 | 1753 |
1578 _url = 'projects/' + common_internal.Escaper.ecapeVariable('$projectId') + '
/icons/' + common_internal.Escaper.ecapeVariable('$id'); | 1754 _url = 'maps/' + common_internal.Escaper.ecapeVariable('$id') + '/permission
s'; |
1579 | 1755 |
1580 var _response = _requester.request(_url, | 1756 var _response = _requester.request(_url, |
1581 "GET", | 1757 "GET", |
1582 body: _body, | 1758 body: _body, |
1583 queryParams: _queryParams, | 1759 queryParams: _queryParams, |
1584 uploadOptions: _uploadOptions, | 1760 uploadOptions: _uploadOptions, |
1585 uploadMedia: _uploadMedia, | 1761 uploadMedia: _uploadMedia, |
1586 downloadOptions: _downloadOptions); | 1762 downloadOptions: _downloadOptions); |
| 1763 return _response.then((data) => new PermissionsListResponse.fromJson(data)); |
| 1764 } |
| 1765 |
| 1766 } |
| 1767 |
| 1768 |
| 1769 /** Not documented yet. */ |
| 1770 class ProjectsResourceApi { |
| 1771 final common_internal.ApiRequester _requester; |
| 1772 |
| 1773 ProjectsIconsResourceApi get icons => new ProjectsIconsResourceApi(_requester)
; |
| 1774 |
| 1775 ProjectsResourceApi(common_internal.ApiRequester client) : |
| 1776 _requester = client; |
| 1777 |
| 1778 /** |
| 1779 * Return all projects readable by the current user. |
| 1780 * |
| 1781 * Request parameters: |
| 1782 * |
| 1783 * Completes with a [ProjectsListResponse]. |
| 1784 * |
| 1785 * Completes with a [common.ApiRequestError] if the API endpoint returned an |
| 1786 * error. |
| 1787 * |
| 1788 * If the used [http.Client] completes with an error when making a REST call, |
| 1789 * this method will complete with the same error. |
| 1790 */ |
| 1791 async.Future<ProjectsListResponse> list() { |
| 1792 var _url = null; |
| 1793 var _queryParams = new core.Map(); |
| 1794 var _uploadMedia = null; |
| 1795 var _uploadOptions = null; |
| 1796 var _downloadOptions = common.DownloadOptions.Metadata; |
| 1797 var _body = null; |
| 1798 |
| 1799 |
| 1800 |
| 1801 _url = 'projects'; |
| 1802 |
| 1803 var _response = _requester.request(_url, |
| 1804 "GET", |
| 1805 body: _body, |
| 1806 queryParams: _queryParams, |
| 1807 uploadOptions: _uploadOptions, |
| 1808 uploadMedia: _uploadMedia, |
| 1809 downloadOptions: _downloadOptions); |
| 1810 return _response.then((data) => new ProjectsListResponse.fromJson(data)); |
| 1811 } |
| 1812 |
| 1813 } |
| 1814 |
| 1815 |
| 1816 /** Not documented yet. */ |
| 1817 class ProjectsIconsResourceApi { |
| 1818 final common_internal.ApiRequester _requester; |
| 1819 |
| 1820 ProjectsIconsResourceApi(common_internal.ApiRequester client) : |
| 1821 _requester = client; |
| 1822 |
| 1823 /** |
| 1824 * Create an icon. |
| 1825 * |
| 1826 * [request] - The metadata request object. |
| 1827 * |
| 1828 * Request parameters: |
| 1829 * |
| 1830 * [projectId] - The ID of the project. |
| 1831 * |
| 1832 * [uploadMedia] - The media to upload. |
| 1833 * |
| 1834 * [uploadOptions] - Options for the media upload. Streaming Media without the |
| 1835 * length being known ahead of time is only supported via resumable uploads. |
| 1836 * |
| 1837 * Completes with a [Icon]. |
| 1838 * |
| 1839 * Completes with a [common.ApiRequestError] if the API endpoint returned an |
| 1840 * error. |
| 1841 * |
| 1842 * If the used [http.Client] completes with an error when making a REST call, |
| 1843 * this method will complete with the same error. |
| 1844 */ |
| 1845 async.Future<Icon> create(Icon request, core.String projectId, {common.UploadO
ptions uploadOptions : common.UploadOptions.Default, common.Media uploadMedia})
{ |
| 1846 var _url = null; |
| 1847 var _queryParams = new core.Map(); |
| 1848 var _uploadMedia = null; |
| 1849 var _uploadOptions = null; |
| 1850 var _downloadOptions = common.DownloadOptions.Metadata; |
| 1851 var _body = null; |
| 1852 |
| 1853 if (request != null) { |
| 1854 _body = convert.JSON.encode((request).toJson()); |
| 1855 } |
| 1856 if (projectId == null) { |
| 1857 throw new core.ArgumentError("Parameter projectId is required."); |
| 1858 } |
| 1859 |
| 1860 _uploadMedia = uploadMedia; |
| 1861 _uploadOptions = uploadOptions; |
| 1862 |
| 1863 if (_uploadMedia == null) { |
| 1864 _url = 'projects/' + common_internal.Escaper.ecapeVariable('$projectId') +
'/icons'; |
| 1865 } else if (_uploadOptions is common.ResumableUploadOptions) { |
| 1866 _url = '/resumable/upload/mapsengine/v1/projects/' + common_internal.Escap
er.ecapeVariable('$projectId') + '/icons'; |
| 1867 } else { |
| 1868 _url = '/upload/mapsengine/v1/projects/' + common_internal.Escaper.ecapeVa
riable('$projectId') + '/icons'; |
| 1869 } |
| 1870 |
| 1871 |
| 1872 var _response = _requester.request(_url, |
| 1873 "POST", |
| 1874 body: _body, |
| 1875 queryParams: _queryParams, |
| 1876 uploadOptions: _uploadOptions, |
| 1877 uploadMedia: _uploadMedia, |
| 1878 downloadOptions: _downloadOptions); |
| 1879 return _response.then((data) => new Icon.fromJson(data)); |
| 1880 } |
| 1881 |
| 1882 /** |
| 1883 * Return an icon or its associated metadata |
| 1884 * |
| 1885 * Request parameters: |
| 1886 * |
| 1887 * [projectId] - The ID of the project. |
| 1888 * |
| 1889 * [id] - The ID of the icon. |
| 1890 * |
| 1891 * [downloadOptions] - Options for downloading. A download can be either a |
| 1892 * Metadata (default) or Media download. Partial Media downloads are possible |
| 1893 * as well. |
| 1894 * |
| 1895 * Completes with a |
| 1896 * |
| 1897 * - [Icon] for Metadata downloads (see [downloadOptions]). |
| 1898 * |
| 1899 * - [common.Media] for Media downloads (see [downloadOptions]). |
| 1900 * |
| 1901 * Completes with a [common.ApiRequestError] if the API endpoint returned an |
| 1902 * error. |
| 1903 * |
| 1904 * If the used [http.Client] completes with an error when making a REST call, |
| 1905 * this method will complete with the same error. |
| 1906 */ |
| 1907 async.Future get(core.String projectId, core.String id, {common.DownloadOption
s downloadOptions: common.DownloadOptions.Metadata}) { |
| 1908 var _url = null; |
| 1909 var _queryParams = new core.Map(); |
| 1910 var _uploadMedia = null; |
| 1911 var _uploadOptions = null; |
| 1912 var _downloadOptions = common.DownloadOptions.Metadata; |
| 1913 var _body = null; |
| 1914 |
| 1915 if (projectId == null) { |
| 1916 throw new core.ArgumentError("Parameter projectId is required."); |
| 1917 } |
| 1918 if (id == null) { |
| 1919 throw new core.ArgumentError("Parameter id is required."); |
| 1920 } |
| 1921 |
| 1922 _downloadOptions = downloadOptions; |
| 1923 |
| 1924 _url = 'projects/' + common_internal.Escaper.ecapeVariable('$projectId') + '
/icons/' + common_internal.Escaper.ecapeVariable('$id'); |
| 1925 |
| 1926 var _response = _requester.request(_url, |
| 1927 "GET", |
| 1928 body: _body, |
| 1929 queryParams: _queryParams, |
| 1930 uploadOptions: _uploadOptions, |
| 1931 uploadMedia: _uploadMedia, |
| 1932 downloadOptions: _downloadOptions); |
1587 if (_downloadOptions == null || | 1933 if (_downloadOptions == null || |
1588 _downloadOptions == common.DownloadOptions.Metadata) { | 1934 _downloadOptions == common.DownloadOptions.Metadata) { |
1589 return _response.then((data) => new Icon.fromJson(data)); | 1935 return _response.then((data) => new Icon.fromJson(data)); |
1590 } else { | 1936 } else { |
1591 return _response; | 1937 return _response; |
1592 } | 1938 } |
1593 } | 1939 } |
1594 | 1940 |
1595 /** | 1941 /** |
1596 * Return all icons in the current project | 1942 * Return all icons in the current project |
(...skipping 49 matching lines...) Loading... |
1646 } | 1992 } |
1647 | 1993 |
1648 } | 1994 } |
1649 | 1995 |
1650 | 1996 |
1651 /** Not documented yet. */ | 1997 /** Not documented yet. */ |
1652 class RasterCollectionsResourceApi { | 1998 class RasterCollectionsResourceApi { |
1653 final common_internal.ApiRequester _requester; | 1999 final common_internal.ApiRequester _requester; |
1654 | 2000 |
1655 RasterCollectionsParentsResourceApi get parents => new RasterCollectionsParent
sResourceApi(_requester); | 2001 RasterCollectionsParentsResourceApi get parents => new RasterCollectionsParent
sResourceApi(_requester); |
| 2002 RasterCollectionsPermissionsResourceApi get permissions => new RasterCollectio
nsPermissionsResourceApi(_requester); |
1656 RasterCollectionsRastersResourceApi get rasters => new RasterCollectionsRaster
sResourceApi(_requester); | 2003 RasterCollectionsRastersResourceApi get rasters => new RasterCollectionsRaster
sResourceApi(_requester); |
1657 | 2004 |
1658 RasterCollectionsResourceApi(common_internal.ApiRequester client) : | 2005 RasterCollectionsResourceApi(common_internal.ApiRequester client) : |
1659 _requester = client; | 2006 _requester = client; |
1660 | 2007 |
1661 /** | 2008 /** |
1662 * Cancel processing on a raster collection asset. | 2009 * Cancel processing on a raster collection asset. |
1663 * | 2010 * |
1664 * Request parameters: | 2011 * Request parameters: |
1665 * | 2012 * |
(...skipping 427 matching lines...) Loading... |
2093 uploadOptions: _uploadOptions, | 2440 uploadOptions: _uploadOptions, |
2094 uploadMedia: _uploadMedia, | 2441 uploadMedia: _uploadMedia, |
2095 downloadOptions: _downloadOptions); | 2442 downloadOptions: _downloadOptions); |
2096 return _response.then((data) => new ParentsListResponse.fromJson(data)); | 2443 return _response.then((data) => new ParentsListResponse.fromJson(data)); |
2097 } | 2444 } |
2098 | 2445 |
2099 } | 2446 } |
2100 | 2447 |
2101 | 2448 |
2102 /** Not documented yet. */ | 2449 /** Not documented yet. */ |
| 2450 class RasterCollectionsPermissionsResourceApi { |
| 2451 final common_internal.ApiRequester _requester; |
| 2452 |
| 2453 RasterCollectionsPermissionsResourceApi(common_internal.ApiRequester client) :
|
| 2454 _requester = client; |
| 2455 |
| 2456 /** |
| 2457 * Remove permission entries from an already existing asset. |
| 2458 * |
| 2459 * [request] - The metadata request object. |
| 2460 * |
| 2461 * Request parameters: |
| 2462 * |
| 2463 * [id] - The ID of the asset from which permissions will be removed. |
| 2464 * |
| 2465 * Completes with a [PermissionsBatchDeleteResponse]. |
| 2466 * |
| 2467 * Completes with a [common.ApiRequestError] if the API endpoint returned an |
| 2468 * error. |
| 2469 * |
| 2470 * If the used [http.Client] completes with an error when making a REST call, |
| 2471 * this method will complete with the same error. |
| 2472 */ |
| 2473 async.Future<PermissionsBatchDeleteResponse> batchDelete(PermissionsBatchDelet
eRequest request, core.String id) { |
| 2474 var _url = null; |
| 2475 var _queryParams = new core.Map(); |
| 2476 var _uploadMedia = null; |
| 2477 var _uploadOptions = null; |
| 2478 var _downloadOptions = common.DownloadOptions.Metadata; |
| 2479 var _body = null; |
| 2480 |
| 2481 if (request != null) { |
| 2482 _body = convert.JSON.encode((request).toJson()); |
| 2483 } |
| 2484 if (id == null) { |
| 2485 throw new core.ArgumentError("Parameter id is required."); |
| 2486 } |
| 2487 |
| 2488 |
| 2489 _url = 'rasterCollections/' + common_internal.Escaper.ecapeVariable('$id') +
'/permissions/batchDelete'; |
| 2490 |
| 2491 var _response = _requester.request(_url, |
| 2492 "POST", |
| 2493 body: _body, |
| 2494 queryParams: _queryParams, |
| 2495 uploadOptions: _uploadOptions, |
| 2496 uploadMedia: _uploadMedia, |
| 2497 downloadOptions: _downloadOptions); |
| 2498 return _response.then((data) => new PermissionsBatchDeleteResponse.fromJson(
data)); |
| 2499 } |
| 2500 |
| 2501 /** |
| 2502 * Add or update permission entries to an already existing asset. |
| 2503 * |
| 2504 * An asset can hold up to 20 different permission entries. Each batchInsert |
| 2505 * request is atomic. |
| 2506 * |
| 2507 * [request] - The metadata request object. |
| 2508 * |
| 2509 * Request parameters: |
| 2510 * |
| 2511 * [id] - The ID of the asset to which permissions will be added. |
| 2512 * |
| 2513 * Completes with a [PermissionsBatchUpdateResponse]. |
| 2514 * |
| 2515 * Completes with a [common.ApiRequestError] if the API endpoint returned an |
| 2516 * error. |
| 2517 * |
| 2518 * If the used [http.Client] completes with an error when making a REST call, |
| 2519 * this method will complete with the same error. |
| 2520 */ |
| 2521 async.Future<PermissionsBatchUpdateResponse> batchUpdate(PermissionsBatchUpdat
eRequest request, core.String id) { |
| 2522 var _url = null; |
| 2523 var _queryParams = new core.Map(); |
| 2524 var _uploadMedia = null; |
| 2525 var _uploadOptions = null; |
| 2526 var _downloadOptions = common.DownloadOptions.Metadata; |
| 2527 var _body = null; |
| 2528 |
| 2529 if (request != null) { |
| 2530 _body = convert.JSON.encode((request).toJson()); |
| 2531 } |
| 2532 if (id == null) { |
| 2533 throw new core.ArgumentError("Parameter id is required."); |
| 2534 } |
| 2535 |
| 2536 |
| 2537 _url = 'rasterCollections/' + common_internal.Escaper.ecapeVariable('$id') +
'/permissions/batchUpdate'; |
| 2538 |
| 2539 var _response = _requester.request(_url, |
| 2540 "POST", |
| 2541 body: _body, |
| 2542 queryParams: _queryParams, |
| 2543 uploadOptions: _uploadOptions, |
| 2544 uploadMedia: _uploadMedia, |
| 2545 downloadOptions: _downloadOptions); |
| 2546 return _response.then((data) => new PermissionsBatchUpdateResponse.fromJson(
data)); |
| 2547 } |
| 2548 |
| 2549 /** |
| 2550 * Return all of the permissions for the specified asset. |
| 2551 * |
| 2552 * Request parameters: |
| 2553 * |
| 2554 * [id] - The ID of the asset whose permissions will be listed. |
| 2555 * |
| 2556 * Completes with a [PermissionsListResponse]. |
| 2557 * |
| 2558 * Completes with a [common.ApiRequestError] if the API endpoint returned an |
| 2559 * error. |
| 2560 * |
| 2561 * If the used [http.Client] completes with an error when making a REST call, |
| 2562 * this method will complete with the same error. |
| 2563 */ |
| 2564 async.Future<PermissionsListResponse> list(core.String id) { |
| 2565 var _url = null; |
| 2566 var _queryParams = new core.Map(); |
| 2567 var _uploadMedia = null; |
| 2568 var _uploadOptions = null; |
| 2569 var _downloadOptions = common.DownloadOptions.Metadata; |
| 2570 var _body = null; |
| 2571 |
| 2572 if (id == null) { |
| 2573 throw new core.ArgumentError("Parameter id is required."); |
| 2574 } |
| 2575 |
| 2576 |
| 2577 _url = 'rasterCollections/' + common_internal.Escaper.ecapeVariable('$id') +
'/permissions'; |
| 2578 |
| 2579 var _response = _requester.request(_url, |
| 2580 "GET", |
| 2581 body: _body, |
| 2582 queryParams: _queryParams, |
| 2583 uploadOptions: _uploadOptions, |
| 2584 uploadMedia: _uploadMedia, |
| 2585 downloadOptions: _downloadOptions); |
| 2586 return _response.then((data) => new PermissionsListResponse.fromJson(data)); |
| 2587 } |
| 2588 |
| 2589 } |
| 2590 |
| 2591 |
| 2592 /** Not documented yet. */ |
2103 class RasterCollectionsRastersResourceApi { | 2593 class RasterCollectionsRastersResourceApi { |
2104 final common_internal.ApiRequester _requester; | 2594 final common_internal.ApiRequester _requester; |
2105 | 2595 |
2106 RasterCollectionsRastersResourceApi(common_internal.ApiRequester client) : | 2596 RasterCollectionsRastersResourceApi(common_internal.ApiRequester client) : |
2107 _requester = client; | 2597 _requester = client; |
2108 | 2598 |
2109 /** | 2599 /** |
2110 * Remove rasters from an existing raster collection. | 2600 * Remove rasters from an existing raster collection. |
2111 * | 2601 * |
2112 * Up to 50 rasters can be included in a single batchDelete request. Each | 2602 * Up to 50 rasters can be included in a single batchDelete request. Each |
(...skipping 207 matching lines...) Loading... |
2320 | 2810 |
2321 } | 2811 } |
2322 | 2812 |
2323 | 2813 |
2324 /** Not documented yet. */ | 2814 /** Not documented yet. */ |
2325 class RastersResourceApi { | 2815 class RastersResourceApi { |
2326 final common_internal.ApiRequester _requester; | 2816 final common_internal.ApiRequester _requester; |
2327 | 2817 |
2328 RastersFilesResourceApi get files => new RastersFilesResourceApi(_requester); | 2818 RastersFilesResourceApi get files => new RastersFilesResourceApi(_requester); |
2329 RastersParentsResourceApi get parents => new RastersParentsResourceApi(_reques
ter); | 2819 RastersParentsResourceApi get parents => new RastersParentsResourceApi(_reques
ter); |
| 2820 RastersPermissionsResourceApi get permissions => new RastersPermissionsResourc
eApi(_requester); |
2330 | 2821 |
2331 RastersResourceApi(common_internal.ApiRequester client) : | 2822 RastersResourceApi(common_internal.ApiRequester client) : |
2332 _requester = client; | 2823 _requester = client; |
2333 | 2824 |
2334 /** | 2825 /** |
2335 * Delete a raster. | 2826 * Delete a raster. |
2336 * | 2827 * |
2337 * Request parameters: | 2828 * Request parameters: |
2338 * | 2829 * |
2339 * [id] - The ID of the raster. Only the raster creator or project owner are | 2830 * [id] - The ID of the raster. Only the raster creator or project owner are |
(...skipping 250 matching lines...) Loading... |
2590 * Process a raster asset. | 3081 * Process a raster asset. |
2591 * | 3082 * |
2592 * Request parameters: | 3083 * Request parameters: |
2593 * | 3084 * |
2594 * [id] - The ID of the raster. | 3085 * [id] - The ID of the raster. |
2595 * | 3086 * |
2596 * Completes with a [ProcessResponse]. | 3087 * Completes with a [ProcessResponse]. |
2597 * | 3088 * |
2598 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 3089 * Completes with a [common.ApiRequestError] if the API endpoint returned an |
2599 * error. | 3090 * error. |
| 3091 * |
| 3092 * If the used [http.Client] completes with an error when making a REST call, |
| 3093 * this method will complete with the same error. |
| 3094 */ |
| 3095 async.Future<ProcessResponse> process(core.String id) { |
| 3096 var _url = null; |
| 3097 var _queryParams = new core.Map(); |
| 3098 var _uploadMedia = null; |
| 3099 var _uploadOptions = null; |
| 3100 var _downloadOptions = common.DownloadOptions.Metadata; |
| 3101 var _body = null; |
| 3102 |
| 3103 if (id == null) { |
| 3104 throw new core.ArgumentError("Parameter id is required."); |
| 3105 } |
| 3106 |
| 3107 |
| 3108 _url = 'rasters/' + common_internal.Escaper.ecapeVariable('$id') + '/process
'; |
| 3109 |
| 3110 var _response = _requester.request(_url, |
| 3111 "POST", |
| 3112 body: _body, |
| 3113 queryParams: _queryParams, |
| 3114 uploadOptions: _uploadOptions, |
| 3115 uploadMedia: _uploadMedia, |
| 3116 downloadOptions: _downloadOptions); |
| 3117 return _response.then((data) => new ProcessResponse.fromJson(data)); |
| 3118 } |
| 3119 |
| 3120 /** |
| 3121 * Create a skeleton raster asset for upload. |
| 3122 * |
| 3123 * [request] - The metadata request object. |
| 3124 * |
| 3125 * Request parameters: |
| 3126 * |
| 3127 * Completes with a [Raster]. |
| 3128 * |
| 3129 * Completes with a [common.ApiRequestError] if the API endpoint returned an |
| 3130 * error. |
| 3131 * |
| 3132 * If the used [http.Client] completes with an error when making a REST call, |
| 3133 * this method will complete with the same error. |
| 3134 */ |
| 3135 async.Future<Raster> upload(Raster request) { |
| 3136 var _url = null; |
| 3137 var _queryParams = new core.Map(); |
| 3138 var _uploadMedia = null; |
| 3139 var _uploadOptions = null; |
| 3140 var _downloadOptions = common.DownloadOptions.Metadata; |
| 3141 var _body = null; |
| 3142 |
| 3143 if (request != null) { |
| 3144 _body = convert.JSON.encode((request).toJson()); |
| 3145 } |
| 3146 |
| 3147 |
| 3148 _url = 'rasters/upload'; |
| 3149 |
| 3150 var _response = _requester.request(_url, |
| 3151 "POST", |
| 3152 body: _body, |
| 3153 queryParams: _queryParams, |
| 3154 uploadOptions: _uploadOptions, |
| 3155 uploadMedia: _uploadMedia, |
| 3156 downloadOptions: _downloadOptions); |
| 3157 return _response.then((data) => new Raster.fromJson(data)); |
| 3158 } |
| 3159 |
| 3160 } |
| 3161 |
| 3162 |
| 3163 /** Not documented yet. */ |
| 3164 class RastersFilesResourceApi { |
| 3165 final common_internal.ApiRequester _requester; |
| 3166 |
| 3167 RastersFilesResourceApi(common_internal.ApiRequester client) : |
| 3168 _requester = client; |
| 3169 |
| 3170 /** |
| 3171 * Upload a file to a raster asset. |
| 3172 * |
| 3173 * Request parameters: |
| 3174 * |
| 3175 * [id] - The ID of the raster asset. |
| 3176 * |
| 3177 * [filename] - The file name of this uploaded file. |
| 3178 * |
| 3179 * [uploadMedia] - The media to upload. |
| 3180 * |
| 3181 * [uploadOptions] - Options for the media upload. Streaming Media without the |
| 3182 * length being known ahead of time is only supported via resumable uploads. |
| 3183 * |
| 3184 * Completes with a [common.ApiRequestError] if the API endpoint returned an |
| 3185 * error. |
| 3186 * |
| 3187 * If the used [http.Client] completes with an error when making a REST call, |
| 3188 * this method will complete with the same error. |
| 3189 */ |
| 3190 async.Future insert(core.String id, core.String filename, {common.UploadOption
s uploadOptions : common.UploadOptions.Default, common.Media uploadMedia}) { |
| 3191 var _url = null; |
| 3192 var _queryParams = new core.Map(); |
| 3193 var _uploadMedia = null; |
| 3194 var _uploadOptions = null; |
| 3195 var _downloadOptions = common.DownloadOptions.Metadata; |
| 3196 var _body = null; |
| 3197 |
| 3198 if (id == null) { |
| 3199 throw new core.ArgumentError("Parameter id is required."); |
| 3200 } |
| 3201 if (filename == null) { |
| 3202 throw new core.ArgumentError("Parameter filename is required."); |
| 3203 } |
| 3204 _queryParams["filename"] = [filename]; |
| 3205 |
| 3206 _uploadMedia = uploadMedia; |
| 3207 _uploadOptions = uploadOptions; |
| 3208 _downloadOptions = null; |
| 3209 |
| 3210 if (_uploadMedia == null) { |
| 3211 _url = 'rasters/' + common_internal.Escaper.ecapeVariable('$id') + '/files
'; |
| 3212 } else if (_uploadOptions is common.ResumableUploadOptions) { |
| 3213 _url = '/resumable/upload/mapsengine/v1/rasters/' + common_internal.Escape
r.ecapeVariable('$id') + '/files'; |
| 3214 } else { |
| 3215 _url = '/upload/mapsengine/v1/rasters/' + common_internal.Escaper.ecapeVar
iable('$id') + '/files'; |
| 3216 } |
| 3217 |
| 3218 |
| 3219 var _response = _requester.request(_url, |
| 3220 "POST", |
| 3221 body: _body, |
| 3222 queryParams: _queryParams, |
| 3223 uploadOptions: _uploadOptions, |
| 3224 uploadMedia: _uploadMedia, |
| 3225 downloadOptions: _downloadOptions); |
| 3226 return _response.then((data) => null); |
| 3227 } |
| 3228 |
| 3229 } |
| 3230 |
| 3231 |
| 3232 /** Not documented yet. */ |
| 3233 class RastersParentsResourceApi { |
| 3234 final common_internal.ApiRequester _requester; |
| 3235 |
| 3236 RastersParentsResourceApi(common_internal.ApiRequester client) : |
| 3237 _requester = client; |
| 3238 |
| 3239 /** |
| 3240 * Return all parent ids of the specified rasters. |
| 3241 * |
| 3242 * Request parameters: |
| 3243 * |
| 3244 * [id] - The ID of the rasters whose parents will be listed. |
| 3245 * |
| 3246 * [maxResults] - The maximum number of items to include in a single response |
| 3247 * page. The maximum supported value is 50. |
| 3248 * |
| 3249 * [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 |
| 3251 * nextPageToken from the previous response. |
| 3252 * |
| 3253 * Completes with a [ParentsListResponse]. |
| 3254 * |
| 3255 * Completes with a [common.ApiRequestError] if the API endpoint returned an |
| 3256 * error. |
2600 * | 3257 * |
2601 * If the used [http.Client] completes with an error when making a REST call, | 3258 * If the used [http.Client] completes with an error when making a REST call, |
2602 * this method will complete with the same error. | 3259 * this method will complete with the same error. |
2603 */ | 3260 */ |
2604 async.Future<ProcessResponse> process(core.String id) { | 3261 async.Future<ParentsListResponse> list(core.String id, {core.int maxResults, c
ore.String pageToken}) { |
2605 var _url = null; | 3262 var _url = null; |
2606 var _queryParams = new core.Map(); | 3263 var _queryParams = new core.Map(); |
2607 var _uploadMedia = null; | 3264 var _uploadMedia = null; |
2608 var _uploadOptions = null; | 3265 var _uploadOptions = null; |
2609 var _downloadOptions = common.DownloadOptions.Metadata; | 3266 var _downloadOptions = common.DownloadOptions.Metadata; |
2610 var _body = null; | 3267 var _body = null; |
2611 | 3268 |
2612 if (id == null) { | 3269 if (id == null) { |
2613 throw new core.ArgumentError("Parameter id is required."); | 3270 throw new core.ArgumentError("Parameter id is required."); |
2614 } | 3271 } |
| 3272 if (maxResults != null) { |
| 3273 _queryParams["maxResults"] = ["${maxResults}"]; |
| 3274 } |
| 3275 if (pageToken != null) { |
| 3276 _queryParams["pageToken"] = [pageToken]; |
| 3277 } |
2615 | 3278 |
2616 | 3279 |
2617 _url = 'rasters/' + common_internal.Escaper.ecapeVariable('$id') + '/process
'; | 3280 _url = 'rasters/' + common_internal.Escaper.ecapeVariable('$id') + '/parents
'; |
2618 | 3281 |
2619 var _response = _requester.request(_url, | 3282 var _response = _requester.request(_url, |
2620 "POST", | 3283 "GET", |
2621 body: _body, | 3284 body: _body, |
2622 queryParams: _queryParams, | 3285 queryParams: _queryParams, |
2623 uploadOptions: _uploadOptions, | 3286 uploadOptions: _uploadOptions, |
2624 uploadMedia: _uploadMedia, | 3287 uploadMedia: _uploadMedia, |
2625 downloadOptions: _downloadOptions); | 3288 downloadOptions: _downloadOptions); |
2626 return _response.then((data) => new ProcessResponse.fromJson(data)); | 3289 return _response.then((data) => new ParentsListResponse.fromJson(data)); |
2627 } | 3290 } |
2628 | 3291 |
| 3292 } |
| 3293 |
| 3294 |
| 3295 /** Not documented yet. */ |
| 3296 class RastersPermissionsResourceApi { |
| 3297 final common_internal.ApiRequester _requester; |
| 3298 |
| 3299 RastersPermissionsResourceApi(common_internal.ApiRequester client) : |
| 3300 _requester = client; |
| 3301 |
2629 /** | 3302 /** |
2630 * Create a skeleton raster asset for upload. | 3303 * Remove permission entries from an already existing asset. |
2631 * | 3304 * |
2632 * [request] - The metadata request object. | 3305 * [request] - The metadata request object. |
2633 * | 3306 * |
2634 * Request parameters: | 3307 * Request parameters: |
2635 * | 3308 * |
2636 * Completes with a [Raster]. | 3309 * [id] - The ID of the asset from which permissions will be removed. |
| 3310 * |
| 3311 * Completes with a [PermissionsBatchDeleteResponse]. |
2637 * | 3312 * |
2638 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 3313 * Completes with a [common.ApiRequestError] if the API endpoint returned an |
2639 * error. | 3314 * error. |
2640 * | 3315 * |
2641 * If the used [http.Client] completes with an error when making a REST call, | 3316 * If the used [http.Client] completes with an error when making a REST call, |
2642 * this method will complete with the same error. | 3317 * this method will complete with the same error. |
2643 */ | 3318 */ |
2644 async.Future<Raster> upload(Raster request) { | 3319 async.Future<PermissionsBatchDeleteResponse> batchDelete(PermissionsBatchDelet
eRequest request, core.String id) { |
2645 var _url = null; | 3320 var _url = null; |
2646 var _queryParams = new core.Map(); | 3321 var _queryParams = new core.Map(); |
2647 var _uploadMedia = null; | 3322 var _uploadMedia = null; |
2648 var _uploadOptions = null; | 3323 var _uploadOptions = null; |
2649 var _downloadOptions = common.DownloadOptions.Metadata; | 3324 var _downloadOptions = common.DownloadOptions.Metadata; |
2650 var _body = null; | 3325 var _body = null; |
2651 | 3326 |
2652 if (request != null) { | 3327 if (request != null) { |
2653 _body = convert.JSON.encode((request).toJson()); | 3328 _body = convert.JSON.encode((request).toJson()); |
2654 } | 3329 } |
| 3330 if (id == null) { |
| 3331 throw new core.ArgumentError("Parameter id is required."); |
| 3332 } |
2655 | 3333 |
2656 | 3334 |
2657 _url = 'rasters/upload'; | 3335 _url = 'rasters/' + common_internal.Escaper.ecapeVariable('$id') + '/permiss
ions/batchDelete'; |
2658 | 3336 |
2659 var _response = _requester.request(_url, | 3337 var _response = _requester.request(_url, |
2660 "POST", | 3338 "POST", |
2661 body: _body, | 3339 body: _body, |
2662 queryParams: _queryParams, | 3340 queryParams: _queryParams, |
2663 uploadOptions: _uploadOptions, | 3341 uploadOptions: _uploadOptions, |
2664 uploadMedia: _uploadMedia, | 3342 uploadMedia: _uploadMedia, |
2665 downloadOptions: _downloadOptions); | 3343 downloadOptions: _downloadOptions); |
2666 return _response.then((data) => new Raster.fromJson(data)); | 3344 return _response.then((data) => new PermissionsBatchDeleteResponse.fromJson(
data)); |
2667 } | 3345 } |
2668 | 3346 |
2669 } | |
2670 | |
2671 | |
2672 /** Not documented yet. */ | |
2673 class RastersFilesResourceApi { | |
2674 final common_internal.ApiRequester _requester; | |
2675 | |
2676 RastersFilesResourceApi(common_internal.ApiRequester client) : | |
2677 _requester = client; | |
2678 | |
2679 /** | 3347 /** |
2680 * Upload a file to a raster asset. | 3348 * Add or update permission entries to an already existing asset. |
| 3349 * |
| 3350 * An asset can hold up to 20 different permission entries. Each batchInsert |
| 3351 * request is atomic. |
| 3352 * |
| 3353 * [request] - The metadata request object. |
2681 * | 3354 * |
2682 * Request parameters: | 3355 * Request parameters: |
2683 * | 3356 * |
2684 * [id] - The ID of the raster asset. | 3357 * [id] - The ID of the asset to which permissions will be added. |
2685 * | 3358 * |
2686 * [filename] - The file name of this uploaded file. | 3359 * Completes with a [PermissionsBatchUpdateResponse]. |
2687 * | |
2688 * [uploadMedia] - The media to upload. | |
2689 * | |
2690 * [uploadOptions] - Options for the media upload. Streaming Media without the | |
2691 * length being known ahead of time is only supported via resumable uploads. | |
2692 * | 3360 * |
2693 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 3361 * Completes with a [common.ApiRequestError] if the API endpoint returned an |
2694 * error. | 3362 * error. |
2695 * | 3363 * |
2696 * If the used [http.Client] completes with an error when making a REST call, | 3364 * If the used [http.Client] completes with an error when making a REST call, |
2697 * this method will complete with the same error. | 3365 * this method will complete with the same error. |
2698 */ | 3366 */ |
2699 async.Future insert(core.String id, core.String filename, {common.UploadOption
s uploadOptions : common.UploadOptions.Default, common.Media uploadMedia}) { | 3367 async.Future<PermissionsBatchUpdateResponse> batchUpdate(PermissionsBatchUpdat
eRequest request, core.String id) { |
2700 var _url = null; | 3368 var _url = null; |
2701 var _queryParams = new core.Map(); | 3369 var _queryParams = new core.Map(); |
2702 var _uploadMedia = null; | 3370 var _uploadMedia = null; |
2703 var _uploadOptions = null; | 3371 var _uploadOptions = null; |
2704 var _downloadOptions = common.DownloadOptions.Metadata; | 3372 var _downloadOptions = common.DownloadOptions.Metadata; |
2705 var _body = null; | 3373 var _body = null; |
2706 | 3374 |
| 3375 if (request != null) { |
| 3376 _body = convert.JSON.encode((request).toJson()); |
| 3377 } |
2707 if (id == null) { | 3378 if (id == null) { |
2708 throw new core.ArgumentError("Parameter id is required."); | 3379 throw new core.ArgumentError("Parameter id is required."); |
2709 } | 3380 } |
2710 if (filename == null) { | |
2711 throw new core.ArgumentError("Parameter filename is required."); | |
2712 } | |
2713 _queryParams["filename"] = [filename]; | |
2714 | 3381 |
2715 _uploadMedia = uploadMedia; | |
2716 _uploadOptions = uploadOptions; | |
2717 _downloadOptions = null; | |
2718 | 3382 |
2719 if (_uploadMedia == null) { | 3383 _url = 'rasters/' + common_internal.Escaper.ecapeVariable('$id') + '/permiss
ions/batchUpdate'; |
2720 _url = 'rasters/' + common_internal.Escaper.ecapeVariable('$id') + '/files
'; | |
2721 } else if (_uploadOptions is common.ResumableUploadOptions) { | |
2722 _url = '/resumable/upload/mapsengine/v1/rasters/' + common_internal.Escape
r.ecapeVariable('$id') + '/files'; | |
2723 } else { | |
2724 _url = '/upload/mapsengine/v1/rasters/' + common_internal.Escaper.ecapeVar
iable('$id') + '/files'; | |
2725 } | |
2726 | |
2727 | 3384 |
2728 var _response = _requester.request(_url, | 3385 var _response = _requester.request(_url, |
2729 "POST", | 3386 "POST", |
2730 body: _body, | 3387 body: _body, |
2731 queryParams: _queryParams, | 3388 queryParams: _queryParams, |
2732 uploadOptions: _uploadOptions, | 3389 uploadOptions: _uploadOptions, |
2733 uploadMedia: _uploadMedia, | 3390 uploadMedia: _uploadMedia, |
2734 downloadOptions: _downloadOptions); | 3391 downloadOptions: _downloadOptions); |
2735 return _response.then((data) => null); | 3392 return _response.then((data) => new PermissionsBatchUpdateResponse.fromJson(
data)); |
2736 } | 3393 } |
2737 | 3394 |
2738 } | |
2739 | |
2740 | |
2741 /** Not documented yet. */ | |
2742 class RastersParentsResourceApi { | |
2743 final common_internal.ApiRequester _requester; | |
2744 | |
2745 RastersParentsResourceApi(common_internal.ApiRequester client) : | |
2746 _requester = client; | |
2747 | |
2748 /** | 3395 /** |
2749 * Return all parent ids of the specified rasters. | 3396 * Return all of the permissions for the specified asset. |
2750 * | 3397 * |
2751 * Request parameters: | 3398 * Request parameters: |
2752 * | 3399 * |
2753 * [id] - The ID of the rasters whose parents will be listed. | 3400 * [id] - The ID of the asset whose permissions will be listed. |
2754 * | 3401 * |
2755 * [maxResults] - The maximum number of items to include in a single response | 3402 * Completes with a [PermissionsListResponse]. |
2756 * page. The maximum supported value is 50. | |
2757 * | |
2758 * [pageToken] - The continuation token, used to page through large result | |
2759 * sets. To get the next page of results, set this parameter to the value of | |
2760 * nextPageToken from the previous response. | |
2761 * | |
2762 * Completes with a [ParentsListResponse]. | |
2763 * | 3403 * |
2764 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 3404 * Completes with a [common.ApiRequestError] if the API endpoint returned an |
2765 * error. | 3405 * error. |
2766 * | 3406 * |
2767 * If the used [http.Client] completes with an error when making a REST call, | 3407 * If the used [http.Client] completes with an error when making a REST call, |
2768 * this method will complete with the same error. | 3408 * this method will complete with the same error. |
2769 */ | 3409 */ |
2770 async.Future<ParentsListResponse> list(core.String id, {core.int maxResults, c
ore.String pageToken}) { | 3410 async.Future<PermissionsListResponse> list(core.String id) { |
2771 var _url = null; | 3411 var _url = null; |
2772 var _queryParams = new core.Map(); | 3412 var _queryParams = new core.Map(); |
2773 var _uploadMedia = null; | 3413 var _uploadMedia = null; |
2774 var _uploadOptions = null; | 3414 var _uploadOptions = null; |
2775 var _downloadOptions = common.DownloadOptions.Metadata; | 3415 var _downloadOptions = common.DownloadOptions.Metadata; |
2776 var _body = null; | 3416 var _body = null; |
2777 | 3417 |
2778 if (id == null) { | 3418 if (id == null) { |
2779 throw new core.ArgumentError("Parameter id is required."); | 3419 throw new core.ArgumentError("Parameter id is required."); |
2780 } | 3420 } |
2781 if (maxResults != null) { | |
2782 _queryParams["maxResults"] = ["${maxResults}"]; | |
2783 } | |
2784 if (pageToken != null) { | |
2785 _queryParams["pageToken"] = [pageToken]; | |
2786 } | |
2787 | 3421 |
2788 | 3422 |
2789 _url = 'rasters/' + common_internal.Escaper.ecapeVariable('$id') + '/parents
'; | 3423 _url = 'rasters/' + common_internal.Escaper.ecapeVariable('$id') + '/permiss
ions'; |
2790 | 3424 |
2791 var _response = _requester.request(_url, | 3425 var _response = _requester.request(_url, |
2792 "GET", | 3426 "GET", |
2793 body: _body, | 3427 body: _body, |
2794 queryParams: _queryParams, | 3428 queryParams: _queryParams, |
2795 uploadOptions: _uploadOptions, | 3429 uploadOptions: _uploadOptions, |
2796 uploadMedia: _uploadMedia, | 3430 uploadMedia: _uploadMedia, |
2797 downloadOptions: _downloadOptions); | 3431 downloadOptions: _downloadOptions); |
2798 return _response.then((data) => new ParentsListResponse.fromJson(data)); | 3432 return _response.then((data) => new PermissionsListResponse.fromJson(data)); |
2799 } | 3433 } |
2800 | 3434 |
2801 } | 3435 } |
2802 | 3436 |
2803 | 3437 |
2804 /** Not documented yet. */ | 3438 /** Not documented yet. */ |
2805 class TablesResourceApi { | 3439 class TablesResourceApi { |
2806 final common_internal.ApiRequester _requester; | 3440 final common_internal.ApiRequester _requester; |
2807 | 3441 |
2808 TablesFeaturesResourceApi get features => new TablesFeaturesResourceApi(_reque
ster); | 3442 TablesFeaturesResourceApi get features => new TablesFeaturesResourceApi(_reque
ster); |
2809 TablesFilesResourceApi get files => new TablesFilesResourceApi(_requester); | 3443 TablesFilesResourceApi get files => new TablesFilesResourceApi(_requester); |
2810 TablesParentsResourceApi get parents => new TablesParentsResourceApi(_requeste
r); | 3444 TablesParentsResourceApi get parents => new TablesParentsResourceApi(_requeste
r); |
| 3445 TablesPermissionsResourceApi get permissions => new TablesPermissionsResourceA
pi(_requester); |
2811 | 3446 |
2812 TablesResourceApi(common_internal.ApiRequester client) : | 3447 TablesResourceApi(common_internal.ApiRequester client) : |
2813 _requester = client; | 3448 _requester = client; |
2814 | 3449 |
2815 /** | 3450 /** |
2816 * Create a table asset. | 3451 * Create a table asset. |
2817 * | 3452 * |
2818 * [request] - The metadata request object. | 3453 * [request] - The metadata request object. |
2819 * | 3454 * |
2820 * Request parameters: | 3455 * Request parameters: |
(...skipping 800 matching lines...) Loading... |
3621 * page. The maximum supported value is 50. | 4256 * page. The maximum supported value is 50. |
3622 * | 4257 * |
3623 * [pageToken] - The continuation token, used to page through large result | 4258 * [pageToken] - The continuation token, used to page through large result |
3624 * sets. To get the next page of results, set this parameter to the value of | 4259 * sets. To get the next page of results, set this parameter to the value of |
3625 * nextPageToken from the previous response. | 4260 * nextPageToken from the previous response. |
3626 * | 4261 * |
3627 * Completes with a [ParentsListResponse]. | 4262 * Completes with a [ParentsListResponse]. |
3628 * | 4263 * |
3629 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 4264 * Completes with a [common.ApiRequestError] if the API endpoint returned an |
3630 * error. | 4265 * error. |
| 4266 * |
| 4267 * If the used [http.Client] completes with an error when making a REST call, |
| 4268 * this method will complete with the same error. |
| 4269 */ |
| 4270 async.Future<ParentsListResponse> list(core.String id, {core.int maxResults, c
ore.String pageToken}) { |
| 4271 var _url = null; |
| 4272 var _queryParams = new core.Map(); |
| 4273 var _uploadMedia = null; |
| 4274 var _uploadOptions = null; |
| 4275 var _downloadOptions = common.DownloadOptions.Metadata; |
| 4276 var _body = null; |
| 4277 |
| 4278 if (id == null) { |
| 4279 throw new core.ArgumentError("Parameter id is required."); |
| 4280 } |
| 4281 if (maxResults != null) { |
| 4282 _queryParams["maxResults"] = ["${maxResults}"]; |
| 4283 } |
| 4284 if (pageToken != null) { |
| 4285 _queryParams["pageToken"] = [pageToken]; |
| 4286 } |
| 4287 |
| 4288 |
| 4289 _url = 'tables/' + common_internal.Escaper.ecapeVariable('$id') + '/parents'
; |
| 4290 |
| 4291 var _response = _requester.request(_url, |
| 4292 "GET", |
| 4293 body: _body, |
| 4294 queryParams: _queryParams, |
| 4295 uploadOptions: _uploadOptions, |
| 4296 uploadMedia: _uploadMedia, |
| 4297 downloadOptions: _downloadOptions); |
| 4298 return _response.then((data) => new ParentsListResponse.fromJson(data)); |
| 4299 } |
| 4300 |
| 4301 } |
| 4302 |
| 4303 |
| 4304 /** Not documented yet. */ |
| 4305 class TablesPermissionsResourceApi { |
| 4306 final common_internal.ApiRequester _requester; |
| 4307 |
| 4308 TablesPermissionsResourceApi(common_internal.ApiRequester client) : |
| 4309 _requester = client; |
| 4310 |
| 4311 /** |
| 4312 * Remove permission entries from an already existing asset. |
| 4313 * |
| 4314 * [request] - The metadata request object. |
| 4315 * |
| 4316 * Request parameters: |
| 4317 * |
| 4318 * [id] - The ID of the asset from which permissions will be removed. |
| 4319 * |
| 4320 * Completes with a [PermissionsBatchDeleteResponse]. |
| 4321 * |
| 4322 * Completes with a [common.ApiRequestError] if the API endpoint returned an |
| 4323 * error. |
| 4324 * |
| 4325 * If the used [http.Client] completes with an error when making a REST call, |
| 4326 * this method will complete with the same error. |
| 4327 */ |
| 4328 async.Future<PermissionsBatchDeleteResponse> batchDelete(PermissionsBatchDelet
eRequest request, core.String id) { |
| 4329 var _url = null; |
| 4330 var _queryParams = new core.Map(); |
| 4331 var _uploadMedia = null; |
| 4332 var _uploadOptions = null; |
| 4333 var _downloadOptions = common.DownloadOptions.Metadata; |
| 4334 var _body = null; |
| 4335 |
| 4336 if (request != null) { |
| 4337 _body = convert.JSON.encode((request).toJson()); |
| 4338 } |
| 4339 if (id == null) { |
| 4340 throw new core.ArgumentError("Parameter id is required."); |
| 4341 } |
| 4342 |
| 4343 |
| 4344 _url = 'tables/' + common_internal.Escaper.ecapeVariable('$id') + '/permissi
ons/batchDelete'; |
| 4345 |
| 4346 var _response = _requester.request(_url, |
| 4347 "POST", |
| 4348 body: _body, |
| 4349 queryParams: _queryParams, |
| 4350 uploadOptions: _uploadOptions, |
| 4351 uploadMedia: _uploadMedia, |
| 4352 downloadOptions: _downloadOptions); |
| 4353 return _response.then((data) => new PermissionsBatchDeleteResponse.fromJson(
data)); |
| 4354 } |
| 4355 |
| 4356 /** |
| 4357 * Add or update permission entries to an already existing asset. |
| 4358 * |
| 4359 * An asset can hold up to 20 different permission entries. Each batchInsert |
| 4360 * request is atomic. |
| 4361 * |
| 4362 * [request] - The metadata request object. |
| 4363 * |
| 4364 * Request parameters: |
| 4365 * |
| 4366 * [id] - The ID of the asset to which permissions will be added. |
| 4367 * |
| 4368 * Completes with a [PermissionsBatchUpdateResponse]. |
| 4369 * |
| 4370 * Completes with a [common.ApiRequestError] if the API endpoint returned an |
| 4371 * error. |
| 4372 * |
| 4373 * If the used [http.Client] completes with an error when making a REST call, |
| 4374 * this method will complete with the same error. |
| 4375 */ |
| 4376 async.Future<PermissionsBatchUpdateResponse> batchUpdate(PermissionsBatchUpdat
eRequest request, core.String id) { |
| 4377 var _url = null; |
| 4378 var _queryParams = new core.Map(); |
| 4379 var _uploadMedia = null; |
| 4380 var _uploadOptions = null; |
| 4381 var _downloadOptions = common.DownloadOptions.Metadata; |
| 4382 var _body = null; |
| 4383 |
| 4384 if (request != null) { |
| 4385 _body = convert.JSON.encode((request).toJson()); |
| 4386 } |
| 4387 if (id == null) { |
| 4388 throw new core.ArgumentError("Parameter id is required."); |
| 4389 } |
| 4390 |
| 4391 |
| 4392 _url = 'tables/' + common_internal.Escaper.ecapeVariable('$id') + '/permissi
ons/batchUpdate'; |
| 4393 |
| 4394 var _response = _requester.request(_url, |
| 4395 "POST", |
| 4396 body: _body, |
| 4397 queryParams: _queryParams, |
| 4398 uploadOptions: _uploadOptions, |
| 4399 uploadMedia: _uploadMedia, |
| 4400 downloadOptions: _downloadOptions); |
| 4401 return _response.then((data) => new PermissionsBatchUpdateResponse.fromJson(
data)); |
| 4402 } |
| 4403 |
| 4404 /** |
| 4405 * Return all of the permissions for the specified asset. |
| 4406 * |
| 4407 * Request parameters: |
| 4408 * |
| 4409 * [id] - The ID of the asset whose permissions will be listed. |
| 4410 * |
| 4411 * Completes with a [PermissionsListResponse]. |
| 4412 * |
| 4413 * Completes with a [common.ApiRequestError] if the API endpoint returned an |
| 4414 * error. |
3631 * | 4415 * |
3632 * If the used [http.Client] completes with an error when making a REST call, | 4416 * If the used [http.Client] completes with an error when making a REST call, |
3633 * this method will complete with the same error. | 4417 * this method will complete with the same error. |
3634 */ | 4418 */ |
3635 async.Future<ParentsListResponse> list(core.String id, {core.int maxResults, c
ore.String pageToken}) { | 4419 async.Future<PermissionsListResponse> list(core.String id) { |
3636 var _url = null; | 4420 var _url = null; |
3637 var _queryParams = new core.Map(); | 4421 var _queryParams = new core.Map(); |
3638 var _uploadMedia = null; | 4422 var _uploadMedia = null; |
3639 var _uploadOptions = null; | 4423 var _uploadOptions = null; |
3640 var _downloadOptions = common.DownloadOptions.Metadata; | 4424 var _downloadOptions = common.DownloadOptions.Metadata; |
3641 var _body = null; | 4425 var _body = null; |
3642 | 4426 |
3643 if (id == null) { | 4427 if (id == null) { |
3644 throw new core.ArgumentError("Parameter id is required."); | 4428 throw new core.ArgumentError("Parameter id is required."); |
3645 } | 4429 } |
3646 if (maxResults != null) { | |
3647 _queryParams["maxResults"] = ["${maxResults}"]; | |
3648 } | |
3649 if (pageToken != null) { | |
3650 _queryParams["pageToken"] = [pageToken]; | |
3651 } | |
3652 | 4430 |
3653 | 4431 |
3654 _url = 'tables/' + common_internal.Escaper.ecapeVariable('$id') + '/parents'
; | 4432 _url = 'tables/' + common_internal.Escaper.ecapeVariable('$id') + '/permissi
ons'; |
3655 | 4433 |
3656 var _response = _requester.request(_url, | 4434 var _response = _requester.request(_url, |
3657 "GET", | 4435 "GET", |
3658 body: _body, | 4436 body: _body, |
3659 queryParams: _queryParams, | 4437 queryParams: _queryParams, |
3660 uploadOptions: _uploadOptions, | 4438 uploadOptions: _uploadOptions, |
3661 uploadMedia: _uploadMedia, | 4439 uploadMedia: _uploadMedia, |
3662 downloadOptions: _downloadOptions); | 4440 downloadOptions: _downloadOptions); |
3663 return _response.then((data) => new ParentsListResponse.fromJson(data)); | 4441 return _response.then((data) => new PermissionsListResponse.fromJson(data)); |
3664 } | 4442 } |
3665 | 4443 |
3666 } | 4444 } |
3667 | 4445 |
3668 | 4446 |
3669 | 4447 |
3670 /** Acquisition time represents acquired time of a raster. */ | 4448 /** Acquisition time represents acquired time of a raster. */ |
3671 class AcquisitionTime { | 4449 class AcquisitionTime { |
3672 /** | 4450 /** |
3673 * The end time if acquisition time is a range. The value is an RFC 3339 | 4451 * The end time if acquisition time is a range. The value is an RFC 3339 |
(...skipping 54 matching lines...) Loading... |
3728 * An asset is any Google Maps Engine resource that has a globally unique ID. | 4506 * An asset is any Google Maps Engine resource that has a globally unique ID. |
3729 * Assets include maps, layers, vector tables, raster collections, and rasters. | 4507 * Assets include maps, layers, vector tables, raster collections, and rasters. |
3730 * Projects and features are not considered assets. | 4508 * Projects and features are not considered assets. |
3731 * | 4509 * |
3732 * More detailed information about an asset can be obtained by querying the | 4510 * More detailed information about an asset can be obtained by querying the |
3733 * asset's particular endpoint. | 4511 * asset's particular endpoint. |
3734 */ | 4512 */ |
3735 class Asset { | 4513 class Asset { |
3736 /** | 4514 /** |
3737 * A rectangular bounding box which contains all of the data in this asset. | 4515 * A rectangular bounding box which contains all of the data in this asset. |
3738 * The numbers represent latitude and longitude in decimal degrees. | 4516 * The box is expressed as \"west, south, east, north\". The numbers represent |
| 4517 * latitude and longitude in decimal degrees. |
3739 */ | 4518 */ |
3740 core.List<core.double> bbox; | 4519 core.List<core.double> bbox; |
3741 | 4520 |
3742 /** | 4521 /** |
3743 * The creation time of this asset. The value is an RFC 3339-formatted | 4522 * The creation time of this asset. The value is an RFC 3339-formatted |
3744 * date-time value (for example, 1970-01-01T00:00:00Z). | 4523 * date-time value (for example, 1970-01-01T00:00:00Z). |
3745 */ | 4524 */ |
3746 core.DateTime creationTime; | 4525 core.DateTime creationTime; |
3747 | 4526 |
| 4527 /** |
| 4528 * The email address of the creator of this asset. This is only returned on |
| 4529 * GET requests and not LIST requests. |
| 4530 */ |
| 4531 core.String creatorEmail; |
| 4532 |
3748 /** The asset's description. */ | 4533 /** The asset's description. */ |
3749 core.String description; | 4534 core.String description; |
3750 | 4535 |
3751 /** The ETag, used to refer to the current version of the asset. */ | 4536 /** The ETag, used to refer to the current version of the asset. */ |
3752 core.String etag; | 4537 core.String etag; |
3753 | 4538 |
3754 /** The asset's globally unique ID. */ | 4539 /** The asset's globally unique ID. */ |
3755 core.String id; | 4540 core.String id; |
3756 | 4541 |
3757 /** | 4542 /** |
3758 * The last modified time of this asset. The value is an RFC 3339-formatted | 4543 * The last modified time of this asset. The value is an RFC 3339-formatted |
3759 * date-time value (for example, 1970-01-01T00:00:00Z). | 4544 * date-time value (for example, 1970-01-01T00:00:00Z). |
3760 */ | 4545 */ |
3761 core.DateTime lastModifiedTime; | 4546 core.DateTime lastModifiedTime; |
3762 | 4547 |
| 4548 /** |
| 4549 * The email address of the last modifier of this asset. This is only returned |
| 4550 * on GET requests and not LIST requests. |
| 4551 */ |
| 4552 core.String lastModifierEmail; |
| 4553 |
3763 /** The asset's name. */ | 4554 /** The asset's name. */ |
3764 core.String name; | 4555 core.String name; |
3765 | 4556 |
3766 /** The ID of the project to which the asset belongs. */ | 4557 /** The ID of the project to which the asset belongs. */ |
3767 core.String projectId; | 4558 core.String projectId; |
3768 | 4559 |
3769 /** | 4560 /** |
3770 * The URL to query to retrieve the asset's complete object. The assets | 4561 * The URL to query to retrieve the asset's complete object. The assets |
3771 * endpoint only returns high-level information about a resource. | 4562 * endpoint only returns high-level information about a resource. |
3772 */ | 4563 */ |
(...skipping 10 matching lines...) Loading... |
3783 * The type of asset. One of raster, rasterCollection, table, map, or layer. | 4574 * The type of asset. One of raster, rasterCollection, table, map, or layer. |
3784 * Possible string values are: | 4575 * Possible string values are: |
3785 * - "layer" | 4576 * - "layer" |
3786 * - "map" | 4577 * - "map" |
3787 * - "raster" | 4578 * - "raster" |
3788 * - "rasterCollection" | 4579 * - "rasterCollection" |
3789 * - "table" | 4580 * - "table" |
3790 */ | 4581 */ |
3791 core.String type; | 4582 core.String type; |
3792 | 4583 |
| 4584 /** If true, WRITERs of the asset are able to edit the asset permissions. */ |
| 4585 core.bool writersCanEditPermissions; |
| 4586 |
3793 | 4587 |
3794 Asset(); | 4588 Asset(); |
3795 | 4589 |
3796 Asset.fromJson(core.Map _json) { | 4590 Asset.fromJson(core.Map _json) { |
3797 if (_json.containsKey("bbox")) { | 4591 if (_json.containsKey("bbox")) { |
3798 bbox = _json["bbox"]; | 4592 bbox = _json["bbox"]; |
3799 } | 4593 } |
3800 if (_json.containsKey("creationTime")) { | 4594 if (_json.containsKey("creationTime")) { |
3801 creationTime = core.DateTime.parse(_json["creationTime"]); | 4595 creationTime = core.DateTime.parse(_json["creationTime"]); |
3802 } | 4596 } |
| 4597 if (_json.containsKey("creatorEmail")) { |
| 4598 creatorEmail = _json["creatorEmail"]; |
| 4599 } |
3803 if (_json.containsKey("description")) { | 4600 if (_json.containsKey("description")) { |
3804 description = _json["description"]; | 4601 description = _json["description"]; |
3805 } | 4602 } |
3806 if (_json.containsKey("etag")) { | 4603 if (_json.containsKey("etag")) { |
3807 etag = _json["etag"]; | 4604 etag = _json["etag"]; |
3808 } | 4605 } |
3809 if (_json.containsKey("id")) { | 4606 if (_json.containsKey("id")) { |
3810 id = _json["id"]; | 4607 id = _json["id"]; |
3811 } | 4608 } |
3812 if (_json.containsKey("lastModifiedTime")) { | 4609 if (_json.containsKey("lastModifiedTime")) { |
3813 lastModifiedTime = core.DateTime.parse(_json["lastModifiedTime"]); | 4610 lastModifiedTime = core.DateTime.parse(_json["lastModifiedTime"]); |
3814 } | 4611 } |
| 4612 if (_json.containsKey("lastModifierEmail")) { |
| 4613 lastModifierEmail = _json["lastModifierEmail"]; |
| 4614 } |
3815 if (_json.containsKey("name")) { | 4615 if (_json.containsKey("name")) { |
3816 name = _json["name"]; | 4616 name = _json["name"]; |
3817 } | 4617 } |
3818 if (_json.containsKey("projectId")) { | 4618 if (_json.containsKey("projectId")) { |
3819 projectId = _json["projectId"]; | 4619 projectId = _json["projectId"]; |
3820 } | 4620 } |
3821 if (_json.containsKey("resource")) { | 4621 if (_json.containsKey("resource")) { |
3822 resource = _json["resource"]; | 4622 resource = _json["resource"]; |
3823 } | 4623 } |
3824 if (_json.containsKey("tags")) { | 4624 if (_json.containsKey("tags")) { |
3825 tags = _json["tags"]; | 4625 tags = _json["tags"]; |
3826 } | 4626 } |
3827 if (_json.containsKey("type")) { | 4627 if (_json.containsKey("type")) { |
3828 type = _json["type"]; | 4628 type = _json["type"]; |
3829 } | 4629 } |
| 4630 if (_json.containsKey("writersCanEditPermissions")) { |
| 4631 writersCanEditPermissions = _json["writersCanEditPermissions"]; |
| 4632 } |
3830 } | 4633 } |
3831 | 4634 |
3832 core.Map toJson() { | 4635 core.Map toJson() { |
3833 var _json = new core.Map(); | 4636 var _json = new core.Map(); |
3834 if (bbox != null) { | 4637 if (bbox != null) { |
3835 _json["bbox"] = bbox; | 4638 _json["bbox"] = bbox; |
3836 } | 4639 } |
3837 if (creationTime != null) { | 4640 if (creationTime != null) { |
3838 _json["creationTime"] = (creationTime).toIso8601String(); | 4641 _json["creationTime"] = (creationTime).toIso8601String(); |
3839 } | 4642 } |
| 4643 if (creatorEmail != null) { |
| 4644 _json["creatorEmail"] = creatorEmail; |
| 4645 } |
3840 if (description != null) { | 4646 if (description != null) { |
3841 _json["description"] = description; | 4647 _json["description"] = description; |
3842 } | 4648 } |
3843 if (etag != null) { | 4649 if (etag != null) { |
3844 _json["etag"] = etag; | 4650 _json["etag"] = etag; |
3845 } | 4651 } |
3846 if (id != null) { | 4652 if (id != null) { |
3847 _json["id"] = id; | 4653 _json["id"] = id; |
3848 } | 4654 } |
3849 if (lastModifiedTime != null) { | 4655 if (lastModifiedTime != null) { |
3850 _json["lastModifiedTime"] = (lastModifiedTime).toIso8601String(); | 4656 _json["lastModifiedTime"] = (lastModifiedTime).toIso8601String(); |
3851 } | 4657 } |
| 4658 if (lastModifierEmail != null) { |
| 4659 _json["lastModifierEmail"] = lastModifierEmail; |
| 4660 } |
3852 if (name != null) { | 4661 if (name != null) { |
3853 _json["name"] = name; | 4662 _json["name"] = name; |
3854 } | 4663 } |
3855 if (projectId != null) { | 4664 if (projectId != null) { |
3856 _json["projectId"] = projectId; | 4665 _json["projectId"] = projectId; |
3857 } | 4666 } |
3858 if (resource != null) { | 4667 if (resource != null) { |
3859 _json["resource"] = resource; | 4668 _json["resource"] = resource; |
3860 } | 4669 } |
3861 if (tags != null) { | 4670 if (tags != null) { |
3862 _json["tags"] = tags; | 4671 _json["tags"] = tags; |
3863 } | 4672 } |
3864 if (type != null) { | 4673 if (type != null) { |
3865 _json["type"] = type; | 4674 _json["type"] = type; |
3866 } | 4675 } |
| 4676 if (writersCanEditPermissions != null) { |
| 4677 _json["writersCanEditPermissions"] = writersCanEditPermissions; |
| 4678 } |
3867 return _json; | 4679 return _json; |
3868 } | 4680 } |
3869 } | 4681 } |
3870 | 4682 |
3871 | 4683 |
3872 /** The response returned by a call to resources.List. */ | 4684 /** The response returned by a call to resources.List. */ |
3873 class AssetsListResponse { | 4685 class AssetsListResponse { |
3874 /** Assets returned. */ | 4686 /** Assets returned. */ |
3875 core.List<Asset> assets; | 4687 core.List<Asset> assets; |
3876 | 4688 |
(...skipping 338 matching lines...) Loading... |
4215 | 5027 |
4216 | 5028 |
4217 /** The request sent to features.Insert. */ | 5029 /** The request sent to features.Insert. */ |
4218 class FeaturesBatchInsertRequest { | 5030 class FeaturesBatchInsertRequest { |
4219 /** Not documented yet. */ | 5031 /** Not documented yet. */ |
4220 core.List<Feature> features; | 5032 core.List<Feature> features; |
4221 | 5033 |
4222 /** | 5034 /** |
4223 * If true, the server will normalize feature geometries. It is assumed that | 5035 * If true, the server will normalize feature geometries. It is assumed that |
4224 * the South Pole is exterior to any polygons given. See here for a list of | 5036 * the South Pole is exterior to any polygons given. See here for a list of |
4225 * normalizations. If false, the all feature geometries must be given already | 5037 * normalizations. If false, all feature geometries must be given already |
4226 * normalized. The points in all LinearRings must be listed in | 5038 * normalized. The points in all LinearRings must be listed in |
4227 * counter-clockwise order, and LinearRings may not intersect. | 5039 * counter-clockwise order, and LinearRings may not intersect. |
4228 */ | 5040 */ |
4229 core.bool normalizeGeometries; | 5041 core.bool normalizeGeometries; |
4230 | 5042 |
4231 | 5043 |
4232 FeaturesBatchInsertRequest(); | 5044 FeaturesBatchInsertRequest(); |
4233 | 5045 |
4234 FeaturesBatchInsertRequest.fromJson(core.Map _json) { | 5046 FeaturesBatchInsertRequest.fromJson(core.Map _json) { |
4235 if (_json.containsKey("features")) { | 5047 if (_json.containsKey("features")) { |
(...skipping 18 matching lines...) Loading... |
4254 | 5066 |
4255 | 5067 |
4256 /** The request sent to features.BatchPatch. */ | 5068 /** The request sent to features.BatchPatch. */ |
4257 class FeaturesBatchPatchRequest { | 5069 class FeaturesBatchPatchRequest { |
4258 /** Not documented yet. */ | 5070 /** Not documented yet. */ |
4259 core.List<Feature> features; | 5071 core.List<Feature> features; |
4260 | 5072 |
4261 /** | 5073 /** |
4262 * If true, the server will normalize feature geometries. It is assumed that | 5074 * If true, the server will normalize feature geometries. It is assumed that |
4263 * the South Pole is exterior to any polygons given. See here for a list of | 5075 * the South Pole is exterior to any polygons given. See here for a list of |
4264 * normalizations. If false, the all feature geometries must be given already | 5076 * normalizations. If false, all feature geometries must be given already |
4265 * normalized. The points in all LinearRings must be listed in | 5077 * normalized. The points in all LinearRings must be listed in |
4266 * counter-clockwise order, and LinearRings may not intersect. | 5078 * counter-clockwise order, and LinearRings may not intersect. |
4267 */ | 5079 */ |
4268 core.bool normalizeGeometries; | 5080 core.bool normalizeGeometries; |
4269 | 5081 |
4270 | 5082 |
4271 FeaturesBatchPatchRequest(); | 5083 FeaturesBatchPatchRequest(); |
4272 | 5084 |
4273 FeaturesBatchPatchRequest.fromJson(core.Map _json) { | 5085 FeaturesBatchPatchRequest.fromJson(core.Map _json) { |
4274 if (_json.containsKey("features")) { | 5086 if (_json.containsKey("features")) { |
(...skipping 425 matching lines...) Loading... |
4700 _json["type"] = type; | 5512 _json["type"] = type; |
4701 } | 5513 } |
4702 return _json; | 5514 return _json; |
4703 } | 5515 } |
4704 } | 5516 } |
4705 | 5517 |
4706 | 5518 |
4707 /** Not documented yet. */ | 5519 /** Not documented yet. */ |
4708 class GeoJsonPolygon extends GeoJsonGeometry { | 5520 class GeoJsonPolygon extends GeoJsonGeometry { |
4709 /** | 5521 /** |
4710 * An array of LinearRings, each of which is an array of four or more | 5522 * An array of LinearRings. A LinearRing is a GeoJsonLineString which is |
4711 * GeoJsonPositions. The first and last coordinates in each LinearRing must be | 5523 * closed (that is, the first and last GeoJsonPositions are equal), and which |
4712 * the same. For polygons with multiple rings, the first LinearRing is the | 5524 * contains at least four GeoJsonPositions. For polygons with multiple rings, |
4713 * external ring, with subsequent rings being interior rings (i.e. hole). All | 5525 * the first LinearRing is the exterior ring, and any subsequent rings are |
4714 * LinearRings must contain GeoJsonPositions in counter-clockwise order. | 5526 * interior rings (that is, holes). |
4715 */ | 5527 */ |
4716 core.List<core.List<GeoJsonPosition>> coordinates; | 5528 core.List<core.List<GeoJsonPosition>> coordinates; |
4717 | 5529 |
4718 /** | 5530 /** |
4719 * Identifies this object as a GeoJsonPolygon. | 5531 * Identifies this object as a GeoJsonPolygon. |
4720 * Possible string values are: | 5532 * Possible string values are: |
4721 * - "Polygon" | 5533 * - "Polygon" |
4722 */ | 5534 */ |
4723 final core.String type = "Polygon"; | 5535 final core.String type = "Polygon"; |
4724 | 5536 |
(...skipping 350 matching lines...) Loading... |
5075 } | 5887 } |
5076 | 5888 |
5077 | 5889 |
5078 /** | 5890 /** |
5079 * A Layer combines multiple datasources, with styling information, for | 5891 * A Layer combines multiple datasources, with styling information, for |
5080 * presentation on a map. | 5892 * presentation on a map. |
5081 */ | 5893 */ |
5082 class Layer { | 5894 class Layer { |
5083 /** | 5895 /** |
5084 * A rectangular bounding box which contains all of the data in this Layer. | 5896 * A rectangular bounding box which contains all of the data in this Layer. |
5085 * The numbers represent latitude and longitude in decimal degrees. | 5897 * The box is expressed as \"west, south, east, north\". The numbers represent |
| 5898 * latitude and longitude in decimal degrees. |
5086 */ | 5899 */ |
5087 core.List<core.double> bbox; | 5900 core.List<core.double> bbox; |
5088 | 5901 |
5089 /** | 5902 /** |
5090 * The creation time of this layer. The value is an RFC 3339 formatted | 5903 * The creation time of this layer. The value is an RFC 3339 formatted |
5091 * date-time value (e.g. 1970-01-01T00:00:00Z). | 5904 * date-time value (e.g. 1970-01-01T00:00:00Z). |
5092 */ | 5905 */ |
5093 core.DateTime creationTime; | 5906 core.DateTime creationTime; |
5094 | 5907 |
5095 /** | 5908 /** |
| 5909 * The email address of the creator of this layer. This is only returned on |
| 5910 * GET requests and not LIST requests. |
| 5911 */ |
| 5912 core.String creatorEmail; |
| 5913 |
| 5914 /** |
5096 * Deprecated: The type of the datasources used to build this Layer. Note: | 5915 * Deprecated: The type of the datasources used to build this Layer. Note: |
5097 * This has been replaced by layerType, but is still available for now to | 5916 * This has been replaced by layerType, but is still available for now to |
5098 * maintain backward compatibility. | 5917 * maintain backward compatibility. |
5099 * Possible string values are: | 5918 * Possible string values are: |
5100 * - "image" | 5919 * - "image" |
5101 * - "table" | 5920 * - "table" |
5102 */ | 5921 */ |
5103 core.String datasourceType; | 5922 core.String datasourceType; |
5104 | 5923 |
5105 /** | 5924 /** |
5106 * An array of datasources used to build this Layer. If layerType is "image", | 5925 * An array of datasources used to build this layer. If layerType is "image", |
5107 * or layerType is not specified and datasourceType is "image", then each | 5926 * or layerType is not specified and datasourceType is "image", then each |
5108 * element in this array is a reference to an Image or RasterCollection. If | 5927 * element in this array is a reference to an Image or RasterCollection. If |
5109 * layerType is "vector", or layerType is not specified and datasourceType is | 5928 * layerType is "vector", or layerType is not specified and datasourceType is |
5110 * "table" then each element in this array is a reference to a Vector Table. | 5929 * "table" then each element in this array is a reference to a Vector Table. |
5111 */ | 5930 */ |
5112 Datasources datasources; | 5931 Datasources datasources; |
5113 | 5932 |
5114 /** The description of this Layer, supplied by the author. */ | 5933 /** The description of this Layer, supplied by the author. */ |
5115 core.String description; | 5934 core.String description; |
5116 | 5935 |
5117 /** | 5936 /** |
5118 * Deprecated: The name of an access list of the Map Editor type. The user on | 5937 * Deprecated: The name of an access list of the Map Editor type. The user on |
5119 * whose behalf the request is being sent must be an editor on that access | 5938 * whose behalf the request is being sent must be an editor on that access |
5120 * list. Note: Google Maps Engine no longer uses access lists. For backward | 5939 * list. Note: Google Maps Engine no longer uses access lists. Instead, each |
5121 * compatibility, the API still accepts access lists for projects that are | 5940 * asset has its own list of permissions. For backward compatibility, the API |
5122 * already using access lists. If you created a GME account/project after July | 5941 * still accepts access lists for projects that are already using access |
5123 * 14th, 2014, you will not be able to send API requests that include access | 5942 * lists. If you created a GME account/project after July 14th, 2014, you will |
5124 * lists. The API does not yet support the new permissions model. When you | 5943 * not be able to send API requests that include access lists. Note: This is |
5125 * create a map via the API without specifying permissions, the account that | 5944 * an input field only. It is not returned in response to a list or get |
5126 * created the map is the owner and has effective administrator access. Users | 5945 * request. |
5127 * can then use the Maps Engine user interface to adjust the permissions. This | |
5128 * is a temporary workaround until the API supports the new permissions model. | |
5129 * Read Add new users and groups in the Google Maps Engine help center for | |
5130 * more information. | |
5131 */ | 5946 */ |
5132 core.String draftAccessList; | 5947 core.String draftAccessList; |
5133 | 5948 |
5134 /** The ETag, used to refer to the current version of the asset. */ | 5949 /** The ETag, used to refer to the current version of the asset. */ |
5135 core.String etag; | 5950 core.String etag; |
5136 | 5951 |
5137 /** A globally unique ID, used to refer to this Layer. */ | 5952 /** A globally unique ID, used to refer to this Layer. */ |
5138 core.String id; | 5953 core.String id; |
5139 | 5954 |
5140 /** | 5955 /** |
5141 * The last modified time of this layer. The value is an RFC 3339 formatted | 5956 * The last modified time of this layer. The value is an RFC 3339 formatted |
5142 * date-time value (e.g. 1970-01-01T00:00:00Z). | 5957 * date-time value (e.g. 1970-01-01T00:00:00Z). |
5143 */ | 5958 */ |
5144 core.DateTime lastModifiedTime; | 5959 core.DateTime lastModifiedTime; |
5145 | 5960 |
5146 /** | 5961 /** |
| 5962 * The email address of the last modifier of this layer. This is only returned |
| 5963 * on GET requests and not LIST requests. |
| 5964 */ |
| 5965 core.String lastModifierEmail; |
| 5966 |
| 5967 /** |
5147 * The type of the datasources used to build this Layer. This should be used | 5968 * The type of the datasources used to build this Layer. This should be used |
5148 * instead of datasourceType. At least one of layerType and datasourceType and | 5969 * instead of datasourceType. At least one of layerType and datasourceType and |
5149 * must be specified, but layerType takes precedence. | 5970 * must be specified, but layerType takes precedence. |
5150 * Possible string values are: | 5971 * Possible string values are: |
5151 * - "image" | 5972 * - "image" |
5152 * - "vector" | 5973 * - "vector" |
5153 */ | 5974 */ |
5154 core.String layerType; | 5975 core.String layerType; |
5155 | 5976 |
5156 /** The name of this Layer, supplied by the author. */ | 5977 /** The name of this Layer, supplied by the author. */ |
5157 core.String name; | 5978 core.String name; |
5158 | 5979 |
5159 /** | 5980 /** |
5160 * The processing status of this layer. | 5981 * The processing status of this layer. |
5161 * Possible string values are: | 5982 * Possible string values are: |
5162 * - "complete" | 5983 * - "complete" |
5163 * - "failed" | 5984 * - "failed" |
5164 * - "notReady" | 5985 * - "notReady" |
5165 * - "processing" | 5986 * - "processing" |
5166 * - "ready" | 5987 * - "ready" |
5167 */ | 5988 */ |
5168 core.String processingStatus; | 5989 core.String processingStatus; |
5169 | 5990 |
5170 /** The ID of the project that this Layer is in. */ | 5991 /** The ID of the project that this Layer is in. */ |
5171 core.String projectId; | 5992 core.String projectId; |
5172 | 5993 |
5173 /** | 5994 /** |
5174 * Deprecated: The access list to whom view permissions are granted. The value | 5995 * Deprecated: The access list to whom view permissions are granted. The value |
5175 * must be the name of a Maps Engine access list of the Map Viewer type, and | 5996 * must be the name of a Maps Engine access list of the Map Viewer type, and |
5176 * the user must be a viewer on that list. Read Share data, layers, and maps | 5997 * the user must be a viewer on that list. Note: Google Maps Engine no longer |
5177 * in the Google Maps Engine help center for more information. | 5998 * uses access lists. Instead, each asset has its own list of permissions. For |
| 5999 * backward compatibility, the API still accepts access lists for projects |
| 6000 * that are already using access lists. If you created a GME account/project |
| 6001 * after July 14th, 2014, you will not be able to send API requests that |
| 6002 * include access lists. Note: This is an input field only. It is not returned |
| 6003 * in response to a list or get request. |
5178 */ | 6004 */ |
5179 core.String publishedAccessList; | 6005 core.String publishedAccessList; |
5180 | 6006 |
5181 /** | 6007 /** |
5182 * The publishing status of this layer. | 6008 * The publishing status of this layer. |
5183 * Possible string values are: | 6009 * Possible string values are: |
5184 * - "notPublished" | 6010 * - "notPublished" |
5185 * - "published" | 6011 * - "published" |
5186 */ | 6012 */ |
5187 core.String publishingStatus; | 6013 core.String publishingStatus; |
5188 | 6014 |
5189 /** The Styling information for a vector layer. */ | 6015 /** |
| 6016 * The styling information for a vector layer. Note: Style information is |
| 6017 * returned in response to a get request but not a list request. After |
| 6018 * requesting a list of layers, you'll need to send a get request to retrieve |
| 6019 * the VectorStyles for each layer. |
| 6020 */ |
5190 VectorStyle style; | 6021 VectorStyle style; |
5191 | 6022 |
5192 /** Tags of this Layer. */ | 6023 /** Tags of this Layer. */ |
5193 Tags tags; | 6024 Tags tags; |
5194 | 6025 |
| 6026 /** If true, WRITERs of the asset are able to edit the asset permissions. */ |
| 6027 core.bool writersCanEditPermissions; |
| 6028 |
5195 | 6029 |
5196 Layer(); | 6030 Layer(); |
5197 | 6031 |
5198 Layer.fromJson(core.Map _json) { | 6032 Layer.fromJson(core.Map _json) { |
5199 if (_json.containsKey("bbox")) { | 6033 if (_json.containsKey("bbox")) { |
5200 bbox = _json["bbox"]; | 6034 bbox = _json["bbox"]; |
5201 } | 6035 } |
5202 if (_json.containsKey("creationTime")) { | 6036 if (_json.containsKey("creationTime")) { |
5203 creationTime = core.DateTime.parse(_json["creationTime"]); | 6037 creationTime = core.DateTime.parse(_json["creationTime"]); |
5204 } | 6038 } |
| 6039 if (_json.containsKey("creatorEmail")) { |
| 6040 creatorEmail = _json["creatorEmail"]; |
| 6041 } |
5205 if (_json.containsKey("datasourceType")) { | 6042 if (_json.containsKey("datasourceType")) { |
5206 datasourceType = _json["datasourceType"]; | 6043 datasourceType = _json["datasourceType"]; |
5207 } | 6044 } |
5208 if (_json.containsKey("datasources")) { | 6045 if (_json.containsKey("datasources")) { |
5209 datasources = new Datasources.fromJson(_json["datasources"]); | 6046 datasources = new Datasources.fromJson(_json["datasources"]); |
5210 } | 6047 } |
5211 if (_json.containsKey("description")) { | 6048 if (_json.containsKey("description")) { |
5212 description = _json["description"]; | 6049 description = _json["description"]; |
5213 } | 6050 } |
5214 if (_json.containsKey("draftAccessList")) { | 6051 if (_json.containsKey("draftAccessList")) { |
5215 draftAccessList = _json["draftAccessList"]; | 6052 draftAccessList = _json["draftAccessList"]; |
5216 } | 6053 } |
5217 if (_json.containsKey("etag")) { | 6054 if (_json.containsKey("etag")) { |
5218 etag = _json["etag"]; | 6055 etag = _json["etag"]; |
5219 } | 6056 } |
5220 if (_json.containsKey("id")) { | 6057 if (_json.containsKey("id")) { |
5221 id = _json["id"]; | 6058 id = _json["id"]; |
5222 } | 6059 } |
5223 if (_json.containsKey("lastModifiedTime")) { | 6060 if (_json.containsKey("lastModifiedTime")) { |
5224 lastModifiedTime = core.DateTime.parse(_json["lastModifiedTime"]); | 6061 lastModifiedTime = core.DateTime.parse(_json["lastModifiedTime"]); |
5225 } | 6062 } |
| 6063 if (_json.containsKey("lastModifierEmail")) { |
| 6064 lastModifierEmail = _json["lastModifierEmail"]; |
| 6065 } |
5226 if (_json.containsKey("layerType")) { | 6066 if (_json.containsKey("layerType")) { |
5227 layerType = _json["layerType"]; | 6067 layerType = _json["layerType"]; |
5228 } | 6068 } |
5229 if (_json.containsKey("name")) { | 6069 if (_json.containsKey("name")) { |
5230 name = _json["name"]; | 6070 name = _json["name"]; |
5231 } | 6071 } |
5232 if (_json.containsKey("processingStatus")) { | 6072 if (_json.containsKey("processingStatus")) { |
5233 processingStatus = _json["processingStatus"]; | 6073 processingStatus = _json["processingStatus"]; |
5234 } | 6074 } |
5235 if (_json.containsKey("projectId")) { | 6075 if (_json.containsKey("projectId")) { |
5236 projectId = _json["projectId"]; | 6076 projectId = _json["projectId"]; |
5237 } | 6077 } |
5238 if (_json.containsKey("publishedAccessList")) { | 6078 if (_json.containsKey("publishedAccessList")) { |
5239 publishedAccessList = _json["publishedAccessList"]; | 6079 publishedAccessList = _json["publishedAccessList"]; |
5240 } | 6080 } |
5241 if (_json.containsKey("publishingStatus")) { | 6081 if (_json.containsKey("publishingStatus")) { |
5242 publishingStatus = _json["publishingStatus"]; | 6082 publishingStatus = _json["publishingStatus"]; |
5243 } | 6083 } |
5244 if (_json.containsKey("style")) { | 6084 if (_json.containsKey("style")) { |
5245 style = new VectorStyle.fromJson(_json["style"]); | 6085 style = new VectorStyle.fromJson(_json["style"]); |
5246 } | 6086 } |
5247 if (_json.containsKey("tags")) { | 6087 if (_json.containsKey("tags")) { |
5248 tags = new Tags.fromJson(_json["tags"]); | 6088 tags = new Tags.fromJson(_json["tags"]); |
5249 } | 6089 } |
| 6090 if (_json.containsKey("writersCanEditPermissions")) { |
| 6091 writersCanEditPermissions = _json["writersCanEditPermissions"]; |
| 6092 } |
5250 } | 6093 } |
5251 | 6094 |
5252 core.Map toJson() { | 6095 core.Map toJson() { |
5253 var _json = new core.Map(); | 6096 var _json = new core.Map(); |
5254 if (bbox != null) { | 6097 if (bbox != null) { |
5255 _json["bbox"] = bbox; | 6098 _json["bbox"] = bbox; |
5256 } | 6099 } |
5257 if (creationTime != null) { | 6100 if (creationTime != null) { |
5258 _json["creationTime"] = (creationTime).toIso8601String(); | 6101 _json["creationTime"] = (creationTime).toIso8601String(); |
5259 } | 6102 } |
| 6103 if (creatorEmail != null) { |
| 6104 _json["creatorEmail"] = creatorEmail; |
| 6105 } |
5260 if (datasourceType != null) { | 6106 if (datasourceType != null) { |
5261 _json["datasourceType"] = datasourceType; | 6107 _json["datasourceType"] = datasourceType; |
5262 } | 6108 } |
5263 if (datasources != null) { | 6109 if (datasources != null) { |
5264 _json["datasources"] = (datasources).toJson(); | 6110 _json["datasources"] = (datasources).toJson(); |
5265 } | 6111 } |
5266 if (description != null) { | 6112 if (description != null) { |
5267 _json["description"] = description; | 6113 _json["description"] = description; |
5268 } | 6114 } |
5269 if (draftAccessList != null) { | 6115 if (draftAccessList != null) { |
5270 _json["draftAccessList"] = draftAccessList; | 6116 _json["draftAccessList"] = draftAccessList; |
5271 } | 6117 } |
5272 if (etag != null) { | 6118 if (etag != null) { |
5273 _json["etag"] = etag; | 6119 _json["etag"] = etag; |
5274 } | 6120 } |
5275 if (id != null) { | 6121 if (id != null) { |
5276 _json["id"] = id; | 6122 _json["id"] = id; |
5277 } | 6123 } |
5278 if (lastModifiedTime != null) { | 6124 if (lastModifiedTime != null) { |
5279 _json["lastModifiedTime"] = (lastModifiedTime).toIso8601String(); | 6125 _json["lastModifiedTime"] = (lastModifiedTime).toIso8601String(); |
5280 } | 6126 } |
| 6127 if (lastModifierEmail != null) { |
| 6128 _json["lastModifierEmail"] = lastModifierEmail; |
| 6129 } |
5281 if (layerType != null) { | 6130 if (layerType != null) { |
5282 _json["layerType"] = layerType; | 6131 _json["layerType"] = layerType; |
5283 } | 6132 } |
5284 if (name != null) { | 6133 if (name != null) { |
5285 _json["name"] = name; | 6134 _json["name"] = name; |
5286 } | 6135 } |
5287 if (processingStatus != null) { | 6136 if (processingStatus != null) { |
5288 _json["processingStatus"] = processingStatus; | 6137 _json["processingStatus"] = processingStatus; |
5289 } | 6138 } |
5290 if (projectId != null) { | 6139 if (projectId != null) { |
5291 _json["projectId"] = projectId; | 6140 _json["projectId"] = projectId; |
5292 } | 6141 } |
5293 if (publishedAccessList != null) { | 6142 if (publishedAccessList != null) { |
5294 _json["publishedAccessList"] = publishedAccessList; | 6143 _json["publishedAccessList"] = publishedAccessList; |
5295 } | 6144 } |
5296 if (publishingStatus != null) { | 6145 if (publishingStatus != null) { |
5297 _json["publishingStatus"] = publishingStatus; | 6146 _json["publishingStatus"] = publishingStatus; |
5298 } | 6147 } |
5299 if (style != null) { | 6148 if (style != null) { |
5300 _json["style"] = (style).toJson(); | 6149 _json["style"] = (style).toJson(); |
5301 } | 6150 } |
5302 if (tags != null) { | 6151 if (tags != null) { |
5303 _json["tags"] = tags; | 6152 _json["tags"] = tags; |
5304 } | 6153 } |
| 6154 if (writersCanEditPermissions != null) { |
| 6155 _json["writersCanEditPermissions"] = writersCanEditPermissions; |
| 6156 } |
5305 return _json; | 6157 return _json; |
5306 } | 6158 } |
5307 } | 6159 } |
5308 | 6160 |
5309 | 6161 |
5310 /** The response returned by a call to layers.List. */ | 6162 /** |
| 6163 * The response returned by a call to layers.List. Note: The list response does |
| 6164 * not include all the fields available in a layer. Refer to the layer resource |
| 6165 * description for details of the fields that are not included. You'll need to |
| 6166 * send a get request to retrieve the additional fields for each layer. |
| 6167 */ |
5311 class LayersListResponse { | 6168 class LayersListResponse { |
5312 /** Resources returned. */ | 6169 /** Resources returned. */ |
5313 core.List<Layer> layers; | 6170 core.List<Layer> layers; |
5314 | 6171 |
5315 /** Next page token. */ | 6172 /** Next page token. */ |
5316 core.String nextPageToken; | 6173 core.String nextPageToken; |
5317 | 6174 |
5318 core.List<core.int> get nextPageTokenAsBytes { | 6175 core.List<core.int> get nextPageTokenAsBytes { |
5319 return crypto.CryptoUtils.base64StringToBytes(nextPageToken); | 6176 return crypto.CryptoUtils.base64StringToBytes(nextPageToken); |
5320 } | 6177 } |
(...skipping 125 matching lines...) Loading... |
5446 } | 6303 } |
5447 return _json; | 6304 return _json; |
5448 } | 6305 } |
5449 } | 6306 } |
5450 | 6307 |
5451 | 6308 |
5452 /** A Map is a collection of Layers, optionally contained within folders. */ | 6309 /** A Map is a collection of Layers, optionally contained within folders. */ |
5453 class Map { | 6310 class Map { |
5454 /** | 6311 /** |
5455 * A rectangular bounding box which contains all of the data in this Map. The | 6312 * A rectangular bounding box which contains all of the data in this Map. The |
5456 * numbers represent latitude and longitude in decimal degrees. | 6313 * box is expressed as \"west, south, east, north\". The numbers represent |
| 6314 * latitude and longitude in decimal degrees. |
5457 */ | 6315 */ |
5458 core.List<core.double> bbox; | 6316 core.List<core.double> bbox; |
5459 | 6317 |
5460 /** The contents of this Map. */ | 6318 /** The contents of this Map. */ |
5461 MapContents contents; | 6319 MapContents contents; |
5462 | 6320 |
5463 /** | 6321 /** |
5464 * The creation time of this map. The value is an RFC 3339 formatted date-time | 6322 * The creation time of this map. The value is an RFC 3339 formatted date-time |
5465 * value (e.g. 1970-01-01T00:00:00Z). | 6323 * value (e.g. 1970-01-01T00:00:00Z). |
5466 */ | 6324 */ |
5467 core.DateTime creationTime; | 6325 core.DateTime creationTime; |
5468 | 6326 |
5469 /** | 6327 /** |
| 6328 * The email address of the creator of this map. This is only returned on GET |
| 6329 * requests and not LIST requests. |
| 6330 */ |
| 6331 core.String creatorEmail; |
| 6332 |
| 6333 /** |
5470 * An array of four numbers (west, south, east, north) which defines the | 6334 * An array of four numbers (west, south, east, north) which defines the |
5471 * rectangular bounding box of the default viewport. The numbers represent | 6335 * rectangular bounding box of the default viewport. The numbers represent |
5472 * latitude and longitude in decimal degrees. | 6336 * latitude and longitude in decimal degrees. |
5473 */ | 6337 */ |
5474 LatLngBox defaultViewport; | 6338 LatLngBox defaultViewport; |
5475 | 6339 |
5476 /** The description of this Map, supplied by the author. */ | 6340 /** The description of this Map, supplied by the author. */ |
5477 core.String description; | 6341 core.String description; |
5478 | 6342 |
5479 /** | 6343 /** |
5480 * Deprecated: The name of an access list of the Map Editor type. The user on | 6344 * Deprecated: The name of an access list of the Map Editor type. The user on |
5481 * whose behalf the request is being sent must be an editor on that access | 6345 * whose behalf the request is being sent must be an editor on that access |
5482 * list. Note: Google Maps Engine no longer uses access lists. For backward | 6346 * list. Note: Google Maps Engine no longer uses access lists. Instead, each |
5483 * compatibility, the API still accepts access lists for projects that are | 6347 * asset has its own list of permissions. For backward compatibility, the API |
5484 * already using access lists. If you created a GME account/project after July | 6348 * still accepts access lists for projects that are already using access |
5485 * 14th, 2014, you will not be able to send API requests that include access | 6349 * lists. If you created a GME account/project after July 14th, 2014, you will |
5486 * lists. The API does not yet support the new permissions model. When you | 6350 * not be able to send API requests that include access lists. Note: This is |
5487 * create a map via the API without specifying permissions, the account that | 6351 * an input field only. It is not returned in response to a list or get |
5488 * created the map is the owner and has effective administrator access. Users | 6352 * request. |
5489 * can then use the Maps Engine user interface to adjust the permissions. This | |
5490 * is a temporary workaround until the API supports the new permissions model. | |
5491 * Read Add new users and groups in the Google Maps Engine help center for | |
5492 * more information. | |
5493 */ | 6353 */ |
5494 core.String draftAccessList; | 6354 core.String draftAccessList; |
5495 | 6355 |
5496 /** The ETag, used to refer to the current version of the asset. */ | 6356 /** The ETag, used to refer to the current version of the asset. */ |
5497 core.String etag; | 6357 core.String etag; |
5498 | 6358 |
5499 /** A globally unique ID, used to refer to this Map. */ | 6359 /** A globally unique ID, used to refer to this Map. */ |
5500 core.String id; | 6360 core.String id; |
5501 | 6361 |
5502 /** | 6362 /** |
5503 * The last modified time of this map. The value is an RFC 3339 formatted | 6363 * The last modified time of this map. The value is an RFC 3339 formatted |
5504 * date-time value (e.g. 1970-01-01T00:00:00Z). | 6364 * date-time value (e.g. 1970-01-01T00:00:00Z). |
5505 */ | 6365 */ |
5506 core.DateTime lastModifiedTime; | 6366 core.DateTime lastModifiedTime; |
5507 | 6367 |
| 6368 /** |
| 6369 * The email address of the last modifier of this map. This is only returned |
| 6370 * on GET requests and not LIST requests. |
| 6371 */ |
| 6372 core.String lastModifierEmail; |
| 6373 |
5508 /** The name of this Map, supplied by the author. */ | 6374 /** The name of this Map, supplied by the author. */ |
5509 core.String name; | 6375 core.String name; |
5510 | 6376 |
5511 /** | 6377 /** |
5512 * The processing status of this map. Map processing is automatically started | 6378 * The processing status of this map. Map processing is automatically started |
5513 * once a map becomes ready for processing. | 6379 * once a map becomes ready for processing. |
5514 * Possible string values are: | 6380 * Possible string values are: |
5515 * - "complete" | 6381 * - "complete" |
5516 * - "failed" | 6382 * - "failed" |
5517 * - "notReady" | 6383 * - "notReady" |
5518 * - "processing" | 6384 * - "processing" |
5519 * - "ready" | 6385 * - "ready" |
5520 */ | 6386 */ |
5521 core.String processingStatus; | 6387 core.String processingStatus; |
5522 | 6388 |
5523 /** The ID of the project that this Map is in. */ | 6389 /** The ID of the project that this Map is in. */ |
5524 core.String projectId; | 6390 core.String projectId; |
5525 | 6391 |
5526 /** | 6392 /** |
5527 * Deprecated: The access list to whom view permissions are granted. The value | 6393 * Deprecated: The access list to whom view permissions are granted. The value |
5528 * must be the name of a Maps Engine access list of the Map Viewer type, and | 6394 * must be the name of a Maps Engine access list of the Map Viewer type, and |
5529 * the user must be a viewer on that list. Read Share data, layers, and maps | 6395 * the user must be a viewer on that list. Note: Google Maps Engine no longer |
5530 * in the Google Maps Engine help center for more information. | 6396 * uses access lists. Instead, each asset has its own list of permissions. For |
| 6397 * backward compatibility, the API still accepts access lists for projects |
| 6398 * that are already using access lists. If you created a GME account/project |
| 6399 * after July 14th, 2014, you will not be able to send API requests that |
| 6400 * include access lists. This is an input field only. It is not returned in |
| 6401 * response to a list or get request. |
5531 */ | 6402 */ |
5532 core.String publishedAccessList; | 6403 core.String publishedAccessList; |
5533 | 6404 |
5534 /** | 6405 /** |
5535 * The publishing status of this map. | 6406 * The publishing status of this map. |
5536 * Possible string values are: | 6407 * Possible string values are: |
5537 * - "notPublished" | 6408 * - "notPublished" |
5538 * - "published" | 6409 * - "published" |
5539 */ | 6410 */ |
5540 core.String publishingStatus; | 6411 core.String publishingStatus; |
5541 | 6412 |
5542 /** Tags of this Map. */ | 6413 /** Tags of this Map. */ |
5543 Tags tags; | 6414 Tags tags; |
5544 | 6415 |
5545 /** | 6416 /** |
5546 * Deprecated: An array containing the available versions of this Map. | 6417 * Deprecated: An array containing the available versions of this Map. |
5547 * Currently may only contain "published". The publishingStatus field should | 6418 * Currently may only contain "published". The publishingStatus field should |
5548 * be used instead. | 6419 * be used instead. |
5549 */ | 6420 */ |
5550 core.List<core.String> versions; | 6421 core.List<core.String> versions; |
5551 | 6422 |
| 6423 /** If true, WRITERs of the asset are able to edit the asset permissions. */ |
| 6424 core.bool writersCanEditPermissions; |
| 6425 |
5552 | 6426 |
5553 Map(); | 6427 Map(); |
5554 | 6428 |
5555 Map.fromJson(core.Map _json) { | 6429 Map.fromJson(core.Map _json) { |
5556 if (_json.containsKey("bbox")) { | 6430 if (_json.containsKey("bbox")) { |
5557 bbox = _json["bbox"]; | 6431 bbox = _json["bbox"]; |
5558 } | 6432 } |
5559 if (_json.containsKey("contents")) { | 6433 if (_json.containsKey("contents")) { |
5560 contents = new MapContents.fromJson(_json["contents"]); | 6434 contents = new MapContents.fromJson(_json["contents"]); |
5561 } | 6435 } |
5562 if (_json.containsKey("creationTime")) { | 6436 if (_json.containsKey("creationTime")) { |
5563 creationTime = core.DateTime.parse(_json["creationTime"]); | 6437 creationTime = core.DateTime.parse(_json["creationTime"]); |
5564 } | 6438 } |
| 6439 if (_json.containsKey("creatorEmail")) { |
| 6440 creatorEmail = _json["creatorEmail"]; |
| 6441 } |
5565 if (_json.containsKey("defaultViewport")) { | 6442 if (_json.containsKey("defaultViewport")) { |
5566 defaultViewport = new LatLngBox.fromJson(_json["defaultViewport"]); | 6443 defaultViewport = new LatLngBox.fromJson(_json["defaultViewport"]); |
5567 } | 6444 } |
5568 if (_json.containsKey("description")) { | 6445 if (_json.containsKey("description")) { |
5569 description = _json["description"]; | 6446 description = _json["description"]; |
5570 } | 6447 } |
5571 if (_json.containsKey("draftAccessList")) { | 6448 if (_json.containsKey("draftAccessList")) { |
5572 draftAccessList = _json["draftAccessList"]; | 6449 draftAccessList = _json["draftAccessList"]; |
5573 } | 6450 } |
5574 if (_json.containsKey("etag")) { | 6451 if (_json.containsKey("etag")) { |
5575 etag = _json["etag"]; | 6452 etag = _json["etag"]; |
5576 } | 6453 } |
5577 if (_json.containsKey("id")) { | 6454 if (_json.containsKey("id")) { |
5578 id = _json["id"]; | 6455 id = _json["id"]; |
5579 } | 6456 } |
5580 if (_json.containsKey("lastModifiedTime")) { | 6457 if (_json.containsKey("lastModifiedTime")) { |
5581 lastModifiedTime = core.DateTime.parse(_json["lastModifiedTime"]); | 6458 lastModifiedTime = core.DateTime.parse(_json["lastModifiedTime"]); |
5582 } | 6459 } |
| 6460 if (_json.containsKey("lastModifierEmail")) { |
| 6461 lastModifierEmail = _json["lastModifierEmail"]; |
| 6462 } |
5583 if (_json.containsKey("name")) { | 6463 if (_json.containsKey("name")) { |
5584 name = _json["name"]; | 6464 name = _json["name"]; |
5585 } | 6465 } |
5586 if (_json.containsKey("processingStatus")) { | 6466 if (_json.containsKey("processingStatus")) { |
5587 processingStatus = _json["processingStatus"]; | 6467 processingStatus = _json["processingStatus"]; |
5588 } | 6468 } |
5589 if (_json.containsKey("projectId")) { | 6469 if (_json.containsKey("projectId")) { |
5590 projectId = _json["projectId"]; | 6470 projectId = _json["projectId"]; |
5591 } | 6471 } |
5592 if (_json.containsKey("publishedAccessList")) { | 6472 if (_json.containsKey("publishedAccessList")) { |
5593 publishedAccessList = _json["publishedAccessList"]; | 6473 publishedAccessList = _json["publishedAccessList"]; |
5594 } | 6474 } |
5595 if (_json.containsKey("publishingStatus")) { | 6475 if (_json.containsKey("publishingStatus")) { |
5596 publishingStatus = _json["publishingStatus"]; | 6476 publishingStatus = _json["publishingStatus"]; |
5597 } | 6477 } |
5598 if (_json.containsKey("tags")) { | 6478 if (_json.containsKey("tags")) { |
5599 tags = new Tags.fromJson(_json["tags"]); | 6479 tags = new Tags.fromJson(_json["tags"]); |
5600 } | 6480 } |
5601 if (_json.containsKey("versions")) { | 6481 if (_json.containsKey("versions")) { |
5602 versions = _json["versions"]; | 6482 versions = _json["versions"]; |
5603 } | 6483 } |
| 6484 if (_json.containsKey("writersCanEditPermissions")) { |
| 6485 writersCanEditPermissions = _json["writersCanEditPermissions"]; |
| 6486 } |
5604 } | 6487 } |
5605 | 6488 |
5606 core.Map toJson() { | 6489 core.Map toJson() { |
5607 var _json = new core.Map(); | 6490 var _json = new core.Map(); |
5608 if (bbox != null) { | 6491 if (bbox != null) { |
5609 _json["bbox"] = bbox; | 6492 _json["bbox"] = bbox; |
5610 } | 6493 } |
5611 if (contents != null) { | 6494 if (contents != null) { |
5612 _json["contents"] = (contents).toJson(); | 6495 _json["contents"] = (contents).toJson(); |
5613 } | 6496 } |
5614 if (creationTime != null) { | 6497 if (creationTime != null) { |
5615 _json["creationTime"] = (creationTime).toIso8601String(); | 6498 _json["creationTime"] = (creationTime).toIso8601String(); |
5616 } | 6499 } |
| 6500 if (creatorEmail != null) { |
| 6501 _json["creatorEmail"] = creatorEmail; |
| 6502 } |
5617 if (defaultViewport != null) { | 6503 if (defaultViewport != null) { |
5618 _json["defaultViewport"] = defaultViewport; | 6504 _json["defaultViewport"] = defaultViewport; |
5619 } | 6505 } |
5620 if (description != null) { | 6506 if (description != null) { |
5621 _json["description"] = description; | 6507 _json["description"] = description; |
5622 } | 6508 } |
5623 if (draftAccessList != null) { | 6509 if (draftAccessList != null) { |
5624 _json["draftAccessList"] = draftAccessList; | 6510 _json["draftAccessList"] = draftAccessList; |
5625 } | 6511 } |
5626 if (etag != null) { | 6512 if (etag != null) { |
5627 _json["etag"] = etag; | 6513 _json["etag"] = etag; |
5628 } | 6514 } |
5629 if (id != null) { | 6515 if (id != null) { |
5630 _json["id"] = id; | 6516 _json["id"] = id; |
5631 } | 6517 } |
5632 if (lastModifiedTime != null) { | 6518 if (lastModifiedTime != null) { |
5633 _json["lastModifiedTime"] = (lastModifiedTime).toIso8601String(); | 6519 _json["lastModifiedTime"] = (lastModifiedTime).toIso8601String(); |
5634 } | 6520 } |
| 6521 if (lastModifierEmail != null) { |
| 6522 _json["lastModifierEmail"] = lastModifierEmail; |
| 6523 } |
5635 if (name != null) { | 6524 if (name != null) { |
5636 _json["name"] = name; | 6525 _json["name"] = name; |
5637 } | 6526 } |
5638 if (processingStatus != null) { | 6527 if (processingStatus != null) { |
5639 _json["processingStatus"] = processingStatus; | 6528 _json["processingStatus"] = processingStatus; |
5640 } | 6529 } |
5641 if (projectId != null) { | 6530 if (projectId != null) { |
5642 _json["projectId"] = projectId; | 6531 _json["projectId"] = projectId; |
5643 } | 6532 } |
5644 if (publishedAccessList != null) { | 6533 if (publishedAccessList != null) { |
5645 _json["publishedAccessList"] = publishedAccessList; | 6534 _json["publishedAccessList"] = publishedAccessList; |
5646 } | 6535 } |
5647 if (publishingStatus != null) { | 6536 if (publishingStatus != null) { |
5648 _json["publishingStatus"] = publishingStatus; | 6537 _json["publishingStatus"] = publishingStatus; |
5649 } | 6538 } |
5650 if (tags != null) { | 6539 if (tags != null) { |
5651 _json["tags"] = tags; | 6540 _json["tags"] = tags; |
5652 } | 6541 } |
5653 if (versions != null) { | 6542 if (versions != null) { |
5654 _json["versions"] = versions; | 6543 _json["versions"] = versions; |
5655 } | 6544 } |
| 6545 if (writersCanEditPermissions != null) { |
| 6546 _json["writersCanEditPermissions"] = writersCanEditPermissions; |
| 6547 } |
5656 return _json; | 6548 return _json; |
5657 } | 6549 } |
5658 } | 6550 } |
5659 | 6551 |
5660 | 6552 |
5661 /** Not documented yet. */ | 6553 /** Not documented yet. */ |
5662 class MapContents | 6554 class MapContents |
5663 extends collection.ListBase<MapItem> { | 6555 extends collection.ListBase<MapItem> { |
5664 final core.List<MapItem> _inner; | 6556 final core.List<MapItem> _inner; |
5665 | 6557 |
(...skipping 370 matching lines...) Loading... |
6036 _json["nextPageToken"] = nextPageToken; | 6928 _json["nextPageToken"] = nextPageToken; |
6037 } | 6929 } |
6038 if (parents != null) { | 6930 if (parents != null) { |
6039 _json["parents"] = parents.map((value) => (value).toJson()).toList(); | 6931 _json["parents"] = parents.map((value) => (value).toJson()).toList(); |
6040 } | 6932 } |
6041 return _json; | 6933 return _json; |
6042 } | 6934 } |
6043 } | 6935 } |
6044 | 6936 |
6045 | 6937 |
| 6938 /** |
| 6939 * A permission defines the user or group that has access to an asset, and the |
| 6940 * type of access they have. |
| 6941 */ |
| 6942 class Permission { |
| 6943 /** |
| 6944 * Indicates whether a public asset is listed and can be found via a web |
| 6945 * search (value true), or is visible only to people who have a link to the |
| 6946 * asset (value false). |
| 6947 */ |
| 6948 core.bool discoverable; |
| 6949 |
| 6950 /** |
| 6951 * The unique identifier of the permission. This could be the email address of |
| 6952 * the user or group this permission refers to, or the string "anyone" for |
| 6953 * public permissions. |
| 6954 */ |
| 6955 core.String id; |
| 6956 |
| 6957 /** |
| 6958 * The type of access granted to this user or group. |
| 6959 * Possible string values are: |
| 6960 * - "owner" |
| 6961 * - "reader" |
| 6962 * - "viewer" |
| 6963 * - "writer" |
| 6964 */ |
| 6965 core.String role; |
| 6966 |
| 6967 /** |
| 6968 * The account type. |
| 6969 * Possible string values are: |
| 6970 * - "anyone" |
| 6971 * - "group" |
| 6972 * - "user" |
| 6973 */ |
| 6974 core.String type; |
| 6975 |
| 6976 |
| 6977 Permission(); |
| 6978 |
| 6979 Permission.fromJson(core.Map _json) { |
| 6980 if (_json.containsKey("discoverable")) { |
| 6981 discoverable = _json["discoverable"]; |
| 6982 } |
| 6983 if (_json.containsKey("id")) { |
| 6984 id = _json["id"]; |
| 6985 } |
| 6986 if (_json.containsKey("role")) { |
| 6987 role = _json["role"]; |
| 6988 } |
| 6989 if (_json.containsKey("type")) { |
| 6990 type = _json["type"]; |
| 6991 } |
| 6992 } |
| 6993 |
| 6994 core.Map toJson() { |
| 6995 var _json = new core.Map(); |
| 6996 if (discoverable != null) { |
| 6997 _json["discoverable"] = discoverable; |
| 6998 } |
| 6999 if (id != null) { |
| 7000 _json["id"] = id; |
| 7001 } |
| 7002 if (role != null) { |
| 7003 _json["role"] = role; |
| 7004 } |
| 7005 if (type != null) { |
| 7006 _json["type"] = type; |
| 7007 } |
| 7008 return _json; |
| 7009 } |
| 7010 } |
| 7011 |
| 7012 |
| 7013 /** The request sent to mapsengine.permissions.batchDelete. */ |
| 7014 class PermissionsBatchDeleteRequest { |
| 7015 /** |
| 7016 * An array of permission ids to be removed. This could be the email address |
| 7017 * of the user or group this permission refers to, or the string "anyone" for |
| 7018 * public permissions. |
| 7019 */ |
| 7020 core.List<core.String> ids; |
| 7021 |
| 7022 |
| 7023 PermissionsBatchDeleteRequest(); |
| 7024 |
| 7025 PermissionsBatchDeleteRequest.fromJson(core.Map _json) { |
| 7026 if (_json.containsKey("ids")) { |
| 7027 ids = _json["ids"]; |
| 7028 } |
| 7029 } |
| 7030 |
| 7031 core.Map toJson() { |
| 7032 var _json = new core.Map(); |
| 7033 if (ids != null) { |
| 7034 _json["ids"] = ids; |
| 7035 } |
| 7036 return _json; |
| 7037 } |
| 7038 } |
| 7039 |
| 7040 |
| 7041 /** The response returned by a call to mapsengine.permissions.batchDelete. */ |
| 7042 class PermissionsBatchDeleteResponse { |
| 7043 |
| 7044 PermissionsBatchDeleteResponse(); |
| 7045 |
| 7046 PermissionsBatchDeleteResponse.fromJson(core.Map _json) { |
| 7047 } |
| 7048 |
| 7049 core.Map toJson() { |
| 7050 var _json = new core.Map(); |
| 7051 return _json; |
| 7052 } |
| 7053 } |
| 7054 |
| 7055 |
| 7056 /** The request sent to mapsengine.permissions.batchUpdate. */ |
| 7057 class PermissionsBatchUpdateRequest { |
| 7058 /** The permissions to be inserted or updated. */ |
| 7059 core.List<Permission> permissions; |
| 7060 |
| 7061 |
| 7062 PermissionsBatchUpdateRequest(); |
| 7063 |
| 7064 PermissionsBatchUpdateRequest.fromJson(core.Map _json) { |
| 7065 if (_json.containsKey("permissions")) { |
| 7066 permissions = _json["permissions"].map((value) => new Permission.fromJson(
value)).toList(); |
| 7067 } |
| 7068 } |
| 7069 |
| 7070 core.Map toJson() { |
| 7071 var _json = new core.Map(); |
| 7072 if (permissions != null) { |
| 7073 _json["permissions"] = permissions.map((value) => (value).toJson()).toList
(); |
| 7074 } |
| 7075 return _json; |
| 7076 } |
| 7077 } |
| 7078 |
| 7079 |
| 7080 /** The response returned by a call to mapsengine.permissions.batchUpdate. */ |
| 7081 class PermissionsBatchUpdateResponse { |
| 7082 |
| 7083 PermissionsBatchUpdateResponse(); |
| 7084 |
| 7085 PermissionsBatchUpdateResponse.fromJson(core.Map _json) { |
| 7086 } |
| 7087 |
| 7088 core.Map toJson() { |
| 7089 var _json = new core.Map(); |
| 7090 return _json; |
| 7091 } |
| 7092 } |
| 7093 |
| 7094 |
| 7095 /** Not documented yet. */ |
| 7096 class PermissionsListResponse { |
| 7097 /** The set of permissions associated with this asset. */ |
| 7098 core.List<Permission> permissions; |
| 7099 |
| 7100 |
| 7101 PermissionsListResponse(); |
| 7102 |
| 7103 PermissionsListResponse.fromJson(core.Map _json) { |
| 7104 if (_json.containsKey("permissions")) { |
| 7105 permissions = _json["permissions"].map((value) => new Permission.fromJson(
value)).toList(); |
| 7106 } |
| 7107 } |
| 7108 |
| 7109 core.Map toJson() { |
| 7110 var _json = new core.Map(); |
| 7111 if (permissions != null) { |
| 7112 _json["permissions"] = permissions.map((value) => (value).toJson()).toList
(); |
| 7113 } |
| 7114 return _json; |
| 7115 } |
| 7116 } |
| 7117 |
| 7118 |
6046 /** Style for points. */ | 7119 /** Style for points. */ |
6047 class PointStyle { | 7120 class PointStyle { |
6048 /** | 7121 /** |
6049 * Icon for the point; if it isn't null, exactly one of 'name', 'id' or | 7122 * Icon for the point; if it isn't null, exactly one of 'name', 'id' or |
6050 * 'scaledShape' must be set. | 7123 * 'scaledShape' must be set. |
6051 */ | 7124 */ |
6052 IconStyle icon; | 7125 IconStyle icon; |
6053 | 7126 |
6054 /** Label style for the point. */ | 7127 /** Label style for the point. */ |
6055 LabelStyle label; | 7128 LabelStyle label; |
(...skipping 144 matching lines...) Loading... |
6200 return _json; | 7273 return _json; |
6201 } | 7274 } |
6202 } | 7275 } |
6203 | 7276 |
6204 | 7277 |
6205 /** The published version of a layer. */ | 7278 /** The published version of a layer. */ |
6206 class PublishedLayer { | 7279 class PublishedLayer { |
6207 /** The description of this Layer, supplied by the author. */ | 7280 /** The description of this Layer, supplied by the author. */ |
6208 core.String description; | 7281 core.String description; |
6209 | 7282 |
6210 /** The ETag, used to refer to the current version of the asset. */ | |
6211 core.String etag; | |
6212 | |
6213 /** A globally unique ID, used to refer to this Layer. */ | 7283 /** A globally unique ID, used to refer to this Layer. */ |
6214 core.String id; | 7284 core.String id; |
6215 | 7285 |
6216 /** | 7286 /** |
6217 * The type of the datasources used to build this Layer. This should be used | 7287 * The type of the datasources used to build this Layer. This should be used |
6218 * instead of datasourceType. At least one of layerType and datasourceType and | 7288 * instead of datasourceType. At least one of layerType and datasourceType and |
6219 * must be specified, but layerType takes precedence. | 7289 * must be specified, but layerType takes precedence. |
6220 * Possible string values are: | 7290 * Possible string values are: |
6221 * - "image" | 7291 * - "image" |
6222 * - "vector" | 7292 * - "vector" |
6223 */ | 7293 */ |
6224 core.String layerType; | 7294 core.String layerType; |
6225 | 7295 |
6226 /** The name of this Layer, supplied by the author. */ | 7296 /** The name of this Layer, supplied by the author. */ |
6227 core.String name; | 7297 core.String name; |
6228 | 7298 |
6229 /** The ID of the project that this Layer is in. */ | 7299 /** The ID of the project that this Layer is in. */ |
6230 core.String projectId; | 7300 core.String projectId; |
6231 | 7301 |
6232 | 7302 |
6233 PublishedLayer(); | 7303 PublishedLayer(); |
6234 | 7304 |
6235 PublishedLayer.fromJson(core.Map _json) { | 7305 PublishedLayer.fromJson(core.Map _json) { |
6236 if (_json.containsKey("description")) { | 7306 if (_json.containsKey("description")) { |
6237 description = _json["description"]; | 7307 description = _json["description"]; |
6238 } | 7308 } |
6239 if (_json.containsKey("etag")) { | |
6240 etag = _json["etag"]; | |
6241 } | |
6242 if (_json.containsKey("id")) { | 7309 if (_json.containsKey("id")) { |
6243 id = _json["id"]; | 7310 id = _json["id"]; |
6244 } | 7311 } |
6245 if (_json.containsKey("layerType")) { | 7312 if (_json.containsKey("layerType")) { |
6246 layerType = _json["layerType"]; | 7313 layerType = _json["layerType"]; |
6247 } | 7314 } |
6248 if (_json.containsKey("name")) { | 7315 if (_json.containsKey("name")) { |
6249 name = _json["name"]; | 7316 name = _json["name"]; |
6250 } | 7317 } |
6251 if (_json.containsKey("projectId")) { | 7318 if (_json.containsKey("projectId")) { |
6252 projectId = _json["projectId"]; | 7319 projectId = _json["projectId"]; |
6253 } | 7320 } |
6254 } | 7321 } |
6255 | 7322 |
6256 core.Map toJson() { | 7323 core.Map toJson() { |
6257 var _json = new core.Map(); | 7324 var _json = new core.Map(); |
6258 if (description != null) { | 7325 if (description != null) { |
6259 _json["description"] = description; | 7326 _json["description"] = description; |
6260 } | 7327 } |
6261 if (etag != null) { | |
6262 _json["etag"] = etag; | |
6263 } | |
6264 if (id != null) { | 7328 if (id != null) { |
6265 _json["id"] = id; | 7329 _json["id"] = id; |
6266 } | 7330 } |
6267 if (layerType != null) { | 7331 if (layerType != null) { |
6268 _json["layerType"] = layerType; | 7332 _json["layerType"] = layerType; |
6269 } | 7333 } |
6270 if (name != null) { | 7334 if (name != null) { |
6271 _json["name"] = name; | 7335 _json["name"] = name; |
6272 } | 7336 } |
6273 if (projectId != null) { | 7337 if (projectId != null) { |
(...skipping 53 matching lines...) Loading... |
6327 /** | 7391 /** |
6328 * An array of four numbers (west, south, east, north) which defines the | 7392 * An array of four numbers (west, south, east, north) which defines the |
6329 * rectangular bounding box of the default viewport. The numbers represent | 7393 * rectangular bounding box of the default viewport. The numbers represent |
6330 * latitude and longitude in decimal degrees. | 7394 * latitude and longitude in decimal degrees. |
6331 */ | 7395 */ |
6332 LatLngBox defaultViewport; | 7396 LatLngBox defaultViewport; |
6333 | 7397 |
6334 /** The description of this Map, supplied by the author. */ | 7398 /** The description of this Map, supplied by the author. */ |
6335 core.String description; | 7399 core.String description; |
6336 | 7400 |
6337 /** The ETag, used to refer to the current version of the asset. */ | |
6338 core.String etag; | |
6339 | |
6340 /** A globally unique ID, used to refer to this Map. */ | 7401 /** A globally unique ID, used to refer to this Map. */ |
6341 core.String id; | 7402 core.String id; |
6342 | 7403 |
6343 /** The name of this Map, supplied by the author. */ | 7404 /** The name of this Map, supplied by the author. */ |
6344 core.String name; | 7405 core.String name; |
6345 | 7406 |
6346 /** The ID of the project that this Map is in. */ | 7407 /** The ID of the project that this Map is in. */ |
6347 core.String projectId; | 7408 core.String projectId; |
6348 | 7409 |
6349 | 7410 |
6350 PublishedMap(); | 7411 PublishedMap(); |
6351 | 7412 |
6352 PublishedMap.fromJson(core.Map _json) { | 7413 PublishedMap.fromJson(core.Map _json) { |
6353 if (_json.containsKey("contents")) { | 7414 if (_json.containsKey("contents")) { |
6354 contents = new MapContents.fromJson(_json["contents"]); | 7415 contents = new MapContents.fromJson(_json["contents"]); |
6355 } | 7416 } |
6356 if (_json.containsKey("defaultViewport")) { | 7417 if (_json.containsKey("defaultViewport")) { |
6357 defaultViewport = new LatLngBox.fromJson(_json["defaultViewport"]); | 7418 defaultViewport = new LatLngBox.fromJson(_json["defaultViewport"]); |
6358 } | 7419 } |
6359 if (_json.containsKey("description")) { | 7420 if (_json.containsKey("description")) { |
6360 description = _json["description"]; | 7421 description = _json["description"]; |
6361 } | 7422 } |
6362 if (_json.containsKey("etag")) { | |
6363 etag = _json["etag"]; | |
6364 } | |
6365 if (_json.containsKey("id")) { | 7423 if (_json.containsKey("id")) { |
6366 id = _json["id"]; | 7424 id = _json["id"]; |
6367 } | 7425 } |
6368 if (_json.containsKey("name")) { | 7426 if (_json.containsKey("name")) { |
6369 name = _json["name"]; | 7427 name = _json["name"]; |
6370 } | 7428 } |
6371 if (_json.containsKey("projectId")) { | 7429 if (_json.containsKey("projectId")) { |
6372 projectId = _json["projectId"]; | 7430 projectId = _json["projectId"]; |
6373 } | 7431 } |
6374 } | 7432 } |
6375 | 7433 |
6376 core.Map toJson() { | 7434 core.Map toJson() { |
6377 var _json = new core.Map(); | 7435 var _json = new core.Map(); |
6378 if (contents != null) { | 7436 if (contents != null) { |
6379 _json["contents"] = (contents).toJson(); | 7437 _json["contents"] = (contents).toJson(); |
6380 } | 7438 } |
6381 if (defaultViewport != null) { | 7439 if (defaultViewport != null) { |
6382 _json["defaultViewport"] = defaultViewport; | 7440 _json["defaultViewport"] = defaultViewport; |
6383 } | 7441 } |
6384 if (description != null) { | 7442 if (description != null) { |
6385 _json["description"] = description; | 7443 _json["description"] = description; |
6386 } | 7444 } |
6387 if (etag != null) { | |
6388 _json["etag"] = etag; | |
6389 } | |
6390 if (id != null) { | 7445 if (id != null) { |
6391 _json["id"] = id; | 7446 _json["id"] = id; |
6392 } | 7447 } |
6393 if (name != null) { | 7448 if (name != null) { |
6394 _json["name"] = name; | 7449 _json["name"] = name; |
6395 } | 7450 } |
6396 if (projectId != null) { | 7451 if (projectId != null) { |
6397 _json["projectId"] = projectId; | 7452 _json["projectId"] = projectId; |
6398 } | 7453 } |
6399 return _json; | 7454 return _json; |
(...skipping 45 matching lines...) Loading... |
6445 /** A geo-referenced raster. */ | 7500 /** A geo-referenced raster. */ |
6446 class Raster { | 7501 class Raster { |
6447 /** The acquisition time of this Raster. */ | 7502 /** The acquisition time of this Raster. */ |
6448 AcquisitionTime acquisitionTime; | 7503 AcquisitionTime acquisitionTime; |
6449 | 7504 |
6450 /** The name of the attribution to be used for this Raster. */ | 7505 /** The name of the attribution to be used for this Raster. */ |
6451 core.String attribution; | 7506 core.String attribution; |
6452 | 7507 |
6453 /** | 7508 /** |
6454 * A rectangular bounding box which contains all of the data in this Raster. | 7509 * A rectangular bounding box which contains all of the data in this Raster. |
6455 * The numbers represent latitude and longitude in decimal degrees. | 7510 * The box is expressed as \"west, south, east, north\". The numbers represent |
| 7511 * latitudes and longitudes in decimal degrees. |
6456 */ | 7512 */ |
6457 core.List<core.double> bbox; | 7513 core.List<core.double> bbox; |
6458 | 7514 |
6459 /** | 7515 /** |
6460 * The creation time of this raster. The value is an RFC 3339 formatted | 7516 * The creation time of this raster. The value is an RFC 3339 formatted |
6461 * date-time value (e.g. 1970-01-01T00:00:00Z). | 7517 * date-time value (e.g. 1970-01-01T00:00:00Z). |
6462 */ | 7518 */ |
6463 core.DateTime creationTime; | 7519 core.DateTime creationTime; |
6464 | 7520 |
| 7521 /** |
| 7522 * The email address of the creator of this raster. This is only returned on |
| 7523 * GET requests and not LIST requests. |
| 7524 */ |
| 7525 core.String creatorEmail; |
| 7526 |
6465 /** The description of this Raster, supplied by the author. */ | 7527 /** The description of this Raster, supplied by the author. */ |
6466 core.String description; | 7528 core.String description; |
6467 | 7529 |
6468 /** | 7530 /** |
6469 * Deprecated: The name of an access list of the Map Editor type. The user on | 7531 * Deprecated: The name of an access list of the Map Editor type. The user on |
6470 * whose behalf the request is being sent must be an editor on that access | 7532 * whose behalf the request is being sent must be an editor on that access |
6471 * list. Note: Google Maps Engine no longer uses access lists. For backward | 7533 * list. Note: Google Maps Engine no longer uses access lists. Instead, each |
6472 * compatibility, the API still accepts access lists for projects that are | 7534 * asset has its own list of permissions. For backward compatibility, the API |
6473 * already using access lists. If you created a GME account/project after July | 7535 * still accepts access lists for projects that are already using access |
6474 * 14th, 2014, you will not be able to send API requests that include access | 7536 * lists. If you created a GME account/project after July 14th, 2014, you will |
6475 * lists. The API does not yet support the new permissions model. When you | 7537 * not be able to send API requests that include access lists. Note: This is |
6476 * create a map via the API without specifying permissions, the account that | 7538 * an input field only. It is not returned in response to a list or get |
6477 * created the map is the owner and has effective administrator access. Users | 7539 * request. |
6478 * can then use the Maps Engine user interface to adjust the permissions. This | |
6479 * is a temporary workaround until the API supports the new permissions model. | |
6480 * Read Add new users and groups in the Google Maps Engine help center for | |
6481 * more information. | |
6482 */ | 7540 */ |
6483 core.String draftAccessList; | 7541 core.String draftAccessList; |
6484 | 7542 |
6485 /** The ETag, used to refer to the current version of the asset. */ | 7543 /** The ETag, used to refer to the current version of the asset. */ |
6486 core.String etag; | 7544 core.String etag; |
6487 | 7545 |
6488 /** The files associated with this Raster. */ | 7546 /** The files associated with this Raster. */ |
6489 core.List<File> files; | 7547 core.List<File> files; |
6490 | 7548 |
6491 /** A globally unique ID, used to refer to this Raster. */ | 7549 /** A globally unique ID, used to refer to this Raster. */ |
6492 core.String id; | 7550 core.String id; |
6493 | 7551 |
6494 /** | 7552 /** |
6495 * The last modified time of this raster. The value is an RFC 3339 formatted | 7553 * The last modified time of this raster. The value is an RFC 3339 formatted |
6496 * date-time value (e.g. 1970-01-01T00:00:00Z). | 7554 * date-time value (e.g. 1970-01-01T00:00:00Z). |
6497 */ | 7555 */ |
6498 core.DateTime lastModifiedTime; | 7556 core.DateTime lastModifiedTime; |
6499 | 7557 |
| 7558 /** |
| 7559 * The email address of the last modifier of this raster. This is only |
| 7560 * returned on GET requests and not LIST requests. |
| 7561 */ |
| 7562 core.String lastModifierEmail; |
| 7563 |
6500 /** The mask processing type of this Raster. */ | 7564 /** The mask processing type of this Raster. */ |
6501 core.String maskType; | 7565 core.String maskType; |
6502 | 7566 |
6503 /** The name of this Raster, supplied by the author. */ | 7567 /** The name of this Raster, supplied by the author. */ |
6504 core.String name; | 7568 core.String name; |
6505 | 7569 |
6506 /** | 7570 /** |
6507 * The processing status of this Raster. | 7571 * The processing status of this Raster. |
6508 * Possible string values are: | 7572 * Possible string values are: |
6509 * - "complete" | 7573 * - "complete" |
(...skipping 10 matching lines...) Loading... |
6520 /** | 7584 /** |
6521 * The type of this Raster. Always "image" today. | 7585 * The type of this Raster. Always "image" today. |
6522 * Possible string values are: | 7586 * Possible string values are: |
6523 * - "image" | 7587 * - "image" |
6524 */ | 7588 */ |
6525 core.String rasterType; | 7589 core.String rasterType; |
6526 | 7590 |
6527 /** Tags of this Raster. */ | 7591 /** Tags of this Raster. */ |
6528 Tags tags; | 7592 Tags tags; |
6529 | 7593 |
| 7594 /** If true, WRITERs of the asset are able to edit the asset permissions. */ |
| 7595 core.bool writersCanEditPermissions; |
| 7596 |
6530 | 7597 |
6531 Raster(); | 7598 Raster(); |
6532 | 7599 |
6533 Raster.fromJson(core.Map _json) { | 7600 Raster.fromJson(core.Map _json) { |
6534 if (_json.containsKey("acquisitionTime")) { | 7601 if (_json.containsKey("acquisitionTime")) { |
6535 acquisitionTime = new AcquisitionTime.fromJson(_json["acquisitionTime"]); | 7602 acquisitionTime = new AcquisitionTime.fromJson(_json["acquisitionTime"]); |
6536 } | 7603 } |
6537 if (_json.containsKey("attribution")) { | 7604 if (_json.containsKey("attribution")) { |
6538 attribution = _json["attribution"]; | 7605 attribution = _json["attribution"]; |
6539 } | 7606 } |
6540 if (_json.containsKey("bbox")) { | 7607 if (_json.containsKey("bbox")) { |
6541 bbox = _json["bbox"]; | 7608 bbox = _json["bbox"]; |
6542 } | 7609 } |
6543 if (_json.containsKey("creationTime")) { | 7610 if (_json.containsKey("creationTime")) { |
6544 creationTime = core.DateTime.parse(_json["creationTime"]); | 7611 creationTime = core.DateTime.parse(_json["creationTime"]); |
6545 } | 7612 } |
| 7613 if (_json.containsKey("creatorEmail")) { |
| 7614 creatorEmail = _json["creatorEmail"]; |
| 7615 } |
6546 if (_json.containsKey("description")) { | 7616 if (_json.containsKey("description")) { |
6547 description = _json["description"]; | 7617 description = _json["description"]; |
6548 } | 7618 } |
6549 if (_json.containsKey("draftAccessList")) { | 7619 if (_json.containsKey("draftAccessList")) { |
6550 draftAccessList = _json["draftAccessList"]; | 7620 draftAccessList = _json["draftAccessList"]; |
6551 } | 7621 } |
6552 if (_json.containsKey("etag")) { | 7622 if (_json.containsKey("etag")) { |
6553 etag = _json["etag"]; | 7623 etag = _json["etag"]; |
6554 } | 7624 } |
6555 if (_json.containsKey("files")) { | 7625 if (_json.containsKey("files")) { |
6556 files = _json["files"].map((value) => new File.fromJson(value)).toList(); | 7626 files = _json["files"].map((value) => new File.fromJson(value)).toList(); |
6557 } | 7627 } |
6558 if (_json.containsKey("id")) { | 7628 if (_json.containsKey("id")) { |
6559 id = _json["id"]; | 7629 id = _json["id"]; |
6560 } | 7630 } |
6561 if (_json.containsKey("lastModifiedTime")) { | 7631 if (_json.containsKey("lastModifiedTime")) { |
6562 lastModifiedTime = core.DateTime.parse(_json["lastModifiedTime"]); | 7632 lastModifiedTime = core.DateTime.parse(_json["lastModifiedTime"]); |
6563 } | 7633 } |
| 7634 if (_json.containsKey("lastModifierEmail")) { |
| 7635 lastModifierEmail = _json["lastModifierEmail"]; |
| 7636 } |
6564 if (_json.containsKey("maskType")) { | 7637 if (_json.containsKey("maskType")) { |
6565 maskType = _json["maskType"]; | 7638 maskType = _json["maskType"]; |
6566 } | 7639 } |
6567 if (_json.containsKey("name")) { | 7640 if (_json.containsKey("name")) { |
6568 name = _json["name"]; | 7641 name = _json["name"]; |
6569 } | 7642 } |
6570 if (_json.containsKey("processingStatus")) { | 7643 if (_json.containsKey("processingStatus")) { |
6571 processingStatus = _json["processingStatus"]; | 7644 processingStatus = _json["processingStatus"]; |
6572 } | 7645 } |
6573 if (_json.containsKey("projectId")) { | 7646 if (_json.containsKey("projectId")) { |
6574 projectId = _json["projectId"]; | 7647 projectId = _json["projectId"]; |
6575 } | 7648 } |
6576 if (_json.containsKey("rasterType")) { | 7649 if (_json.containsKey("rasterType")) { |
6577 rasterType = _json["rasterType"]; | 7650 rasterType = _json["rasterType"]; |
6578 } | 7651 } |
6579 if (_json.containsKey("tags")) { | 7652 if (_json.containsKey("tags")) { |
6580 tags = new Tags.fromJson(_json["tags"]); | 7653 tags = new Tags.fromJson(_json["tags"]); |
6581 } | 7654 } |
| 7655 if (_json.containsKey("writersCanEditPermissions")) { |
| 7656 writersCanEditPermissions = _json["writersCanEditPermissions"]; |
| 7657 } |
6582 } | 7658 } |
6583 | 7659 |
6584 core.Map toJson() { | 7660 core.Map toJson() { |
6585 var _json = new core.Map(); | 7661 var _json = new core.Map(); |
6586 if (acquisitionTime != null) { | 7662 if (acquisitionTime != null) { |
6587 _json["acquisitionTime"] = (acquisitionTime).toJson(); | 7663 _json["acquisitionTime"] = (acquisitionTime).toJson(); |
6588 } | 7664 } |
6589 if (attribution != null) { | 7665 if (attribution != null) { |
6590 _json["attribution"] = attribution; | 7666 _json["attribution"] = attribution; |
6591 } | 7667 } |
6592 if (bbox != null) { | 7668 if (bbox != null) { |
6593 _json["bbox"] = bbox; | 7669 _json["bbox"] = bbox; |
6594 } | 7670 } |
6595 if (creationTime != null) { | 7671 if (creationTime != null) { |
6596 _json["creationTime"] = (creationTime).toIso8601String(); | 7672 _json["creationTime"] = (creationTime).toIso8601String(); |
6597 } | 7673 } |
| 7674 if (creatorEmail != null) { |
| 7675 _json["creatorEmail"] = creatorEmail; |
| 7676 } |
6598 if (description != null) { | 7677 if (description != null) { |
6599 _json["description"] = description; | 7678 _json["description"] = description; |
6600 } | 7679 } |
6601 if (draftAccessList != null) { | 7680 if (draftAccessList != null) { |
6602 _json["draftAccessList"] = draftAccessList; | 7681 _json["draftAccessList"] = draftAccessList; |
6603 } | 7682 } |
6604 if (etag != null) { | 7683 if (etag != null) { |
6605 _json["etag"] = etag; | 7684 _json["etag"] = etag; |
6606 } | 7685 } |
6607 if (files != null) { | 7686 if (files != null) { |
6608 _json["files"] = files.map((value) => (value).toJson()).toList(); | 7687 _json["files"] = files.map((value) => (value).toJson()).toList(); |
6609 } | 7688 } |
6610 if (id != null) { | 7689 if (id != null) { |
6611 _json["id"] = id; | 7690 _json["id"] = id; |
6612 } | 7691 } |
6613 if (lastModifiedTime != null) { | 7692 if (lastModifiedTime != null) { |
6614 _json["lastModifiedTime"] = (lastModifiedTime).toIso8601String(); | 7693 _json["lastModifiedTime"] = (lastModifiedTime).toIso8601String(); |
6615 } | 7694 } |
| 7695 if (lastModifierEmail != null) { |
| 7696 _json["lastModifierEmail"] = lastModifierEmail; |
| 7697 } |
6616 if (maskType != null) { | 7698 if (maskType != null) { |
6617 _json["maskType"] = maskType; | 7699 _json["maskType"] = maskType; |
6618 } | 7700 } |
6619 if (name != null) { | 7701 if (name != null) { |
6620 _json["name"] = name; | 7702 _json["name"] = name; |
6621 } | 7703 } |
6622 if (processingStatus != null) { | 7704 if (processingStatus != null) { |
6623 _json["processingStatus"] = processingStatus; | 7705 _json["processingStatus"] = processingStatus; |
6624 } | 7706 } |
6625 if (projectId != null) { | 7707 if (projectId != null) { |
6626 _json["projectId"] = projectId; | 7708 _json["projectId"] = projectId; |
6627 } | 7709 } |
6628 if (rasterType != null) { | 7710 if (rasterType != null) { |
6629 _json["rasterType"] = rasterType; | 7711 _json["rasterType"] = rasterType; |
6630 } | 7712 } |
6631 if (tags != null) { | 7713 if (tags != null) { |
6632 _json["tags"] = tags; | 7714 _json["tags"] = tags; |
6633 } | 7715 } |
| 7716 if (writersCanEditPermissions != null) { |
| 7717 _json["writersCanEditPermissions"] = writersCanEditPermissions; |
| 7718 } |
6634 return _json; | 7719 return _json; |
6635 } | 7720 } |
6636 } | 7721 } |
6637 | 7722 |
6638 | 7723 |
6639 /** | 7724 /** |
6640 * A raster collection groups multiple Raster resources for inclusion in a | 7725 * A raster collection groups multiple Raster resources for inclusion in a |
6641 * Layer. | 7726 * Layer. |
6642 */ | 7727 */ |
6643 class RasterCollection { | 7728 class RasterCollection { |
6644 /** The name of the attribution to be used for this RasterCollection. */ | 7729 /** |
| 7730 * The name of the attribution to be used for this RasterCollection. Note: |
| 7731 * Attribution is returned in response to a get request but not a list |
| 7732 * request. After requesting a list of raster collections, you'll need to send |
| 7733 * a get request to retrieve the attribution for each raster collection. |
| 7734 */ |
6645 core.String attribution; | 7735 core.String attribution; |
6646 | 7736 |
6647 /** | 7737 /** |
6648 * A rectangular bounding box which contains all of the data in this | 7738 * A rectangular bounding box which contains all of the data in this |
6649 * RasterCollection. The numbers represent latitude and longitude in decimal | 7739 * RasterCollection. The box is expressed as \"west, south, east, north\". The |
6650 * degrees. | 7740 * numbers represent latitude and longitude in decimal degrees. |
6651 */ | 7741 */ |
6652 core.List<core.double> bbox; | 7742 core.List<core.double> bbox; |
6653 | 7743 |
6654 /** | 7744 /** |
6655 * The creation time of this RasterCollection. The value is an RFC 3339 | 7745 * The creation time of this RasterCollection. The value is an RFC 3339 |
6656 * formatted date-time value (e.g. 1970-01-01T00:00:00Z). | 7746 * formatted date-time value (e.g. 1970-01-01T00:00:00Z). |
6657 */ | 7747 */ |
6658 core.DateTime creationTime; | 7748 core.DateTime creationTime; |
6659 | 7749 |
| 7750 /** |
| 7751 * The email address of the creator of this raster collection. This is only |
| 7752 * returned on GET requests and not LIST requests. |
| 7753 */ |
| 7754 core.String creatorEmail; |
| 7755 |
6660 /** The description of this RasterCollection, supplied by the author. */ | 7756 /** The description of this RasterCollection, supplied by the author. */ |
6661 core.String description; | 7757 core.String description; |
6662 | 7758 |
6663 /** | 7759 /** |
6664 * Deprecated: The name of an access list of the Map Editor type. The user on | 7760 * Deprecated: The name of an access list of the Map Editor type. The user on |
6665 * whose behalf the request is being sent must be an editor on that access | 7761 * whose behalf the request is being sent must be an editor on that access |
6666 * list. Note: Google Maps Engine no longer uses access lists. For backward | 7762 * list. Note: Google Maps Engine no longer uses access lists. Instead, each |
6667 * compatibility, the API still accepts access lists for projects that are | 7763 * asset has its own list of permissions. For backward compatibility, the API |
6668 * already using access lists. If you created a GME account/project after July | 7764 * still accepts access lists for projects that are already using access |
6669 * 14th, 2014, you will not be able to send API requests that include access | 7765 * lists. If you created a GME account/project after July 14th, 2014, you will |
6670 * lists. The API does not yet support the new permissions model. When you | 7766 * not be able to send API requests that include access lists. Note: This is |
6671 * create a map via the API without specifying permissions, the account that | 7767 * an input field only. It is not returned in response to a list or get |
6672 * created the map is the owner and has effective administrator access. Users | 7768 * request. |
6673 * can then use the Maps Engine user interface to adjust the permissions. This | |
6674 * is a temporary workaround until the API supports the new permissions model. | |
6675 * Read Add new users and groups in the Google Maps Engine help center for | |
6676 * more information. | |
6677 */ | 7769 */ |
6678 core.String draftAccessList; | 7770 core.String draftAccessList; |
6679 | 7771 |
6680 /** The ETag, used to refer to the current version of the asset. */ | 7772 /** The ETag, used to refer to the current version of the asset. */ |
6681 core.String etag; | 7773 core.String etag; |
6682 | 7774 |
6683 /** A globally unique ID, used to refer to this RasterCollection. */ | 7775 /** A globally unique ID, used to refer to this RasterCollection. */ |
6684 core.String id; | 7776 core.String id; |
6685 | 7777 |
6686 /** | 7778 /** |
6687 * The last modified time of this RasterCollection. The value is an RFC 3339 | 7779 * The last modified time of this RasterCollection. The value is an RFC 3339 |
6688 * formatted date-time value (e.g. 1970-01-01T00:00:00Z). | 7780 * formatted date-time value (e.g. 1970-01-01T00:00:00Z). |
6689 */ | 7781 */ |
6690 core.DateTime lastModifiedTime; | 7782 core.DateTime lastModifiedTime; |
6691 | 7783 |
| 7784 /** |
| 7785 * The email address of the last modifier of this raster collection. This is |
| 7786 * only returned on GET requests and not LIST requests. |
| 7787 */ |
| 7788 core.String lastModifierEmail; |
| 7789 |
6692 /** True if this RasterCollection is a mosaic. */ | 7790 /** True if this RasterCollection is a mosaic. */ |
6693 core.bool mosaic; | 7791 core.bool mosaic; |
6694 | 7792 |
6695 /** The name of this RasterCollection, supplied by the author. */ | 7793 /** The name of this RasterCollection, supplied by the author. */ |
6696 core.String name; | 7794 core.String name; |
6697 | 7795 |
6698 /** | 7796 /** |
6699 * The processing status of this RasterCollection. | 7797 * The processing status of this RasterCollection. |
6700 * Possible string values are: | 7798 * Possible string values are: |
6701 * - "complete" | 7799 * - "complete" |
(...skipping 10 matching lines...) Loading... |
6712 /** | 7810 /** |
6713 * The type of rasters contained within this RasterCollection. | 7811 * The type of rasters contained within this RasterCollection. |
6714 * Possible string values are: | 7812 * Possible string values are: |
6715 * - "image" | 7813 * - "image" |
6716 */ | 7814 */ |
6717 core.String rasterType; | 7815 core.String rasterType; |
6718 | 7816 |
6719 /** Tags of this RasterCollection. */ | 7817 /** Tags of this RasterCollection. */ |
6720 Tags tags; | 7818 Tags tags; |
6721 | 7819 |
| 7820 /** If true, WRITERs of the asset are able to edit the asset permissions. */ |
| 7821 core.bool writersCanEditPermissions; |
| 7822 |
6722 | 7823 |
6723 RasterCollection(); | 7824 RasterCollection(); |
6724 | 7825 |
6725 RasterCollection.fromJson(core.Map _json) { | 7826 RasterCollection.fromJson(core.Map _json) { |
6726 if (_json.containsKey("attribution")) { | 7827 if (_json.containsKey("attribution")) { |
6727 attribution = _json["attribution"]; | 7828 attribution = _json["attribution"]; |
6728 } | 7829 } |
6729 if (_json.containsKey("bbox")) { | 7830 if (_json.containsKey("bbox")) { |
6730 bbox = _json["bbox"]; | 7831 bbox = _json["bbox"]; |
6731 } | 7832 } |
6732 if (_json.containsKey("creationTime")) { | 7833 if (_json.containsKey("creationTime")) { |
6733 creationTime = core.DateTime.parse(_json["creationTime"]); | 7834 creationTime = core.DateTime.parse(_json["creationTime"]); |
6734 } | 7835 } |
| 7836 if (_json.containsKey("creatorEmail")) { |
| 7837 creatorEmail = _json["creatorEmail"]; |
| 7838 } |
6735 if (_json.containsKey("description")) { | 7839 if (_json.containsKey("description")) { |
6736 description = _json["description"]; | 7840 description = _json["description"]; |
6737 } | 7841 } |
6738 if (_json.containsKey("draftAccessList")) { | 7842 if (_json.containsKey("draftAccessList")) { |
6739 draftAccessList = _json["draftAccessList"]; | 7843 draftAccessList = _json["draftAccessList"]; |
6740 } | 7844 } |
6741 if (_json.containsKey("etag")) { | 7845 if (_json.containsKey("etag")) { |
6742 etag = _json["etag"]; | 7846 etag = _json["etag"]; |
6743 } | 7847 } |
6744 if (_json.containsKey("id")) { | 7848 if (_json.containsKey("id")) { |
6745 id = _json["id"]; | 7849 id = _json["id"]; |
6746 } | 7850 } |
6747 if (_json.containsKey("lastModifiedTime")) { | 7851 if (_json.containsKey("lastModifiedTime")) { |
6748 lastModifiedTime = core.DateTime.parse(_json["lastModifiedTime"]); | 7852 lastModifiedTime = core.DateTime.parse(_json["lastModifiedTime"]); |
6749 } | 7853 } |
| 7854 if (_json.containsKey("lastModifierEmail")) { |
| 7855 lastModifierEmail = _json["lastModifierEmail"]; |
| 7856 } |
6750 if (_json.containsKey("mosaic")) { | 7857 if (_json.containsKey("mosaic")) { |
6751 mosaic = _json["mosaic"]; | 7858 mosaic = _json["mosaic"]; |
6752 } | 7859 } |
6753 if (_json.containsKey("name")) { | 7860 if (_json.containsKey("name")) { |
6754 name = _json["name"]; | 7861 name = _json["name"]; |
6755 } | 7862 } |
6756 if (_json.containsKey("processingStatus")) { | 7863 if (_json.containsKey("processingStatus")) { |
6757 processingStatus = _json["processingStatus"]; | 7864 processingStatus = _json["processingStatus"]; |
6758 } | 7865 } |
6759 if (_json.containsKey("projectId")) { | 7866 if (_json.containsKey("projectId")) { |
6760 projectId = _json["projectId"]; | 7867 projectId = _json["projectId"]; |
6761 } | 7868 } |
6762 if (_json.containsKey("rasterType")) { | 7869 if (_json.containsKey("rasterType")) { |
6763 rasterType = _json["rasterType"]; | 7870 rasterType = _json["rasterType"]; |
6764 } | 7871 } |
6765 if (_json.containsKey("tags")) { | 7872 if (_json.containsKey("tags")) { |
6766 tags = new Tags.fromJson(_json["tags"]); | 7873 tags = new Tags.fromJson(_json["tags"]); |
6767 } | 7874 } |
| 7875 if (_json.containsKey("writersCanEditPermissions")) { |
| 7876 writersCanEditPermissions = _json["writersCanEditPermissions"]; |
| 7877 } |
6768 } | 7878 } |
6769 | 7879 |
6770 core.Map toJson() { | 7880 core.Map toJson() { |
6771 var _json = new core.Map(); | 7881 var _json = new core.Map(); |
6772 if (attribution != null) { | 7882 if (attribution != null) { |
6773 _json["attribution"] = attribution; | 7883 _json["attribution"] = attribution; |
6774 } | 7884 } |
6775 if (bbox != null) { | 7885 if (bbox != null) { |
6776 _json["bbox"] = bbox; | 7886 _json["bbox"] = bbox; |
6777 } | 7887 } |
6778 if (creationTime != null) { | 7888 if (creationTime != null) { |
6779 _json["creationTime"] = (creationTime).toIso8601String(); | 7889 _json["creationTime"] = (creationTime).toIso8601String(); |
6780 } | 7890 } |
| 7891 if (creatorEmail != null) { |
| 7892 _json["creatorEmail"] = creatorEmail; |
| 7893 } |
6781 if (description != null) { | 7894 if (description != null) { |
6782 _json["description"] = description; | 7895 _json["description"] = description; |
6783 } | 7896 } |
6784 if (draftAccessList != null) { | 7897 if (draftAccessList != null) { |
6785 _json["draftAccessList"] = draftAccessList; | 7898 _json["draftAccessList"] = draftAccessList; |
6786 } | 7899 } |
6787 if (etag != null) { | 7900 if (etag != null) { |
6788 _json["etag"] = etag; | 7901 _json["etag"] = etag; |
6789 } | 7902 } |
6790 if (id != null) { | 7903 if (id != null) { |
6791 _json["id"] = id; | 7904 _json["id"] = id; |
6792 } | 7905 } |
6793 if (lastModifiedTime != null) { | 7906 if (lastModifiedTime != null) { |
6794 _json["lastModifiedTime"] = (lastModifiedTime).toIso8601String(); | 7907 _json["lastModifiedTime"] = (lastModifiedTime).toIso8601String(); |
6795 } | 7908 } |
| 7909 if (lastModifierEmail != null) { |
| 7910 _json["lastModifierEmail"] = lastModifierEmail; |
| 7911 } |
6796 if (mosaic != null) { | 7912 if (mosaic != null) { |
6797 _json["mosaic"] = mosaic; | 7913 _json["mosaic"] = mosaic; |
6798 } | 7914 } |
6799 if (name != null) { | 7915 if (name != null) { |
6800 _json["name"] = name; | 7916 _json["name"] = name; |
6801 } | 7917 } |
6802 if (processingStatus != null) { | 7918 if (processingStatus != null) { |
6803 _json["processingStatus"] = processingStatus; | 7919 _json["processingStatus"] = processingStatus; |
6804 } | 7920 } |
6805 if (projectId != null) { | 7921 if (projectId != null) { |
6806 _json["projectId"] = projectId; | 7922 _json["projectId"] = projectId; |
6807 } | 7923 } |
6808 if (rasterType != null) { | 7924 if (rasterType != null) { |
6809 _json["rasterType"] = rasterType; | 7925 _json["rasterType"] = rasterType; |
6810 } | 7926 } |
6811 if (tags != null) { | 7927 if (tags != null) { |
6812 _json["tags"] = tags; | 7928 _json["tags"] = tags; |
6813 } | 7929 } |
| 7930 if (writersCanEditPermissions != null) { |
| 7931 _json["writersCanEditPermissions"] = writersCanEditPermissions; |
| 7932 } |
6814 return _json; | 7933 return _json; |
6815 } | 7934 } |
6816 } | 7935 } |
6817 | 7936 |
6818 | 7937 |
6819 /** The response returned by a call to raster_collections.List. */ | 7938 /** |
| 7939 * The response returned by a call to raster_collections.List. Note: The list |
| 7940 * response does not include all the fields available in a raster collection. |
| 7941 * Refer to the RasterCollection resource description for details of the fields |
| 7942 * that are not included. You'll need to send a get request to retrieve the |
| 7943 * additional fields for each raster collection. |
| 7944 */ |
6820 class RasterCollectionsListResponse { | 7945 class RasterCollectionsListResponse { |
6821 /** Next page token. */ | 7946 /** Next page token. */ |
6822 core.String nextPageToken; | 7947 core.String nextPageToken; |
6823 | 7948 |
6824 core.List<core.int> get nextPageTokenAsBytes { | 7949 core.List<core.int> get nextPageTokenAsBytes { |
6825 return crypto.CryptoUtils.base64StringToBytes(nextPageToken); | 7950 return crypto.CryptoUtils.base64StringToBytes(nextPageToken); |
6826 } | 7951 } |
6827 | 7952 |
6828 void set nextPageTokenAsBytes(core.List<core.int> _bytes) { | 7953 void set nextPageTokenAsBytes(core.List<core.int> _bytes) { |
6829 nextPageToken = crypto.CryptoUtils.bytesToBase64(_bytes, urlSafe: true); | 7954 nextPageToken = crypto.CryptoUtils.bytesToBase64(_bytes, urlSafe: true); |
(...skipping 24 matching lines...) Loading... |
6854 } | 7979 } |
6855 return _json; | 7980 return _json; |
6856 } | 7981 } |
6857 } | 7982 } |
6858 | 7983 |
6859 | 7984 |
6860 /** A raster resource. */ | 7985 /** A raster resource. */ |
6861 class RasterCollectionsRaster { | 7986 class RasterCollectionsRaster { |
6862 /** | 7987 /** |
6863 * A rectangular bounding box which contains all of the data in this Raster. | 7988 * A rectangular bounding box which contains all of the data in this Raster. |
6864 * The numbers represent latitude and longitude in decimal degrees. | 7989 * The box is expressed as \"west, south, east, north\". The numbers represent |
| 7990 * latitudes and longitudes in decimal degrees. |
6865 */ | 7991 */ |
6866 core.List<core.double> bbox; | 7992 core.List<core.double> bbox; |
6867 | 7993 |
6868 /** | 7994 /** |
6869 * The creation time of this raster. The value is an RFC 3339 formatted | 7995 * The creation time of this raster. The value is an RFC 3339 formatted |
6870 * date-time value (e.g. 1970-01-01T00:00:00Z). | 7996 * date-time value (e.g. 1970-01-01T00:00:00Z). |
6871 */ | 7997 */ |
6872 core.DateTime creationTime; | 7998 core.DateTime creationTime; |
6873 | 7999 |
6874 /** The description of this Raster, supplied by the author. */ | 8000 /** The description of this Raster, supplied by the author. */ |
(...skipping 434 matching lines...) Loading... |
7309 _json["min"] = min; | 8435 _json["min"] = min; |
7310 } | 8436 } |
7311 return _json; | 8437 return _json; |
7312 } | 8438 } |
7313 } | 8439 } |
7314 | 8440 |
7315 | 8441 |
7316 /** A collection of geographic features, and associated metadata. */ | 8442 /** A collection of geographic features, and associated metadata. */ |
7317 class Table { | 8443 class Table { |
7318 /** | 8444 /** |
7319 * A rectangular bounding box which contains all of the data in this table. | 8445 * A rectangular bounding box which contains all of the data in this Table. |
7320 * The numbers represent latitude and longitude in decimal degrees. | 8446 * The box is expressed as \"west, south, east, north\". The numbers represent |
| 8447 * latitude and longitude in decimal degrees. |
7321 */ | 8448 */ |
7322 core.List<core.double> bbox; | 8449 core.List<core.double> bbox; |
7323 | 8450 |
7324 /** | 8451 /** |
7325 * The creation time of this table. The value is an RFC 3339 formatted | 8452 * The creation time of this table. The value is an RFC 3339 formatted |
7326 * date-time value (e.g. 1970-01-01T00:00:00Z). | 8453 * date-time value (e.g. 1970-01-01T00:00:00Z). |
7327 */ | 8454 */ |
7328 core.DateTime creationTime; | 8455 core.DateTime creationTime; |
7329 | 8456 |
| 8457 /** |
| 8458 * The email address of the creator of this table. This is only returned on |
| 8459 * GET requests and not LIST requests. |
| 8460 */ |
| 8461 core.String creatorEmail; |
| 8462 |
7330 /** The description of this table, supplied by the author. */ | 8463 /** The description of this table, supplied by the author. */ |
7331 core.String description; | 8464 core.String description; |
7332 | 8465 |
7333 /** | 8466 /** |
7334 * Deprecated: The name of an access list of the Map Editor type. The user on | 8467 * Deprecated: The name of an access list of the Map Editor type. The user on |
7335 * whose behalf the request is being sent must be an editor on that access | 8468 * whose behalf the request is being sent must be an editor on that access |
7336 * list. Note: Google Maps Engine no longer uses access lists. For backward | 8469 * list. Note: Google Maps Engine no longer uses access lists. Instead, each |
7337 * compatibility, the API still accepts access lists for projects that are | 8470 * asset has its own list of permissions. For backward compatibility, the API |
7338 * already using access lists. If you created a GME account/project after July | 8471 * still accepts access lists for projects that are already using access |
7339 * 14th, 2014, you will not be able to send API requests that include access | 8472 * lists. If you created a GME account/project after July 14th, 2014, you will |
7340 * lists. The API does not yet support the new permissions model. When you | 8473 * not be able to send API requests that include access lists. Note: This is |
7341 * create a map via the API without specifying permissions, the account that | 8474 * an input field only. It is not returned in response to a list or get |
7342 * created the map is the owner and has effective administrator access. Users | 8475 * request. |
7343 * can then use the Maps Engine user interface to adjust the permissions. This | |
7344 * is a temporary workaround until the API supports the new permissions model. | |
7345 * Read Add new users and groups in the Google Maps Engine help center for | |
7346 * more information. | |
7347 */ | 8476 */ |
7348 core.String draftAccessList; | 8477 core.String draftAccessList; |
7349 | 8478 |
7350 /** The ETag, used to refer to the current version of the asset. */ | 8479 /** The ETag, used to refer to the current version of the asset. */ |
7351 core.String etag; | 8480 core.String etag; |
7352 | 8481 |
7353 /** The files associated with this table. */ | 8482 /** The files associated with this table. */ |
7354 core.List<File> files; | 8483 core.List<File> files; |
7355 | 8484 |
7356 /** A globally unique ID, used to refer to this table. */ | 8485 /** A globally unique ID, used to refer to this table. */ |
7357 core.String id; | 8486 core.String id; |
7358 | 8487 |
7359 /** | 8488 /** |
7360 * The last modified time of this table. The value is an RFC 3339 formatted | 8489 * The last modified time of this table. The value is an RFC 3339 formatted |
7361 * date-time value (e.g. 1970-01-01T00:00:00Z). | 8490 * date-time value (e.g. 1970-01-01T00:00:00Z). |
7362 */ | 8491 */ |
7363 core.DateTime lastModifiedTime; | 8492 core.DateTime lastModifiedTime; |
7364 | 8493 |
| 8494 /** |
| 8495 * The email address of the last modifier of this table. This is only returned |
| 8496 * on GET requests and not LIST requests. |
| 8497 */ |
| 8498 core.String lastModifierEmail; |
| 8499 |
7365 /** The name of this table, supplied by the author. */ | 8500 /** The name of this table, supplied by the author. */ |
7366 core.String name; | 8501 core.String name; |
7367 | 8502 |
7368 /** | 8503 /** |
7369 * The processing status of this table. | 8504 * The processing status of this table. |
7370 * Possible string values are: | 8505 * Possible string values are: |
7371 * - "complete" | 8506 * - "complete" |
7372 * - "failed" | 8507 * - "failed" |
7373 * - "notReady" | 8508 * - "notReady" |
7374 * - "processing" | 8509 * - "processing" |
7375 * - "ready" | 8510 * - "ready" |
7376 */ | 8511 */ |
7377 core.String processingStatus; | 8512 core.String processingStatus; |
7378 | 8513 |
7379 /** The ID of the project to which the table belongs. */ | 8514 /** The ID of the project to which the table belongs. */ |
7380 core.String projectId; | 8515 core.String projectId; |
7381 | 8516 |
7382 /** | 8517 /** |
7383 * Deprecated: The access list to whom view permissions are granted. The value | 8518 * Deprecated: The access list to whom view permissions are granted. The value |
7384 * must be the name of a Maps Engine access list of the Map Viewer type, and | 8519 * must be the name of a Maps Engine access list of the Map Viewer type, and |
7385 * the user must be a viewer on that list. Read Share data, layers, and maps | 8520 * the user must be a viewer on that list. Note: Google Maps Engine no longer |
7386 * in the Google Maps Engine help center for more information. | 8521 * uses access lists. Instead, each asset has its own list of permissions. For |
| 8522 * backward compatibility, the API still accepts access lists for projects |
| 8523 * that are already using access lists. If you created a GME account/project |
| 8524 * after July 14th, 2014, you will not be able to send API requests that |
| 8525 * include access lists. Note: This is an input field only. It is not returned |
| 8526 * in response to a list or get request. |
7387 */ | 8527 */ |
7388 core.String publishedAccessList; | 8528 core.String publishedAccessList; |
7389 | 8529 |
7390 /** The schema for this table. */ | 8530 /** |
| 8531 * The schema for this table. Note: The schema is returned in response to a |
| 8532 * get request but not a list request. After requesting a list of tables, |
| 8533 * you'll need to send a get request to retrieve the schema for each table. |
| 8534 */ |
7391 Schema schema; | 8535 Schema schema; |
7392 | 8536 |
7393 /** | 8537 /** |
7394 * Encoding of the uploaded files. Valid values include UTF-8, CP1251, ISO | 8538 * Encoding of the uploaded files. Valid values include UTF-8, CP1251, ISO |
7395 * 8859-1, and Shift_JIS. | 8539 * 8859-1, and Shift_JIS. |
7396 */ | 8540 */ |
7397 core.String sourceEncoding; | 8541 core.String sourceEncoding; |
7398 | 8542 |
7399 /** | 8543 /** |
7400 * An array of text strings, with each string representing a tag. More | 8544 * An array of text strings, with each string representing a tag. More |
7401 * information about tags can be found in the Tagging data article of the Maps | 8545 * information about tags can be found in the Tagging data article of the Maps |
7402 * Engine help center. | 8546 * Engine help center. |
7403 */ | 8547 */ |
7404 Tags tags; | 8548 Tags tags; |
7405 | 8549 |
| 8550 /** If true, WRITERs of the asset are able to edit the asset permissions. */ |
| 8551 core.bool writersCanEditPermissions; |
| 8552 |
7406 | 8553 |
7407 Table(); | 8554 Table(); |
7408 | 8555 |
7409 Table.fromJson(core.Map _json) { | 8556 Table.fromJson(core.Map _json) { |
7410 if (_json.containsKey("bbox")) { | 8557 if (_json.containsKey("bbox")) { |
7411 bbox = _json["bbox"]; | 8558 bbox = _json["bbox"]; |
7412 } | 8559 } |
7413 if (_json.containsKey("creationTime")) { | 8560 if (_json.containsKey("creationTime")) { |
7414 creationTime = core.DateTime.parse(_json["creationTime"]); | 8561 creationTime = core.DateTime.parse(_json["creationTime"]); |
7415 } | 8562 } |
| 8563 if (_json.containsKey("creatorEmail")) { |
| 8564 creatorEmail = _json["creatorEmail"]; |
| 8565 } |
7416 if (_json.containsKey("description")) { | 8566 if (_json.containsKey("description")) { |
7417 description = _json["description"]; | 8567 description = _json["description"]; |
7418 } | 8568 } |
7419 if (_json.containsKey("draftAccessList")) { | 8569 if (_json.containsKey("draftAccessList")) { |
7420 draftAccessList = _json["draftAccessList"]; | 8570 draftAccessList = _json["draftAccessList"]; |
7421 } | 8571 } |
7422 if (_json.containsKey("etag")) { | 8572 if (_json.containsKey("etag")) { |
7423 etag = _json["etag"]; | 8573 etag = _json["etag"]; |
7424 } | 8574 } |
7425 if (_json.containsKey("files")) { | 8575 if (_json.containsKey("files")) { |
7426 files = _json["files"].map((value) => new File.fromJson(value)).toList(); | 8576 files = _json["files"].map((value) => new File.fromJson(value)).toList(); |
7427 } | 8577 } |
7428 if (_json.containsKey("id")) { | 8578 if (_json.containsKey("id")) { |
7429 id = _json["id"]; | 8579 id = _json["id"]; |
7430 } | 8580 } |
7431 if (_json.containsKey("lastModifiedTime")) { | 8581 if (_json.containsKey("lastModifiedTime")) { |
7432 lastModifiedTime = core.DateTime.parse(_json["lastModifiedTime"]); | 8582 lastModifiedTime = core.DateTime.parse(_json["lastModifiedTime"]); |
7433 } | 8583 } |
| 8584 if (_json.containsKey("lastModifierEmail")) { |
| 8585 lastModifierEmail = _json["lastModifierEmail"]; |
| 8586 } |
7434 if (_json.containsKey("name")) { | 8587 if (_json.containsKey("name")) { |
7435 name = _json["name"]; | 8588 name = _json["name"]; |
7436 } | 8589 } |
7437 if (_json.containsKey("processingStatus")) { | 8590 if (_json.containsKey("processingStatus")) { |
7438 processingStatus = _json["processingStatus"]; | 8591 processingStatus = _json["processingStatus"]; |
7439 } | 8592 } |
7440 if (_json.containsKey("projectId")) { | 8593 if (_json.containsKey("projectId")) { |
7441 projectId = _json["projectId"]; | 8594 projectId = _json["projectId"]; |
7442 } | 8595 } |
7443 if (_json.containsKey("publishedAccessList")) { | 8596 if (_json.containsKey("publishedAccessList")) { |
7444 publishedAccessList = _json["publishedAccessList"]; | 8597 publishedAccessList = _json["publishedAccessList"]; |
7445 } | 8598 } |
7446 if (_json.containsKey("schema")) { | 8599 if (_json.containsKey("schema")) { |
7447 schema = new Schema.fromJson(_json["schema"]); | 8600 schema = new Schema.fromJson(_json["schema"]); |
7448 } | 8601 } |
7449 if (_json.containsKey("sourceEncoding")) { | 8602 if (_json.containsKey("sourceEncoding")) { |
7450 sourceEncoding = _json["sourceEncoding"]; | 8603 sourceEncoding = _json["sourceEncoding"]; |
7451 } | 8604 } |
7452 if (_json.containsKey("tags")) { | 8605 if (_json.containsKey("tags")) { |
7453 tags = new Tags.fromJson(_json["tags"]); | 8606 tags = new Tags.fromJson(_json["tags"]); |
7454 } | 8607 } |
| 8608 if (_json.containsKey("writersCanEditPermissions")) { |
| 8609 writersCanEditPermissions = _json["writersCanEditPermissions"]; |
| 8610 } |
7455 } | 8611 } |
7456 | 8612 |
7457 core.Map toJson() { | 8613 core.Map toJson() { |
7458 var _json = new core.Map(); | 8614 var _json = new core.Map(); |
7459 if (bbox != null) { | 8615 if (bbox != null) { |
7460 _json["bbox"] = bbox; | 8616 _json["bbox"] = bbox; |
7461 } | 8617 } |
7462 if (creationTime != null) { | 8618 if (creationTime != null) { |
7463 _json["creationTime"] = (creationTime).toIso8601String(); | 8619 _json["creationTime"] = (creationTime).toIso8601String(); |
7464 } | 8620 } |
| 8621 if (creatorEmail != null) { |
| 8622 _json["creatorEmail"] = creatorEmail; |
| 8623 } |
7465 if (description != null) { | 8624 if (description != null) { |
7466 _json["description"] = description; | 8625 _json["description"] = description; |
7467 } | 8626 } |
7468 if (draftAccessList != null) { | 8627 if (draftAccessList != null) { |
7469 _json["draftAccessList"] = draftAccessList; | 8628 _json["draftAccessList"] = draftAccessList; |
7470 } | 8629 } |
7471 if (etag != null) { | 8630 if (etag != null) { |
7472 _json["etag"] = etag; | 8631 _json["etag"] = etag; |
7473 } | 8632 } |
7474 if (files != null) { | 8633 if (files != null) { |
7475 _json["files"] = files.map((value) => (value).toJson()).toList(); | 8634 _json["files"] = files.map((value) => (value).toJson()).toList(); |
7476 } | 8635 } |
7477 if (id != null) { | 8636 if (id != null) { |
7478 _json["id"] = id; | 8637 _json["id"] = id; |
7479 } | 8638 } |
7480 if (lastModifiedTime != null) { | 8639 if (lastModifiedTime != null) { |
7481 _json["lastModifiedTime"] = (lastModifiedTime).toIso8601String(); | 8640 _json["lastModifiedTime"] = (lastModifiedTime).toIso8601String(); |
7482 } | 8641 } |
| 8642 if (lastModifierEmail != null) { |
| 8643 _json["lastModifierEmail"] = lastModifierEmail; |
| 8644 } |
7483 if (name != null) { | 8645 if (name != null) { |
7484 _json["name"] = name; | 8646 _json["name"] = name; |
7485 } | 8647 } |
7486 if (processingStatus != null) { | 8648 if (processingStatus != null) { |
7487 _json["processingStatus"] = processingStatus; | 8649 _json["processingStatus"] = processingStatus; |
7488 } | 8650 } |
7489 if (projectId != null) { | 8651 if (projectId != null) { |
7490 _json["projectId"] = projectId; | 8652 _json["projectId"] = projectId; |
7491 } | 8653 } |
7492 if (publishedAccessList != null) { | 8654 if (publishedAccessList != null) { |
7493 _json["publishedAccessList"] = publishedAccessList; | 8655 _json["publishedAccessList"] = publishedAccessList; |
7494 } | 8656 } |
7495 if (schema != null) { | 8657 if (schema != null) { |
7496 _json["schema"] = (schema).toJson(); | 8658 _json["schema"] = (schema).toJson(); |
7497 } | 8659 } |
7498 if (sourceEncoding != null) { | 8660 if (sourceEncoding != null) { |
7499 _json["sourceEncoding"] = sourceEncoding; | 8661 _json["sourceEncoding"] = sourceEncoding; |
7500 } | 8662 } |
7501 if (tags != null) { | 8663 if (tags != null) { |
7502 _json["tags"] = tags; | 8664 _json["tags"] = tags; |
7503 } | 8665 } |
| 8666 if (writersCanEditPermissions != null) { |
| 8667 _json["writersCanEditPermissions"] = writersCanEditPermissions; |
| 8668 } |
7504 return _json; | 8669 return _json; |
7505 } | 8670 } |
7506 } | 8671 } |
7507 | 8672 |
7508 | 8673 |
7509 /** Not documented yet. */ | 8674 /** Not documented yet. */ |
7510 class TableColumn { | 8675 class TableColumn { |
7511 /** The column name. */ | 8676 /** The column name. */ |
7512 core.String name; | 8677 core.String name; |
7513 | 8678 |
(...skipping 29 matching lines...) Loading... |
7543 _json["name"] = name; | 8708 _json["name"] = name; |
7544 } | 8709 } |
7545 if (type != null) { | 8710 if (type != null) { |
7546 _json["type"] = type; | 8711 _json["type"] = type; |
7547 } | 8712 } |
7548 return _json; | 8713 return _json; |
7549 } | 8714 } |
7550 } | 8715 } |
7551 | 8716 |
7552 | 8717 |
7553 /** The response returned by a call to tables.List. */ | 8718 /** |
| 8719 * The response returned by a call to tables.List. Note: The list response does |
| 8720 * not include all the fields available in a table. Refer to the table resource |
| 8721 * description for details of the fields that are not included. You'll need to |
| 8722 * send a get request to retrieve the additional fields for each table. |
| 8723 */ |
7554 class TablesListResponse { | 8724 class TablesListResponse { |
7555 /** Next page token. */ | 8725 /** Next page token. */ |
7556 core.String nextPageToken; | 8726 core.String nextPageToken; |
7557 | 8727 |
7558 core.List<core.int> get nextPageTokenAsBytes { | 8728 core.List<core.int> get nextPageTokenAsBytes { |
7559 return crypto.CryptoUtils.base64StringToBytes(nextPageToken); | 8729 return crypto.CryptoUtils.base64StringToBytes(nextPageToken); |
7560 } | 8730 } |
7561 | 8731 |
7562 void set nextPageTokenAsBytes(core.List<core.int> _bytes) { | 8732 void set nextPageTokenAsBytes(core.List<core.int> _bytes) { |
7563 nextPageToken = crypto.CryptoUtils.bytesToBase64(_bytes, urlSafe: true); | 8733 nextPageToken = crypto.CryptoUtils.bytesToBase64(_bytes, urlSafe: true); |
(...skipping 168 matching lines...) Loading... |
7732 _json["max"] = max; | 8902 _json["max"] = max; |
7733 } | 8903 } |
7734 if (min != null) { | 8904 if (min != null) { |
7735 _json["min"] = min; | 8905 _json["min"] = min; |
7736 } | 8906 } |
7737 return _json; | 8907 return _json; |
7738 } | 8908 } |
7739 } | 8909 } |
7740 | 8910 |
7741 | 8911 |
OLD | NEW |