google-api-client 0.9.8 → 0.10.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (320) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +15 -8
  3. data/CHANGELOG.md +84 -0
  4. data/Gemfile +10 -2
  5. data/README.md +10 -2
  6. data/api_names.yaml +37172 -135
  7. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +35 -0
  8. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +1200 -0
  9. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +526 -0
  10. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +844 -0
  11. data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
  12. data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +310 -28
  13. data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +84 -0
  14. data/generated/google/apis/adexchangebuyer_v1_4/service.rb +60 -8
  15. data/generated/google/apis/adexchangeseller_v2_0.rb +2 -3
  16. data/generated/google/apis/adexchangeseller_v2_0/service.rb +1 -2
  17. data/generated/google/apis/admin_directory_v1.rb +1 -1
  18. data/generated/google/apis/admin_directory_v1/classes.rb +206 -0
  19. data/generated/google/apis/admin_directory_v1/representations.rb +63 -0
  20. data/generated/google/apis/admin_directory_v1/service.rb +41 -2
  21. data/generated/google/apis/admin_reports_v1.rb +5 -5
  22. data/generated/google/apis/admin_reports_v1/service.rb +6 -6
  23. data/generated/google/apis/adsense_v1_4.rb +1 -1
  24. data/generated/google/apis/adsense_v1_4/classes.rb +1 -1
  25. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  26. data/generated/google/apis/adsensehost_v4_1/classes.rb +1 -2
  27. data/generated/google/apis/analytics_v3.rb +1 -1
  28. data/generated/google/apis/analytics_v3/classes.rb +379 -3
  29. data/generated/google/apis/analytics_v3/representations.rb +136 -0
  30. data/generated/google/apis/analytics_v3/service.rb +256 -0
  31. data/generated/google/apis/analyticsreporting_v4.rb +1 -1
  32. data/generated/google/apis/analyticsreporting_v4/classes.rb +858 -823
  33. data/generated/google/apis/analyticsreporting_v4/representations.rb +194 -193
  34. data/generated/google/apis/analyticsreporting_v4/service.rb +4 -4
  35. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  36. data/generated/google/apis/androidenterprise_v1/classes.rb +913 -220
  37. data/generated/google/apis/androidenterprise_v1/representations.rb +337 -30
  38. data/generated/google/apis/androidenterprise_v1/service.rb +1163 -561
  39. data/generated/google/apis/androidpublisher_v2.rb +1 -1
  40. data/generated/google/apis/androidpublisher_v2/classes.rb +230 -8
  41. data/generated/google/apis/androidpublisher_v2/representations.rb +90 -0
  42. data/generated/google/apis/androidpublisher_v2/service.rb +116 -3
  43. data/generated/google/apis/appengine_v1beta5.rb +7 -1
  44. data/generated/google/apis/appengine_v1beta5/classes.rb +810 -395
  45. data/generated/google/apis/appengine_v1beta5/representations.rb +188 -22
  46. data/generated/google/apis/appengine_v1beta5/service.rb +343 -39
  47. data/generated/google/apis/appsactivity_v1.rb +3 -3
  48. data/generated/google/apis/appsactivity_v1/classes.rb +7 -0
  49. data/generated/google/apis/appsactivity_v1/representations.rb +1 -0
  50. data/generated/google/apis/appsactivity_v1/service.rb +1 -1
  51. data/generated/google/apis/appstate_v1.rb +1 -1
  52. data/generated/google/apis/bigquery_v2.rb +1 -1
  53. data/generated/google/apis/bigquery_v2/classes.rb +360 -38
  54. data/generated/google/apis/bigquery_v2/representations.rb +106 -0
  55. data/generated/google/apis/bigquery_v2/service.rb +18 -4
  56. data/generated/google/apis/books_v1.rb +2 -2
  57. data/generated/google/apis/books_v1/classes.rb +83 -0
  58. data/generated/google/apis/books_v1/representations.rb +35 -0
  59. data/generated/google/apis/books_v1/service.rb +7 -3
  60. data/generated/google/apis/calendar_v3.rb +1 -1
  61. data/generated/google/apis/calendar_v3/classes.rb +208 -5
  62. data/generated/google/apis/calendar_v3/representations.rb +97 -0
  63. data/generated/google/apis/civicinfo_v2.rb +3 -2
  64. data/generated/google/apis/civicinfo_v2/classes.rb +377 -5
  65. data/generated/google/apis/civicinfo_v2/representations.rb +149 -0
  66. data/generated/google/apis/civicinfo_v2/service.rb +27 -6
  67. data/generated/google/apis/classroom_v1.rb +22 -25
  68. data/generated/google/apis/classroom_v1/classes.rb +998 -761
  69. data/generated/google/apis/classroom_v1/representations.rb +263 -198
  70. data/generated/google/apis/classroom_v1/service.rb +1349 -672
  71. data/generated/google/apis/cloudbilling_v1.rb +3 -3
  72. data/generated/google/apis/cloudbilling_v1/classes.rb +76 -75
  73. data/generated/google/apis/cloudbilling_v1/representations.rb +17 -17
  74. data/generated/google/apis/cloudbilling_v1/service.rb +117 -110
  75. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  76. data/generated/google/apis/cloudbuild_v1/classes.rb +661 -264
  77. data/generated/google/apis/cloudbuild_v1/representations.rb +198 -48
  78. data/generated/google/apis/cloudbuild_v1/service.rb +259 -44
  79. data/generated/google/apis/clouddebugger_v2.rb +5 -8
  80. data/generated/google/apis/clouddebugger_v2/classes.rb +686 -616
  81. data/generated/google/apis/clouddebugger_v2/representations.rb +151 -151
  82. data/generated/google/apis/clouddebugger_v2/service.rb +165 -159
  83. data/generated/google/apis/cloudkms_v1.rb +35 -0
  84. data/generated/google/apis/cloudkms_v1/classes.rb +1022 -0
  85. data/generated/google/apis/cloudkms_v1/representations.rb +448 -0
  86. data/generated/google/apis/cloudkms_v1/service.rb +933 -0
  87. data/generated/google/apis/cloudkms_v1beta1.rb +35 -0
  88. data/generated/google/apis/cloudkms_v1beta1/classes.rb +1039 -0
  89. data/generated/google/apis/cloudkms_v1beta1/representations.rb +448 -0
  90. data/generated/google/apis/cloudkms_v1beta1/service.rb +933 -0
  91. data/generated/google/apis/cloudmonitoring_v2beta2.rb +1 -1
  92. data/generated/google/apis/cloudresourcemanager_v1.rb +4 -4
  93. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +1529 -167
  94. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +491 -26
  95. data/generated/google/apis/cloudresourcemanager_v1/service.rb +1593 -135
  96. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
  97. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +1155 -235
  98. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +344 -44
  99. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +702 -310
  100. data/generated/google/apis/cloudtrace_v1.rb +9 -9
  101. data/generated/google/apis/cloudtrace_v1/classes.rb +98 -92
  102. data/generated/google/apis/cloudtrace_v1/representations.rb +24 -24
  103. data/generated/google/apis/cloudtrace_v1/service.rb +42 -37
  104. data/generated/google/apis/compute_beta.rb +1 -1
  105. data/generated/google/apis/compute_beta/classes.rb +7007 -3648
  106. data/generated/google/apis/compute_beta/representations.rb +1459 -120
  107. data/generated/google/apis/compute_beta/service.rb +7943 -3726
  108. data/generated/google/apis/compute_v1.rb +1 -1
  109. data/generated/google/apis/compute_v1/classes.rb +2567 -370
  110. data/generated/google/apis/compute_v1/representations.rb +855 -0
  111. data/generated/google/apis/compute_v1/service.rb +6388 -2908
  112. data/generated/google/apis/container_v1.rb +1 -1
  113. data/generated/google/apis/container_v1/classes.rb +287 -16
  114. data/generated/google/apis/container_v1/representations.rb +113 -2
  115. data/generated/google/apis/container_v1/service.rb +130 -0
  116. data/generated/google/apis/content_v2.rb +1 -1
  117. data/generated/google/apis/content_v2/classes.rb +778 -10
  118. data/generated/google/apis/content_v2/representations.rb +339 -0
  119. data/generated/google/apis/content_v2/service.rb +364 -49
  120. data/generated/google/apis/dataflow_v1b3.rb +37 -0
  121. data/generated/google/apis/dataflow_v1b3/classes.rb +4941 -0
  122. data/generated/google/apis/dataflow_v1b3/representations.rb +2037 -0
  123. data/generated/google/apis/dataflow_v1b3/service.rb +957 -0
  124. data/generated/google/apis/dataproc_v1.rb +1 -1
  125. data/generated/google/apis/dataproc_v1/classes.rb +1235 -963
  126. data/generated/google/apis/dataproc_v1/representations.rb +299 -225
  127. data/generated/google/apis/dataproc_v1/service.rb +277 -192
  128. data/generated/google/apis/datastore_v1.rb +38 -0
  129. data/generated/google/apis/datastore_v1/classes.rb +1289 -0
  130. data/generated/google/apis/datastore_v1/representations.rb +572 -0
  131. data/generated/google/apis/datastore_v1/service.rb +259 -0
  132. data/generated/google/apis/datastore_v1beta3.rb +38 -0
  133. data/generated/google/apis/datastore_v1beta3/classes.rb +1284 -0
  134. data/generated/google/apis/datastore_v1beta3/representations.rb +572 -0
  135. data/generated/google/apis/datastore_v1beta3/service.rb +259 -0
  136. data/generated/google/apis/deploymentmanager_v2.rb +1 -1
  137. data/generated/google/apis/deploymentmanager_v2/classes.rb +436 -3
  138. data/generated/google/apis/deploymentmanager_v2/representations.rb +178 -0
  139. data/generated/google/apis/deploymentmanager_v2/service.rb +226 -61
  140. data/generated/google/apis/dfareporting_v2_5.rb +40 -0
  141. data/generated/google/apis/dfareporting_v2_5/classes.rb +11225 -0
  142. data/generated/google/apis/dfareporting_v2_5/representations.rb +3982 -0
  143. data/generated/google/apis/dfareporting_v2_5/service.rb +8755 -0
  144. data/generated/google/apis/dfareporting_v2_6.rb +40 -0
  145. data/generated/google/apis/dfareporting_v2_6/classes.rb +11586 -0
  146. data/generated/google/apis/dfareporting_v2_6/representations.rb +4119 -0
  147. data/generated/google/apis/dfareporting_v2_6/service.rb +9025 -0
  148. data/generated/google/apis/dfareporting_v2_7.rb +40 -0
  149. data/generated/google/apis/dfareporting_v2_7/classes.rb +11876 -0
  150. data/generated/google/apis/dfareporting_v2_7/representations.rb +4243 -0
  151. data/generated/google/apis/dfareporting_v2_7/service.rb +9095 -0
  152. data/generated/google/apis/dns_v1.rb +1 -1
  153. data/generated/google/apis/dns_v1/classes.rb +1 -1
  154. data/generated/google/apis/dns_v2beta1.rb +43 -0
  155. data/generated/google/apis/dns_v2beta1/classes.rb +915 -0
  156. data/generated/google/apis/dns_v2beta1/representations.rb +368 -0
  157. data/generated/google/apis/dns_v2beta1/service.rb +768 -0
  158. data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
  159. data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +79 -86
  160. data/generated/google/apis/doubleclickbidmanager_v1/representations.rb +25 -28
  161. data/generated/google/apis/doubleclickbidmanager_v1/service.rb +10 -8
  162. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  163. data/generated/google/apis/doubleclicksearch_v2/classes.rb +6 -4
  164. data/generated/google/apis/drive_v2.rb +1 -1
  165. data/generated/google/apis/drive_v2/classes.rb +595 -37
  166. data/generated/google/apis/drive_v2/representations.rb +140 -0
  167. data/generated/google/apis/drive_v2/service.rb +406 -40
  168. data/generated/google/apis/drive_v3.rb +1 -1
  169. data/generated/google/apis/drive_v3/classes.rb +507 -40
  170. data/generated/google/apis/drive_v3/representations.rb +105 -0
  171. data/generated/google/apis/drive_v3/service.rb +326 -29
  172. data/generated/google/apis/fitness_v1.rb +38 -2
  173. data/generated/google/apis/fitness_v1/classes.rb +65 -7
  174. data/generated/google/apis/fitness_v1/representations.rb +20 -0
  175. data/generated/google/apis/fitness_v1/service.rb +17 -18
  176. data/generated/google/apis/fusiontables_v2.rb +1 -1
  177. data/generated/google/apis/fusiontables_v2/classes.rb +4 -3
  178. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  179. data/generated/google/apis/games_management_v1management.rb +1 -1
  180. data/generated/google/apis/games_v1.rb +1 -1
  181. data/generated/google/apis/genomics_v1.rb +10 -12
  182. data/generated/google/apis/genomics_v1/classes.rb +2276 -2165
  183. data/generated/google/apis/genomics_v1/representations.rb +468 -496
  184. data/generated/google/apis/genomics_v1/service.rb +978 -882
  185. data/generated/google/apis/gmail_v1.rb +11 -2
  186. data/generated/google/apis/gmail_v1/classes.rb +655 -5
  187. data/generated/google/apis/gmail_v1/representations.rb +261 -0
  188. data/generated/google/apis/gmail_v1/service.rb +1211 -48
  189. data/generated/google/apis/groupssettings_v1.rb +2 -2
  190. data/generated/google/apis/groupssettings_v1/classes.rb +12 -0
  191. data/generated/google/apis/groupssettings_v1/representations.rb +2 -0
  192. data/generated/google/apis/iam_v1.rb +2 -2
  193. data/generated/google/apis/iam_v1/classes.rb +446 -368
  194. data/generated/google/apis/iam_v1/representations.rb +109 -91
  195. data/generated/google/apis/iam_v1/service.rb +249 -162
  196. data/generated/google/apis/identitytoolkit_v3.rb +7 -1
  197. data/generated/google/apis/identitytoolkit_v3/classes.rb +254 -2
  198. data/generated/google/apis/identitytoolkit_v3/representations.rb +38 -0
  199. data/generated/google/apis/kgsearch_v1.rb +2 -3
  200. data/generated/google/apis/kgsearch_v1/classes.rb +13 -13
  201. data/generated/google/apis/kgsearch_v1/representations.rb +2 -2
  202. data/generated/google/apis/kgsearch_v1/service.rb +26 -24
  203. data/generated/google/apis/language_v1beta1.rb +36 -0
  204. data/generated/google/apis/language_v1beta1/classes.rb +757 -0
  205. data/generated/google/apis/language_v1beta1/representations.rb +339 -0
  206. data/generated/google/apis/language_v1beta1/service.rb +185 -0
  207. data/generated/google/apis/licensing_v1.rb +3 -3
  208. data/generated/google/apis/licensing_v1/classes.rb +14 -2
  209. data/generated/google/apis/licensing_v1/representations.rb +2 -0
  210. data/generated/google/apis/licensing_v1/service.rb +1 -1
  211. data/generated/google/apis/logging_v2beta1.rb +6 -6
  212. data/generated/google/apis/logging_v2beta1/classes.rb +900 -775
  213. data/generated/google/apis/logging_v2beta1/representations.rb +163 -142
  214. data/generated/google/apis/logging_v2beta1/service.rb +427 -155
  215. data/generated/google/apis/manufacturers_v1.rb +34 -0
  216. data/generated/google/apis/manufacturers_v1/classes.rb +605 -0
  217. data/generated/google/apis/manufacturers_v1/representations.rb +223 -0
  218. data/generated/google/apis/manufacturers_v1/service.rb +138 -0
  219. data/generated/google/apis/mirror_v1.rb +2 -2
  220. data/generated/google/apis/mirror_v1/service.rb +1 -1
  221. data/generated/google/apis/monitoring_v3.rb +45 -0
  222. data/generated/google/apis/monitoring_v3/classes.rb +1333 -0
  223. data/generated/google/apis/monitoring_v3/representations.rb +516 -0
  224. data/generated/google/apis/monitoring_v3/service.rb +706 -0
  225. data/generated/google/apis/oauth2_v2.rb +1 -1
  226. data/generated/google/apis/pagespeedonline_v2.rb +1 -1
  227. data/generated/google/apis/partners_v2.rb +3 -3
  228. data/generated/google/apis/partners_v2/classes.rb +1831 -477
  229. data/generated/google/apis/partners_v2/representations.rb +571 -114
  230. data/generated/google/apis/partners_v2/service.rb +898 -167
  231. data/generated/google/apis/people_v1.rb +15 -16
  232. data/generated/google/apis/people_v1/classes.rb +1047 -859
  233. data/generated/google/apis/people_v1/representations.rb +252 -213
  234. data/generated/google/apis/people_v1/service.rb +75 -62
  235. data/generated/google/apis/plus_domains_v1.rb +1 -1
  236. data/generated/google/apis/plus_v1.rb +1 -1
  237. data/generated/google/apis/proximitybeacon_v1beta1.rb +1 -1
  238. data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +527 -456
  239. data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +101 -100
  240. data/generated/google/apis/proximitybeacon_v1beta1/service.rb +467 -343
  241. data/generated/google/apis/pubsub_v1.rb +1 -1
  242. data/generated/google/apis/pubsub_v1/classes.rb +363 -310
  243. data/generated/google/apis/pubsub_v1/representations.rb +76 -76
  244. data/generated/google/apis/pubsub_v1/service.rb +464 -335
  245. data/generated/google/apis/qpx_express_v1.rb +1 -1
  246. data/generated/google/apis/qpx_express_v1/classes.rb +6 -0
  247. data/generated/google/apis/qpx_express_v1/representations.rb +1 -0
  248. data/generated/google/apis/replicapool_v1beta2.rb +1 -1
  249. data/generated/google/apis/replicapoolupdater_v1beta1.rb +4 -2
  250. data/generated/google/apis/replicapoolupdater_v1beta1/service.rb +3 -1
  251. data/generated/google/apis/reseller_v1.rb +1 -1
  252. data/generated/google/apis/reseller_v1/classes.rb +222 -61
  253. data/generated/google/apis/reseller_v1/representations.rb +28 -0
  254. data/generated/google/apis/reseller_v1/service.rb +240 -47
  255. data/generated/google/apis/script_v1.rb +19 -19
  256. data/generated/google/apis/script_v1/classes.rb +151 -137
  257. data/generated/google/apis/script_v1/representations.rb +26 -26
  258. data/generated/google/apis/script_v1/service.rb +9 -8
  259. data/generated/google/apis/sheets_v4.rb +7 -7
  260. data/generated/google/apis/sheets_v4/classes.rb +4530 -3506
  261. data/generated/google/apis/sheets_v4/representations.rb +988 -737
  262. data/generated/google/apis/sheets_v4/service.rb +266 -99
  263. data/generated/google/apis/site_verification_v1.rb +1 -1
  264. data/generated/google/apis/slides_v1.rb +49 -0
  265. data/generated/google/apis/slides_v1/classes.rb +4480 -0
  266. data/generated/google/apis/slides_v1/representations.rb +1926 -0
  267. data/generated/google/apis/slides_v1/service.rb +245 -0
  268. data/generated/google/apis/speech_v1beta1.rb +34 -0
  269. data/generated/google/apis/speech_v1beta1/classes.rb +498 -0
  270. data/generated/google/apis/speech_v1beta1/representations.rb +206 -0
  271. data/generated/google/apis/speech_v1beta1/service.rb +270 -0
  272. data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
  273. data/generated/google/apis/sqladmin_v1beta4/classes.rb +131 -10
  274. data/generated/google/apis/sqladmin_v1beta4/representations.rb +50 -0
  275. data/generated/google/apis/sqladmin_v1beta4/service.rb +92 -2
  276. data/generated/google/apis/storage_v1.rb +1 -1
  277. data/generated/google/apis/storage_v1/classes.rb +205 -21
  278. data/generated/google/apis/storage_v1/representations.rb +51 -1
  279. data/generated/google/apis/storage_v1/service.rb +263 -9
  280. data/generated/google/apis/tagmanager_v1.rb +5 -5
  281. data/generated/google/apis/translate_v2.rb +2 -2
  282. data/generated/google/apis/translate_v2/service.rb +1 -1
  283. data/generated/google/apis/vision_v1.rb +1 -1
  284. data/generated/google/apis/vision_v1/classes.rb +1275 -731
  285. data/generated/google/apis/vision_v1/representations.rb +378 -111
  286. data/generated/google/apis/vision_v1/service.rb +4 -4
  287. data/generated/google/apis/webmasters_v3.rb +1 -1
  288. data/generated/google/apis/youtube_analytics_v1.rb +1 -1
  289. data/generated/google/apis/youtube_analytics_v1/classes.rb +0 -209
  290. data/generated/google/apis/youtube_analytics_v1/representations.rb +0 -99
  291. data/generated/google/apis/youtube_analytics_v1/service.rb +5 -77
  292. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  293. data/generated/google/apis/youtube_partner_v1/classes.rb +155 -0
  294. data/generated/google/apis/youtube_partner_v1/representations.rb +69 -0
  295. data/generated/google/apis/youtube_partner_v1/service.rb +107 -3
  296. data/generated/google/apis/youtube_v3.rb +1 -1
  297. data/generated/google/apis/youtube_v3/classes.rb +430 -22
  298. data/generated/google/apis/youtube_v3/representations.rb +171 -4
  299. data/generated/google/apis/youtube_v3/service.rb +100 -9
  300. data/generated/google/apis/youtubereporting_v1.rb +4 -4
  301. data/generated/google/apis/youtubereporting_v1/classes.rb +140 -131
  302. data/generated/google/apis/youtubereporting_v1/representations.rb +37 -37
  303. data/generated/google/apis/youtubereporting_v1/service.rb +139 -135
  304. data/google-api-client.gemspec +4 -3
  305. data/lib/google/apis/core/api_command.rb +16 -6
  306. data/lib/google/apis/core/base_service.rb +17 -9
  307. data/lib/google/apis/core/download.rb +7 -2
  308. data/lib/google/apis/core/http_command.rb +5 -1
  309. data/lib/google/apis/core/json_representation.rb +2 -2
  310. data/lib/google/apis/core/upload.rb +7 -1
  311. data/lib/google/apis/errors.rb +6 -2
  312. data/lib/google/apis/generator/annotator.rb +6 -0
  313. data/lib/google/apis/version.rb +1 -1
  314. data/samples/cli/lib/samples/bigquery.rb +101 -0
  315. data/samples/cli/lib/samples/calendar.rb +1 -1
  316. data/samples/cli/lib/samples/gmail.rb +74 -0
  317. data/samples/cli/lib/samples/sheets.rb +61 -0
  318. data/samples/cli/lib/samples/you_tube.rb +4 -1
  319. data/sync.rb +71 -0
  320. metadata +86 -18
