google-api-client 0.13.2 → 0.13.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (524) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +149 -0
  3. data/bin/generate-api +6 -2
  4. data/generated/google/apis/acceleratedmobilepageurl_v1.rb +3 -3
  5. data/generated/google/apis/acceleratedmobilepageurl_v1/classes.rb +46 -46
  6. data/generated/google/apis/acceleratedmobilepageurl_v1/representations.rb +15 -15
  7. data/generated/google/apis/acceleratedmobilepageurl_v1/service.rb +6 -6
  8. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +2 -2
  9. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +1394 -1394
  10. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +322 -322
  11. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +449 -449
  12. data/generated/google/apis/adexchangebuyer_v1_2.rb +35 -0
  13. data/generated/google/apis/adexchangebuyer_v1_2/classes.rb +457 -0
  14. data/generated/google/apis/adexchangebuyer_v1_2/representations.rb +189 -0
  15. data/generated/google/apis/adexchangebuyer_v1_2/service.rb +329 -0
  16. data/generated/google/apis/adexchangebuyer_v1_3.rb +35 -0
  17. data/generated/google/apis/adexchangebuyer_v1_3/classes.rb +1347 -0
  18. data/generated/google/apis/adexchangebuyer_v1_3/representations.rb +498 -0
  19. data/generated/google/apis/adexchangebuyer_v1_3/service.rb +873 -0
  20. data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
  21. data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +1 -1
  22. data/generated/google/apis/adexchangeseller_v1.rb +37 -0
  23. data/generated/google/apis/adexchangeseller_v1/classes.rb +557 -0
  24. data/generated/google/apis/adexchangeseller_v1/representations.rb +248 -0
  25. data/generated/google/apis/adexchangeseller_v1/service.rb +568 -0
  26. data/generated/google/apis/adexchangeseller_v1_1.rb +37 -0
  27. data/generated/google/apis/adexchangeseller_v1_1/classes.rb +842 -0
  28. data/generated/google/apis/adexchangeseller_v1_1/representations.rb +364 -0
  29. data/generated/google/apis/adexchangeseller_v1_1/service.rb +771 -0
  30. data/generated/google/apis/adexperiencereport_v1.rb +35 -0
  31. data/generated/google/apis/adexperiencereport_v1/classes.rb +138 -0
  32. data/generated/google/apis/adexperiencereport_v1/representations.rb +77 -0
  33. data/generated/google/apis/adexperiencereport_v1/service.rb +123 -0
  34. data/generated/google/apis/admin_directory_v1.rb +1 -1
  35. data/generated/google/apis/admin_directory_v1/classes.rb +60 -0
  36. data/generated/google/apis/admin_directory_v1/representations.rb +29 -0
  37. data/generated/google/apis/admin_directory_v1/service.rb +39 -0
  38. data/generated/google/apis/adsense_v1_4.rb +1 -1
  39. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  40. data/generated/google/apis/analytics_v2_4.rb +37 -0
  41. data/generated/google/apis/analytics_v2_4/classes.rb +26 -0
  42. data/generated/google/apis/analytics_v2_4/representations.rb +26 -0
  43. data/generated/google/apis/analytics_v2_4/service.rb +345 -0
  44. data/generated/google/apis/analytics_v3.rb +1 -1
  45. data/generated/google/apis/analytics_v3/classes.rb +15 -2
  46. data/generated/google/apis/analytics_v3/representations.rb +3 -0
  47. data/generated/google/apis/analyticsreporting_v4.rb +4 -4
  48. data/generated/google/apis/analyticsreporting_v4/classes.rb +891 -891
  49. data/generated/google/apis/analyticsreporting_v4/representations.rb +189 -189
  50. data/generated/google/apis/androiddeviceprovisioning_v1.rb +32 -0
  51. data/generated/google/apis/androiddeviceprovisioning_v1/classes.rb +917 -0
  52. data/generated/google/apis/androiddeviceprovisioning_v1/representations.rb +447 -0
  53. data/generated/google/apis/androiddeviceprovisioning_v1/service.rb +419 -0
  54. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  55. data/generated/google/apis/androidenterprise_v1/classes.rb +31 -0
  56. data/generated/google/apis/androidenterprise_v1/representations.rb +14 -0
  57. data/generated/google/apis/androidenterprise_v1/service.rb +76 -0
  58. data/generated/google/apis/androidmanagement_v1.rb +35 -0
  59. data/generated/google/apis/androidmanagement_v1/classes.rb +2039 -0
  60. data/generated/google/apis/androidmanagement_v1/representations.rb +702 -0
  61. data/generated/google/apis/androidmanagement_v1/service.rb +796 -0
  62. data/generated/google/apis/androidpublisher_v1.rb +34 -0
  63. data/generated/google/apis/androidpublisher_v1/classes.rb +67 -0
  64. data/generated/google/apis/androidpublisher_v1/representations.rb +42 -0
  65. data/generated/google/apis/androidpublisher_v1/service.rb +150 -0
  66. data/generated/google/apis/androidpublisher_v1_1.rb +34 -0
  67. data/generated/google/apis/androidpublisher_v1_1/classes.rb +123 -0
  68. data/generated/google/apis/androidpublisher_v1_1/representations.rb +60 -0
  69. data/generated/google/apis/androidpublisher_v1_1/service.rb +192 -0
  70. data/generated/google/apis/androidpublisher_v2.rb +1 -1
  71. data/generated/google/apis/androidpublisher_v2/classes.rb +21 -0
  72. data/generated/google/apis/androidpublisher_v2/representations.rb +3 -0
  73. data/generated/google/apis/androidpublisher_v2/service.rb +6 -2
  74. data/generated/google/apis/appengine_v1.rb +4 -4
  75. data/generated/google/apis/appengine_v1/classes.rb +1519 -1474
  76. data/generated/google/apis/appengine_v1/representations.rb +351 -335
  77. data/generated/google/apis/appengine_v1/service.rb +255 -239
  78. data/generated/google/apis/appengine_v1alpha.rb +41 -0
  79. data/generated/google/apis/appengine_v1alpha/classes.rb +987 -0
  80. data/generated/google/apis/appengine_v1alpha/representations.rb +397 -0
  81. data/generated/google/apis/appengine_v1alpha/service.rb +631 -0
  82. data/generated/google/apis/appengine_v1beta.rb +41 -0
  83. data/generated/google/apis/appengine_v1beta/classes.rb +2876 -0
  84. data/generated/google/apis/appengine_v1beta/representations.rb +1138 -0
  85. data/generated/google/apis/appengine_v1beta/service.rb +1546 -0
  86. data/generated/google/apis/appengine_v1beta4.rb +41 -0
  87. data/generated/google/apis/appengine_v1beta4/classes.rb +2170 -0
  88. data/generated/google/apis/appengine_v1beta4/representations.rb +824 -0
  89. data/generated/google/apis/appengine_v1beta4/service.rb +876 -0
  90. data/generated/google/apis/appengine_v1beta5.rb +41 -0
  91. data/generated/google/apis/appengine_v1beta5/classes.rb +2168 -0
  92. data/generated/google/apis/appengine_v1beta5/representations.rb +822 -0
  93. data/generated/google/apis/appengine_v1beta5/service.rb +877 -0
  94. data/generated/google/apis/appsactivity_v1.rb +1 -1
  95. data/generated/google/apis/appstate_v1.rb +1 -1
  96. data/generated/google/apis/bigquery_v2.rb +1 -1
  97. data/generated/google/apis/bigquery_v2/classes.rb +106 -18
  98. data/generated/google/apis/bigquery_v2/representations.rb +15 -0
  99. data/generated/google/apis/bigquerydatatransfer_v1.rb +41 -0
  100. data/generated/google/apis/bigquerydatatransfer_v1/classes.rb +886 -0
  101. data/generated/google/apis/bigquerydatatransfer_v1/representations.rb +343 -0
  102. data/generated/google/apis/bigquerydatatransfer_v1/service.rb +1317 -0
  103. data/generated/google/apis/blogger_v2.rb +34 -0
  104. data/generated/google/apis/blogger_v2/classes.rb +947 -0
  105. data/generated/google/apis/blogger_v2/representations.rb +465 -0
  106. data/generated/google/apis/blogger_v2/service.rb +424 -0
  107. data/generated/google/apis/calendar_v3.rb +1 -1
  108. data/generated/google/apis/calendar_v3/classes.rb +4 -207
  109. data/generated/google/apis/calendar_v3/representations.rb +0 -97
  110. data/generated/google/apis/calendar_v3/service.rb +8 -4
  111. data/generated/google/apis/classroom_v1.rb +27 -27
  112. data/generated/google/apis/classroom_v1/classes.rb +1037 -926
  113. data/generated/google/apis/classroom_v1/representations.rb +294 -244
  114. data/generated/google/apis/classroom_v1/service.rb +1114 -1109
  115. data/generated/google/apis/cloudbilling_v1.rb +1 -1
  116. data/generated/google/apis/cloudbilling_v1/classes.rb +473 -56
  117. data/generated/google/apis/cloudbilling_v1/representations.rb +176 -10
  118. data/generated/google/apis/cloudbilling_v1/service.rb +182 -89
  119. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  120. data/generated/google/apis/cloudbuild_v1/classes.rb +666 -625
  121. data/generated/google/apis/cloudbuild_v1/representations.rb +132 -116
  122. data/generated/google/apis/cloudbuild_v1/service.rb +158 -158
  123. data/generated/google/apis/clouddebugger_v2.rb +4 -4
  124. data/generated/google/apis/clouddebugger_v2/classes.rb +637 -639
  125. data/generated/google/apis/clouddebugger_v2/representations.rb +139 -139
  126. data/generated/google/apis/clouddebugger_v2/service.rb +157 -157
  127. data/generated/google/apis/clouderrorreporting_v1beta1.rb +1 -1
  128. data/generated/google/apis/clouderrorreporting_v1beta1/classes.rb +310 -310
  129. data/generated/google/apis/clouderrorreporting_v1beta1/representations.rb +77 -77
  130. data/generated/google/apis/clouderrorreporting_v1beta1/service.rb +144 -144
  131. data/generated/google/apis/cloudfunctions_v1.rb +4 -1
  132. data/generated/google/apis/cloudfunctions_v1/classes.rb +265 -6
  133. data/generated/google/apis/cloudfunctions_v1/representations.rb +80 -1
  134. data/generated/google/apis/cloudfunctions_v1/service.rb +118 -0
  135. data/generated/google/apis/cloudfunctions_v1beta2.rb +35 -0
  136. data/generated/google/apis/cloudfunctions_v1beta2/classes.rb +678 -0
  137. data/generated/google/apis/cloudfunctions_v1beta2/representations.rb +264 -0
  138. data/generated/google/apis/cloudfunctions_v1beta2/service.rb +385 -0
  139. data/generated/google/apis/cloudkms_v1.rb +1 -1
  140. data/generated/google/apis/cloudkms_v1/classes.rb +652 -622
  141. data/generated/google/apis/cloudkms_v1/representations.rb +138 -137
  142. data/generated/google/apis/cloudkms_v1/service.rb +320 -320
  143. data/generated/google/apis/cloudmonitoring_v2beta2.rb +1 -1
  144. data/generated/google/apis/cloudresourcemanager_v1.rb +4 -4
  145. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +1129 -1129
  146. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +188 -188
  147. data/generated/google/apis/cloudresourcemanager_v1/service.rb +609 -609
  148. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
  149. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +404 -404
  150. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +83 -83
  151. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +328 -328
  152. data/generated/google/apis/cloudresourcemanager_v2beta1.rb +38 -0
  153. data/generated/google/apis/cloudresourcemanager_v2beta1/classes.rb +819 -0
  154. data/generated/google/apis/cloudresourcemanager_v2beta1/representations.rb +304 -0
  155. data/generated/google/apis/cloudresourcemanager_v2beta1/service.rb +528 -0
  156. data/generated/google/apis/cloudtrace_v1.rb +5 -5
  157. data/generated/google/apis/cloudtrace_v1/classes.rb +67 -67
  158. data/generated/google/apis/cloudtrace_v1/representations.rb +21 -21
  159. data/generated/google/apis/cloudtrace_v1/service.rb +36 -36
  160. data/generated/google/apis/cloudtrace_v2.rb +43 -0
  161. data/generated/google/apis/cloudtrace_v2/classes.rb +797 -0
  162. data/generated/google/apis/cloudtrace_v2/representations.rb +353 -0
  163. data/generated/google/apis/cloudtrace_v2/service.rb +238 -0
  164. data/generated/google/apis/clouduseraccounts_alpha.rb +44 -0
  165. data/generated/google/apis/clouduseraccounts_alpha/classes.rb +1188 -0
  166. data/generated/google/apis/clouduseraccounts_alpha/representations.rb +494 -0
  167. data/generated/google/apis/clouduseraccounts_alpha/service.rb +1152 -0
  168. data/generated/google/apis/clouduseraccounts_vm_alpha.rb +44 -0
  169. data/generated/google/apis/clouduseraccounts_vm_alpha/classes.rb +1188 -0
  170. data/generated/google/apis/clouduseraccounts_vm_alpha/representations.rb +494 -0
  171. data/generated/google/apis/clouduseraccounts_vm_alpha/service.rb +1152 -0
  172. data/generated/google/apis/clouduseraccounts_vm_beta.rb +44 -0
  173. data/generated/google/apis/clouduseraccounts_vm_beta/classes.rb +845 -0
  174. data/generated/google/apis/clouduseraccounts_vm_beta/representations.rb +352 -0
  175. data/generated/google/apis/clouduseraccounts_vm_beta/service.rb +908 -0
  176. data/generated/google/apis/compute_alpha.rb +49 -0
  177. data/generated/google/apis/compute_alpha/classes.rb +23796 -0
  178. data/generated/google/apis/compute_alpha/representations.rb +9391 -0
  179. data/generated/google/apis/compute_alpha/service.rb +24188 -0
  180. data/generated/google/apis/compute_beta.rb +1 -1
  181. data/generated/google/apis/compute_beta/classes.rb +1597 -235
  182. data/generated/google/apis/compute_beta/representations.rb +477 -0
  183. data/generated/google/apis/compute_beta/service.rb +2875 -1677
  184. data/generated/google/apis/compute_v1.rb +1 -1
  185. data/generated/google/apis/compute_v1/classes.rb +319 -197
  186. data/generated/google/apis/compute_v1/representations.rb +51 -0
  187. data/generated/google/apis/compute_v1/service.rb +2057 -172
  188. data/generated/google/apis/consumersurveys_v2.rb +40 -0
  189. data/generated/google/apis/consumersurveys_v2/classes.rb +736 -0
  190. data/generated/google/apis/consumersurveys_v2/representations.rb +343 -0
  191. data/generated/google/apis/consumersurveys_v2/service.rb +478 -0
  192. data/generated/google/apis/container_v1.rb +1 -1
  193. data/generated/google/apis/container_v1/classes.rb +1072 -936
  194. data/generated/google/apis/container_v1/representations.rb +266 -202
  195. data/generated/google/apis/container_v1/service.rb +243 -243
  196. data/generated/google/apis/container_v1beta1.rb +35 -0
  197. data/generated/google/apis/container_v1beta1/classes.rb +1900 -0
  198. data/generated/google/apis/container_v1beta1/representations.rb +662 -0
  199. data/generated/google/apis/container_v1beta1/service.rb +1875 -0
  200. data/generated/google/apis/content_v2.rb +1 -1
  201. data/generated/google/apis/content_v2/classes.rb +72 -3
  202. data/generated/google/apis/content_v2/representations.rb +23 -0
  203. data/generated/google/apis/content_v2/service.rb +23 -18
  204. data/generated/google/apis/content_v2sandbox.rb +35 -0
  205. data/generated/google/apis/content_v2sandbox/classes.rb +2406 -0
  206. data/generated/google/apis/content_v2sandbox/representations.rb +1042 -0
  207. data/generated/google/apis/content_v2sandbox/service.rb +709 -0
  208. data/generated/google/apis/dataflow_v1b3.rb +5 -5
  209. data/generated/google/apis/dataflow_v1b3/classes.rb +3341 -3341
  210. data/generated/google/apis/dataflow_v1b3/representations.rb +807 -807
  211. data/generated/google/apis/dataflow_v1b3/service.rb +492 -444
  212. data/generated/google/apis/dataproc_v1.rb +1 -1
  213. data/generated/google/apis/dataproc_v1/classes.rb +1101 -1101
  214. data/generated/google/apis/dataproc_v1/representations.rb +227 -227
  215. data/generated/google/apis/dataproc_v1/service.rb +254 -254
  216. data/generated/google/apis/dataproc_v1beta2.rb +34 -0
  217. data/generated/google/apis/dataproc_v1beta2/classes.rb +1756 -0
  218. data/generated/google/apis/dataproc_v1beta2/representations.rb +675 -0
  219. data/generated/google/apis/dataproc_v1beta2/service.rb +739 -0
  220. data/generated/google/apis/datastore_v1.rb +4 -4
  221. data/generated/google/apis/datastore_v1/classes.rb +1311 -773
  222. data/generated/google/apis/datastore_v1/representations.rb +351 -148
  223. data/generated/google/apis/datastore_v1/service.rb +206 -55
  224. data/generated/google/apis/datastore_v1beta3.rb +38 -0
  225. data/generated/google/apis/datastore_v1beta3/classes.rb +1621 -0
  226. data/generated/google/apis/datastore_v1beta3/representations.rb +715 -0
  227. data/generated/google/apis/datastore_v1beta3/service.rb +260 -0
  228. data/generated/google/apis/deploymentmanager_alpha.rb +44 -0
  229. data/generated/google/apis/deploymentmanager_alpha/classes.rb +2422 -0
  230. data/generated/google/apis/deploymentmanager_alpha/representations.rb +1054 -0
  231. data/generated/google/apis/deploymentmanager_alpha/service.rb +1883 -0
  232. data/generated/google/apis/deploymentmanager_v2.rb +1 -1
  233. data/generated/google/apis/deploymentmanager_v2/classes.rb +81 -2
  234. data/generated/google/apis/deploymentmanager_v2/representations.rb +30 -0
  235. data/generated/google/apis/deploymentmanager_v2beta.rb +44 -0
  236. data/generated/google/apis/deploymentmanager_v2beta/classes.rb +2426 -0
  237. data/generated/google/apis/deploymentmanager_v2beta/representations.rb +1054 -0
  238. data/generated/google/apis/deploymentmanager_v2beta/service.rb +1687 -0
  239. data/generated/google/apis/dfareporting_v2_7.rb +1 -1
  240. data/generated/google/apis/dfareporting_v2_7/classes.rb +9 -26
  241. data/generated/google/apis/dfareporting_v2_7/service.rb +1 -0
  242. data/generated/google/apis/dfareporting_v2_8.rb +1 -1
  243. data/generated/google/apis/dfareporting_v2_8/classes.rb +26 -34
  244. data/generated/google/apis/dfareporting_v2_8/representations.rb +1 -0
  245. data/generated/google/apis/dfareporting_v2_8/service.rb +1 -0
  246. data/generated/google/apis/dlp_v2beta1.rb +36 -0
  247. data/generated/google/apis/dlp_v2beta1/classes.rb +1735 -0
  248. data/generated/google/apis/dlp_v2beta1/representations.rb +879 -0
  249. data/generated/google/apis/dlp_v2beta1/service.rb +406 -0
  250. data/generated/google/apis/dns_v1.rb +1 -1
  251. data/generated/google/apis/dns_v2beta1.rb +1 -1
  252. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  253. data/generated/google/apis/drive_v2.rb +1 -1
  254. data/generated/google/apis/drive_v3.rb +1 -1
  255. data/generated/google/apis/firebasedynamiclinks_v1.rb +1 -1
  256. data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +267 -261
  257. data/generated/google/apis/firebasedynamiclinks_v1/representations.rb +73 -72
  258. data/generated/google/apis/firebasedynamiclinks_v1/service.rb +1 -1
  259. data/generated/google/apis/firebaserules_v1.rb +1 -1
  260. data/generated/google/apis/firebaserules_v1/classes.rb +283 -283
  261. data/generated/google/apis/firebaserules_v1/representations.rb +75 -75
  262. data/generated/google/apis/firebaserules_v1/service.rb +113 -113
  263. data/generated/google/apis/fitness_v1.rb +1 -1
  264. data/generated/google/apis/fitness_v1/classes.rb +1 -1
  265. data/generated/google/apis/fusiontables_v1.rb +37 -0
  266. data/generated/google/apis/fusiontables_v1/classes.rb +977 -0
  267. data/generated/google/apis/fusiontables_v1/representations.rb +449 -0
  268. data/generated/google/apis/fusiontables_v1/service.rb +1373 -0
  269. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  270. data/generated/google/apis/games_management_v1management.rb +1 -1
  271. data/generated/google/apis/games_v1.rb +1 -1
  272. data/generated/google/apis/genomics_v1.rb +8 -8
  273. data/generated/google/apis/genomics_v1/classes.rb +2288 -2288
  274. data/generated/google/apis/genomics_v1/representations.rb +482 -482
  275. data/generated/google/apis/genomics_v1/service.rb +966 -966
  276. data/generated/google/apis/genomics_v1alpha2.rb +40 -0
  277. data/generated/google/apis/genomics_v1alpha2/classes.rb +1207 -0
  278. data/generated/google/apis/genomics_v1alpha2/representations.rb +449 -0
  279. data/generated/google/apis/genomics_v1alpha2/service.rb +426 -0
  280. data/generated/google/apis/gmail_v1.rb +1 -1
  281. data/generated/google/apis/iam_v1.rb +1 -1
  282. data/generated/google/apis/iam_v1/classes.rb +664 -395
  283. data/generated/google/apis/iam_v1/representations.rb +194 -81
  284. data/generated/google/apis/iam_v1/service.rb +657 -92
  285. data/generated/google/apis/identitytoolkit_v3.rb +1 -1
  286. data/generated/google/apis/kgsearch_v1/classes.rb +7 -7
  287. data/generated/google/apis/kgsearch_v1/representations.rb +1 -1
  288. data/generated/google/apis/kgsearch_v1/service.rb +8 -8
  289. data/generated/google/apis/language_v1.rb +4 -1
  290. data/generated/google/apis/language_v1/classes.rb +393 -393
  291. data/generated/google/apis/language_v1/representations.rb +95 -95
  292. data/generated/google/apis/language_v1/service.rb +42 -42
  293. data/generated/google/apis/language_v1beta1.rb +4 -1
  294. data/generated/google/apis/language_v1beta1/classes.rb +457 -457
  295. data/generated/google/apis/language_v1beta1/representations.rb +114 -114
  296. data/generated/google/apis/language_v1beta1/service.rb +48 -48
  297. data/generated/google/apis/language_v1beta2.rb +39 -0
  298. data/generated/google/apis/language_v1beta2/classes.rb +824 -0
  299. data/generated/google/apis/language_v1beta2/representations.rb +373 -0
  300. data/generated/google/apis/language_v1beta2/service.rb +217 -0
  301. data/generated/google/apis/logging_v2.rb +9 -9
  302. data/generated/google/apis/logging_v2/classes.rb +840 -834
  303. data/generated/google/apis/logging_v2/representations.rb +168 -167
  304. data/generated/google/apis/logging_v2/service.rb +667 -463
  305. data/generated/google/apis/logging_v2beta1.rb +9 -9
  306. data/generated/google/apis/logging_v2beta1/classes.rb +856 -850
  307. data/generated/google/apis/logging_v2beta1/representations.rb +169 -168
  308. data/generated/google/apis/logging_v2beta1/service.rb +253 -255
  309. data/generated/google/apis/manufacturers_v1.rb +1 -1
  310. data/generated/google/apis/manufacturers_v1/classes.rb +396 -389
  311. data/generated/google/apis/manufacturers_v1/representations.rb +92 -91
  312. data/generated/google/apis/manufacturers_v1/service.rb +8 -7
  313. data/generated/google/apis/ml_v1.rb +1 -1
  314. data/generated/google/apis/ml_v1/classes.rb +1487 -1676
  315. data/generated/google/apis/ml_v1/representations.rb +229 -299
  316. data/generated/google/apis/ml_v1/service.rb +359 -253
  317. data/generated/google/apis/ml_v1beta1.rb +34 -0
  318. data/generated/google/apis/ml_v1beta1/classes.rb +2396 -0
  319. data/generated/google/apis/ml_v1beta1/representations.rb +755 -0
  320. data/generated/google/apis/ml_v1beta1/service.rb +975 -0
  321. data/generated/google/apis/monitoring_v3.rb +6 -6
  322. data/generated/google/apis/monitoring_v3/classes.rb +834 -834
  323. data/generated/google/apis/monitoring_v3/representations.rb +168 -168
  324. data/generated/google/apis/monitoring_v3/service.rb +330 -330
  325. data/generated/google/apis/mybusiness_v3/classes.rb +1181 -1181
  326. data/generated/google/apis/mybusiness_v3/representations.rb +242 -242
  327. data/generated/google/apis/mybusiness_v3/service.rb +241 -241
  328. data/generated/google/apis/oauth2_v1.rb +43 -0
  329. data/generated/google/apis/oauth2_v1/classes.rb +321 -0
  330. data/generated/google/apis/oauth2_v1/representations.rb +135 -0
  331. data/generated/google/apis/oauth2_v1/service.rb +337 -0
  332. data/generated/google/apis/oauth2_v2.rb +1 -1
  333. data/generated/google/apis/oslogin_v1alpha.rb +37 -0
  334. data/generated/google/apis/oslogin_v1alpha/classes.rb +200 -0
  335. data/generated/google/apis/oslogin_v1alpha/representations.rb +105 -0
  336. data/generated/google/apis/oslogin_v1alpha/service.rb +228 -0
  337. data/generated/google/apis/pagespeedonline_v1.rb +32 -0
  338. data/generated/google/apis/pagespeedonline_v1/classes.rb +536 -0
  339. data/generated/google/apis/pagespeedonline_v1/representations.rb +257 -0
  340. data/generated/google/apis/pagespeedonline_v1/service.rb +120 -0
  341. data/generated/google/apis/partners_v2.rb +1 -1
  342. data/generated/google/apis/partners_v2/classes.rb +1512 -1512
  343. data/generated/google/apis/partners_v2/representations.rb +368 -368
  344. data/generated/google/apis/partners_v2/service.rb +596 -596
  345. data/generated/google/apis/people_v1.rb +15 -15
  346. data/generated/google/apis/people_v1/classes.rb +1384 -1383
  347. data/generated/google/apis/people_v1/representations.rb +311 -311
  348. data/generated/google/apis/people_v1/service.rb +208 -202
  349. data/generated/google/apis/playcustomapp_v1.rb +34 -0
  350. data/generated/google/apis/playcustomapp_v1/classes.rb +51 -0
  351. data/generated/google/apis/playcustomapp_v1/representations.rb +40 -0
  352. data/generated/google/apis/playcustomapp_v1/service.rb +114 -0
  353. data/generated/google/apis/playmoviespartner_v1.rb +34 -0
  354. data/generated/google/apis/playmoviespartner_v1/classes.rb +782 -0
  355. data/generated/google/apis/playmoviespartner_v1/representations.rb +191 -0
  356. data/generated/google/apis/playmoviespartner_v1/service.rb +354 -0
  357. data/generated/google/apis/plus_domains_v1.rb +1 -1
  358. data/generated/google/apis/plus_v1.rb +1 -1
  359. data/generated/google/apis/prediction_v1_2.rb +44 -0
  360. data/generated/google/apis/prediction_v1_2/classes.rb +237 -0
  361. data/generated/google/apis/prediction_v1_2/representations.rb +133 -0
  362. data/generated/google/apis/prediction_v1_2/service.rb +287 -0
  363. data/generated/google/apis/prediction_v1_3.rb +44 -0
  364. data/generated/google/apis/prediction_v1_3/classes.rb +286 -0
  365. data/generated/google/apis/prediction_v1_3/representations.rb +139 -0
  366. data/generated/google/apis/prediction_v1_3/service.rb +284 -0
  367. data/generated/google/apis/prediction_v1_4.rb +44 -0
  368. data/generated/google/apis/prediction_v1_4/classes.rb +336 -0
  369. data/generated/google/apis/prediction_v1_4/representations.rb +158 -0
  370. data/generated/google/apis/prediction_v1_4/service.rb +284 -0
  371. data/generated/google/apis/prediction_v1_5.rb +44 -0
  372. data/generated/google/apis/prediction_v1_5/classes.rb +708 -0
  373. data/generated/google/apis/prediction_v1_5/representations.rb +352 -0
  374. data/generated/google/apis/prediction_v1_5/service.rb +357 -0
  375. data/generated/google/apis/proximitybeacon_v1beta1.rb +1 -1
  376. data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +539 -539
  377. data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +105 -105
  378. data/generated/google/apis/proximitybeacon_v1beta1/service.rb +312 -312
  379. data/generated/google/apis/pubsub_v1.rb +4 -4
  380. data/generated/google/apis/pubsub_v1/classes.rb +352 -352
  381. data/generated/google/apis/pubsub_v1/representations.rb +77 -77
  382. data/generated/google/apis/pubsub_v1/service.rb +346 -346
  383. data/generated/google/apis/pubsub_v1beta1a.rb +37 -0
  384. data/generated/google/apis/pubsub_v1beta1a/classes.rb +605 -0
  385. data/generated/google/apis/pubsub_v1beta1a/representations.rb +306 -0
  386. data/generated/google/apis/pubsub_v1beta1a/service.rb +549 -0
  387. data/generated/google/apis/pubsub_v1beta2.rb +37 -0
  388. data/generated/google/apis/pubsub_v1beta2/classes.rb +679 -0
  389. data/generated/google/apis/pubsub_v1beta2/representations.rb +324 -0
  390. data/generated/google/apis/pubsub_v1beta2/service.rb +779 -0
  391. data/generated/google/apis/replicapool_v1beta1.rb +50 -0
  392. data/generated/google/apis/replicapool_v1beta1/classes.rb +918 -0
  393. data/generated/google/apis/replicapool_v1beta1/representations.rb +409 -0
  394. data/generated/google/apis/replicapool_v1beta1/service.rb +511 -0
  395. data/generated/google/apis/resourceviews_v1beta1.rb +50 -0
  396. data/generated/google/apis/resourceviews_v1beta1/classes.rb +338 -0
  397. data/generated/google/apis/resourceviews_v1beta1/representations.rb +201 -0
  398. data/generated/google/apis/resourceviews_v1beta1/service.rb +667 -0
  399. data/generated/google/apis/runtimeconfig_v1.rb +4 -4
  400. data/generated/google/apis/runtimeconfig_v1/classes.rb +118 -118
  401. data/generated/google/apis/runtimeconfig_v1/representations.rb +18 -18
  402. data/generated/google/apis/runtimeconfig_v1/service.rb +21 -21
  403. data/generated/google/apis/runtimeconfig_v1beta1.rb +40 -0
  404. data/generated/google/apis/runtimeconfig_v1beta1/classes.rb +805 -0
  405. data/generated/google/apis/runtimeconfig_v1beta1/representations.rb +280 -0
  406. data/generated/google/apis/runtimeconfig_v1beta1/service.rb +903 -0
  407. data/generated/google/apis/safebrowsing_v4.rb +32 -0
  408. data/generated/google/apis/safebrowsing_v4/classes.rb +771 -0
  409. data/generated/google/apis/safebrowsing_v4/representations.rb +379 -0
  410. data/generated/google/apis/safebrowsing_v4/service.rb +252 -0
  411. data/generated/google/apis/script_v1.rb +19 -19
  412. data/generated/google/apis/script_v1/classes.rb +99 -157
  413. data/generated/google/apis/script_v1/representations.rb +17 -47
  414. data/generated/google/apis/script_v1/service.rb +12 -12
  415. data/generated/google/apis/searchconsole_v1.rb +1 -1
  416. data/generated/google/apis/searchconsole_v1/classes.rb +84 -84
  417. data/generated/google/apis/searchconsole_v1/representations.rb +32 -32
  418. data/generated/google/apis/servicecontrol_v1.rb +4 -4
  419. data/generated/google/apis/servicecontrol_v1/classes.rb +1086 -1042
  420. data/generated/google/apis/servicecontrol_v1/representations.rb +216 -200
  421. data/generated/google/apis/servicecontrol_v1/service.rb +120 -114
  422. data/generated/google/apis/servicemanagement_v1.rb +7 -7
  423. data/generated/google/apis/servicemanagement_v1/classes.rb +3375 -3383
  424. data/generated/google/apis/servicemanagement_v1/representations.rb +551 -552
  425. data/generated/google/apis/servicemanagement_v1/service.rb +386 -386
  426. data/generated/google/apis/serviceuser_v1.rb +5 -5
  427. data/generated/google/apis/serviceuser_v1/classes.rb +2667 -2598
  428. data/generated/google/apis/serviceuser_v1/representations.rb +406 -389
  429. data/generated/google/apis/serviceuser_v1/service.rb +43 -43
  430. data/generated/google/apis/sheets_v4.rb +7 -7
  431. data/generated/google/apis/sheets_v4/classes.rb +5031 -5024
  432. data/generated/google/apis/sheets_v4/representations.rb +931 -930
  433. data/generated/google/apis/sheets_v4/service.rb +244 -244
  434. data/generated/google/apis/slides_v1.rb +10 -10
  435. data/generated/google/apis/slides_v1/classes.rb +2915 -2915
  436. data/generated/google/apis/slides_v1/representations.rb +698 -698
  437. data/generated/google/apis/slides_v1/service.rb +35 -35
  438. data/generated/google/apis/sourcerepo_v1.rb +3 -3
  439. data/generated/google/apis/sourcerepo_v1/classes.rb +313 -313
  440. data/generated/google/apis/sourcerepo_v1/representations.rb +77 -77
  441. data/generated/google/apis/sourcerepo_v1/service.rb +102 -102
  442. data/generated/google/apis/spanner_v1.rb +4 -4
  443. data/generated/google/apis/spanner_v1/classes.rb +2304 -2251
  444. data/generated/google/apis/spanner_v1/representations.rb +338 -323
  445. data/generated/google/apis/spanner_v1/service.rb +689 -689
  446. data/generated/google/apis/spectrum_v1explorer.rb +31 -0
  447. data/generated/google/apis/spectrum_v1explorer/classes.rb +1612 -0
  448. data/generated/google/apis/spectrum_v1explorer/representations.rb +611 -0
  449. data/generated/google/apis/spectrum_v1explorer/service.rb +285 -0
  450. data/generated/google/apis/speech_v1.rb +34 -0
  451. data/generated/google/apis/speech_v1/classes.rb +572 -0
  452. data/generated/google/apis/speech_v1/representations.rb +236 -0
  453. data/generated/google/apis/speech_v1/service.rb +277 -0
  454. data/generated/google/apis/speech_v1beta1.rb +1 -1
  455. data/generated/google/apis/speech_v1beta1/classes.rb +312 -312
  456. data/generated/google/apis/speech_v1beta1/representations.rb +48 -48
  457. data/generated/google/apis/speech_v1beta1/service.rb +46 -46
  458. data/generated/google/apis/sqladmin_v1beta3.rb +38 -0
  459. data/generated/google/apis/sqladmin_v1beta3/classes.rb +1615 -0
  460. data/generated/google/apis/sqladmin_v1beta3/representations.rb +731 -0
  461. data/generated/google/apis/sqladmin_v1beta3/service.rb +1045 -0
  462. data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
  463. data/generated/google/apis/sqladmin_v1beta4/classes.rb +15 -7
  464. data/generated/google/apis/sqladmin_v1beta4/representations.rb +1 -0
  465. data/generated/google/apis/storage_v1.rb +1 -1
  466. data/generated/google/apis/storage_v1/classes.rb +7 -6
  467. data/generated/google/apis/storage_v1/service.rb +51 -29
  468. data/generated/google/apis/storage_v1beta1.rb +40 -0
  469. data/generated/google/apis/storage_v1beta1/classes.rb +616 -0
  470. data/generated/google/apis/storage_v1beta1/representations.rb +249 -0
  471. data/generated/google/apis/storage_v1beta1/service.rb +1082 -0
  472. data/generated/google/apis/storage_v1beta2.rb +40 -0
  473. data/generated/google/apis/storage_v1beta2/classes.rb +1048 -0
  474. data/generated/google/apis/storage_v1beta2/representations.rb +425 -0
  475. data/generated/google/apis/storage_v1beta2/service.rb +1736 -0
  476. data/generated/google/apis/storagetransfer_v1.rb +1 -1
  477. data/generated/google/apis/storagetransfer_v1/classes.rb +556 -556
  478. data/generated/google/apis/storagetransfer_v1/representations.rb +139 -139
  479. data/generated/google/apis/storagetransfer_v1/service.rb +148 -148
  480. data/generated/google/apis/streetviewpublish_v1.rb +36 -0
  481. data/generated/google/apis/streetviewpublish_v1/classes.rb +705 -0
  482. data/generated/google/apis/streetviewpublish_v1/representations.rb +296 -0
  483. data/generated/google/apis/streetviewpublish_v1/service.rb +485 -0
  484. data/generated/google/apis/taskqueue_v1beta1.rb +37 -0
  485. data/generated/google/apis/taskqueue_v1beta1/classes.rb +242 -0
  486. data/generated/google/apis/taskqueue_v1beta1/representations.rb +124 -0
  487. data/generated/google/apis/taskqueue_v1beta1/service.rb +269 -0
  488. data/generated/google/apis/toolresults_v1beta3.rb +1 -1
  489. data/generated/google/apis/toolresults_v1beta3/classes.rb +382 -4
  490. data/generated/google/apis/toolresults_v1beta3/representations.rb +139 -0
  491. data/generated/google/apis/toolresults_v1beta3/service.rb +50 -0
  492. data/generated/google/apis/toolresults_v1beta3firstparty.rb +31 -0
  493. data/generated/google/apis/toolresults_v1beta3firstparty/classes.rb +2630 -0
  494. data/generated/google/apis/toolresults_v1beta3firstparty/representations.rb +886 -0
  495. data/generated/google/apis/toolresults_v1beta3firstparty/service.rb +1288 -0
  496. data/generated/google/apis/translate_v2/classes.rb +111 -111
  497. data/generated/google/apis/translate_v2/representations.rb +49 -49
  498. data/generated/google/apis/translate_v2/service.rb +94 -94
  499. data/generated/google/apis/vault_v1.rb +31 -0
  500. data/generated/google/apis/vault_v1/classes.rb +554 -0
  501. data/generated/google/apis/vault_v1/representations.rb +318 -0
  502. data/generated/google/apis/vault_v1/service.rb +677 -0
  503. data/generated/google/apis/videointelligence_v1beta1.rb +34 -0
  504. data/generated/google/apis/videointelligence_v1beta1/classes.rb +903 -0
  505. data/generated/google/apis/videointelligence_v1beta1/representations.rb +351 -0
  506. data/generated/google/apis/videointelligence_v1beta1/service.rb +92 -0
  507. data/generated/google/apis/vision_v1.rb +4 -4
  508. data/generated/google/apis/vision_v1/classes.rb +1176 -1178
  509. data/generated/google/apis/vision_v1/representations.rb +235 -235
  510. data/generated/google/apis/webmasters_v3.rb +1 -1
  511. data/generated/google/apis/youtube_analytics_v1.rb +1 -1
  512. data/generated/google/apis/youtube_analytics_v1beta1.rb +46 -0
  513. data/generated/google/apis/youtube_analytics_v1beta1/classes.rb +337 -0
  514. data/generated/google/apis/youtube_analytics_v1beta1/representations.rb +174 -0
  515. data/generated/google/apis/youtube_analytics_v1beta1/service.rb +491 -0
  516. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  517. data/generated/google/apis/youtube_partner_v1/classes.rb +3 -3
  518. data/generated/google/apis/youtube_partner_v1/representations.rb +1 -1
  519. data/generated/google/apis/youtubereporting_v1.rb +4 -4
  520. data/generated/google/apis/youtubereporting_v1/classes.rb +134 -134
  521. data/generated/google/apis/youtubereporting_v1/representations.rb +36 -36
  522. data/generated/google/apis/youtubereporting_v1/service.rb +131 -131
  523. data/lib/google/apis/version.rb +1 -1
  524. metadata +246 -2
