google-api-client 0.8.6 → 0.9

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 (497) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +20 -0
  3. data/.rspec +2 -0
  4. data/.rubocop.yml +7 -0
  5. data/.rubocop_todo.yml +63 -0
  6. data/.travis.yml +22 -0
  7. data/.yardopts +12 -0
  8. data/CHANGELOG.md +41 -2
  9. data/CONTRIBUTING.md +31 -0
  10. data/Gemfile +32 -2
  11. data/MIGRATING.md +171 -0
  12. data/README.md +181 -148
  13. data/Rakefile +1 -40
  14. data/api_names.yaml +1036 -0
  15. data/api_names_out.yaml +26053 -0
  16. data/bin/generate-api +95 -0
  17. data/generated/google/apis/adexchangebuyer_v1_3.rb +35 -0
  18. data/generated/google/apis/adexchangebuyer_v1_3/classes.rb +1335 -0
  19. data/generated/google/apis/adexchangebuyer_v1_3/representations.rb +446 -0
  20. data/generated/google/apis/adexchangebuyer_v1_3/service.rb +872 -0
  21. data/generated/google/apis/adexchangeseller_v2_0.rb +38 -0
  22. data/generated/google/apis/adexchangeseller_v2_0/classes.rb +792 -0
  23. data/generated/google/apis/adexchangeseller_v2_0/representations.rb +309 -0
  24. data/generated/google/apis/adexchangeseller_v2_0/service.rb +668 -0
  25. data/generated/google/apis/admin_datatransfer_v1.rb +37 -0
  26. data/generated/google/apis/admin_datatransfer_v1/classes.rb +267 -0
  27. data/generated/google/apis/admin_datatransfer_v1/representations.rb +118 -0
  28. data/generated/google/apis/admin_datatransfer_v1/service.rb +262 -0
  29. data/generated/google/apis/admin_directory_v1.rb +113 -0
  30. data/generated/google/apis/admin_directory_v1/classes.rb +3141 -0
  31. data/generated/google/apis/admin_directory_v1/representations.rb +1029 -0
  32. data/generated/google/apis/admin_directory_v1/service.rb +3818 -0
  33. data/generated/google/apis/admin_reports_v1.rb +38 -0
  34. data/generated/google/apis/admin_reports_v1/classes.rb +582 -0
  35. data/generated/google/apis/admin_reports_v1/representations.rb +231 -0
  36. data/generated/google/apis/admin_reports_v1/service.rb +336 -0
  37. data/generated/google/apis/adsense_v1_4.rb +38 -0
  38. data/generated/google/apis/adsense_v1_4/classes.rb +1285 -0
  39. data/generated/google/apis/adsense_v1_4/representations.rb +494 -0
  40. data/generated/google/apis/adsense_v1_4/service.rb +1714 -0
  41. data/generated/google/apis/adsensehost_v4_1.rb +35 -0
  42. data/generated/google/apis/adsensehost_v4_1/classes.rb +834 -0
  43. data/generated/google/apis/adsensehost_v4_1/representations.rb +327 -0
  44. data/generated/google/apis/adsensehost_v4_1/service.rb +1164 -0
  45. data/generated/google/apis/analytics_v3.rb +49 -0
  46. data/generated/google/apis/analytics_v3/classes.rb +5118 -0
  47. data/generated/google/apis/analytics_v3/representations.rb +1662 -0
  48. data/generated/google/apis/analytics_v3/service.rb +3568 -0
  49. data/generated/google/apis/androidenterprise_v1.rb +35 -0
  50. data/generated/google/apis/androidenterprise_v1/classes.rb +1443 -0
  51. data/generated/google/apis/androidenterprise_v1/representations.rb +538 -0
  52. data/generated/google/apis/androidenterprise_v1/service.rb +2602 -0
  53. data/generated/google/apis/androidpublisher_v2.rb +34 -0
  54. data/generated/google/apis/androidpublisher_v2/classes.rb +1411 -0
  55. data/generated/google/apis/androidpublisher_v2/representations.rb +646 -0
  56. data/generated/google/apis/androidpublisher_v2/service.rb +2338 -0
  57. data/generated/google/apis/appengine_v1beta4.rb +35 -0
  58. data/generated/google/apis/appengine_v1beta4/classes.rb +1532 -0
  59. data/generated/google/apis/appengine_v1beta4/representations.rb +526 -0
  60. data/generated/google/apis/appengine_v1beta4/service.rb +476 -0
  61. data/generated/google/apis/appsactivity_v1.rb +46 -0
  62. data/generated/google/apis/appsactivity_v1/classes.rb +392 -0
  63. data/generated/google/apis/appsactivity_v1/representations.rb +184 -0
  64. data/generated/google/apis/appsactivity_v1/service.rb +128 -0
  65. data/generated/google/apis/appstate_v1.rb +34 -0
  66. data/generated/google/apis/appstate_v1/classes.rb +154 -0
  67. data/generated/google/apis/appstate_v1/representations.rb +79 -0
  68. data/generated/google/apis/appstate_v1/service.rb +260 -0
  69. data/generated/google/apis/autoscaler_v1beta2.rb +38 -0
  70. data/generated/google/apis/autoscaler_v1beta2/classes.rb +747 -0
  71. data/generated/google/apis/autoscaler_v1beta2/representations.rb +281 -0
  72. data/generated/google/apis/autoscaler_v1beta2/service.rb +478 -0
  73. data/generated/google/apis/bigquery_v2.rb +52 -0
  74. data/generated/google/apis/bigquery_v2/classes.rb +2471 -0
  75. data/generated/google/apis/bigquery_v2/representations.rb +816 -0
  76. data/generated/google/apis/bigquery_v2/service.rb +982 -0
  77. data/generated/google/apis/blogger_v3.rb +37 -0
  78. data/generated/google/apis/blogger_v3/classes.rb +1354 -0
  79. data/generated/google/apis/blogger_v3/representations.rb +562 -0
  80. data/generated/google/apis/blogger_v3/service.rb +1587 -0
  81. data/generated/google/apis/books_v1.rb +34 -0
  82. data/generated/google/apis/books_v1/classes.rb +3956 -0
  83. data/generated/google/apis/books_v1/representations.rb +1538 -0
  84. data/generated/google/apis/books_v1/service.rb +2290 -0
  85. data/generated/google/apis/calendar_v3.rb +37 -0
  86. data/generated/google/apis/calendar_v3/classes.rb +1742 -0
  87. data/generated/google/apis/calendar_v3/representations.rb +567 -0
  88. data/generated/google/apis/calendar_v3/service.rb +1968 -0
  89. data/{lib/google/api_client/service_account.rb → generated/google/apis/civicinfo_v2.rb} +18 -8
  90. data/generated/google/apis/civicinfo_v2/classes.rb +1127 -0
  91. data/generated/google/apis/civicinfo_v2/representations.rb +383 -0
  92. data/generated/google/apis/civicinfo_v2/service.rb +279 -0
  93. data/generated/google/apis/classroom_v1.rb +49 -0
  94. data/generated/google/apis/classroom_v1/classes.rb +512 -0
  95. data/generated/google/apis/classroom_v1/representations.rb +217 -0
  96. data/generated/google/apis/classroom_v1/service.rb +970 -0
  97. data/generated/google/apis/classroom_v1beta1.rb +49 -0
  98. data/generated/google/apis/classroom_v1beta1/classes.rb +447 -0
  99. data/generated/google/apis/classroom_v1beta1/representations.rb +190 -0
  100. data/generated/google/apis/classroom_v1beta1/service.rb +791 -0
  101. data/generated/google/apis/cloudbilling_v1.rb +35 -0
  102. data/generated/google/apis/cloudbilling_v1/classes.rb +169 -0
  103. data/generated/google/apis/cloudbilling_v1/representations.rb +79 -0
  104. data/generated/google/apis/cloudbilling_v1/service.rb +258 -0
  105. data/generated/google/apis/clouddebugger_v2.rb +41 -0
  106. data/generated/google/apis/clouddebugger_v2/classes.rb +1004 -0
  107. data/generated/google/apis/clouddebugger_v2/representations.rb +410 -0
  108. data/generated/google/apis/clouddebugger_v2/service.rb +370 -0
  109. data/generated/google/apis/cloudmonitoring_v2beta2.rb +37 -0
  110. data/generated/google/apis/cloudmonitoring_v2beta2/classes.rb +679 -0
  111. data/generated/google/apis/cloudmonitoring_v2beta2/representations.rb +311 -0
  112. data/generated/google/apis/cloudmonitoring_v2beta2/service.rb +452 -0
  113. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +38 -0
  114. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +437 -0
  115. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +188 -0
  116. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +623 -0
  117. data/generated/google/apis/cloudtrace_v1.rb +35 -0
  118. data/generated/google/apis/cloudtrace_v1/classes.rb +188 -0
  119. data/generated/google/apis/cloudtrace_v1/representations.rb +92 -0
  120. data/generated/google/apis/cloudtrace_v1/service.rb +190 -0
  121. data/generated/google/apis/clouduseraccounts_beta.rb +43 -0
  122. data/generated/google/apis/clouduseraccounts_beta/classes.rb +823 -0
  123. data/generated/google/apis/clouduseraccounts_beta/representations.rb +313 -0
  124. data/generated/google/apis/clouduseraccounts_beta/service.rb +854 -0
  125. data/generated/google/apis/compute_beta.rb +49 -0
  126. data/generated/google/apis/compute_beta/classes.rb +9128 -0
  127. data/generated/google/apis/compute_beta/representations.rb +3048 -0
  128. data/generated/google/apis/compute_beta/service.rb +10154 -0
  129. data/generated/google/apis/compute_v1.rb +49 -0
  130. data/generated/google/apis/compute_v1/classes.rb +8681 -0
  131. data/generated/google/apis/compute_v1/representations.rb +2895 -0
  132. data/generated/google/apis/compute_v1/service.rb +9252 -0
  133. data/generated/google/apis/container_v1.rb +35 -0
  134. data/generated/google/apis/container_v1/classes.rb +463 -0
  135. data/generated/google/apis/container_v1/representations.rb +175 -0
  136. data/generated/google/apis/container_v1/service.rb +367 -0
  137. data/generated/google/apis/container_v1beta1.rb +35 -0
  138. data/generated/google/apis/container_v1beta1/classes.rb +466 -0
  139. data/generated/google/apis/container_v1beta1/representations.rb +177 -0
  140. data/generated/google/apis/container_v1beta1/service.rb +394 -0
  141. data/generated/google/apis/content_v2.rb +35 -0
  142. data/generated/google/apis/content_v2/classes.rb +5986 -0
  143. data/generated/google/apis/content_v2/representations.rb +2288 -0
  144. data/generated/google/apis/content_v2/service.rb +2338 -0
  145. data/generated/google/apis/coordinate_v1.rb +37 -0
  146. data/generated/google/apis/coordinate_v1/classes.rb +669 -0
  147. data/generated/google/apis/coordinate_v1/representations.rb +285 -0
  148. data/generated/google/apis/coordinate_v1/service.rb +678 -0
  149. data/{lib/google/api_client/auth/compute_service_account.rb → generated/google/apis/customsearch_v1.rb} +13 -10
  150. data/generated/google/apis/customsearch_v1/classes.rb +771 -0
  151. data/generated/google/apis/customsearch_v1/representations.rb +276 -0
  152. data/generated/google/apis/customsearch_v1/service.rb +207 -0
  153. data/generated/google/apis/datastore_v1beta2.rb +40 -0
  154. data/generated/google/apis/datastore_v1beta2/classes.rb +1186 -0
  155. data/generated/google/apis/datastore_v1beta2/representations.rb +526 -0
  156. data/generated/google/apis/datastore_v1beta2/service.rb +294 -0
  157. data/generated/google/apis/deploymentmanager_v2.rb +44 -0
  158. data/generated/google/apis/deploymentmanager_v2/classes.rb +1091 -0
  159. data/generated/google/apis/deploymentmanager_v2/representations.rb +422 -0
  160. data/generated/google/apis/deploymentmanager_v2/service.rb +857 -0
  161. data/generated/google/apis/deploymentmanager_v2beta2.rb +44 -0
  162. data/generated/google/apis/deploymentmanager_v2beta2/classes.rb +843 -0
  163. data/generated/google/apis/deploymentmanager_v2beta2/representations.rb +306 -0
  164. data/generated/google/apis/deploymentmanager_v2beta2/service.rb +689 -0
  165. data/generated/google/apis/dfareporting_v2_1.rb +37 -0
  166. data/generated/google/apis/dfareporting_v2_1/classes.rb +10770 -0
  167. data/generated/google/apis/dfareporting_v2_1/representations.rb +3438 -0
  168. data/generated/google/apis/dfareporting_v2_1/service.rb +8585 -0
  169. data/generated/google/apis/discovery_v1.rb +32 -0
  170. data/generated/google/apis/discovery_v1/classes.rb +961 -0
  171. data/generated/google/apis/discovery_v1/representations.rb +357 -0
  172. data/generated/google/apis/discovery_v1/service.rb +142 -0
  173. data/generated/google/apis/dns_v1.rb +44 -0
  174. data/generated/google/apis/dns_v1/classes.rb +406 -0
  175. data/generated/google/apis/dns_v1/representations.rb +151 -0
  176. data/generated/google/apis/dns_v1/service.rb +454 -0
  177. data/generated/google/apis/doubleclickbidmanager_v1.rb +31 -0
  178. data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +716 -0
  179. data/generated/google/apis/doubleclickbidmanager_v1/representations.rb +298 -0
  180. data/generated/google/apis/doubleclickbidmanager_v1/service.rb +341 -0
  181. data/generated/google/apis/doubleclicksearch_v2.rb +35 -0
  182. data/generated/google/apis/doubleclicksearch_v2/classes.rb +956 -0
  183. data/generated/google/apis/doubleclicksearch_v2/representations.rb +316 -0
  184. data/generated/google/apis/doubleclicksearch_v2/service.rb +480 -0
  185. data/generated/google/apis/drive_v2.rb +58 -0
  186. data/generated/google/apis/drive_v2/classes.rb +2562 -0
  187. data/generated/google/apis/drive_v2/representations.rb +795 -0
  188. data/generated/google/apis/drive_v2/service.rb +2696 -0
  189. data/generated/google/apis/drive_v3.rb +55 -0
  190. data/generated/google/apis/drive_v3/classes.rb +1534 -0
  191. data/generated/google/apis/drive_v3/representations.rb +497 -0
  192. data/generated/google/apis/drive_v3/service.rb +1541 -0
  193. data/generated/google/apis/fitness_v1.rb +49 -0
  194. data/generated/google/apis/fitness_v1/classes.rb +885 -0
  195. data/generated/google/apis/fitness_v1/representations.rb +320 -0
  196. data/generated/google/apis/fitness_v1/service.rb +675 -0
  197. data/generated/google/apis/fusiontables_v2.rb +37 -0
  198. data/generated/google/apis/fusiontables_v2/classes.rb +1048 -0
  199. data/generated/google/apis/fusiontables_v2/representations.rb +409 -0
  200. data/generated/google/apis/fusiontables_v2/service.rb +1463 -0
  201. data/generated/google/apis/games_configuration_v1configuration.rb +34 -0
  202. data/generated/google/apis/games_configuration_v1configuration/classes.rb +506 -0
  203. data/generated/google/apis/games_configuration_v1configuration/representations.rb +206 -0
  204. data/generated/google/apis/games_configuration_v1configuration/service.rb +565 -0
  205. data/generated/google/apis/games_management_v1management.rb +37 -0
  206. data/generated/google/apis/games_management_v1management/classes.rb +524 -0
  207. data/generated/google/apis/games_management_v1management/representations.rb +231 -0
  208. data/generated/google/apis/games_management_v1management/service.rb +994 -0
  209. data/generated/google/apis/games_v1.rb +40 -0
  210. data/generated/google/apis/games_v1/classes.rb +4617 -0
  211. data/generated/google/apis/games_v1/representations.rb +1584 -0
  212. data/generated/google/apis/games_v1/service.rb +2290 -0
  213. data/generated/google/apis/gan_v1beta1.rb +31 -0
  214. data/generated/google/apis/gan_v1beta1/classes.rb +1428 -0
  215. data/generated/google/apis/gan_v1beta1/representations.rb +428 -0
  216. data/generated/google/apis/gan_v1beta1/service.rb +682 -0
  217. data/generated/google/apis/genomics_v1.rb +49 -0
  218. data/generated/google/apis/genomics_v1/classes.rb +2609 -0
  219. data/generated/google/apis/genomics_v1/representations.rb +909 -0
  220. data/generated/google/apis/genomics_v1/service.rb +1676 -0
  221. data/generated/google/apis/genomics_v1beta2.rb +46 -0
  222. data/generated/google/apis/genomics_v1beta2/classes.rb +3288 -0
  223. data/generated/google/apis/genomics_v1beta2/representations.rb +1194 -0
  224. data/generated/google/apis/genomics_v1beta2/service.rb +2392 -0
  225. data/generated/google/apis/gmail_v1.rb +52 -0
  226. data/generated/google/apis/gmail_v1/classes.rb +794 -0
  227. data/generated/google/apis/gmail_v1/representations.rb +339 -0
  228. data/generated/google/apis/gmail_v1/service.rb +1470 -0
  229. data/generated/google/apis/groupsmigration_v1.rb +34 -0
  230. data/generated/google/apis/groupsmigration_v1/classes.rb +51 -0
  231. data/generated/google/apis/groupsmigration_v1/representations.rb +38 -0
  232. data/generated/google/apis/groupsmigration_v1/service.rb +110 -0
  233. data/generated/google/apis/groupssettings_v1.rb +34 -0
  234. data/generated/google/apis/groupssettings_v1/classes.rb +221 -0
  235. data/generated/google/apis/groupssettings_v1/representations.rb +64 -0
  236. data/generated/google/apis/groupssettings_v1/service.rb +179 -0
  237. data/generated/google/apis/identitytoolkit_v3.rb +31 -0
  238. data/generated/google/apis/identitytoolkit_v3/classes.rb +1466 -0
  239. data/generated/google/apis/identitytoolkit_v3/representations.rb +509 -0
  240. data/generated/google/apis/identitytoolkit_v3/service.rb +581 -0
  241. data/{spec/google/api_client/request_spec.rb → generated/google/apis/kgsearch_v1.rb} +16 -13
  242. data/generated/google/apis/kgsearch_v1/classes.rb +59 -0
  243. data/generated/google/apis/kgsearch_v1/representations.rb +39 -0
  244. data/generated/google/apis/kgsearch_v1/service.rb +111 -0
  245. data/generated/google/apis/licensing_v1.rb +34 -0
  246. data/generated/google/apis/licensing_v1/classes.rb +132 -0
  247. data/generated/google/apis/licensing_v1/representations.rb +68 -0
  248. data/generated/google/apis/licensing_v1/service.rb +369 -0
  249. data/generated/google/apis/logging_v1beta3.rb +47 -0
  250. data/generated/google/apis/logging_v1beta3/classes.rb +1079 -0
  251. data/generated/google/apis/logging_v1beta3/representations.rb +366 -0
  252. data/generated/google/apis/logging_v1beta3/service.rb +1001 -0
  253. data/generated/google/apis/manager_v1beta2.rb +53 -0
  254. data/generated/google/apis/manager_v1beta2/classes.rb +1287 -0
  255. data/generated/google/apis/manager_v1beta2/representations.rb +536 -0
  256. data/generated/google/apis/manager_v1beta2/service.rb +372 -0
  257. data/generated/google/apis/mapsengine_v1.rb +38 -0
  258. data/generated/google/apis/mapsengine_v1/classes.rb +2873 -0
  259. data/generated/google/apis/mapsengine_v1/representations.rb +1235 -0
  260. data/generated/google/apis/mapsengine_v1/service.rb +3388 -0
  261. data/generated/google/apis/mirror_v1.rb +37 -0
  262. data/generated/google/apis/mirror_v1/classes.rb +1072 -0
  263. data/generated/google/apis/mirror_v1/representations.rb +350 -0
  264. data/generated/google/apis/mirror_v1/service.rb +977 -0
  265. data/generated/google/apis/oauth2_v2.rb +43 -0
  266. data/generated/google/apis/oauth2_v2/classes.rb +245 -0
  267. data/generated/google/apis/oauth2_v2/representations.rb +94 -0
  268. data/generated/google/apis/oauth2_v2/service.rb +199 -0
  269. data/generated/google/apis/pagespeedonline_v2.rb +32 -0
  270. data/generated/google/apis/pagespeedonline_v2/classes.rb +614 -0
  271. data/generated/google/apis/pagespeedonline_v2/representations.rb +244 -0
  272. data/generated/google/apis/pagespeedonline_v2/service.rb +119 -0
  273. data/generated/google/apis/partners_v2.rb +32 -0
  274. data/generated/google/apis/partners_v2/classes.rb +942 -0
  275. data/generated/google/apis/partners_v2/representations.rb +402 -0
  276. data/generated/google/apis/partners_v2/service.rb +400 -0
  277. data/generated/google/apis/plus_domains_v1.rb +61 -0
  278. data/generated/google/apis/plus_domains_v1/classes.rb +2609 -0
  279. data/generated/google/apis/plus_domains_v1/representations.rb +987 -0
  280. data/generated/google/apis/plus_domains_v1/service.rb +904 -0
  281. data/generated/google/apis/plus_v1.rb +43 -0
  282. data/generated/google/apis/plus_v1/classes.rb +2094 -0
  283. data/generated/google/apis/plus_v1/representations.rb +805 -0
  284. data/generated/google/apis/plus_v1/service.rb +470 -0
  285. data/generated/google/apis/prediction_v1_6.rb +44 -0
  286. data/generated/google/apis/prediction_v1_6/classes.rb +751 -0
  287. data/generated/google/apis/prediction_v1_6/representations.rb +327 -0
  288. data/generated/google/apis/prediction_v1_6/service.rb +380 -0
  289. data/generated/google/apis/proximitybeacon_v1beta1.rb +31 -0
  290. data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +639 -0
  291. data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +274 -0
  292. data/generated/google/apis/proximitybeacon_v1beta1/service.rb +591 -0
  293. data/generated/google/apis/pubsub_v1.rb +37 -0
  294. data/generated/google/apis/pubsub_v1/classes.rb +614 -0
  295. data/generated/google/apis/pubsub_v1/representations.rb +281 -0
  296. data/generated/google/apis/pubsub_v1/service.rb +774 -0
  297. data/generated/google/apis/pubsub_v1beta2.rb +37 -0
  298. data/generated/google/apis/pubsub_v1beta2/classes.rb +620 -0
  299. data/generated/google/apis/pubsub_v1beta2/representations.rb +282 -0
  300. data/generated/google/apis/pubsub_v1beta2/service.rb +774 -0
  301. data/generated/google/apis/qpx_express_v1.rb +31 -0
  302. data/generated/google/apis/qpx_express_v1/classes.rb +1268 -0
  303. data/generated/google/apis/qpx_express_v1/representations.rb +424 -0
  304. data/generated/google/apis/qpx_express_v1/service.rb +100 -0
  305. data/generated/google/apis/replicapool_v1beta2.rb +44 -0
  306. data/generated/google/apis/replicapool_v1beta2/classes.rb +631 -0
  307. data/generated/google/apis/replicapool_v1beta2/representations.rb +236 -0
  308. data/generated/google/apis/replicapool_v1beta2/service.rb +608 -0
  309. data/generated/google/apis/replicapoolupdater_v1beta1.rb +44 -0
  310. data/generated/google/apis/replicapoolupdater_v1beta1/classes.rb +733 -0
  311. data/generated/google/apis/replicapoolupdater_v1beta1/representations.rb +264 -0
  312. data/generated/google/apis/replicapoolupdater_v1beta1/service.rb +508 -0
  313. data/generated/google/apis/reseller_v1.rb +37 -0
  314. data/generated/google/apis/reseller_v1/classes.rb +520 -0
  315. data/generated/google/apis/reseller_v1/representations.rb +200 -0
  316. data/generated/google/apis/reseller_v1/service.rb +623 -0
  317. data/generated/google/apis/resourceviews_v1beta2.rb +50 -0
  318. data/generated/google/apis/resourceviews_v1beta2/classes.rb +660 -0
  319. data/generated/google/apis/resourceviews_v1beta2/representations.rb +269 -0
  320. data/generated/google/apis/resourceviews_v1beta2/service.rb +563 -0
  321. data/generated/google/apis/script_v1.rb +61 -0
  322. data/generated/google/apis/script_v1/classes.rb +259 -0
  323. data/generated/google/apis/script_v1/representations.rb +106 -0
  324. data/generated/google/apis/script_v1/service.rb +98 -0
  325. data/generated/google/apis/site_verification_v1.rb +37 -0
  326. data/generated/google/apis/site_verification_v1/classes.rb +185 -0
  327. data/generated/google/apis/site_verification_v1/representations.rb +101 -0
  328. data/generated/google/apis/site_verification_v1/service.rb +315 -0
  329. data/generated/google/apis/sqladmin_v1beta4.rb +37 -0
  330. data/generated/google/apis/sqladmin_v1beta4/classes.rb +2001 -0
  331. data/generated/google/apis/sqladmin_v1beta4/representations.rb +758 -0
  332. data/generated/google/apis/sqladmin_v1beta4/service.rb +1625 -0
  333. data/generated/google/apis/storage_v1.rb +46 -0
  334. data/generated/google/apis/storage_v1/classes.rb +1222 -0
  335. data/generated/google/apis/storage_v1/representations.rb +445 -0
  336. data/generated/google/apis/storage_v1/service.rb +1903 -0
  337. data/generated/google/apis/storagetransfer_v1.rb +35 -0
  338. data/generated/google/apis/storagetransfer_v1/classes.rb +1046 -0
  339. data/generated/google/apis/storagetransfer_v1/representations.rb +370 -0
  340. data/generated/google/apis/storagetransfer_v1/service.rb +473 -0
  341. data/generated/google/apis/tagmanager_v1.rb +52 -0
  342. data/generated/google/apis/tagmanager_v1/classes.rb +1384 -0
  343. data/generated/google/apis/tagmanager_v1/representations.rb +515 -0
  344. data/generated/google/apis/tagmanager_v1/service.rb +1817 -0
  345. data/generated/google/apis/taskqueue_v1beta2.rb +37 -0
  346. data/generated/google/apis/taskqueue_v1beta2/classes.rb +254 -0
  347. data/generated/google/apis/taskqueue_v1beta2/representations.rb +114 -0
  348. data/generated/google/apis/taskqueue_v1beta2/service.rb +408 -0
  349. data/generated/google/apis/tasks_v1.rb +37 -0
  350. data/generated/google/apis/tasks_v1/classes.rb +296 -0
  351. data/generated/google/apis/tasks_v1/representations.rb +115 -0
  352. data/generated/google/apis/tasks_v1/service.rb +643 -0
  353. data/generated/google/apis/translate_v2.rb +31 -0
  354. data/generated/google/apis/translate_v2/classes.rb +168 -0
  355. data/generated/google/apis/translate_v2/representations.rb +109 -0
  356. data/generated/google/apis/translate_v2/service.rb +182 -0
  357. data/generated/google/apis/urlshortener_v1.rb +34 -0
  358. data/generated/google/apis/urlshortener_v1/classes.rb +246 -0
  359. data/generated/google/apis/urlshortener_v1/representations.rb +111 -0
  360. data/generated/google/apis/urlshortener_v1/service.rb +176 -0
  361. data/generated/google/apis/webmasters_v3.rb +37 -0
  362. data/generated/google/apis/webmasters_v3/classes.rb +563 -0
  363. data/generated/google/apis/webmasters_v3/representations.rb +250 -0
  364. data/generated/google/apis/webmasters_v3/service.rb +573 -0
  365. data/generated/google/apis/youtube_analytics_v1.rb +46 -0
  366. data/generated/google/apis/youtube_analytics_v1/classes.rb +546 -0
  367. data/generated/google/apis/youtube_analytics_v1/representations.rb +243 -0
  368. data/generated/google/apis/youtube_analytics_v1/service.rb +562 -0
  369. data/generated/google/apis/youtube_v3.rb +49 -0
  370. data/generated/google/apis/youtube_v3/classes.rb +8136 -0
  371. data/generated/google/apis/youtube_v3/representations.rb +2838 -0
  372. data/generated/google/apis/youtube_v3/service.rb +4403 -0
  373. data/generated/google/apis/youtubereporting_v1.rb +38 -0
  374. data/generated/google/apis/youtubereporting_v1/classes.rb +258 -0
  375. data/generated/google/apis/youtubereporting_v1/representations.rb +128 -0
  376. data/generated/google/apis/youtubereporting_v1/service.rb +364 -0
  377. data/google-api-client.gemspec +27 -39
  378. data/lib/google/api_client/auth/installed_app.rb +7 -5
  379. data/lib/google/api_client/auth/key_utils.rb +1 -0
  380. data/lib/google/api_client/auth/storage.rb +4 -2
  381. data/lib/google/api_client/auth/storages/file_store.rb +2 -3
  382. data/lib/google/api_client/auth/storages/redis_store.rb +7 -2
  383. data/lib/google/api_client/client_secrets.rb +4 -5
  384. data/lib/google/apis.rb +48 -0
  385. data/lib/google/apis/core/api_command.rb +135 -0
  386. data/lib/google/apis/core/base_service.rb +317 -0
  387. data/lib/google/apis/core/batch.rb +239 -0
  388. data/lib/google/apis/core/download.rb +94 -0
  389. data/lib/google/apis/core/hashable.rb +44 -0
  390. data/lib/google/apis/core/http_client_adapter.rb +82 -0
  391. data/lib/google/apis/core/http_command.rb +312 -0
  392. data/lib/google/apis/core/json_representation.rb +127 -0
  393. data/lib/google/{api_client/version.rb → apis/core/logging.rb} +12 -8
  394. data/lib/google/apis/core/multipart.rb +187 -0
  395. data/lib/google/apis/core/upload.rb +288 -0
  396. data/lib/google/{api_client → apis}/errors.rb +39 -28
  397. data/lib/google/apis/generator.rb +70 -0
  398. data/lib/google/apis/generator/annotator.rb +295 -0
  399. data/lib/google/apis/generator/helpers.rb +74 -0
  400. data/lib/google/apis/generator/model.rb +143 -0
  401. data/lib/google/apis/generator/template.rb +124 -0
  402. data/lib/google/apis/generator/templates/_class.tmpl +40 -0
  403. data/lib/google/apis/generator/templates/_method.tmpl +92 -0
  404. data/lib/google/apis/generator/templates/_representation.tmpl +51 -0
  405. data/lib/google/apis/generator/templates/_representation_stub.tmpl +15 -0
  406. data/lib/google/apis/generator/templates/_representation_type.tmpl +10 -0
  407. data/lib/google/{api_client/reference.rb → apis/generator/templates/classes.rb.tmpl} +11 -9
  408. data/lib/google/apis/generator/templates/module.rb.tmpl +40 -0
  409. data/lib/google/apis/generator/templates/representations.rb.tmpl +32 -0
  410. data/lib/google/apis/generator/templates/service.rb.tmpl +60 -0
  411. data/lib/google/apis/options.rb +85 -0
  412. data/lib/google/apis/version.rb +39 -0
  413. data/rakelib/metrics.rake +22 -0
  414. data/rakelib/rubocop.rake +10 -0
  415. data/rakelib/spec.rake +11 -0
  416. data/rakelib/yard.rake +11 -0
  417. data/samples/Gemfile +7 -0
  418. data/samples/README.md +51 -0
  419. data/samples/google-api-samples +32 -0
  420. data/samples/lib/base_cli.rb +94 -0
  421. data/samples/lib/samples/analytics.rb +62 -0
  422. data/samples/lib/samples/calendar.rb +83 -0
  423. data/samples/lib/samples/drive.rb +82 -0
  424. data/samples/lib/samples/gmail.rb +50 -0
  425. data/samples/lib/samples/pubsub.rb +114 -0
  426. data/samples/lib/samples/translate.rb +44 -0
  427. data/samples/lib/samples/you_tube.rb +44 -0
  428. data/script/generate +95 -0
  429. data/script/package +8 -0
  430. data/script/release +15 -0
  431. data/spec/fixtures/files/api_names.yaml +3 -0
  432. data/spec/fixtures/files/auth_stored_credentials.json +8 -0
  433. data/spec/fixtures/files/child/.gitignore +0 -0
  434. data/spec/fixtures/files/client_secrets.json +1 -0
  435. data/spec/fixtures/files/invalid.json +1 -0
  436. data/spec/fixtures/files/test.blah +1 -0
  437. data/spec/fixtures/files/test.txt +1 -0
  438. data/spec/fixtures/files/test_api.json +440 -0
  439. data/spec/google/api_client/auth/storage_spec.rb +1 -3
  440. data/spec/google/api_client/auth/storages/file_store_spec.rb +1 -2
  441. data/spec/google/api_client/auth/storages/redis_store_spec.rb +1 -3
  442. data/spec/google/api_client/client_secrets_spec.rb +38 -1
  443. data/spec/google/apis/core/api_command_spec.rb +209 -0
  444. data/spec/google/apis/core/batch_spec.rb +142 -0
  445. data/spec/google/apis/core/download_spec.rb +103 -0
  446. data/spec/google/apis/core/hashable_spec.rb +60 -0
  447. data/spec/google/apis/core/http_command_spec.rb +284 -0
  448. data/spec/google/apis/core/json_representation_spec.rb +192 -0
  449. data/spec/google/apis/core/service_spec.rb +247 -0
  450. data/spec/google/apis/core/upload_spec.rb +300 -0
  451. data/{lib/google/api_client/discovery.rb → spec/google/apis/generated_spec.rb} +13 -5
  452. data/spec/google/apis/generator/generator_spec.rb +272 -0
  453. data/spec/google/apis/logging_spec.rb +45 -0
  454. data/spec/google/apis/options_spec.rb +40 -0
  455. data/spec/integration_tests/adsense_spec.rb +29 -0
  456. data/spec/integration_tests/drive_spec.rb +35 -0
  457. data/spec/integration_tests/pubsub_spec.rb +48 -0
  458. data/spec/integration_tests/url_shortener_spec.rb +45 -0
  459. data/spec/spec_helper.rb +131 -44
  460. data/spec/spec_helper/load_path_spec.rb +33 -0
  461. data/third_party/hurley_patches.rb +103 -0
  462. metadata +533 -170
  463. data/lib/compat/multi_json.rb +0 -19
  464. data/lib/google/api_client.rb +0 -750
  465. data/lib/google/api_client/auth/file_storage.rb +0 -59
  466. data/lib/google/api_client/auth/jwt_asserter.rb +0 -126
  467. data/lib/google/api_client/auth/pkcs12.rb +0 -41
  468. data/lib/google/api_client/batch.rb +0 -326
  469. data/lib/google/api_client/charset.rb +0 -33
  470. data/lib/google/api_client/discovery/api.rb +0 -310
  471. data/lib/google/api_client/discovery/media.rb +0 -77
  472. data/lib/google/api_client/discovery/method.rb +0 -363
  473. data/lib/google/api_client/discovery/resource.rb +0 -156
  474. data/lib/google/api_client/discovery/schema.rb +0 -117
  475. data/lib/google/api_client/environment.rb +0 -42
  476. data/lib/google/api_client/gzip.rb +0 -28
  477. data/lib/google/api_client/logging.rb +0 -32
  478. data/lib/google/api_client/media.rb +0 -259
  479. data/lib/google/api_client/railtie.rb +0 -18
  480. data/lib/google/api_client/request.rb +0 -350
  481. data/lib/google/api_client/result.rb +0 -255
  482. data/lib/google/api_client/service.rb +0 -233
  483. data/lib/google/api_client/service/batch.rb +0 -110
  484. data/lib/google/api_client/service/request.rb +0 -144
  485. data/lib/google/api_client/service/resource.rb +0 -40
  486. data/lib/google/api_client/service/result.rb +0 -162
  487. data/lib/google/api_client/service/simple_file_store.rb +0 -151
  488. data/lib/google/api_client/service/stub_generator.rb +0 -61
  489. data/spec/google/api_client/batch_spec.rb +0 -248
  490. data/spec/google/api_client/discovery_spec.rb +0 -708
  491. data/spec/google/api_client/gzip_spec.rb +0 -98
  492. data/spec/google/api_client/media_spec.rb +0 -178
  493. data/spec/google/api_client/result_spec.rb +0 -207
  494. data/spec/google/api_client/service_account_spec.rb +0 -169
  495. data/spec/google/api_client/service_spec.rb +0 -618
  496. data/spec/google/api_client/simple_file_store_spec.rb +0 -133
  497. data/spec/google/api_client_spec.rb +0 -352