@@ -18,16 +18,16 @@ require 'google/apis/appsactivity_v1/representations.rb'
18
18
 
19
19
  module Google
20
20
  module Apis
21
- # Google Apps Activity API
21
+ # G Suite Activity API
22
22
  #
23
23
  # Provides a historical view of activity.
24
24
  #
25
25
  # @see https://developers.google.com/google-apps/activity/
26
26
  module AppsactivityV1
27
27
  VERSION = 'V1'
28
- REVISION = '20160129'
28
+ REVISION = '20170215'
29
29
 
30
- # View the activity history of your Google Apps
30
+ # View the activity history of your Google apps
31
31
  AUTH_ACTIVITY = 'https://www.googleapis.com/auth/activity'
32
32
 
33
33
  # View and manage the files in your Google Drive
@@ -374,6 +374,12 @@ module Google
374
374
  attr_accessor :is_deleted
375
375
  alias_method :is_deleted?, :is_deleted
376
376
 
377
+ # Whether the user is the authenticated user.
378
+ # Corresponds to the JSON property `isMe`
379
+ # @return [Boolean]
380
+ attr_accessor :is_me
381
+ alias_method :is_me?, :is_me
382
+
377
383
  # The displayable name of the user.
378
384
  # Corresponds to the JSON property `name`