@@ -0,0 +1,449 @@
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 'date'
16
+ require 'google/apis/core/base_service'
17
+ require 'google/apis/core/json_representation'
18
+ require 'google/apis/core/hashable'
19
+ require 'google/apis/errors'
20
+
21
+ module Google
22
+ module Apis
23
+ module FusiontablesV1
24
+
25
+ class Bucket
26
+ class Representation < Google::Apis::Core::JsonRepresentation; end
27
+
28
+ include Google::Apis::Core::JsonObjectSupport
29
+ end
30
+
31
+ class Column
32
+ class Representation < Google::Apis::Core::JsonRepresentation; end
33
+
34
+ class BaseColumn
35
+ class Representation < Google::Apis::Core::JsonRepresentation; end
36
+
37
+ include Google::Apis::Core::JsonObjectSupport
38
+ end
39
+
40
+ include Google::Apis::Core::JsonObjectSupport
41
+ end
42
+
43
+ class ColumnList
44
+ class Representation < Google::Apis::Core::JsonRepresentation; end
45
+
46
+ include Google::Apis::Core::JsonObjectSupport
47
+ end
48
+
49
+ class Geometry
50
+ class Representation < Google::Apis::Core::JsonRepresentation; end
51
+
52
+ include Google::Apis::Core::JsonObjectSupport
53
+ end
54
+
55
+ class Import
56
+ class Representation < Google::Apis::Core::JsonRepresentation; end
57
+
58
+ include Google::Apis::Core::JsonObjectSupport
59
+ end
60
+
61
+ class Line
62
+ class Representation < Google::Apis::Core::JsonRepresentation; end
63
+
64
+ include Google::Apis::Core::JsonObjectSupport
65
+ end
66
+
67
+ class LineStyle
68
+ class Representation < Google::Apis::Core::JsonRepresentation; end
69
+
70
+ include Google::Apis::Core::JsonObjectSupport
71
+ end
72
+
73
+ class Point
74
+ class Representation < Google::Apis::Core::JsonRepresentation; end
75
+
76
+ include Google::Apis::Core::JsonObjectSupport
77
+ end
78
+
79
+ class PointStyle
80
+ class Representation < Google::Apis::Core::JsonRepresentation; end
81
+
82
+ include Google::Apis::Core::JsonObjectSupport
83
+ end
84
+
85
+ class Polygon
86
+ class Representation < Google::Apis::Core::JsonRepresentation; end
87
+
88
+ include Google::Apis::Core::JsonObjectSupport
89
+ end
90
+
91
+ class PolygonStyle
92
+ class Representation < Google::Apis::Core::JsonRepresentation; end
93
+
94
+ include Google::Apis::Core::JsonObjectSupport
95
+ end
96
+
97
+ class Sqlresponse
98
+ class Representation < Google::Apis::Core::JsonRepresentation; end
99
+
100
+ include Google::Apis::Core::JsonObjectSupport
101
+ end
102
+
103
+ class StyleFunction
104
+ class Representation < Google::Apis::Core::JsonRepresentation; end
105
+
106
+ class Gradient
107
+ class Representation < Google::Apis::Core::JsonRepresentation; end
108
+
109
+ class Color
110
+ class Representation < Google::Apis::Core::JsonRepresentation; end
111
+
112
+ include Google::Apis::Core::JsonObjectSupport
113
+ end
114
+
115
+ include Google::Apis::Core::JsonObjectSupport
116
+ end
117
+
118
+ include Google::Apis::Core::JsonObjectSupport
119
+ end
120
+
121
+ class StyleSetting
122
+ class Representation < Google::Apis::Core::JsonRepresentation; end
123
+
124
+ include Google::Apis::Core::JsonObjectSupport
125
+ end
126
+
127
+ class StyleSettingList
128
+ class Representation < Google::Apis::Core::JsonRepresentation; end
129
+
130
+ include Google::Apis::Core::JsonObjectSupport
131
+ end
132
+
133
+ class Table
134
+ class Representation < Google::Apis::Core::JsonRepresentation; end
135
+
136
+ include Google::Apis::Core::JsonObjectSupport
137
+ end
138
+
139
+ class TableList
140
+ class Representation < Google::Apis::Core::JsonRepresentation; end
141
+
142
+ include Google::Apis::Core::JsonObjectSupport
143
+ end
144
+
145
+ class Task
146
+ class Representation < Google::Apis::Core::JsonRepresentation; end
147
+
148
+ include Google::Apis::Core::JsonObjectSupport
149
+ end
150
+
151
+ class TaskList
152
+ class Representation < Google::Apis::Core::JsonRepresentation; end
153
+
154
+ include Google::Apis::Core::JsonObjectSupport
155
+ end
156
+
157
+ class Template
158
+ class Representation < Google::Apis::Core::JsonRepresentation; end
159
+
160
+ include Google::Apis::Core::JsonObjectSupport
161
+ end
162
+
163
+ class TemplateList
164
+ class Representation < Google::Apis::Core::JsonRepresentation; end
165
+
166
+ include Google::Apis::Core::JsonObjectSupport
167
+ end
168
+
169
+ class Bucket
170
+ # @private
171
+ class Representation < Google::Apis::Core::JsonRepresentation
172
+ property :color, as: 'color'
173
+ property :icon, as: 'icon'
174
+ property :max, as: 'max'
175
+ property :min, as: 'min'
176
+ property :opacity, as: 'opacity'
177
+ property :weight, as: 'weight'
178
+ end
179
+ end
180
+
181
+ class Column
182
+ # @private
183
+ class Representation < Google::Apis::Core::JsonRepresentation
184
+ property :base_column, as: 'baseColumn', class: Google::Apis::FusiontablesV1::Column::BaseColumn, decorator: Google::Apis::FusiontablesV1::Column::BaseColumn::Representation
185
+
186
+ property :column_id, as: 'columnId'
187
+ property :description, as: 'description'
188
+ property :graph_predicate, as: 'graph_predicate'
189
+ property :kind, as: 'kind'
190
+ property :name, as: 'name'
191
+ property :type, as: 'type'
192
+ end
193
+
194
+ class BaseColumn
195
+ # @private
196
+ class Representation < Google::Apis::Core::JsonRepresentation
197
+ property :column_id, as: 'columnId'
198
+ property :table_index, as: 'tableIndex'
199
+ end
200
+ end
201
+ end
202
+
203
+ class ColumnList
204
+ # @private
205
+ class Representation < Google::Apis::Core::JsonRepresentation
206
+ collection :items, as: 'items', class: Google::Apis::FusiontablesV1::Column, decorator: Google::Apis::FusiontablesV1::Column::Representation
207
+
208
+ property :kind, as: 'kind'
209
+ property :next_page_token, as: 'nextPageToken'
210
+ property :total_items, as: 'totalItems'
211
+ end
212
+ end
213
+
214
+ class Geometry
215
+ # @private
216
+ class Representation < Google::Apis::Core::JsonRepresentation
217
+ collection :geometries, as: 'geometries'
218
+ property :geometry, as: 'geometry'
219
+ property :type, as: 'type'
220
+ end
221
+ end
222
+
223
+ class Import
224
+ # @private
225
+ class Representation < Google::Apis::Core::JsonRepresentation
226
+ property :kind, as: 'kind'
227
+ property :num_rows_received, :numeric_string => true, as: 'numRowsReceived'
228
+ end
229
+ end
230
+
231
+ class Line
232
+ # @private
233
+ class Representation < Google::Apis::Core::JsonRepresentation
234
+ collection :coordinates, as: 'coordinates', :class => Array do
235
+ include Representable::JSON::Collection
236
+ items
237
+ end
238
+
239
+ property :type, as: 'type'
240
+ end
241
+ end
242
+
243
+ class LineStyle
244
+ # @private
245
+ class Representation < Google::Apis::Core::JsonRepresentation
246
+ property :stroke_color, as: 'strokeColor'
247
+ property :stroke_color_styler, as: 'strokeColorStyler', class: Google::Apis::FusiontablesV1::StyleFunction, decorator: Google::Apis::FusiontablesV1::StyleFunction::Representation
248
+
249
+ property :stroke_opacity, as: 'strokeOpacity'
250
+ property :stroke_weight, as: 'strokeWeight'
251
+ property :stroke_weight_styler, as: 'strokeWeightStyler', class: Google::Apis::FusiontablesV1::StyleFunction, decorator: Google::Apis::FusiontablesV1::StyleFunction::Representation
252
+
253
+ end
254
+ end
255
+
256
+ class Point
257
+ # @private
258
+ class Representation < Google::Apis::Core::JsonRepresentation
259
+ collection :coordinates, as: 'coordinates'
260
+ property :type, as: 'type'
261
+ end
262
+ end
263
+
264
+ class PointStyle
265
+ # @private
266
+ class Representation < Google::Apis::Core::JsonRepresentation
267
+ property :icon_name, as: 'iconName'
268
+ property :icon_styler, as: 'iconStyler', class: Google::Apis::FusiontablesV1::StyleFunction, decorator: Google::Apis::FusiontablesV1::StyleFunction::Representation
269
+
270
+ end
271
+ end
272
+
273
+ class Polygon
274
+ # @private
275
+ class Representation < Google::Apis::Core::JsonRepresentation
276
+ collection :coordinates, as: 'coordinates', :class => Array do
277
+ include Representable::JSON::Collection
278
+ items :class => Array do
279
+ include Representable::JSON::Collection
280
+ items
281
+ end
282
+
283
+ end
284
+
285
+ property :type, as: 'type'
286
+ end
287
+ end
288
+
289
+ class PolygonStyle
290
+ # @private
291
+ class Representation < Google::Apis::Core::JsonRepresentation
292
+ property :fill_color, as: 'fillColor'
293
+ property :fill_color_styler, as: 'fillColorStyler', class: Google::Apis::FusiontablesV1::StyleFunction, decorator: Google::Apis::FusiontablesV1::StyleFunction::Representation
294
+
295
+ property :fill_opacity, as: 'fillOpacity'
296
+ property :stroke_color, as: 'strokeColor'
297
+ property :stroke_color_styler, as: 'strokeColorStyler', class: Google::Apis::FusiontablesV1::StyleFunction, decorator: Google::Apis::FusiontablesV1::StyleFunction::Representation
298
+
299
+ property :stroke_opacity, as: 'strokeOpacity'
300
+ property :stroke_weight, as: 'strokeWeight'
301
+ property :stroke_weight_styler, as: 'strokeWeightStyler', class: Google::Apis::FusiontablesV1::StyleFunction, decorator: Google::Apis::FusiontablesV1::StyleFunction::Representation
302
+
303
+ end
304
+ end
305
+
306
+ class Sqlresponse
307
+ # @private
308
+ class Representation < Google::Apis::Core::JsonRepresentation
309
+ collection :columns, as: 'columns'
310
+ property :kind, as: 'kind'
311
+ collection :rows, as: 'rows', :class => Array do
312
+ include Representable::JSON::Collection
313
+ items
314
+ end
315
+
316
+ end
317
+ end
318
+
319
+ class StyleFunction
320
+ # @private
321
+ class Representation < Google::Apis::Core::JsonRepresentation
322
+ collection :buckets, as: 'buckets', class: Google::Apis::FusiontablesV1::Bucket, decorator: Google::Apis::FusiontablesV1::Bucket::Representation
323
+
324
+ property :column_name, as: 'columnName'
325
+ property :gradient, as: 'gradient', class: Google::Apis::FusiontablesV1::StyleFunction::Gradient, decorator: Google::Apis::FusiontablesV1::StyleFunction::Gradient::Representation
326
+
327
+ property :kind, as: 'kind'
328
+ end
329
+
330
+ class Gradient
331
+ # @private
332
+ class Representation < Google::Apis::Core::JsonRepresentation
333
+ collection :colors, as: 'colors', class: Google::Apis::FusiontablesV1::StyleFunction::Gradient::Color, decorator: Google::Apis::FusiontablesV1::StyleFunction::Gradient::Color::Representation
334
+
335
+ property :max, as: 'max'
336
+ property :min, as: 'min'
337
+ end
338
+
339
+ class Color
340
+ # @private
341
+ class Representation < Google::Apis::Core::JsonRepresentation
342
+ property :color, as: 'color'
343
+ property :opacity, as: 'opacity'
344
+ end
345
+ end
346
+ end
347
+ end
348
+
349
+ class StyleSetting
350
+ # @private
351
+ class Representation < Google::Apis::Core::JsonRepresentation
352
+ property :kind, as: 'kind'
353
+ property :marker_options, as: 'markerOptions', class: Google::Apis::FusiontablesV1::PointStyle, decorator: Google::Apis::FusiontablesV1::PointStyle::Representation
354
+
355
+ property :name, as: 'name'
356
+ property :polygon_options, as: 'polygonOptions', class: Google::Apis::FusiontablesV1::PolygonStyle, decorator: Google::Apis::FusiontablesV1::PolygonStyle::Representation
357
+
358
+ property :polyline_options, as: 'polylineOptions', class: Google::Apis::FusiontablesV1::LineStyle, decorator: Google::Apis::FusiontablesV1::LineStyle::Representation
359
+
360
+ property :style_id, as: 'styleId'
361
+ property :table_id, as: 'tableId'
362
+ end
363
+ end
364
+
365
+ class StyleSettingList
366
+ # @private
367
+ class Representation < Google::Apis::Core::JsonRepresentation
368
+ collection :items, as: 'items', class: Google::Apis::FusiontablesV1::StyleSetting, decorator: Google::Apis::FusiontablesV1::StyleSetting::Representation
369
+
370
+ property :kind, as: 'kind'
371
+ property :next_page_token, as: 'nextPageToken'
372
+ property :total_items, as: 'totalItems'
373
+ end
374
+ end
375
+
376
+ class Table
377
+ # @private
378
+ class Representation < Google::Apis::Core::JsonRepresentation
379
+ property :attribution, as: 'attribution'
380
+ property :attribution_link, as: 'attributionLink'
381
+ collection :base_table_ids, as: 'baseTableIds'
382
+ collection :columns, as: 'columns', class: Google::Apis::FusiontablesV1::Column, decorator: Google::Apis::FusiontablesV1::Column::Representation
383
+
384
+ property :description, as: 'description'
385
+ property :is_exportable, as: 'isExportable'
386
+ property :kind, as: 'kind'
387
+ property :name, as: 'name'
388
+ property :sql, as: 'sql'
389
+ property :table_id, as: 'tableId'
390
+ end
391
+ end
392
+
393
+ class TableList
394
+ # @private
395
+ class Representation < Google::Apis::Core::JsonRepresentation
396
+ collection :items, as: 'items', class: Google::Apis::FusiontablesV1::Table, decorator: Google::Apis::FusiontablesV1::Table::Representation
397
+
398
+ property :kind, as: 'kind'
399
+ property :next_page_token, as: 'nextPageToken'
400
+ end
401
+ end
402
+
403
+ class Task
404
+ # @private
405
+ class Representation < Google::Apis::Core::JsonRepresentation
406
+ property :kind, as: 'kind'
407
+ property :progress, as: 'progress'
408
+ property :started, as: 'started'
409
+ property :task_id, :numeric_string => true, as: 'taskId'
410
+ property :type, as: 'type'
411
+ end
412
+ end
413
+
414
+ class TaskList
415
+ # @private
416
+ class Representation < Google::Apis::Core::JsonRepresentation
417
+ collection :items, as: 'items', class: Google::Apis::FusiontablesV1::Task, decorator: Google::Apis::FusiontablesV1::Task::Representation
418
+
419
+ property :kind, as: 'kind'
420
+ property :next_page_token, as: 'nextPageToken'
421
+ property :total_items, as: 'totalItems'
422
+ end
423
+ end
424
+
425
+ class Template
426
+ # @private
427
+ class Representation < Google::Apis::Core::JsonRepresentation
428
+ collection :automatic_column_names, as: 'automaticColumnNames'
429
+ property :body, as: 'body'
430
+ property :kind, as: 'kind'
431
+ property :name, as: 'name'
432
+ property :table_id, as: 'tableId'
433
+ property :template_id, as: 'templateId'
434
+ end
435
+ end
436
+
437
+ class TemplateList
438
+ # @private
439
+ class Representation < Google::Apis::Core::JsonRepresentation
440
+ collection :items, as: 'items', class: Google::Apis::FusiontablesV1::Template, decorator: Google::Apis::FusiontablesV1::Template::Representation
441
+
442
+ property :kind, as: 'kind'
443
+ property :next_page_token, as: 'nextPageToken'
444
+ property :total_items, as: 'totalItems'
445
+ end
446
+ end
447
+ end
448
+ end
449
+ end
@@ -0,0 +1,1373 @@
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 FusiontablesV1
23
+ # Fusion Tables API
24
+ #
25
+ # API for working with Fusion Tables data.
26
+ #
27
+ # @example
28
+ # require 'google/apis/fusiontables_v1'
29
+ #
30
+ # Fusiontables = Google::Apis::FusiontablesV1 # Alias the module
31
+ # service = Fusiontables::FusiontablesService.new
32
+ #
33
+ # @see https://developers.google.com/fusiontables
34
+ class FusiontablesService < Google::Apis::Core::BaseService
35
+ # @return [String]
36
+ # API key. Your API key identifies your project and provides you with API access,
37
+ # quota, and reports. Required unless you provide an OAuth 2.0 token.
38
+ attr_accessor :key
39
+
40
+ # @return [String]
41
+ # Available to use for quota purposes for server-side applications. Can be any
42
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
43
+ # Overrides userIp if both are provided.
44
+ attr_accessor :quota_user
45
+
46
+ # @return [String]
47
+ # IP address of the site where the request originates. Use this if you want to
48
+ # enforce per-user limits.
49
+ attr_accessor :user_ip
50
+
51
+ def initialize
52
+ super('https://www.googleapis.com/', 'fusiontables/v1/')
53
+ @batch_path = 'batch'
54
+ end
55
+
56
+ # Deletes the column.
57
+ # @param [String] table_id
58
+ # Table from which the column is being deleted.
59
+ # @param [String] column_id
60
+ # Name or identifier for the column being deleted.
61
+ # @param [String] fields
62
+ # Selector specifying which fields to include in a partial response.
63
+ # @param [String] quota_user
64
+ # Available to use for quota purposes for server-side applications. Can be any
65
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
66
+ # Overrides userIp if both are provided.
67
+ # @param [String] user_ip
68
+ # IP address of the site where the request originates. Use this if you want to
69
+ # enforce per-user limits.
70
+ # @param [Google::Apis::RequestOptions] options
71
+ # Request-specific options
72
+ #
73
+ # @yield [result, err] Result & error if block supplied
74
+ # @yieldparam result [NilClass] No result returned for this method
75
+ # @yieldparam err [StandardError] error object if request failed
76
+ #
77
+ # @return [void]
78
+ #
79
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
80
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
81
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
82
+ def delete_column(table_id, column_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
83
+ command = make_simple_command(:delete, 'tables/{tableId}/columns/{columnId}', options)
84
+ command.params['tableId'] = table_id unless table_id.nil?
85
+ command.params['columnId'] = column_id unless column_id.nil?
86
+ command.query['fields'] = fields unless fields.nil?
87
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
88
+ command.query['userIp'] = user_ip unless user_ip.nil?
89
+ execute_or_queue_command(command, &block)
90
+ end
91
+
92
+ # Retrieves a specific column by its id.
93
+ # @param [String] table_id
94
+ # Table to which the column belongs.
95
+ # @param [String] column_id
96
+ # Name or identifier for the column that is being requested.
97
+ # @param [String] fields
98
+ # Selector specifying which fields to include in a partial response.
99
+ # @param [String] quota_user
100
+ # Available to use for quota purposes for server-side applications. Can be any
101
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
102
+ # Overrides userIp if both are provided.
103
+ # @param [String] user_ip
104
+ # IP address of the site where the request originates. Use this if you want to
105
+ # enforce per-user limits.
106
+ # @param [Google::Apis::RequestOptions] options
107
+ # Request-specific options
108
+ #
109
+ # @yield [result, err] Result & error if block supplied
110
+ # @yieldparam result [Google::Apis::FusiontablesV1::Column] parsed result object
111
+ # @yieldparam err [StandardError] error object if request failed
112
+ #
113
+ # @return [Google::Apis::FusiontablesV1::Column]
114
+ #
115
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
116
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
117
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
118
+ def get_column(table_id, column_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
119
+ command = make_simple_command(:get, 'tables/{tableId}/columns/{columnId}', options)
120
+ command.response_representation = Google::Apis::FusiontablesV1::Column::Representation
121
+ command.response_class = Google::Apis::FusiontablesV1::Column
122
+ command.params['tableId'] = table_id unless table_id.nil?
123
+ command.params['columnId'] = column_id unless column_id.nil?
124
+ command.query['fields'] = fields unless fields.nil?
125
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
126
+ command.query['userIp'] = user_ip unless user_ip.nil?
127
+ execute_or_queue_command(command, &block)
128
+ end
129
+
130
+ # Adds a new column to the table.
131
+ # @param [String] table_id
132
+ # Table for which a new column is being added.
133
+ # @param [Google::Apis::FusiontablesV1::Column] column_object
134
+ # @param [String] fields
135
+ # Selector specifying which fields to include in a partial response.
136
+ # @param [String] quota_user
137
+ # Available to use for quota purposes for server-side applications. Can be any
138
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
139
+ # Overrides userIp if both are provided.
140
+ # @param [String] user_ip
141
+ # IP address of the site where the request originates. Use this if you want to
142
+ # enforce per-user limits.
143
+ # @param [Google::Apis::RequestOptions] options
144
+ # Request-specific options
145
+ #
146
+ # @yield [result, err] Result & error if block supplied
147
+ # @yieldparam result [Google::Apis::FusiontablesV1::Column] parsed result object
148
+ # @yieldparam err [StandardError] error object if request failed
149
+ #
150
+ # @return [Google::Apis::FusiontablesV1::Column]
151
+ #
152
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
153
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
154
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
155
+ def insert_column(table_id, column_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
156
+ command = make_simple_command(:post, 'tables/{tableId}/columns', options)
157
+ command.request_representation = Google::Apis::FusiontablesV1::Column::Representation
158
+ command.request_object = column_object
159
+ command.response_representation = Google::Apis::FusiontablesV1::Column::Representation
160
+ command.response_class = Google::Apis::FusiontablesV1::Column
161
+ command.params['tableId'] = table_id unless table_id.nil?
162
+ command.query['fields'] = fields unless fields.nil?
163
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
164
+ command.query['userIp'] = user_ip unless user_ip.nil?
165
+ execute_or_queue_command(command, &block)
166
+ end
167
+
168
+ # Retrieves a list of columns.
169
+ # @param [String] table_id
170
+ # Table whose columns are being listed.
171
+ # @param [Fixnum] max_results
172
+ # Maximum number of columns to return. Optional. Default is 5.
173
+ # @param [String] page_token
174
+ # Continuation token specifying which result page to return. Optional.
175
+ # @param [String] fields
176
+ # Selector specifying which fields to include in a partial response.
177
+ # @param [String] quota_user
178
+ # Available to use for quota purposes for server-side applications. Can be any
179
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
180
+ # Overrides userIp if both are provided.
181
+ # @param [String] user_ip
182
+ # IP address of the site where the request originates. Use this if you want to
183
+ # enforce per-user limits.
184
+ # @param [Google::Apis::RequestOptions] options
185
+ # Request-specific options
186
+ #
187
+ # @yield [result, err] Result & error if block supplied
188
+ # @yieldparam result [Google::Apis::FusiontablesV1::ColumnList] parsed result object
189
+ # @yieldparam err [StandardError] error object if request failed
190
+ #
191
+ # @return [Google::Apis::FusiontablesV1::ColumnList]
192
+ #
193
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
194
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
195
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
196
+ def list_columns(table_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
197
+ command = make_simple_command(:get, 'tables/{tableId}/columns', options)
198
+ command.response_representation = Google::Apis::FusiontablesV1::ColumnList::Representation
199
+ command.response_class = Google::Apis::FusiontablesV1::ColumnList
200
+ command.params['tableId'] = table_id unless table_id.nil?
201
+ command.query['maxResults'] = max_results unless max_results.nil?
202
+ command.query['pageToken'] = page_token unless page_token.nil?
203
+ command.query['fields'] = fields unless fields.nil?
204
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
205
+ command.query['userIp'] = user_ip unless user_ip.nil?
206
+ execute_or_queue_command(command, &block)
207
+ end
208
+
209
+ # Updates the name or type of an existing column. This method supports patch
210
+ # semantics.
211
+ # @param [String] table_id
212
+ # Table for which the column is being updated.
213
+ # @param [String] column_id
214
+ # Name or identifier for the column that is being updated.
215
+ # @param [Google::Apis::FusiontablesV1::Column] column_object
216
+ # @param [String] fields
217
+ # Selector specifying which fields to include in a partial response.
218
+ # @param [String] quota_user
219
+ # Available to use for quota purposes for server-side applications. Can be any
220
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
221
+ # Overrides userIp if both are provided.
222
+ # @param [String] user_ip
223
+ # IP address of the site where the request originates. Use this if you want to
224
+ # enforce per-user limits.
225
+ # @param [Google::Apis::RequestOptions] options
226
+ # Request-specific options
227
+ #
228
+ # @yield [result, err] Result & error if block supplied
229
+ # @yieldparam result [Google::Apis::FusiontablesV1::Column] parsed result object
230
+ # @yieldparam err [StandardError] error object if request failed
231
+ #
232
+ # @return [Google::Apis::FusiontablesV1::Column]
233
+ #
234
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
235
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
236
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
237
+ def patch_column(table_id, column_id, column_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
238
+ command = make_simple_command(:patch, 'tables/{tableId}/columns/{columnId}', options)
239
+ command.request_representation = Google::Apis::FusiontablesV1::Column::Representation
240
+ command.request_object = column_object
241
+ command.response_representation = Google::Apis::FusiontablesV1::Column::Representation
242
+ command.response_class = Google::Apis::FusiontablesV1::Column
243
+ command.params['tableId'] = table_id unless table_id.nil?
244
+ command.params['columnId'] = column_id unless column_id.nil?
245
+ command.query['fields'] = fields unless fields.nil?
246
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
247
+ command.query['userIp'] = user_ip unless user_ip.nil?
248
+ execute_or_queue_command(command, &block)
249
+ end
250
+
251
+ # Updates the name or type of an existing column.
252
+ # @param [String] table_id
253
+ # Table for which the column is being updated.
254
+ # @param [String] column_id
255
+ # Name or identifier for the column that is being updated.
256
+ # @param [Google::Apis::FusiontablesV1::Column] column_object
257
+ # @param [String] fields
258
+ # Selector specifying which fields to include in a partial response.
259
+ # @param [String] quota_user
260
+ # Available to use for quota purposes for server-side applications. Can be any
261
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
262
+ # Overrides userIp if both are provided.
263
+ # @param [String] user_ip
264
+ # IP address of the site where the request originates. Use this if you want to
265
+ # enforce per-user limits.
266
+ # @param [Google::Apis::RequestOptions] options
267
+ # Request-specific options
268
+ #
269
+ # @yield [result, err] Result & error if block supplied
270
+ # @yieldparam result [Google::Apis::FusiontablesV1::Column] parsed result object
271
+ # @yieldparam err [StandardError] error object if request failed
272
+ #
273
+ # @return [Google::Apis::FusiontablesV1::Column]
274
+ #
275
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
276
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
277
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
278
+ def update_column(table_id, column_id, column_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
279
+ command = make_simple_command(:put, 'tables/{tableId}/columns/{columnId}', options)
280
+ command.request_representation = Google::Apis::FusiontablesV1::Column::Representation
281
+ command.request_object = column_object
282
+ command.response_representation = Google::Apis::FusiontablesV1::Column::Representation
283
+ command.response_class = Google::Apis::FusiontablesV1::Column
284
+ command.params['tableId'] = table_id unless table_id.nil?
285
+ command.params['columnId'] = column_id unless column_id.nil?
286
+ command.query['fields'] = fields unless fields.nil?
287
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
288
+ command.query['userIp'] = user_ip unless user_ip.nil?
289
+ execute_or_queue_command(command, &block)
290
+ end
291
+
292
+ # Executes an SQL SELECT/INSERT/UPDATE/DELETE/SHOW/DESCRIBE/CREATE statement.
293
+ # @param [String] sql
294
+ # An SQL SELECT/SHOW/DESCRIBE/INSERT/UPDATE/DELETE/CREATE statement.
295
+ # @param [Boolean] hdrs
296
+ # Should column names be included (in the first row)?. Default is true.
297
+ # @param [Boolean] typed
298
+ # Should typed values be returned in the (JSON) response -- numbers for numeric
299
+ # values and parsed geometries for KML values? Default is true.
300
+ # @param [String] fields
301
+ # Selector specifying which fields to include in a partial response.
302
+ # @param [String] quota_user
303
+ # Available to use for quota purposes for server-side applications. Can be any
304
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
305
+ # Overrides userIp if both are provided.
306
+ # @param [String] user_ip
307
+ # IP address of the site where the request originates. Use this if you want to
308
+ # enforce per-user limits.
309
+ # @param [IO, String] download_dest
310
+ # IO stream or filename to receive content download
311
+ # @param [Google::Apis::RequestOptions] options
312
+ # Request-specific options
313
+ #
314
+ # @yield [result, err] Result & error if block supplied
315
+ # @yieldparam result [Google::Apis::FusiontablesV1::Sqlresponse] parsed result object
316
+ # @yieldparam err [StandardError] error object if request failed
317
+ #
318
+ # @return [Google::Apis::FusiontablesV1::Sqlresponse]
319
+ #
320
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
321
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
322
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
323
+ def sql_query(sql, hdrs: nil, typed: nil, fields: nil, quota_user: nil, user_ip: nil, download_dest: nil, options: nil, &block)
324
+ if download_dest.nil?
325
+ command = make_simple_command(:post, 'query', options)
326
+ else
327
+ command = make_download_command(:post, 'query', options)
328
+ command.download_dest = download_dest
329
+ end
330
+ command.response_representation = Google::Apis::FusiontablesV1::Sqlresponse::Representation
331
+ command.response_class = Google::Apis::FusiontablesV1::Sqlresponse
332
+ command.query['hdrs'] = hdrs unless hdrs.nil?
333
+ command.query['sql'] = sql unless sql.nil?
334
+ command.query['typed'] = typed unless typed.nil?
335
+ command.query['fields'] = fields unless fields.nil?
336
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
337
+ command.query['userIp'] = user_ip unless user_ip.nil?
338
+ execute_or_queue_command(command, &block)
339
+ end
340
+
341
+ # Executes an SQL SELECT/SHOW/DESCRIBE statement.
342
+ # @param [String] sql
343
+ # An SQL SELECT/SHOW/DESCRIBE statement.
344
+ # @param [Boolean] hdrs
345
+ # Should column names be included (in the first row)?. Default is true.
346
+ # @param [Boolean] typed
347
+ # Should typed values be returned in the (JSON) response -- numbers for numeric
348
+ # values and parsed geometries for KML values? Default is true.
349
+ # @param [String] fields
350
+ # Selector specifying which fields to include in a partial response.
351
+ # @param [String] quota_user
352
+ # Available to use for quota purposes for server-side applications. Can be any
353
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
354
+ # Overrides userIp if both are provided.
355
+ # @param [String] user_ip
356
+ # IP address of the site where the request originates. Use this if you want to
357
+ # enforce per-user limits.
358
+ # @param [IO, String] download_dest
359
+ # IO stream or filename to receive content download
360
+ # @param [Google::Apis::RequestOptions] options
361
+ # Request-specific options
362
+ #
363
+ # @yield [result, err] Result & error if block supplied
364
+ # @yieldparam result [Google::Apis::FusiontablesV1::Sqlresponse] parsed result object
365
+ # @yieldparam err [StandardError] error object if request failed
366
+ #
367
+ # @return [Google::Apis::FusiontablesV1::Sqlresponse]
368
+ #
369
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
370
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
371
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
372
+ def sql_query_get(sql, hdrs: nil, typed: nil, fields: nil, quota_user: nil, user_ip: nil, download_dest: nil, options: nil, &block)
373
+ if download_dest.nil?
374
+ command = make_simple_command(:get, 'query', options)
375
+ else
376
+ command = make_download_command(:get, 'query', options)
377
+ command.download_dest = download_dest
378
+ end
379
+ command.response_representation = Google::Apis::FusiontablesV1::Sqlresponse::Representation
380
+ command.response_class = Google::Apis::FusiontablesV1::Sqlresponse
381
+ command.query['hdrs'] = hdrs unless hdrs.nil?
382
+ command.query['sql'] = sql unless sql.nil?
383
+ command.query['typed'] = typed unless typed.nil?
384
+ command.query['fields'] = fields unless fields.nil?
385
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
386
+ command.query['userIp'] = user_ip unless user_ip.nil?
387
+ execute_or_queue_command(command, &block)
388
+ end
389
+
390
+ # Deletes a style.
391
+ # @param [String] table_id
392
+ # Table from which the style is being deleted
393
+ # @param [Fixnum] style_id
394
+ # Identifier (within a table) for the style being deleted
395
+ # @param [String] fields
396
+ # Selector specifying which fields to include in a partial response.
397
+ # @param [String] quota_user
398
+ # Available to use for quota purposes for server-side applications. Can be any
399
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
400
+ # Overrides userIp if both are provided.
401
+ # @param [String] user_ip
402
+ # IP address of the site where the request originates. Use this if you want to
403
+ # enforce per-user limits.
404
+ # @param [Google::Apis::RequestOptions] options
405
+ # Request-specific options
406
+ #
407
+ # @yield [result, err] Result & error if block supplied
408
+ # @yieldparam result [NilClass] No result returned for this method
409
+ # @yieldparam err [StandardError] error object if request failed
410
+ #
411
+ # @return [void]
412
+ #
413
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
414
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
415
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
416
+ def delete_style(table_id, style_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
417
+ command = make_simple_command(:delete, 'tables/{tableId}/styles/{styleId}', options)
418
+ command.params['tableId'] = table_id unless table_id.nil?
419
+ command.params['styleId'] = style_id unless style_id.nil?
420
+ command.query['fields'] = fields unless fields.nil?
421
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
422
+ command.query['userIp'] = user_ip unless user_ip.nil?
423
+ execute_or_queue_command(command, &block)
424
+ end
425
+
426
+ # Gets a specific style.
427
+ # @param [String] table_id
428
+ # Table to which the requested style belongs
429
+ # @param [Fixnum] style_id
430
+ # Identifier (integer) for a specific style in a table
431
+ # @param [String] fields
432
+ # Selector specifying which fields to include in a partial response.
433
+ # @param [String] quota_user
434
+ # Available to use for quota purposes for server-side applications. Can be any
435
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
436
+ # Overrides userIp if both are provided.
437
+ # @param [String] user_ip
438
+ # IP address of the site where the request originates. Use this if you want to
439
+ # enforce per-user limits.
440
+ # @param [Google::Apis::RequestOptions] options
441
+ # Request-specific options
442
+ #
443
+ # @yield [result, err] Result & error if block supplied
444
+ # @yieldparam result [Google::Apis::FusiontablesV1::StyleSetting] parsed result object
445
+ # @yieldparam err [StandardError] error object if request failed
446
+ #
447
+ # @return [Google::Apis::FusiontablesV1::StyleSetting]
448
+ #
449
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
450
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
451
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
452
+ def get_style(table_id, style_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
453
+ command = make_simple_command(:get, 'tables/{tableId}/styles/{styleId}', options)
454
+ command.response_representation = Google::Apis::FusiontablesV1::StyleSetting::Representation
455
+ command.response_class = Google::Apis::FusiontablesV1::StyleSetting
456
+ command.params['tableId'] = table_id unless table_id.nil?
457
+ command.params['styleId'] = style_id unless style_id.nil?
458
+ command.query['fields'] = fields unless fields.nil?
459
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
460
+ command.query['userIp'] = user_ip unless user_ip.nil?
461
+ execute_or_queue_command(command, &block)
462
+ end
463
+
464
+ # Adds a new style for the table.
465
+ # @param [String] table_id
466
+ # Table for which a new style is being added
467
+ # @param [Google::Apis::FusiontablesV1::StyleSetting] style_setting_object
468
+ # @param [String] fields
469
+ # Selector specifying which fields to include in a partial response.
470
+ # @param [String] quota_user
471
+ # Available to use for quota purposes for server-side applications. Can be any
472
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
473
+ # Overrides userIp if both are provided.
474
+ # @param [String] user_ip
475
+ # IP address of the site where the request originates. Use this if you want to
476
+ # enforce per-user limits.
477
+ # @param [Google::Apis::RequestOptions] options
478
+ # Request-specific options
479
+ #
480
+ # @yield [result, err] Result & error if block supplied
481
+ # @yieldparam result [Google::Apis::FusiontablesV1::StyleSetting] parsed result object
482
+ # @yieldparam err [StandardError] error object if request failed
483
+ #
484
+ # @return [Google::Apis::FusiontablesV1::StyleSetting]
485
+ #
486
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
487
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
488
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
489
+ def insert_style(table_id, style_setting_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
490
+ command = make_simple_command(:post, 'tables/{tableId}/styles', options)
491
+ command.request_representation = Google::Apis::FusiontablesV1::StyleSetting::Representation
492
+ command.request_object = style_setting_object
493
+ command.response_representation = Google::Apis::FusiontablesV1::StyleSetting::Representation
494
+ command.response_class = Google::Apis::FusiontablesV1::StyleSetting
495
+ command.params['tableId'] = table_id unless table_id.nil?
496
+ command.query['fields'] = fields unless fields.nil?
497
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
498
+ command.query['userIp'] = user_ip unless user_ip.nil?
499
+ execute_or_queue_command(command, &block)
500
+ end
501
+
502
+ # Retrieves a list of styles.
503
+ # @param [String] table_id
504
+ # Table whose styles are being listed
505
+ # @param [Fixnum] max_results
506
+ # Maximum number of styles to return. Optional. Default is 5.
507
+ # @param [String] page_token
508
+ # Continuation token specifying which result page to return. Optional.
509
+ # @param [String] fields
510
+ # Selector specifying which fields to include in a partial response.
511
+ # @param [String] quota_user
512
+ # Available to use for quota purposes for server-side applications. Can be any
513
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
514
+ # Overrides userIp if both are provided.
515
+ # @param [String] user_ip
516
+ # IP address of the site where the request originates. Use this if you want to
517
+ # enforce per-user limits.
518
+ # @param [Google::Apis::RequestOptions] options
519
+ # Request-specific options
520
+ #
521
+ # @yield [result, err] Result & error if block supplied
522
+ # @yieldparam result [Google::Apis::FusiontablesV1::StyleSettingList] parsed result object
523
+ # @yieldparam err [StandardError] error object if request failed
524
+ #
525
+ # @return [Google::Apis::FusiontablesV1::StyleSettingList]
526
+ #
527
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
528
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
529
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
530
+ def list_styles(table_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
531
+ command = make_simple_command(:get, 'tables/{tableId}/styles', options)
532
+ command.response_representation = Google::Apis::FusiontablesV1::StyleSettingList::Representation
533
+ command.response_class = Google::Apis::FusiontablesV1::StyleSettingList
534
+ command.params['tableId'] = table_id unless table_id.nil?
535
+ command.query['maxResults'] = max_results unless max_results.nil?
536
+ command.query['pageToken'] = page_token unless page_token.nil?
537
+ command.query['fields'] = fields unless fields.nil?
538
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
539
+ command.query['userIp'] = user_ip unless user_ip.nil?
540
+ execute_or_queue_command(command, &block)
541
+ end
542
+
543
+ # Updates an existing style. This method supports patch semantics.
544
+ # @param [String] table_id
545
+ # Table whose style is being updated.
546
+ # @param [Fixnum] style_id
547
+ # Identifier (within a table) for the style being updated.
548
+ # @param [Google::Apis::FusiontablesV1::StyleSetting] style_setting_object
549
+ # @param [String] fields
550
+ # Selector specifying which fields to include in a partial response.
551
+ # @param [String] quota_user
552
+ # Available to use for quota purposes for server-side applications. Can be any
553
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
554
+ # Overrides userIp if both are provided.
555
+ # @param [String] user_ip
556
+ # IP address of the site where the request originates. Use this if you want to
557
+ # enforce per-user limits.
558
+ # @param [Google::Apis::RequestOptions] options
559
+ # Request-specific options
560
+ #
561
+ # @yield [result, err] Result & error if block supplied
562
+ # @yieldparam result [Google::Apis::FusiontablesV1::StyleSetting] parsed result object
563
+ # @yieldparam err [StandardError] error object if request failed
564
+ #
565
+ # @return [Google::Apis::FusiontablesV1::StyleSetting]
566
+ #
567
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
568
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
569
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
570
+ def patch_style(table_id, style_id, style_setting_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
571
+ command = make_simple_command(:patch, 'tables/{tableId}/styles/{styleId}', options)
572
+ command.request_representation = Google::Apis::FusiontablesV1::StyleSetting::Representation
573
+ command.request_object = style_setting_object
574
+ command.response_representation = Google::Apis::FusiontablesV1::StyleSetting::Representation
575
+ command.response_class = Google::Apis::FusiontablesV1::StyleSetting
576
+ command.params['tableId'] = table_id unless table_id.nil?
577
+ command.params['styleId'] = style_id unless style_id.nil?
578
+ command.query['fields'] = fields unless fields.nil?
579
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
580
+ command.query['userIp'] = user_ip unless user_ip.nil?
581
+ execute_or_queue_command(command, &block)
582
+ end
583
+
584
+ # Updates an existing style.
585
+ # @param [String] table_id
586
+ # Table whose style is being updated.
587
+ # @param [Fixnum] style_id
588
+ # Identifier (within a table) for the style being updated.
589
+ # @param [Google::Apis::FusiontablesV1::StyleSetting] style_setting_object
590
+ # @param [String] fields
591
+ # Selector specifying which fields to include in a partial response.
592
+ # @param [String] quota_user
593
+ # Available to use for quota purposes for server-side applications. Can be any
594
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
595
+ # Overrides userIp if both are provided.
596
+ # @param [String] user_ip
597
+ # IP address of the site where the request originates. Use this if you want to
598
+ # enforce per-user limits.
599
+ # @param [Google::Apis::RequestOptions] options
600
+ # Request-specific options
601
+ #
602
+ # @yield [result, err] Result & error if block supplied
603
+ # @yieldparam result [Google::Apis::FusiontablesV1::StyleSetting] parsed result object
604
+ # @yieldparam err [StandardError] error object if request failed
605
+ #
606
+ # @return [Google::Apis::FusiontablesV1::StyleSetting]
607
+ #
608
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
609
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
610
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
611
+ def update_style(table_id, style_id, style_setting_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
612
+ command = make_simple_command(:put, 'tables/{tableId}/styles/{styleId}', options)
613
+ command.request_representation = Google::Apis::FusiontablesV1::StyleSetting::Representation
614
+ command.request_object = style_setting_object
615
+ command.response_representation = Google::Apis::FusiontablesV1::StyleSetting::Representation
616
+ command.response_class = Google::Apis::FusiontablesV1::StyleSetting
617
+ command.params['tableId'] = table_id unless table_id.nil?
618
+ command.params['styleId'] = style_id unless style_id.nil?
619
+ command.query['fields'] = fields unless fields.nil?
620
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
621
+ command.query['userIp'] = user_ip unless user_ip.nil?
622
+ execute_or_queue_command(command, &block)
623
+ end
624
+
625
+ # Copies a table.
626
+ # @param [String] table_id
627
+ # ID of the table that is being copied.
628
+ # @param [Boolean] copy_presentation
629
+ # Whether to also copy tabs, styles, and templates. Default is false.
630
+ # @param [String] fields
631
+ # Selector specifying which fields to include in a partial response.
632
+ # @param [String] quota_user
633
+ # Available to use for quota purposes for server-side applications. Can be any
634
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
635
+ # Overrides userIp if both are provided.
636
+ # @param [String] user_ip
637
+ # IP address of the site where the request originates. Use this if you want to
638
+ # enforce per-user limits.
639
+ # @param [Google::Apis::RequestOptions] options
640
+ # Request-specific options
641
+ #
642
+ # @yield [result, err] Result & error if block supplied
643
+ # @yieldparam result [Google::Apis::FusiontablesV1::Table] parsed result object
644
+ # @yieldparam err [StandardError] error object if request failed
645
+ #
646
+ # @return [Google::Apis::FusiontablesV1::Table]
647
+ #
648
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
649
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
650
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
651
+ def copy_table(table_id, copy_presentation: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
652
+ command = make_simple_command(:post, 'tables/{tableId}/copy', options)
653
+ command.response_representation = Google::Apis::FusiontablesV1::Table::Representation
654
+ command.response_class = Google::Apis::FusiontablesV1::Table
655
+ command.params['tableId'] = table_id unless table_id.nil?
656
+ command.query['copyPresentation'] = copy_presentation unless copy_presentation.nil?
657
+ command.query['fields'] = fields unless fields.nil?
658
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
659
+ command.query['userIp'] = user_ip unless user_ip.nil?
660
+ execute_or_queue_command(command, &block)
661
+ end
662
+
663
+ # Deletes a table.
664
+ # @param [String] table_id
665
+ # ID of the table that is being deleted.
666
+ # @param [String] fields
667
+ # Selector specifying which fields to include in a partial response.
668
+ # @param [String] quota_user
669
+ # Available to use for quota purposes for server-side applications. Can be any
670
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
671
+ # Overrides userIp if both are provided.
672
+ # @param [String] user_ip
673
+ # IP address of the site where the request originates. Use this if you want to
674
+ # enforce per-user limits.
675
+ # @param [Google::Apis::RequestOptions] options
676
+ # Request-specific options
677
+ #
678
+ # @yield [result, err] Result & error if block supplied
679
+ # @yieldparam result [NilClass] No result returned for this method
680
+ # @yieldparam err [StandardError] error object if request failed
681
+ #
682
+ # @return [void]
683
+ #
684
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
685
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
686
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
687
+ def delete_table(table_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
688
+ command = make_simple_command(:delete, 'tables/{tableId}', options)
689
+ command.params['tableId'] = table_id unless table_id.nil?
690
+ command.query['fields'] = fields unless fields.nil?
691
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
692
+ command.query['userIp'] = user_ip unless user_ip.nil?
693
+ execute_or_queue_command(command, &block)
694
+ end
695
+
696
+ # Retrieves a specific table by its id.
697
+ # @param [String] table_id
698
+ # Identifier(ID) for the table being requested.
699
+ # @param [String] fields
700
+ # Selector specifying which fields to include in a partial response.
701
+ # @param [String] quota_user
702
+ # Available to use for quota purposes for server-side applications. Can be any
703
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
704
+ # Overrides userIp if both are provided.
705
+ # @param [String] user_ip
706
+ # IP address of the site where the request originates. Use this if you want to
707
+ # enforce per-user limits.
708
+ # @param [Google::Apis::RequestOptions] options
709
+ # Request-specific options
710
+ #
711
+ # @yield [result, err] Result & error if block supplied
712
+ # @yieldparam result [Google::Apis::FusiontablesV1::Table] parsed result object
713
+ # @yieldparam err [StandardError] error object if request failed
714
+ #
715
+ # @return [Google::Apis::FusiontablesV1::Table]
716
+ #
717
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
718
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
719
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
720
+ def get_table(table_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
721
+ command = make_simple_command(:get, 'tables/{tableId}', options)
722
+ command.response_representation = Google::Apis::FusiontablesV1::Table::Representation
723
+ command.response_class = Google::Apis::FusiontablesV1::Table
724
+ command.params['tableId'] = table_id unless table_id.nil?
725
+ command.query['fields'] = fields unless fields.nil?
726
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
727
+ command.query['userIp'] = user_ip unless user_ip.nil?
728
+ execute_or_queue_command(command, &block)
729
+ end
730
+
731
+ # Import more rows into a table.
732
+ # @param [String] table_id
733
+ # The table into which new rows are being imported.
734
+ # @param [String] delimiter
735
+ # The delimiter used to separate cell values. This can only consist of a single
736
+ # character. Default is ','.
737
+ # @param [String] encoding
738
+ # The encoding of the content. Default is UTF-8. Use 'auto-detect' if you are
739
+ # unsure of the encoding.
740
+ # @param [Fixnum] end_line
741
+ # The index of the last line from which to start importing, exclusive. Thus, the
742
+ # number of imported lines is endLine - startLine. If this parameter is not
743
+ # provided, the file will be imported until the last line of the file. If
744
+ # endLine is negative, then the imported content will exclude the last endLine
745
+ # lines. That is, if endline is negative, no line will be imported whose index
746
+ # is greater than N + endLine where N is the number of lines in the file, and
747
+ # the number of imported lines will be N + endLine - startLine.
748
+ # @param [Boolean] is_strict
749
+ # Whether the CSV must have the same number of values for each row. If false,
750
+ # rows with fewer values will be padded with empty values. Default is true.
751
+ # @param [Fixnum] start_line
752
+ # The index of the first line from which to start importing, inclusive. Default
753
+ # is 0.
754
+ # @param [String] fields
755
+ # Selector specifying which fields to include in a partial response.
756
+ # @param [String] quota_user
757
+ # Available to use for quota purposes for server-side applications. Can be any
758
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
759
+ # Overrides userIp if both are provided.
760
+ # @param [String] user_ip
761
+ # IP address of the site where the request originates. Use this if you want to
762
+ # enforce per-user limits.
763
+ # @param [IO, String] upload_source
764
+ # IO stream or filename containing content to upload
765
+ # @param [String] content_type
766
+ # Content type of the uploaded content.
767
+ # @param [Google::Apis::RequestOptions] options
768
+ # Request-specific options
769
+ #
770
+ # @yield [result, err] Result & error if block supplied
771
+ # @yieldparam result [Google::Apis::FusiontablesV1::Import] parsed result object
772
+ # @yieldparam err [StandardError] error object if request failed
773
+ #
774
+ # @return [Google::Apis::FusiontablesV1::Import]
775
+ #
776
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
777
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
778
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
779
+ def import_table_rows(table_id, delimiter: nil, encoding: nil, end_line: nil, is_strict: nil, start_line: nil, fields: nil, quota_user: nil, user_ip: nil, upload_source: nil, content_type: nil, options: nil, &block)
780
+ if upload_source.nil?
781
+ command = make_simple_command(:post, 'tables/{tableId}/import', options)
782
+ else
783
+ command = make_upload_command(:post, 'tables/{tableId}/import', options)
784
+ command.upload_source = upload_source
785
+ command.upload_content_type = content_type
786
+ end
787
+ command.response_representation = Google::Apis::FusiontablesV1::Import::Representation
788
+ command.response_class = Google::Apis::FusiontablesV1::Import
789
+ command.params['tableId'] = table_id unless table_id.nil?
790
+ command.query['delimiter'] = delimiter unless delimiter.nil?
791
+ command.query['encoding'] = encoding unless encoding.nil?
792
+ command.query['endLine'] = end_line unless end_line.nil?
793
+ command.query['isStrict'] = is_strict unless is_strict.nil?
794
+ command.query['startLine'] = start_line unless start_line.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
+ # Import a new table.
802
+ # @param [String] name
803
+ # The name to be assigned to the new table.
804
+ # @param [String] delimiter
805
+ # The delimiter used to separate cell values. This can only consist of a single
806
+ # character. Default is ','.
807
+ # @param [String] encoding
808
+ # The encoding of the content. Default is UTF-8. Use 'auto-detect' if you are
809
+ # unsure of the encoding.
810
+ # @param [String] fields
811
+ # Selector specifying which fields to include in a partial response.
812
+ # @param [String] quota_user
813
+ # Available to use for quota purposes for server-side applications. Can be any
814
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
815
+ # Overrides userIp if both are provided.
816
+ # @param [String] user_ip
817
+ # IP address of the site where the request originates. Use this if you want to
818
+ # enforce per-user limits.
819
+ # @param [IO, String] upload_source
820
+ # IO stream or filename containing content to upload
821
+ # @param [String] content_type
822
+ # Content type of the uploaded content.
823
+ # @param [Google::Apis::RequestOptions] options
824
+ # Request-specific options
825
+ #
826
+ # @yield [result, err] Result & error if block supplied
827
+ # @yieldparam result [Google::Apis::FusiontablesV1::Table] parsed result object
828
+ # @yieldparam err [StandardError] error object if request failed
829
+ #
830
+ # @return [Google::Apis::FusiontablesV1::Table]
831
+ #
832
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
833
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
834
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
835
+ def import_table_table(name, delimiter: nil, encoding: nil, fields: nil, quota_user: nil, user_ip: nil, upload_source: nil, content_type: nil, options: nil, &block)
836
+ if upload_source.nil?
837
+ command = make_simple_command(:post, 'tables/import', options)
838
+ else
839
+ command = make_upload_command(:post, 'tables/import', options)
840
+ command.upload_source = upload_source
841
+ command.upload_content_type = content_type
842
+ end
843
+ command.response_representation = Google::Apis::FusiontablesV1::Table::Representation
844
+ command.response_class = Google::Apis::FusiontablesV1::Table
845
+ command.query['delimiter'] = delimiter unless delimiter.nil?
846
+ command.query['encoding'] = encoding unless encoding.nil?
847
+ command.query['name'] = name unless name.nil?
848
+ command.query['fields'] = fields unless fields.nil?
849
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
850
+ command.query['userIp'] = user_ip unless user_ip.nil?
851
+ execute_or_queue_command(command, &block)
852
+ end
853
+
854
+ # Creates a new table.
855
+ # @param [Google::Apis::FusiontablesV1::Table] table_object
856
+ # @param [String] fields
857
+ # Selector specifying which fields to include in a partial response.
858
+ # @param [String] quota_user
859
+ # Available to use for quota purposes for server-side applications. Can be any
860
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
861
+ # Overrides userIp if both are provided.
862
+ # @param [String] user_ip
863
+ # IP address of the site where the request originates. Use this if you want to
864
+ # enforce per-user limits.
865
+ # @param [Google::Apis::RequestOptions] options
866
+ # Request-specific options
867
+ #
868
+ # @yield [result, err] Result & error if block supplied
869
+ # @yieldparam result [Google::Apis::FusiontablesV1::Table] parsed result object
870
+ # @yieldparam err [StandardError] error object if request failed
871
+ #
872
+ # @return [Google::Apis::FusiontablesV1::Table]
873
+ #
874
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
875
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
876
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
877
+ def insert_table(table_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
878
+ command = make_simple_command(:post, 'tables', options)
879
+ command.request_representation = Google::Apis::FusiontablesV1::Table::Representation
880
+ command.request_object = table_object
881
+ command.response_representation = Google::Apis::FusiontablesV1::Table::Representation
882
+ command.response_class = Google::Apis::FusiontablesV1::Table
883
+ command.query['fields'] = fields unless fields.nil?
884
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
885
+ command.query['userIp'] = user_ip unless user_ip.nil?
886
+ execute_or_queue_command(command, &block)
887
+ end
888
+
889
+ # Retrieves a list of tables a user owns.
890
+ # @param [Fixnum] max_results
891
+ # Maximum number of styles to return. Optional. Default is 5.
892
+ # @param [String] page_token
893
+ # Continuation token specifying which result page to return. Optional.
894
+ # @param [String] fields
895
+ # Selector specifying which fields to include in a partial response.
896
+ # @param [String] quota_user
897
+ # Available to use for quota purposes for server-side applications. Can be any
898
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
899
+ # Overrides userIp if both are provided.
900
+ # @param [String] user_ip
901
+ # IP address of the site where the request originates. Use this if you want to
902
+ # enforce per-user limits.
903
+ # @param [Google::Apis::RequestOptions] options
904
+ # Request-specific options
905
+ #
906
+ # @yield [result, err] Result & error if block supplied
907
+ # @yieldparam result [Google::Apis::FusiontablesV1::TableList] parsed result object
908
+ # @yieldparam err [StandardError] error object if request failed
909
+ #
910
+ # @return [Google::Apis::FusiontablesV1::TableList]
911
+ #
912
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
913
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
914
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
915
+ def list_tables(max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
916
+ command = make_simple_command(:get, 'tables', options)
917
+ command.response_representation = Google::Apis::FusiontablesV1::TableList::Representation
918
+ command.response_class = Google::Apis::FusiontablesV1::TableList
919
+ command.query['maxResults'] = max_results unless max_results.nil?
920
+ command.query['pageToken'] = page_token unless page_token.nil?
921
+ command.query['fields'] = fields unless fields.nil?
922
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
923
+ command.query['userIp'] = user_ip unless user_ip.nil?
924
+ execute_or_queue_command(command, &block)
925
+ end
926
+
927
+ # Updates an existing table. Unless explicitly requested, only the name,
928
+ # description, and attribution will be updated. This method supports patch
929
+ # semantics.
930
+ # @param [String] table_id
931
+ # ID of the table that is being updated.
932
+ # @param [Google::Apis::FusiontablesV1::Table] table_object
933
+ # @param [Boolean] replace_view_definition
934
+ # Should the view definition also be updated? The specified view definition
935
+ # replaces the existing one. Only a view can be updated with a new definition.
936
+ # @param [String] fields
937
+ # Selector specifying which fields to include in a partial response.
938
+ # @param [String] quota_user
939
+ # Available to use for quota purposes for server-side applications. Can be any
940
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
941
+ # Overrides userIp if both are provided.
942
+ # @param [String] user_ip
943
+ # IP address of the site where the request originates. Use this if you want to
944
+ # enforce per-user limits.
945
+ # @param [Google::Apis::RequestOptions] options
946
+ # Request-specific options
947
+ #
948
+ # @yield [result, err] Result & error if block supplied
949
+ # @yieldparam result [Google::Apis::FusiontablesV1::Table] parsed result object
950
+ # @yieldparam err [StandardError] error object if request failed
951
+ #
952
+ # @return [Google::Apis::FusiontablesV1::Table]
953
+ #
954
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
955
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
956
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
957
+ def patch_table(table_id, table_object = nil, replace_view_definition: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
958
+ command = make_simple_command(:patch, 'tables/{tableId}', options)
959
+ command.request_representation = Google::Apis::FusiontablesV1::Table::Representation
960
+ command.request_object = table_object
961
+ command.response_representation = Google::Apis::FusiontablesV1::Table::Representation
962
+ command.response_class = Google::Apis::FusiontablesV1::Table
963
+ command.params['tableId'] = table_id unless table_id.nil?
964
+ command.query['replaceViewDefinition'] = replace_view_definition unless replace_view_definition.nil?
965
+ command.query['fields'] = fields unless fields.nil?
966
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
967
+ command.query['userIp'] = user_ip unless user_ip.nil?
968
+ execute_or_queue_command(command, &block)
969
+ end
970
+
971
+ # Updates an existing table. Unless explicitly requested, only the name,
972
+ # description, and attribution will be updated.
973
+ # @param [String] table_id
974
+ # ID of the table that is being updated.
975
+ # @param [Google::Apis::FusiontablesV1::Table] table_object
976
+ # @param [Boolean] replace_view_definition
977
+ # Should the view definition also be updated? The specified view definition
978
+ # replaces the existing one. Only a view can be updated with a new definition.
979
+ # @param [String] fields
980
+ # Selector specifying which fields to include in a partial response.
981
+ # @param [String] quota_user
982
+ # Available to use for quota purposes for server-side applications. Can be any
983
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
984
+ # Overrides userIp if both are provided.
985
+ # @param [String] user_ip
986
+ # IP address of the site where the request originates. Use this if you want to
987
+ # enforce per-user limits.
988
+ # @param [Google::Apis::RequestOptions] options
989
+ # Request-specific options
990
+ #
991
+ # @yield [result, err] Result & error if block supplied
992
+ # @yieldparam result [Google::Apis::FusiontablesV1::Table] parsed result object
993
+ # @yieldparam err [StandardError] error object if request failed
994
+ #
995
+ # @return [Google::Apis::FusiontablesV1::Table]
996
+ #
997
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
998
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
999
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1000
+ def update_table(table_id, table_object = nil, replace_view_definition: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1001
+ command = make_simple_command(:put, 'tables/{tableId}', options)
1002
+ command.request_representation = Google::Apis::FusiontablesV1::Table::Representation
1003
+ command.request_object = table_object
1004
+ command.response_representation = Google::Apis::FusiontablesV1::Table::Representation
1005
+ command.response_class = Google::Apis::FusiontablesV1::Table
1006
+ command.params['tableId'] = table_id unless table_id.nil?
1007
+ command.query['replaceViewDefinition'] = replace_view_definition unless replace_view_definition.nil?
1008
+ command.query['fields'] = fields unless fields.nil?
1009
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1010
+ command.query['userIp'] = user_ip unless user_ip.nil?
1011
+ execute_or_queue_command(command, &block)
1012
+ end
1013
+
1014
+ # Deletes the task, unless already started.
1015
+ # @param [String] table_id
1016
+ # Table from which the task is being deleted.
1017
+ # @param [String] task_id
1018
+ # @param [String] fields
1019
+ # Selector specifying which fields to include in a partial response.
1020
+ # @param [String] quota_user
1021
+ # Available to use for quota purposes for server-side applications. Can be any
1022
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1023
+ # Overrides userIp if both are provided.
1024
+ # @param [String] user_ip
1025
+ # IP address of the site where the request originates. Use this if you want to
1026
+ # enforce per-user limits.
1027
+ # @param [Google::Apis::RequestOptions] options
1028
+ # Request-specific options
1029
+ #
1030
+ # @yield [result, err] Result & error if block supplied
1031
+ # @yieldparam result [NilClass] No result returned for this method
1032
+ # @yieldparam err [StandardError] error object if request failed
1033
+ #
1034
+ # @return [void]
1035
+ #
1036
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1037
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1038
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1039
+ def delete_task(table_id, task_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1040
+ command = make_simple_command(:delete, 'tables/{tableId}/tasks/{taskId}', options)
1041
+ command.params['tableId'] = table_id unless table_id.nil?
1042
+ command.params['taskId'] = task_id unless task_id.nil?
1043
+ command.query['fields'] = fields unless fields.nil?
1044
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1045
+ command.query['userIp'] = user_ip unless user_ip.nil?
1046
+ execute_or_queue_command(command, &block)
1047
+ end
1048
+
1049
+ # Retrieves a specific task by its id.
1050
+ # @param [String] table_id
1051
+ # Table to which the task belongs.
1052
+ # @param [String] task_id
1053
+ # @param [String] fields
1054
+ # Selector specifying which fields to include in a partial response.
1055
+ # @param [String] quota_user
1056
+ # Available to use for quota purposes for server-side applications. Can be any
1057
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1058
+ # Overrides userIp if both are provided.
1059
+ # @param [String] user_ip
1060
+ # IP address of the site where the request originates. Use this if you want to
1061
+ # enforce per-user limits.
1062
+ # @param [Google::Apis::RequestOptions] options
1063
+ # Request-specific options
1064
+ #
1065
+ # @yield [result, err] Result & error if block supplied
1066
+ # @yieldparam result [Google::Apis::FusiontablesV1::Task] parsed result object
1067
+ # @yieldparam err [StandardError] error object if request failed
1068
+ #
1069
+ # @return [Google::Apis::FusiontablesV1::Task]
1070
+ #
1071
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1072
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1073
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1074
+ def get_task(table_id, task_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1075
+ command = make_simple_command(:get, 'tables/{tableId}/tasks/{taskId}', options)
1076
+ command.response_representation = Google::Apis::FusiontablesV1::Task::Representation
1077
+ command.response_class = Google::Apis::FusiontablesV1::Task
1078
+ command.params['tableId'] = table_id unless table_id.nil?
1079
+ command.params['taskId'] = task_id unless task_id.nil?
1080
+ command.query['fields'] = fields unless fields.nil?
1081
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1082
+ command.query['userIp'] = user_ip unless user_ip.nil?
1083
+ execute_or_queue_command(command, &block)
1084
+ end
1085
+
1086
+ # Retrieves a list of tasks.
1087
+ # @param [String] table_id
1088
+ # Table whose tasks are being listed.
1089
+ # @param [Fixnum] max_results
1090
+ # Maximum number of columns to return. Optional. Default is 5.
1091
+ # @param [String] page_token
1092
+ # @param [Fixnum] start_index
1093
+ # @param [String] fields
1094
+ # Selector specifying which fields to include in a partial response.
1095
+ # @param [String] quota_user
1096
+ # Available to use for quota purposes for server-side applications. Can be any
1097
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1098
+ # Overrides userIp if both are provided.
1099
+ # @param [String] user_ip
1100
+ # IP address of the site where the request originates. Use this if you want to
1101
+ # enforce per-user limits.
1102
+ # @param [Google::Apis::RequestOptions] options
1103
+ # Request-specific options
1104
+ #
1105
+ # @yield [result, err] Result & error if block supplied
1106
+ # @yieldparam result [Google::Apis::FusiontablesV1::TaskList] parsed result object
1107
+ # @yieldparam err [StandardError] error object if request failed
1108
+ #
1109
+ # @return [Google::Apis::FusiontablesV1::TaskList]
1110
+ #
1111
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1112
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1113
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1114
+ def list_tasks(table_id, max_results: nil, page_token: nil, start_index: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1115
+ command = make_simple_command(:get, 'tables/{tableId}/tasks', options)
1116
+ command.response_representation = Google::Apis::FusiontablesV1::TaskList::Representation
1117
+ command.response_class = Google::Apis::FusiontablesV1::TaskList
1118
+ command.params['tableId'] = table_id unless table_id.nil?
1119
+ command.query['maxResults'] = max_results unless max_results.nil?
1120
+ command.query['pageToken'] = page_token unless page_token.nil?
1121
+ command.query['startIndex'] = start_index unless start_index.nil?
1122
+ command.query['fields'] = fields unless fields.nil?
1123
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1124
+ command.query['userIp'] = user_ip unless user_ip.nil?
1125
+ execute_or_queue_command(command, &block)
1126
+ end
1127
+
1128
+ # Deletes a template
1129
+ # @param [String] table_id
1130
+ # Table from which the template is being deleted
1131
+ # @param [Fixnum] template_id
1132
+ # Identifier for the template which is being deleted
1133
+ # @param [String] fields
1134
+ # Selector specifying which fields to include in a partial response.
1135
+ # @param [String] quota_user
1136
+ # Available to use for quota purposes for server-side applications. Can be any
1137
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1138
+ # Overrides userIp if both are provided.
1139
+ # @param [String] user_ip
1140
+ # IP address of the site where the request originates. Use this if you want to
1141
+ # enforce per-user limits.
1142
+ # @param [Google::Apis::RequestOptions] options
1143
+ # Request-specific options
1144
+ #
1145
+ # @yield [result, err] Result & error if block supplied
1146
+ # @yieldparam result [NilClass] No result returned for this method
1147
+ # @yieldparam err [StandardError] error object if request failed
1148
+ #
1149
+ # @return [void]
1150
+ #
1151
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1152
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1153
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1154
+ def delete_template(table_id, template_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1155
+ command = make_simple_command(:delete, 'tables/{tableId}/templates/{templateId}', options)
1156
+ command.params['tableId'] = table_id unless table_id.nil?
1157
+ command.params['templateId'] = template_id unless template_id.nil?
1158
+ command.query['fields'] = fields unless fields.nil?
1159
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1160
+ command.query['userIp'] = user_ip unless user_ip.nil?
1161
+ execute_or_queue_command(command, &block)
1162
+ end
1163
+
1164
+ # Retrieves a specific template by its id
1165
+ # @param [String] table_id
1166
+ # Table to which the template belongs
1167
+ # @param [Fixnum] template_id
1168
+ # Identifier for the template that is being requested
1169
+ # @param [String] fields
1170
+ # Selector specifying which fields to include in a partial response.
1171
+ # @param [String] quota_user
1172
+ # Available to use for quota purposes for server-side applications. Can be any
1173
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1174
+ # Overrides userIp if both are provided.
1175
+ # @param [String] user_ip
1176
+ # IP address of the site where the request originates. Use this if you want to
1177
+ # enforce per-user limits.
1178
+ # @param [Google::Apis::RequestOptions] options
1179
+ # Request-specific options
1180
+ #
1181
+ # @yield [result, err] Result & error if block supplied
1182
+ # @yieldparam result [Google::Apis::FusiontablesV1::Template] parsed result object
1183
+ # @yieldparam err [StandardError] error object if request failed
1184
+ #
1185
+ # @return [Google::Apis::FusiontablesV1::Template]
1186
+ #
1187
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1188
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1189
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1190
+ def get_template(table_id, template_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1191
+ command = make_simple_command(:get, 'tables/{tableId}/templates/{templateId}', options)
1192
+ command.response_representation = Google::Apis::FusiontablesV1::Template::Representation
1193
+ command.response_class = Google::Apis::FusiontablesV1::Template
1194
+ command.params['tableId'] = table_id unless table_id.nil?
1195
+ command.params['templateId'] = template_id unless template_id.nil?
1196
+ command.query['fields'] = fields unless fields.nil?
1197
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1198
+ command.query['userIp'] = user_ip unless user_ip.nil?
1199
+ execute_or_queue_command(command, &block)
1200
+ end
1201
+
1202
+ # Creates a new template for the table.
1203
+ # @param [String] table_id
1204
+ # Table for which a new template is being created
1205
+ # @param [Google::Apis::FusiontablesV1::Template] template_object
1206
+ # @param [String] fields
1207
+ # Selector specifying which fields to include in a partial response.
1208
+ # @param [String] quota_user
1209
+ # Available to use for quota purposes for server-side applications. Can be any
1210
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1211
+ # Overrides userIp if both are provided.
1212
+ # @param [String] user_ip
1213
+ # IP address of the site where the request originates. Use this if you want to
1214
+ # enforce per-user limits.
1215
+ # @param [Google::Apis::RequestOptions] options
1216
+ # Request-specific options
1217
+ #
1218
+ # @yield [result, err] Result & error if block supplied
1219
+ # @yieldparam result [Google::Apis::FusiontablesV1::Template] parsed result object
1220
+ # @yieldparam err [StandardError] error object if request failed
1221
+ #
1222
+ # @return [Google::Apis::FusiontablesV1::Template]
1223
+ #
1224
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1225
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1226
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1227
+ def insert_template(table_id, template_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1228
+ command = make_simple_command(:post, 'tables/{tableId}/templates', options)
1229
+ command.request_representation = Google::Apis::FusiontablesV1::Template::Representation
1230
+ command.request_object = template_object
1231
+ command.response_representation = Google::Apis::FusiontablesV1::Template::Representation
1232
+ command.response_class = Google::Apis::FusiontablesV1::Template
1233
+ command.params['tableId'] = table_id unless table_id.nil?
1234
+ command.query['fields'] = fields unless fields.nil?
1235
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1236
+ command.query['userIp'] = user_ip unless user_ip.nil?
1237
+ execute_or_queue_command(command, &block)
1238
+ end
1239
+
1240
+ # Retrieves a list of templates.
1241
+ # @param [String] table_id
1242
+ # Identifier for the table whose templates are being requested
1243
+ # @param [Fixnum] max_results
1244
+ # Maximum number of templates to return. Optional. Default is 5.
1245
+ # @param [String] page_token
1246
+ # Continuation token specifying which results page to return. Optional.
1247
+ # @param [String] fields
1248
+ # Selector specifying which fields to include in a partial response.
1249
+ # @param [String] quota_user
1250
+ # Available to use for quota purposes for server-side applications. Can be any
1251
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1252
+ # Overrides userIp if both are provided.
1253
+ # @param [String] user_ip
1254
+ # IP address of the site where the request originates. Use this if you want to
1255
+ # enforce per-user limits.
1256
+ # @param [Google::Apis::RequestOptions] options
1257
+ # Request-specific options
1258
+ #
1259
+ # @yield [result, err] Result & error if block supplied
1260
+ # @yieldparam result [Google::Apis::FusiontablesV1::TemplateList] parsed result object
1261
+ # @yieldparam err [StandardError] error object if request failed
1262
+ #
1263
+ # @return [Google::Apis::FusiontablesV1::TemplateList]
1264
+ #
1265
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1266
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1267
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1268
+ def list_templates(table_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1269
+ command = make_simple_command(:get, 'tables/{tableId}/templates', options)
1270
+ command.response_representation = Google::Apis::FusiontablesV1::TemplateList::Representation
1271
+ command.response_class = Google::Apis::FusiontablesV1::TemplateList
1272
+ command.params['tableId'] = table_id unless table_id.nil?
1273
+ command.query['maxResults'] = max_results unless max_results.nil?
1274
+ command.query['pageToken'] = page_token unless page_token.nil?
1275
+ command.query['fields'] = fields unless fields.nil?
1276
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1277
+ command.query['userIp'] = user_ip unless user_ip.nil?
1278
+ execute_or_queue_command(command, &block)
1279
+ end
1280
+
1281
+ # Updates an existing template. This method supports patch semantics.
1282
+ # @param [String] table_id
1283
+ # Table to which the updated template belongs
1284
+ # @param [Fixnum] template_id
1285
+ # Identifier for the template that is being updated
1286
+ # @param [Google::Apis::FusiontablesV1::Template] template_object
1287
+ # @param [String] fields
1288
+ # Selector specifying which fields to include in a partial response.
1289
+ # @param [String] quota_user
1290
+ # Available to use for quota purposes for server-side applications. Can be any
1291
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1292
+ # Overrides userIp if both are provided.
1293
+ # @param [String] user_ip
1294
+ # IP address of the site where the request originates. Use this if you want to
1295
+ # enforce per-user limits.
1296
+ # @param [Google::Apis::RequestOptions] options
1297
+ # Request-specific options
1298
+ #
1299
+ # @yield [result, err] Result & error if block supplied
1300
+ # @yieldparam result [Google::Apis::FusiontablesV1::Template] parsed result object
1301
+ # @yieldparam err [StandardError] error object if request failed
1302
+ #
1303
+ # @return [Google::Apis::FusiontablesV1::Template]
1304
+ #
1305
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1306
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1307
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1308
+ def patch_template(table_id, template_id, template_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1309
+ command = make_simple_command(:patch, 'tables/{tableId}/templates/{templateId}', options)
1310
+ command.request_representation = Google::Apis::FusiontablesV1::Template::Representation
1311
+ command.request_object = template_object
1312
+ command.response_representation = Google::Apis::FusiontablesV1::Template::Representation
1313
+ command.response_class = Google::Apis::FusiontablesV1::Template
1314
+ command.params['tableId'] = table_id unless table_id.nil?
1315
+ command.params['templateId'] = template_id unless template_id.nil?
1316
+ command.query['fields'] = fields unless fields.nil?
1317
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1318
+ command.query['userIp'] = user_ip unless user_ip.nil?
1319
+ execute_or_queue_command(command, &block)
1320
+ end
1321
+
1322
+ # Updates an existing template
1323
+ # @param [String] table_id
1324
+ # Table to which the updated template belongs
1325
+ # @param [Fixnum] template_id
1326
+ # Identifier for the template that is being updated
1327
+ # @param [Google::Apis::FusiontablesV1::Template] template_object
1328
+ # @param [String] fields
1329
+ # Selector specifying which fields to include in a partial response.
1330
+ # @param [String] quota_user
1331
+ # Available to use for quota purposes for server-side applications. Can be any
1332
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1333
+ # Overrides userIp if both are provided.
1334
+ # @param [String] user_ip
1335
+ # IP address of the site where the request originates. Use this if you want to
1336
+ # enforce per-user limits.
1337
+ # @param [Google::Apis::RequestOptions] options
1338
+ # Request-specific options
1339
+ #
1340
+ # @yield [result, err] Result & error if block supplied
1341
+ # @yieldparam result [Google::Apis::FusiontablesV1::Template] parsed result object
1342
+ # @yieldparam err [StandardError] error object if request failed
1343
+ #
1344
+ # @return [Google::Apis::FusiontablesV1::Template]
1345
+ #
1346
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1347
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1348
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1349
+ def update_template(table_id, template_id, template_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1350
+ command = make_simple_command(:put, 'tables/{tableId}/templates/{templateId}', options)
1351
+ command.request_representation = Google::Apis::FusiontablesV1::Template::Representation
1352
+ command.request_object = template_object
1353
+ command.response_representation = Google::Apis::FusiontablesV1::Template::Representation
1354
+ command.response_class = Google::Apis::FusiontablesV1::Template
1355
+ command.params['tableId'] = table_id unless table_id.nil?
1356
+ command.params['templateId'] = template_id unless template_id.nil?
1357
+ command.query['fields'] = fields unless fields.nil?
1358
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1359
+ command.query['userIp'] = user_ip unless user_ip.nil?
1360
+ execute_or_queue_command(command, &block)
1361
+ end
1362
+
1363
+ protected
1364
+
1365
+ def apply_command_defaults(command)
1366
+ command.query['key'] = key unless key.nil?
1367
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1368
+ command.query['userIp'] = user_ip unless user_ip.nil?
1369
+ end
1370
+ end
1371
+ end
1372
+ end
1373
+ end