@@ -0,0 +1,37 @@
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/fusiontables_v2/service.rb'
16
+ require 'google/apis/fusiontables_v2/classes.rb'
17
+ require 'google/apis/fusiontables_v2/representations.rb'
18
+
19
+ module Google
20
+ module Apis
21
+ # Fusion Tables API
22
+ #
23
+ # API for working with Fusion Tables data.
24
+ #
25
+ # @see https://developers.google.com/fusiontables
26
+ module FusiontablesV2
27
+ VERSION = 'V2'
28
+ REVISION = '20150618'
29
+
30
+ # Manage your Fusion Tables
31
+ AUTH_FUSIONTABLES = 'https://www.googleapis.com/auth/fusiontables'
32
+
33
+ # View your Fusion Tables
34
+ AUTH_FUSIONTABLES_READONLY = 'https://www.googleapis.com/auth/fusiontables.readonly'
35
+ end
36
+ end
37
+ end
@@ -0,0 +1,1048 @@
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 FusiontablesV2
24
+
25
+ # Specifies the minimum and maximum values, the color, opacity, icon and weight
26
+ # of a bucket within a StyleSetting.
27
+ class Bucket
28
+ include Google::Apis::Core::Hashable
29
+
30
+ # Color of line or the interior of a polygon in #RRGGBB format.
31
+ # Corresponds to the JSON property `color`
32
+ # @return [String]
33
+ attr_accessor :color
34
+
35
+ # Icon name used for a point.
36
+ # Corresponds to the JSON property `icon`
37
+ # @return [String]
38
+ attr_accessor :icon
39
+
40
+ # Maximum value in the selected column for a row to be styled according to the
41
+ # bucket color, opacity, icon, or weight.
42
+ # Corresponds to the JSON property `max`
43
+ # @return [Float]
44
+ attr_accessor :max
45
+
46
+ # Minimum value in the selected column for a row to be styled according to the
47
+ # bucket color, opacity, icon, or weight.
48
+ # Corresponds to the JSON property `min`
49
+ # @return [Float]
50
+ attr_accessor :min
51
+
52
+ # Opacity of the color: 0.0 (transparent) to 1.0 (opaque).
53
+ # Corresponds to the JSON property `opacity`
54
+ # @return [Float]
55
+ attr_accessor :opacity
56
+
57
+ # Width of a line (in pixels).
58
+ # Corresponds to the JSON property `weight`
59
+ # @return [Fixnum]
60
+ attr_accessor :weight
61
+
62
+ def initialize(**args)
63
+ update!(**args)
64
+ end
65
+
66
+ # Update properties of this object
67
+ def update!(**args)
68
+ @color = args[:color] unless args[:color].nil?
69
+ @icon = args[:icon] unless args[:icon].nil?
70
+ @max = args[:max] unless args[:max].nil?
71
+ @min = args[:min] unless args[:min].nil?
72
+ @opacity = args[:opacity] unless args[:opacity].nil?
73
+ @weight = args[:weight] unless args[:weight].nil?
74
+ end
75
+ end
76
+
77
+ # Specifies the details of a column in a table.
78
+ class Column
79
+ include Google::Apis::Core::Hashable
80
+
81
+ # Identifier of the base column. If present, this column is derived from the
82
+ # specified base column.
83
+ # Corresponds to the JSON property `baseColumn`
84
+ # @return [Google::Apis::FusiontablesV2::Column::BaseColumn]
85
+ attr_accessor :base_column
86
+
87
+ # Identifier for the column.
88
+ # Corresponds to the JSON property `columnId`
89
+ # @return [Fixnum]
90
+ attr_accessor :column_id
91
+
92
+ # JSON schema for interpreting JSON in this column.
93
+ # Corresponds to the JSON property `columnJsonSchema`
94
+ # @return [String]
95
+ attr_accessor :column_json_schema
96
+
97
+ # JSON object containing custom column properties.
98
+ # Corresponds to the JSON property `columnPropertiesJson`
99
+ # @return [String]
100
+ attr_accessor :column_properties_json
101
+
102
+ # Column description.
103
+ # Corresponds to the JSON property `description`
104
+ # @return [String]
105
+ attr_accessor :description
106
+
107
+ # Format pattern.
108
+ # Acceptable values are DT_DATE_MEDIUMe.g Dec 24, 2008 DT_DATE_SHORTfor example
109
+ # 12/24/08 DT_DATE_TIME_MEDIUMfor example Dec 24, 2008 8:30:45 PM
110
+ # DT_DATE_TIME_SHORTfor example 12/24/08 8:30 PM DT_DAY_MONTH_2_DIGIT_YEARfor
111
+ # example 24/12/08 DT_DAY_MONTH_2_DIGIT_YEAR_TIMEfor example 24/12/08 20:30
112
+ # DT_DAY_MONTH_2_DIGIT_YEAR_TIME_MERIDIANfor example 24/12/08 8:30 PM
113
+ # DT_DAY_MONTH_4_DIGIT_YEARfor example 24/12/2008
114
+ # DT_DAY_MONTH_4_DIGIT_YEAR_TIMEfor example 24/12/2008 20:30
115
+ # DT_DAY_MONTH_4_DIGIT_YEAR_TIME_MERIDIANfor example 24/12/2008 8:30 PM
116
+ # DT_ISO_YEAR_MONTH_DAYfor example 2008-12-24 DT_ISO_YEAR_MONTH_DAY_TIMEfor
117
+ # example 2008-12-24 20:30:45 DT_MONTH_DAY_4_DIGIT_YEARfor example 12/24/2008
118
+ # DT_TIME_LONGfor example 8:30:45 PM UTC-6 DT_TIME_MEDIUMfor example 8:30:45 PM
119
+ # DT_TIME_SHORTfor example 8:30 PM DT_YEAR_ONLYfor example 2008
120
+ # HIGHLIGHT_UNTYPED_CELLSHighlight cell data that does not match the data type
121
+ # NONENo formatting (default) NUMBER_CURRENCYfor example $1234.56
122
+ # NUMBER_DEFAULTfor example 1,234.56 NUMBER_INTEGERfor example 1235
123
+ # NUMBER_NO_SEPARATORfor example 1234.56 NUMBER_PERCENTfor example 123,456%
124
+ # NUMBER_SCIENTIFICfor example 1E3 STRING_EIGHT_LINE_IMAGEDisplays thumbnail
125
+ # images as tall as eight lines of text STRING_FOUR_LINE_IMAGEDisplays thumbnail
126
+ # images as tall as four lines of text STRING_JSON_TEXTAllows JSON editing of
127
+ # text in UI STRING_LINKTreats cell as a link (must start with http:// or https:/
128
+ # /) STRING_ONE_LINE_IMAGEDisplays thumbnail images as tall as one line of text
129
+ # STRING_VIDEO_OR_MAPDisplay a video or map thumbnail
130
+ # Corresponds to the JSON property `formatPattern`
131
+ # @return [String]
132
+ attr_accessor :format_pattern
133
+
134
+ # Column graph predicate.
135
+ # Used to map table to graph data model (subject,predicate,object)
136
+ # See W3C Graph-based Data Model.
137
+ # Corresponds to the JSON property `graphPredicate`
138
+ # @return [String]
139
+ attr_accessor :graph_predicate
140
+
141
+ # The kind of item this is. For a column, this is always fusiontables#column.
142
+ # Corresponds to the JSON property `kind`
143
+ # @return [String]
144
+ attr_accessor :kind
145
+
146
+ # Name of the column.
147
+ # Corresponds to the JSON property `name`
148
+ # @return [String]
149
+ attr_accessor :name
150
+
151
+ # Type of the column.
152
+ # Corresponds to the JSON property `type`
153
+ # @return [String]
154
+ attr_accessor :type
155
+
156
+ # List of valid values used to validate data and supply a drop-down list of
157
+ # values in the web application.
158
+ # Corresponds to the JSON property `validValues`
159
+ # @return [Array<String>]
160
+ attr_accessor :valid_values
161
+
162
+ # If true, data entered via the web application is validated.
163
+ # Corresponds to the JSON property `validateData`
164
+ # @return [Boolean]
165
+ attr_accessor :validate_data
166
+ alias_method :validate_data?, :validate_data
167
+
168
+ def initialize(**args)
169
+ update!(**args)
170
+ end
171
+
172
+ # Update properties of this object
173
+ def update!(**args)
174
+ @base_column = args[:base_column] unless args[:base_column].nil?
175
+ @column_id = args[:column_id] unless args[:column_id].nil?
176
+ @column_json_schema = args[:column_json_schema] unless args[:column_json_schema].nil?
177
+ @column_properties_json = args[:column_properties_json] unless args[:column_properties_json].nil?
178
+ @description = args[:description] unless args[:description].nil?
179
+ @format_pattern = args[:format_pattern] unless args[:format_pattern].nil?
180
+ @graph_predicate = args[:graph_predicate] unless args[:graph_predicate].nil?
181
+ @kind = args[:kind] unless args[:kind].nil?
182
+ @name = args[:name] unless args[:name].nil?
183
+ @type = args[:type] unless args[:type].nil?
184
+ @valid_values = args[:valid_values] unless args[:valid_values].nil?
185
+ @validate_data = args[:validate_data] unless args[:validate_data].nil?
186
+ end
187
+
188
+ # Identifier of the base column. If present, this column is derived from the
189
+ # specified base column.
190
+ class BaseColumn
191
+ include Google::Apis::Core::Hashable
192
+
193
+ # The id of the column in the base table from which this column is derived.
194
+ # Corresponds to the JSON property `columnId`
195
+ # @return [Fixnum]
196
+ attr_accessor :column_id
197
+
198
+ # Offset to the entry in the list of base tables in the table definition.
199
+ # Corresponds to the JSON property `tableIndex`
200
+ # @return [Fixnum]
201
+ attr_accessor :table_index
202
+
203
+ def initialize(**args)
204
+ update!(**args)
205
+ end
206
+
207
+ # Update properties of this object
208
+ def update!(**args)
209
+ @column_id = args[:column_id] unless args[:column_id].nil?
210
+ @table_index = args[:table_index] unless args[:table_index].nil?
211
+ end
212
+ end
213
+ end
214
+
215
+ # Represents a list of columns in a table.
216
+ class ColumnList
217
+ include Google::Apis::Core::Hashable
218
+
219
+ # List of all requested columns.
220
+ # Corresponds to the JSON property `items`
221
+ # @return [Array<Google::Apis::FusiontablesV2::Column>]
222
+ attr_accessor :items
223
+
224
+ # The kind of item this is. For a column list, this is always fusiontables#
225
+ # columnList.
226
+ # Corresponds to the JSON property `kind`
227
+ # @return [String]
228
+ attr_accessor :kind
229
+
230
+ # Token used to access the next page of this result. No token is displayed if
231
+ # there are no more pages left.
232
+ # Corresponds to the JSON property `nextPageToken`
233
+ # @return [String]
234
+ attr_accessor :next_page_token
235
+
236
+ # Total number of columns for the table.
237
+ # Corresponds to the JSON property `totalItems`
238
+ # @return [Fixnum]
239
+ attr_accessor :total_items
240
+
241
+ def initialize(**args)
242
+ update!(**args)
243
+ end
244
+
245
+ # Update properties of this object
246
+ def update!(**args)
247
+ @items = args[:items] unless args[:items].nil?
248
+ @kind = args[:kind] unless args[:kind].nil?
249
+ @next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
250
+ @total_items = args[:total_items] unless args[:total_items].nil?
251
+ end
252
+ end
253
+
254
+ # Represents a Geometry object.
255
+ class Geometry
256
+ include Google::Apis::Core::Hashable
257
+
258
+ # The list of geometries in this geometry collection.
259
+ # Corresponds to the JSON property `geometries`
260
+ # @return [Array<Object>]
261
+ attr_accessor :geometries
262
+
263
+ #
264
+ # Corresponds to the JSON property `geometry`
265
+ # @return [Object]
266
+ attr_accessor :geometry
267
+
268
+ # Type: A collection of geometries.
269
+ # Corresponds to the JSON property `type`
270
+ # @return [String]
271
+ attr_accessor :type
272
+
273
+ def initialize(**args)
274
+ update!(**args)
275
+ end
276
+
277
+ # Update properties of this object
278
+ def update!(**args)
279
+ @geometries = args[:geometries] unless args[:geometries].nil?
280
+ @geometry = args[:geometry] unless args[:geometry].nil?
281
+ @type = args[:type] unless args[:type].nil?
282
+ end
283
+ end
284
+
285
+ # Represents an import request.
286
+ class Import
287
+ include Google::Apis::Core::Hashable
288
+
289
+ # The kind of item this is. For an import, this is always fusiontables#import.
290
+ # Corresponds to the JSON property `kind`
291
+ # @return [String]
292
+ attr_accessor :kind
293
+
294
+ # The number of rows received from the import request.
295
+ # Corresponds to the JSON property `numRowsReceived`
296
+ # @return [String]
297
+ attr_accessor :num_rows_received
298
+
299
+ def initialize(**args)
300
+ update!(**args)
301
+ end
302
+
303
+ # Update properties of this object
304
+ def update!(**args)
305
+ @kind = args[:kind] unless args[:kind].nil?
306
+ @num_rows_received = args[:num_rows_received] unless args[:num_rows_received].nil?
307
+ end
308
+ end
309
+
310
+ # Represents a line geometry.
311
+ class Line
312
+ include Google::Apis::Core::Hashable
313
+
314
+ # The coordinates that define the line.
315
+ # Corresponds to the JSON property `coordinates`
316
+ # @return [Array<Array<Float>>]
317
+ attr_accessor :coordinates
318
+
319
+ # Type: A line geometry.
320
+ # Corresponds to the JSON property `type`
321
+ # @return [String]
322
+ attr_accessor :type
323
+
324
+ def initialize(**args)
325
+ update!(**args)
326
+ end
327
+
328
+ # Update properties of this object
329
+ def update!(**args)
330
+ @coordinates = args[:coordinates] unless args[:coordinates].nil?
331
+ @type = args[:type] unless args[:type].nil?
332
+ end
333
+ end
334
+
335
+ # Represents a LineStyle within a StyleSetting
336
+ class LineStyle
337
+ include Google::Apis::Core::Hashable
338
+
339
+ # Color of the line in #RRGGBB format.
340
+ # Corresponds to the JSON property `strokeColor`
341
+ # @return [String]
342
+ attr_accessor :stroke_color
343
+
344
+ # Represents a StyleFunction within a StyleSetting
345
+ # Corresponds to the JSON property `strokeColorStyler`
346
+ # @return [Google::Apis::FusiontablesV2::StyleFunction]
347
+ attr_accessor :stroke_color_styler
348
+
349
+ # Opacity of the line : 0.0 (transparent) to 1.0 (opaque).
350
+ # Corresponds to the JSON property `strokeOpacity`
351
+ # @return [Float]
352
+ attr_accessor :stroke_opacity
353
+
354
+ # Width of the line in pixels.
355
+ # Corresponds to the JSON property `strokeWeight`
356
+ # @return [Fixnum]
357
+ attr_accessor :stroke_weight
358
+
359
+ # Represents a StyleFunction within a StyleSetting
360
+ # Corresponds to the JSON property `strokeWeightStyler`
361
+ # @return [Google::Apis::FusiontablesV2::StyleFunction]
362
+ attr_accessor :stroke_weight_styler
363
+
364
+ def initialize(**args)
365
+ update!(**args)
366
+ end
367
+
368
+ # Update properties of this object
369
+ def update!(**args)
370
+ @stroke_color = args[:stroke_color] unless args[:stroke_color].nil?
371
+ @stroke_color_styler = args[:stroke_color_styler] unless args[:stroke_color_styler].nil?
372
+ @stroke_opacity = args[:stroke_opacity] unless args[:stroke_opacity].nil?
373
+ @stroke_weight = args[:stroke_weight] unless args[:stroke_weight].nil?
374
+ @stroke_weight_styler = args[:stroke_weight_styler] unless args[:stroke_weight_styler].nil?
375
+ end
376
+ end
377
+
378
+ # Represents a point object.
379
+ class Point
380
+ include Google::Apis::Core::Hashable
381
+
382
+ # The coordinates that define the point.
383
+ # Corresponds to the JSON property `coordinates`
384
+ # @return [Array<Float>]
385
+ attr_accessor :coordinates
386
+
387
+ # Point: A point geometry.
388
+ # Corresponds to the JSON property `type`
389
+ # @return [String]
390
+ attr_accessor :type
391
+
392
+ def initialize(**args)
393
+ update!(**args)
394
+ end
395
+
396
+ # Update properties of this object
397
+ def update!(**args)
398
+ @coordinates = args[:coordinates] unless args[:coordinates].nil?
399
+ @type = args[:type] unless args[:type].nil?
400
+ end
401
+ end
402
+
403
+ # Represents a PointStyle within a StyleSetting
404
+ class PointStyle
405
+ include Google::Apis::Core::Hashable
406
+
407
+ # Name of the icon. Use values defined in http://www.google.com/fusiontables/
408
+ # DataSource?dsrcid=308519
409
+ # Corresponds to the JSON property `iconName`
410
+ # @return [String]
411
+ attr_accessor :icon_name
412
+
413
+ # Represents a StyleFunction within a StyleSetting
414
+ # Corresponds to the JSON property `iconStyler`
415
+ # @return [Google::Apis::FusiontablesV2::StyleFunction]
416
+ attr_accessor :icon_styler
417
+
418
+ def initialize(**args)
419
+ update!(**args)
420
+ end
421
+
422
+ # Update properties of this object
423
+ def update!(**args)
424
+ @icon_name = args[:icon_name] unless args[:icon_name].nil?
425
+ @icon_styler = args[:icon_styler] unless args[:icon_styler].nil?
426
+ end
427
+ end
428
+
429
+ # Represents a polygon object.
430
+ class Polygon
431
+ include Google::Apis::Core::Hashable
432
+
433
+ # The coordinates that define the polygon.
434
+ # Corresponds to the JSON property `coordinates`
435
+ # @return [Array<Array<Array<Float>>>]
436
+ attr_accessor :coordinates
437
+
438
+ # Type: A polygon geometry.
439
+ # Corresponds to the JSON property `type`
440
+ # @return [String]
441
+ attr_accessor :type
442
+
443
+ def initialize(**args)
444
+ update!(**args)
445
+ end
446
+
447
+ # Update properties of this object
448
+ def update!(**args)
449
+ @coordinates = args[:coordinates] unless args[:coordinates].nil?
450
+ @type = args[:type] unless args[:type].nil?
451
+ end
452
+ end
453
+
454
+ # Represents a PolygonStyle within a StyleSetting
455
+ class PolygonStyle
456
+ include Google::Apis::Core::Hashable
457
+
458
+ # Color of the interior of the polygon in #RRGGBB format.
459
+ # Corresponds to the JSON property `fillColor`
460
+ # @return [String]
461
+ attr_accessor :fill_color
462
+
463
+ # Represents a StyleFunction within a StyleSetting
464
+ # Corresponds to the JSON property `fillColorStyler`
465
+ # @return [Google::Apis::FusiontablesV2::StyleFunction]
466
+ attr_accessor :fill_color_styler
467
+
468
+ # Opacity of the interior of the polygon: 0.0 (transparent) to 1.0 (opaque).
469
+ # Corresponds to the JSON property `fillOpacity`
470
+ # @return [Float]
471
+ attr_accessor :fill_opacity
472
+
473
+ # Color of the polygon border in #RRGGBB format.
474
+ # Corresponds to the JSON property `strokeColor`
475
+ # @return [String]
476
+ attr_accessor :stroke_color
477
+
478
+ # Represents a StyleFunction within a StyleSetting
479
+ # Corresponds to the JSON property `strokeColorStyler`
480
+ # @return [Google::Apis::FusiontablesV2::StyleFunction]
481
+ attr_accessor :stroke_color_styler
482
+
483
+ # Opacity of the polygon border: 0.0 (transparent) to 1.0 (opaque).
484
+ # Corresponds to the JSON property `strokeOpacity`
485
+ # @return [Float]
486
+ attr_accessor :stroke_opacity
487
+
488
+ # Width of the polyon border in pixels.
489
+ # Corresponds to the JSON property `strokeWeight`
490
+ # @return [Fixnum]
491
+ attr_accessor :stroke_weight
492
+
493
+ # Represents a StyleFunction within a StyleSetting
494
+ # Corresponds to the JSON property `strokeWeightStyler`
495
+ # @return [Google::Apis::FusiontablesV2::StyleFunction]
496
+ attr_accessor :stroke_weight_styler
497
+
498
+ def initialize(**args)
499
+ update!(**args)
500
+ end
501
+
502
+ # Update properties of this object
503
+ def update!(**args)
504
+ @fill_color = args[:fill_color] unless args[:fill_color].nil?
505
+ @fill_color_styler = args[:fill_color_styler] unless args[:fill_color_styler].nil?
506
+ @fill_opacity = args[:fill_opacity] unless args[:fill_opacity].nil?
507
+ @stroke_color = args[:stroke_color] unless args[:stroke_color].nil?
508
+ @stroke_color_styler = args[:stroke_color_styler] unless args[:stroke_color_styler].nil?
509
+ @stroke_opacity = args[:stroke_opacity] unless args[:stroke_opacity].nil?
510
+ @stroke_weight = args[:stroke_weight] unless args[:stroke_weight].nil?
511
+ @stroke_weight_styler = args[:stroke_weight_styler] unless args[:stroke_weight_styler].nil?
512
+ end
513
+ end
514
+
515
+ # Represents a response to a SQL statement.
516
+ class Sqlresponse
517
+ include Google::Apis::Core::Hashable
518
+
519
+ # Columns in the table.
520
+ # Corresponds to the JSON property `columns`
521
+ # @return [Array<String>]
522
+ attr_accessor :columns
523
+
524
+ # The kind of item this is. For responses to SQL queries, this is always
525
+ # fusiontables#sqlresponse.
526
+ # Corresponds to the JSON property `kind`
527
+ # @return [String]
528
+ attr_accessor :kind
529
+
530
+ # The rows in the table. For each cell we print out whatever cell value (e.g.,
531
+ # numeric, string) exists. Thus it is important that each cell contains only one
532
+ # value.
533
+ # Corresponds to the JSON property `rows`
534
+ # @return [Array<Array<Object>>]
535
+ attr_accessor :rows
536
+
537
+ def initialize(**args)
538
+ update!(**args)
539
+ end
540
+
541
+ # Update properties of this object
542
+ def update!(**args)
543
+ @columns = args[:columns] unless args[:columns].nil?
544
+ @kind = args[:kind] unless args[:kind].nil?
545
+ @rows = args[:rows] unless args[:rows].nil?
546
+ end
547
+ end
548
+
549
+ # Represents a StyleFunction within a StyleSetting
550
+ class StyleFunction
551
+ include Google::Apis::Core::Hashable
552
+
553
+ # Bucket function that assigns a style based on the range a column value falls
554
+ # into.
555
+ # Corresponds to the JSON property `buckets`
556
+ # @return [Array<Google::Apis::FusiontablesV2::Bucket>]
557
+ attr_accessor :buckets
558
+
559
+ # Name of the column whose value is used in the style.
560
+ # Corresponds to the JSON property `columnName`
561
+ # @return [String]
562
+ attr_accessor :column_name
563
+
564
+ # Gradient function that interpolates a range of colors based on column value.
565
+ # Corresponds to the JSON property `gradient`
566
+ # @return [Google::Apis::FusiontablesV2::StyleFunction::Gradient]
567
+ attr_accessor :gradient
568
+
569
+ # Stylers can be one of three kinds: "fusiontables#fromColumn if the column
570
+ # value is to be used as is, i.e., the column values can have colors in #
571
+ # RRGGBBAA format or integer line widths or icon names; fusiontables#gradient if
572
+ # the styling of the row is to be based on applying the gradient function on the
573
+ # column value; or fusiontables#buckets if the styling is to based on the bucket
574
+ # into which the the column value falls.
575
+ # Corresponds to the JSON property `kind`
576
+ # @return [String]
577
+ attr_accessor :kind
578
+
579
+ def initialize(**args)
580
+ update!(**args)
581
+ end
582
+
583
+ # Update properties of this object
584
+ def update!(**args)
585
+ @buckets = args[:buckets] unless args[:buckets].nil?
586
+ @column_name = args[:column_name] unless args[:column_name].nil?
587
+ @gradient = args[:gradient] unless args[:gradient].nil?
588
+ @kind = args[:kind] unless args[:kind].nil?
589
+ end
590
+
591
+ # Gradient function that interpolates a range of colors based on column value.
592
+ class Gradient
593
+ include Google::Apis::Core::Hashable
594
+
595
+ # Array with two or more colors.
596
+ # Corresponds to the JSON property `colors`
597
+ # @return [Array<Google::Apis::FusiontablesV2::StyleFunction::Gradient::Color>]
598
+ attr_accessor :colors
599
+
600
+ # Higher-end of the interpolation range: rows with this value will be assigned
601
+ # to colors[n-1].
602
+ # Corresponds to the JSON property `max`
603
+ # @return [Float]
604
+ attr_accessor :max
605
+
606
+ # Lower-end of the interpolation range: rows with this value will be assigned to
607
+ # colors[0].
608
+ # Corresponds to the JSON property `min`
609
+ # @return [Float]
610
+ attr_accessor :min
611
+
612
+ def initialize(**args)
613
+ update!(**args)
614
+ end
615
+
616
+ # Update properties of this object
617
+ def update!(**args)
618
+ @colors = args[:colors] unless args[:colors].nil?
619
+ @max = args[:max] unless args[:max].nil?
620
+ @min = args[:min] unless args[:min].nil?
621
+ end
622
+
623
+ #
624
+ class Color
625
+ include Google::Apis::Core::Hashable
626
+
627
+ # Color in #RRGGBB format.
628
+ # Corresponds to the JSON property `color`
629
+ # @return [String]
630
+ attr_accessor :color
631
+
632
+ # Opacity of the color: 0.0 (transparent) to 1.0 (opaque).
633
+ # Corresponds to the JSON property `opacity`
634
+ # @return [Float]
635
+ attr_accessor :opacity
636
+
637
+ def initialize(**args)
638
+ update!(**args)
639
+ end
640
+
641
+ # Update properties of this object
642
+ def update!(**args)
643
+ @color = args[:color] unless args[:color].nil?
644
+ @opacity = args[:opacity] unless args[:opacity].nil?
645
+ end
646
+ end
647
+ end
648
+ end
649
+
650
+ # Represents a complete StyleSettings object. The primary key is a combination
651
+ # of the tableId and a styleId.
652
+ class StyleSetting
653
+ include Google::Apis::Core::Hashable
654
+
655
+ # The kind of item this is. A StyleSetting contains the style definitions for
656
+ # points, lines, and polygons in a table. Since a table can have any one or all
657
+ # of them, a style definition can have point, line and polygon style definitions.
658
+ # Corresponds to the JSON property `kind`
659
+ # @return [String]
660
+ attr_accessor :kind
661
+
662
+ # Represents a PointStyle within a StyleSetting
663
+ # Corresponds to the JSON property `markerOptions`
664
+ # @return [Google::Apis::FusiontablesV2::PointStyle]
665
+ attr_accessor :marker_options
666
+
667
+ # Optional name for the style setting.
668
+ # Corresponds to the JSON property `name`
669
+ # @return [String]
670
+ attr_accessor :name
671
+
672
+ # Represents a PolygonStyle within a StyleSetting
673
+ # Corresponds to the JSON property `polygonOptions`
674
+ # @return [Google::Apis::FusiontablesV2::PolygonStyle]
675
+ attr_accessor :polygon_options
676
+
677
+ # Represents a LineStyle within a StyleSetting
678
+ # Corresponds to the JSON property `polylineOptions`
679
+ # @return [Google::Apis::FusiontablesV2::LineStyle]
680
+ attr_accessor :polyline_options
681
+
682
+ # Identifier for the style setting (unique only within tables).
683
+ # Corresponds to the JSON property `styleId`
684
+ # @return [Fixnum]
685
+ attr_accessor :style_id
686
+
687
+ # Identifier for the table.
688
+ # Corresponds to the JSON property `tableId`
689
+ # @return [String]
690
+ attr_accessor :table_id
691
+
692
+ def initialize(**args)
693
+ update!(**args)
694
+ end
695
+
696
+ # Update properties of this object
697
+ def update!(**args)
698
+ @kind = args[:kind] unless args[:kind].nil?
699
+ @marker_options = args[:marker_options] unless args[:marker_options].nil?
700
+ @name = args[:name] unless args[:name].nil?
701
+ @polygon_options = args[:polygon_options] unless args[:polygon_options].nil?
702
+ @polyline_options = args[:polyline_options] unless args[:polyline_options].nil?
703
+ @style_id = args[:style_id] unless args[:style_id].nil?
704
+ @table_id = args[:table_id] unless args[:table_id].nil?
705
+ end
706
+ end
707
+
708
+ # Represents a list of styles for a given table.
709
+ class StyleSettingList
710
+ include Google::Apis::Core::Hashable
711
+
712
+ # All requested style settings.
713
+ # Corresponds to the JSON property `items`
714
+ # @return [Array<Google::Apis::FusiontablesV2::StyleSetting>]
715
+ attr_accessor :items
716
+
717
+ # The kind of item this is. For a style list, this is always fusiontables#
718
+ # styleSettingList .
719
+ # Corresponds to the JSON property `kind`
720
+ # @return [String]
721
+ attr_accessor :kind
722
+
723
+ # Token used to access the next page of this result. No token is displayed if
724
+ # there are no more styles left.
725
+ # Corresponds to the JSON property `nextPageToken`
726
+ # @return [String]
727
+ attr_accessor :next_page_token
728
+
729
+ # Total number of styles for the table.
730
+ # Corresponds to the JSON property `totalItems`
731
+ # @return [Fixnum]
732
+ attr_accessor :total_items
733
+
734
+ def initialize(**args)
735
+ update!(**args)
736
+ end
737
+
738
+ # Update properties of this object
739
+ def update!(**args)
740
+ @items = args[:items] unless args[:items].nil?
741
+ @kind = args[:kind] unless args[:kind].nil?
742
+ @next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
743
+ @total_items = args[:total_items] unless args[:total_items].nil?
744
+ end
745
+ end
746
+
747
+ # Represents a table.
748
+ class Table
749
+ include Google::Apis::Core::Hashable
750
+
751
+ # Attribution assigned to the table.
752
+ # Corresponds to the JSON property `attribution`
753
+ # @return [String]
754
+ attr_accessor :attribution
755
+
756
+ # Optional link for attribution.
757
+ # Corresponds to the JSON property `attributionLink`
758
+ # @return [String]
759
+ attr_accessor :attribution_link
760
+
761
+ # Base table identifier if this table is a view or merged table.
762
+ # Corresponds to the JSON property `baseTableIds`
763
+ # @return [Array<String>]
764
+ attr_accessor :base_table_ids
765
+
766
+ # Default JSON schema for validating all JSON column properties.
767
+ # Corresponds to the JSON property `columnPropertiesJsonSchema`
768
+ # @return [String]
769
+ attr_accessor :column_properties_json_schema
770
+
771
+ # Columns in the table.
772
+ # Corresponds to the JSON property `columns`
773
+ # @return [Array<Google::Apis::FusiontablesV2::Column>]
774
+ attr_accessor :columns
775
+
776
+ # Description assigned to the table.
777
+ # Corresponds to the JSON property `description`
778
+ # @return [String]
779
+ attr_accessor :description
780
+
781
+ # Variable for whether table is exportable.
782
+ # Corresponds to the JSON property `isExportable`
783
+ # @return [Boolean]
784
+ attr_accessor :is_exportable
785
+ alias_method :is_exportable?, :is_exportable
786
+
787
+ # The kind of item this is. For a table, this is always fusiontables#table.
788
+ # Corresponds to the JSON property `kind`
789
+ # @return [String]
790
+ attr_accessor :kind
791
+
792
+ # Name assigned to a table.
793
+ # Corresponds to the JSON property `name`
794
+ # @return [String]
795
+ attr_accessor :name
796
+
797
+ # SQL that encodes the table definition for derived tables.
798
+ # Corresponds to the JSON property `sql`
799
+ # @return [String]
800
+ attr_accessor :sql
801
+
802
+ # Encrypted unique alphanumeric identifier for the table.
803
+ # Corresponds to the JSON property `tableId`
804
+ # @return [String]
805
+ attr_accessor :table_id
806
+
807
+ # JSON object containing custom table properties.
808
+ # Corresponds to the JSON property `tablePropertiesJson`
809
+ # @return [String]
810
+ attr_accessor :table_properties_json
811
+
812
+ # JSON schema for validating the JSON table properties.
813
+ # Corresponds to the JSON property `tablePropertiesJsonSchema`
814
+ # @return [String]
815
+ attr_accessor :table_properties_json_schema
816
+
817
+ def initialize(**args)
818
+ update!(**args)
819
+ end
820
+
821
+ # Update properties of this object
822
+ def update!(**args)
823
+ @attribution = args[:attribution] unless args[:attribution].nil?
824
+ @attribution_link = args[:attribution_link] unless args[:attribution_link].nil?
825
+ @base_table_ids = args[:base_table_ids] unless args[:base_table_ids].nil?
826
+ @column_properties_json_schema = args[:column_properties_json_schema] unless args[:column_properties_json_schema].nil?
827
+ @columns = args[:columns] unless args[:columns].nil?
828
+ @description = args[:description] unless args[:description].nil?
829
+ @is_exportable = args[:is_exportable] unless args[:is_exportable].nil?
830
+ @kind = args[:kind] unless args[:kind].nil?
831
+ @name = args[:name] unless args[:name].nil?
832
+ @sql = args[:sql] unless args[:sql].nil?
833
+ @table_id = args[:table_id] unless args[:table_id].nil?
834
+ @table_properties_json = args[:table_properties_json] unless args[:table_properties_json].nil?
835
+ @table_properties_json_schema = args[:table_properties_json_schema] unless args[:table_properties_json_schema].nil?
836
+ end
837
+ end
838
+
839
+ # Represents a list of tables.
840
+ class TableList
841
+ include Google::Apis::Core::Hashable
842
+
843
+ # List of all requested tables.
844
+ # Corresponds to the JSON property `items`
845
+ # @return [Array<Google::Apis::FusiontablesV2::Table>]
846
+ attr_accessor :items
847
+
848
+ # The kind of item this is. For table list, this is always fusiontables#
849
+ # tableList.
850
+ # Corresponds to the JSON property `kind`
851
+ # @return [String]
852
+ attr_accessor :kind
853
+
854
+ # Token used to access the next page of this result. No token is displayed if
855
+ # there are no more pages left.
856
+ # Corresponds to the JSON property `nextPageToken`
857
+ # @return [String]
858
+ attr_accessor :next_page_token
859
+
860
+ def initialize(**args)
861
+ update!(**args)
862
+ end
863
+
864
+ # Update properties of this object
865
+ def update!(**args)
866
+ @items = args[:items] unless args[:items].nil?
867
+ @kind = args[:kind] unless args[:kind].nil?
868
+ @next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
869
+ end
870
+ end
871
+
872
+ # A background task on a table, initiated for time- or resource-consuming
873
+ # operations such as changing column types or deleting all rows.
874
+ class Task
875
+ include Google::Apis::Core::Hashable
876
+
877
+ # Type of the resource. This is always "fusiontables#task".
878
+ # Corresponds to the JSON property `kind`
879
+ # @return [String]
880
+ attr_accessor :kind
881
+
882
+ # Task percentage completion.
883
+ # Corresponds to the JSON property `progress`
884
+ # @return [String]
885
+ attr_accessor :progress
886
+
887
+ # false while the table is busy with some other task. true if this background
888
+ # task is currently running.
889
+ # Corresponds to the JSON property `started`
890
+ # @return [Boolean]
891
+ attr_accessor :started
892
+ alias_method :started?, :started
893
+
894
+ # Identifier for the task.
895
+ # Corresponds to the JSON property `taskId`
896
+ # @return [String]
897
+ attr_accessor :task_id
898
+
899
+ # Type of background task.
900
+ # Corresponds to the JSON property `type`
901
+ # @return [String]
902
+ attr_accessor :type
903
+
904
+ def initialize(**args)
905
+ update!(**args)
906
+ end
907
+
908
+ # Update properties of this object
909
+ def update!(**args)
910
+ @kind = args[:kind] unless args[:kind].nil?
911
+ @progress = args[:progress] unless args[:progress].nil?
912
+ @started = args[:started] unless args[:started].nil?
913
+ @task_id = args[:task_id] unless args[:task_id].nil?
914
+ @type = args[:type] unless args[:type].nil?
915
+ end
916
+ end
917
+
918
+ # Represents a list of tasks for a table.
919
+ class TaskList
920
+ include Google::Apis::Core::Hashable
921
+
922
+ # List of all requested tasks.
923
+ # Corresponds to the JSON property `items`
924
+ # @return [Array<Google::Apis::FusiontablesV2::Task>]
925
+ attr_accessor :items
926
+
927
+ # Type of the resource. This is always "fusiontables#taskList".
928
+ # Corresponds to the JSON property `kind`
929
+ # @return [String]
930
+ attr_accessor :kind
931
+
932
+ # Token used to access the next page of this result. No token is displayed if
933
+ # there are no more pages left.
934
+ # Corresponds to the JSON property `nextPageToken`
935
+ # @return [String]
936
+ attr_accessor :next_page_token
937
+
938
+ # Total number of tasks for the table.
939
+ # Corresponds to the JSON property `totalItems`
940
+ # @return [Fixnum]
941
+ attr_accessor :total_items
942
+
943
+ def initialize(**args)
944
+ update!(**args)
945
+ end
946
+
947
+ # Update properties of this object
948
+ def update!(**args)
949
+ @items = args[:items] unless args[:items].nil?
950
+ @kind = args[:kind] unless args[:kind].nil?
951
+ @next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
952
+ @total_items = args[:total_items] unless args[:total_items].nil?
953
+ end
954
+ end
955
+
956
+ # Represents the contents of InfoWindow templates.
957
+ class Template
958
+ include Google::Apis::Core::Hashable
959
+
960
+ # List of columns from which the template is to be automatically constructed.
961
+ # Only one of body or automaticColumns can be specified.
962
+ # Corresponds to the JSON property `automaticColumnNames`
963
+ # @return [Array<String>]
964
+ attr_accessor :automatic_column_names
965
+
966
+ # Body of the template. It contains HTML with `column_name` to insert values
967
+ # from a particular column. The body is sanitized to remove certain tags, e.g.,
968
+ # script. Only one of body or automaticColumns can be specified.
969
+ # Corresponds to the JSON property `body`
970
+ # @return [String]
971
+ attr_accessor :body
972
+
973
+ # The kind of item this is. For a template, this is always fusiontables#template.
974
+ # Corresponds to the JSON property `kind`
975
+ # @return [String]
976
+ attr_accessor :kind
977
+
978
+ # Optional name assigned to a template.
979
+ # Corresponds to the JSON property `name`
980
+ # @return [String]
981
+ attr_accessor :name
982
+
983
+ # Identifier for the table for which the template is defined.
984
+ # Corresponds to the JSON property `tableId`
985
+ # @return [String]
986
+ attr_accessor :table_id
987
+
988
+ # Identifier for the template, unique within the context of a particular table.
989
+ # Corresponds to the JSON property `templateId`
990
+ # @return [Fixnum]
991
+ attr_accessor :template_id
992
+
993
+ def initialize(**args)
994
+ update!(**args)
995
+ end
996
+
997
+ # Update properties of this object
998
+ def update!(**args)
999
+ @automatic_column_names = args[:automatic_column_names] unless args[:automatic_column_names].nil?
1000
+ @body = args[:body] unless args[:body].nil?
1001
+ @kind = args[:kind] unless args[:kind].nil?
1002
+ @name = args[:name] unless args[:name].nil?
1003
+ @table_id = args[:table_id] unless args[:table_id].nil?
1004
+ @template_id = args[:template_id] unless args[:template_id].nil?
1005
+ end
1006
+ end
1007
+
1008
+ # Represents a list of templates for a given table.
1009
+ class TemplateList
1010
+ include Google::Apis::Core::Hashable
1011
+
1012
+ # List of all requested templates.
1013
+ # Corresponds to the JSON property `items`
1014
+ # @return [Array<Google::Apis::FusiontablesV2::Template>]
1015
+ attr_accessor :items
1016
+
1017
+ # The kind of item this is. For a template list, this is always fusiontables#
1018
+ # templateList .
1019
+ # Corresponds to the JSON property `kind`
1020
+ # @return [String]
1021
+ attr_accessor :kind
1022
+
1023
+ # Token used to access the next page of this result. No token is displayed if
1024
+ # there are no more pages left.
1025
+ # Corresponds to the JSON property `nextPageToken`
1026
+ # @return [String]
1027
+ attr_accessor :next_page_token
1028
+
1029
+ # Total number of templates for the table.
1030
+ # Corresponds to the JSON property `totalItems`
1031
+ # @return [Fixnum]
1032
+ attr_accessor :total_items
1033
+
1034
+ def initialize(**args)
1035
+ update!(**args)
1036
+ end
1037
+
1038
+ # Update properties of this object
1039
+ def update!(**args)
1040
+ @items = args[:items] unless args[:items].nil?
1041
+ @kind = args[:kind] unless args[:kind].nil?
1042
+ @next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
1043
+ @total_items = args[:total_items] unless args[:total_items].nil?
1044
+ end
1045
+ end
1046
+ end
1047
+ end
1048
+ end