379
385
  # @return [String]
@@ -398,6 +404,7 @@ module Google
398
404
  # Update properties of this object
399
405
  def update!(**args)
400
406
  @is_deleted = args[:is_deleted] if args.key?(:is_deleted)
407
+ @is_me = args[:is_me] if args.key?(:is_me)
401
408
  @name = args[:name] if args.key?(:name)
402
409
  @permission_id = args[:permission_id] if args.key?(:permission_id)
403
410
  @photo = args[:photo] if args.key?(:photo)
@@ -197,6 +197,7 @@ module Google
197
197
  # @private
198
198
  class Representation < Google::Apis::Core::JsonRepresentation
199
199
  property :is_deleted, as: 'isDeleted'
200
+ property :is_me, as: 'isMe'
200
201
  property :name, as: 'name'
201
202
  property :permission_id, as: 'permissionId'
202
203
  property :photo, as: 'photo', class: Google::Apis::AppsactivityV1::Photo, decorator: Google::Apis::AppsactivityV1::Photo::Representation
@@ -20,7 +20,7 @@ require 'google/apis/errors'
20
20
  module Google
21
21
  module Apis
22
22
  module AppsactivityV1
23
- # Google Apps Activity API
23
+ # G Suite Activity API
24
24
  #
25
25
  # Provides a historical view of activity.
