google-api-client 0.8.3 → 0.9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (497) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +20 -0
  3. data/.rspec +2 -0
  4. data/.rubocop.yml +7 -0
  5. data/.rubocop_todo.yml +63 -0
  6. data/.travis.yml +22 -0
  7. data/.yardopts +12 -0
  8. data/CHANGELOG.md +52 -2
  9. data/CONTRIBUTING.md +31 -0
  10. data/Gemfile +35 -1
  11. data/MIGRATING.md +171 -0
  12. data/README.md +181 -148
  13. data/Rakefile +1 -40
  14. data/api_names.yaml +1036 -0
  15. data/api_names_out.yaml +26053 -0
  16. data/bin/generate-api +95 -0
  17. data/generated/google/apis/adexchangebuyer_v1_3/classes.rb +1335 -0
  18. data/generated/google/apis/adexchangebuyer_v1_3/representations.rb +446 -0
  19. data/generated/google/apis/adexchangebuyer_v1_3/service.rb +872 -0
  20. data/generated/google/apis/adexchangebuyer_v1_3.rb +35 -0
  21. data/generated/google/apis/adexchangeseller_v2_0/classes.rb +792 -0
  22. data/generated/google/apis/adexchangeseller_v2_0/representations.rb +309 -0
  23. data/generated/google/apis/adexchangeseller_v2_0/service.rb +668 -0
  24. data/generated/google/apis/adexchangeseller_v2_0.rb +38 -0
  25. data/generated/google/apis/admin_datatransfer_v1/classes.rb +267 -0
  26. data/generated/google/apis/admin_datatransfer_v1/representations.rb +118 -0
  27. data/generated/google/apis/admin_datatransfer_v1/service.rb +262 -0
  28. data/generated/google/apis/admin_datatransfer_v1.rb +37 -0
  29. data/generated/google/apis/admin_directory_v1/classes.rb +3141 -0
  30. data/generated/google/apis/admin_directory_v1/representations.rb +1029 -0
  31. data/generated/google/apis/admin_directory_v1/service.rb +3818 -0
  32. data/generated/google/apis/admin_directory_v1.rb +113 -0
  33. data/generated/google/apis/admin_reports_v1/classes.rb +582 -0
  34. data/generated/google/apis/admin_reports_v1/representations.rb +231 -0
  35. data/generated/google/apis/admin_reports_v1/service.rb +336 -0
  36. data/generated/google/apis/admin_reports_v1.rb +38 -0
  37. data/generated/google/apis/adsense_v1_4/classes.rb +1285 -0
  38. data/generated/google/apis/adsense_v1_4/representations.rb +494 -0
  39. data/generated/google/apis/adsense_v1_4/service.rb +1714 -0
  40. data/generated/google/apis/adsense_v1_4.rb +38 -0
  41. data/generated/google/apis/adsensehost_v4_1/classes.rb +834 -0
  42. data/generated/google/apis/adsensehost_v4_1/representations.rb +327 -0
  43. data/generated/google/apis/adsensehost_v4_1/service.rb +1164 -0
  44. data/generated/google/apis/adsensehost_v4_1.rb +35 -0
  45. data/generated/google/apis/analytics_v3/classes.rb +5118 -0
  46. data/generated/google/apis/analytics_v3/representations.rb +1662 -0
  47. data/generated/google/apis/analytics_v3/service.rb +3568 -0
  48. data/generated/google/apis/analytics_v3.rb +49 -0
  49. data/generated/google/apis/androidenterprise_v1/classes.rb +1443 -0
  50. data/generated/google/apis/androidenterprise_v1/representations.rb +538 -0
  51. data/generated/google/apis/androidenterprise_v1/service.rb +2602 -0
  52. data/generated/google/apis/androidenterprise_v1.rb +35 -0
  53. data/generated/google/apis/androidpublisher_v2/classes.rb +1411 -0
  54. data/generated/google/apis/androidpublisher_v2/representations.rb +646 -0
  55. data/generated/google/apis/androidpublisher_v2/service.rb +2338 -0
  56. data/generated/google/apis/androidpublisher_v2.rb +34 -0
  57. data/generated/google/apis/appengine_v1beta4/classes.rb +1532 -0
  58. data/generated/google/apis/appengine_v1beta4/representations.rb +526 -0
  59. data/generated/google/apis/appengine_v1beta4/service.rb +476 -0
  60. data/generated/google/apis/appengine_v1beta4.rb +35 -0
  61. data/generated/google/apis/appsactivity_v1/classes.rb +392 -0
  62. data/generated/google/apis/appsactivity_v1/representations.rb +184 -0
  63. data/generated/google/apis/appsactivity_v1/service.rb +128 -0
  64. data/generated/google/apis/appsactivity_v1.rb +46 -0
  65. data/generated/google/apis/appstate_v1/classes.rb +154 -0
  66. data/generated/google/apis/appstate_v1/representations.rb +79 -0
  67. data/generated/google/apis/appstate_v1/service.rb +260 -0
  68. data/generated/google/apis/appstate_v1.rb +34 -0
  69. data/generated/google/apis/autoscaler_v1beta2/classes.rb +747 -0
  70. data/generated/google/apis/autoscaler_v1beta2/representations.rb +281 -0
  71. data/generated/google/apis/autoscaler_v1beta2/service.rb +478 -0
  72. data/generated/google/apis/autoscaler_v1beta2.rb +38 -0
  73. data/generated/google/apis/bigquery_v2/classes.rb +2471 -0
  74. data/generated/google/apis/bigquery_v2/representations.rb +816 -0
  75. data/generated/google/apis/bigquery_v2/service.rb +982 -0
  76. data/generated/google/apis/bigquery_v2.rb +52 -0
  77. data/generated/google/apis/blogger_v3/classes.rb +1354 -0
  78. data/generated/google/apis/blogger_v3/representations.rb +562 -0
  79. data/generated/google/apis/blogger_v3/service.rb +1587 -0
  80. data/generated/google/apis/blogger_v3.rb +37 -0
  81. data/generated/google/apis/books_v1/classes.rb +3956 -0
  82. data/generated/google/apis/books_v1/representations.rb +1538 -0
  83. data/generated/google/apis/books_v1/service.rb +2290 -0
  84. data/generated/google/apis/books_v1.rb +34 -0
  85. data/generated/google/apis/calendar_v3/classes.rb +1742 -0
  86. data/generated/google/apis/calendar_v3/representations.rb +567 -0
  87. data/generated/google/apis/calendar_v3/service.rb +1968 -0
  88. data/generated/google/apis/calendar_v3.rb +37 -0
  89. data/generated/google/apis/civicinfo_v2/classes.rb +1127 -0
  90. data/generated/google/apis/civicinfo_v2/representations.rb +383 -0
  91. data/generated/google/apis/civicinfo_v2/service.rb +279 -0
  92. data/{lib/google/api_client/service_account.rb → generated/google/apis/civicinfo_v2.rb} +18 -8
  93. data/generated/google/apis/classroom_v1/classes.rb +512 -0
  94. data/generated/google/apis/classroom_v1/representations.rb +217 -0
  95. data/generated/google/apis/classroom_v1/service.rb +970 -0
  96. data/generated/google/apis/classroom_v1.rb +49 -0
  97. data/generated/google/apis/classroom_v1beta1/classes.rb +447 -0
  98. data/generated/google/apis/classroom_v1beta1/representations.rb +190 -0
  99. data/generated/google/apis/classroom_v1beta1/service.rb +791 -0
  100. data/generated/google/apis/classroom_v1beta1.rb +49 -0
  101. data/generated/google/apis/cloudbilling_v1/classes.rb +169 -0
  102. data/generated/google/apis/cloudbilling_v1/representations.rb +79 -0
  103. data/generated/google/apis/cloudbilling_v1/service.rb +258 -0
  104. data/generated/google/apis/cloudbilling_v1.rb +35 -0
  105. data/generated/google/apis/clouddebugger_v2/classes.rb +1004 -0
  106. data/generated/google/apis/clouddebugger_v2/representations.rb +410 -0
  107. data/generated/google/apis/clouddebugger_v2/service.rb +370 -0
  108. data/generated/google/apis/clouddebugger_v2.rb +41 -0
  109. data/generated/google/apis/cloudmonitoring_v2beta2/classes.rb +679 -0
  110. data/generated/google/apis/cloudmonitoring_v2beta2/representations.rb +311 -0
  111. data/generated/google/apis/cloudmonitoring_v2beta2/service.rb +452 -0
  112. data/generated/google/apis/cloudmonitoring_v2beta2.rb +37 -0
  113. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +437 -0
  114. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +188 -0
  115. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +623 -0
  116. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +38 -0
  117. data/generated/google/apis/cloudtrace_v1/classes.rb +188 -0
  118. data/generated/google/apis/cloudtrace_v1/representations.rb +92 -0
  119. data/generated/google/apis/cloudtrace_v1/service.rb +190 -0
  120. data/generated/google/apis/cloudtrace_v1.rb +35 -0
  121. data/generated/google/apis/clouduseraccounts_beta/classes.rb +823 -0
  122. data/generated/google/apis/clouduseraccounts_beta/representations.rb +313 -0
  123. data/generated/google/apis/clouduseraccounts_beta/service.rb +854 -0
  124. data/generated/google/apis/clouduseraccounts_beta.rb +43 -0
  125. data/generated/google/apis/compute_beta/classes.rb +9128 -0
  126. data/generated/google/apis/compute_beta/representations.rb +3048 -0
  127. data/generated/google/apis/compute_beta/service.rb +10154 -0
  128. data/generated/google/apis/compute_beta.rb +49 -0
  129. data/generated/google/apis/compute_v1/classes.rb +8681 -0
  130. data/generated/google/apis/compute_v1/representations.rb +2895 -0
  131. data/generated/google/apis/compute_v1/service.rb +9252 -0
  132. data/generated/google/apis/compute_v1.rb +49 -0
  133. data/generated/google/apis/container_v1/classes.rb +463 -0
  134. data/generated/google/apis/container_v1/representations.rb +175 -0
  135. data/generated/google/apis/container_v1/service.rb +367 -0
  136. data/generated/google/apis/container_v1.rb +35 -0
  137. data/generated/google/apis/container_v1beta1/classes.rb +466 -0
  138. data/generated/google/apis/container_v1beta1/representations.rb +177 -0
  139. data/generated/google/apis/container_v1beta1/service.rb +394 -0
  140. data/generated/google/apis/container_v1beta1.rb +35 -0
  141. data/generated/google/apis/content_v2/classes.rb +5986 -0
  142. data/generated/google/apis/content_v2/representations.rb +2288 -0
  143. data/generated/google/apis/content_v2/service.rb +2338 -0
  144. data/generated/google/apis/content_v2.rb +35 -0
  145. data/generated/google/apis/coordinate_v1/classes.rb +669 -0
  146. data/generated/google/apis/coordinate_v1/representations.rb +285 -0
  147. data/generated/google/apis/coordinate_v1/service.rb +678 -0
  148. data/generated/google/apis/coordinate_v1.rb +37 -0
  149. data/generated/google/apis/customsearch_v1/classes.rb +771 -0
  150. data/generated/google/apis/customsearch_v1/representations.rb +276 -0
  151. data/generated/google/apis/customsearch_v1/service.rb +207 -0
  152. data/{lib/google/api_client/auth/compute_service_account.rb → generated/google/apis/customsearch_v1.rb} +13 -10
  153. data/generated/google/apis/datastore_v1beta2/classes.rb +1186 -0
  154. data/generated/google/apis/datastore_v1beta2/representations.rb +526 -0
  155. data/generated/google/apis/datastore_v1beta2/service.rb +294 -0
  156. data/generated/google/apis/datastore_v1beta2.rb +40 -0
  157. data/generated/google/apis/deploymentmanager_v2/classes.rb +1091 -0
  158. data/generated/google/apis/deploymentmanager_v2/representations.rb +422 -0
  159. data/generated/google/apis/deploymentmanager_v2/service.rb +857 -0
  160. data/generated/google/apis/deploymentmanager_v2.rb +44 -0
  161. data/generated/google/apis/deploymentmanager_v2beta2/classes.rb +843 -0
  162. data/generated/google/apis/deploymentmanager_v2beta2/representations.rb +306 -0
  163. data/generated/google/apis/deploymentmanager_v2beta2/service.rb +689 -0
  164. data/generated/google/apis/deploymentmanager_v2beta2.rb +44 -0
  165. data/generated/google/apis/dfareporting_v2_1/classes.rb +10770 -0
  166. data/generated/google/apis/dfareporting_v2_1/representations.rb +3438 -0
  167. data/generated/google/apis/dfareporting_v2_1/service.rb +8585 -0
  168. data/generated/google/apis/dfareporting_v2_1.rb +37 -0
  169. data/generated/google/apis/discovery_v1/classes.rb +961 -0
  170. data/generated/google/apis/discovery_v1/representations.rb +357 -0
  171. data/generated/google/apis/discovery_v1/service.rb +142 -0
  172. data/generated/google/apis/discovery_v1.rb +32 -0
  173. data/generated/google/apis/dns_v1/classes.rb +406 -0
  174. data/generated/google/apis/dns_v1/representations.rb +151 -0
  175. data/generated/google/apis/dns_v1/service.rb +454 -0
  176. data/generated/google/apis/dns_v1.rb +44 -0
  177. data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +716 -0
  178. data/generated/google/apis/doubleclickbidmanager_v1/representations.rb +298 -0
  179. data/generated/google/apis/doubleclickbidmanager_v1/service.rb +341 -0
  180. data/generated/google/apis/doubleclickbidmanager_v1.rb +31 -0
  181. data/generated/google/apis/doubleclicksearch_v2/classes.rb +956 -0
  182. data/generated/google/apis/doubleclicksearch_v2/representations.rb +316 -0
  183. data/generated/google/apis/doubleclicksearch_v2/service.rb +480 -0
  184. data/generated/google/apis/doubleclicksearch_v2.rb +35 -0
  185. data/generated/google/apis/drive_v2/classes.rb +2562 -0
  186. data/generated/google/apis/drive_v2/representations.rb +795 -0
  187. data/generated/google/apis/drive_v2/service.rb +2696 -0
  188. data/generated/google/apis/drive_v2.rb +58 -0
  189. data/generated/google/apis/drive_v3/classes.rb +1534 -0
  190. data/generated/google/apis/drive_v3/representations.rb +497 -0
  191. data/generated/google/apis/drive_v3/service.rb +1541 -0
  192. data/generated/google/apis/drive_v3.rb +55 -0
  193. data/generated/google/apis/fitness_v1/classes.rb +885 -0
  194. data/generated/google/apis/fitness_v1/representations.rb +320 -0
  195. data/generated/google/apis/fitness_v1/service.rb +675 -0
  196. data/generated/google/apis/fitness_v1.rb +49 -0
  197. data/generated/google/apis/fusiontables_v2/classes.rb +1048 -0
  198. data/generated/google/apis/fusiontables_v2/representations.rb +409 -0
  199. data/generated/google/apis/fusiontables_v2/service.rb +1463 -0
  200. data/generated/google/apis/fusiontables_v2.rb +37 -0
  201. data/generated/google/apis/games_configuration_v1configuration/classes.rb +506 -0
  202. data/generated/google/apis/games_configuration_v1configuration/representations.rb +206 -0
  203. data/generated/google/apis/games_configuration_v1configuration/service.rb +565 -0
  204. data/generated/google/apis/games_configuration_v1configuration.rb +34 -0
  205. data/generated/google/apis/games_management_v1management/classes.rb +524 -0
  206. data/generated/google/apis/games_management_v1management/representations.rb +231 -0
  207. data/generated/google/apis/games_management_v1management/service.rb +994 -0
  208. data/generated/google/apis/games_management_v1management.rb +37 -0
  209. data/generated/google/apis/games_v1/classes.rb +4617 -0
  210. data/generated/google/apis/games_v1/representations.rb +1584 -0
  211. data/generated/google/apis/games_v1/service.rb +2290 -0
  212. data/generated/google/apis/games_v1.rb +40 -0
  213. data/generated/google/apis/gan_v1beta1/classes.rb +1428 -0
  214. data/generated/google/apis/gan_v1beta1/representations.rb +428 -0
  215. data/generated/google/apis/gan_v1beta1/service.rb +682 -0
  216. data/generated/google/apis/gan_v1beta1.rb +31 -0
  217. data/generated/google/apis/genomics_v1/classes.rb +2609 -0
  218. data/generated/google/apis/genomics_v1/representations.rb +909 -0
  219. data/generated/google/apis/genomics_v1/service.rb +1676 -0
  220. data/generated/google/apis/genomics_v1.rb +49 -0
  221. data/generated/google/apis/genomics_v1beta2/classes.rb +3288 -0
  222. data/generated/google/apis/genomics_v1beta2/representations.rb +1194 -0
  223. data/generated/google/apis/genomics_v1beta2/service.rb +2392 -0
  224. data/generated/google/apis/genomics_v1beta2.rb +46 -0
  225. data/generated/google/apis/gmail_v1/classes.rb +794 -0
  226. data/generated/google/apis/gmail_v1/representations.rb +339 -0
  227. data/generated/google/apis/gmail_v1/service.rb +1470 -0
  228. data/generated/google/apis/gmail_v1.rb +52 -0
  229. data/generated/google/apis/groupsmigration_v1/classes.rb +51 -0
  230. data/generated/google/apis/groupsmigration_v1/representations.rb +38 -0
  231. data/generated/google/apis/groupsmigration_v1/service.rb +110 -0
  232. data/generated/google/apis/groupsmigration_v1.rb +34 -0
  233. data/generated/google/apis/groupssettings_v1/classes.rb +221 -0
  234. data/generated/google/apis/groupssettings_v1/representations.rb +64 -0
  235. data/generated/google/apis/groupssettings_v1/service.rb +179 -0
  236. data/generated/google/apis/groupssettings_v1.rb +34 -0
  237. data/generated/google/apis/identitytoolkit_v3/classes.rb +1466 -0
  238. data/generated/google/apis/identitytoolkit_v3/representations.rb +509 -0
  239. data/generated/google/apis/identitytoolkit_v3/service.rb +581 -0
  240. data/generated/google/apis/identitytoolkit_v3.rb +31 -0
  241. data/generated/google/apis/kgsearch_v1/classes.rb +59 -0
  242. data/generated/google/apis/kgsearch_v1/representations.rb +39 -0
  243. data/generated/google/apis/kgsearch_v1/service.rb +111 -0
  244. data/{spec/google/api_client/request_spec.rb → generated/google/apis/kgsearch_v1.rb} +16 -13
  245. data/generated/google/apis/licensing_v1/classes.rb +132 -0
  246. data/generated/google/apis/licensing_v1/representations.rb +68 -0
  247. data/generated/google/apis/licensing_v1/service.rb +369 -0
  248. data/generated/google/apis/licensing_v1.rb +34 -0
  249. data/generated/google/apis/logging_v1beta3/classes.rb +1079 -0
  250. data/generated/google/apis/logging_v1beta3/representations.rb +366 -0
  251. data/generated/google/apis/logging_v1beta3/service.rb +1001 -0
  252. data/generated/google/apis/logging_v1beta3.rb +47 -0
  253. data/generated/google/apis/manager_v1beta2/classes.rb +1287 -0
  254. data/generated/google/apis/manager_v1beta2/representations.rb +536 -0
  255. data/generated/google/apis/manager_v1beta2/service.rb +372 -0
  256. data/generated/google/apis/manager_v1beta2.rb +53 -0
  257. data/generated/google/apis/mapsengine_v1/classes.rb +2873 -0
  258. data/generated/google/apis/mapsengine_v1/representations.rb +1235 -0
  259. data/generated/google/apis/mapsengine_v1/service.rb +3388 -0
  260. data/generated/google/apis/mapsengine_v1.rb +38 -0
  261. data/generated/google/apis/mirror_v1/classes.rb +1072 -0
  262. data/generated/google/apis/mirror_v1/representations.rb +350 -0
  263. data/generated/google/apis/mirror_v1/service.rb +977 -0
  264. data/generated/google/apis/mirror_v1.rb +37 -0
  265. data/generated/google/apis/oauth2_v2/classes.rb +245 -0
  266. data/generated/google/apis/oauth2_v2/representations.rb +94 -0
  267. data/generated/google/apis/oauth2_v2/service.rb +199 -0
  268. data/generated/google/apis/oauth2_v2.rb +43 -0
  269. data/generated/google/apis/pagespeedonline_v2/classes.rb +614 -0
  270. data/generated/google/apis/pagespeedonline_v2/representations.rb +244 -0
  271. data/generated/google/apis/pagespeedonline_v2/service.rb +119 -0
  272. data/generated/google/apis/pagespeedonline_v2.rb +32 -0
  273. data/generated/google/apis/partners_v2/classes.rb +942 -0
  274. data/generated/google/apis/partners_v2/representations.rb +402 -0
  275. data/generated/google/apis/partners_v2/service.rb +400 -0
  276. data/generated/google/apis/partners_v2.rb +32 -0
  277. data/generated/google/apis/plus_domains_v1/classes.rb +2609 -0
  278. data/generated/google/apis/plus_domains_v1/representations.rb +987 -0
  279. data/generated/google/apis/plus_domains_v1/service.rb +904 -0
  280. data/generated/google/apis/plus_domains_v1.rb +61 -0
  281. data/generated/google/apis/plus_v1/classes.rb +2094 -0
  282. data/generated/google/apis/plus_v1/representations.rb +805 -0
  283. data/generated/google/apis/plus_v1/service.rb +470 -0
  284. data/generated/google/apis/plus_v1.rb +43 -0
  285. data/generated/google/apis/prediction_v1_6/classes.rb +751 -0
  286. data/generated/google/apis/prediction_v1_6/representations.rb +327 -0
  287. data/generated/google/apis/prediction_v1_6/service.rb +380 -0
  288. data/generated/google/apis/prediction_v1_6.rb +44 -0
  289. data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +639 -0
  290. data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +274 -0
  291. data/generated/google/apis/proximitybeacon_v1beta1/service.rb +591 -0
  292. data/generated/google/apis/proximitybeacon_v1beta1.rb +31 -0
  293. data/generated/google/apis/pubsub_v1/classes.rb +614 -0
  294. data/generated/google/apis/pubsub_v1/representations.rb +281 -0
  295. data/generated/google/apis/pubsub_v1/service.rb +774 -0
  296. data/generated/google/apis/pubsub_v1.rb +37 -0
  297. data/generated/google/apis/pubsub_v1beta2/classes.rb +620 -0
  298. data/generated/google/apis/pubsub_v1beta2/representations.rb +282 -0
  299. data/generated/google/apis/pubsub_v1beta2/service.rb +774 -0
  300. data/generated/google/apis/pubsub_v1beta2.rb +37 -0
  301. data/generated/google/apis/qpx_express_v1/classes.rb +1268 -0
  302. data/generated/google/apis/qpx_express_v1/representations.rb +424 -0
  303. data/generated/google/apis/qpx_express_v1/service.rb +100 -0
  304. data/generated/google/apis/qpx_express_v1.rb +31 -0
  305. data/generated/google/apis/replicapool_v1beta2/classes.rb +631 -0
  306. data/generated/google/apis/replicapool_v1beta2/representations.rb +236 -0
  307. data/generated/google/apis/replicapool_v1beta2/service.rb +608 -0
  308. data/generated/google/apis/replicapool_v1beta2.rb +44 -0
  309. data/generated/google/apis/replicapoolupdater_v1beta1/classes.rb +733 -0
  310. data/generated/google/apis/replicapoolupdater_v1beta1/representations.rb +264 -0
  311. data/generated/google/apis/replicapoolupdater_v1beta1/service.rb +508 -0
  312. data/generated/google/apis/replicapoolupdater_v1beta1.rb +44 -0
  313. data/generated/google/apis/reseller_v1/classes.rb +520 -0
  314. data/generated/google/apis/reseller_v1/representations.rb +200 -0
  315. data/generated/google/apis/reseller_v1/service.rb +623 -0
  316. data/generated/google/apis/reseller_v1.rb +37 -0
  317. data/generated/google/apis/resourceviews_v1beta2/classes.rb +660 -0
  318. data/generated/google/apis/resourceviews_v1beta2/representations.rb +269 -0
  319. data/generated/google/apis/resourceviews_v1beta2/service.rb +563 -0
  320. data/generated/google/apis/resourceviews_v1beta2.rb +50 -0
  321. data/generated/google/apis/script_v1/classes.rb +259 -0
  322. data/generated/google/apis/script_v1/representations.rb +106 -0
  323. data/generated/google/apis/script_v1/service.rb +98 -0
  324. data/generated/google/apis/script_v1.rb +61 -0
  325. data/generated/google/apis/site_verification_v1/classes.rb +185 -0
  326. data/generated/google/apis/site_verification_v1/representations.rb +101 -0
  327. data/generated/google/apis/site_verification_v1/service.rb +315 -0
  328. data/generated/google/apis/site_verification_v1.rb +37 -0
  329. data/generated/google/apis/sqladmin_v1beta4/classes.rb +2001 -0
  330. data/generated/google/apis/sqladmin_v1beta4/representations.rb +758 -0
  331. data/generated/google/apis/sqladmin_v1beta4/service.rb +1625 -0
  332. data/generated/google/apis/sqladmin_v1beta4.rb +37 -0
  333. data/generated/google/apis/storage_v1/classes.rb +1222 -0
  334. data/generated/google/apis/storage_v1/representations.rb +445 -0
  335. data/generated/google/apis/storage_v1/service.rb +1903 -0
  336. data/generated/google/apis/storage_v1.rb +46 -0
  337. data/generated/google/apis/storagetransfer_v1/classes.rb +1046 -0
  338. data/generated/google/apis/storagetransfer_v1/representations.rb +370 -0
  339. data/generated/google/apis/storagetransfer_v1/service.rb +473 -0
  340. data/generated/google/apis/storagetransfer_v1.rb +35 -0
  341. data/generated/google/apis/tagmanager_v1/classes.rb +1384 -0
  342. data/generated/google/apis/tagmanager_v1/representations.rb +515 -0
  343. data/generated/google/apis/tagmanager_v1/service.rb +1817 -0
  344. data/generated/google/apis/tagmanager_v1.rb +52 -0
  345. data/generated/google/apis/taskqueue_v1beta2/classes.rb +254 -0
  346. data/generated/google/apis/taskqueue_v1beta2/representations.rb +114 -0
  347. data/generated/google/apis/taskqueue_v1beta2/service.rb +408 -0
  348. data/generated/google/apis/taskqueue_v1beta2.rb +37 -0
  349. data/generated/google/apis/tasks_v1/classes.rb +296 -0
  350. data/generated/google/apis/tasks_v1/representations.rb +115 -0
  351. data/generated/google/apis/tasks_v1/service.rb +643 -0
  352. data/generated/google/apis/tasks_v1.rb +37 -0
  353. data/generated/google/apis/translate_v2/classes.rb +168 -0
  354. data/generated/google/apis/translate_v2/representations.rb +109 -0
  355. data/generated/google/apis/translate_v2/service.rb +182 -0
  356. data/generated/google/apis/translate_v2.rb +31 -0
  357. data/generated/google/apis/urlshortener_v1/classes.rb +246 -0
  358. data/generated/google/apis/urlshortener_v1/representations.rb +111 -0
  359. data/generated/google/apis/urlshortener_v1/service.rb +176 -0
  360. data/generated/google/apis/urlshortener_v1.rb +34 -0
  361. data/generated/google/apis/webmasters_v3/classes.rb +563 -0
  362. data/generated/google/apis/webmasters_v3/representations.rb +250 -0
  363. data/generated/google/apis/webmasters_v3/service.rb +573 -0
  364. data/generated/google/apis/webmasters_v3.rb +37 -0
  365. data/generated/google/apis/youtube_analytics_v1/classes.rb +546 -0
  366. data/generated/google/apis/youtube_analytics_v1/representations.rb +243 -0
  367. data/generated/google/apis/youtube_analytics_v1/service.rb +562 -0
  368. data/generated/google/apis/youtube_analytics_v1.rb +46 -0
  369. data/generated/google/apis/youtube_v3/classes.rb +8136 -0
  370. data/generated/google/apis/youtube_v3/representations.rb +2838 -0
  371. data/generated/google/apis/youtube_v3/service.rb +4403 -0
  372. data/generated/google/apis/youtube_v3.rb +49 -0
  373. data/generated/google/apis/youtubereporting_v1/classes.rb +258 -0
  374. data/generated/google/apis/youtubereporting_v1/representations.rb +128 -0
  375. data/generated/google/apis/youtubereporting_v1/service.rb +364 -0
  376. data/generated/google/apis/youtubereporting_v1.rb +38 -0
  377. data/google-api-client.gemspec +27 -39
  378. data/lib/google/api_client/auth/installed_app.rb +7 -5
  379. data/lib/google/api_client/auth/key_utils.rb +12 -11
  380. data/lib/google/api_client/auth/storage.rb +5 -2
  381. data/lib/google/api_client/auth/storages/file_store.rb +2 -3
  382. data/lib/google/api_client/auth/storages/redis_store.rb +7 -2
  383. data/lib/google/api_client/client_secrets.rb +4 -5
  384. data/lib/google/apis/core/api_command.rb +135 -0
  385. data/lib/google/apis/core/base_service.rb +317 -0
  386. data/lib/google/apis/core/batch.rb +239 -0
  387. data/lib/google/apis/core/download.rb +94 -0
  388. data/lib/google/apis/core/hashable.rb +44 -0
  389. data/lib/google/apis/core/http_client_adapter.rb +82 -0
  390. data/lib/google/apis/core/http_command.rb +312 -0
  391. data/lib/google/apis/core/json_representation.rb +127 -0
  392. data/lib/google/{api_client/version.rb → apis/core/logging.rb} +12 -8
  393. data/lib/google/apis/core/multipart.rb +187 -0
  394. data/lib/google/apis/core/upload.rb +288 -0
  395. data/lib/google/{api_client → apis}/errors.rb +39 -28
  396. data/lib/google/apis/generator/annotator.rb +295 -0
  397. data/lib/google/apis/generator/helpers.rb +74 -0
  398. data/lib/google/apis/generator/model.rb +143 -0
  399. data/lib/google/apis/generator/template.rb +124 -0
  400. data/lib/google/apis/generator/templates/_class.tmpl +40 -0
  401. data/lib/google/apis/generator/templates/_method.tmpl +92 -0
  402. data/lib/google/apis/generator/templates/_representation.tmpl +51 -0
  403. data/lib/google/apis/generator/templates/_representation_stub.tmpl +15 -0
  404. data/lib/google/apis/generator/templates/_representation_type.tmpl +10 -0
  405. data/lib/google/{api_client/reference.rb → apis/generator/templates/classes.rb.tmpl} +11 -9
  406. data/lib/google/apis/generator/templates/module.rb.tmpl +40 -0
  407. data/lib/google/apis/generator/templates/representations.rb.tmpl +32 -0
  408. data/lib/google/apis/generator/templates/service.rb.tmpl +60 -0
  409. data/lib/google/apis/generator.rb +70 -0
  410. data/lib/google/apis/options.rb +85 -0
  411. data/lib/google/apis/version.rb +39 -0
  412. data/lib/google/apis.rb +48 -0
  413. data/rakelib/metrics.rake +22 -0
  414. data/rakelib/rubocop.rake +10 -0
  415. data/rakelib/spec.rake +11 -0
  416. data/rakelib/yard.rake +11 -0
  417. data/samples/Gemfile +7 -0
  418. data/samples/README.md +51 -0
  419. data/samples/google-api-samples +32 -0
  420. data/samples/lib/base_cli.rb +94 -0
  421. data/samples/lib/samples/analytics.rb +62 -0
  422. data/samples/lib/samples/calendar.rb +83 -0
  423. data/samples/lib/samples/drive.rb +82 -0
  424. data/samples/lib/samples/gmail.rb +50 -0
  425. data/samples/lib/samples/pubsub.rb +114 -0
  426. data/samples/lib/samples/translate.rb +44 -0
  427. data/samples/lib/samples/you_tube.rb +44 -0
  428. data/script/generate +95 -0
  429. data/script/package +8 -0
  430. data/script/release +15 -0
  431. data/spec/fixtures/files/api_names.yaml +3 -0
  432. data/spec/fixtures/files/auth_stored_credentials.json +8 -0
  433. data/spec/fixtures/files/child/.gitignore +0 -0
  434. data/spec/fixtures/files/client_secrets.json +1 -0
  435. data/spec/fixtures/files/invalid.json +1 -0
  436. data/spec/fixtures/files/test.blah +1 -0
  437. data/spec/fixtures/files/test.txt +1 -0
  438. data/spec/fixtures/files/test_api.json +440 -0
  439. data/spec/google/api_client/auth/storage_spec.rb +1 -3
  440. data/spec/google/api_client/auth/storages/file_store_spec.rb +1 -2
  441. data/spec/google/api_client/auth/storages/redis_store_spec.rb +1 -3
  442. data/spec/google/api_client/client_secrets_spec.rb +38 -1
  443. data/spec/google/apis/core/api_command_spec.rb +209 -0
  444. data/spec/google/apis/core/batch_spec.rb +142 -0
  445. data/spec/google/apis/core/download_spec.rb +103 -0
  446. data/spec/google/apis/core/hashable_spec.rb +60 -0
  447. data/spec/google/apis/core/http_command_spec.rb +284 -0
  448. data/spec/google/apis/core/json_representation_spec.rb +192 -0
  449. data/spec/google/apis/core/service_spec.rb +247 -0
  450. data/spec/google/apis/core/upload_spec.rb +300 -0
  451. data/{lib/google/api_client/discovery.rb → spec/google/apis/generated_spec.rb} +13 -5
  452. data/spec/google/apis/generator/generator_spec.rb +272 -0
  453. data/spec/google/apis/logging_spec.rb +45 -0
  454. data/spec/google/apis/options_spec.rb +40 -0
  455. data/spec/integration_tests/adsense_spec.rb +29 -0
  456. data/spec/integration_tests/drive_spec.rb +35 -0
  457. data/spec/integration_tests/pubsub_spec.rb +48 -0
  458. data/spec/integration_tests/url_shortener_spec.rb +45 -0
  459. data/spec/spec_helper/load_path_spec.rb +33 -0
  460. data/spec/spec_helper.rb +131 -44
  461. data/third_party/hurley_patches.rb +103 -0
  462. metadata +533 -170
  463. data/lib/compat/multi_json.rb +0 -19
  464. data/lib/google/api_client/auth/file_storage.rb +0 -59
  465. data/lib/google/api_client/auth/jwt_asserter.rb +0 -126
  466. data/lib/google/api_client/auth/pkcs12.rb +0 -41
  467. data/lib/google/api_client/batch.rb +0 -325
  468. data/lib/google/api_client/charset.rb +0 -33
  469. data/lib/google/api_client/discovery/api.rb +0 -300
  470. data/lib/google/api_client/discovery/media.rb +0 -77
  471. data/lib/google/api_client/discovery/method.rb +0 -363
  472. data/lib/google/api_client/discovery/resource.rb +0 -156
  473. data/lib/google/api_client/discovery/schema.rb +0 -119
  474. data/lib/google/api_client/environment.rb +0 -42
  475. data/lib/google/api_client/gzip.rb +0 -28
  476. data/lib/google/api_client/logging.rb +0 -32
  477. data/lib/google/api_client/media.rb +0 -259
  478. data/lib/google/api_client/railtie.rb +0 -18
  479. data/lib/google/api_client/request.rb +0 -350
  480. data/lib/google/api_client/result.rb +0 -255
  481. data/lib/google/api_client/service/batch.rb +0 -110
  482. data/lib/google/api_client/service/request.rb +0 -144
  483. data/lib/google/api_client/service/resource.rb +0 -40
  484. data/lib/google/api_client/service/result.rb +0 -162
  485. data/lib/google/api_client/service/simple_file_store.rb +0 -151
  486. data/lib/google/api_client/service/stub_generator.rb +0 -61
  487. data/lib/google/api_client/service.rb +0 -233
  488. data/lib/google/api_client.rb +0 -750
  489. data/spec/google/api_client/batch_spec.rb +0 -248
  490. data/spec/google/api_client/discovery_spec.rb +0 -662
  491. data/spec/google/api_client/gzip_spec.rb +0 -98
  492. data/spec/google/api_client/media_spec.rb +0 -178
  493. data/spec/google/api_client/result_spec.rb +0 -207
  494. data/spec/google/api_client/service_account_spec.rb +0 -169
  495. data/spec/google/api_client/service_spec.rb +0 -618
  496. data/spec/google/api_client/simple_file_store_spec.rb +0 -133
  497. data/spec/google/api_client_spec.rb +0 -352