26
26
  #
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://developers.google.com/games/services/web/api/states
26
26
  module AppstateV1
27
27
  VERSION = 'V1'
28
- REVISION = '20160519'
28
+ REVISION = '20170323'
29
29
 
30
30
  # View and manage your data for this application
31
31
  AUTH_APPSTATE = 'https://www.googleapis.com/auth/appstate'
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://cloud.google.com/bigquery/
26
26
  module BigqueryV2
27
27
  VERSION = 'V2'
28
- REVISION = '20160511'
28
+ REVISION = '20170319'
29
29
 
30
30
  # View and manage your data in Google BigQuery
31
31
  AUTH_BIGQUERY = 'https://www.googleapis.com/auth/bigquery'
@@ -70,7 +70,7 @@ module Google
70
70
  # [Optional] The type to convert the value in cells of this column. The values
71
71
  # are expected to be encoded using HBase Bytes.toBytes function when using the
72
72
  # BINARY encoding value. Following BigQuery types are allowed (case-sensitive) -
73
- # BYTES STRING INTEGER FLOAT BOOLEAN Defaut type is BYTES. 'type' can also be
73
+ # BYTES STRING INTEGER FLOAT BOOLEAN Default type is BYTES. 'type' can also be
74
74
  # set at the column family level. However, the setting at this level takes
75
75
  # precedence if 'type' is set at both levels.
76
76
  # Corresponds to the JSON property `type`
@@ -130,9 +130,9 @@ module Google
130
130
  # [Optional] The type to convert the value in cells of this column family. The
131
131
  # values are expected to be encoded using HBase Bytes.toBytes function when
132
132
  # using the BINARY encoding value. Following BigQuery types are allowed (case-
133
- # sensitive) - BYTES STRING INTEGER FLOAT BOOLEAN Defaut type is BYTES. This can
134
- # be overridden for a specific column by listing that column in 'columns' and
135
- # specifying a type for it.
133
+ # sensitive) - BYTES STRING INTEGER FLOAT BOOLEAN Default type is BYTES. This
134
+ # can be overridden for a specific column by listing that column in 'columns'
135
+ # and specifying a type for it.
136
136
  # Corresponds to the JSON property `type`
137
137
  # @return [String]
138
138
  attr_accessor :type
@@ -174,6 +174,14 @@ module Google
174
174
  attr_accessor :ignore_unspecified_column_families
175
175
  alias_method :ignore_unspecified_column_families?, :ignore_unspecified_column_families
176
176
 
177
+ # [Optional] If field is true, then the rowkey column families will be read and
178
+ # converted to string. Otherwise they are read with BYTES type values and users
179
+ # need to manually cast them with CAST if necessary. The default value is false.
180
+ # Corresponds to the JSON property `readRowkeyAsString`
181
+ # @return [Boolean]
182
+ attr_accessor :read_rowkey_as_string
183
+ alias_method :read_rowkey_as_string?, :read_rowkey_as_string
184
+
177
185
  def initialize(**args)
178
186
  update!(**args)
179
187
  end
@@ -182,6 +190,7 @@ module Google
182
190
  def update!(**args)
183
191
  @column_families = args[:column_families] if args.key?(:column_families)
184
192
  @ignore_unspecified_column_families = args[:ignore_unspecified_column_families] if args.key?(:ignore_unspecified_column_families)
193
+ @read_rowkey_as_string = args[:read_rowkey_as_string] if args.key?(:read_rowkey_as_string)
185
194
  end
186
195
  end
187
196
 
@@ -325,14 +334,21 @@ module Google
325
334
  # @return [String]
326
335
  attr_accessor :kind
327
336
 
337
+ # The labels associated with this dataset. You can use these to organize and
338
+ # group your datasets. You can set this property when inserting or updating a
339
+ # dataset. See Labeling Datasets for more information.
340
+ # Corresponds to the JSON property `labels`
341
+ # @return [Hash<String,String>]
342
+ attr_accessor :labels
343
+
328
344
  # [Output-only] The date when this dataset or any of its tables was last
329
345
  # modified, in milliseconds since the epoch.
330
346
  # Corresponds to the JSON property `lastModifiedTime`
331
347
  # @return [String]
332
348
  attr_accessor :last_modified_time
333
349
 
334
- # [Experimental] The geographic location where the dataset should reside.
335
- # Possible values include EU and US. The default value is US.
350
+ # The geographic location where the dataset should reside. Possible values
351
+ # include EU and US. The default value is US.
336
352
  # Corresponds to the JSON property `location`
337
353
  # @return [String]
338
354
  attr_accessor :location
@@ -358,6 +374,7 @@ module Google
358
374
  @friendly_name = args[:friendly_name] if args.key?(:friendly_name)
359
375
  @id = args[:id] if args.key?(:id)
360
376
  @kind = args[:kind] if args.key?(:kind)
377
+ @labels = args[:labels] if args.key?(:labels)
361
378
  @last_modified_time = args[:last_modified_time] if args.key?(:last_modified_time)
362
379
  @location = args[:location] if args.key?(:location)
363
380
  @self_link = args[:self_link] if args.key?(:self_link)
@@ -490,6 +507,12 @@ module Google
490
507
  # @return [String]
491
508
  attr_accessor :kind
492
509
 
510
+ # The labels associated with this dataset. You can use these to organize and
511
+ # group your datasets.
512
+ # Corresponds to the JSON property `labels`
513
+ # @return [Hash<String,String>]
514
+ attr_accessor :labels
515
+
493
516
  def initialize(**args)
494
517
  update!(**args)
495
518
  end
@@ -500,6 +523,7 @@ module Google
500
523
  @friendly_name = args[:friendly_name] if args.key?(:friendly_name)
501
524
  @id = args[:id] if args.key?(:id)
502
525
  @kind = args[:kind] if args.key?(:kind)
526
+ @labels = args[:labels] if args.key?(:labels)
503
527
  end
504
528
  end
505
529
  end
@@ -613,6 +637,11 @@ module Google
613
637
  # @return [String]
614
638
  attr_accessor :records_written
615
639
 
640
+ # Current status for the stage.
641
+ # Corresponds to the JSON property `status`
642
+ # @return [String]
643
+ attr_accessor :status
644
+
616
645
  # List of operations within the stage in dependency order (approximately
617
646
  # chronological).
618
647
  # Corresponds to the JSON property `steps`
@@ -653,6 +682,7 @@ module Google
653
682
  @read_ratio_max = args[:read_ratio_max] if args.key?(:read_ratio_max)
654
683
  @records_read = args[:records_read] if args.key?(:records_read)
655
684
  @records_written = args[:records_written] if args.key?(:records_written)
685
+ @status = args[:status] if args.key?(:status)
656
686
  @steps = args[:steps] if args.key?(:steps)
657
687
  @wait_ratio_avg = args[:wait_ratio_avg] if args.key?(:wait_ratio_avg)
658
688
  @wait_ratio_max = args[:wait_ratio_max] if args.key?(:wait_ratio_max)
@@ -690,8 +720,8 @@ module Google
690
720
  class ExternalDataConfiguration
691
721
  include Google::Apis::Core::Hashable
692
722
 
693
- # [Experimental] Try to detect schema and format options automatically. Any
694
- # option specified explicitly will be honored.
723
+ # Try to detect schema and format options automatically. Any option specified
724
+ # explicitly will be honored.
695
725
  # Corresponds to the JSON property `autodetect`
696
726
  # @return [Boolean]
697
727
  attr_accessor :autodetect
@@ -752,10 +782,8 @@ module Google
752
782
  # [Required] The data format. For CSV files, specify "CSV". For Google sheets,
753
783
  # specify "GOOGLE_SHEETS". For newline-delimited JSON, specify "
754
784
  # NEWLINE_DELIMITED_JSON". For Avro files, specify "AVRO". For Google Cloud
755
- # Datastore backups, specify "DATASTORE_BACKUP". [Experimental] For Google Cloud
756
- # Bigtable, specify "BIGTABLE". Please note that reading from Google Cloud
757
- # Bigtable is experimental and has to be enabled for your project. Please
758
- # contact Google Cloud Support to enable this for your project.
785
+ # Datastore backups, specify "DATASTORE_BACKUP". [Beta] For Google Cloud
786
+ # Bigtable, specify "BIGTABLE".
759
787
  # Corresponds to the JSON property `sourceFormat`
760
788
  # @return [String]
761
789
  attr_accessor :source_format
@@ -834,6 +862,12 @@ module Google
834
862
  # @return [String]
835
863
  attr_accessor :kind
836
864
 
865
+ # [Output-only] The number of rows affected by a DML statement. Present only for
866
+ # DML statements INSERT, UPDATE or DELETE.
867
+ # Corresponds to the JSON property `numDmlAffectedRows`
868
+ # @return [String]
869
+ attr_accessor :num_dml_affected_rows
870
+
837
871
  # A token used for paging results.
838
872
  # Corresponds to the JSON property `pageToken`
839
873
  # @return [String]
@@ -876,6 +910,7 @@ module Google
876
910
  @job_complete = args[:job_complete] if args.key?(:job_complete)
877
911
  @job_reference = args[:job_reference] if args.key?(:job_reference)
878
912
  @kind = args[:kind] if args.key?(:kind)
913
+ @num_dml_affected_rows = args[:num_dml_affected_rows] if args.key?(:num_dml_affected_rows)
879
914
  @page_token = args[:page_token] if args.key?(:page_token)
880
915
  @rows = args[:rows] if args.key?(:rows)
881
916
  @schema = args[:schema] if args.key?(:schema)
@@ -1030,6 +1065,16 @@ module Google
1030
1065
  # @return [Google::Apis::BigqueryV2::JobConfigurationExtract]
1031
1066
  attr_accessor :extract
1032
1067
 
1068
+ # [Experimental] The labels associated with this job. You can use these to
1069
+ # organize and group your jobs. Label keys and values can be no longer than 63
1070
+ # characters, can only contain lowercase letters, numeric characters,
1071
+ # underscores and dashes. International characters are allowed. Label values are
1072
+ # optional. Label keys must start with a letter and each label in the list must
1073
+ # have a different key.
1074
+ # Corresponds to the JSON property `labels`
1075
+ # @return [Hash<String,String>]
1076
+ attr_accessor :labels
1077
+
1033
1078
  # [Pick one] Configures a load job.
1034
1079
  # Corresponds to the JSON property `load`
1035
1080
  # @return [Google::Apis::BigqueryV2::JobConfigurationLoad]
@@ -1049,6 +1094,7 @@ module Google
1049
1094
  @copy = args[:copy] if args.key?(:copy)
1050
1095
  @dry_run = args[:dry_run] if args.key?(:dry_run)
1051
1096
  @extract = args[:extract] if args.key?(:extract)
1097
+ @labels = args[:labels] if args.key?(:labels)
1052
1098
  @load = args[:load] if args.key?(:load)
1053
1099
  @query = args[:query] if args.key?(:query)
1054
1100
  end
@@ -1137,8 +1183,8 @@ module Google
1137
1183
  attr_accessor :allow_quoted_newlines
1138
1184
  alias_method :allow_quoted_newlines?, :allow_quoted_newlines
1139
1185
 
1140
- # [Experimental] Indicates if we should automatically infer the options and
1141
- # schema for CSV and JSON sources.
1186
+ # Indicates if we should automatically infer the options and schema for CSV and
1187
+ # JSON sources.
1142
1188
  # Corresponds to the JSON property `autodetect`
1143
1189
  # @return [Boolean]
1144
1190
  attr_accessor :autodetect
@@ -1197,12 +1243,21 @@ module Google
1197
1243
  # @return [Fixnum]
1198
1244
  attr_accessor :max_bad_records
1199
1245
 
1200
- # [Experimental] If sourceFormat is set to "DATASTORE_BACKUP", indicates which
1201
- # entity properties to load into BigQuery from a Cloud Datastore backup.
1202
- # Property names are case sensitive and must be top-level properties. If no
1203
- # properties are specified, BigQuery loads all properties. If any named property
1204
- # isn't found in the Cloud Datastore backup, an invalid error is returned in the
1205
- # job result.
1246
+ # [Optional] Specifies a string that represents a null value in a CSV file. For
1247
+ # example, if you specify "\N", BigQuery interprets "\N" as a null value when
1248
+ # loading a CSV file. The default value is the empty string. If you set this
1249
+ # property to a custom value, BigQuery still interprets the empty string as a
1250
+ # null value for all data types except for STRING and BYTE. For STRING and BYTE
1251
+ # columns, BigQuery interprets the empty string as an empty value.
1252
+ # Corresponds to the JSON property `nullMarker`
1253
+ # @return [String]
1254
+ attr_accessor :null_marker
1255
+
1256
+ # If sourceFormat is set to "DATASTORE_BACKUP", indicates which entity
1257
+ # properties to load into BigQuery from a Cloud Datastore backup. Property names
1258
+ # are case sensitive and must be top-level properties. If no properties are
1259
+ # specified, BigQuery loads all properties. If any named property isn't found in
1260
+ # the Cloud Datastore backup, an invalid error is returned in the job result.
1206
1261
  # Corresponds to the JSON property `projectionFields`
1207
1262
  # @return [Array<String>]
1208
1263
  attr_accessor :projection_fields
@@ -1236,6 +1291,18 @@ module Google
1236
1291
  # @return [String]
1237
1292
  attr_accessor :schema_inline_format
1238
1293
 
1294
+ # [Experimental] Allows the schema of the desitination table to be updated as a
1295
+ # side effect of the load job. Schema update options are supported in two cases:
1296
+ # when writeDisposition is WRITE_APPEND; when writeDisposition is WRITE_TRUNCATE
1297
+ # and the destination table is a partition of a table, specified by partition
1298
+ # decorators. For normal tables, WRITE_TRUNCATE will always overwrite the schema.
1299
+ # One or more of the following values are specified: ALLOW_FIELD_ADDITION:
1300
+ # allow adding a nullable field to the schema. ALLOW_FIELD_RELAXATION: allow
1301
+ # relaxing a required field in the original schema to nullable.
1302
+ # Corresponds to the JSON property `schemaUpdateOptions`
1303
+ # @return [Array<String>]
1304
+ attr_accessor :schema_update_options
1305
+
1239
1306
  # [Optional] The number of rows at the top of a CSV file that BigQuery will skip
1240
1307
  # when loading the data. The default value is 0. This property is useful if you
1241
1308
  # have header rows in the file that should be skipped.
@@ -1285,11 +1352,13 @@ module Google
1285
1352
  @field_delimiter = args[:field_delimiter] if args.key?(:field_delimiter)
1286
1353
  @ignore_unknown_values = args[:ignore_unknown_values] if args.key?(:ignore_unknown_values)
1287
1354
  @max_bad_records = args[:max_bad_records] if args.key?(:max_bad_records)
1355
+ @null_marker = args[:null_marker] if args.key?(:null_marker)
1288
1356
  @projection_fields = args[:projection_fields] if args.key?(:projection_fields)
1289
1357
  @quote = args[:quote] if args.key?(:quote)
1290
1358
  @schema = args[:schema] if args.key?(:schema)
1291
1359
  @schema_inline = args[:schema_inline] if args.key?(:schema_inline)
1292
1360
  @schema_inline_format = args[:schema_inline_format] if args.key?(:schema_inline_format)
1361
+ @schema_update_options = args[:schema_update_options] if args.key?(:schema_update_options)
1293
1362
  @skip_leading_rows = args[:skip_leading_rows] if args.key?(:skip_leading_rows)
1294
1363
  @source_format = args[:source_format] if args.key?(:source_format)
1295
1364
  @source_uris = args[:source_uris] if args.key?(:source_uris)