@@ -0,0 +1,3388 @@
1
+ # Copyright 2015 Google Inc.
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ require 'google/apis/core/base_service'
16
+ require 'google/apis/core/json_representation'
17
+ require 'google/apis/core/hashable'
18
+ require 'google/apis/errors'
19
+
20
+ module Google
21
+ module Apis
22
+ module MapsengineV1
23
+ # Google Maps Engine API
24
+ #
25
+ # The Google Maps Engine API allows developers to store and query geospatial
26
+ # vector and raster data.
27
+ #
28
+ # @example
29
+ # require 'google/apis/mapsengine_v1'
30
+ #
31
+ # Mapsengine = Google::Apis::MapsengineV1 # Alias the module
32
+ # service = Mapsengine::MapsEngineService.new
33
+ #
34
+ # @see https://developers.google.com/maps-engine/
35
+ class MapsEngineService < Google::Apis::Core::BaseService
36
+ # @return [String]
37
+ # API key. Your API key identifies your project and provides you with API access,
38
+ # quota, and reports. Required unless you provide an OAuth 2.0 token.
39
+ attr_accessor :key
40
+
41
+ # @return [String]
42
+ # Available to use for quota purposes for server-side applications. Can be any
43
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
44
+ # Overrides userIp if both are provided.
45
+ attr_accessor :quota_user
46
+
47
+ # @return [String]
48
+ # IP address of the site where the request originates. Use this if you want to
49
+ # enforce per-user limits.
50
+ attr_accessor :user_ip
51
+
52
+ def initialize
53
+ super('https://www.googleapis.com/', 'mapsengine/v1/')
54
+ end
55
+
56
+ # Return metadata for a particular asset.
57
+ # @param [String] id
58
+ # The ID of the asset.
59
+ # @param [String] fields
60
+ # Selector specifying which fields to include in a partial response.
61
+ # @param [String] quota_user
62
+ # Available to use for quota purposes for server-side applications. Can be any
63
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
64
+ # Overrides userIp if both are provided.
65
+ # @param [String] user_ip
66
+ # IP address of the site where the request originates. Use this if you want to
67
+ # enforce per-user limits.
68
+ # @param [Google::Apis::RequestOptions] options
69
+ # Request-specific options
70
+ #
71
+ # @yield [result, err] Result & error if block supplied
72
+ # @yieldparam result [Google::Apis::MapsengineV1::Asset] parsed result object
73
+ # @yieldparam err [StandardError] error object if request failed
74
+ #
75
+ # @return [Google::Apis::MapsengineV1::Asset]
76
+ #
77
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
78
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
79
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
80
+ def get_asset(id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
81
+ command = make_simple_command(:get, 'assets/{id}', options)
82
+ command.response_representation = Google::Apis::MapsengineV1::Asset::Representation
83
+ command.response_class = Google::Apis::MapsengineV1::Asset
84
+ command.params['id'] = id unless id.nil?
85
+ command.query['fields'] = fields unless fields.nil?
86
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
87
+ command.query['userIp'] = user_ip unless user_ip.nil?
88
+ execute_or_queue_command(command, &block)
89
+ end
90
+
91
+ # Return all assets readable by the current user.
92
+ # @param [String] bbox
93
+ # A bounding box, expressed as "west,south,east,north". If set, only assets
94
+ # which intersect this bounding box will be returned.
95
+ # @param [DateTime] created_after
96
+ # An RFC 3339 formatted date-time value (e.g. 1970-01-01T00:00:00Z). Returned
97
+ # assets will have been created at or after this time.
98
+ # @param [DateTime] created_before
99
+ # An RFC 3339 formatted date-time value (e.g. 1970-01-01T00:00:00Z). Returned
100
+ # assets will have been created at or before this time.
101
+ # @param [String] creator_email
102
+ # An email address representing a user. Returned assets that have been created
103
+ # by the user associated with the provided email address.
104
+ # @param [Fixnum] max_results
105
+ # The maximum number of items to include in a single response page. The maximum
106
+ # supported value is 100.
107
+ # @param [DateTime] modified_after
108
+ # An RFC 3339 formatted date-time value (e.g. 1970-01-01T00:00:00Z). Returned
109
+ # assets will have been modified at or after this time.
110
+ # @param [DateTime] modified_before
111
+ # An RFC 3339 formatted date-time value (e.g. 1970-01-01T00:00:00Z). Returned
112
+ # assets will have been modified at or before this time.
113
+ # @param [String] page_token
114
+ # The continuation token, used to page through large result sets. To get the
115
+ # next page of results, set this parameter to the value of nextPageToken from
116
+ # the previous response.
117
+ # @param [String] project_id
118
+ # The ID of a Maps Engine project, used to filter the response. To list all
119
+ # available projects with their IDs, send a Projects: list request. You can also
120
+ # find your project ID as the value of the DashboardPlace:cid URL parameter when
121
+ # signed in to mapsengine.google.com.
122
+ # @param [String] role
123
+ # The role parameter indicates that the response should only contain assets
124
+ # where the current user has the specified level of access.
125
+ # @param [String] search
126
+ # An unstructured search string used to filter the set of results based on asset
127
+ # metadata.
128
+ # @param [String] tags
129
+ # A comma separated list of tags. Returned assets will contain all the tags from
130
+ # the list.
131
+ # @param [String] type
132
+ # A comma separated list of asset types. Returned assets will have one of the
133
+ # types from the provided list. Supported values are 'map', 'layer', '
134
+ # rasterCollection' and 'table'.
135
+ # @param [String] fields
136
+ # Selector specifying which fields to include in a partial response.
137
+ # @param [String] quota_user
138
+ # Available to use for quota purposes for server-side applications. Can be any
139
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
140
+ # Overrides userIp if both are provided.
141
+ # @param [String] user_ip
142
+ # IP address of the site where the request originates. Use this if you want to
143
+ # enforce per-user limits.
144
+ # @param [Google::Apis::RequestOptions] options
145
+ # Request-specific options
146
+ #
147
+ # @yield [result, err] Result & error if block supplied
148
+ # @yieldparam result [Google::Apis::MapsengineV1::ListAssetsResponse] parsed result object
149
+ # @yieldparam err [StandardError] error object if request failed
150
+ #
151
+ # @return [Google::Apis::MapsengineV1::ListAssetsResponse]
152
+ #
153
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
154
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
155
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
156
+ def list_assets(bbox: nil, created_after: nil, created_before: nil, creator_email: nil, max_results: nil, modified_after: nil, modified_before: nil, page_token: nil, project_id: nil, role: nil, search: nil, tags: nil, type: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
157
+ command = make_simple_command(:get, 'assets', options)
158
+ command.response_representation = Google::Apis::MapsengineV1::ListAssetsResponse::Representation
159
+ command.response_class = Google::Apis::MapsengineV1::ListAssetsResponse
160
+ command.query['bbox'] = bbox unless bbox.nil?
161
+ command.query['createdAfter'] = created_after unless created_after.nil?
162
+ command.query['createdBefore'] = created_before unless created_before.nil?
163
+ command.query['creatorEmail'] = creator_email unless creator_email.nil?
164
+ command.query['maxResults'] = max_results unless max_results.nil?
165
+ command.query['modifiedAfter'] = modified_after unless modified_after.nil?
166
+ command.query['modifiedBefore'] = modified_before unless modified_before.nil?
167
+ command.query['pageToken'] = page_token unless page_token.nil?
168
+ command.query['projectId'] = project_id unless project_id.nil?
169
+ command.query['role'] = role unless role.nil?
170
+ command.query['search'] = search unless search.nil?
171
+ command.query['tags'] = tags unless tags.nil?
172
+ command.query['type'] = type unless type.nil?
173
+ command.query['fields'] = fields unless fields.nil?
174
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
175
+ command.query['userIp'] = user_ip unless user_ip.nil?
176
+ execute_or_queue_command(command, &block)
177
+ end
178
+
179
+ # Return all parent ids of the specified asset.
180
+ # @param [String] id
181
+ # The ID of the asset whose parents will be listed.
182
+ # @param [Fixnum] max_results
183
+ # The maximum number of items to include in a single response page. The maximum
184
+ # supported value is 50.
185
+ # @param [String] page_token
186
+ # The continuation token, used to page through large result sets. To get the
187
+ # next page of results, set this parameter to the value of nextPageToken from
188
+ # the previous response.
189
+ # @param [String] fields
190
+ # Selector specifying which fields to include in a partial response.
191
+ # @param [String] quota_user
192
+ # Available to use for quota purposes for server-side applications. Can be any
193
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
194
+ # Overrides userIp if both are provided.
195
+ # @param [String] user_ip
196
+ # IP address of the site where the request originates. Use this if you want to
197
+ # enforce per-user limits.
198
+ # @param [Google::Apis::RequestOptions] options
199
+ # Request-specific options
200
+ #
201
+ # @yield [result, err] Result & error if block supplied
202
+ # @yieldparam result [Google::Apis::MapsengineV1::ListParentsResponse] parsed result object
203
+ # @yieldparam err [StandardError] error object if request failed
204
+ #
205
+ # @return [Google::Apis::MapsengineV1::ListParentsResponse]
206
+ #
207
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
208
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
209
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
210
+ def list_asset_parents(id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
211
+ command = make_simple_command(:get, 'assets/{id}/parents', options)
212
+ command.response_representation = Google::Apis::MapsengineV1::ListParentsResponse::Representation
213
+ command.response_class = Google::Apis::MapsengineV1::ListParentsResponse
214
+ command.params['id'] = id unless id.nil?
215
+ command.query['maxResults'] = max_results unless max_results.nil?
216
+ command.query['pageToken'] = page_token unless page_token.nil?
217
+ command.query['fields'] = fields unless fields.nil?
218
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
219
+ command.query['userIp'] = user_ip unless user_ip.nil?
220
+ execute_or_queue_command(command, &block)
221
+ end
222
+
223
+ # Return all of the permissions for the specified asset.
224
+ # @param [String] id
225
+ # The ID of the asset whose permissions will be listed.
226
+ # @param [String] fields
227
+ # Selector specifying which fields to include in a partial response.
228
+ # @param [String] quota_user
229
+ # Available to use for quota purposes for server-side applications. Can be any
230
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
231
+ # Overrides userIp if both are provided.
232
+ # @param [String] user_ip
233
+ # IP address of the site where the request originates. Use this if you want to
234
+ # enforce per-user limits.
235
+ # @param [Google::Apis::RequestOptions] options
236
+ # Request-specific options
237
+ #
238
+ # @yield [result, err] Result & error if block supplied
239
+ # @yieldparam result [Google::Apis::MapsengineV1::ListPermissionsResponse] parsed result object
240
+ # @yieldparam err [StandardError] error object if request failed
241
+ #
242
+ # @return [Google::Apis::MapsengineV1::ListPermissionsResponse]
243
+ #
244
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
245
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
246
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
247
+ def list_asset_permissions(id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
248
+ command = make_simple_command(:get, 'assets/{id}/permissions', options)
249
+ command.response_representation = Google::Apis::MapsengineV1::ListPermissionsResponse::Representation
250
+ command.response_class = Google::Apis::MapsengineV1::ListPermissionsResponse
251
+ command.params['id'] = id unless id.nil?
252
+ command.query['fields'] = fields unless fields.nil?
253
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
254
+ command.query['userIp'] = user_ip unless user_ip.nil?
255
+ execute_or_queue_command(command, &block)
256
+ end
257
+
258
+ # Cancel processing on a layer asset.
259
+ # @param [String] id
260
+ # The ID of the layer.
261
+ # @param [String] fields
262
+ # Selector specifying which fields to include in a partial response.
263
+ # @param [String] quota_user
264
+ # Available to use for quota purposes for server-side applications. Can be any
265
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
266
+ # Overrides userIp if both are provided.
267
+ # @param [String] user_ip
268
+ # IP address of the site where the request originates. Use this if you want to
269
+ # enforce per-user limits.
270
+ # @param [Google::Apis::RequestOptions] options
271
+ # Request-specific options
272
+ #
273
+ # @yield [result, err] Result & error if block supplied
274
+ # @yieldparam result [Google::Apis::MapsengineV1::ProcessResponse] parsed result object
275
+ # @yieldparam err [StandardError] error object if request failed
276
+ #
277
+ # @return [Google::Apis::MapsengineV1::ProcessResponse]
278
+ #
279
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
280
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
281
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
282
+ def cancel_layer_processing(id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
283
+ command = make_simple_command(:post, 'layers/{id}/cancelProcessing', options)
284
+ command.response_representation = Google::Apis::MapsengineV1::ProcessResponse::Representation
285
+ command.response_class = Google::Apis::MapsengineV1::ProcessResponse
286
+ command.params['id'] = id unless id.nil?
287
+ command.query['fields'] = fields unless fields.nil?
288
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
289
+ command.query['userIp'] = user_ip unless user_ip.nil?
290
+ execute_or_queue_command(command, &block)
291
+ end
292
+
293
+ # Create a layer asset.
294
+ # @param [Google::Apis::MapsengineV1::Layer] layer_object
295
+ # @param [Boolean] process
296
+ # Whether to queue the created layer for processing.
297
+ # @param [String] fields
298
+ # Selector specifying which fields to include in a partial response.
299
+ # @param [String] quota_user
300
+ # Available to use for quota purposes for server-side applications. Can be any
301
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
302
+ # Overrides userIp if both are provided.
303
+ # @param [String] user_ip
304
+ # IP address of the site where the request originates. Use this if you want to
305
+ # enforce per-user limits.
306
+ # @param [Google::Apis::RequestOptions] options
307
+ # Request-specific options
308
+ #
309
+ # @yield [result, err] Result & error if block supplied
310
+ # @yieldparam result [Google::Apis::MapsengineV1::Layer] parsed result object
311
+ # @yieldparam err [StandardError] error object if request failed
312
+ #
313
+ # @return [Google::Apis::MapsengineV1::Layer]
314
+ #
315
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
316
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
317
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
318
+ def create_layer(layer_object = nil, process: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
319
+ command = make_simple_command(:post, 'layers', options)
320
+ command.request_representation = Google::Apis::MapsengineV1::Layer::Representation
321
+ command.request_object = layer_object
322
+ command.response_representation = Google::Apis::MapsengineV1::Layer::Representation
323
+ command.response_class = Google::Apis::MapsengineV1::Layer
324
+ command.query['process'] = process unless process.nil?
325
+ command.query['fields'] = fields unless fields.nil?
326
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
327
+ command.query['userIp'] = user_ip unless user_ip.nil?
328
+ execute_or_queue_command(command, &block)
329
+ end
330
+
331
+ # Delete a layer.
332
+ # @param [String] id
333
+ # The ID of the layer. Only the layer creator or project owner are permitted to
334
+ # delete. If the layer is published, or included in a map, the request will fail.
335
+ # Unpublish the layer, and remove it from all maps prior to deleting.
336
+ # @param [String] fields
337
+ # Selector specifying which fields to include in a partial response.
338
+ # @param [String] quota_user
339
+ # Available to use for quota purposes for server-side applications. Can be any
340
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
341
+ # Overrides userIp if both are provided.
342
+ # @param [String] user_ip
343
+ # IP address of the site where the request originates. Use this if you want to
344
+ # enforce per-user limits.
345
+ # @param [Google::Apis::RequestOptions] options
346
+ # Request-specific options
347
+ #
348
+ # @yield [result, err] Result & error if block supplied
349
+ # @yieldparam result [NilClass] No result returned for this method
350
+ # @yieldparam err [StandardError] error object if request failed
351
+ #
352
+ # @return [void]
353
+ #
354
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
355
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
356
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
357
+ def delete_layer(id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
358
+ command = make_simple_command(:delete, 'layers/{id}', options)
359
+ command.params['id'] = id unless id.nil?
360
+ command.query['fields'] = fields unless fields.nil?
361
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
362
+ command.query['userIp'] = user_ip unless user_ip.nil?
363
+ execute_or_queue_command(command, &block)
364
+ end
365
+
366
+ # Return metadata for a particular layer.
367
+ # @param [String] id
368
+ # The ID of the layer.
369
+ # @param [String] version
370
+ # Deprecated: The version parameter indicates which version of the layer should
371
+ # be returned. When version is set to published, the published version of the
372
+ # layer will be returned. Please use the layers.getPublished endpoint instead.
373
+ # @param [String] fields
374
+ # Selector specifying which fields to include in a partial response.
375
+ # @param [String] quota_user
376
+ # Available to use for quota purposes for server-side applications. Can be any
377
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
378
+ # Overrides userIp if both are provided.
379
+ # @param [String] user_ip
380
+ # IP address of the site where the request originates. Use this if you want to
381
+ # enforce per-user limits.
382
+ # @param [Google::Apis::RequestOptions] options
383
+ # Request-specific options
384
+ #
385
+ # @yield [result, err] Result & error if block supplied
386
+ # @yieldparam result [Google::Apis::MapsengineV1::Layer] parsed result object
387
+ # @yieldparam err [StandardError] error object if request failed
388
+ #
389
+ # @return [Google::Apis::MapsengineV1::Layer]
390
+ #
391
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
392
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
393
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
394
+ def get_layer(id, version: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
395
+ command = make_simple_command(:get, 'layers/{id}', options)
396
+ command.response_representation = Google::Apis::MapsengineV1::Layer::Representation
397
+ command.response_class = Google::Apis::MapsengineV1::Layer
398
+ command.params['id'] = id unless id.nil?
399
+ command.query['version'] = version unless version.nil?
400
+ command.query['fields'] = fields unless fields.nil?
401
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
402
+ command.query['userIp'] = user_ip unless user_ip.nil?
403
+ execute_or_queue_command(command, &block)
404
+ end
405
+
406
+ # Return the published metadata for a particular layer.
407
+ # @param [String] id
408
+ # The ID of the layer.
409
+ # @param [String] fields
410
+ # Selector specifying which fields to include in a partial response.
411
+ # @param [String] quota_user
412
+ # Available to use for quota purposes for server-side applications. Can be any
413
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
414
+ # Overrides userIp if both are provided.
415
+ # @param [String] user_ip
416
+ # IP address of the site where the request originates. Use this if you want to
417
+ # enforce per-user limits.
418
+ # @param [Google::Apis::RequestOptions] options
419
+ # Request-specific options
420
+ #
421
+ # @yield [result, err] Result & error if block supplied
422
+ # @yieldparam result [Google::Apis::MapsengineV1::PublishedLayer] parsed result object
423
+ # @yieldparam err [StandardError] error object if request failed
424
+ #
425
+ # @return [Google::Apis::MapsengineV1::PublishedLayer]
426
+ #
427
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
428
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
429
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
430
+ def get_published_layer(id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
431
+ command = make_simple_command(:get, 'layers/{id}/published', options)
432
+ command.response_representation = Google::Apis::MapsengineV1::PublishedLayer::Representation
433
+ command.response_class = Google::Apis::MapsengineV1::PublishedLayer
434
+ command.params['id'] = id unless id.nil?
435
+ command.query['fields'] = fields unless fields.nil?
436
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
437
+ command.query['userIp'] = user_ip unless user_ip.nil?
438
+ execute_or_queue_command(command, &block)
439
+ end
440
+
441
+ # Return all layers readable by the current user.
442
+ # @param [String] bbox
443
+ # A bounding box, expressed as "west,south,east,north". If set, only assets
444
+ # which intersect this bounding box will be returned.
445
+ # @param [DateTime] created_after
446
+ # An RFC 3339 formatted date-time value (e.g. 1970-01-01T00:00:00Z). Returned
447
+ # assets will have been created at or after this time.
448
+ # @param [DateTime] created_before
449
+ # An RFC 3339 formatted date-time value (e.g. 1970-01-01T00:00:00Z). Returned
450
+ # assets will have been created at or before this time.
451
+ # @param [String] creator_email
452
+ # An email address representing a user. Returned assets that have been created
453
+ # by the user associated with the provided email address.
454
+ # @param [Fixnum] max_results
455
+ # The maximum number of items to include in a single response page. The maximum
456
+ # supported value is 100.
457
+ # @param [DateTime] modified_after
458
+ # An RFC 3339 formatted date-time value (e.g. 1970-01-01T00:00:00Z). Returned
459
+ # assets will have been modified at or after this time.
460
+ # @param [DateTime] modified_before
461
+ # An RFC 3339 formatted date-time value (e.g. 1970-01-01T00:00:00Z). Returned
462
+ # assets will have been modified at or before this time.
463
+ # @param [String] page_token
464
+ # The continuation token, used to page through large result sets. To get the
465
+ # next page of results, set this parameter to the value of nextPageToken from
466
+ # the previous response.
467
+ # @param [String] processing_status
468
+ # @param [String] project_id
469
+ # The ID of a Maps Engine project, used to filter the response. To list all
470
+ # available projects with their IDs, send a Projects: list request. You can also
471
+ # find your project ID as the value of the DashboardPlace:cid URL parameter when
472
+ # signed in to mapsengine.google.com.
473
+ # @param [String] role
474
+ # The role parameter indicates that the response should only contain assets
475
+ # where the current user has the specified level of access.
476
+ # @param [String] search
477
+ # An unstructured search string used to filter the set of results based on asset
478
+ # metadata.
479
+ # @param [String] tags
480
+ # A comma separated list of tags. Returned assets will contain all the tags from
481
+ # the list.
482
+ # @param [String] fields
483
+ # Selector specifying which fields to include in a partial response.
484
+ # @param [String] quota_user
485
+ # Available to use for quota purposes for server-side applications. Can be any
486
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
487
+ # Overrides userIp if both are provided.
488
+ # @param [String] user_ip
489
+ # IP address of the site where the request originates. Use this if you want to
490
+ # enforce per-user limits.
491
+ # @param [Google::Apis::RequestOptions] options
492
+ # Request-specific options
493
+ #
494
+ # @yield [result, err] Result & error if block supplied
495
+ # @yieldparam result [Google::Apis::MapsengineV1::ListLayersResponse] parsed result object
496
+ # @yieldparam err [StandardError] error object if request failed
497
+ #
498
+ # @return [Google::Apis::MapsengineV1::ListLayersResponse]
499
+ #
500
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
501
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
502
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
503
+ def list_layers(bbox: nil, created_after: nil, created_before: nil, creator_email: nil, max_results: nil, modified_after: nil, modified_before: nil, page_token: nil, processing_status: nil, project_id: nil, role: nil, search: nil, tags: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
504
+ command = make_simple_command(:get, 'layers', options)
505
+ command.response_representation = Google::Apis::MapsengineV1::ListLayersResponse::Representation
506
+ command.response_class = Google::Apis::MapsengineV1::ListLayersResponse
507
+ command.query['bbox'] = bbox unless bbox.nil?
508
+ command.query['createdAfter'] = created_after unless created_after.nil?
509
+ command.query['createdBefore'] = created_before unless created_before.nil?
510
+ command.query['creatorEmail'] = creator_email unless creator_email.nil?
511
+ command.query['maxResults'] = max_results unless max_results.nil?
512
+ command.query['modifiedAfter'] = modified_after unless modified_after.nil?
513
+ command.query['modifiedBefore'] = modified_before unless modified_before.nil?
514
+ command.query['pageToken'] = page_token unless page_token.nil?
515
+ command.query['processingStatus'] = processing_status unless processing_status.nil?
516
+ command.query['projectId'] = project_id unless project_id.nil?
517
+ command.query['role'] = role unless role.nil?
518
+ command.query['search'] = search unless search.nil?
519
+ command.query['tags'] = tags unless tags.nil?
520
+ command.query['fields'] = fields unless fields.nil?
521
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
522
+ command.query['userIp'] = user_ip unless user_ip.nil?
523
+ execute_or_queue_command(command, &block)
524
+ end
525
+
526
+ # Return all published layers readable by the current user.
527
+ # @param [Fixnum] max_results
528
+ # The maximum number of items to include in a single response page. The maximum
529
+ # supported value is 100.
530
+ # @param [String] page_token
531
+ # The continuation token, used to page through large result sets. To get the
532
+ # next page of results, set this parameter to the value of nextPageToken from
533
+ # the previous response.
534
+ # @param [String] project_id
535
+ # The ID of a Maps Engine project, used to filter the response. To list all
536
+ # available projects with their IDs, send a Projects: list request. You can also
537
+ # find your project ID as the value of the DashboardPlace:cid URL parameter when
538
+ # signed in to mapsengine.google.com.
539
+ # @param [String] fields
540
+ # Selector specifying which fields to include in a partial response.
541
+ # @param [String] quota_user
542
+ # Available to use for quota purposes for server-side applications. Can be any
543
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
544
+ # Overrides userIp if both are provided.
545
+ # @param [String] user_ip
546
+ # IP address of the site where the request originates. Use this if you want to
547
+ # enforce per-user limits.
548
+ # @param [Google::Apis::RequestOptions] options
549
+ # Request-specific options
550
+ #
551
+ # @yield [result, err] Result & error if block supplied
552
+ # @yieldparam result [Google::Apis::MapsengineV1::ListPublishedLayersResponse] parsed result object
553
+ # @yieldparam err [StandardError] error object if request failed
554
+ #
555
+ # @return [Google::Apis::MapsengineV1::ListPublishedLayersResponse]
556
+ #
557
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
558
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
559
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
560
+ def list_published_layers(max_results: nil, page_token: nil, project_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
561
+ command = make_simple_command(:get, 'layers/published', options)
562
+ command.response_representation = Google::Apis::MapsengineV1::ListPublishedLayersResponse::Representation
563
+ command.response_class = Google::Apis::MapsengineV1::ListPublishedLayersResponse
564
+ command.query['maxResults'] = max_results unless max_results.nil?
565
+ command.query['pageToken'] = page_token unless page_token.nil?
566
+ command.query['projectId'] = project_id unless project_id.nil?
567
+ command.query['fields'] = fields unless fields.nil?
568
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
569
+ command.query['userIp'] = user_ip unless user_ip.nil?
570
+ execute_or_queue_command(command, &block)
571
+ end
572
+
573
+ # Mutate a layer asset.
574
+ # @param [String] id
575
+ # The ID of the layer.
576
+ # @param [Google::Apis::MapsengineV1::Layer] layer_object
577
+ # @param [String] fields
578
+ # Selector specifying which fields to include in a partial response.
579
+ # @param [String] quota_user
580
+ # Available to use for quota purposes for server-side applications. Can be any
581
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
582
+ # Overrides userIp if both are provided.
583
+ # @param [String] user_ip
584
+ # IP address of the site where the request originates. Use this if you want to
585
+ # enforce per-user limits.
586
+ # @param [Google::Apis::RequestOptions] options
587
+ # Request-specific options
588
+ #
589
+ # @yield [result, err] Result & error if block supplied
590
+ # @yieldparam result [NilClass] No result returned for this method
591
+ # @yieldparam err [StandardError] error object if request failed
592
+ #
593
+ # @return [void]
594
+ #
595
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
596
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
597
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
598
+ def patch_layer(id, layer_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
599
+ command = make_simple_command(:patch, 'layers/{id}', options)
600
+ command.request_representation = Google::Apis::MapsengineV1::Layer::Representation
601
+ command.request_object = layer_object
602
+ command.params['id'] = id unless id.nil?
603
+ command.query['fields'] = fields unless fields.nil?
604
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
605
+ command.query['userIp'] = user_ip unless user_ip.nil?
606
+ execute_or_queue_command(command, &block)
607
+ end
608
+
609
+ # Process a layer asset.
610
+ # @param [String] id
611
+ # The ID of the layer.
612
+ # @param [String] fields
613
+ # Selector specifying which fields to include in a partial response.
614
+ # @param [String] quota_user
615
+ # Available to use for quota purposes for server-side applications. Can be any
616
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
617
+ # Overrides userIp if both are provided.
618
+ # @param [String] user_ip
619
+ # IP address of the site where the request originates. Use this if you want to
620
+ # enforce per-user limits.
621
+ # @param [Google::Apis::RequestOptions] options
622
+ # Request-specific options
623
+ #
624
+ # @yield [result, err] Result & error if block supplied
625
+ # @yieldparam result [Google::Apis::MapsengineV1::ProcessResponse] parsed result object
626
+ # @yieldparam err [StandardError] error object if request failed
627
+ #
628
+ # @return [Google::Apis::MapsengineV1::ProcessResponse]
629
+ #
630
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
631
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
632
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
633
+ def process_layer(id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
634
+ command = make_simple_command(:post, 'layers/{id}/process', options)
635
+ command.response_representation = Google::Apis::MapsengineV1::ProcessResponse::Representation
636
+ command.response_class = Google::Apis::MapsengineV1::ProcessResponse
637
+ command.params['id'] = id unless id.nil?
638
+ command.query['fields'] = fields unless fields.nil?
639
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
640
+ command.query['userIp'] = user_ip unless user_ip.nil?
641
+ execute_or_queue_command(command, &block)
642
+ end
643
+
644
+ # Publish a layer asset.
645
+ # @param [String] id
646
+ # The ID of the layer.
647
+ # @param [Boolean] force
648
+ # If set to true, the API will allow publication of the layer even if it's out
649
+ # of date. If not true, you'll need to reprocess any out-of-date layer before
650
+ # publishing.
651
+ # @param [String] fields
652
+ # Selector specifying which fields to include in a partial response.
653
+ # @param [String] quota_user
654
+ # Available to use for quota purposes for server-side applications. Can be any
655
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
656
+ # Overrides userIp if both are provided.
657
+ # @param [String] user_ip
658
+ # IP address of the site where the request originates. Use this if you want to
659
+ # enforce per-user limits.
660
+ # @param [Google::Apis::RequestOptions] options
661
+ # Request-specific options
662
+ #
663
+ # @yield [result, err] Result & error if block supplied
664
+ # @yieldparam result [Google::Apis::MapsengineV1::PublishResponse] parsed result object
665
+ # @yieldparam err [StandardError] error object if request failed
666
+ #
667
+ # @return [Google::Apis::MapsengineV1::PublishResponse]
668
+ #
669
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
670
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
671
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
672
+ def publish_layer(id, force: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
673
+ command = make_simple_command(:post, 'layers/{id}/publish', options)
674
+ command.response_representation = Google::Apis::MapsengineV1::PublishResponse::Representation
675
+ command.response_class = Google::Apis::MapsengineV1::PublishResponse
676
+ command.params['id'] = id unless id.nil?
677
+ command.query['force'] = force unless force.nil?
678
+ command.query['fields'] = fields unless fields.nil?
679
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
680
+ command.query['userIp'] = user_ip unless user_ip.nil?
681
+ execute_or_queue_command(command, &block)
682
+ end
683
+
684
+ # Unpublish a layer asset.
685
+ # @param [String] id
686
+ # The ID of the layer.
687
+ # @param [String] fields
688
+ # Selector specifying which fields to include in a partial response.
689
+ # @param [String] quota_user
690
+ # Available to use for quota purposes for server-side applications. Can be any
691
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
692
+ # Overrides userIp if both are provided.
693
+ # @param [String] user_ip
694
+ # IP address of the site where the request originates. Use this if you want to
695
+ # enforce per-user limits.
696
+ # @param [Google::Apis::RequestOptions] options
697
+ # Request-specific options
698
+ #
699
+ # @yield [result, err] Result & error if block supplied
700
+ # @yieldparam result [Google::Apis::MapsengineV1::PublishResponse] parsed result object
701
+ # @yieldparam err [StandardError] error object if request failed
702
+ #
703
+ # @return [Google::Apis::MapsengineV1::PublishResponse]
704
+ #
705
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
706
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
707
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
708
+ def unpublish_layer(id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
709
+ command = make_simple_command(:post, 'layers/{id}/unpublish', options)
710
+ command.response_representation = Google::Apis::MapsengineV1::PublishResponse::Representation
711
+ command.response_class = Google::Apis::MapsengineV1::PublishResponse
712
+ command.params['id'] = id unless id.nil?
713
+ command.query['fields'] = fields unless fields.nil?
714
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
715
+ command.query['userIp'] = user_ip unless user_ip.nil?
716
+ execute_or_queue_command(command, &block)
717
+ end
718
+
719
+ # Return all parent ids of the specified layer.
720
+ # @param [String] id
721
+ # The ID of the layer whose parents will be listed.
722
+ # @param [Fixnum] max_results
723
+ # The maximum number of items to include in a single response page. The maximum
724
+ # supported value is 50.
725
+ # @param [String] page_token
726
+ # The continuation token, used to page through large result sets. To get the
727
+ # next page of results, set this parameter to the value of nextPageToken from
728
+ # the previous response.
729
+ # @param [String] fields
730
+ # Selector specifying which fields to include in a partial response.
731
+ # @param [String] quota_user
732
+ # Available to use for quota purposes for server-side applications. Can be any
733
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
734
+ # Overrides userIp if both are provided.
735
+ # @param [String] user_ip
736
+ # IP address of the site where the request originates. Use this if you want to
737
+ # enforce per-user limits.
738
+ # @param [Google::Apis::RequestOptions] options
739
+ # Request-specific options
740
+ #
741
+ # @yield [result, err] Result & error if block supplied
742
+ # @yieldparam result [Google::Apis::MapsengineV1::ListParentsResponse] parsed result object
743
+ # @yieldparam err [StandardError] error object if request failed
744
+ #
745
+ # @return [Google::Apis::MapsengineV1::ListParentsResponse]
746
+ #
747
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
748
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
749
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
750
+ def list_layer_parents(id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
751
+ command = make_simple_command(:get, 'layers/{id}/parents', options)
752
+ command.response_representation = Google::Apis::MapsengineV1::ListParentsResponse::Representation
753
+ command.response_class = Google::Apis::MapsengineV1::ListParentsResponse
754
+ command.params['id'] = id unless id.nil?
755
+ command.query['maxResults'] = max_results unless max_results.nil?
756
+ command.query['pageToken'] = page_token unless page_token.nil?
757
+ command.query['fields'] = fields unless fields.nil?
758
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
759
+ command.query['userIp'] = user_ip unless user_ip.nil?
760
+ execute_or_queue_command(command, &block)
761
+ end
762
+
763
+ # Remove permission entries from an already existing asset.
764
+ # @param [String] id
765
+ # The ID of the asset from which permissions will be removed.
766
+ # @param [Google::Apis::MapsengineV1::BatchDeletePermissionsRequest] batch_delete_permissions_request_object
767
+ # @param [String] fields
768
+ # Selector specifying which fields to include in a partial response.
769
+ # @param [String] quota_user
770
+ # Available to use for quota purposes for server-side applications. Can be any
771
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
772
+ # Overrides userIp if both are provided.
773
+ # @param [String] user_ip
774
+ # IP address of the site where the request originates. Use this if you want to
775
+ # enforce per-user limits.
776
+ # @param [Google::Apis::RequestOptions] options
777
+ # Request-specific options
778
+ #
779
+ # @yield [result, err] Result & error if block supplied
780
+ # @yieldparam result [Google::Apis::MapsengineV1::BatchDeletePermissionsResponse] parsed result object
781
+ # @yieldparam err [StandardError] error object if request failed
782
+ #
783
+ # @return [Google::Apis::MapsengineV1::BatchDeletePermissionsResponse]
784
+ #
785
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
786
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
787
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
788
+ def batch_delete_layer_permission(id, batch_delete_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
789
+ command = make_simple_command(:post, 'layers/{id}/permissions/batchDelete', options)
790
+ command.request_representation = Google::Apis::MapsengineV1::BatchDeletePermissionsRequest::Representation
791
+ command.request_object = batch_delete_permissions_request_object
792
+ command.response_representation = Google::Apis::MapsengineV1::BatchDeletePermissionsResponse::Representation
793
+ command.response_class = Google::Apis::MapsengineV1::BatchDeletePermissionsResponse
794
+ command.params['id'] = id unless id.nil?
795
+ command.query['fields'] = fields unless fields.nil?
796
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
797
+ command.query['userIp'] = user_ip unless user_ip.nil?
798
+ execute_or_queue_command(command, &block)
799
+ end
800
+
801
+ # Add or update permission entries to an already existing asset.
802
+ # An asset can hold up to 20 different permission entries. Each batchInsert
803
+ # request is atomic.
804
+ # @param [String] id
805
+ # The ID of the asset to which permissions will be added.
806
+ # @param [Google::Apis::MapsengineV1::BatchUpdatePermissionsRequest] batch_update_permissions_request_object
807
+ # @param [String] fields
808
+ # Selector specifying which fields to include in a partial response.
809
+ # @param [String] quota_user
810
+ # Available to use for quota purposes for server-side applications. Can be any
811
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
812
+ # Overrides userIp if both are provided.
813
+ # @param [String] user_ip
814
+ # IP address of the site where the request originates. Use this if you want to
815
+ # enforce per-user limits.
816
+ # @param [Google::Apis::RequestOptions] options
817
+ # Request-specific options
818
+ #
819
+ # @yield [result, err] Result & error if block supplied
820
+ # @yieldparam result [Google::Apis::MapsengineV1::BatchUpdatePermissionsResponse] parsed result object
821
+ # @yieldparam err [StandardError] error object if request failed
822
+ #
823
+ # @return [Google::Apis::MapsengineV1::BatchUpdatePermissionsResponse]
824
+ #
825
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
826
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
827
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
828
+ def batch_update_layer_permission(id, batch_update_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
829
+ command = make_simple_command(:post, 'layers/{id}/permissions/batchUpdate', options)
830
+ command.request_representation = Google::Apis::MapsengineV1::BatchUpdatePermissionsRequest::Representation
831
+ command.request_object = batch_update_permissions_request_object
832
+ command.response_representation = Google::Apis::MapsengineV1::BatchUpdatePermissionsResponse::Representation
833
+ command.response_class = Google::Apis::MapsengineV1::BatchUpdatePermissionsResponse
834
+ command.params['id'] = id unless id.nil?
835
+ command.query['fields'] = fields unless fields.nil?
836
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
837
+ command.query['userIp'] = user_ip unless user_ip.nil?
838
+ execute_or_queue_command(command, &block)
839
+ end
840
+
841
+ # Return all of the permissions for the specified asset.
842
+ # @param [String] id
843
+ # The ID of the asset whose permissions will be listed.
844
+ # @param [String] fields
845
+ # Selector specifying which fields to include in a partial response.
846
+ # @param [String] quota_user
847
+ # Available to use for quota purposes for server-side applications. Can be any
848
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
849
+ # Overrides userIp if both are provided.
850
+ # @param [String] user_ip
851
+ # IP address of the site where the request originates. Use this if you want to
852
+ # enforce per-user limits.
853
+ # @param [Google::Apis::RequestOptions] options
854
+ # Request-specific options
855
+ #
856
+ # @yield [result, err] Result & error if block supplied
857
+ # @yieldparam result [Google::Apis::MapsengineV1::ListPermissionsResponse] parsed result object
858
+ # @yieldparam err [StandardError] error object if request failed
859
+ #
860
+ # @return [Google::Apis::MapsengineV1::ListPermissionsResponse]
861
+ #
862
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
863
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
864
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
865
+ def list_layer_permissions(id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
866
+ command = make_simple_command(:get, 'layers/{id}/permissions', options)
867
+ command.response_representation = Google::Apis::MapsengineV1::ListPermissionsResponse::Representation
868
+ command.response_class = Google::Apis::MapsengineV1::ListPermissionsResponse
869
+ command.params['id'] = id unless id.nil?
870
+ command.query['fields'] = fields unless fields.nil?
871
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
872
+ command.query['userIp'] = user_ip unless user_ip.nil?
873
+ execute_or_queue_command(command, &block)
874
+ end
875
+
876
+ # Create a map asset.
877
+ # @param [Google::Apis::MapsengineV1::Map] map_object
878
+ # @param [String] fields
879
+ # Selector specifying which fields to include in a partial response.
880
+ # @param [String] quota_user
881
+ # Available to use for quota purposes for server-side applications. Can be any
882
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
883
+ # Overrides userIp if both are provided.
884
+ # @param [String] user_ip
885
+ # IP address of the site where the request originates. Use this if you want to
886
+ # enforce per-user limits.
887
+ # @param [Google::Apis::RequestOptions] options
888
+ # Request-specific options
889
+ #
890
+ # @yield [result, err] Result & error if block supplied
891
+ # @yieldparam result [Google::Apis::MapsengineV1::Map] parsed result object
892
+ # @yieldparam err [StandardError] error object if request failed
893
+ #
894
+ # @return [Google::Apis::MapsengineV1::Map]
895
+ #
896
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
897
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
898
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
899
+ def create_map(map_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
900
+ command = make_simple_command(:post, 'maps', options)
901
+ command.request_representation = Google::Apis::MapsengineV1::Map::Representation
902
+ command.request_object = map_object
903
+ command.response_representation = Google::Apis::MapsengineV1::Map::Representation
904
+ command.response_class = Google::Apis::MapsengineV1::Map
905
+ command.query['fields'] = fields unless fields.nil?
906
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
907
+ command.query['userIp'] = user_ip unless user_ip.nil?
908
+ execute_or_queue_command(command, &block)
909
+ end
910
+
911
+ # Delete a map.
912
+ # @param [String] id
913
+ # The ID of the map. Only the map creator or project owner are permitted to
914
+ # delete. If the map is published the request will fail. Unpublish the map prior
915
+ # to deleting.
916
+ # @param [String] fields
917
+ # Selector specifying which fields to include in a partial response.
918
+ # @param [String] quota_user
919
+ # Available to use for quota purposes for server-side applications. Can be any
920
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
921
+ # Overrides userIp if both are provided.
922
+ # @param [String] user_ip
923
+ # IP address of the site where the request originates. Use this if you want to
924
+ # enforce per-user limits.
925
+ # @param [Google::Apis::RequestOptions] options
926
+ # Request-specific options
927
+ #
928
+ # @yield [result, err] Result & error if block supplied
929
+ # @yieldparam result [NilClass] No result returned for this method
930
+ # @yieldparam err [StandardError] error object if request failed
931
+ #
932
+ # @return [void]
933
+ #
934
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
935
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
936
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
937
+ def delete_map(id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
938
+ command = make_simple_command(:delete, 'maps/{id}', options)
939
+ command.params['id'] = id unless id.nil?
940
+ command.query['fields'] = fields unless fields.nil?
941
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
942
+ command.query['userIp'] = user_ip unless user_ip.nil?
943
+ execute_or_queue_command(command, &block)
944
+ end
945
+
946
+ # Return metadata for a particular map.
947
+ # @param [String] id
948
+ # The ID of the map.
949
+ # @param [String] version
950
+ # Deprecated: The version parameter indicates which version of the map should be
951
+ # returned. When version is set to published, the published version of the map
952
+ # will be returned. Please use the maps.getPublished endpoint instead.
953
+ # @param [String] fields
954
+ # Selector specifying which fields to include in a partial response.
955
+ # @param [String] quota_user
956
+ # Available to use for quota purposes for server-side applications. Can be any
957
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
958
+ # Overrides userIp if both are provided.
959
+ # @param [String] user_ip
960
+ # IP address of the site where the request originates. Use this if you want to
961
+ # enforce per-user limits.
962
+ # @param [Google::Apis::RequestOptions] options
963
+ # Request-specific options
964
+ #
965
+ # @yield [result, err] Result & error if block supplied
966
+ # @yieldparam result [Google::Apis::MapsengineV1::Map] parsed result object
967
+ # @yieldparam err [StandardError] error object if request failed
968
+ #
969
+ # @return [Google::Apis::MapsengineV1::Map]
970
+ #
971
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
972
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
973
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
974
+ def get_map(id, version: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
975
+ command = make_simple_command(:get, 'maps/{id}', options)
976
+ command.response_representation = Google::Apis::MapsengineV1::Map::Representation
977
+ command.response_class = Google::Apis::MapsengineV1::Map
978
+ command.params['id'] = id unless id.nil?
979
+ command.query['version'] = version unless version.nil?
980
+ command.query['fields'] = fields unless fields.nil?
981
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
982
+ command.query['userIp'] = user_ip unless user_ip.nil?
983
+ execute_or_queue_command(command, &block)
984
+ end
985
+
986
+ # Return the published metadata for a particular map.
987
+ # @param [String] id
988
+ # The ID of the map.
989
+ # @param [String] fields
990
+ # Selector specifying which fields to include in a partial response.
991
+ # @param [String] quota_user
992
+ # Available to use for quota purposes for server-side applications. Can be any
993
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
994
+ # Overrides userIp if both are provided.
995
+ # @param [String] user_ip
996
+ # IP address of the site where the request originates. Use this if you want to
997
+ # enforce per-user limits.
998
+ # @param [Google::Apis::RequestOptions] options
999
+ # Request-specific options
1000
+ #
1001
+ # @yield [result, err] Result & error if block supplied
1002
+ # @yieldparam result [Google::Apis::MapsengineV1::PublishedMap] parsed result object
1003
+ # @yieldparam err [StandardError] error object if request failed
1004
+ #
1005
+ # @return [Google::Apis::MapsengineV1::PublishedMap]
1006
+ #
1007
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1008
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1009
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1010
+ def get_published_map(id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1011
+ command = make_simple_command(:get, 'maps/{id}/published', options)
1012
+ command.response_representation = Google::Apis::MapsengineV1::PublishedMap::Representation
1013
+ command.response_class = Google::Apis::MapsengineV1::PublishedMap
1014
+ command.params['id'] = id unless id.nil?
1015
+ command.query['fields'] = fields unless fields.nil?
1016
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1017
+ command.query['userIp'] = user_ip unless user_ip.nil?
1018
+ execute_or_queue_command(command, &block)
1019
+ end
1020
+
1021
+ # Return all maps readable by the current user.
1022
+ # @param [String] bbox
1023
+ # A bounding box, expressed as "west,south,east,north". If set, only assets
1024
+ # which intersect this bounding box will be returned.
1025
+ # @param [DateTime] created_after
1026
+ # An RFC 3339 formatted date-time value (e.g. 1970-01-01T00:00:00Z). Returned
1027
+ # assets will have been created at or after this time.
1028
+ # @param [DateTime] created_before
1029
+ # An RFC 3339 formatted date-time value (e.g. 1970-01-01T00:00:00Z). Returned
1030
+ # assets will have been created at or before this time.
1031
+ # @param [String] creator_email
1032
+ # An email address representing a user. Returned assets that have been created
1033
+ # by the user associated with the provided email address.
1034
+ # @param [Fixnum] max_results
1035
+ # The maximum number of items to include in a single response page. The maximum
1036
+ # supported value is 100.
1037
+ # @param [DateTime] modified_after
1038
+ # An RFC 3339 formatted date-time value (e.g. 1970-01-01T00:00:00Z). Returned
1039
+ # assets will have been modified at or after this time.
1040
+ # @param [DateTime] modified_before
1041
+ # An RFC 3339 formatted date-time value (e.g. 1970-01-01T00:00:00Z). Returned
1042
+ # assets will have been modified at or before this time.
1043
+ # @param [String] page_token
1044
+ # The continuation token, used to page through large result sets. To get the
1045
+ # next page of results, set this parameter to the value of nextPageToken from
1046
+ # the previous response.
1047
+ # @param [String] processing_status
1048
+ # @param [String] project_id
1049
+ # The ID of a Maps Engine project, used to filter the response. To list all
1050
+ # available projects with their IDs, send a Projects: list request. You can also
1051
+ # find your project ID as the value of the DashboardPlace:cid URL parameter when
1052
+ # signed in to mapsengine.google.com.
1053
+ # @param [String] role
1054
+ # The role parameter indicates that the response should only contain assets
1055
+ # where the current user has the specified level of access.
1056
+ # @param [String] search
1057
+ # An unstructured search string used to filter the set of results based on asset
1058
+ # metadata.
1059
+ # @param [String] tags
1060
+ # A comma separated list of tags. Returned assets will contain all the tags from
1061
+ # the list.
1062
+ # @param [String] fields
1063
+ # Selector specifying which fields to include in a partial response.
1064
+ # @param [String] quota_user
1065
+ # Available to use for quota purposes for server-side applications. Can be any
1066
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1067
+ # Overrides userIp if both are provided.
1068
+ # @param [String] user_ip
1069
+ # IP address of the site where the request originates. Use this if you want to
1070
+ # enforce per-user limits.
1071
+ # @param [Google::Apis::RequestOptions] options
1072
+ # Request-specific options
1073
+ #
1074
+ # @yield [result, err] Result & error if block supplied
1075
+ # @yieldparam result [Google::Apis::MapsengineV1::ListMapsResponse] parsed result object
1076
+ # @yieldparam err [StandardError] error object if request failed
1077
+ #
1078
+ # @return [Google::Apis::MapsengineV1::ListMapsResponse]
1079
+ #
1080
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1081
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1082
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1083
+ def list_maps(bbox: nil, created_after: nil, created_before: nil, creator_email: nil, max_results: nil, modified_after: nil, modified_before: nil, page_token: nil, processing_status: nil, project_id: nil, role: nil, search: nil, tags: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1084
+ command = make_simple_command(:get, 'maps', options)
1085
+ command.response_representation = Google::Apis::MapsengineV1::ListMapsResponse::Representation
1086
+ command.response_class = Google::Apis::MapsengineV1::ListMapsResponse
1087
+ command.query['bbox'] = bbox unless bbox.nil?
1088
+ command.query['createdAfter'] = created_after unless created_after.nil?
1089
+ command.query['createdBefore'] = created_before unless created_before.nil?
1090
+ command.query['creatorEmail'] = creator_email unless creator_email.nil?
1091
+ command.query['maxResults'] = max_results unless max_results.nil?
1092
+ command.query['modifiedAfter'] = modified_after unless modified_after.nil?
1093
+ command.query['modifiedBefore'] = modified_before unless modified_before.nil?
1094
+ command.query['pageToken'] = page_token unless page_token.nil?
1095
+ command.query['processingStatus'] = processing_status unless processing_status.nil?
1096
+ command.query['projectId'] = project_id unless project_id.nil?
1097
+ command.query['role'] = role unless role.nil?
1098
+ command.query['search'] = search unless search.nil?
1099
+ command.query['tags'] = tags unless tags.nil?
1100
+ command.query['fields'] = fields unless fields.nil?
1101
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1102
+ command.query['userIp'] = user_ip unless user_ip.nil?
1103
+ execute_or_queue_command(command, &block)
1104
+ end
1105
+
1106
+ # Return all published maps readable by the current user.
1107
+ # @param [Fixnum] max_results
1108
+ # The maximum number of items to include in a single response page. The maximum
1109
+ # supported value is 100.
1110
+ # @param [String] page_token
1111
+ # The continuation token, used to page through large result sets. To get the
1112
+ # next page of results, set this parameter to the value of nextPageToken from
1113
+ # the previous response.
1114
+ # @param [String] project_id
1115
+ # The ID of a Maps Engine project, used to filter the response. To list all
1116
+ # available projects with their IDs, send a Projects: list request. You can also
1117
+ # find your project ID as the value of the DashboardPlace:cid URL parameter when
1118
+ # signed in to mapsengine.google.com.
1119
+ # @param [String] fields
1120
+ # Selector specifying which fields to include in a partial response.
1121
+ # @param [String] quota_user
1122
+ # Available to use for quota purposes for server-side applications. Can be any
1123
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1124
+ # Overrides userIp if both are provided.
1125
+ # @param [String] user_ip
1126
+ # IP address of the site where the request originates. Use this if you want to
1127
+ # enforce per-user limits.
1128
+ # @param [Google::Apis::RequestOptions] options
1129
+ # Request-specific options
1130
+ #
1131
+ # @yield [result, err] Result & error if block supplied
1132
+ # @yieldparam result [Google::Apis::MapsengineV1::ListPublishedMapsResponse] parsed result object
1133
+ # @yieldparam err [StandardError] error object if request failed
1134
+ #
1135
+ # @return [Google::Apis::MapsengineV1::ListPublishedMapsResponse]
1136
+ #
1137
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1138
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1139
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1140
+ def list_map_published(max_results: nil, page_token: nil, project_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1141
+ command = make_simple_command(:get, 'maps/published', options)
1142
+ command.response_representation = Google::Apis::MapsengineV1::ListPublishedMapsResponse::Representation
1143
+ command.response_class = Google::Apis::MapsengineV1::ListPublishedMapsResponse
1144
+ command.query['maxResults'] = max_results unless max_results.nil?
1145
+ command.query['pageToken'] = page_token unless page_token.nil?
1146
+ command.query['projectId'] = project_id unless project_id.nil?
1147
+ command.query['fields'] = fields unless fields.nil?
1148
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1149
+ command.query['userIp'] = user_ip unless user_ip.nil?
1150
+ execute_or_queue_command(command, &block)
1151
+ end
1152
+
1153
+ # Mutate a map asset.
1154
+ # @param [String] id
1155
+ # The ID of the map.
1156
+ # @param [Google::Apis::MapsengineV1::Map] map_object
1157
+ # @param [String] fields
1158
+ # Selector specifying which fields to include in a partial response.
1159
+ # @param [String] quota_user
1160
+ # Available to use for quota purposes for server-side applications. Can be any
1161
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1162
+ # Overrides userIp if both are provided.
1163
+ # @param [String] user_ip
1164
+ # IP address of the site where the request originates. Use this if you want to
1165
+ # enforce per-user limits.
1166
+ # @param [Google::Apis::RequestOptions] options
1167
+ # Request-specific options
1168
+ #
1169
+ # @yield [result, err] Result & error if block supplied
1170
+ # @yieldparam result [NilClass] No result returned for this method
1171
+ # @yieldparam err [StandardError] error object if request failed
1172
+ #
1173
+ # @return [void]
1174
+ #
1175
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1176
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1177
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1178
+ def patch_map(id, map_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1179
+ command = make_simple_command(:patch, 'maps/{id}', options)
1180
+ command.request_representation = Google::Apis::MapsengineV1::Map::Representation
1181
+ command.request_object = map_object
1182
+ command.params['id'] = id unless id.nil?
1183
+ command.query['fields'] = fields unless fields.nil?
1184
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1185
+ command.query['userIp'] = user_ip unless user_ip.nil?
1186
+ execute_or_queue_command(command, &block)
1187
+ end
1188
+
1189
+ # Publish a map asset.
1190
+ # @param [String] id
1191
+ # The ID of the map.
1192
+ # @param [Boolean] force
1193
+ # If set to true, the API will allow publication of the map even if it's out of
1194
+ # date. If false, the map must have a processingStatus of complete before
1195
+ # publishing.
1196
+ # @param [String] fields
1197
+ # Selector specifying which fields to include in a partial response.
1198
+ # @param [String] quota_user
1199
+ # Available to use for quota purposes for server-side applications. Can be any
1200
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1201
+ # Overrides userIp if both are provided.
1202
+ # @param [String] user_ip
1203
+ # IP address of the site where the request originates. Use this if you want to
1204
+ # enforce per-user limits.
1205
+ # @param [Google::Apis::RequestOptions] options
1206
+ # Request-specific options
1207
+ #
1208
+ # @yield [result, err] Result & error if block supplied
1209
+ # @yieldparam result [Google::Apis::MapsengineV1::PublishResponse] parsed result object
1210
+ # @yieldparam err [StandardError] error object if request failed
1211
+ #
1212
+ # @return [Google::Apis::MapsengineV1::PublishResponse]
1213
+ #
1214
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1215
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1216
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1217
+ def publish_map(id, force: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1218
+ command = make_simple_command(:post, 'maps/{id}/publish', options)
1219
+ command.response_representation = Google::Apis::MapsengineV1::PublishResponse::Representation
1220
+ command.response_class = Google::Apis::MapsengineV1::PublishResponse
1221
+ command.params['id'] = id unless id.nil?
1222
+ command.query['force'] = force unless force.nil?
1223
+ command.query['fields'] = fields unless fields.nil?
1224
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1225
+ command.query['userIp'] = user_ip unless user_ip.nil?
1226
+ execute_or_queue_command(command, &block)
1227
+ end
1228
+
1229
+ # Unpublish a map asset.
1230
+ # @param [String] id
1231
+ # The ID of the map.
1232
+ # @param [String] fields
1233
+ # Selector specifying which fields to include in a partial response.
1234
+ # @param [String] quota_user
1235
+ # Available to use for quota purposes for server-side applications. Can be any
1236
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1237
+ # Overrides userIp if both are provided.
1238
+ # @param [String] user_ip
1239
+ # IP address of the site where the request originates. Use this if you want to
1240
+ # enforce per-user limits.
1241
+ # @param [Google::Apis::RequestOptions] options
1242
+ # Request-specific options
1243
+ #
1244
+ # @yield [result, err] Result & error if block supplied
1245
+ # @yieldparam result [Google::Apis::MapsengineV1::PublishResponse] parsed result object
1246
+ # @yieldparam err [StandardError] error object if request failed
1247
+ #
1248
+ # @return [Google::Apis::MapsengineV1::PublishResponse]
1249
+ #
1250
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1251
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1252
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1253
+ def unpublish_map(id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1254
+ command = make_simple_command(:post, 'maps/{id}/unpublish', options)
1255
+ command.response_representation = Google::Apis::MapsengineV1::PublishResponse::Representation
1256
+ command.response_class = Google::Apis::MapsengineV1::PublishResponse
1257
+ command.params['id'] = id unless id.nil?
1258
+ command.query['fields'] = fields unless fields.nil?
1259
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1260
+ command.query['userIp'] = user_ip unless user_ip.nil?
1261
+ execute_or_queue_command(command, &block)
1262
+ end
1263
+
1264
+ # Remove permission entries from an already existing asset.
1265
+ # @param [String] id
1266
+ # The ID of the asset from which permissions will be removed.
1267
+ # @param [Google::Apis::MapsengineV1::BatchDeletePermissionsRequest] batch_delete_permissions_request_object
1268
+ # @param [String] fields
1269
+ # Selector specifying which fields to include in a partial response.
1270
+ # @param [String] quota_user
1271
+ # Available to use for quota purposes for server-side applications. Can be any
1272
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1273
+ # Overrides userIp if both are provided.
1274
+ # @param [String] user_ip
1275
+ # IP address of the site where the request originates. Use this if you want to
1276
+ # enforce per-user limits.
1277
+ # @param [Google::Apis::RequestOptions] options
1278
+ # Request-specific options
1279
+ #
1280
+ # @yield [result, err] Result & error if block supplied
1281
+ # @yieldparam result [Google::Apis::MapsengineV1::BatchDeletePermissionsResponse] parsed result object
1282
+ # @yieldparam err [StandardError] error object if request failed
1283
+ #
1284
+ # @return [Google::Apis::MapsengineV1::BatchDeletePermissionsResponse]
1285
+ #
1286
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1287
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1288
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1289
+ def batch_delete_map_permission(id, batch_delete_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1290
+ command = make_simple_command(:post, 'maps/{id}/permissions/batchDelete', options)
1291
+ command.request_representation = Google::Apis::MapsengineV1::BatchDeletePermissionsRequest::Representation
1292
+ command.request_object = batch_delete_permissions_request_object
1293
+ command.response_representation = Google::Apis::MapsengineV1::BatchDeletePermissionsResponse::Representation
1294
+ command.response_class = Google::Apis::MapsengineV1::BatchDeletePermissionsResponse
1295
+ command.params['id'] = id unless id.nil?
1296
+ command.query['fields'] = fields unless fields.nil?
1297
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1298
+ command.query['userIp'] = user_ip unless user_ip.nil?
1299
+ execute_or_queue_command(command, &block)
1300
+ end
1301
+
1302
+ # Add or update permission entries to an already existing asset.
1303
+ # An asset can hold up to 20 different permission entries. Each batchInsert
1304
+ # request is atomic.
1305
+ # @param [String] id
1306
+ # The ID of the asset to which permissions will be added.
1307
+ # @param [Google::Apis::MapsengineV1::BatchUpdatePermissionsRequest] batch_update_permissions_request_object
1308
+ # @param [String] fields
1309
+ # Selector specifying which fields to include in a partial response.
1310
+ # @param [String] quota_user
1311
+ # Available to use for quota purposes for server-side applications. Can be any
1312
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1313
+ # Overrides userIp if both are provided.
1314
+ # @param [String] user_ip
1315
+ # IP address of the site where the request originates. Use this if you want to
1316
+ # enforce per-user limits.
1317
+ # @param [Google::Apis::RequestOptions] options
1318
+ # Request-specific options
1319
+ #
1320
+ # @yield [result, err] Result & error if block supplied
1321
+ # @yieldparam result [Google::Apis::MapsengineV1::BatchUpdatePermissionsResponse] parsed result object
1322
+ # @yieldparam err [StandardError] error object if request failed
1323
+ #
1324
+ # @return [Google::Apis::MapsengineV1::BatchUpdatePermissionsResponse]
1325
+ #
1326
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1327
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1328
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1329
+ def batch_update_map_permission(id, batch_update_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1330
+ command = make_simple_command(:post, 'maps/{id}/permissions/batchUpdate', options)
1331
+ command.request_representation = Google::Apis::MapsengineV1::BatchUpdatePermissionsRequest::Representation
1332
+ command.request_object = batch_update_permissions_request_object
1333
+ command.response_representation = Google::Apis::MapsengineV1::BatchUpdatePermissionsResponse::Representation
1334
+ command.response_class = Google::Apis::MapsengineV1::BatchUpdatePermissionsResponse
1335
+ command.params['id'] = id unless id.nil?
1336
+ command.query['fields'] = fields unless fields.nil?
1337
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1338
+ command.query['userIp'] = user_ip unless user_ip.nil?
1339
+ execute_or_queue_command(command, &block)
1340
+ end
1341
+
1342
+ # Return all of the permissions for the specified asset.
1343
+ # @param [String] id
1344
+ # The ID of the asset whose permissions will be listed.
1345
+ # @param [String] fields
1346
+ # Selector specifying which fields to include in a partial response.
1347
+ # @param [String] quota_user
1348
+ # Available to use for quota purposes for server-side applications. Can be any
1349
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1350
+ # Overrides userIp if both are provided.
1351
+ # @param [String] user_ip
1352
+ # IP address of the site where the request originates. Use this if you want to
1353
+ # enforce per-user limits.
1354
+ # @param [Google::Apis::RequestOptions] options
1355
+ # Request-specific options
1356
+ #
1357
+ # @yield [result, err] Result & error if block supplied
1358
+ # @yieldparam result [Google::Apis::MapsengineV1::ListPermissionsResponse] parsed result object
1359
+ # @yieldparam err [StandardError] error object if request failed
1360
+ #
1361
+ # @return [Google::Apis::MapsengineV1::ListPermissionsResponse]
1362
+ #
1363
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1364
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1365
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1366
+ def list_map_permissions(id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1367
+ command = make_simple_command(:get, 'maps/{id}/permissions', options)
1368
+ command.response_representation = Google::Apis::MapsengineV1::ListPermissionsResponse::Representation
1369
+ command.response_class = Google::Apis::MapsengineV1::ListPermissionsResponse
1370
+ command.params['id'] = id unless id.nil?
1371
+ command.query['fields'] = fields unless fields.nil?
1372
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1373
+ command.query['userIp'] = user_ip unless user_ip.nil?
1374
+ execute_or_queue_command(command, &block)
1375
+ end
1376
+
1377
+ # Return all projects readable by the current user.
1378
+ # @param [String] fields
1379
+ # Selector specifying which fields to include in a partial response.
1380
+ # @param [String] quota_user
1381
+ # Available to use for quota purposes for server-side applications. Can be any
1382
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1383
+ # Overrides userIp if both are provided.
1384
+ # @param [String] user_ip
1385
+ # IP address of the site where the request originates. Use this if you want to
1386
+ # enforce per-user limits.
1387
+ # @param [Google::Apis::RequestOptions] options
1388
+ # Request-specific options
1389
+ #
1390
+ # @yield [result, err] Result & error if block supplied
1391
+ # @yieldparam result [Google::Apis::MapsengineV1::ListProjectsResponse] parsed result object
1392
+ # @yieldparam err [StandardError] error object if request failed
1393
+ #
1394
+ # @return [Google::Apis::MapsengineV1::ListProjectsResponse]
1395
+ #
1396
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1397
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1398
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1399
+ def list_projects(fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1400
+ command = make_simple_command(:get, 'projects', options)
1401
+ command.response_representation = Google::Apis::MapsengineV1::ListProjectsResponse::Representation
1402
+ command.response_class = Google::Apis::MapsengineV1::ListProjectsResponse
1403
+ command.query['fields'] = fields unless fields.nil?
1404
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1405
+ command.query['userIp'] = user_ip unless user_ip.nil?
1406
+ execute_or_queue_command(command, &block)
1407
+ end
1408
+
1409
+ # Create an icon.
1410
+ # @param [String] project_id
1411
+ # The ID of the project.
1412
+ # @param [Google::Apis::MapsengineV1::Icon] icon_object
1413
+ # @param [String] fields
1414
+ # Selector specifying which fields to include in a partial response.
1415
+ # @param [String] quota_user
1416
+ # Available to use for quota purposes for server-side applications. Can be any
1417
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1418
+ # Overrides userIp if both are provided.
1419
+ # @param [String] user_ip
1420
+ # IP address of the site where the request originates. Use this if you want to
1421
+ # enforce per-user limits.
1422
+ # @param [IO, String] upload_source
1423
+ # IO stream or filename containing content to upload
1424
+ # @param [String] content_type
1425
+ # Content type of the uploaded content.
1426
+ # @param [Google::Apis::RequestOptions] options
1427
+ # Request-specific options
1428
+ #
1429
+ # @yield [result, err] Result & error if block supplied
1430
+ # @yieldparam result [Google::Apis::MapsengineV1::Icon] parsed result object
1431
+ # @yieldparam err [StandardError] error object if request failed
1432
+ #
1433
+ # @return [Google::Apis::MapsengineV1::Icon]
1434
+ #
1435
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1436
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1437
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1438
+ def create_project_icon(project_id, icon_object = nil, fields: nil, quota_user: nil, user_ip: nil, upload_source: nil, content_type: nil, options: nil, &block)
1439
+ if upload_source.nil?
1440
+ command = make_simple_command(:post, 'projects/{projectId}/icons', options)
1441
+ else
1442
+ command = make_upload_command(:post, 'projects/{projectId}/icons', options)
1443
+ command.upload_source = upload_source
1444
+ command.upload_content_type = content_type
1445
+ end
1446
+ command.request_representation = Google::Apis::MapsengineV1::Icon::Representation
1447
+ command.request_object = icon_object
1448
+ command.response_representation = Google::Apis::MapsengineV1::Icon::Representation
1449
+ command.response_class = Google::Apis::MapsengineV1::Icon
1450
+ command.params['projectId'] = project_id unless project_id.nil?
1451
+ command.query['fields'] = fields unless fields.nil?
1452
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1453
+ command.query['userIp'] = user_ip unless user_ip.nil?
1454
+ execute_or_queue_command(command, &block)
1455
+ end
1456
+
1457
+ # Return an icon or its associated metadata
1458
+ # @param [String] project_id
1459
+ # The ID of the project.
1460
+ # @param [String] id
1461
+ # The ID of the icon.
1462
+ # @param [String] fields
1463
+ # Selector specifying which fields to include in a partial response.
1464
+ # @param [String] quota_user
1465
+ # Available to use for quota purposes for server-side applications. Can be any
1466
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1467
+ # Overrides userIp if both are provided.
1468
+ # @param [String] user_ip
1469
+ # IP address of the site where the request originates. Use this if you want to
1470
+ # enforce per-user limits.
1471
+ # @param [IO, String] download_dest
1472
+ # IO stream or filename to receive content download
1473
+ # @param [Google::Apis::RequestOptions] options
1474
+ # Request-specific options
1475
+ #
1476
+ # @yield [result, err] Result & error if block supplied
1477
+ # @yieldparam result [Google::Apis::MapsengineV1::Icon] parsed result object
1478
+ # @yieldparam err [StandardError] error object if request failed
1479
+ #
1480
+ # @return [Google::Apis::MapsengineV1::Icon]
1481
+ #
1482
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1483
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1484
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1485
+ def get_project_icon(project_id, id, fields: nil, quota_user: nil, user_ip: nil, download_dest: nil, options: nil, &block)
1486
+ if download_dest.nil?
1487
+ command = make_simple_command(:get, 'projects/{projectId}/icons/{id}', options)
1488
+ else
1489
+ command = make_download_command(:get, 'projects/{projectId}/icons/{id}', options)
1490
+ command.download_dest = download_dest
1491
+ end
1492
+ command.response_representation = Google::Apis::MapsengineV1::Icon::Representation
1493
+ command.response_class = Google::Apis::MapsengineV1::Icon
1494
+ command.params['projectId'] = project_id unless project_id.nil?
1495
+ command.params['id'] = id unless id.nil?
1496
+ command.query['fields'] = fields unless fields.nil?
1497
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1498
+ command.query['userIp'] = user_ip unless user_ip.nil?
1499
+ execute_or_queue_command(command, &block)
1500
+ end
1501
+
1502
+ # Return all icons in the current project
1503
+ # @param [String] project_id
1504
+ # The ID of the project.
1505
+ # @param [Fixnum] max_results
1506
+ # The maximum number of items to include in a single response page. The maximum
1507
+ # supported value is 50.
1508
+ # @param [String] page_token
1509
+ # The continuation token, used to page through large result sets. To get the
1510
+ # next page of results, set this parameter to the value of nextPageToken from
1511
+ # the previous response.
1512
+ # @param [String] fields
1513
+ # Selector specifying which fields to include in a partial response.
1514
+ # @param [String] quota_user
1515
+ # Available to use for quota purposes for server-side applications. Can be any
1516
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1517
+ # Overrides userIp if both are provided.
1518
+ # @param [String] user_ip
1519
+ # IP address of the site where the request originates. Use this if you want to
1520
+ # enforce per-user limits.
1521
+ # @param [Google::Apis::RequestOptions] options
1522
+ # Request-specific options
1523
+ #
1524
+ # @yield [result, err] Result & error if block supplied
1525
+ # @yieldparam result [Google::Apis::MapsengineV1::ListIconsResponse] parsed result object
1526
+ # @yieldparam err [StandardError] error object if request failed
1527
+ #
1528
+ # @return [Google::Apis::MapsengineV1::ListIconsResponse]
1529
+ #
1530
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1531
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1532
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1533
+ def list_project_icons(project_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1534
+ command = make_simple_command(:get, 'projects/{projectId}/icons', options)
1535
+ command.response_representation = Google::Apis::MapsengineV1::ListIconsResponse::Representation
1536
+ command.response_class = Google::Apis::MapsengineV1::ListIconsResponse
1537
+ command.params['projectId'] = project_id unless project_id.nil?
1538
+ command.query['maxResults'] = max_results unless max_results.nil?
1539
+ command.query['pageToken'] = page_token unless page_token.nil?
1540
+ command.query['fields'] = fields unless fields.nil?
1541
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1542
+ command.query['userIp'] = user_ip unless user_ip.nil?
1543
+ execute_or_queue_command(command, &block)
1544
+ end
1545
+
1546
+ # Cancel processing on a raster collection asset.
1547
+ # @param [String] id
1548
+ # The ID of the raster collection.
1549
+ # @param [String] fields
1550
+ # Selector specifying which fields to include in a partial response.
1551
+ # @param [String] quota_user
1552
+ # Available to use for quota purposes for server-side applications. Can be any
1553
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1554
+ # Overrides userIp if both are provided.
1555
+ # @param [String] user_ip
1556
+ # IP address of the site where the request originates. Use this if you want to
1557
+ # enforce per-user limits.
1558
+ # @param [Google::Apis::RequestOptions] options
1559
+ # Request-specific options
1560
+ #
1561
+ # @yield [result, err] Result & error if block supplied
1562
+ # @yieldparam result [Google::Apis::MapsengineV1::ProcessResponse] parsed result object
1563
+ # @yieldparam err [StandardError] error object if request failed
1564
+ #
1565
+ # @return [Google::Apis::MapsengineV1::ProcessResponse]
1566
+ #
1567
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1568
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1569
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1570
+ def cancel_raster_collection_processing(id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1571
+ command = make_simple_command(:post, 'rasterCollections/{id}/cancelProcessing', options)
1572
+ command.response_representation = Google::Apis::MapsengineV1::ProcessResponse::Representation
1573
+ command.response_class = Google::Apis::MapsengineV1::ProcessResponse
1574
+ command.params['id'] = id unless id.nil?
1575
+ command.query['fields'] = fields unless fields.nil?
1576
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1577
+ command.query['userIp'] = user_ip unless user_ip.nil?
1578
+ execute_or_queue_command(command, &block)
1579
+ end
1580
+
1581
+ # Create a raster collection asset.
1582
+ # @param [Google::Apis::MapsengineV1::RasterCollection] raster_collection_object
1583
+ # @param [String] fields
1584
+ # Selector specifying which fields to include in a partial response.
1585
+ # @param [String] quota_user
1586
+ # Available to use for quota purposes for server-side applications. Can be any
1587
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1588
+ # Overrides userIp if both are provided.
1589
+ # @param [String] user_ip
1590
+ # IP address of the site where the request originates. Use this if you want to
1591
+ # enforce per-user limits.
1592
+ # @param [Google::Apis::RequestOptions] options
1593
+ # Request-specific options
1594
+ #
1595
+ # @yield [result, err] Result & error if block supplied
1596
+ # @yieldparam result [Google::Apis::MapsengineV1::RasterCollection] parsed result object
1597
+ # @yieldparam err [StandardError] error object if request failed
1598
+ #
1599
+ # @return [Google::Apis::MapsengineV1::RasterCollection]
1600
+ #
1601
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1602
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1603
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1604
+ def create_raster_collection(raster_collection_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1605
+ command = make_simple_command(:post, 'rasterCollections', options)
1606
+ command.request_representation = Google::Apis::MapsengineV1::RasterCollection::Representation
1607
+ command.request_object = raster_collection_object
1608
+ command.response_representation = Google::Apis::MapsengineV1::RasterCollection::Representation
1609
+ command.response_class = Google::Apis::MapsengineV1::RasterCollection
1610
+ command.query['fields'] = fields unless fields.nil?
1611
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1612
+ command.query['userIp'] = user_ip unless user_ip.nil?
1613
+ execute_or_queue_command(command, &block)
1614
+ end
1615
+
1616
+ # Delete a raster collection.
1617
+ # @param [String] id
1618
+ # The ID of the raster collection. Only the raster collection creator or project
1619
+ # owner are permitted to delete. If the rastor collection is included in a layer,
1620
+ # the request will fail. Remove the raster collection from all layers prior to
1621
+ # deleting.
1622
+ # @param [String] fields
1623
+ # Selector specifying which fields to include in a partial response.
1624
+ # @param [String] quota_user
1625
+ # Available to use for quota purposes for server-side applications. Can be any
1626
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1627
+ # Overrides userIp if both are provided.
1628
+ # @param [String] user_ip
1629
+ # IP address of the site where the request originates. Use this if you want to
1630
+ # enforce per-user limits.
1631
+ # @param [Google::Apis::RequestOptions] options
1632
+ # Request-specific options
1633
+ #
1634
+ # @yield [result, err] Result & error if block supplied
1635
+ # @yieldparam result [NilClass] No result returned for this method
1636
+ # @yieldparam err [StandardError] error object if request failed
1637
+ #
1638
+ # @return [void]
1639
+ #
1640
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1641
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1642
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1643
+ def delete_raster_collection(id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1644
+ command = make_simple_command(:delete, 'rasterCollections/{id}', options)
1645
+ command.params['id'] = id unless id.nil?
1646
+ command.query['fields'] = fields unless fields.nil?
1647
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1648
+ command.query['userIp'] = user_ip unless user_ip.nil?
1649
+ execute_or_queue_command(command, &block)
1650
+ end
1651
+
1652
+ # Return metadata for a particular raster collection.
1653
+ # @param [String] id
1654
+ # The ID of the raster collection.
1655
+ # @param [String] fields
1656
+ # Selector specifying which fields to include in a partial response.
1657
+ # @param [String] quota_user
1658
+ # Available to use for quota purposes for server-side applications. Can be any
1659
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1660
+ # Overrides userIp if both are provided.
1661
+ # @param [String] user_ip
1662
+ # IP address of the site where the request originates. Use this if you want to
1663
+ # enforce per-user limits.
1664
+ # @param [Google::Apis::RequestOptions] options
1665
+ # Request-specific options
1666
+ #
1667
+ # @yield [result, err] Result & error if block supplied
1668
+ # @yieldparam result [Google::Apis::MapsengineV1::RasterCollection] parsed result object
1669
+ # @yieldparam err [StandardError] error object if request failed
1670
+ #
1671
+ # @return [Google::Apis::MapsengineV1::RasterCollection]
1672
+ #
1673
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1674
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1675
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1676
+ def get_raster_collection(id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1677
+ command = make_simple_command(:get, 'rasterCollections/{id}', options)
1678
+ command.response_representation = Google::Apis::MapsengineV1::RasterCollection::Representation
1679
+ command.response_class = Google::Apis::MapsengineV1::RasterCollection
1680
+ command.params['id'] = id unless id.nil?
1681
+ command.query['fields'] = fields unless fields.nil?
1682
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1683
+ command.query['userIp'] = user_ip unless user_ip.nil?
1684
+ execute_or_queue_command(command, &block)
1685
+ end
1686
+
1687
+ # Return all raster collections readable by the current user.
1688
+ # @param [String] bbox
1689
+ # A bounding box, expressed as "west,south,east,north". If set, only assets
1690
+ # which intersect this bounding box will be returned.
1691
+ # @param [DateTime] created_after
1692
+ # An RFC 3339 formatted date-time value (e.g. 1970-01-01T00:00:00Z). Returned
1693
+ # assets will have been created at or after this time.
1694
+ # @param [DateTime] created_before
1695
+ # An RFC 3339 formatted date-time value (e.g. 1970-01-01T00:00:00Z). Returned
1696
+ # assets will have been created at or before this time.
1697
+ # @param [String] creator_email
1698
+ # An email address representing a user. Returned assets that have been created
1699
+ # by the user associated with the provided email address.
1700
+ # @param [Fixnum] max_results
1701
+ # The maximum number of items to include in a single response page. The maximum
1702
+ # supported value is 100.
1703
+ # @param [DateTime] modified_after
1704
+ # An RFC 3339 formatted date-time value (e.g. 1970-01-01T00:00:00Z). Returned
1705
+ # assets will have been modified at or after this time.
1706
+ # @param [DateTime] modified_before
1707
+ # An RFC 3339 formatted date-time value (e.g. 1970-01-01T00:00:00Z). Returned
1708
+ # assets will have been modified at or before this time.
1709
+ # @param [String] page_token
1710
+ # The continuation token, used to page through large result sets. To get the
1711
+ # next page of results, set this parameter to the value of nextPageToken from
1712
+ # the previous response.
1713
+ # @param [String] processing_status
1714
+ # @param [String] project_id
1715
+ # The ID of a Maps Engine project, used to filter the response. To list all
1716
+ # available projects with their IDs, send a Projects: list request. You can also
1717
+ # find your project ID as the value of the DashboardPlace:cid URL parameter when
1718
+ # signed in to mapsengine.google.com.
1719
+ # @param [String] role
1720
+ # The role parameter indicates that the response should only contain assets
1721
+ # where the current user has the specified level of access.
1722
+ # @param [String] search
1723
+ # An unstructured search string used to filter the set of results based on asset
1724
+ # metadata.
1725
+ # @param [String] tags
1726
+ # A comma separated list of tags. Returned assets will contain all the tags from
1727
+ # the list.
1728
+ # @param [String] fields
1729
+ # Selector specifying which fields to include in a partial response.
1730
+ # @param [String] quota_user
1731
+ # Available to use for quota purposes for server-side applications. Can be any
1732
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1733
+ # Overrides userIp if both are provided.
1734
+ # @param [String] user_ip
1735
+ # IP address of the site where the request originates. Use this if you want to
1736
+ # enforce per-user limits.
1737
+ # @param [Google::Apis::RequestOptions] options
1738
+ # Request-specific options
1739
+ #
1740
+ # @yield [result, err] Result & error if block supplied
1741
+ # @yieldparam result [Google::Apis::MapsengineV1::ListRasterCollectionsResponse] parsed result object
1742
+ # @yieldparam err [StandardError] error object if request failed
1743
+ #
1744
+ # @return [Google::Apis::MapsengineV1::ListRasterCollectionsResponse]
1745
+ #
1746
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1747
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1748
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1749
+ def list_raster_collections(bbox: nil, created_after: nil, created_before: nil, creator_email: nil, max_results: nil, modified_after: nil, modified_before: nil, page_token: nil, processing_status: nil, project_id: nil, role: nil, search: nil, tags: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1750
+ command = make_simple_command(:get, 'rasterCollections', options)
1751
+ command.response_representation = Google::Apis::MapsengineV1::ListRasterCollectionsResponse::Representation
1752
+ command.response_class = Google::Apis::MapsengineV1::ListRasterCollectionsResponse
1753
+ command.query['bbox'] = bbox unless bbox.nil?
1754
+ command.query['createdAfter'] = created_after unless created_after.nil?
1755
+ command.query['createdBefore'] = created_before unless created_before.nil?
1756
+ command.query['creatorEmail'] = creator_email unless creator_email.nil?
1757
+ command.query['maxResults'] = max_results unless max_results.nil?
1758
+ command.query['modifiedAfter'] = modified_after unless modified_after.nil?
1759
+ command.query['modifiedBefore'] = modified_before unless modified_before.nil?
1760
+ command.query['pageToken'] = page_token unless page_token.nil?
1761
+ command.query['processingStatus'] = processing_status unless processing_status.nil?
1762
+ command.query['projectId'] = project_id unless project_id.nil?
1763
+ command.query['role'] = role unless role.nil?
1764
+ command.query['search'] = search unless search.nil?
1765
+ command.query['tags'] = tags unless tags.nil?
1766
+ command.query['fields'] = fields unless fields.nil?
1767
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1768
+ command.query['userIp'] = user_ip unless user_ip.nil?
1769
+ execute_or_queue_command(command, &block)
1770
+ end
1771
+
1772
+ # Mutate a raster collection asset.
1773
+ # @param [String] id
1774
+ # The ID of the raster collection.
1775
+ # @param [Google::Apis::MapsengineV1::RasterCollection] raster_collection_object
1776
+ # @param [String] fields
1777
+ # Selector specifying which fields to include in a partial response.
1778
+ # @param [String] quota_user
1779
+ # Available to use for quota purposes for server-side applications. Can be any
1780
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1781
+ # Overrides userIp if both are provided.
1782
+ # @param [String] user_ip
1783
+ # IP address of the site where the request originates. Use this if you want to
1784
+ # enforce per-user limits.
1785
+ # @param [Google::Apis::RequestOptions] options
1786
+ # Request-specific options
1787
+ #
1788
+ # @yield [result, err] Result & error if block supplied
1789
+ # @yieldparam result [NilClass] No result returned for this method
1790
+ # @yieldparam err [StandardError] error object if request failed
1791
+ #
1792
+ # @return [void]
1793
+ #
1794
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1795
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1796
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1797
+ def patch_raster_collection(id, raster_collection_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1798
+ command = make_simple_command(:patch, 'rasterCollections/{id}', options)
1799
+ command.request_representation = Google::Apis::MapsengineV1::RasterCollection::Representation
1800
+ command.request_object = raster_collection_object
1801
+ command.params['id'] = id unless id.nil?
1802
+ command.query['fields'] = fields unless fields.nil?
1803
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1804
+ command.query['userIp'] = user_ip unless user_ip.nil?
1805
+ execute_or_queue_command(command, &block)
1806
+ end
1807
+
1808
+ # Process a raster collection asset.
1809
+ # @param [String] id
1810
+ # The ID of the raster collection.
1811
+ # @param [String] fields
1812
+ # Selector specifying which fields to include in a partial response.
1813
+ # @param [String] quota_user
1814
+ # Available to use for quota purposes for server-side applications. Can be any
1815
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1816
+ # Overrides userIp if both are provided.
1817
+ # @param [String] user_ip
1818
+ # IP address of the site where the request originates. Use this if you want to
1819
+ # enforce per-user limits.
1820
+ # @param [Google::Apis::RequestOptions] options
1821
+ # Request-specific options
1822
+ #
1823
+ # @yield [result, err] Result & error if block supplied
1824
+ # @yieldparam result [Google::Apis::MapsengineV1::ProcessResponse] parsed result object
1825
+ # @yieldparam err [StandardError] error object if request failed
1826
+ #
1827
+ # @return [Google::Apis::MapsengineV1::ProcessResponse]
1828
+ #
1829
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1830
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1831
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1832
+ def process_raster_collection(id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1833
+ command = make_simple_command(:post, 'rasterCollections/{id}/process', options)
1834
+ command.response_representation = Google::Apis::MapsengineV1::ProcessResponse::Representation
1835
+ command.response_class = Google::Apis::MapsengineV1::ProcessResponse
1836
+ command.params['id'] = id unless id.nil?
1837
+ command.query['fields'] = fields unless fields.nil?
1838
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1839
+ command.query['userIp'] = user_ip unless user_ip.nil?
1840
+ execute_or_queue_command(command, &block)
1841
+ end
1842
+
1843
+ # Return all parent ids of the specified raster collection.
1844
+ # @param [String] id
1845
+ # The ID of the raster collection whose parents will be listed.
1846
+ # @param [Fixnum] max_results
1847
+ # The maximum number of items to include in a single response page. The maximum
1848
+ # supported value is 50.
1849
+ # @param [String] page_token
1850
+ # The continuation token, used to page through large result sets. To get the
1851
+ # next page of results, set this parameter to the value of nextPageToken from
1852
+ # the previous response.
1853
+ # @param [String] fields
1854
+ # Selector specifying which fields to include in a partial response.
1855
+ # @param [String] quota_user
1856
+ # Available to use for quota purposes for server-side applications. Can be any
1857
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1858
+ # Overrides userIp if both are provided.
1859
+ # @param [String] user_ip
1860
+ # IP address of the site where the request originates. Use this if you want to
1861
+ # enforce per-user limits.
1862
+ # @param [Google::Apis::RequestOptions] options
1863
+ # Request-specific options
1864
+ #
1865
+ # @yield [result, err] Result & error if block supplied
1866
+ # @yieldparam result [Google::Apis::MapsengineV1::ListParentsResponse] parsed result object
1867
+ # @yieldparam err [StandardError] error object if request failed
1868
+ #
1869
+ # @return [Google::Apis::MapsengineV1::ListParentsResponse]
1870
+ #
1871
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1872
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1873
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1874
+ def list_raster_collection_parents(id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1875
+ command = make_simple_command(:get, 'rasterCollections/{id}/parents', options)
1876
+ command.response_representation = Google::Apis::MapsengineV1::ListParentsResponse::Representation
1877
+ command.response_class = Google::Apis::MapsengineV1::ListParentsResponse
1878
+ command.params['id'] = id unless id.nil?
1879
+ command.query['maxResults'] = max_results unless max_results.nil?
1880
+ command.query['pageToken'] = page_token unless page_token.nil?
1881
+ command.query['fields'] = fields unless fields.nil?
1882
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1883
+ command.query['userIp'] = user_ip unless user_ip.nil?
1884
+ execute_or_queue_command(command, &block)
1885
+ end
1886
+
1887
+ # Remove permission entries from an already existing asset.
1888
+ # @param [String] id
1889
+ # The ID of the asset from which permissions will be removed.
1890
+ # @param [Google::Apis::MapsengineV1::BatchDeletePermissionsRequest] batch_delete_permissions_request_object
1891
+ # @param [String] fields
1892
+ # Selector specifying which fields to include in a partial response.
1893
+ # @param [String] quota_user
1894
+ # Available to use for quota purposes for server-side applications. Can be any
1895
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1896
+ # Overrides userIp if both are provided.
1897
+ # @param [String] user_ip
1898
+ # IP address of the site where the request originates. Use this if you want to
1899
+ # enforce per-user limits.
1900
+ # @param [Google::Apis::RequestOptions] options
1901
+ # Request-specific options
1902
+ #
1903
+ # @yield [result, err] Result & error if block supplied
1904
+ # @yieldparam result [Google::Apis::MapsengineV1::BatchDeletePermissionsResponse] parsed result object
1905
+ # @yieldparam err [StandardError] error object if request failed
1906
+ #
1907
+ # @return [Google::Apis::MapsengineV1::BatchDeletePermissionsResponse]
1908
+ #
1909
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1910
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1911
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1912
+ def batch_delete_raster_collection_permission(id, batch_delete_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1913
+ command = make_simple_command(:post, 'rasterCollections/{id}/permissions/batchDelete', options)
1914
+ command.request_representation = Google::Apis::MapsengineV1::BatchDeletePermissionsRequest::Representation
1915
+ command.request_object = batch_delete_permissions_request_object
1916
+ command.response_representation = Google::Apis::MapsengineV1::BatchDeletePermissionsResponse::Representation
1917
+ command.response_class = Google::Apis::MapsengineV1::BatchDeletePermissionsResponse
1918
+ command.params['id'] = id unless id.nil?
1919
+ command.query['fields'] = fields unless fields.nil?
1920
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1921
+ command.query['userIp'] = user_ip unless user_ip.nil?
1922
+ execute_or_queue_command(command, &block)
1923
+ end
1924
+
1925
+ # Add or update permission entries to an already existing asset.
1926
+ # An asset can hold up to 20 different permission entries. Each batchInsert
1927
+ # request is atomic.
1928
+ # @param [String] id
1929
+ # The ID of the asset to which permissions will be added.
1930
+ # @param [Google::Apis::MapsengineV1::BatchUpdatePermissionsRequest] batch_update_permissions_request_object
1931
+ # @param [String] fields
1932
+ # Selector specifying which fields to include in a partial response.
1933
+ # @param [String] quota_user
1934
+ # Available to use for quota purposes for server-side applications. Can be any
1935
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1936
+ # Overrides userIp if both are provided.
1937
+ # @param [String] user_ip
1938
+ # IP address of the site where the request originates. Use this if you want to
1939
+ # enforce per-user limits.
1940
+ # @param [Google::Apis::RequestOptions] options
1941
+ # Request-specific options
1942
+ #
1943
+ # @yield [result, err] Result & error if block supplied
1944
+ # @yieldparam result [Google::Apis::MapsengineV1::BatchUpdatePermissionsResponse] parsed result object
1945
+ # @yieldparam err [StandardError] error object if request failed
1946
+ #
1947
+ # @return [Google::Apis::MapsengineV1::BatchUpdatePermissionsResponse]
1948
+ #
1949
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1950
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1951
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1952
+ def batch_update_raster_collection_permission(id, batch_update_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1953
+ command = make_simple_command(:post, 'rasterCollections/{id}/permissions/batchUpdate', options)
1954
+ command.request_representation = Google::Apis::MapsengineV1::BatchUpdatePermissionsRequest::Representation
1955
+ command.request_object = batch_update_permissions_request_object
1956
+ command.response_representation = Google::Apis::MapsengineV1::BatchUpdatePermissionsResponse::Representation
1957
+ command.response_class = Google::Apis::MapsengineV1::BatchUpdatePermissionsResponse
1958
+ command.params['id'] = id unless id.nil?
1959
+ command.query['fields'] = fields unless fields.nil?
1960
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1961
+ command.query['userIp'] = user_ip unless user_ip.nil?
1962
+ execute_or_queue_command(command, &block)
1963
+ end
1964
+
1965
+ # Return all of the permissions for the specified asset.
1966
+ # @param [String] id
1967
+ # The ID of the asset whose permissions will be listed.
1968
+ # @param [String] fields
1969
+ # Selector specifying which fields to include in a partial response.
1970
+ # @param [String] quota_user
1971
+ # Available to use for quota purposes for server-side applications. Can be any
1972
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1973
+ # Overrides userIp if both are provided.
1974
+ # @param [String] user_ip
1975
+ # IP address of the site where the request originates. Use this if you want to
1976
+ # enforce per-user limits.
1977
+ # @param [Google::Apis::RequestOptions] options
1978
+ # Request-specific options
1979
+ #
1980
+ # @yield [result, err] Result & error if block supplied
1981
+ # @yieldparam result [Google::Apis::MapsengineV1::ListPermissionsResponse] parsed result object
1982
+ # @yieldparam err [StandardError] error object if request failed
1983
+ #
1984
+ # @return [Google::Apis::MapsengineV1::ListPermissionsResponse]
1985
+ #
1986
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1987
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1988
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1989
+ def list_raster_collection_permissions(id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1990
+ command = make_simple_command(:get, 'rasterCollections/{id}/permissions', options)
1991
+ command.response_representation = Google::Apis::MapsengineV1::ListPermissionsResponse::Representation
1992
+ command.response_class = Google::Apis::MapsengineV1::ListPermissionsResponse
1993
+ command.params['id'] = id unless id.nil?
1994
+ command.query['fields'] = fields unless fields.nil?
1995
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1996
+ command.query['userIp'] = user_ip unless user_ip.nil?
1997
+ execute_or_queue_command(command, &block)
1998
+ end
1999
+
2000
+ # Remove rasters from an existing raster collection.
2001
+ # Up to 50 rasters can be included in a single batchDelete request. Each
2002
+ # batchDelete request is atomic.
2003
+ # @param [String] id
2004
+ # The ID of the raster collection to which these rasters belong.
2005
+ # @param [Google::Apis::MapsengineV1::BatchDeleteRasterCollectionsRasterRequest] batch_delete_raster_collections_raster_request_object
2006
+ # @param [String] fields
2007
+ # Selector specifying which fields to include in a partial response.
2008
+ # @param [String] quota_user
2009
+ # Available to use for quota purposes for server-side applications. Can be any
2010
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2011
+ # Overrides userIp if both are provided.
2012
+ # @param [String] user_ip
2013
+ # IP address of the site where the request originates. Use this if you want to
2014
+ # enforce per-user limits.
2015
+ # @param [Google::Apis::RequestOptions] options
2016
+ # Request-specific options
2017
+ #
2018
+ # @yield [result, err] Result & error if block supplied
2019
+ # @yieldparam result [Google::Apis::MapsengineV1::BatchDeleteRasterCollectionsRastersResponse] parsed result object
2020
+ # @yieldparam err [StandardError] error object if request failed
2021
+ #
2022
+ # @return [Google::Apis::MapsengineV1::BatchDeleteRasterCollectionsRastersResponse]
2023
+ #
2024
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2025
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2026
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2027
+ def batch_delete_raster_collection_raster(id, batch_delete_raster_collections_raster_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2028
+ command = make_simple_command(:post, 'rasterCollections/{id}/rasters/batchDelete', options)
2029
+ command.request_representation = Google::Apis::MapsengineV1::BatchDeleteRasterCollectionsRasterRequest::Representation
2030
+ command.request_object = batch_delete_raster_collections_raster_request_object
2031
+ command.response_representation = Google::Apis::MapsengineV1::BatchDeleteRasterCollectionsRastersResponse::Representation
2032
+ command.response_class = Google::Apis::MapsengineV1::BatchDeleteRasterCollectionsRastersResponse
2033
+ command.params['id'] = id unless id.nil?
2034
+ command.query['fields'] = fields unless fields.nil?
2035
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2036
+ command.query['userIp'] = user_ip unless user_ip.nil?
2037
+ execute_or_queue_command(command, &block)
2038
+ end
2039
+
2040
+ # Add rasters to an existing raster collection. Rasters must be successfully
2041
+ # processed in order to be added to a raster collection.
2042
+ # Up to 50 rasters can be included in a single batchInsert request. Each
2043
+ # batchInsert request is atomic.
2044
+ # @param [String] id
2045
+ # The ID of the raster collection to which these rasters belong.
2046
+ # @param [Google::Apis::MapsengineV1::BatchInsertRasterCollectionsRastersRequest] batch_insert_raster_collections_rasters_request_object
2047
+ # @param [String] fields
2048
+ # Selector specifying which fields to include in a partial response.
2049
+ # @param [String] quota_user
2050
+ # Available to use for quota purposes for server-side applications. Can be any
2051
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2052
+ # Overrides userIp if both are provided.
2053
+ # @param [String] user_ip
2054
+ # IP address of the site where the request originates. Use this if you want to
2055
+ # enforce per-user limits.
2056
+ # @param [Google::Apis::RequestOptions] options
2057
+ # Request-specific options
2058
+ #
2059
+ # @yield [result, err] Result & error if block supplied
2060
+ # @yieldparam result [Google::Apis::MapsengineV1::BatchInsertRasterCollectionsRastersResponse] parsed result object
2061
+ # @yieldparam err [StandardError] error object if request failed
2062
+ #
2063
+ # @return [Google::Apis::MapsengineV1::BatchInsertRasterCollectionsRastersResponse]
2064
+ #
2065
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2066
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2067
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2068
+ def batch_insert_raster_collection_raster(id, batch_insert_raster_collections_rasters_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2069
+ command = make_simple_command(:post, 'rasterCollections/{id}/rasters/batchInsert', options)
2070
+ command.request_representation = Google::Apis::MapsengineV1::BatchInsertRasterCollectionsRastersRequest::Representation
2071
+ command.request_object = batch_insert_raster_collections_rasters_request_object
2072
+ command.response_representation = Google::Apis::MapsengineV1::BatchInsertRasterCollectionsRastersResponse::Representation
2073
+ command.response_class = Google::Apis::MapsengineV1::BatchInsertRasterCollectionsRastersResponse
2074
+ command.params['id'] = id unless id.nil?
2075
+ command.query['fields'] = fields unless fields.nil?
2076
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2077
+ command.query['userIp'] = user_ip unless user_ip.nil?
2078
+ execute_or_queue_command(command, &block)
2079
+ end
2080
+
2081
+ # Return all rasters within a raster collection.
2082
+ # @param [String] id
2083
+ # The ID of the raster collection to which these rasters belong.
2084
+ # @param [String] bbox
2085
+ # A bounding box, expressed as "west,south,east,north". If set, only assets
2086
+ # which intersect this bounding box will be returned.
2087
+ # @param [DateTime] created_after
2088
+ # An RFC 3339 formatted date-time value (e.g. 1970-01-01T00:00:00Z). Returned
2089
+ # assets will have been created at or after this time.
2090
+ # @param [DateTime] created_before
2091
+ # An RFC 3339 formatted date-time value (e.g. 1970-01-01T00:00:00Z). Returned
2092
+ # assets will have been created at or before this time.
2093
+ # @param [String] creator_email
2094
+ # An email address representing a user. Returned assets that have been created
2095
+ # by the user associated with the provided email address.
2096
+ # @param [Fixnum] max_results
2097
+ # The maximum number of items to include in a single response page. The maximum
2098
+ # supported value is 100.
2099
+ # @param [DateTime] modified_after
2100
+ # An RFC 3339 formatted date-time value (e.g. 1970-01-01T00:00:00Z). Returned
2101
+ # assets will have been modified at or after this time.
2102
+ # @param [DateTime] modified_before
2103
+ # An RFC 3339 formatted date-time value (e.g. 1970-01-01T00:00:00Z). Returned
2104
+ # assets will have been modified at or before this time.
2105
+ # @param [String] page_token
2106
+ # The continuation token, used to page through large result sets. To get the
2107
+ # next page of results, set this parameter to the value of nextPageToken from
2108
+ # the previous response.
2109
+ # @param [String] role
2110
+ # The role parameter indicates that the response should only contain assets
2111
+ # where the current user has the specified level of access.
2112
+ # @param [String] search
2113
+ # An unstructured search string used to filter the set of results based on asset
2114
+ # metadata.
2115
+ # @param [String] tags
2116
+ # A comma separated list of tags. Returned assets will contain all the tags from
2117
+ # the list.
2118
+ # @param [String] fields
2119
+ # Selector specifying which fields to include in a partial response.
2120
+ # @param [String] quota_user
2121
+ # Available to use for quota purposes for server-side applications. Can be any
2122
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2123
+ # Overrides userIp if both are provided.
2124
+ # @param [String] user_ip
2125
+ # IP address of the site where the request originates. Use this if you want to
2126
+ # enforce per-user limits.
2127
+ # @param [Google::Apis::RequestOptions] options
2128
+ # Request-specific options
2129
+ #
2130
+ # @yield [result, err] Result & error if block supplied
2131
+ # @yieldparam result [Google::Apis::MapsengineV1::ListRasterCollectionsRastersResponse] parsed result object
2132
+ # @yieldparam err [StandardError] error object if request failed
2133
+ #
2134
+ # @return [Google::Apis::MapsengineV1::ListRasterCollectionsRastersResponse]
2135
+ #
2136
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2137
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2138
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2139
+ def list_raster_collection_rasters(id, bbox: nil, created_after: nil, created_before: nil, creator_email: nil, max_results: nil, modified_after: nil, modified_before: nil, page_token: nil, role: nil, search: nil, tags: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2140
+ command = make_simple_command(:get, 'rasterCollections/{id}/rasters', options)
2141
+ command.response_representation = Google::Apis::MapsengineV1::ListRasterCollectionsRastersResponse::Representation
2142
+ command.response_class = Google::Apis::MapsengineV1::ListRasterCollectionsRastersResponse
2143
+ command.params['id'] = id unless id.nil?
2144
+ command.query['bbox'] = bbox unless bbox.nil?
2145
+ command.query['createdAfter'] = created_after unless created_after.nil?
2146
+ command.query['createdBefore'] = created_before unless created_before.nil?
2147
+ command.query['creatorEmail'] = creator_email unless creator_email.nil?
2148
+ command.query['maxResults'] = max_results unless max_results.nil?
2149
+ command.query['modifiedAfter'] = modified_after unless modified_after.nil?
2150
+ command.query['modifiedBefore'] = modified_before unless modified_before.nil?
2151
+ command.query['pageToken'] = page_token unless page_token.nil?
2152
+ command.query['role'] = role unless role.nil?
2153
+ command.query['search'] = search unless search.nil?
2154
+ command.query['tags'] = tags unless tags.nil?
2155
+ command.query['fields'] = fields unless fields.nil?
2156
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2157
+ command.query['userIp'] = user_ip unless user_ip.nil?
2158
+ execute_or_queue_command(command, &block)
2159
+ end
2160
+
2161
+ # Delete a raster.
2162
+ # @param [String] id
2163
+ # The ID of the raster. Only the raster creator or project owner are permitted
2164
+ # to delete. If the raster is included in a layer or mosaic, the request will
2165
+ # fail. Remove it from all parents prior to deleting.
2166
+ # @param [String] fields
2167
+ # Selector specifying which fields to include in a partial response.
2168
+ # @param [String] quota_user
2169
+ # Available to use for quota purposes for server-side applications. Can be any
2170
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2171
+ # Overrides userIp if both are provided.
2172
+ # @param [String] user_ip
2173
+ # IP address of the site where the request originates. Use this if you want to
2174
+ # enforce per-user limits.
2175
+ # @param [Google::Apis::RequestOptions] options
2176
+ # Request-specific options
2177
+ #
2178
+ # @yield [result, err] Result & error if block supplied
2179
+ # @yieldparam result [NilClass] No result returned for this method
2180
+ # @yieldparam err [StandardError] error object if request failed
2181
+ #
2182
+ # @return [void]
2183
+ #
2184
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2185
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2186
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2187
+ def delete_raster(id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2188
+ command = make_simple_command(:delete, 'rasters/{id}', options)
2189
+ command.params['id'] = id unless id.nil?
2190
+ command.query['fields'] = fields unless fields.nil?
2191
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2192
+ command.query['userIp'] = user_ip unless user_ip.nil?
2193
+ execute_or_queue_command(command, &block)
2194
+ end
2195
+
2196
+ # Return metadata for a single raster.
2197
+ # @param [String] id
2198
+ # The ID of the raster.
2199
+ # @param [String] fields
2200
+ # Selector specifying which fields to include in a partial response.
2201
+ # @param [String] quota_user
2202
+ # Available to use for quota purposes for server-side applications. Can be any
2203
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2204
+ # Overrides userIp if both are provided.
2205
+ # @param [String] user_ip
2206
+ # IP address of the site where the request originates. Use this if you want to
2207
+ # enforce per-user limits.
2208
+ # @param [Google::Apis::RequestOptions] options
2209
+ # Request-specific options
2210
+ #
2211
+ # @yield [result, err] Result & error if block supplied
2212
+ # @yieldparam result [Google::Apis::MapsengineV1::Raster] parsed result object
2213
+ # @yieldparam err [StandardError] error object if request failed
2214
+ #
2215
+ # @return [Google::Apis::MapsengineV1::Raster]
2216
+ #
2217
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2218
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2219
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2220
+ def get_raster(id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2221
+ command = make_simple_command(:get, 'rasters/{id}', options)
2222
+ command.response_representation = Google::Apis::MapsengineV1::Raster::Representation
2223
+ command.response_class = Google::Apis::MapsengineV1::Raster
2224
+ command.params['id'] = id unless id.nil?
2225
+ command.query['fields'] = fields unless fields.nil?
2226
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2227
+ command.query['userIp'] = user_ip unless user_ip.nil?
2228
+ execute_or_queue_command(command, &block)
2229
+ end
2230
+
2231
+ # Return all rasters readable by the current user.
2232
+ # @param [String] project_id
2233
+ # The ID of a Maps Engine project, used to filter the response. To list all
2234
+ # available projects with their IDs, send a Projects: list request. You can also
2235
+ # find your project ID as the value of the DashboardPlace:cid URL parameter when
2236
+ # signed in to mapsengine.google.com.
2237
+ # @param [String] bbox
2238
+ # A bounding box, expressed as "west,south,east,north". If set, only assets
2239
+ # which intersect this bounding box will be returned.
2240
+ # @param [DateTime] created_after
2241
+ # An RFC 3339 formatted date-time value (e.g. 1970-01-01T00:00:00Z). Returned
2242
+ # assets will have been created at or after this time.
2243
+ # @param [DateTime] created_before
2244
+ # An RFC 3339 formatted date-time value (e.g. 1970-01-01T00:00:00Z). Returned
2245
+ # assets will have been created at or before this time.
2246
+ # @param [String] creator_email
2247
+ # An email address representing a user. Returned assets that have been created
2248
+ # by the user associated with the provided email address.
2249
+ # @param [Fixnum] max_results
2250
+ # The maximum number of items to include in a single response page. The maximum
2251
+ # supported value is 100.
2252
+ # @param [DateTime] modified_after
2253
+ # An RFC 3339 formatted date-time value (e.g. 1970-01-01T00:00:00Z). Returned
2254
+ # assets will have been modified at or after this time.
2255
+ # @param [DateTime] modified_before
2256
+ # An RFC 3339 formatted date-time value (e.g. 1970-01-01T00:00:00Z). Returned
2257
+ # assets will have been modified at or before this time.
2258
+ # @param [String] page_token
2259
+ # The continuation token, used to page through large result sets. To get the
2260
+ # next page of results, set this parameter to the value of nextPageToken from
2261
+ # the previous response.
2262
+ # @param [String] processing_status
2263
+ # @param [String] role
2264
+ # The role parameter indicates that the response should only contain assets
2265
+ # where the current user has the specified level of access.
2266
+ # @param [String] search
2267
+ # An unstructured search string used to filter the set of results based on asset
2268
+ # metadata.
2269
+ # @param [String] tags
2270
+ # A comma separated list of tags. Returned assets will contain all the tags from
2271
+ # the list.
2272
+ # @param [String] fields
2273
+ # Selector specifying which fields to include in a partial response.
2274
+ # @param [String] quota_user
2275
+ # Available to use for quota purposes for server-side applications. Can be any
2276
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2277
+ # Overrides userIp if both are provided.
2278
+ # @param [String] user_ip
2279
+ # IP address of the site where the request originates. Use this if you want to
2280
+ # enforce per-user limits.
2281
+ # @param [Google::Apis::RequestOptions] options
2282
+ # Request-specific options
2283
+ #
2284
+ # @yield [result, err] Result & error if block supplied
2285
+ # @yieldparam result [Google::Apis::MapsengineV1::ListRastersResponse] parsed result object
2286
+ # @yieldparam err [StandardError] error object if request failed
2287
+ #
2288
+ # @return [Google::Apis::MapsengineV1::ListRastersResponse]
2289
+ #
2290
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2291
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2292
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2293
+ def list_rasters(project_id, bbox: nil, created_after: nil, created_before: nil, creator_email: nil, max_results: nil, modified_after: nil, modified_before: nil, page_token: nil, processing_status: nil, role: nil, search: nil, tags: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2294
+ command = make_simple_command(:get, 'rasters', options)
2295
+ command.response_representation = Google::Apis::MapsengineV1::ListRastersResponse::Representation
2296
+ command.response_class = Google::Apis::MapsengineV1::ListRastersResponse
2297
+ command.query['bbox'] = bbox unless bbox.nil?
2298
+ command.query['createdAfter'] = created_after unless created_after.nil?
2299
+ command.query['createdBefore'] = created_before unless created_before.nil?
2300
+ command.query['creatorEmail'] = creator_email unless creator_email.nil?
2301
+ command.query['maxResults'] = max_results unless max_results.nil?
2302
+ command.query['modifiedAfter'] = modified_after unless modified_after.nil?
2303
+ command.query['modifiedBefore'] = modified_before unless modified_before.nil?
2304
+ command.query['pageToken'] = page_token unless page_token.nil?
2305
+ command.query['processingStatus'] = processing_status unless processing_status.nil?
2306
+ command.query['projectId'] = project_id unless project_id.nil?
2307
+ command.query['role'] = role unless role.nil?
2308
+ command.query['search'] = search unless search.nil?
2309
+ command.query['tags'] = tags unless tags.nil?
2310
+ command.query['fields'] = fields unless fields.nil?
2311
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2312
+ command.query['userIp'] = user_ip unless user_ip.nil?
2313
+ execute_or_queue_command(command, &block)
2314
+ end
2315
+
2316
+ # Mutate a raster asset.
2317
+ # @param [String] id
2318
+ # The ID of the raster.
2319
+ # @param [Google::Apis::MapsengineV1::Raster] raster_object
2320
+ # @param [String] fields
2321
+ # Selector specifying which fields to include in a partial response.
2322
+ # @param [String] quota_user
2323
+ # Available to use for quota purposes for server-side applications. Can be any
2324
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2325
+ # Overrides userIp if both are provided.
2326
+ # @param [String] user_ip
2327
+ # IP address of the site where the request originates. Use this if you want to
2328
+ # enforce per-user limits.
2329
+ # @param [Google::Apis::RequestOptions] options
2330
+ # Request-specific options
2331
+ #
2332
+ # @yield [result, err] Result & error if block supplied
2333
+ # @yieldparam result [NilClass] No result returned for this method
2334
+ # @yieldparam err [StandardError] error object if request failed
2335
+ #
2336
+ # @return [void]
2337
+ #
2338
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2339
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2340
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2341
+ def patch_raster(id, raster_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2342
+ command = make_simple_command(:patch, 'rasters/{id}', options)
2343
+ command.request_representation = Google::Apis::MapsengineV1::Raster::Representation
2344
+ command.request_object = raster_object
2345
+ command.params['id'] = id unless id.nil?
2346
+ command.query['fields'] = fields unless fields.nil?
2347
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2348
+ command.query['userIp'] = user_ip unless user_ip.nil?
2349
+ execute_or_queue_command(command, &block)
2350
+ end
2351
+
2352
+ # Process a raster asset.
2353
+ # @param [String] id
2354
+ # The ID of the raster.
2355
+ # @param [String] fields
2356
+ # Selector specifying which fields to include in a partial response.
2357
+ # @param [String] quota_user
2358
+ # Available to use for quota purposes for server-side applications. Can be any
2359
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2360
+ # Overrides userIp if both are provided.
2361
+ # @param [String] user_ip
2362
+ # IP address of the site where the request originates. Use this if you want to
2363
+ # enforce per-user limits.
2364
+ # @param [Google::Apis::RequestOptions] options
2365
+ # Request-specific options
2366
+ #
2367
+ # @yield [result, err] Result & error if block supplied
2368
+ # @yieldparam result [Google::Apis::MapsengineV1::ProcessResponse] parsed result object
2369
+ # @yieldparam err [StandardError] error object if request failed
2370
+ #
2371
+ # @return [Google::Apis::MapsengineV1::ProcessResponse]
2372
+ #
2373
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2374
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2375
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2376
+ def process_raster(id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2377
+ command = make_simple_command(:post, 'rasters/{id}/process', options)
2378
+ command.response_representation = Google::Apis::MapsengineV1::ProcessResponse::Representation
2379
+ command.response_class = Google::Apis::MapsengineV1::ProcessResponse
2380
+ command.params['id'] = id unless id.nil?
2381
+ command.query['fields'] = fields unless fields.nil?
2382
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2383
+ command.query['userIp'] = user_ip unless user_ip.nil?
2384
+ execute_or_queue_command(command, &block)
2385
+ end
2386
+
2387
+ # Create a skeleton raster asset for upload.
2388
+ # @param [Google::Apis::MapsengineV1::Raster] raster_object
2389
+ # @param [String] fields
2390
+ # Selector specifying which fields to include in a partial response.
2391
+ # @param [String] quota_user
2392
+ # Available to use for quota purposes for server-side applications. Can be any
2393
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2394
+ # Overrides userIp if both are provided.
2395
+ # @param [String] user_ip
2396
+ # IP address of the site where the request originates. Use this if you want to
2397
+ # enforce per-user limits.
2398
+ # @param [Google::Apis::RequestOptions] options
2399
+ # Request-specific options
2400
+ #
2401
+ # @yield [result, err] Result & error if block supplied
2402
+ # @yieldparam result [Google::Apis::MapsengineV1::Raster] parsed result object
2403
+ # @yieldparam err [StandardError] error object if request failed
2404
+ #
2405
+ # @return [Google::Apis::MapsengineV1::Raster]
2406
+ #
2407
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2408
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2409
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2410
+ def upload_raster(raster_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2411
+ command = make_simple_command(:post, 'rasters/upload', options)
2412
+ command.request_representation = Google::Apis::MapsengineV1::Raster::Representation
2413
+ command.request_object = raster_object
2414
+ command.response_representation = Google::Apis::MapsengineV1::Raster::Representation
2415
+ command.response_class = Google::Apis::MapsengineV1::Raster
2416
+ command.query['fields'] = fields unless fields.nil?
2417
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2418
+ command.query['userIp'] = user_ip unless user_ip.nil?
2419
+ execute_or_queue_command(command, &block)
2420
+ end
2421
+
2422
+ # Upload a file to a raster asset.
2423
+ # @param [String] id
2424
+ # The ID of the raster asset.
2425
+ # @param [String] filename
2426
+ # The file name of this uploaded file.
2427
+ # @param [String] fields
2428
+ # Selector specifying which fields to include in a partial response.
2429
+ # @param [String] quota_user
2430
+ # Available to use for quota purposes for server-side applications. Can be any
2431
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2432
+ # Overrides userIp if both are provided.
2433
+ # @param [String] user_ip
2434
+ # IP address of the site where the request originates. Use this if you want to
2435
+ # enforce per-user limits.
2436
+ # @param [IO, String] upload_source
2437
+ # IO stream or filename containing content to upload
2438
+ # @param [String] content_type
2439
+ # Content type of the uploaded content.
2440
+ # @param [Google::Apis::RequestOptions] options
2441
+ # Request-specific options
2442
+ #
2443
+ # @yield [result, err] Result & error if block supplied
2444
+ # @yieldparam result [NilClass] No result returned for this method
2445
+ # @yieldparam err [StandardError] error object if request failed
2446
+ #
2447
+ # @return [void]
2448
+ #
2449
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2450
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2451
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2452
+ def insert_raster_file(id, filename, fields: nil, quota_user: nil, user_ip: nil, upload_source: nil, content_type: nil, options: nil, &block)
2453
+ if upload_source.nil?
2454
+ command = make_simple_command(:post, 'rasters/{id}/files', options)
2455
+ else
2456
+ command = make_upload_command(:post, 'rasters/{id}/files', options)
2457
+ command.upload_source = upload_source
2458
+ command.upload_content_type = content_type
2459
+ end
2460
+ command.params['id'] = id unless id.nil?
2461
+ command.query['filename'] = filename unless filename.nil?
2462
+ command.query['fields'] = fields unless fields.nil?
2463
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2464
+ command.query['userIp'] = user_ip unless user_ip.nil?
2465
+ execute_or_queue_command(command, &block)
2466
+ end
2467
+
2468
+ # Return all parent ids of the specified rasters.
2469
+ # @param [String] id
2470
+ # The ID of the rasters whose parents will be listed.
2471
+ # @param [Fixnum] max_results
2472
+ # The maximum number of items to include in a single response page. The maximum
2473
+ # supported value is 50.
2474
+ # @param [String] page_token
2475
+ # The continuation token, used to page through large result sets. To get the
2476
+ # next page of results, set this parameter to the value of nextPageToken from
2477
+ # the previous response.
2478
+ # @param [String] fields
2479
+ # Selector specifying which fields to include in a partial response.
2480
+ # @param [String] quota_user
2481
+ # Available to use for quota purposes for server-side applications. Can be any
2482
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2483
+ # Overrides userIp if both are provided.
2484
+ # @param [String] user_ip
2485
+ # IP address of the site where the request originates. Use this if you want to
2486
+ # enforce per-user limits.
2487
+ # @param [Google::Apis::RequestOptions] options
2488
+ # Request-specific options
2489
+ #
2490
+ # @yield [result, err] Result & error if block supplied
2491
+ # @yieldparam result [Google::Apis::MapsengineV1::ListParentsResponse] parsed result object
2492
+ # @yieldparam err [StandardError] error object if request failed
2493
+ #
2494
+ # @return [Google::Apis::MapsengineV1::ListParentsResponse]
2495
+ #
2496
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2497
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2498
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2499
+ def list_raster_parents(id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2500
+ command = make_simple_command(:get, 'rasters/{id}/parents', options)
2501
+ command.response_representation = Google::Apis::MapsengineV1::ListParentsResponse::Representation
2502
+ command.response_class = Google::Apis::MapsengineV1::ListParentsResponse
2503
+ command.params['id'] = id unless id.nil?
2504
+ command.query['maxResults'] = max_results unless max_results.nil?
2505
+ command.query['pageToken'] = page_token unless page_token.nil?
2506
+ command.query['fields'] = fields unless fields.nil?
2507
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2508
+ command.query['userIp'] = user_ip unless user_ip.nil?
2509
+ execute_or_queue_command(command, &block)
2510
+ end
2511
+
2512
+ # Remove permission entries from an already existing asset.
2513
+ # @param [String] id
2514
+ # The ID of the asset from which permissions will be removed.
2515
+ # @param [Google::Apis::MapsengineV1::BatchDeletePermissionsRequest] batch_delete_permissions_request_object
2516
+ # @param [String] fields
2517
+ # Selector specifying which fields to include in a partial response.
2518
+ # @param [String] quota_user
2519
+ # Available to use for quota purposes for server-side applications. Can be any
2520
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2521
+ # Overrides userIp if both are provided.
2522
+ # @param [String] user_ip
2523
+ # IP address of the site where the request originates. Use this if you want to
2524
+ # enforce per-user limits.
2525
+ # @param [Google::Apis::RequestOptions] options
2526
+ # Request-specific options
2527
+ #
2528
+ # @yield [result, err] Result & error if block supplied
2529
+ # @yieldparam result [Google::Apis::MapsengineV1::BatchDeletePermissionsResponse] parsed result object
2530
+ # @yieldparam err [StandardError] error object if request failed
2531
+ #
2532
+ # @return [Google::Apis::MapsengineV1::BatchDeletePermissionsResponse]
2533
+ #
2534
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2535
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2536
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2537
+ def batch_delete_raster_permission(id, batch_delete_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2538
+ command = make_simple_command(:post, 'rasters/{id}/permissions/batchDelete', options)
2539
+ command.request_representation = Google::Apis::MapsengineV1::BatchDeletePermissionsRequest::Representation
2540
+ command.request_object = batch_delete_permissions_request_object
2541
+ command.response_representation = Google::Apis::MapsengineV1::BatchDeletePermissionsResponse::Representation
2542
+ command.response_class = Google::Apis::MapsengineV1::BatchDeletePermissionsResponse
2543
+ command.params['id'] = id unless id.nil?
2544
+ command.query['fields'] = fields unless fields.nil?
2545
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2546
+ command.query['userIp'] = user_ip unless user_ip.nil?
2547
+ execute_or_queue_command(command, &block)
2548
+ end
2549
+
2550
+ # Add or update permission entries to an already existing asset.
2551
+ # An asset can hold up to 20 different permission entries. Each batchInsert
2552
+ # request is atomic.
2553
+ # @param [String] id
2554
+ # The ID of the asset to which permissions will be added.
2555
+ # @param [Google::Apis::MapsengineV1::BatchUpdatePermissionsRequest] batch_update_permissions_request_object
2556
+ # @param [String] fields
2557
+ # Selector specifying which fields to include in a partial response.
2558
+ # @param [String] quota_user
2559
+ # Available to use for quota purposes for server-side applications. Can be any
2560
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2561
+ # Overrides userIp if both are provided.
2562
+ # @param [String] user_ip
2563
+ # IP address of the site where the request originates. Use this if you want to
2564
+ # enforce per-user limits.
2565
+ # @param [Google::Apis::RequestOptions] options
2566
+ # Request-specific options
2567
+ #
2568
+ # @yield [result, err] Result & error if block supplied
2569
+ # @yieldparam result [Google::Apis::MapsengineV1::BatchUpdatePermissionsResponse] parsed result object
2570
+ # @yieldparam err [StandardError] error object if request failed
2571
+ #
2572
+ # @return [Google::Apis::MapsengineV1::BatchUpdatePermissionsResponse]
2573
+ #
2574
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2575
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2576
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2577
+ def batch_update_raster_permission(id, batch_update_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2578
+ command = make_simple_command(:post, 'rasters/{id}/permissions/batchUpdate', options)
2579
+ command.request_representation = Google::Apis::MapsengineV1::BatchUpdatePermissionsRequest::Representation
2580
+ command.request_object = batch_update_permissions_request_object
2581
+ command.response_representation = Google::Apis::MapsengineV1::BatchUpdatePermissionsResponse::Representation
2582
+ command.response_class = Google::Apis::MapsengineV1::BatchUpdatePermissionsResponse
2583
+ command.params['id'] = id unless id.nil?
2584
+ command.query['fields'] = fields unless fields.nil?
2585
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2586
+ command.query['userIp'] = user_ip unless user_ip.nil?
2587
+ execute_or_queue_command(command, &block)
2588
+ end
2589
+
2590
+ # Return all of the permissions for the specified asset.
2591
+ # @param [String] id
2592
+ # The ID of the asset whose permissions will be listed.
2593
+ # @param [String] fields
2594
+ # Selector specifying which fields to include in a partial response.
2595
+ # @param [String] quota_user
2596
+ # Available to use for quota purposes for server-side applications. Can be any
2597
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2598
+ # Overrides userIp if both are provided.
2599
+ # @param [String] user_ip
2600
+ # IP address of the site where the request originates. Use this if you want to
2601
+ # enforce per-user limits.
2602
+ # @param [Google::Apis::RequestOptions] options
2603
+ # Request-specific options
2604
+ #
2605
+ # @yield [result, err] Result & error if block supplied
2606
+ # @yieldparam result [Google::Apis::MapsengineV1::ListPermissionsResponse] parsed result object
2607
+ # @yieldparam err [StandardError] error object if request failed
2608
+ #
2609
+ # @return [Google::Apis::MapsengineV1::ListPermissionsResponse]
2610
+ #
2611
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2612
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2613
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2614
+ def list_raster_permissions(id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2615
+ command = make_simple_command(:get, 'rasters/{id}/permissions', options)
2616
+ command.response_representation = Google::Apis::MapsengineV1::ListPermissionsResponse::Representation
2617
+ command.response_class = Google::Apis::MapsengineV1::ListPermissionsResponse
2618
+ command.params['id'] = id unless id.nil?
2619
+ command.query['fields'] = fields unless fields.nil?
2620
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2621
+ command.query['userIp'] = user_ip unless user_ip.nil?
2622
+ execute_or_queue_command(command, &block)
2623
+ end
2624
+
2625
+ # Create a table asset.
2626
+ # @param [Google::Apis::MapsengineV1::Table] table_object
2627
+ # @param [String] fields
2628
+ # Selector specifying which fields to include in a partial response.
2629
+ # @param [String] quota_user
2630
+ # Available to use for quota purposes for server-side applications. Can be any
2631
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2632
+ # Overrides userIp if both are provided.
2633
+ # @param [String] user_ip
2634
+ # IP address of the site where the request originates. Use this if you want to
2635
+ # enforce per-user limits.
2636
+ # @param [Google::Apis::RequestOptions] options
2637
+ # Request-specific options
2638
+ #
2639
+ # @yield [result, err] Result & error if block supplied
2640
+ # @yieldparam result [Google::Apis::MapsengineV1::Table] parsed result object
2641
+ # @yieldparam err [StandardError] error object if request failed
2642
+ #
2643
+ # @return [Google::Apis::MapsengineV1::Table]
2644
+ #
2645
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2646
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2647
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2648
+ def create_table(table_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2649
+ command = make_simple_command(:post, 'tables', options)
2650
+ command.request_representation = Google::Apis::MapsengineV1::Table::Representation
2651
+ command.request_object = table_object
2652
+ command.response_representation = Google::Apis::MapsengineV1::Table::Representation
2653
+ command.response_class = Google::Apis::MapsengineV1::Table
2654
+ command.query['fields'] = fields unless fields.nil?
2655
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2656
+ command.query['userIp'] = user_ip unless user_ip.nil?
2657
+ execute_or_queue_command(command, &block)
2658
+ end
2659
+
2660
+ # Delete a table.
2661
+ # @param [String] id
2662
+ # The ID of the table. Only the table creator or project owner are permitted to
2663
+ # delete. If the table is included in a layer, the request will fail. Remove it
2664
+ # from all layers prior to deleting.
2665
+ # @param [String] fields
2666
+ # Selector specifying which fields to include in a partial response.
2667
+ # @param [String] quota_user
2668
+ # Available to use for quota purposes for server-side applications. Can be any
2669
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2670
+ # Overrides userIp if both are provided.
2671
+ # @param [String] user_ip
2672
+ # IP address of the site where the request originates. Use this if you want to
2673
+ # enforce per-user limits.
2674
+ # @param [Google::Apis::RequestOptions] options
2675
+ # Request-specific options
2676
+ #
2677
+ # @yield [result, err] Result & error if block supplied
2678
+ # @yieldparam result [NilClass] No result returned for this method
2679
+ # @yieldparam err [StandardError] error object if request failed
2680
+ #
2681
+ # @return [void]
2682
+ #
2683
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2684
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2685
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2686
+ def delete_table(id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2687
+ command = make_simple_command(:delete, 'tables/{id}', options)
2688
+ command.params['id'] = id unless id.nil?
2689
+ command.query['fields'] = fields unless fields.nil?
2690
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2691
+ command.query['userIp'] = user_ip unless user_ip.nil?
2692
+ execute_or_queue_command(command, &block)
2693
+ end
2694
+
2695
+ # Return metadata for a particular table, including the schema.
2696
+ # @param [String] id
2697
+ # The ID of the table.
2698
+ # @param [String] version
2699
+ # @param [String] fields
2700
+ # Selector specifying which fields to include in a partial response.
2701
+ # @param [String] quota_user
2702
+ # Available to use for quota purposes for server-side applications. Can be any
2703
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2704
+ # Overrides userIp if both are provided.
2705
+ # @param [String] user_ip
2706
+ # IP address of the site where the request originates. Use this if you want to
2707
+ # enforce per-user limits.
2708
+ # @param [Google::Apis::RequestOptions] options
2709
+ # Request-specific options
2710
+ #
2711
+ # @yield [result, err] Result & error if block supplied
2712
+ # @yieldparam result [Google::Apis::MapsengineV1::Table] parsed result object
2713
+ # @yieldparam err [StandardError] error object if request failed
2714
+ #
2715
+ # @return [Google::Apis::MapsengineV1::Table]
2716
+ #
2717
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2718
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2719
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2720
+ def get_table(id, version: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2721
+ command = make_simple_command(:get, 'tables/{id}', options)
2722
+ command.response_representation = Google::Apis::MapsengineV1::Table::Representation
2723
+ command.response_class = Google::Apis::MapsengineV1::Table
2724
+ command.params['id'] = id unless id.nil?
2725
+ command.query['version'] = version unless version.nil?
2726
+ command.query['fields'] = fields unless fields.nil?
2727
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2728
+ command.query['userIp'] = user_ip unless user_ip.nil?
2729
+ execute_or_queue_command(command, &block)
2730
+ end
2731
+
2732
+ # Return all tables readable by the current user.
2733
+ # @param [String] bbox
2734
+ # A bounding box, expressed as "west,south,east,north". If set, only assets
2735
+ # which intersect this bounding box will be returned.
2736
+ # @param [DateTime] created_after
2737
+ # An RFC 3339 formatted date-time value (e.g. 1970-01-01T00:00:00Z). Returned
2738
+ # assets will have been created at or after this time.
2739
+ # @param [DateTime] created_before
2740
+ # An RFC 3339 formatted date-time value (e.g. 1970-01-01T00:00:00Z). Returned
2741
+ # assets will have been created at or before this time.
2742
+ # @param [String] creator_email
2743
+ # An email address representing a user. Returned assets that have been created
2744
+ # by the user associated with the provided email address.
2745
+ # @param [Fixnum] max_results
2746
+ # The maximum number of items to include in a single response page. The maximum
2747
+ # supported value is 100.
2748
+ # @param [DateTime] modified_after
2749
+ # An RFC 3339 formatted date-time value (e.g. 1970-01-01T00:00:00Z). Returned
2750
+ # assets will have been modified at or after this time.
2751
+ # @param [DateTime] modified_before
2752
+ # An RFC 3339 formatted date-time value (e.g. 1970-01-01T00:00:00Z). Returned
2753
+ # assets will have been modified at or before this time.
2754
+ # @param [String] page_token
2755
+ # The continuation token, used to page through large result sets. To get the
2756
+ # next page of results, set this parameter to the value of nextPageToken from
2757
+ # the previous response.
2758
+ # @param [String] processing_status
2759
+ # @param [String] project_id
2760
+ # The ID of a Maps Engine project, used to filter the response. To list all
2761
+ # available projects with their IDs, send a Projects: list request. You can also
2762
+ # find your project ID as the value of the DashboardPlace:cid URL parameter when
2763
+ # signed in to mapsengine.google.com.
2764
+ # @param [String] role
2765
+ # The role parameter indicates that the response should only contain assets
2766
+ # where the current user has the specified level of access.
2767
+ # @param [String] search
2768
+ # An unstructured search string used to filter the set of results based on asset
2769
+ # metadata.
2770
+ # @param [String] tags
2771
+ # A comma separated list of tags. Returned assets will contain all the tags from
2772
+ # the list.
2773
+ # @param [String] fields
2774
+ # Selector specifying which fields to include in a partial response.
2775
+ # @param [String] quota_user
2776
+ # Available to use for quota purposes for server-side applications. Can be any
2777
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2778
+ # Overrides userIp if both are provided.
2779
+ # @param [String] user_ip
2780
+ # IP address of the site where the request originates. Use this if you want to
2781
+ # enforce per-user limits.
2782
+ # @param [Google::Apis::RequestOptions] options
2783
+ # Request-specific options
2784
+ #
2785
+ # @yield [result, err] Result & error if block supplied
2786
+ # @yieldparam result [Google::Apis::MapsengineV1::ListTablesResponse] parsed result object
2787
+ # @yieldparam err [StandardError] error object if request failed
2788
+ #
2789
+ # @return [Google::Apis::MapsengineV1::ListTablesResponse]
2790
+ #
2791
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2792
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2793
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2794
+ def list_tables(bbox: nil, created_after: nil, created_before: nil, creator_email: nil, max_results: nil, modified_after: nil, modified_before: nil, page_token: nil, processing_status: nil, project_id: nil, role: nil, search: nil, tags: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2795
+ command = make_simple_command(:get, 'tables', options)
2796
+ command.response_representation = Google::Apis::MapsengineV1::ListTablesResponse::Representation
2797
+ command.response_class = Google::Apis::MapsengineV1::ListTablesResponse
2798
+ command.query['bbox'] = bbox unless bbox.nil?
2799
+ command.query['createdAfter'] = created_after unless created_after.nil?
2800
+ command.query['createdBefore'] = created_before unless created_before.nil?
2801
+ command.query['creatorEmail'] = creator_email unless creator_email.nil?
2802
+ command.query['maxResults'] = max_results unless max_results.nil?
2803
+ command.query['modifiedAfter'] = modified_after unless modified_after.nil?
2804
+ command.query['modifiedBefore'] = modified_before unless modified_before.nil?
2805
+ command.query['pageToken'] = page_token unless page_token.nil?
2806
+ command.query['processingStatus'] = processing_status unless processing_status.nil?
2807
+ command.query['projectId'] = project_id unless project_id.nil?
2808
+ command.query['role'] = role unless role.nil?
2809
+ command.query['search'] = search unless search.nil?
2810
+ command.query['tags'] = tags unless tags.nil?
2811
+ command.query['fields'] = fields unless fields.nil?
2812
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2813
+ command.query['userIp'] = user_ip unless user_ip.nil?
2814
+ execute_or_queue_command(command, &block)
2815
+ end
2816
+
2817
+ # Mutate a table asset.
2818
+ # @param [String] id
2819
+ # The ID of the table.
2820
+ # @param [Google::Apis::MapsengineV1::Table] table_object
2821
+ # @param [String] fields
2822
+ # Selector specifying which fields to include in a partial response.
2823
+ # @param [String] quota_user
2824
+ # Available to use for quota purposes for server-side applications. Can be any
2825
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2826
+ # Overrides userIp if both are provided.
2827
+ # @param [String] user_ip
2828
+ # IP address of the site where the request originates. Use this if you want to
2829
+ # enforce per-user limits.
2830
+ # @param [Google::Apis::RequestOptions] options
2831
+ # Request-specific options
2832
+ #
2833
+ # @yield [result, err] Result & error if block supplied
2834
+ # @yieldparam result [NilClass] No result returned for this method
2835
+ # @yieldparam err [StandardError] error object if request failed
2836
+ #
2837
+ # @return [void]
2838
+ #
2839
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2840
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2841
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2842
+ def patch_table(id, table_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2843
+ command = make_simple_command(:patch, 'tables/{id}', options)
2844
+ command.request_representation = Google::Apis::MapsengineV1::Table::Representation
2845
+ command.request_object = table_object
2846
+ command.params['id'] = id unless id.nil?
2847
+ command.query['fields'] = fields unless fields.nil?
2848
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2849
+ command.query['userIp'] = user_ip unless user_ip.nil?
2850
+ execute_or_queue_command(command, &block)
2851
+ end
2852
+
2853
+ # Process a table asset.
2854
+ # @param [String] id
2855
+ # The ID of the table.
2856
+ # @param [String] fields
2857
+ # Selector specifying which fields to include in a partial response.
2858
+ # @param [String] quota_user
2859
+ # Available to use for quota purposes for server-side applications. Can be any
2860
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2861
+ # Overrides userIp if both are provided.
2862
+ # @param [String] user_ip
2863
+ # IP address of the site where the request originates. Use this if you want to
2864
+ # enforce per-user limits.
2865
+ # @param [Google::Apis::RequestOptions] options
2866
+ # Request-specific options
2867
+ #
2868
+ # @yield [result, err] Result & error if block supplied
2869
+ # @yieldparam result [Google::Apis::MapsengineV1::ProcessResponse] parsed result object
2870
+ # @yieldparam err [StandardError] error object if request failed
2871
+ #
2872
+ # @return [Google::Apis::MapsengineV1::ProcessResponse]
2873
+ #
2874
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2875
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2876
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2877
+ def process_table(id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2878
+ command = make_simple_command(:post, 'tables/{id}/process', options)
2879
+ command.response_representation = Google::Apis::MapsengineV1::ProcessResponse::Representation
2880
+ command.response_class = Google::Apis::MapsengineV1::ProcessResponse
2881
+ command.params['id'] = id unless id.nil?
2882
+ command.query['fields'] = fields unless fields.nil?
2883
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2884
+ command.query['userIp'] = user_ip unless user_ip.nil?
2885
+ execute_or_queue_command(command, &block)
2886
+ end
2887
+
2888
+ # Create a placeholder table asset to which table files can be uploaded.
2889
+ # Once the placeholder has been created, files are uploaded to the https://www.
2890
+ # googleapis.com/upload/mapsengine/v1/tables/table_id/files endpoint.
2891
+ # See Table Upload in the Developer's Guide or Table.files: insert in the
2892
+ # reference documentation for more information.
2893
+ # @param [Google::Apis::MapsengineV1::Table] table_object
2894
+ # @param [String] fields
2895
+ # Selector specifying which fields to include in a partial response.
2896
+ # @param [String] quota_user
2897
+ # Available to use for quota purposes for server-side applications. Can be any
2898
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2899
+ # Overrides userIp if both are provided.
2900
+ # @param [String] user_ip
2901
+ # IP address of the site where the request originates. Use this if you want to
2902
+ # enforce per-user limits.
2903
+ # @param [Google::Apis::RequestOptions] options
2904
+ # Request-specific options
2905
+ #
2906
+ # @yield [result, err] Result & error if block supplied
2907
+ # @yieldparam result [Google::Apis::MapsengineV1::Table] parsed result object
2908
+ # @yieldparam err [StandardError] error object if request failed
2909
+ #
2910
+ # @return [Google::Apis::MapsengineV1::Table]
2911
+ #
2912
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2913
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2914
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2915
+ def upload_table(table_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2916
+ command = make_simple_command(:post, 'tables/upload', options)
2917
+ command.request_representation = Google::Apis::MapsengineV1::Table::Representation
2918
+ command.request_object = table_object
2919
+ command.response_representation = Google::Apis::MapsengineV1::Table::Representation
2920
+ command.response_class = Google::Apis::MapsengineV1::Table
2921
+ command.query['fields'] = fields unless fields.nil?
2922
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2923
+ command.query['userIp'] = user_ip unless user_ip.nil?
2924
+ execute_or_queue_command(command, &block)
2925
+ end
2926
+
2927
+ # Delete all features matching the given IDs.
2928
+ # @param [String] id
2929
+ # The ID of the table that contains the features to be deleted.
2930
+ # @param [Google::Apis::MapsengineV1::BatchDeleteFeaturesRequest] batch_delete_features_request_object
2931
+ # @param [String] fields
2932
+ # Selector specifying which fields to include in a partial response.
2933
+ # @param [String] quota_user
2934
+ # Available to use for quota purposes for server-side applications. Can be any
2935
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2936
+ # Overrides userIp if both are provided.
2937
+ # @param [String] user_ip
2938
+ # IP address of the site where the request originates. Use this if you want to
2939
+ # enforce per-user limits.
2940
+ # @param [Google::Apis::RequestOptions] options
2941
+ # Request-specific options
2942
+ #
2943
+ # @yield [result, err] Result & error if block supplied
2944
+ # @yieldparam result [NilClass] No result returned for this method
2945
+ # @yieldparam err [StandardError] error object if request failed
2946
+ #
2947
+ # @return [void]
2948
+ #
2949
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2950
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2951
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2952
+ def batch_delete_table_feature(id, batch_delete_features_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2953
+ command = make_simple_command(:post, 'tables/{id}/features/batchDelete', options)
2954
+ command.request_representation = Google::Apis::MapsengineV1::BatchDeleteFeaturesRequest::Representation
2955
+ command.request_object = batch_delete_features_request_object
2956
+ command.params['id'] = id unless id.nil?
2957
+ command.query['fields'] = fields unless fields.nil?
2958
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2959
+ command.query['userIp'] = user_ip unless user_ip.nil?
2960
+ execute_or_queue_command(command, &block)
2961
+ end
2962
+
2963
+ # Append features to an existing table.
2964
+ # A single batchInsert request can create:
2965
+ # - Up to 50 features.
2966
+ # - A combined total of 10 000 vertices.
2967
+ # Feature limits are documented in the Supported data formats and limits article
2968
+ # of the Google Maps Engine help center. Note that free and paid accounts have
2969
+ # different limits.
2970
+ # For more information about inserting features, read Creating features in the
2971
+ # Google Maps Engine developer's guide.
2972
+ # @param [String] id
2973
+ # The ID of the table to append the features to.
2974
+ # @param [Google::Apis::MapsengineV1::BatchInsertFeaturesRequest] batch_insert_features_request_object
2975
+ # @param [String] fields
2976
+ # Selector specifying which fields to include in a partial response.
2977
+ # @param [String] quota_user
2978
+ # Available to use for quota purposes for server-side applications. Can be any
2979
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2980
+ # Overrides userIp if both are provided.
2981
+ # @param [String] user_ip
2982
+ # IP address of the site where the request originates. Use this if you want to
2983
+ # enforce per-user limits.
2984
+ # @param [Google::Apis::RequestOptions] options
2985
+ # Request-specific options
2986
+ #
2987
+ # @yield [result, err] Result & error if block supplied
2988
+ # @yieldparam result [NilClass] No result returned for this method
2989
+ # @yieldparam err [StandardError] error object if request failed
2990
+ #
2991
+ # @return [void]
2992
+ #
2993
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2994
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2995
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2996
+ def batch_insert_table_feature(id, batch_insert_features_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2997
+ command = make_simple_command(:post, 'tables/{id}/features/batchInsert', options)
2998
+ command.request_representation = Google::Apis::MapsengineV1::BatchInsertFeaturesRequest::Representation
2999
+ command.request_object = batch_insert_features_request_object
3000
+ command.params['id'] = id unless id.nil?
3001
+ command.query['fields'] = fields unless fields.nil?
3002
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3003
+ command.query['userIp'] = user_ip unless user_ip.nil?
3004
+ execute_or_queue_command(command, &block)
3005
+ end
3006
+
3007
+ # Update the supplied features.
3008
+ # A single batchPatch request can update:
3009
+ # - Up to 50 features.
3010
+ # - A combined total of 10 000 vertices.
3011
+ # Feature limits are documented in the Supported data formats and limits article
3012
+ # of the Google Maps Engine help center. Note that free and paid accounts have
3013
+ # different limits.
3014
+ # Feature updates use HTTP PATCH semantics:
3015
+ # - A supplied value replaces an existing value (if any) in that field.
3016
+ # - Omitted fields remain unchanged.
3017
+ # - Complex values in geometries and properties must be replaced as atomic units.
3018
+ # For example, providing just the coordinates of a geometry is not allowed; the
3019
+ # complete geometry, including type, must be supplied.
3020
+ # - Setting a property's value to null deletes that property.
3021
+ # For more information about updating features, read Updating features in the
3022
+ # Google Maps Engine developer's guide.
3023
+ # @param [String] id
3024
+ # The ID of the table containing the features to be patched.
3025
+ # @param [Google::Apis::MapsengineV1::BatchPatchFeaturesRequest] batch_patch_features_request_object
3026
+ # @param [String] fields
3027
+ # Selector specifying which fields to include in a partial response.
3028
+ # @param [String] quota_user
3029
+ # Available to use for quota purposes for server-side applications. Can be any
3030
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3031
+ # Overrides userIp if both are provided.
3032
+ # @param [String] user_ip
3033
+ # IP address of the site where the request originates. Use this if you want to
3034
+ # enforce per-user limits.
3035
+ # @param [Google::Apis::RequestOptions] options
3036
+ # Request-specific options
3037
+ #
3038
+ # @yield [result, err] Result & error if block supplied
3039
+ # @yieldparam result [NilClass] No result returned for this method
3040
+ # @yieldparam err [StandardError] error object if request failed
3041
+ #
3042
+ # @return [void]
3043
+ #
3044
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3045
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3046
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3047
+ def batch_patch_table_feature(id, batch_patch_features_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
3048
+ command = make_simple_command(:post, 'tables/{id}/features/batchPatch', options)
3049
+ command.request_representation = Google::Apis::MapsengineV1::BatchPatchFeaturesRequest::Representation
3050
+ command.request_object = batch_patch_features_request_object
3051
+ command.params['id'] = id unless id.nil?
3052
+ command.query['fields'] = fields unless fields.nil?
3053
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3054
+ command.query['userIp'] = user_ip unless user_ip.nil?
3055
+ execute_or_queue_command(command, &block)
3056
+ end
3057
+
3058
+ # Return a single feature, given its ID.
3059
+ # @param [String] table_id
3060
+ # The ID of the table.
3061
+ # @param [String] id
3062
+ # The ID of the feature to get.
3063
+ # @param [String] select
3064
+ # A SQL-like projection clause used to specify returned properties. If this
3065
+ # parameter is not included, all properties are returned.
3066
+ # @param [String] version
3067
+ # The table version to access. See Accessing Public Data for information.
3068
+ # @param [String] fields
3069
+ # Selector specifying which fields to include in a partial response.
3070
+ # @param [String] quota_user
3071
+ # Available to use for quota purposes for server-side applications. Can be any
3072
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3073
+ # Overrides userIp if both are provided.
3074
+ # @param [String] user_ip
3075
+ # IP address of the site where the request originates. Use this if you want to
3076
+ # enforce per-user limits.
3077
+ # @param [Google::Apis::RequestOptions] options
3078
+ # Request-specific options
3079
+ #
3080
+ # @yield [result, err] Result & error if block supplied
3081
+ # @yieldparam result [Google::Apis::MapsengineV1::Feature] parsed result object
3082
+ # @yieldparam err [StandardError] error object if request failed
3083
+ #
3084
+ # @return [Google::Apis::MapsengineV1::Feature]
3085
+ #
3086
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3087
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3088
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3089
+ def get_table_feature(table_id, id, select: nil, version: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
3090
+ command = make_simple_command(:get, 'tables/{tableId}/features/{id}', options)
3091
+ command.response_representation = Google::Apis::MapsengineV1::Feature::Representation
3092
+ command.response_class = Google::Apis::MapsengineV1::Feature
3093
+ command.params['tableId'] = table_id unless table_id.nil?
3094
+ command.params['id'] = id unless id.nil?
3095
+ command.query['select'] = select unless select.nil?
3096
+ command.query['version'] = version unless version.nil?
3097
+ command.query['fields'] = fields unless fields.nil?
3098
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3099
+ command.query['userIp'] = user_ip unless user_ip.nil?
3100
+ execute_or_queue_command(command, &block)
3101
+ end
3102
+
3103
+ # Return all features readable by the current user.
3104
+ # @param [String] id
3105
+ # The ID of the table to which these features belong.
3106
+ # @param [String] include
3107
+ # A comma separated list of optional data to include. Optional data available:
3108
+ # schema.
3109
+ # @param [String] intersects
3110
+ # A geometry literal that specifies the spatial restriction of the query.
3111
+ # @param [Fixnum] limit
3112
+ # The total number of features to return from the query, irrespective of the
3113
+ # number of pages.
3114
+ # @param [Fixnum] max_results
3115
+ # The maximum number of items to include in the response, used for paging. The
3116
+ # maximum supported value is 1000.
3117
+ # @param [String] order_by
3118
+ # An SQL-like order by clause used to sort results. If this parameter is not
3119
+ # included, the order of features is undefined.
3120
+ # @param [String] page_token
3121
+ # The continuation token, used to page through large result sets. To get the
3122
+ # next page of results, set this parameter to the value of nextPageToken from
3123
+ # the previous response.
3124
+ # @param [String] select
3125
+ # A SQL-like projection clause used to specify returned properties. If this
3126
+ # parameter is not included, all properties are returned.
3127
+ # @param [String] version
3128
+ # The table version to access. See Accessing Public Data for information.
3129
+ # @param [String] where
3130
+ # An SQL-like predicate used to filter results.
3131
+ # @param [String] fields
3132
+ # Selector specifying which fields to include in a partial response.
3133
+ # @param [String] quota_user
3134
+ # Available to use for quota purposes for server-side applications. Can be any
3135
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3136
+ # Overrides userIp if both are provided.
3137
+ # @param [String] user_ip
3138
+ # IP address of the site where the request originates. Use this if you want to
3139
+ # enforce per-user limits.
3140
+ # @param [Google::Apis::RequestOptions] options
3141
+ # Request-specific options
3142
+ #
3143
+ # @yield [result, err] Result & error if block supplied
3144
+ # @yieldparam result [Google::Apis::MapsengineV1::ListFeaturesResponse] parsed result object
3145
+ # @yieldparam err [StandardError] error object if request failed
3146
+ #
3147
+ # @return [Google::Apis::MapsengineV1::ListFeaturesResponse]
3148
+ #
3149
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3150
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3151
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3152
+ def list_table_features(id, include: nil, intersects: nil, limit: nil, max_results: nil, order_by: nil, page_token: nil, select: nil, version: nil, where: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
3153
+ command = make_simple_command(:get, 'tables/{id}/features', options)
3154
+ command.response_representation = Google::Apis::MapsengineV1::ListFeaturesResponse::Representation
3155
+ command.response_class = Google::Apis::MapsengineV1::ListFeaturesResponse
3156
+ command.params['id'] = id unless id.nil?
3157
+ command.query['include'] = include unless include.nil?
3158
+ command.query['intersects'] = intersects unless intersects.nil?
3159
+ command.query['limit'] = limit unless limit.nil?
3160
+ command.query['maxResults'] = max_results unless max_results.nil?
3161
+ command.query['orderBy'] = order_by unless order_by.nil?
3162
+ command.query['pageToken'] = page_token unless page_token.nil?
3163
+ command.query['select'] = select unless select.nil?
3164
+ command.query['version'] = version unless version.nil?
3165
+ command.query['where'] = where unless where.nil?
3166
+ command.query['fields'] = fields unless fields.nil?
3167
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3168
+ command.query['userIp'] = user_ip unless user_ip.nil?
3169
+ execute_or_queue_command(command, &block)
3170
+ end
3171
+
3172
+ # Upload a file to a placeholder table asset. See Table Upload in the Developer'
3173
+ # s Guide for more information.
3174
+ # Supported file types are listed in the Supported data formats and limits
3175
+ # article of the Google Maps Engine help center.
3176
+ # @param [String] id
3177
+ # The ID of the table asset.
3178
+ # @param [String] filename
3179
+ # The file name of this uploaded file.
3180
+ # @param [String] fields
3181
+ # Selector specifying which fields to include in a partial response.
3182
+ # @param [String] quota_user
3183
+ # Available to use for quota purposes for server-side applications. Can be any
3184
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3185
+ # Overrides userIp if both are provided.
3186
+ # @param [String] user_ip
3187
+ # IP address of the site where the request originates. Use this if you want to
3188
+ # enforce per-user limits.
3189
+ # @param [IO, String] upload_source
3190
+ # IO stream or filename containing content to upload
3191
+ # @param [String] content_type
3192
+ # Content type of the uploaded content.
3193
+ # @param [Google::Apis::RequestOptions] options
3194
+ # Request-specific options
3195
+ #
3196
+ # @yield [result, err] Result & error if block supplied
3197
+ # @yieldparam result [NilClass] No result returned for this method
3198
+ # @yieldparam err [StandardError] error object if request failed
3199
+ #
3200
+ # @return [void]
3201
+ #
3202
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3203
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3204
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3205
+ def insert_table_file(id, filename, fields: nil, quota_user: nil, user_ip: nil, upload_source: nil, content_type: nil, options: nil, &block)
3206
+ if upload_source.nil?
3207
+ command = make_simple_command(:post, 'tables/{id}/files', options)
3208
+ else
3209
+ command = make_upload_command(:post, 'tables/{id}/files', options)
3210
+ command.upload_source = upload_source
3211
+ command.upload_content_type = content_type
3212
+ end
3213
+ command.params['id'] = id unless id.nil?
3214
+ command.query['filename'] = filename unless filename.nil?
3215
+ command.query['fields'] = fields unless fields.nil?
3216
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3217
+ command.query['userIp'] = user_ip unless user_ip.nil?
3218
+ execute_or_queue_command(command, &block)
3219
+ end
3220
+
3221
+ # Return all parent ids of the specified table.
3222
+ # @param [String] id
3223
+ # The ID of the table whose parents will be listed.
3224
+ # @param [Fixnum] max_results
3225
+ # The maximum number of items to include in a single response page. The maximum
3226
+ # supported value is 50.
3227
+ # @param [String] page_token
3228
+ # The continuation token, used to page through large result sets. To get the
3229
+ # next page of results, set this parameter to the value of nextPageToken from
3230
+ # the previous response.
3231
+ # @param [String] fields
3232
+ # Selector specifying which fields to include in a partial response.
3233
+ # @param [String] quota_user
3234
+ # Available to use for quota purposes for server-side applications. Can be any
3235
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3236
+ # Overrides userIp if both are provided.
3237
+ # @param [String] user_ip
3238
+ # IP address of the site where the request originates. Use this if you want to
3239
+ # enforce per-user limits.
3240
+ # @param [Google::Apis::RequestOptions] options
3241
+ # Request-specific options
3242
+ #
3243
+ # @yield [result, err] Result & error if block supplied
3244
+ # @yieldparam result [Google::Apis::MapsengineV1::ListParentsResponse] parsed result object
3245
+ # @yieldparam err [StandardError] error object if request failed
3246
+ #
3247
+ # @return [Google::Apis::MapsengineV1::ListParentsResponse]
3248
+ #
3249
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3250
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3251
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3252
+ def list_table_parents(id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
3253
+ command = make_simple_command(:get, 'tables/{id}/parents', options)
3254
+ command.response_representation = Google::Apis::MapsengineV1::ListParentsResponse::Representation
3255
+ command.response_class = Google::Apis::MapsengineV1::ListParentsResponse
3256
+ command.params['id'] = id unless id.nil?
3257
+ command.query['maxResults'] = max_results unless max_results.nil?
3258
+ command.query['pageToken'] = page_token unless page_token.nil?
3259
+ command.query['fields'] = fields unless fields.nil?
3260
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3261
+ command.query['userIp'] = user_ip unless user_ip.nil?
3262
+ execute_or_queue_command(command, &block)
3263
+ end
3264
+
3265
+ # Remove permission entries from an already existing asset.
3266
+ # @param [String] id
3267
+ # The ID of the asset from which permissions will be removed.
3268
+ # @param [Google::Apis::MapsengineV1::BatchDeletePermissionsRequest] batch_delete_permissions_request_object
3269
+ # @param [String] fields
3270
+ # Selector specifying which fields to include in a partial response.
3271
+ # @param [String] quota_user
3272
+ # Available to use for quota purposes for server-side applications. Can be any
3273
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3274
+ # Overrides userIp if both are provided.
3275
+ # @param [String] user_ip
3276
+ # IP address of the site where the request originates. Use this if you want to
3277
+ # enforce per-user limits.
3278
+ # @param [Google::Apis::RequestOptions] options
3279
+ # Request-specific options
3280
+ #
3281
+ # @yield [result, err] Result & error if block supplied
3282
+ # @yieldparam result [Google::Apis::MapsengineV1::BatchDeletePermissionsResponse] parsed result object
3283
+ # @yieldparam err [StandardError] error object if request failed
3284
+ #
3285
+ # @return [Google::Apis::MapsengineV1::BatchDeletePermissionsResponse]
3286
+ #
3287
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3288
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3289
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3290
+ def batch_delete_table_permission(id, batch_delete_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
3291
+ command = make_simple_command(:post, 'tables/{id}/permissions/batchDelete', options)
3292
+ command.request_representation = Google::Apis::MapsengineV1::BatchDeletePermissionsRequest::Representation
3293
+ command.request_object = batch_delete_permissions_request_object
3294
+ command.response_representation = Google::Apis::MapsengineV1::BatchDeletePermissionsResponse::Representation
3295
+ command.response_class = Google::Apis::MapsengineV1::BatchDeletePermissionsResponse
3296
+ command.params['id'] = id unless id.nil?
3297
+ command.query['fields'] = fields unless fields.nil?
3298
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3299
+ command.query['userIp'] = user_ip unless user_ip.nil?
3300
+ execute_or_queue_command(command, &block)
3301
+ end
3302
+
3303
+ # Add or update permission entries to an already existing asset.
3304
+ # An asset can hold up to 20 different permission entries. Each batchInsert
3305
+ # request is atomic.
3306
+ # @param [String] id
3307
+ # The ID of the asset to which permissions will be added.
3308
+ # @param [Google::Apis::MapsengineV1::BatchUpdatePermissionsRequest] batch_update_permissions_request_object
3309
+ # @param [String] fields
3310
+ # Selector specifying which fields to include in a partial response.
3311
+ # @param [String] quota_user
3312
+ # Available to use for quota purposes for server-side applications. Can be any
3313
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3314
+ # Overrides userIp if both are provided.
3315
+ # @param [String] user_ip
3316
+ # IP address of the site where the request originates. Use this if you want to
3317
+ # enforce per-user limits.
3318
+ # @param [Google::Apis::RequestOptions] options
3319
+ # Request-specific options
3320
+ #
3321
+ # @yield [result, err] Result & error if block supplied
3322
+ # @yieldparam result [Google::Apis::MapsengineV1::BatchUpdatePermissionsResponse] parsed result object
3323
+ # @yieldparam err [StandardError] error object if request failed
3324
+ #
3325
+ # @return [Google::Apis::MapsengineV1::BatchUpdatePermissionsResponse]
3326
+ #
3327
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3328
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3329
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3330
+ def batch_update_table_permission(id, batch_update_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
3331
+ command = make_simple_command(:post, 'tables/{id}/permissions/batchUpdate', options)
3332
+ command.request_representation = Google::Apis::MapsengineV1::BatchUpdatePermissionsRequest::Representation
3333
+ command.request_object = batch_update_permissions_request_object
3334
+ command.response_representation = Google::Apis::MapsengineV1::BatchUpdatePermissionsResponse::Representation
3335
+ command.response_class = Google::Apis::MapsengineV1::BatchUpdatePermissionsResponse
3336
+ command.params['id'] = id unless id.nil?
3337
+ command.query['fields'] = fields unless fields.nil?
3338
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3339
+ command.query['userIp'] = user_ip unless user_ip.nil?
3340
+ execute_or_queue_command(command, &block)
3341
+ end
3342
+
3343
+ # Return all of the permissions for the specified asset.
3344
+ # @param [String] id
3345
+ # The ID of the asset whose permissions will be listed.
3346
+ # @param [String] fields
3347
+ # Selector specifying which fields to include in a partial response.
3348
+ # @param [String] quota_user
3349
+ # Available to use for quota purposes for server-side applications. Can be any
3350
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3351
+ # Overrides userIp if both are provided.
3352
+ # @param [String] user_ip
3353
+ # IP address of the site where the request originates. Use this if you want to
3354
+ # enforce per-user limits.
3355
+ # @param [Google::Apis::RequestOptions] options
3356
+ # Request-specific options
3357
+ #
3358
+ # @yield [result, err] Result & error if block supplied
3359
+ # @yieldparam result [Google::Apis::MapsengineV1::ListPermissionsResponse] parsed result object
3360
+ # @yieldparam err [StandardError] error object if request failed
3361
+ #
3362
+ # @return [Google::Apis::MapsengineV1::ListPermissionsResponse]
3363
+ #
3364
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3365
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3366
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3367
+ def list_table_permissions(id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
3368
+ command = make_simple_command(:get, 'tables/{id}/permissions', options)
3369
+ command.response_representation = Google::Apis::MapsengineV1::ListPermissionsResponse::Representation
3370
+ command.response_class = Google::Apis::MapsengineV1::ListPermissionsResponse
3371
+ command.params['id'] = id unless id.nil?
3372
+ command.query['fields'] = fields unless fields.nil?
3373
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3374
+ command.query['userIp'] = user_ip unless user_ip.nil?
3375
+ execute_or_queue_command(command, &block)
3376
+ end
3377
+
3378
+ protected
3379
+
3380
+ def apply_command_defaults(command)
3381
+ command.query['key'] = key unless key.nil?
3382
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3383
+ command.query['userIp'] = user_ip unless user_ip.nil?
3384
+ end
3385
+ end
3386
+ end
3387
+ end
3388
+ end