@@ -1344,6 +1413,19 @@ module Google
1344
1413
  # @return [Fixnum]
1345
1414
  attr_accessor :maximum_billing_tier
1346
1415
 
1416
+ # [Optional] Limits the bytes billed for this job. Queries that will have bytes
1417
+ # billed beyond this limit will fail (without incurring a charge). If
1418
+ # unspecified, this will be set to your project default.
1419
+ # Corresponds to the JSON property `maximumBytesBilled`
1420
+ # @return [String]
1421
+ attr_accessor :maximum_bytes_billed
1422
+
1423
+ # Standard SQL only. Set to POSITIONAL to use positional (?) query parameters or
1424
+ # to NAMED to use named (@myparam) query parameters in this query.
1425
+ # Corresponds to the JSON property `parameterMode`
1426
+ # @return [String]
1427
+ attr_accessor :parameter_mode
1428
+
1347
1429
  # [Deprecated] This property is deprecated.
1348
1430
  # Corresponds to the JSON property `preserveNulls`
1349
1431
  # @return [Boolean]
@@ -1361,6 +1443,24 @@ module Google
1361
1443
  # @return [String]
1362
1444
  attr_accessor :query
1363
1445
 
1446
+ # Query parameters for standard SQL queries.
1447
+ # Corresponds to the JSON property `queryParameters`
1448
+ # @return [Array<Google::Apis::BigqueryV2::QueryParameter>]
1449
+ attr_accessor :query_parameters
1450
+
1451
+ # [Experimental] Allows the schema of the destination table to be updated as a
1452
+ # side effect of the query job. Schema update options are supported in two cases:
1453
+ # when writeDisposition is WRITE_APPEND; when writeDisposition is
1454
+ # WRITE_TRUNCATE and the destination table is a partition of a table, specified
1455
+ # by partition decorators. For normal tables, WRITE_TRUNCATE will always
1456
+ # overwrite the schema. One or more of the following values are specified:
1457
+ # ALLOW_FIELD_ADDITION: allow adding a nullable field to the schema.
1458
+ # ALLOW_FIELD_RELAXATION: allow relaxing a required field in the original schema
1459
+ # to nullable.
1460
+ # Corresponds to the JSON property `schemaUpdateOptions`
1461
+ # @return [Array<String>]
1462
+ attr_accessor :schema_update_options
1463
+
1364
1464
  # [Optional] If querying an external data source outside of BigQuery, describes
1365
1465
  # the data format, location and other properties of the data source. By defining
1366
1466
  # these properties, the data source can then be queried as if it were a standard
@@ -1369,12 +1469,11 @@ module Google
1369
1469
  # @return [Hash<String,Google::Apis::BigqueryV2::ExternalDataConfiguration>]
1370
1470
  attr_accessor :table_definitions
1371
1471
 
1372
- # [Experimental] Specifies whether to use BigQuery's legacy SQL dialect for this
1373
- # query. The default value is true. If set to false, the query will use BigQuery'
1374
- # s standard SQL: https://cloud.google.com/bigquery/sql-reference/ When
1375
- # useLegacySql is set to false, the values of allowLargeResults and
1376
- # flattenResults are ignored; query will be run as if allowLargeResults is true
1377
- # and flattenResults is false.
1472
+ # Specifies whether to use BigQuery's legacy SQL dialect for this query. The
1473
+ # default value is true. If set to false, the query will use BigQuery's standard
1474
+ # SQL: https://cloud.google.com/bigquery/sql-reference/ When useLegacySql is set
1475
+ # to false, the values of allowLargeResults and flattenResults are ignored;
1476
+ # query will be run as if allowLargeResults is true and flattenResults is false.
1378
1477
  # Corresponds to the JSON property `useLegacySql`
1379
1478
  # @return [Boolean]
1380
1479
  attr_accessor :use_legacy_sql
@@ -1389,7 +1488,7 @@ module Google
1389
1488
  attr_accessor :use_query_cache
1390
1489
  alias_method :use_query_cache?, :use_query_cache
1391
1490
 
1392
- # [Experimental] Describes user-defined function resources used in the query.
1491
+ # Describes user-defined function resources used in the query.
1393
1492
  # Corresponds to the JSON property `userDefinedFunctionResources`
1394
1493
  # @return [Array<Google::Apis::BigqueryV2::UserDefinedFunctionResource>]
1395
1494
  attr_accessor :user_defined_function_resources
@@ -1418,9 +1517,13 @@ module Google
1418
1517
  @destination_table = args[:destination_table] if args.key?(:destination_table)
1419
1518
  @flatten_results = args[:flatten_results] if args.key?(:flatten_results)
1420
1519
  @maximum_billing_tier = args[:maximum_billing_tier] if args.key?(:maximum_billing_tier)
1520
+ @maximum_bytes_billed = args[:maximum_bytes_billed] if args.key?(:maximum_bytes_billed)
1521
+ @parameter_mode = args[:parameter_mode] if args.key?(:parameter_mode)
1421
1522
  @preserve_nulls = args[:preserve_nulls] if args.key?(:preserve_nulls)
1422
1523
  @priority = args[:priority] if args.key?(:priority)
1423
1524
  @query = args[:query] if args.key?(:query)
1525
+ @query_parameters = args[:query_parameters] if args.key?(:query_parameters)
1526
+ @schema_update_options = args[:schema_update_options] if args.key?(:schema_update_options)
1424
1527
  @table_definitions = args[:table_definitions] if args.key?(:table_definitions)
1425
1528
  @use_legacy_sql = args[:use_legacy_sql] if args.key?(:use_legacy_sql)
1426
1529
  @use_query_cache = args[:use_query_cache] if args.key?(:use_query_cache)
@@ -1692,8 +1795,13 @@ module Google
1692
1795
  attr_accessor :cache_hit
1693
1796
  alias_method :cache_hit?, :cache_hit
1694
1797
 
1695
- # [Output-only, Experimental] Describes execution plan for the query as a list
1696
- # of stages.
1798
+ # [Output-only] The number of rows affected by a DML statement. Present only for
1799
+ # DML statements INSERT, UPDATE or DELETE.
1800
+ # Corresponds to the JSON property `numDmlAffectedRows`
1801
+ # @return [String]
1802
+ attr_accessor :num_dml_affected_rows
1803
+
1804
+ # [Output-only] Describes execution plan for the query.
1697
1805
  # Corresponds to the JSON property `queryPlan`
1698
1806
  # @return [Array<Google::Apis::BigqueryV2::ExplainQueryStage>]
1699
1807
  attr_accessor :query_plan
@@ -1710,6 +1818,11 @@ module Google
1710
1818
  # @return [Google::Apis::BigqueryV2::TableSchema]
1711
1819
  attr_accessor :schema
1712
1820
 
1821
+ # [Output-only, Experimental] The type of query statement, if valid.
1822
+ # Corresponds to the JSON property `statementType`
1823
+ # @return [String]
1824
+ attr_accessor :statement_type
1825
+
1713
1826
  # [Output-only] Total bytes billed for the job.
1714
1827
  # Corresponds to the JSON property `totalBytesBilled`
1715
1828
  # @return [String]
@@ -1720,6 +1833,12 @@ module Google
1720
1833
  # @return [String]
1721
1834
  attr_accessor :total_bytes_processed
1722
1835
 
1836
+ # [Output-only, Experimental] Standard SQL only: list of undeclared query
1837
+ # parameters detected during a dry run validation.
1838
+ # Corresponds to the JSON property `undeclaredQueryParameters`
1839
+ # @return [Array<Google::Apis::BigqueryV2::QueryParameter>]
1840
+ attr_accessor :undeclared_query_parameters
1841
+
1723
1842
  def initialize(**args)
1724
1843
  update!(**args)
1725
1844
  end
@@ -1728,11 +1847,14 @@ module Google
1728
1847
  def update!(**args)
1729
1848
  @billing_tier = args[:billing_tier] if args.key?(:billing_tier)
1730
1849
  @cache_hit = args[:cache_hit] if args.key?(:cache_hit)
1850
+ @num_dml_affected_rows = args[:num_dml_affected_rows] if args.key?(:num_dml_affected_rows)
1731
1851
  @query_plan = args[:query_plan] if args.key?(:query_plan)
1732
1852
  @referenced_tables = args[:referenced_tables] if args.key?(:referenced_tables)
1733
1853
  @schema = args[:schema] if args.key?(:schema)
1854
+ @statement_type = args[:statement_type] if args.key?(:statement_type)
1734
1855
  @total_bytes_billed = args[:total_bytes_billed] if args.key?(:total_bytes_billed)
1735
1856
  @total_bytes_processed = args[:total_bytes_processed] if args.key?(:total_bytes_processed)
1857
+ @undeclared_query_parameters = args[:undeclared_query_parameters] if args.key?(:undeclared_query_parameters)
1736
1858
  end
1737
1859
  end
1738
1860
 
@@ -1935,6 +2057,132 @@ module Google
1935
2057
  end
1936
2058
  end
1937
2059
 
2060
+ #
2061
+ class QueryParameter
2062
+ include Google::Apis::Core::Hashable
2063
+
2064
+ # [Optional] If unset, this is a positional parameter. Otherwise, should be
2065
+ # unique within a query.
2066
+ # Corresponds to the JSON property `name`
2067
+ # @return [String]
2068
+ attr_accessor :name
2069
+
2070
+ # [Required] The type of this parameter.
2071
+ # Corresponds to the JSON property `parameterType`
2072
+ # @return [Google::Apis::BigqueryV2::QueryParameterType]
2073
+ attr_accessor :parameter_type
2074
+
2075
+ # [Required] The value of this parameter.
2076
+ # Corresponds to the JSON property `parameterValue`
2077
+ # @return [Google::Apis::BigqueryV2::QueryParameterValue]
2078
+ attr_accessor :parameter_value
2079
+
2080
+ def initialize(**args)
2081
+ update!(**args)
2082
+ end
2083
+
2084
+ # Update properties of this object
2085
+ def update!(**args)
2086
+ @name = args[:name] if args.key?(:name)
2087
+ @parameter_type = args[:parameter_type] if args.key?(:parameter_type)
2088
+ @parameter_value = args[:parameter_value] if args.key?(:parameter_value)
2089
+ end
2090
+ end
2091
+
2092
+ #
2093
+ class QueryParameterType
2094
+ include Google::Apis::Core::Hashable
2095
+
2096
+ # [Optional] The type of the array's elements, if this is an array.
2097
+ # Corresponds to the JSON property `arrayType`
2098
+ # @return [Google::Apis::BigqueryV2::QueryParameterType]
2099
+ attr_accessor :array_type
2100
+
2101
+ # [Optional] The types of the fields of this struct, in order, if this is a
2102
+ # struct.
2103
+ # Corresponds to the JSON property `structTypes`
2104
+ # @return [Array<Google::Apis::BigqueryV2::QueryParameterType::StructType>]
2105
+ attr_accessor :struct_types
2106
+
2107
+ # [Required] The top level type of this field.
2108
+ # Corresponds to the JSON property `type`
2109
+ # @return [String]
2110
+ attr_accessor :type
2111
+
2112
+ def initialize(**args)
2113
+ update!(**args)
2114
+ end
2115
+
2116
+ # Update properties of this object
2117
+ def update!(**args)
2118
+ @array_type = args[:array_type] if args.key?(:array_type)
2119
+ @struct_types = args[:struct_types] if args.key?(:struct_types)
2120
+ @type = args[:type] if args.key?(:type)
2121
+ end
2122
+
2123
+ #
2124
+ class StructType
2125
+ include Google::Apis::Core::Hashable
2126
+
2127
+ # [Optional] Human-oriented description of the field.
2128
+ # Corresponds to the JSON property `description`
2129
+ # @return [String]
2130
+ attr_accessor :description
2131
+
2132
+ # [Optional] The name of this field.
2133
+ # Corresponds to the JSON property `name`
2134
+ # @return [String]
2135
+ attr_accessor :name
2136
+
2137
+ # [Required] The type of this field.
2138
+ # Corresponds to the JSON property `type`
2139
+ # @return [Google::Apis::BigqueryV2::QueryParameterType]
2140
+ attr_accessor :type
2141
+
2142
+ def initialize(**args)
2143
+ update!(**args)
2144
+ end
2145
+
2146
+ # Update properties of this object
2147
+ def update!(**args)
2148
+ @description = args[:description] if args.key?(:description)
2149
+ @name = args[:name] if args.key?(:name)
2150
+ @type = args[:type] if args.key?(:type)
2151
+ end
2152
+ end
2153
+ end
2154
+
2155
+ #
2156
+ class QueryParameterValue
2157
+ include Google::Apis::Core::Hashable
2158
+
2159
+ # [Optional] The array values, if this is an array type.
2160
+ # Corresponds to the JSON property `arrayValues`
2161
+ # @return [Array<Google::Apis::BigqueryV2::QueryParameterValue>]
2162
+ attr_accessor :array_values
2163
+
2164
+ # [Optional] The struct field values, in order of the struct type's declaration.
2165
+ # Corresponds to the JSON property `structValues`
2166
+ # @return [Hash<String,Google::Apis::BigqueryV2::QueryParameterValue>]
2167
+ attr_accessor :struct_values
2168
+
2169
+ # [Optional] The value of this value, if a simple scalar type.
2170
+ # Corresponds to the JSON property `value`
2171
+ # @return [String]
2172
+ attr_accessor :value
2173
+
2174
+ def initialize(**args)
2175
+ update!(**args)
2176
+ end
2177
+
2178
+ # Update properties of this object
2179
+ def update!(**args)
2180
+ @array_values = args[:array_values] if args.key?(:array_values)
2181
+ @struct_values = args[:struct_values] if args.key?(:struct_values)
2182
+ @value = args[:value] if args.key?(:value)
2183
+ end
2184
+ end
2185
+
1938
2186
  #
1939
2187
  class QueryRequest
1940
2188
  include Google::Apis::Core::Hashable
@@ -1969,6 +2217,12 @@ module Google
1969
2217
  # @return [Fixnum]
1970
2218
  attr_accessor :max_results
1971
2219
 
2220
+ # Standard SQL only. Set to POSITIONAL to use positional (?) query parameters or
2221
+ # to NAMED to use named (@myparam) query parameters in this query.
2222
+ # Corresponds to the JSON property `parameterMode`
2223
+ # @return [String]
2224
+ attr_accessor :parameter_mode
2225
+
1972
2226
  # [Deprecated] This property is deprecated.
1973
2227
  # Corresponds to the JSON property `preserveNulls`
1974
2228
  # @return [Boolean]
@@ -1982,6 +2236,11 @@ module Google
1982
2236
  # @return [String]
1983
2237
  attr_accessor :query
1984
2238
 
2239
+ # Query parameters for Standard SQL queries.
2240
+ # Corresponds to the JSON property `queryParameters`
2241
+ # @return [Array<Google::Apis::BigqueryV2::QueryParameter>]
2242
+ attr_accessor :query_parameters
2243
+
1985
2244
  # [Optional] How long to wait for the query to complete, in milliseconds, before
1986
2245
  # the request times out and returns. Note that this is only a timeout for the
1987
2246
  # request, not the query. If the query takes longer to run than the timeout
@@ -1992,12 +2251,11 @@ module Google
1992
2251
  # @return [Fixnum]
1993
2252
  attr_accessor :timeout_ms
1994
2253
 
1995
- # [Experimental] Specifies whether to use BigQuery's legacy SQL dialect for this
1996
- # query. The default value is true. If set to false, the query will use BigQuery'
1997
- # s standard SQL: https://cloud.google.com/bigquery/sql-reference/ When
1998
- # useLegacySql is set to false, the values of allowLargeResults and
1999
- # flattenResults are ignored; query will be run as if allowLargeResults is true
2000
- # and flattenResults is false.
2254
+ # Specifies whether to use BigQuery's legacy SQL dialect for this query. The
2255
+ # default value is true. If set to false, the query will use BigQuery's standard
2256
+ # SQL: https://cloud.google.com/bigquery/sql-reference/ When useLegacySql is set
2257
+ # to false, the values of allowLargeResults and flattenResults are ignored;
2258
+ # query will be run as if allowLargeResults is true and flattenResults is false.
2001
2259
  # Corresponds to the JSON property `useLegacySql`
2002
2260
  # @return [Boolean]
2003
2261
  attr_accessor :use_legacy_sql
@@ -2021,8 +2279,10 @@ module Google
2021
2279
  @dry_run = args[:dry_run] if args.key?(:dry_run)
2022
2280
  @kind = args[:kind] if args.key?(:kind)
2023
2281
  @max_results = args[:max_results] if args.key?(:max_results)
2282
+ @parameter_mode = args[:parameter_mode] if args.key?(:parameter_mode)
2024
2283
  @preserve_nulls = args[:preserve_nulls] if args.key?(:preserve_nulls)
2025
2284
  @query = args[:query] if args.key?(:query)
2285
+ @query_parameters = args[:query_parameters] if args.key?(:query_parameters)
2026
2286
  @timeout_ms = args[:timeout_ms] if args.key?(:timeout_ms)
2027
2287
  @use_legacy_sql = args[:use_legacy_sql] if args.key?(:use_legacy_sql)
2028
2288
  @use_query_cache = args[:use_query_cache] if args.key?(:use_query_cache)
@@ -2067,6 +2327,12 @@ module Google
2067
2327
  # @return [String]
2068
2328
  attr_accessor :kind
2069
2329
 
2330
+ # [Output-only] The number of rows affected by a DML statement. Present only for
2331
+ # DML statements INSERT, UPDATE or DELETE.
2332
+ # Corresponds to the JSON property `numDmlAffectedRows`
2333
+ # @return [String]
2334
+ attr_accessor :num_dml_affected_rows
2335
+
2070
2336
  # A token used for paging results.
2071
2337
  # Corresponds to the JSON property `pageToken`
2072
2338
  # @return [String]
@@ -2107,6 +2373,7 @@ module Google
2107
2373
  @job_complete = args[:job_complete] if args.key?(:job_complete)
2108
2374
  @job_reference = args[:job_reference] if args.key?(:job_reference)
2109
2375
  @kind = args[:kind] if args.key?(:kind)
2376
+ @num_dml_affected_rows = args[:num_dml_affected_rows] if args.key?(:num_dml_affected_rows)
2110
2377
  @page_token = args[:page_token] if args.key?(:page_token)
2111
2378
  @rows = args[:rows] if args.key?(:rows)
2112
2379
  @schema = args[:schema] if args.key?(:schema)
@@ -2198,6 +2465,16 @@ module Google
2198
2465
  # @return [String]
2199
2466
  attr_accessor :kind
2200
2467
 
2468
+ # [Experimental] The labels associated with this table. You can use these to
2469
+ # organize and group your tables. Label keys and values can be no longer than 63
2470
+ # characters, can only contain lowercase letters, numeric characters,
2471
+ # underscores and dashes. International characters are allowed. Label values are
2472
+ # optional. Label keys must start with a letter and each label in the list must
2473
+ # have a different key.
2474
+ # Corresponds to the JSON property `labels`
2475
+ # @return [Hash<String,String>]
2476
+ attr_accessor :labels
2477
+
2201
2478
  # [Output-only] The time when this table was last modified, in milliseconds
2202
2479
  # since the epoch.
2203
2480
  # Corresponds to the JSON property `lastModifiedTime`
@@ -2282,6 +2559,7 @@ module Google
2282
2559
  @friendly_name = args[:friendly_name] if args.key?(:friendly_name)
2283
2560
  @id = args[:id] if args.key?(:id)
2284
2561
  @kind = args[:kind] if args.key?(:kind)
2562
+ @labels = args[:labels] if args.key?(:labels)
2285
2563
  @last_modified_time = args[:last_modified_time] if args.key?(:last_modified_time)
2286
2564
  @location = args[:location] if args.key?(:location)
2287
2565
  @num_bytes = args[:num_bytes] if args.key?(:num_bytes)
@@ -2520,8 +2798,9 @@ module Google
2520
2798
  attr_accessor :name
2521
2799
 
2522
2800
  # [Required] The field data type. Possible values include STRING, BYTES, INTEGER,
2523
- # FLOAT, BOOLEAN, TIMESTAMP or RECORD (where RECORD indicates that the field
2524
- # contains a nested schema).
2801
+ # INT64 (same as INTEGER), FLOAT, FLOAT64 (same as FLOAT), BOOLEAN, BOOL (same
2802
+ # as BOOLEAN), TIMESTAMP, DATE, TIME, DATETIME, RECORD (where RECORD indicates
2803
+ # that the field contains a nested schema) or STRUCT (same as RECORD).
2525
2804
  # Corresponds to the JSON property `type`
2526
2805
  # @return [String]
2527
2806
  attr_accessor :type
@@ -2601,6 +2880,12 @@ module Google
2601
2880
  # @return [String]
2602
2881
  attr_accessor :kind
2603
2882
 
2883
+ # [Experimental] The labels associated with this table. You can use these to
2884
+ # organize and group your tables.
2885
+ # Corresponds to the JSON property `labels`
2886
+ # @return [Hash<String,String>]
2887
+ attr_accessor :labels
2888
+
2604
2889
  # A reference uniquely identifying the table.
2605
2890
  # Corresponds to the JSON property `tableReference`
2606
2891
  # @return [Google::Apis::BigqueryV2::TableReference]
@@ -2611,6 +2896,11 @@ module Google
2611
2896
  # @return [String]
2612
2897
  attr_accessor :type
2613
2898
 
2899
+ # Additional details for a view.
2900
+ # Corresponds to the JSON property `view`
2901
+ # @return [Google::Apis::BigqueryV2::TableList::Table::View]
2902
+ attr_accessor :view
2903
+
2614
2904
  def initialize(**args)
2615
2905
  update!(**args)
2616
2906
  end
@@ -2620,8 +2910,30 @@ module Google
2620
2910
  @friendly_name = args[:friendly_name] if args.key?(:friendly_name)
2621
2911
  @id = args[:id] if args.key?(:id)
2622
2912
  @kind = args[:kind] if args.key?(:kind)
2913
+ @labels = args[:labels] if args.key?(:labels)
2623
2914
  @table_reference = args[:table_reference] if args.key?(:table_reference)
2624
2915
  @type = args[:type] if args.key?(:type)
2916
+ @view = args[:view] if args.key?(:view)
2917
+ end
2918
+
2919
+ # Additional details for a view.
2920
+ class View
2921
+ include Google::Apis::Core::Hashable
2922
+
2923
+ # True if view is defined in legacy SQL dialect, false if in standard SQL.
2924
+ # Corresponds to the JSON property `useLegacySql`
2925
+ # @return [Boolean]
2926
+ attr_accessor :use_legacy_sql
2927
+ alias_method :use_legacy_sql?, :use_legacy_sql
2928
+
2929
+ def initialize(**args)
2930
+ update!(**args)
2931
+ end
2932
+
2933
+ # Update properties of this object
2934
+ def update!(**args)
2935
+ @use_legacy_sql = args[:use_legacy_sql] if args.key?(:use_legacy_sql)
2936
+ end
2625
2937
  end
2626
2938
  end
2627
2939
  end
@@ -2760,7 +3072,16 @@ module Google
2760
3072
  # @return [String]
2761
3073
  attr_accessor :query
2762
3074
 
2763
- # [Experimental] Describes user-defined function resources used in the query.
3075
+ # Specifies whether to use BigQuery's legacy SQL for this view. The default
3076
+ # value is true. If set to false, the view will use BigQuery's standard SQL:
3077
+ # https://cloud.google.com/bigquery/sql-reference/ Queries and views that
3078
+ # reference this view must use the same flag value.
3079
+ # Corresponds to the JSON property `useLegacySql`
3080
+ # @return [Boolean]
3081
+ attr_accessor :use_legacy_sql
3082
+ alias_method :use_legacy_sql?, :use_legacy_sql
3083
+
3084
+ # Describes user-defined function resources used in the query.
2764
3085
  # Corresponds to the JSON property `userDefinedFunctionResources`
2765
3086
  # @return [Array<Google::Apis::BigqueryV2::UserDefinedFunctionResource>]
2766
3087
  attr_accessor :user_defined_function_resources
@@ -2772,6 +3093,7 @@ module Google
2772
3093
  # Update properties of this object
2773
3094
  def update!(**args)
2774
3095
  @query = args[:query] if args.key?(:query)
3096
+ @use_legacy_sql = args[:use_legacy_sql] if args.key?(:use_legacy_sql)
2775
3097
  @user_defined_function_resources = args[:user_defined_function_resources] if args.key?(:user_defined_function_resources)
2776
3098
  end
2777
3099
  end