google-api-client 0.10.3 → 0.11.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (385) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +12 -18
  3. data/CHANGELOG.md +22 -2
  4. data/Gemfile +5 -7
  5. data/MIGRATING.md +33 -0
  6. data/README.md +10 -2
  7. data/Rakefile +1 -0
  8. data/bin/generate-api +7 -1
  9. data/dl.rb +0 -0
  10. data/generated/google/apis/acceleratedmobilepageurl_v1/classes.rb +6 -6
  11. data/generated/google/apis/acceleratedmobilepageurl_v1/representations.rb +1 -1
  12. data/generated/google/apis/acceleratedmobilepageurl_v1/service.rb +1 -0
  13. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  14. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +759 -759
  15. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +152 -152
  16. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +376 -375
  17. data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +58 -58
  18. data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +45 -45
  19. data/generated/google/apis/adexchangebuyer_v1_4/service.rb +22 -21
  20. data/generated/google/apis/adexchangeseller_v2_0/classes.rb +5 -5
  21. data/generated/google/apis/adexchangeseller_v2_0/representations.rb +5 -5
  22. data/generated/google/apis/adexchangeseller_v2_0/service.rb +1 -0
  23. data/generated/google/apis/admin_datatransfer_v1/classes.rb +2 -2
  24. data/generated/google/apis/admin_datatransfer_v1/representations.rb +2 -2
  25. data/generated/google/apis/admin_datatransfer_v1/service.rb +2 -1
  26. data/generated/google/apis/admin_directory_v1/classes.rb +11 -11
  27. data/generated/google/apis/admin_directory_v1/representations.rb +11 -11
  28. data/generated/google/apis/admin_directory_v1/service.rb +1 -0
  29. data/generated/google/apis/admin_reports_v1/classes.rb +5 -5
  30. data/generated/google/apis/admin_reports_v1/representations.rb +4 -4
  31. data/generated/google/apis/admin_reports_v1/service.rb +1 -0
  32. data/generated/google/apis/adsense_v1_4.rb +1 -1
  33. data/generated/google/apis/adsense_v1_4/classes.rb +2 -2
  34. data/generated/google/apis/adsense_v1_4/representations.rb +2 -2
  35. data/generated/google/apis/adsense_v1_4/service.rb +1 -0
  36. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  37. data/generated/google/apis/adsensehost_v4_1/classes.rb +1 -1
  38. data/generated/google/apis/adsensehost_v4_1/representations.rb +1 -1
  39. data/generated/google/apis/adsensehost_v4_1/service.rb +1 -0
  40. data/generated/google/apis/analytics_v3/classes.rb +10 -10
  41. data/generated/google/apis/analytics_v3/representations.rb +10 -10
  42. data/generated/google/apis/analytics_v3/service.rb +1 -0
  43. data/generated/google/apis/analyticsreporting_v4/classes.rb +933 -933
  44. data/generated/google/apis/analyticsreporting_v4/representations.rb +197 -197
  45. data/generated/google/apis/analyticsreporting_v4/service.rb +5 -4
  46. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  47. data/generated/google/apis/androidenterprise_v1/classes.rb +1 -1
  48. data/generated/google/apis/androidenterprise_v1/representations.rb +1 -1
  49. data/generated/google/apis/androidenterprise_v1/service.rb +1 -0
  50. data/generated/google/apis/androidpublisher_v2/classes.rb +13 -13
  51. data/generated/google/apis/androidpublisher_v2/representations.rb +13 -13
  52. data/generated/google/apis/androidpublisher_v2/service.rb +3 -2
  53. data/generated/google/apis/appengine_v1/classes.rb +2 -2
  54. data/generated/google/apis/appengine_v1/representations.rb +2 -2
  55. data/generated/google/apis/appengine_v1/service.rb +1 -0
  56. data/generated/google/apis/appsactivity_v1/classes.rb +1 -1
  57. data/generated/google/apis/appsactivity_v1/representations.rb +1 -1
  58. data/generated/google/apis/appsactivity_v1/service.rb +1 -0
  59. data/generated/google/apis/appsmarket_v2.rb +35 -0
  60. data/generated/google/apis/appsmarket_v2/classes.rb +396 -0
  61. data/generated/google/apis/appsmarket_v2/representations.rb +180 -0
  62. data/generated/google/apis/appsmarket_v2/service.rb +187 -0
  63. data/generated/google/apis/appstate_v1.rb +1 -1
  64. data/generated/google/apis/appstate_v1/service.rb +1 -0
  65. data/generated/google/apis/bigquery_v2/classes.rb +39 -39
  66. data/generated/google/apis/bigquery_v2/representations.rb +38 -38
  67. data/generated/google/apis/bigquery_v2/service.rb +3 -2
  68. data/generated/google/apis/blogger_v3/classes.rb +2 -2
  69. data/generated/google/apis/blogger_v3/representations.rb +2 -2
  70. data/generated/google/apis/blogger_v3/service.rb +1 -0
  71. data/generated/google/apis/books_v1/classes.rb +5 -5
  72. data/generated/google/apis/books_v1/representations.rb +4 -4
  73. data/generated/google/apis/books_v1/service.rb +1 -0
  74. data/generated/google/apis/calendar_v3/classes.rb +1 -1
  75. data/generated/google/apis/calendar_v3/representations.rb +1 -1
  76. data/generated/google/apis/calendar_v3/service.rb +1 -0
  77. data/generated/google/apis/civicinfo_v2/classes.rb +6 -6
  78. data/generated/google/apis/civicinfo_v2/representations.rb +6 -6
  79. data/generated/google/apis/civicinfo_v2/service.rb +2 -1
  80. data/generated/google/apis/classroom_v1/service.rb +1 -0
  81. data/generated/google/apis/cloudbilling_v1/service.rb +1 -0
  82. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  83. data/generated/google/apis/cloudbuild_v1/classes.rb +626 -626
  84. data/generated/google/apis/cloudbuild_v1/representations.rb +109 -109
  85. data/generated/google/apis/cloudbuild_v1/service.rb +159 -158
  86. data/generated/google/apis/clouddebugger_v2/classes.rb +358 -358
  87. data/generated/google/apis/clouddebugger_v2/representations.rb +99 -99
  88. data/generated/google/apis/clouddebugger_v2/service.rb +42 -41
  89. data/generated/google/apis/clouderrorreporting_v1beta1.rb +1 -1
  90. data/generated/google/apis/clouderrorreporting_v1beta1/classes.rb +220 -220
  91. data/generated/google/apis/clouderrorreporting_v1beta1/representations.rb +52 -52
  92. data/generated/google/apis/clouderrorreporting_v1beta1/service.rb +59 -58
  93. data/generated/google/apis/cloudfunctions_v1/classes.rb +7 -7
  94. data/generated/google/apis/cloudfunctions_v1/representations.rb +1 -1
  95. data/generated/google/apis/cloudfunctions_v1/service.rb +5 -4
  96. data/generated/google/apis/cloudkms_v1/classes.rb +311 -311
  97. data/generated/google/apis/cloudkms_v1/representations.rb +87 -87
  98. data/generated/google/apis/cloudkms_v1/service.rb +168 -167
  99. data/generated/google/apis/cloudmonitoring_v2beta2/classes.rb +4 -4
  100. data/generated/google/apis/cloudmonitoring_v2beta2/representations.rb +4 -4
  101. data/generated/google/apis/cloudmonitoring_v2beta2/service.rb +1 -0
  102. data/generated/google/apis/cloudresourcemanager_v1.rb +3 -3
  103. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +341 -341
  104. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +62 -62
  105. data/generated/google/apis/cloudresourcemanager_v1/service.rb +458 -457
  106. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +327 -327
  107. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +71 -71
  108. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +237 -236
  109. data/generated/google/apis/cloudtrace_v1.rb +3 -3
  110. data/generated/google/apis/cloudtrace_v1/classes.rb +38 -38
  111. data/generated/google/apis/cloudtrace_v1/representations.rb +13 -13
  112. data/generated/google/apis/cloudtrace_v1/service.rb +14 -13
  113. data/generated/google/apis/clouduseraccounts_beta/classes.rb +4 -4
  114. data/generated/google/apis/clouduseraccounts_beta/representations.rb +4 -4
  115. data/generated/google/apis/clouduseraccounts_beta/service.rb +1 -0
  116. data/generated/google/apis/compute_beta/classes.rb +52 -52
  117. data/generated/google/apis/compute_beta/representations.rb +52 -52
  118. data/generated/google/apis/compute_beta/service.rb +2 -1
  119. data/generated/google/apis/compute_v1/classes.rb +48 -48
  120. data/generated/google/apis/compute_v1/representations.rb +48 -48
  121. data/generated/google/apis/compute_v1/service.rb +2 -1
  122. data/generated/google/apis/container_v1/service.rb +1 -0
  123. data/generated/google/apis/content_v2.rb +1 -1
  124. data/generated/google/apis/content_v2/classes.rb +38 -660
  125. data/generated/google/apis/content_v2/representations.rb +37 -303
  126. data/generated/google/apis/content_v2/service.rb +63 -279
  127. data/generated/google/apis/customsearch_v1/classes.rb +2 -2
  128. data/generated/google/apis/customsearch_v1/representations.rb +2 -2
  129. data/generated/google/apis/customsearch_v1/service.rb +1 -0
  130. data/generated/google/apis/dataflow_v1b3/classes.rb +3281 -3281
  131. data/generated/google/apis/dataflow_v1b3/representations.rb +777 -777
  132. data/generated/google/apis/dataflow_v1b3/service.rb +106 -105
  133. data/generated/google/apis/dataproc_v1/classes.rb +395 -395
  134. data/generated/google/apis/dataproc_v1/representations.rb +91 -91
  135. data/generated/google/apis/dataproc_v1/service.rb +356 -355
  136. data/generated/google/apis/datastore_v1/classes.rb +506 -506
  137. data/generated/google/apis/datastore_v1/representations.rb +147 -147
  138. data/generated/google/apis/datastore_v1/service.rb +46 -45
  139. data/generated/google/apis/deploymentmanager_v2/classes.rb +6 -6
  140. data/generated/google/apis/deploymentmanager_v2/representations.rb +6 -6
  141. data/generated/google/apis/deploymentmanager_v2/service.rb +1 -0
  142. data/generated/google/apis/dfareporting_v2_6/classes.rb +280 -280
  143. data/generated/google/apis/dfareporting_v2_6/representations.rb +266 -266
  144. data/generated/google/apis/dfareporting_v2_6/service.rb +421 -420
  145. data/generated/google/apis/dfareporting_v2_7/classes.rb +280 -280
  146. data/generated/google/apis/dfareporting_v2_7/representations.rb +266 -266
  147. data/generated/google/apis/dfareporting_v2_7/service.rb +423 -422
  148. data/generated/google/apis/discovery_v1/service.rb +1 -0
  149. data/generated/google/apis/dns_v1/classes.rb +2 -2
  150. data/generated/google/apis/dns_v1/representations.rb +2 -2
  151. data/generated/google/apis/dns_v1/service.rb +1 -0
  152. data/generated/google/apis/dns_v2beta1/classes.rb +2 -2
  153. data/generated/google/apis/dns_v2beta1/representations.rb +2 -2
  154. data/generated/google/apis/dns_v2beta1/service.rb +1 -0
  155. data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +15 -15
  156. data/generated/google/apis/doubleclickbidmanager_v1/representations.rb +13 -13
  157. data/generated/google/apis/doubleclickbidmanager_v1/service.rb +5 -4
  158. data/generated/google/apis/doubleclicksearch_v2/classes.rb +28 -28
  159. data/generated/google/apis/doubleclicksearch_v2/representations.rb +28 -28
  160. data/generated/google/apis/doubleclicksearch_v2/service.rb +13 -12
  161. data/generated/google/apis/drive_v2/classes.rb +17 -17
  162. data/generated/google/apis/drive_v2/representations.rb +17 -17
  163. data/generated/google/apis/drive_v2/service.rb +5 -4
  164. data/generated/google/apis/drive_v3/classes.rb +13 -13
  165. data/generated/google/apis/drive_v3/representations.rb +12 -12
  166. data/generated/google/apis/drive_v3/service.rb +1 -0
  167. data/generated/google/apis/firebasedynamiclinks_v1.rb +1 -1
  168. data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +81 -81
  169. data/generated/google/apis/firebasedynamiclinks_v1/representations.rb +24 -24
  170. data/generated/google/apis/firebasedynamiclinks_v1/service.rb +1 -0
  171. data/generated/google/apis/firebaserules_v1/classes.rb +201 -201
  172. data/generated/google/apis/firebaserules_v1/representations.rb +61 -61
  173. data/generated/google/apis/firebaserules_v1/service.rb +1 -0
  174. data/generated/google/apis/fitness_v1/classes.rb +18 -18
  175. data/generated/google/apis/fitness_v1/representations.rb +18 -18
  176. data/generated/google/apis/fitness_v1/service.rb +6 -5
  177. data/generated/google/apis/fusiontables_v2/classes.rb +2 -2
  178. data/generated/google/apis/fusiontables_v2/representations.rb +2 -2
  179. data/generated/google/apis/fusiontables_v2/service.rb +1 -0
  180. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  181. data/generated/google/apis/games_configuration_v1configuration/classes.rb +2 -2
  182. data/generated/google/apis/games_configuration_v1configuration/representations.rb +2 -2
  183. data/generated/google/apis/games_configuration_v1configuration/service.rb +1 -0
  184. data/generated/google/apis/games_management_v1management.rb +1 -1
  185. data/generated/google/apis/games_management_v1management/classes.rb +6 -6
  186. data/generated/google/apis/games_management_v1management/representations.rb +6 -6
  187. data/generated/google/apis/games_management_v1management/service.rb +1 -0
  188. data/generated/google/apis/games_v1.rb +1 -1
  189. data/generated/google/apis/games_v1/classes.rb +47 -47
  190. data/generated/google/apis/games_v1/representations.rb +47 -47
  191. data/generated/google/apis/games_v1/service.rb +58 -57
  192. data/generated/google/apis/genomics_v1.rb +6 -6
  193. data/generated/google/apis/genomics_v1/classes.rb +2354 -2354
  194. data/generated/google/apis/genomics_v1/representations.rb +487 -487
  195. data/generated/google/apis/genomics_v1/service.rb +1188 -1187
  196. data/generated/google/apis/gmail_v1/classes.rb +11 -11
  197. data/generated/google/apis/gmail_v1/representations.rb +11 -11
  198. data/generated/google/apis/gmail_v1/service.rb +2 -1
  199. data/generated/google/apis/groupsmigration_v1/service.rb +1 -0
  200. data/generated/google/apis/groupssettings_v1/service.rb +1 -0
  201. data/generated/google/apis/iam_v1/classes.rb +437 -437
  202. data/generated/google/apis/iam_v1/representations.rb +95 -95
  203. data/generated/google/apis/iam_v1/service.rb +87 -86
  204. data/generated/google/apis/identitytoolkit_v3/classes.rb +20 -20
  205. data/generated/google/apis/identitytoolkit_v3/representations.rb +20 -20
  206. data/generated/google/apis/identitytoolkit_v3/service.rb +1 -0
  207. data/generated/google/apis/kgsearch_v1/service.rb +9 -8
  208. data/generated/google/apis/language_v1.rb +1 -1
  209. data/generated/google/apis/language_v1/classes.rb +245 -245
  210. data/generated/google/apis/language_v1/representations.rb +65 -65
  211. data/generated/google/apis/language_v1/service.rb +1 -0
  212. data/generated/google/apis/language_v1beta1.rb +1 -1
  213. data/generated/google/apis/language_v1beta1/classes.rb +277 -277
  214. data/generated/google/apis/language_v1beta1/representations.rb +83 -83
  215. data/generated/google/apis/language_v1beta1/service.rb +31 -30
  216. data/generated/google/apis/licensing_v1/service.rb +1 -0
  217. data/generated/google/apis/logging_v2/classes.rb +408 -408
  218. data/generated/google/apis/logging_v2/representations.rb +93 -93
  219. data/generated/google/apis/logging_v2/service.rb +408 -407
  220. data/generated/google/apis/logging_v2beta1.rb +3 -3
  221. data/generated/google/apis/logging_v2beta1/classes.rb +892 -892
  222. data/generated/google/apis/logging_v2beta1/representations.rb +128 -128
  223. data/generated/google/apis/logging_v2beta1/service.rb +89 -88
  224. data/generated/google/apis/manufacturers_v1/classes.rb +309 -309
  225. data/generated/google/apis/manufacturers_v1/representations.rb +64 -64
  226. data/generated/google/apis/manufacturers_v1/service.rb +1 -0
  227. data/generated/google/apis/mirror_v1/service.rb +1 -0
  228. data/generated/google/apis/ml_v1/classes.rb +1185 -1185
  229. data/generated/google/apis/ml_v1/representations.rb +171 -171
  230. data/generated/google/apis/ml_v1/service.rb +282 -281
  231. data/generated/google/apis/monitoring_v3.rb +3 -3
  232. data/generated/google/apis/monitoring_v3/classes.rb +334 -334
  233. data/generated/google/apis/monitoring_v3/representations.rb +86 -86
  234. data/generated/google/apis/monitoring_v3/service.rb +344 -343
  235. data/generated/google/apis/mybusiness_v3/service.rb +1 -0
  236. data/generated/google/apis/oauth2_v2/service.rb +1 -0
  237. data/generated/google/apis/pagespeedonline_v2/classes.rb +8 -8
  238. data/generated/google/apis/pagespeedonline_v2/representations.rb +8 -8
  239. data/generated/google/apis/pagespeedonline_v2/service.rb +1 -0
  240. data/generated/google/apis/partners_v2/classes.rb +1466 -1466
  241. data/generated/google/apis/partners_v2/representations.rb +371 -371
  242. data/generated/google/apis/partners_v2/service.rb +530 -529
  243. data/generated/google/apis/people_v1.rb +4 -4
  244. data/generated/google/apis/people_v1/classes.rb +1009 -1009
  245. data/generated/google/apis/people_v1/representations.rb +249 -249
  246. data/generated/google/apis/people_v1/service.rb +13 -12
  247. data/generated/google/apis/plus_domains_v1/classes.rb +2 -2
  248. data/generated/google/apis/plus_domains_v1/representations.rb +2 -2
  249. data/generated/google/apis/plus_domains_v1/service.rb +1 -0
  250. data/generated/google/apis/plus_v1/service.rb +1 -0
  251. data/generated/google/apis/prediction_v1_6/classes.rb +9 -9
  252. data/generated/google/apis/prediction_v1_6/representations.rb +9 -9
  253. data/generated/google/apis/prediction_v1_6/service.rb +1 -0
  254. data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +221 -221
  255. data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +55 -55
  256. data/generated/google/apis/proximitybeacon_v1beta1/service.rb +378 -377
  257. data/generated/google/apis/pubsub_v1/classes.rb +99 -99
  258. data/generated/google/apis/pubsub_v1/representations.rb +25 -25
  259. data/generated/google/apis/pubsub_v1/service.rb +236 -235
  260. data/generated/google/apis/qpx_express_v1/service.rb +1 -0
  261. data/generated/google/apis/replicapool_v1beta2/classes.rb +3 -3
  262. data/generated/google/apis/replicapool_v1beta2/representations.rb +3 -3
  263. data/generated/google/apis/replicapool_v1beta2/service.rb +1 -0
  264. data/generated/google/apis/replicapoolupdater_v1beta1/classes.rb +2 -2
  265. data/generated/google/apis/replicapoolupdater_v1beta1/representations.rb +2 -2
  266. data/generated/google/apis/replicapoolupdater_v1beta1/service.rb +1 -0
  267. data/generated/google/apis/reseller_v1/classes.rb +5 -5
  268. data/generated/google/apis/reseller_v1/representations.rb +5 -5
  269. data/generated/google/apis/reseller_v1/service.rb +1 -0
  270. data/generated/google/apis/resourceviews_v1beta2/classes.rb +2 -2
  271. data/generated/google/apis/resourceviews_v1beta2/representations.rb +2 -2
  272. data/generated/google/apis/resourceviews_v1beta2/service.rb +1 -0
  273. data/generated/google/apis/runtimeconfig_v1.rb +3 -3
  274. data/generated/google/apis/runtimeconfig_v1/classes.rb +28 -28
  275. data/generated/google/apis/runtimeconfig_v1/representations.rb +3 -3
  276. data/generated/google/apis/runtimeconfig_v1/service.rb +53 -52
  277. data/generated/google/apis/script_v1.rb +18 -18
  278. data/generated/google/apis/script_v1/classes.rb +84 -84
  279. data/generated/google/apis/script_v1/representations.rb +18 -18
  280. data/generated/google/apis/script_v1/service.rb +11 -10
  281. data/generated/google/apis/searchconsole_v1/classes.rb +75 -75
  282. data/generated/google/apis/searchconsole_v1/representations.rb +32 -32
  283. data/generated/google/apis/searchconsole_v1/service.rb +11 -10
  284. data/generated/google/apis/servicecontrol_v1/classes.rb +582 -582
  285. data/generated/google/apis/servicecontrol_v1/representations.rb +113 -113
  286. data/generated/google/apis/servicecontrol_v1/service.rb +71 -70
  287. data/generated/google/apis/servicemanagement_v1.rb +3 -3
  288. data/generated/google/apis/servicemanagement_v1/classes.rb +3725 -3725
  289. data/generated/google/apis/servicemanagement_v1/representations.rb +255 -255
  290. data/generated/google/apis/servicemanagement_v1/service.rb +179 -178
  291. data/generated/google/apis/serviceuser_v1.rb +3 -3
  292. data/generated/google/apis/serviceuser_v1/classes.rb +2845 -2845
  293. data/generated/google/apis/serviceuser_v1/representations.rb +228 -228
  294. data/generated/google/apis/serviceuser_v1/service.rb +47 -46
  295. data/generated/google/apis/sheets_v4.rb +1 -1
  296. data/generated/google/apis/sheets_v4/classes.rb +4456 -4456
  297. data/generated/google/apis/sheets_v4/representations.rb +859 -859
  298. data/generated/google/apis/sheets_v4/service.rb +180 -179
  299. data/generated/google/apis/site_verification_v1/service.rb +1 -0
  300. data/generated/google/apis/slides_v1.rb +1 -1
  301. data/generated/google/apis/slides_v1/classes.rb +2856 -2856
  302. data/generated/google/apis/slides_v1/representations.rb +683 -683
  303. data/generated/google/apis/slides_v1/service.rb +27 -26
  304. data/generated/google/apis/sourcerepo_v1/classes.rb +281 -281
  305. data/generated/google/apis/sourcerepo_v1/representations.rb +79 -79
  306. data/generated/google/apis/sourcerepo_v1/service.rb +112 -111
  307. data/generated/google/apis/spanner_v1/classes.rb +2177 -2177
  308. data/generated/google/apis/spanner_v1/representations.rb +325 -325
  309. data/generated/google/apis/spanner_v1/service.rb +374 -373
  310. data/generated/google/apis/speech_v1beta1/classes.rb +197 -197
  311. data/generated/google/apis/speech_v1beta1/representations.rb +36 -36
  312. data/generated/google/apis/speech_v1beta1/service.rb +27 -26
  313. data/generated/google/apis/sqladmin_v1beta4/classes.rb +14 -14
  314. data/generated/google/apis/sqladmin_v1beta4/representations.rb +14 -14
  315. data/generated/google/apis/sqladmin_v1beta4/service.rb +3 -2
  316. data/generated/google/apis/storage_v1.rb +1 -1
  317. data/generated/google/apis/storage_v1/classes.rb +11 -11
  318. data/generated/google/apis/storage_v1/representations.rb +11 -11
  319. data/generated/google/apis/storage_v1/service.rb +65 -64
  320. data/generated/google/apis/storagetransfer_v1/classes.rb +239 -239
  321. data/generated/google/apis/storagetransfer_v1/representations.rb +79 -79
  322. data/generated/google/apis/storagetransfer_v1/service.rb +133 -132
  323. data/generated/google/apis/surveys_v2/classes.rb +4 -4
  324. data/generated/google/apis/surveys_v2/representations.rb +4 -4
  325. data/generated/google/apis/surveys_v2/service.rb +1 -0
  326. data/generated/google/apis/tagmanager_v1/classes.rb +7 -7
  327. data/generated/google/apis/tagmanager_v1/representations.rb +7 -7
  328. data/generated/google/apis/tagmanager_v1/service.rb +1 -0
  329. data/generated/google/apis/tagmanager_v2/classes.rb +6 -6
  330. data/generated/google/apis/tagmanager_v2/representations.rb +6 -6
  331. data/generated/google/apis/tagmanager_v2/service.rb +1 -0
  332. data/generated/google/apis/taskqueue_v1beta2/classes.rb +5 -5
  333. data/generated/google/apis/taskqueue_v1beta2/representations.rb +5 -5
  334. data/generated/google/apis/taskqueue_v1beta2/service.rb +1 -0
  335. data/generated/google/apis/tasks_v1/service.rb +3 -2
  336. data/generated/google/apis/toolresults_v1beta3.rb +1 -1
  337. data/generated/google/apis/toolresults_v1beta3/classes.rb +4 -4
  338. data/generated/google/apis/toolresults_v1beta3/representations.rb +4 -4
  339. data/generated/google/apis/toolresults_v1beta3/service.rb +1 -0
  340. data/generated/google/apis/tracing_v1/classes.rb +421 -421
  341. data/generated/google/apis/tracing_v1/representations.rb +86 -86
  342. data/generated/google/apis/tracing_v1/service.rb +60 -59
  343. data/generated/google/apis/translate_v2/service.rb +1 -0
  344. data/generated/google/apis/urlshortener_v1/classes.rb +3 -3
  345. data/generated/google/apis/urlshortener_v1/representations.rb +3 -3
  346. data/generated/google/apis/urlshortener_v1/service.rb +1 -0
  347. data/generated/google/apis/vision_v1/classes.rb +1290 -1290
  348. data/generated/google/apis/vision_v1/representations.rb +184 -184
  349. data/generated/google/apis/vision_v1/service.rb +11 -10
  350. data/generated/google/apis/webfonts_v1/service.rb +1 -0
  351. data/generated/google/apis/webmasters_v3/classes.rb +5 -5
  352. data/generated/google/apis/webmasters_v3/representations.rb +5 -5
  353. data/generated/google/apis/webmasters_v3/service.rb +1 -0
  354. data/generated/google/apis/youtube_analytics_v1/classes.rb +1 -1
  355. data/generated/google/apis/youtube_analytics_v1/representations.rb +1 -1
  356. data/generated/google/apis/youtube_analytics_v1/service.rb +1 -0
  357. data/generated/google/apis/youtube_partner_v1/classes.rb +13 -13
  358. data/generated/google/apis/youtube_partner_v1/representations.rb +13 -13
  359. data/generated/google/apis/youtube_partner_v1/service.rb +1 -0
  360. data/generated/google/apis/youtube_v3/classes.rb +31 -31
  361. data/generated/google/apis/youtube_v3/representations.rb +31 -31
  362. data/generated/google/apis/youtube_v3/service.rb +2 -1
  363. data/generated/google/apis/youtubereporting_v1.rb +4 -4
  364. data/generated/google/apis/youtubereporting_v1/classes.rb +73 -73
  365. data/generated/google/apis/youtubereporting_v1/representations.rb +18 -18
  366. data/generated/google/apis/youtubereporting_v1/service.rb +77 -76
  367. data/google-api-client.gemspec +4 -6
  368. data/lib/google/apis/core/api_command.rb +8 -3
  369. data/lib/google/apis/core/base_service.rb +47 -18
  370. data/lib/google/apis/core/batch.rb +13 -18
  371. data/lib/google/apis/core/composite_io.rb +97 -0
  372. data/lib/google/apis/core/download.rb +24 -20
  373. data/lib/google/apis/core/http_command.rb +49 -38
  374. data/lib/google/apis/core/json_representation.rb +5 -1
  375. data/lib/google/apis/core/multipart.rb +43 -95
  376. data/lib/google/apis/core/upload.rb +59 -84
  377. data/lib/google/apis/generator/model.rb +2 -0
  378. data/lib/google/apis/generator/templates/_representation.tmpl +1 -1
  379. data/lib/google/apis/generator/templates/service.rb.tmpl +1 -0
  380. data/lib/google/apis/options.rb +24 -12
  381. data/lib/google/apis/version.rb +1 -1
  382. data/samples/web/Gemfile +0 -1
  383. metadata +39 -37
  384. data/lib/google/apis/core/http_client_adapter.rb +0 -82
  385. data/third_party/hurley_patches.rb +0 -103
@@ -44,6 +44,7 @@ module Google
44
44
 
45
45
  def initialize
46
46
  super('https://dataflow.googleapis.com/', '')
47
+ @batch_path = 'batch'
47
48
  end
48
49
 
49
50
  # Send a worker_message to the service.
@@ -163,8 +164,6 @@ module Google
163
164
  # The project which owns the jobs.
164
165
  # @param [String] location
165
166
  # The location that contains this job.
166
- # @param [String] filter
167
- # The kind of filter to use.
168
167
  # @param [String] page_token
169
168
  # Set this to the 'next_page_token' field of a previous response
170
169
  # to request additional results in a long list.
@@ -174,6 +173,8 @@ module Google
174
173
  # and an unspecified server-defined limit.
175
174
  # @param [String] view
176
175
  # Level of information requested in response. Default is `JOB_VIEW_SUMMARY`.
176
+ # @param [String] filter
177
+ # The kind of filter to use.
177
178
  # @param [String] fields
178
179
  # Selector specifying which fields to include in a partial response.
179
180
  # @param [String] quota_user
@@ -191,16 +192,16 @@ module Google
191
192
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
192
193
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
193
194
  # @raise [Google::Apis::AuthorizationError] Authorization is required
194
- def list_project_location_jobs(project_id, location, filter: nil, page_token: nil, page_size: nil, view: nil, fields: nil, quota_user: nil, options: nil, &block)
195
+ def list_project_location_jobs(project_id, location, page_token: nil, page_size: nil, view: nil, filter: nil, fields: nil, quota_user: nil, options: nil, &block)
195
196
  command = make_simple_command(:get, 'v1b3/projects/{projectId}/locations/{location}/jobs', options)
196
197
  command.response_representation = Google::Apis::DataflowV1b3::ListJobsResponse::Representation
197
198
  command.response_class = Google::Apis::DataflowV1b3::ListJobsResponse
198
199
  command.params['projectId'] = project_id unless project_id.nil?
199
200
  command.params['location'] = location unless location.nil?
200
- command.query['filter'] = filter unless filter.nil?
201
201
  command.query['pageToken'] = page_token unless page_token.nil?
202
202
  command.query['pageSize'] = page_size unless page_size.nil?
203
203
  command.query['view'] = view unless view.nil?
204
+ command.query['filter'] = filter unless filter.nil?
204
205
  command.query['fields'] = fields unless fields.nil?
205
206
  command.query['quotaUser'] = quota_user unless quota_user.nil?
206
207
  execute_or_queue_command(command, &block)
@@ -251,10 +252,10 @@ module Google
251
252
  # @param [String] location
252
253
  # The location that contains this job.
253
254
  # @param [Google::Apis::DataflowV1b3::Job] job_object
254
- # @param [String] replace_job_id
255
- # Deprecated. This field is now in the Job message.
256
255
  # @param [String] view
257
256
  # The level of information requested in response.
257
+ # @param [String] replace_job_id
258
+ # Deprecated. This field is now in the Job message.
258
259
  # @param [String] fields
259
260
  # Selector specifying which fields to include in a partial response.
260
261
  # @param [String] quota_user
@@ -272,7 +273,7 @@ module Google
272
273
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
273
274
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
274
275
  # @raise [Google::Apis::AuthorizationError] Authorization is required
275
- def create_project_location_job(project_id, location, job_object = nil, replace_job_id: nil, view: nil, fields: nil, quota_user: nil, options: nil, &block)
276
+ def create_project_location_job(project_id, location, job_object = nil, view: nil, replace_job_id: nil, fields: nil, quota_user: nil, options: nil, &block)
276
277
  command = make_simple_command(:post, 'v1b3/projects/{projectId}/locations/{location}/jobs', options)
277
278
  command.request_representation = Google::Apis::DataflowV1b3::Job::Representation
278
279
  command.request_object = job_object
@@ -280,8 +281,8 @@ module Google
280
281
  command.response_class = Google::Apis::DataflowV1b3::Job
281
282
  command.params['projectId'] = project_id unless project_id.nil?
282
283
  command.params['location'] = location unless location.nil?
283
- command.query['replaceJobId'] = replace_job_id unless replace_job_id.nil?
284
284
  command.query['view'] = view unless view.nil?
285
+ command.query['replaceJobId'] = replace_job_id unless replace_job_id.nil?
285
286
  command.query['fields'] = fields unless fields.nil?
286
287
  command.query['quotaUser'] = quota_user unless quota_user.nil?
287
288
  execute_or_queue_command(command, &block)
@@ -426,14 +427,14 @@ module Google
426
427
  # @param [String] project_id
427
428
  # Required. The ID of the Cloud Platform project that the job belongs to.
428
429
  # @param [Google::Apis::DataflowV1b3::LaunchTemplateParameters] launch_template_parameters_object
429
- # @param [String] gcs_path
430
- # Required. A Cloud Storage path to the template from which to create
431
- # the job.
432
- # Must be valid Cloud Storage URL, beginning with 'gs://'.
433
430
  # @param [Boolean] dry_run
434
431
  # Whether or not the job should actually be executed after
435
432
  # validating parameters. Defaults to false. Validation errors do
436
433
  # not cause the HTTP request to fail if true.
434
+ # @param [String] gcs_path
435
+ # Required. A Cloud Storage path to the template from which to create
436
+ # the job.
437
+ # Must be valid Cloud Storage URL, beginning with 'gs://'.
437
438
  # @param [String] fields
438
439
  # Selector specifying which fields to include in a partial response.
439
440
  # @param [String] quota_user
@@ -451,15 +452,15 @@ module Google
451
452
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
452
453
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
453
454
  # @raise [Google::Apis::AuthorizationError] Authorization is required
454
- def launch_project_template(project_id, launch_template_parameters_object = nil, gcs_path: nil, dry_run: nil, fields: nil, quota_user: nil, options: nil, &block)
455
+ def launch_project_template(project_id, launch_template_parameters_object = nil, dry_run: nil, gcs_path: nil, fields: nil, quota_user: nil, options: nil, &block)
455
456
  command = make_simple_command(:post, 'v1b3/projects/{projectId}/templates:launch', options)
456
457
  command.request_representation = Google::Apis::DataflowV1b3::LaunchTemplateParameters::Representation
457
458
  command.request_object = launch_template_parameters_object
458
459
  command.response_representation = Google::Apis::DataflowV1b3::LaunchTemplateResponse::Representation
459
460
  command.response_class = Google::Apis::DataflowV1b3::LaunchTemplateResponse
460
461
  command.params['projectId'] = project_id unless project_id.nil?
461
- command.query['gcsPath'] = gcs_path unless gcs_path.nil?
462
462
  command.query['dryRun'] = dry_run unless dry_run.nil?
463
+ command.query['gcsPath'] = gcs_path unless gcs_path.nil?
463
464
  command.query['fields'] = fields unless fields.nil?
464
465
  command.query['quotaUser'] = quota_user unless quota_user.nil?
465
466
  execute_or_queue_command(command, &block)
@@ -536,14 +537,15 @@ module Google
536
537
  execute_or_queue_command(command, &block)
537
538
  end
538
539
 
539
- # Updates the state of an existing Cloud Dataflow job.
540
+ # Gets the state of the specified Cloud Dataflow job.
540
541
  # @param [String] project_id
541
542
  # The ID of the Cloud Platform project that the job belongs to.
542
543
  # @param [String] job_id
543
544
  # The job ID.
544
- # @param [Google::Apis::DataflowV1b3::Job] job_object
545
545
  # @param [String] location
546
546
  # The location that contains this job.
547
+ # @param [String] view
548
+ # The level of information requested in response.
547
549
  # @param [String] fields
548
550
  # Selector specifying which fields to include in a partial response.
549
551
  # @param [String] quota_user
@@ -561,30 +563,35 @@ module Google
561
563
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
562
564
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
563
565
  # @raise [Google::Apis::AuthorizationError] Authorization is required
564
- def update_project_job(project_id, job_id, job_object = nil, location: nil, fields: nil, quota_user: nil, options: nil, &block)
565
- command = make_simple_command(:put, 'v1b3/projects/{projectId}/jobs/{jobId}', options)
566
- command.request_representation = Google::Apis::DataflowV1b3::Job::Representation
567
- command.request_object = job_object
566
+ def get_project_job(project_id, job_id, location: nil, view: nil, fields: nil, quota_user: nil, options: nil, &block)
567
+ command = make_simple_command(:get, 'v1b3/projects/{projectId}/jobs/{jobId}', options)
568
568
  command.response_representation = Google::Apis::DataflowV1b3::Job::Representation
569
569
  command.response_class = Google::Apis::DataflowV1b3::Job
570
570
  command.params['projectId'] = project_id unless project_id.nil?
571
571
  command.params['jobId'] = job_id unless job_id.nil?
572
572
  command.query['location'] = location unless location.nil?
573
+ command.query['view'] = view unless view.nil?
573
574
  command.query['fields'] = fields unless fields.nil?
574
575
  command.query['quotaUser'] = quota_user unless quota_user.nil?
575
576
  execute_or_queue_command(command, &block)
576
577
  end
577
578
 
578
- # Creates a Cloud Dataflow job.
579
+ # List the jobs of a project.
579
580
  # @param [String] project_id
580
- # The ID of the Cloud Platform project that the job belongs to.
581
- # @param [Google::Apis::DataflowV1b3::Job] job_object
582
- # @param [String] replace_job_id
583
- # Deprecated. This field is now in the Job message.
584
- # @param [String] view
585
- # The level of information requested in response.
581
+ # The project which owns the jobs.
582
+ # @param [String] filter
583
+ # The kind of filter to use.
586
584
  # @param [String] location
587
585
  # The location that contains this job.
586
+ # @param [String] page_token
587
+ # Set this to the 'next_page_token' field of a previous response
588
+ # to request additional results in a long list.
589
+ # @param [Fixnum] page_size
590
+ # If there are many jobs, limit response to at most this many.
591
+ # The actual number of jobs returned will be the lesser of max_responses
592
+ # and an unspecified server-defined limit.
593
+ # @param [String] view
594
+ # Level of information requested in response. Default is `JOB_VIEW_SUMMARY`.
588
595
  # @param [String] fields
589
596
  # Selector specifying which fields to include in a partial response.
590
597
  # @param [String] quota_user
@@ -594,39 +601,37 @@ module Google
594
601
  # Request-specific options
595
602
  #
596
603
  # @yield [result, err] Result & error if block supplied
597
- # @yieldparam result [Google::Apis::DataflowV1b3::Job] parsed result object
604
+ # @yieldparam result [Google::Apis::DataflowV1b3::ListJobsResponse] parsed result object
598
605
  # @yieldparam err [StandardError] error object if request failed
599
606
  #
600
- # @return [Google::Apis::DataflowV1b3::Job]
607
+ # @return [Google::Apis::DataflowV1b3::ListJobsResponse]
601
608
  #
602
609
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
603
610
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
604
611
  # @raise [Google::Apis::AuthorizationError] Authorization is required
605
- def create_project_job(project_id, job_object = nil, replace_job_id: nil, view: nil, location: nil, fields: nil, quota_user: nil, options: nil, &block)
606
- command = make_simple_command(:post, 'v1b3/projects/{projectId}/jobs', options)
607
- command.request_representation = Google::Apis::DataflowV1b3::Job::Representation
608
- command.request_object = job_object
609
- command.response_representation = Google::Apis::DataflowV1b3::Job::Representation
610
- command.response_class = Google::Apis::DataflowV1b3::Job
612
+ def list_project_jobs(project_id, filter: nil, location: nil, page_token: nil, page_size: nil, view: nil, fields: nil, quota_user: nil, options: nil, &block)
613
+ command = make_simple_command(:get, 'v1b3/projects/{projectId}/jobs', options)
614
+ command.response_representation = Google::Apis::DataflowV1b3::ListJobsResponse::Representation
615
+ command.response_class = Google::Apis::DataflowV1b3::ListJobsResponse
611
616
  command.params['projectId'] = project_id unless project_id.nil?
612
- command.query['replaceJobId'] = replace_job_id unless replace_job_id.nil?
613
- command.query['view'] = view unless view.nil?
617
+ command.query['filter'] = filter unless filter.nil?
614
618
  command.query['location'] = location unless location.nil?
619
+ command.query['pageToken'] = page_token unless page_token.nil?
620
+ command.query['pageSize'] = page_size unless page_size.nil?
621
+ command.query['view'] = view unless view.nil?
615
622
  command.query['fields'] = fields unless fields.nil?
616
623
  command.query['quotaUser'] = quota_user unless quota_user.nil?
617
624
  execute_or_queue_command(command, &block)
618
625
  end
619
626
 
620
- # Request the job status.
627
+ # Updates the state of an existing Cloud Dataflow job.
621
628
  # @param [String] project_id
622
- # A project id.
629
+ # The ID of the Cloud Platform project that the job belongs to.
623
630
  # @param [String] job_id
624
- # The job to get messages for.
631
+ # The job ID.
632
+ # @param [Google::Apis::DataflowV1b3::Job] job_object
625
633
  # @param [String] location
626
- # The location which contains the job specified by job_id.
627
- # @param [String] start_time
628
- # Return only metric data that has changed since this time.
629
- # Default is to return all information about all metrics for the job.
634
+ # The location that contains this job.
630
635
  # @param [String] fields
631
636
  # Selector specifying which fields to include in a partial response.
632
637
  # @param [String] quota_user
@@ -636,34 +641,36 @@ module Google
636
641
  # Request-specific options
637
642
  #
638
643
  # @yield [result, err] Result & error if block supplied
639
- # @yieldparam result [Google::Apis::DataflowV1b3::JobMetrics] parsed result object
644
+ # @yieldparam result [Google::Apis::DataflowV1b3::Job] parsed result object
640
645
  # @yieldparam err [StandardError] error object if request failed
641
646
  #
642
- # @return [Google::Apis::DataflowV1b3::JobMetrics]
647
+ # @return [Google::Apis::DataflowV1b3::Job]
643
648
  #
644
649
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
645
650
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
646
651
  # @raise [Google::Apis::AuthorizationError] Authorization is required
647
- def get_project_job_metrics(project_id, job_id, location: nil, start_time: nil, fields: nil, quota_user: nil, options: nil, &block)
648
- command = make_simple_command(:get, 'v1b3/projects/{projectId}/jobs/{jobId}/metrics', options)
649
- command.response_representation = Google::Apis::DataflowV1b3::JobMetrics::Representation
650
- command.response_class = Google::Apis::DataflowV1b3::JobMetrics
652
+ def update_project_job(project_id, job_id, job_object = nil, location: nil, fields: nil, quota_user: nil, options: nil, &block)
653
+ command = make_simple_command(:put, 'v1b3/projects/{projectId}/jobs/{jobId}', options)
654
+ command.request_representation = Google::Apis::DataflowV1b3::Job::Representation
655
+ command.request_object = job_object
656
+ command.response_representation = Google::Apis::DataflowV1b3::Job::Representation
657
+ command.response_class = Google::Apis::DataflowV1b3::Job
651
658
  command.params['projectId'] = project_id unless project_id.nil?
652
659
  command.params['jobId'] = job_id unless job_id.nil?
653
660
  command.query['location'] = location unless location.nil?
654
- command.query['startTime'] = start_time unless start_time.nil?
655
661
  command.query['fields'] = fields unless fields.nil?
656
662
  command.query['quotaUser'] = quota_user unless quota_user.nil?
657
663
  execute_or_queue_command(command, &block)
658
664
  end
659
665
 
660
- # Gets the state of the specified Cloud Dataflow job.
666
+ # Creates a Cloud Dataflow job.
661
667
  # @param [String] project_id
662
668
  # The ID of the Cloud Platform project that the job belongs to.
663
- # @param [String] job_id
664
- # The job ID.
669
+ # @param [Google::Apis::DataflowV1b3::Job] job_object
665
670
  # @param [String] location
666
671
  # The location that contains this job.
672
+ # @param [String] replace_job_id
673
+ # Deprecated. This field is now in the Job message.
667
674
  # @param [String] view
668
675
  # The level of information requested in response.
669
676
  # @param [String] fields
@@ -683,35 +690,31 @@ module Google
683
690
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
684
691
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
685
692
  # @raise [Google::Apis::AuthorizationError] Authorization is required
686
- def get_project_job(project_id, job_id, location: nil, view: nil, fields: nil, quota_user: nil, options: nil, &block)
687
- command = make_simple_command(:get, 'v1b3/projects/{projectId}/jobs/{jobId}', options)
693
+ def create_project_job(project_id, job_object = nil, location: nil, replace_job_id: nil, view: nil, fields: nil, quota_user: nil, options: nil, &block)
694
+ command = make_simple_command(:post, 'v1b3/projects/{projectId}/jobs', options)
695
+ command.request_representation = Google::Apis::DataflowV1b3::Job::Representation
696
+ command.request_object = job_object
688
697
  command.response_representation = Google::Apis::DataflowV1b3::Job::Representation
689
698
  command.response_class = Google::Apis::DataflowV1b3::Job
690
699
  command.params['projectId'] = project_id unless project_id.nil?
691
- command.params['jobId'] = job_id unless job_id.nil?
692
700
  command.query['location'] = location unless location.nil?
701
+ command.query['replaceJobId'] = replace_job_id unless replace_job_id.nil?
693
702
  command.query['view'] = view unless view.nil?
694
703
  command.query['fields'] = fields unless fields.nil?
695
704
  command.query['quotaUser'] = quota_user unless quota_user.nil?
696
705
  execute_or_queue_command(command, &block)
697
706
  end
698
707
 
699
- # List the jobs of a project.
708
+ # Request the job status.
700
709
  # @param [String] project_id
701
- # The project which owns the jobs.
702
- # @param [String] filter
703
- # The kind of filter to use.
710
+ # A project id.
711
+ # @param [String] job_id
712
+ # The job to get messages for.
704
713
  # @param [String] location
705
- # The location that contains this job.
706
- # @param [String] page_token
707
- # Set this to the 'next_page_token' field of a previous response
708
- # to request additional results in a long list.
709
- # @param [Fixnum] page_size
710
- # If there are many jobs, limit response to at most this many.
711
- # The actual number of jobs returned will be the lesser of max_responses
712
- # and an unspecified server-defined limit.
713
- # @param [String] view
714
- # Level of information requested in response. Default is `JOB_VIEW_SUMMARY`.
714
+ # The location which contains the job specified by job_id.
715
+ # @param [String] start_time
716
+ # Return only metric data that has changed since this time.
717
+ # Default is to return all information about all metrics for the job.
715
718
  # @param [String] fields
716
719
  # Selector specifying which fields to include in a partial response.
717
720
  # @param [String] quota_user
@@ -721,24 +724,22 @@ module Google
721
724
  # Request-specific options
722
725
  #
723
726
  # @yield [result, err] Result & error if block supplied
724
- # @yieldparam result [Google::Apis::DataflowV1b3::ListJobsResponse] parsed result object
727
+ # @yieldparam result [Google::Apis::DataflowV1b3::JobMetrics] parsed result object
725
728
  # @yieldparam err [StandardError] error object if request failed
726
729
  #
727
- # @return [Google::Apis::DataflowV1b3::ListJobsResponse]
730
+ # @return [Google::Apis::DataflowV1b3::JobMetrics]
728
731
  #
729
732
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
730
733
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
731
734
  # @raise [Google::Apis::AuthorizationError] Authorization is required
732
- def list_project_jobs(project_id, filter: nil, location: nil, page_token: nil, page_size: nil, view: nil, fields: nil, quota_user: nil, options: nil, &block)
733
- command = make_simple_command(:get, 'v1b3/projects/{projectId}/jobs', options)
734
- command.response_representation = Google::Apis::DataflowV1b3::ListJobsResponse::Representation
735
- command.response_class = Google::Apis::DataflowV1b3::ListJobsResponse
735
+ def get_project_job_metrics(project_id, job_id, location: nil, start_time: nil, fields: nil, quota_user: nil, options: nil, &block)
736
+ command = make_simple_command(:get, 'v1b3/projects/{projectId}/jobs/{jobId}/metrics', options)
737
+ command.response_representation = Google::Apis::DataflowV1b3::JobMetrics::Representation
738
+ command.response_class = Google::Apis::DataflowV1b3::JobMetrics
736
739
  command.params['projectId'] = project_id unless project_id.nil?
737
- command.query['filter'] = filter unless filter.nil?
740
+ command.params['jobId'] = job_id unless job_id.nil?
738
741
  command.query['location'] = location unless location.nil?
739
- command.query['pageToken'] = page_token unless page_token.nil?
740
- command.query['pageSize'] = page_size unless page_size.nil?
741
- command.query['view'] = view unless view.nil?
742
+ command.query['startTime'] = start_time unless start_time.nil?
742
743
  command.query['fields'] = fields unless fields.nil?
743
744
  command.query['quotaUser'] = quota_user unless quota_user.nil?
744
745
  execute_or_queue_command(command, &block)
@@ -816,12 +817,12 @@ module Google
816
817
  execute_or_queue_command(command, &block)
817
818
  end
818
819
 
819
- # Reports the status of dataflow WorkItems leased by a worker.
820
+ # Leases a dataflow WorkItem to run.
820
821
  # @param [String] project_id
821
- # The project which owns the WorkItem's job.
822
+ # Identifies the project this worker belongs to.
822
823
  # @param [String] job_id
823
- # The job which the WorkItem is part of.
824
- # @param [Google::Apis::DataflowV1b3::ReportWorkItemStatusRequest] report_work_item_status_request_object
824
+ # Identifies the workflow job this worker belongs to.
825
+ # @param [Google::Apis::DataflowV1b3::LeaseWorkItemRequest] lease_work_item_request_object
825
826
  # @param [String] fields
826
827
  # Selector specifying which fields to include in a partial response.
827
828
  # @param [String] quota_user
@@ -831,20 +832,20 @@ module Google
831
832
  # Request-specific options
832
833
  #
833
834
  # @yield [result, err] Result & error if block supplied
834
- # @yieldparam result [Google::Apis::DataflowV1b3::ReportWorkItemStatusResponse] parsed result object
835
+ # @yieldparam result [Google::Apis::DataflowV1b3::LeaseWorkItemResponse] parsed result object
835
836
  # @yieldparam err [StandardError] error object if request failed
836
837
  #
837
- # @return [Google::Apis::DataflowV1b3::ReportWorkItemStatusResponse]
838
+ # @return [Google::Apis::DataflowV1b3::LeaseWorkItemResponse]
838
839
  #
839
840
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
840
841
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
841
842
  # @raise [Google::Apis::AuthorizationError] Authorization is required
842
- def report_project_job_work_item_status(project_id, job_id, report_work_item_status_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
843
- command = make_simple_command(:post, 'v1b3/projects/{projectId}/jobs/{jobId}/workItems:reportStatus', options)
844
- command.request_representation = Google::Apis::DataflowV1b3::ReportWorkItemStatusRequest::Representation
845
- command.request_object = report_work_item_status_request_object
846
- command.response_representation = Google::Apis::DataflowV1b3::ReportWorkItemStatusResponse::Representation
847
- command.response_class = Google::Apis::DataflowV1b3::ReportWorkItemStatusResponse
843
+ def lease_project_work_item(project_id, job_id, lease_work_item_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
844
+ command = make_simple_command(:post, 'v1b3/projects/{projectId}/jobs/{jobId}/workItems:lease', options)
845
+ command.request_representation = Google::Apis::DataflowV1b3::LeaseWorkItemRequest::Representation
846
+ command.request_object = lease_work_item_request_object
847
+ command.response_representation = Google::Apis::DataflowV1b3::LeaseWorkItemResponse::Representation
848
+ command.response_class = Google::Apis::DataflowV1b3::LeaseWorkItemResponse
848
849
  command.params['projectId'] = project_id unless project_id.nil?
849
850
  command.params['jobId'] = job_id unless job_id.nil?
850
851
  command.query['fields'] = fields unless fields.nil?
@@ -852,12 +853,12 @@ module Google
852
853
  execute_or_queue_command(command, &block)
853
854
  end
854
855
 
855
- # Leases a dataflow WorkItem to run.
856
+ # Reports the status of dataflow WorkItems leased by a worker.
856
857
  # @param [String] project_id
857
- # Identifies the project this worker belongs to.
858
+ # The project which owns the WorkItem's job.
858
859
  # @param [String] job_id
859
- # Identifies the workflow job this worker belongs to.
860
- # @param [Google::Apis::DataflowV1b3::LeaseWorkItemRequest] lease_work_item_request_object
860
+ # The job which the WorkItem is part of.
861
+ # @param [Google::Apis::DataflowV1b3::ReportWorkItemStatusRequest] report_work_item_status_request_object
861
862
  # @param [String] fields
862
863
  # Selector specifying which fields to include in a partial response.
863
864
  # @param [String] quota_user
@@ -867,20 +868,20 @@ module Google
867
868
  # Request-specific options
868
869
  #
869
870
  # @yield [result, err] Result & error if block supplied
870
- # @yieldparam result [Google::Apis::DataflowV1b3::LeaseWorkItemResponse] parsed result object
871
+ # @yieldparam result [Google::Apis::DataflowV1b3::ReportWorkItemStatusResponse] parsed result object
871
872
  # @yieldparam err [StandardError] error object if request failed
872
873
  #
873
- # @return [Google::Apis::DataflowV1b3::LeaseWorkItemResponse]
874
+ # @return [Google::Apis::DataflowV1b3::ReportWorkItemStatusResponse]
874
875
  #
875
876
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
876
877
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
877
878
  # @raise [Google::Apis::AuthorizationError] Authorization is required
878
- def lease_project_work_item(project_id, job_id, lease_work_item_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
879
- command = make_simple_command(:post, 'v1b3/projects/{projectId}/jobs/{jobId}/workItems:lease', options)
880
- command.request_representation = Google::Apis::DataflowV1b3::LeaseWorkItemRequest::Representation
881
- command.request_object = lease_work_item_request_object
882
- command.response_representation = Google::Apis::DataflowV1b3::LeaseWorkItemResponse::Representation
883
- command.response_class = Google::Apis::DataflowV1b3::LeaseWorkItemResponse
879
+ def report_project_job_work_item_status(project_id, job_id, report_work_item_status_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
880
+ command = make_simple_command(:post, 'v1b3/projects/{projectId}/jobs/{jobId}/workItems:reportStatus', options)
881
+ command.request_representation = Google::Apis::DataflowV1b3::ReportWorkItemStatusRequest::Representation
882
+ command.request_object = report_work_item_status_request_object
883
+ command.response_representation = Google::Apis::DataflowV1b3::ReportWorkItemStatusResponse::Representation
884
+ command.response_class = Google::Apis::DataflowV1b3::ReportWorkItemStatusResponse
884
885
  command.params['projectId'] = project_id unless project_id.nil?
885
886
  command.params['jobId'] = job_id unless job_id.nil?
886
887
  command.query['fields'] = fields unless fields.nil?
@@ -22,6 +22,54 @@ module Google
22
22
  module Apis
23
23
  module DataprocV1
24
24
 
25
+ # Encapsulates the full scoping used to reference a job.
26
+ class JobReference
27
+ include Google::Apis::Core::Hashable
28
+
29
+ # Required The ID of the Google Cloud Platform project that the job belongs to.
30
+ # Corresponds to the JSON property `projectId`
31
+ # @return [String]
32
+ attr_accessor :project_id
33
+
34
+ # Optional The job ID, which must be unique within the project. The job ID is
35
+ # generated by the server upon job submission or provided by the user as a means
36
+ # to perform retries without creating duplicate jobs. The ID must contain only
37
+ # letters (a-z, A-Z), numbers (0-9), underscores (_), or hyphens (-). The
38
+ # maximum length is 100 characters.
39
+ # Corresponds to the JSON property `jobId`
40
+ # @return [String]
41
+ attr_accessor :job_id
42
+
43
+ def initialize(**args)
44
+ update!(**args)
45
+ end
46
+
47
+ # Update properties of this object
48
+ def update!(**args)
49
+ @project_id = args[:project_id] if args.key?(:project_id)
50
+ @job_id = args[:job_id] if args.key?(:job_id)
51
+ end
52
+ end
53
+
54
+ # A request to submit a job.
55
+ class SubmitJobRequest
56
+ include Google::Apis::Core::Hashable
57
+
58
+ # A Cloud Dataproc job resource.
59
+ # Corresponds to the JSON property `job`
60
+ # @return [Google::Apis::DataprocV1::Job]
61
+ attr_accessor :job
62
+
63
+ def initialize(**args)
64
+ update!(**args)
65
+ end
66
+
67
+ # Update properties of this object
68
+ def update!(**args)
69
+ @job = args[:job] if args.key?(:job)
70
+ end
71
+ end
72
+
25
73
  # The Status type defines a logical error model that is suitable for different
26
74
  # programming environments, including REST APIs and RPC APIs. It is used by gRPC
27
75
  # (https://github.com/grpc). The error model is designed to be:
@@ -94,6 +142,13 @@ module Google
94
142
  class InstanceGroupConfig
95
143
  include Google::Apis::Core::Hashable
96
144
 
145
+ # Optional The list of instance names. Cloud Dataproc derives the names from
146
+ # cluster_name, num_instances, and the instance group if not set by user (
147
+ # recommended practice is to let Cloud Dataproc derive the name).
148
+ # Corresponds to the JSON property `instanceNames`
149
+ # @return [Array<String>]
150
+ attr_accessor :instance_names
151
+
97
152
  # Optional The Google Compute Engine accelerator configuration for these
98
153
  # instances.Beta Feature: This feature is still under development. It may be
99
154
  # changed before final release.
@@ -118,11 +173,6 @@ module Google
118
173
  attr_accessor :is_preemptible
119
174
  alias_method :is_preemptible?, :is_preemptible
120
175
 
121
- # Specifies the resources used to actively manage an instance group.
122
- # Corresponds to the JSON property `managedGroupConfig`
123
- # @return [Google::Apis::DataprocV1::ManagedGroupConfig]
124
- attr_accessor :managed_group_config
125
-
126
176
  # Required The Google Compute Engine machine type used for cluster instances.
127
177
  # Example: https://www.googleapis.com/compute/v1/projects/[project_id]/zones/us-
128
178
  # east1-a/machineTypes/n1-standard-2.
@@ -136,12 +186,10 @@ module Google
136
186
  # @return [String]
137
187
  attr_accessor :image_uri
138
188
 
139
- # Optional The list of instance names. Cloud Dataproc derives the names from
140
- # cluster_name, num_instances, and the instance group if not set by user (
141
- # recommended practice is to let Cloud Dataproc derive the name).
142
- # Corresponds to the JSON property `instanceNames`
143
- # @return [Array<String>]
144
- attr_accessor :instance_names
189
+ # Specifies the resources used to actively manage an instance group.
190
+ # Corresponds to the JSON property `managedGroupConfig`
191
+ # @return [Google::Apis::DataprocV1::ManagedGroupConfig]
192
+ attr_accessor :managed_group_config
145
193
 
146
194
  def initialize(**args)
147
195
  update!(**args)
@@ -149,14 +197,14 @@ module Google
149
197
 
150
198
  # Update properties of this object
151
199
  def update!(**args)
200
+ @instance_names = args[:instance_names] if args.key?(:instance_names)
152
201
  @accelerators = args[:accelerators] if args.key?(:accelerators)
153
202
  @num_instances = args[:num_instances] if args.key?(:num_instances)
154
203
  @disk_config = args[:disk_config] if args.key?(:disk_config)
155
204
  @is_preemptible = args[:is_preemptible] if args.key?(:is_preemptible)
156
- @managed_group_config = args[:managed_group_config] if args.key?(:managed_group_config)
157
205
  @machine_type_uri = args[:machine_type_uri] if args.key?(:machine_type_uri)
158
206
  @image_uri = args[:image_uri] if args.key?(:image_uri)
159
- @instance_names = args[:instance_names] if args.key?(:instance_names)
207
+ @managed_group_config = args[:managed_group_config] if args.key?(:managed_group_config)
160
208
  end
161
209
  end
162
210
 
@@ -257,16 +305,16 @@ module Google
257
305
  class SparkSqlJob
258
306
  include Google::Apis::Core::Hashable
259
307
 
260
- # The HCFS URI of the script that contains SQL queries.
261
- # Corresponds to the JSON property `queryFileUri`
262
- # @return [String]
263
- attr_accessor :query_file_uri
264
-
265
308
  # A list of queries to run on a cluster.
266
309
  # Corresponds to the JSON property `queryList`
267
310
  # @return [Google::Apis::DataprocV1::QueryList]
268
311
  attr_accessor :query_list
269
312
 
313
+ # The HCFS URI of the script that contains SQL queries.
314
+ # Corresponds to the JSON property `queryFileUri`
315
+ # @return [String]
316
+ attr_accessor :query_file_uri
317
+
270
318
  # Optional Mapping of query variable names to values (equivalent to the Spark
271
319
  # SQL command: SET name="value";).
272
320
  # Corresponds to the JSON property `scriptVariables`
@@ -296,8 +344,8 @@ module Google
296
344
 
297
345
  # Update properties of this object
298
346
  def update!(**args)
299
- @query_file_uri = args[:query_file_uri] if args.key?(:query_file_uri)
300
347
  @query_list = args[:query_list] if args.key?(:query_list)
348
+ @query_file_uri = args[:query_file_uri] if args.key?(:query_file_uri)
301
349
  @script_variables = args[:script_variables] if args.key?(:script_variables)
302
350
  @jar_file_uris = args[:jar_file_uris] if args.key?(:jar_file_uris)
303
351
  @logging_config = args[:logging_config] if args.key?(:logging_config)
@@ -379,24 +427,24 @@ module Google
379
427
  class ListOperationsResponse
380
428
  include Google::Apis::Core::Hashable
381
429
 
382
- # A list of operations that matches the specified filter in the request.
383
- # Corresponds to the JSON property `operations`
384
- # @return [Array<Google::Apis::DataprocV1::Operation>]
385
- attr_accessor :operations
386
-
387
430
  # The standard List next-page token.
388
431
  # Corresponds to the JSON property `nextPageToken`
389
432
  # @return [String]
390
433
  attr_accessor :next_page_token
391
434
 
435
+ # A list of operations that matches the specified filter in the request.
436
+ # Corresponds to the JSON property `operations`
437
+ # @return [Array<Google::Apis::DataprocV1::Operation>]
438
+ attr_accessor :operations
439
+
392
440
  def initialize(**args)
393
441
  update!(**args)
394
442
  end
395
443
 
396
444
  # Update properties of this object
397
445
  def update!(**args)
398
- @operations = args[:operations] if args.key?(:operations)
399
446
  @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
447
+ @operations = args[:operations] if args.key?(:operations)
400
448
  end
401
449
  end
402
450
 
@@ -491,6 +539,32 @@ module Google
491
539
  end
492
540
  end
493
541
 
542
+ # Cloud Dataproc job config.
543
+ class JobPlacement
544
+ include Google::Apis::Core::Hashable
545
+
546
+ # Required The name of the cluster where the job will be submitted.
547
+ # Corresponds to the JSON property `clusterName`
548
+ # @return [String]
549
+ attr_accessor :cluster_name
550
+
551
+ # Output-only A cluster UUID generated by the Cloud Dataproc service when the
552
+ # job is submitted.
553
+ # Corresponds to the JSON property `clusterUuid`
554
+ # @return [String]
555
+ attr_accessor :cluster_uuid
556
+
557
+ def initialize(**args)
558
+ update!(**args)
559
+ end
560
+
561
+ # Update properties of this object
562
+ def update!(**args)
563
+ @cluster_name = args[:cluster_name] if args.key?(:cluster_name)
564
+ @cluster_uuid = args[:cluster_uuid] if args.key?(:cluster_uuid)
565
+ end
566
+ end
567
+
494
568
  # Specifies the selection and config of software inside the cluster.
495
569
  class SoftwareConfig
496
570
  include Google::Apis::Core::Hashable
@@ -527,55 +601,11 @@ module Google
527
601
  end
528
602
  end
529
603
 
530
- # Cloud Dataproc job config.
531
- class JobPlacement
532
- include Google::Apis::Core::Hashable
533
-
534
- # Required The name of the cluster where the job will be submitted.
535
- # Corresponds to the JSON property `clusterName`
536
- # @return [String]
537
- attr_accessor :cluster_name
538
-
539
- # Output-only A cluster UUID generated by the Cloud Dataproc service when the
540
- # job is submitted.
541
- # Corresponds to the JSON property `clusterUuid`
542
- # @return [String]
543
- attr_accessor :cluster_uuid
544
-
545
- def initialize(**args)
546
- update!(**args)
547
- end
548
-
549
- # Update properties of this object
550
- def update!(**args)
551
- @cluster_name = args[:cluster_name] if args.key?(:cluster_name)
552
- @cluster_uuid = args[:cluster_uuid] if args.key?(:cluster_uuid)
553
- end
554
- end
555
-
556
604
  # A Cloud Dataproc job for running Apache Pig (https://pig.apache.org/) queries
557
605
  # on YARN.
558
606
  class PigJob
559
607
  include Google::Apis::Core::Hashable
560
608
 
561
- # Optional Whether to continue executing queries if a query fails. The default
562
- # value is false. Setting to true can be useful when executing independent
563
- # parallel queries.
564
- # Corresponds to the JSON property `continueOnFailure`
565
- # @return [Boolean]
566
- attr_accessor :continue_on_failure
567
- alias_method :continue_on_failure?, :continue_on_failure
568
-
569
- # A list of queries to run on a cluster.
570
- # Corresponds to the JSON property `queryList`
571
- # @return [Google::Apis::DataprocV1::QueryList]
572
- attr_accessor :query_list
573
-
574
- # The HCFS URI of the script that contains the Pig queries.
575
- # Corresponds to the JSON property `queryFileUri`
576
- # @return [String]
577
- attr_accessor :query_file_uri
578
-
579
609
  # Optional HCFS URIs of jar files to add to the CLASSPATH of the Pig Client and
580
610
  # Hadoop MapReduce (MR) tasks. Can contain Pig UDFs.
581
611
  # Corresponds to the JSON property `jarFileUris`
@@ -601,19 +631,37 @@ module Google
601
631
  # @return [Hash<String,String>]
602
632
  attr_accessor :properties
603
633
 
634
+ # Optional Whether to continue executing queries if a query fails. The default
635
+ # value is false. Setting to true can be useful when executing independent
636
+ # parallel queries.
637
+ # Corresponds to the JSON property `continueOnFailure`
638
+ # @return [Boolean]
639
+ attr_accessor :continue_on_failure
640
+ alias_method :continue_on_failure?, :continue_on_failure
641
+
642
+ # A list of queries to run on a cluster.
643
+ # Corresponds to the JSON property `queryList`
644
+ # @return [Google::Apis::DataprocV1::QueryList]
645
+ attr_accessor :query_list
646
+
647
+ # The HCFS URI of the script that contains the Pig queries.
648
+ # Corresponds to the JSON property `queryFileUri`
649
+ # @return [String]
650
+ attr_accessor :query_file_uri
651
+
604
652
  def initialize(**args)
605
653
  update!(**args)
606
654
  end
607
655
 
608
656
  # Update properties of this object
609
657
  def update!(**args)
610
- @continue_on_failure = args[:continue_on_failure] if args.key?(:continue_on_failure)
611
- @query_list = args[:query_list] if args.key?(:query_list)
612
- @query_file_uri = args[:query_file_uri] if args.key?(:query_file_uri)
613
658
  @jar_file_uris = args[:jar_file_uris] if args.key?(:jar_file_uris)
614
659
  @script_variables = args[:script_variables] if args.key?(:script_variables)
615
660
  @logging_config = args[:logging_config] if args.key?(:logging_config)
616
661
  @properties = args[:properties] if args.key?(:properties)
662
+ @continue_on_failure = args[:continue_on_failure] if args.key?(:continue_on_failure)
663
+ @query_list = args[:query_list] if args.key?(:query_list)
664
+ @query_file_uri = args[:query_file_uri] if args.key?(:query_file_uri)
617
665
  end
618
666
  end
619
667
 
@@ -621,6 +669,11 @@ module Google
621
669
  class ClusterStatus
622
670
  include Google::Apis::Core::Hashable
623
671
 
672
+ # Output-only The cluster's state.
673
+ # Corresponds to the JSON property `state`
674
+ # @return [String]
675
+ attr_accessor :state
676
+
624
677
  # Output-only Time when this state was entered.
625
678
  # Corresponds to the JSON property `stateStartTime`
626
679
  # @return [String]
@@ -637,21 +690,16 @@ module Google
637
690
  # @return [String]
638
691
  attr_accessor :detail
639
692
 
640
- # Output-only The cluster's state.
641
- # Corresponds to the JSON property `state`
642
- # @return [String]
643
- attr_accessor :state
644
-
645
693
  def initialize(**args)
646
694
  update!(**args)
647
695
  end
648
696
 
649
697
  # Update properties of this object
650
698
  def update!(**args)
699
+ @state = args[:state] if args.key?(:state)
651
700
  @state_start_time = args[:state_start_time] if args.key?(:state_start_time)
652
701
  @substate = args[:substate] if args.key?(:substate)
653
702
  @detail = args[:detail] if args.key?(:detail)
654
- @state = args[:state] if args.key?(:state)
655
703
  end
656
704
  end
657
705
 
@@ -687,24 +735,6 @@ module Google
687
735
  class SparkJob
688
736
  include Google::Apis::Core::Hashable
689
737
 
690
- # The name of the driver's main class. The jar file that contains the class must
691
- # be in the default CLASSPATH or specified in jar_file_uris.
692
- # Corresponds to the JSON property `mainClass`
693
- # @return [String]
694
- attr_accessor :main_class
695
-
696
- # Optional HCFS URIs of archives to be extracted in the working directory of
697
- # Spark drivers and tasks. Supported file types: .jar, .tar, .tar.gz, .tgz, and .
698
- # zip.
699
- # Corresponds to the JSON property `archiveUris`
700
- # @return [Array<String>]
701
- attr_accessor :archive_uris
702
-
703
- # The HCFS URI of the jar file that contains the main class.
704
- # Corresponds to the JSON property `mainJarFileUri`
705
- # @return [String]
706
- attr_accessor :main_jar_file_uri
707
-
708
738
  # Optional HCFS URIs of jar files to add to the CLASSPATHs of the Spark driver
709
739
  # and tasks.
710
740
  # Corresponds to the JSON property `jarFileUris`
@@ -737,20 +767,38 @@ module Google
737
767
  # @return [Array<String>]
738
768
  attr_accessor :file_uris
739
769
 
770
+ # The name of the driver's main class. The jar file that contains the class must
771
+ # be in the default CLASSPATH or specified in jar_file_uris.
772
+ # Corresponds to the JSON property `mainClass`
773
+ # @return [String]
774
+ attr_accessor :main_class
775
+
776
+ # Optional HCFS URIs of archives to be extracted in the working directory of
777
+ # Spark drivers and tasks. Supported file types: .jar, .tar, .tar.gz, .tgz, and .
778
+ # zip.
779
+ # Corresponds to the JSON property `archiveUris`
780
+ # @return [Array<String>]
781
+ attr_accessor :archive_uris
782
+
783
+ # The HCFS URI of the jar file that contains the main class.
784
+ # Corresponds to the JSON property `mainJarFileUri`
785
+ # @return [String]
786
+ attr_accessor :main_jar_file_uri
787
+
740
788
  def initialize(**args)
741
789
  update!(**args)
742
790
  end
743
791
 
744
792
  # Update properties of this object
745
793
  def update!(**args)
746
- @main_class = args[:main_class] if args.key?(:main_class)
747
- @archive_uris = args[:archive_uris] if args.key?(:archive_uris)
748
- @main_jar_file_uri = args[:main_jar_file_uri] if args.key?(:main_jar_file_uri)
749
794
  @jar_file_uris = args[:jar_file_uris] if args.key?(:jar_file_uris)
750
795
  @logging_config = args[:logging_config] if args.key?(:logging_config)
751
796
  @properties = args[:properties] if args.key?(:properties)
752
797
  @args = args[:args] if args.key?(:args)
753
798
  @file_uris = args[:file_uris] if args.key?(:file_uris)
799
+ @main_class = args[:main_class] if args.key?(:main_class)
800
+ @archive_uris = args[:archive_uris] if args.key?(:archive_uris)
801
+ @main_jar_file_uri = args[:main_jar_file_uri] if args.key?(:main_jar_file_uri)
754
802
  end
755
803
  end
756
804
 
@@ -758,42 +806,6 @@ module Google
758
806
  class Job
759
807
  include Google::Apis::Core::Hashable
760
808
 
761
- # Output-only The collection of YARN applications spun up by this job.Beta
762
- # Feature: This report is available for testing purposes only. It may be changed
763
- # before final release.
764
- # Corresponds to the JSON property `yarnApplications`
765
- # @return [Array<Google::Apis::DataprocV1::YarnApplication>]
766
- attr_accessor :yarn_applications
767
-
768
- # A Cloud Dataproc job for running Apache PySpark (https://spark.apache.org/docs/
769
- # 0.9.0/python-programming-guide.html) applications on YARN.
770
- # Corresponds to the JSON property `pysparkJob`
771
- # @return [Google::Apis::DataprocV1::PySparkJob]
772
- attr_accessor :pyspark_job
773
-
774
- # Encapsulates the full scoping used to reference a job.
775
- # Corresponds to the JSON property `reference`
776
- # @return [Google::Apis::DataprocV1::JobReference]
777
- attr_accessor :reference
778
-
779
- # A Cloud Dataproc job for running Apache Hadoop MapReduce (https://hadoop.
780
- # apache.org/docs/current/hadoop-mapreduce-client/hadoop-mapreduce-client-core/
781
- # MapReduceTutorial.html) jobs on Apache Hadoop YARN (https://hadoop.apache.org/
782
- # docs/r2.7.1/hadoop-yarn/hadoop-yarn-site/YARN.html).
783
- # Corresponds to the JSON property `hadoopJob`
784
- # @return [Google::Apis::DataprocV1::HadoopJob]
785
- attr_accessor :hadoop_job
786
-
787
- # Cloud Dataproc job status.
788
- # Corresponds to the JSON property `status`
789
- # @return [Google::Apis::DataprocV1::JobStatus]
790
- attr_accessor :status
791
-
792
- # Cloud Dataproc job config.
793
- # Corresponds to the JSON property `placement`
794
- # @return [Google::Apis::DataprocV1::JobPlacement]
795
- attr_accessor :placement
796
-
797
809
  # Output-only If present, the location of miscellaneous control files which may
798
810
  # be used as part of job setup and handling. If not present, control files may
799
811
  # be placed in the same location as driver_output_uri.
@@ -839,17 +851,53 @@ module Google
839
851
  # @return [Array<Google::Apis::DataprocV1::JobStatus>]
840
852
  attr_accessor :status_history
841
853
 
854
+ # A Cloud Dataproc job for running Apache Spark SQL (http://spark.apache.org/sql/
855
+ # ) queries.
856
+ # Corresponds to the JSON property `sparkSqlJob`
857
+ # @return [Google::Apis::DataprocV1::SparkSqlJob]
858
+ attr_accessor :spark_sql_job
859
+
842
860
  # A Cloud Dataproc job for running Apache Spark (http://spark.apache.org/)
843
861
  # applications on YARN.
844
862
  # Corresponds to the JSON property `sparkJob`
845
863
  # @return [Google::Apis::DataprocV1::SparkJob]
846
864
  attr_accessor :spark_job
847
865
 
848
- # A Cloud Dataproc job for running Apache Spark SQL (http://spark.apache.org/sql/
849
- # ) queries.
850
- # Corresponds to the JSON property `sparkSqlJob`
851
- # @return [Google::Apis::DataprocV1::SparkSqlJob]
852
- attr_accessor :spark_sql_job
866
+ # Output-only The collection of YARN applications spun up by this job.Beta
867
+ # Feature: This report is available for testing purposes only. It may be changed
868
+ # before final release.
869
+ # Corresponds to the JSON property `yarnApplications`
870
+ # @return [Array<Google::Apis::DataprocV1::YarnApplication>]
871
+ attr_accessor :yarn_applications
872
+
873
+ # A Cloud Dataproc job for running Apache PySpark (https://spark.apache.org/docs/
874
+ # 0.9.0/python-programming-guide.html) applications on YARN.
875
+ # Corresponds to the JSON property `pysparkJob`
876
+ # @return [Google::Apis::DataprocV1::PySparkJob]
877
+ attr_accessor :pyspark_job
878
+
879
+ # Encapsulates the full scoping used to reference a job.
880
+ # Corresponds to the JSON property `reference`
881
+ # @return [Google::Apis::DataprocV1::JobReference]
882
+ attr_accessor :reference
883
+
884
+ # A Cloud Dataproc job for running Apache Hadoop MapReduce (https://hadoop.
885
+ # apache.org/docs/current/hadoop-mapreduce-client/hadoop-mapreduce-client-core/
886
+ # MapReduceTutorial.html) jobs on Apache Hadoop YARN (https://hadoop.apache.org/
887
+ # docs/r2.7.1/hadoop-yarn/hadoop-yarn-site/YARN.html).
888
+ # Corresponds to the JSON property `hadoopJob`
889
+ # @return [Google::Apis::DataprocV1::HadoopJob]
890
+ attr_accessor :hadoop_job
891
+
892
+ # Cloud Dataproc job status.
893
+ # Corresponds to the JSON property `status`
894
+ # @return [Google::Apis::DataprocV1::JobStatus]
895
+ attr_accessor :status
896
+
897
+ # Cloud Dataproc job config.
898
+ # Corresponds to the JSON property `placement`
899
+ # @return [Google::Apis::DataprocV1::JobPlacement]
900
+ attr_accessor :placement
853
901
 
854
902
  def initialize(**args)
855
903
  update!(**args)
@@ -857,12 +905,6 @@ module Google
857
905
 
858
906
  # Update properties of this object
859
907
  def update!(**args)
860
- @yarn_applications = args[:yarn_applications] if args.key?(:yarn_applications)
861
- @pyspark_job = args[:pyspark_job] if args.key?(:pyspark_job)
862
- @reference = args[:reference] if args.key?(:reference)
863
- @hadoop_job = args[:hadoop_job] if args.key?(:hadoop_job)
864
- @status = args[:status] if args.key?(:status)
865
- @placement = args[:placement] if args.key?(:placement)
866
908
  @driver_control_files_uri = args[:driver_control_files_uri] if args.key?(:driver_control_files_uri)
867
909
  @scheduling = args[:scheduling] if args.key?(:scheduling)
868
910
  @pig_job = args[:pig_job] if args.key?(:pig_job)
@@ -870,8 +912,14 @@ module Google
870
912
  @labels = args[:labels] if args.key?(:labels)
871
913
  @driver_output_resource_uri = args[:driver_output_resource_uri] if args.key?(:driver_output_resource_uri)
872
914
  @status_history = args[:status_history] if args.key?(:status_history)
873
- @spark_job = args[:spark_job] if args.key?(:spark_job)
874
915
  @spark_sql_job = args[:spark_sql_job] if args.key?(:spark_sql_job)
916
+ @spark_job = args[:spark_job] if args.key?(:spark_job)
917
+ @yarn_applications = args[:yarn_applications] if args.key?(:yarn_applications)
918
+ @pyspark_job = args[:pyspark_job] if args.key?(:pyspark_job)
919
+ @reference = args[:reference] if args.key?(:reference)
920
+ @hadoop_job = args[:hadoop_job] if args.key?(:hadoop_job)
921
+ @status = args[:status] if args.key?(:status)
922
+ @placement = args[:placement] if args.key?(:placement)
875
923
  end
876
924
  end
877
925
 
@@ -879,17 +927,6 @@ module Google
879
927
  class JobStatus
880
928
  include Google::Apis::Core::Hashable
881
929
 
882
- # Output-only A state message specifying the overall job state.
883
- # Corresponds to the JSON property `state`
884
- # @return [String]
885
- attr_accessor :state
886
-
887
- # Output-only Optional job state details, such as an error description if the
888
- # state is <code>ERROR</code>.
889
- # Corresponds to the JSON property `details`
890
- # @return [String]
891
- attr_accessor :details
892
-
893
930
  # Output-only The time when this state was entered.
894
931
  # Corresponds to the JSON property `stateStartTime`
895
932
  # @return [String]
@@ -901,16 +938,27 @@ module Google
901
938
  # @return [String]
902
939
  attr_accessor :substate
903
940
 
941
+ # Output-only A state message specifying the overall job state.
942
+ # Corresponds to the JSON property `state`
943
+ # @return [String]
944
+ attr_accessor :state
945
+
946
+ # Output-only Optional job state details, such as an error description if the
947
+ # state is <code>ERROR</code>.
948
+ # Corresponds to the JSON property `details`
949
+ # @return [String]
950
+ attr_accessor :details
951
+
904
952
  def initialize(**args)
905
953
  update!(**args)
906
954
  end
907
955
 
908
956
  # Update properties of this object
909
957
  def update!(**args)
910
- @state = args[:state] if args.key?(:state)
911
- @details = args[:details] if args.key?(:details)
912
958
  @state_start_time = args[:state_start_time] if args.key?(:state_start_time)
913
959
  @substate = args[:substate] if args.key?(:substate)
960
+ @state = args[:state] if args.key?(:state)
961
+ @details = args[:details] if args.key?(:details)
914
962
  end
915
963
  end
916
964
 
@@ -977,6 +1025,83 @@ module Google
977
1025
  end
978
1026
  end
979
1027
 
1028
+ # A Cloud Dataproc job for running Apache Hadoop MapReduce (https://hadoop.
1029
+ # apache.org/docs/current/hadoop-mapreduce-client/hadoop-mapreduce-client-core/
1030
+ # MapReduceTutorial.html) jobs on Apache Hadoop YARN (https://hadoop.apache.org/
1031
+ # docs/r2.7.1/hadoop-yarn/hadoop-yarn-site/YARN.html).
1032
+ class HadoopJob
1033
+ include Google::Apis::Core::Hashable
1034
+
1035
+ # Optional A mapping of property names to values, used to configure Hadoop.
1036
+ # Properties that conflict with values set by the Cloud Dataproc API may be
1037
+ # overwritten. Can include properties set in /etc/hadoop/conf/*-site and classes
1038
+ # in user code.
1039
+ # Corresponds to the JSON property `properties`
1040
+ # @return [Hash<String,String>]
1041
+ attr_accessor :properties
1042
+
1043
+ # Optional The arguments to pass to the driver. Do not include arguments, such
1044
+ # as -libjars or -Dfoo=bar, that can be set as job properties, since a collision
1045
+ # may occur that causes an incorrect job submission.
1046
+ # Corresponds to the JSON property `args`
1047
+ # @return [Array<String>]
1048
+ attr_accessor :args
1049
+
1050
+ # Optional HCFS (Hadoop Compatible Filesystem) URIs of files to be copied to the
1051
+ # working directory of Hadoop drivers and distributed tasks. Useful for naively
1052
+ # parallel tasks.
1053
+ # Corresponds to the JSON property `fileUris`
1054
+ # @return [Array<String>]
1055
+ attr_accessor :file_uris
1056
+
1057
+ # The name of the driver's main class. The jar file containing the class must be
1058
+ # in the default CLASSPATH or specified in jar_file_uris.
1059
+ # Corresponds to the JSON property `mainClass`
1060
+ # @return [String]
1061
+ attr_accessor :main_class
1062
+
1063
+ # Optional HCFS URIs of archives to be extracted in the working directory of
1064
+ # Hadoop drivers and tasks. Supported file types: .jar, .tar, .tar.gz, .tgz, or .
1065
+ # zip.
1066
+ # Corresponds to the JSON property `archiveUris`
1067
+ # @return [Array<String>]
1068
+ attr_accessor :archive_uris
1069
+
1070
+ # The HCFS URI of the jar file containing the main class. Examples: 'gs://foo-
1071
+ # bucket/analytics-binaries/extract-useful-metrics-mr.jar' 'hdfs:/tmp/test-
1072
+ # samples/custom-wordcount.jar' 'file:///home/usr/lib/hadoop-mapreduce/hadoop-
1073
+ # mapreduce-examples.jar'
1074
+ # Corresponds to the JSON property `mainJarFileUri`
1075
+ # @return [String]
1076
+ attr_accessor :main_jar_file_uri
1077
+
1078
+ # Optional Jar file URIs to add to the CLASSPATHs of the Hadoop driver and tasks.
1079
+ # Corresponds to the JSON property `jarFileUris`
1080
+ # @return [Array<String>]
1081
+ attr_accessor :jar_file_uris
1082
+
1083
+ # The runtime logging config of the job.
1084
+ # Corresponds to the JSON property `loggingConfig`
1085
+ # @return [Google::Apis::DataprocV1::LoggingConfig]
1086
+ attr_accessor :logging_config
1087
+
1088
+ def initialize(**args)
1089
+ update!(**args)
1090
+ end
1091
+
1092
+ # Update properties of this object
1093
+ def update!(**args)
1094
+ @properties = args[:properties] if args.key?(:properties)
1095
+ @args = args[:args] if args.key?(:args)
1096
+ @file_uris = args[:file_uris] if args.key?(:file_uris)
1097
+ @main_class = args[:main_class] if args.key?(:main_class)
1098
+ @archive_uris = args[:archive_uris] if args.key?(:archive_uris)
1099
+ @main_jar_file_uri = args[:main_jar_file_uri] if args.key?(:main_jar_file_uri)
1100
+ @jar_file_uris = args[:jar_file_uris] if args.key?(:jar_file_uris)
1101
+ @logging_config = args[:logging_config] if args.key?(:logging_config)
1102
+ end
1103
+ end
1104
+
980
1105
  # A list of queries to run on a cluster.
981
1106
  class QueryList
982
1107
  include Google::Apis::Core::Hashable
@@ -1051,83 +1176,6 @@ module Google
1051
1176
  end
1052
1177
  end
1053
1178
 
1054
- # A Cloud Dataproc job for running Apache Hadoop MapReduce (https://hadoop.
1055
- # apache.org/docs/current/hadoop-mapreduce-client/hadoop-mapreduce-client-core/
1056
- # MapReduceTutorial.html) jobs on Apache Hadoop YARN (https://hadoop.apache.org/
1057
- # docs/r2.7.1/hadoop-yarn/hadoop-yarn-site/YARN.html).
1058
- class HadoopJob
1059
- include Google::Apis::Core::Hashable
1060
-
1061
- # Optional Jar file URIs to add to the CLASSPATHs of the Hadoop driver and tasks.
1062
- # Corresponds to the JSON property `jarFileUris`
1063
- # @return [Array<String>]
1064
- attr_accessor :jar_file_uris
1065
-
1066
- # The runtime logging config of the job.
1067
- # Corresponds to the JSON property `loggingConfig`
1068
- # @return [Google::Apis::DataprocV1::LoggingConfig]
1069
- attr_accessor :logging_config
1070
-
1071
- # Optional A mapping of property names to values, used to configure Hadoop.
1072
- # Properties that conflict with values set by the Cloud Dataproc API may be
1073
- # overwritten. Can include properties set in /etc/hadoop/conf/*-site and classes
1074
- # in user code.
1075
- # Corresponds to the JSON property `properties`
1076
- # @return [Hash<String,String>]
1077
- attr_accessor :properties
1078
-
1079
- # Optional The arguments to pass to the driver. Do not include arguments, such
1080
- # as -libjars or -Dfoo=bar, that can be set as job properties, since a collision
1081
- # may occur that causes an incorrect job submission.
1082
- # Corresponds to the JSON property `args`
1083
- # @return [Array<String>]
1084
- attr_accessor :args
1085
-
1086
- # Optional HCFS (Hadoop Compatible Filesystem) URIs of files to be copied to the
1087
- # working directory of Hadoop drivers and distributed tasks. Useful for naively
1088
- # parallel tasks.
1089
- # Corresponds to the JSON property `fileUris`
1090
- # @return [Array<String>]
1091
- attr_accessor :file_uris
1092
-
1093
- # The name of the driver's main class. The jar file containing the class must be
1094
- # in the default CLASSPATH or specified in jar_file_uris.
1095
- # Corresponds to the JSON property `mainClass`
1096
- # @return [String]
1097
- attr_accessor :main_class
1098
-
1099
- # Optional HCFS URIs of archives to be extracted in the working directory of
1100
- # Hadoop drivers and tasks. Supported file types: .jar, .tar, .tar.gz, .tgz, or .
1101
- # zip.
1102
- # Corresponds to the JSON property `archiveUris`
1103
- # @return [Array<String>]
1104
- attr_accessor :archive_uris
1105
-
1106
- # The HCFS URI of the jar file containing the main class. Examples: 'gs://foo-
1107
- # bucket/analytics-binaries/extract-useful-metrics-mr.jar' 'hdfs:/tmp/test-
1108
- # samples/custom-wordcount.jar' 'file:///home/usr/lib/hadoop-mapreduce/hadoop-
1109
- # mapreduce-examples.jar'
1110
- # Corresponds to the JSON property `mainJarFileUri`
1111
- # @return [String]
1112
- attr_accessor :main_jar_file_uri
1113
-
1114
- def initialize(**args)
1115
- update!(**args)
1116
- end
1117
-
1118
- # Update properties of this object
1119
- def update!(**args)
1120
- @jar_file_uris = args[:jar_file_uris] if args.key?(:jar_file_uris)
1121
- @logging_config = args[:logging_config] if args.key?(:logging_config)
1122
- @properties = args[:properties] if args.key?(:properties)
1123
- @args = args[:args] if args.key?(:args)
1124
- @file_uris = args[:file_uris] if args.key?(:file_uris)
1125
- @main_class = args[:main_class] if args.key?(:main_class)
1126
- @archive_uris = args[:archive_uris] if args.key?(:archive_uris)
1127
- @main_jar_file_uri = args[:main_jar_file_uri] if args.key?(:main_jar_file_uri)
1128
- end
1129
- end
1130
-
1131
1179
  # A request to collect cluster diagnostic information.
1132
1180
  class DiagnoseClusterRequest
1133
1181
  include Google::Apis::Core::Hashable
@@ -1145,6 +1193,11 @@ module Google
1145
1193
  class DiskConfig
1146
1194
  include Google::Apis::Core::Hashable
1147
1195
 
1196
+ # Optional Size in GB of the boot disk (default is 500GB).
1197
+ # Corresponds to the JSON property `bootDiskSizeGb`
1198
+ # @return [Fixnum]
1199
+ attr_accessor :boot_disk_size_gb
1200
+
1148
1201
  # Optional Number of attached SSDs, from 0 to 4 (default is 0). If SSDs are not
1149
1202
  # attached, the boot disk is used to store runtime logs and HDFS (https://hadoop.
1150
1203
  # apache.org/docs/r1.2.1/hdfs_user_guide.html) data. If one or more SSDs are
@@ -1154,19 +1207,14 @@ module Google
1154
1207
  # @return [Fixnum]
1155
1208
  attr_accessor :num_local_ssds
1156
1209
 
1157
- # Optional Size in GB of the boot disk (default is 500GB).
1158
- # Corresponds to the JSON property `bootDiskSizeGb`
1159
- # @return [Fixnum]
1160
- attr_accessor :boot_disk_size_gb
1161
-
1162
1210
  def initialize(**args)
1163
1211
  update!(**args)
1164
1212
  end
1165
1213
 
1166
1214
  # Update properties of this object
1167
1215
  def update!(**args)
1168
- @num_local_ssds = args[:num_local_ssds] if args.key?(:num_local_ssds)
1169
1216
  @boot_disk_size_gb = args[:boot_disk_size_gb] if args.key?(:boot_disk_size_gb)
1217
+ @num_local_ssds = args[:num_local_ssds] if args.key?(:num_local_ssds)
1170
1218
  end
1171
1219
  end
1172
1220
 
@@ -1174,6 +1222,11 @@ module Google
1174
1222
  class ClusterOperationMetadata
1175
1223
  include Google::Apis::Core::Hashable
1176
1224
 
1225
+ # Output-only Errors encountered during operation execution.
1226
+ # Corresponds to the JSON property `warnings`
1227
+ # @return [Array<String>]
1228
+ attr_accessor :warnings
1229
+
1177
1230
  # Output-only Labels associated with the operation
1178
1231
  # Corresponds to the JSON property `labels`
1179
1232
  # @return [Hash<String,String>]
@@ -1209,17 +1262,13 @@ module Google
1209
1262
  # @return [String]
1210
1263
  attr_accessor :description
1211
1264
 
1212
- # Output-only Errors encountered during operation execution.
1213
- # Corresponds to the JSON property `warnings`
1214
- # @return [Array<String>]
1215
- attr_accessor :warnings
1216
-
1217
1265
  def initialize(**args)
1218
1266
  update!(**args)
1219
1267
  end
1220
1268
 
1221
1269
  # Update properties of this object
1222
1270
  def update!(**args)
1271
+ @warnings = args[:warnings] if args.key?(:warnings)
1223
1272
  @labels = args[:labels] if args.key?(:labels)
1224
1273
  @status = args[:status] if args.key?(:status)
1225
1274
  @status_history = args[:status_history] if args.key?(:status_history)
@@ -1227,7 +1276,6 @@ module Google
1227
1276
  @cluster_uuid = args[:cluster_uuid] if args.key?(:cluster_uuid)
1228
1277
  @operation_type = args[:operation_type] if args.key?(:operation_type)
1229
1278
  @description = args[:description] if args.key?(:description)
1230
- @warnings = args[:warnings] if args.key?(:warnings)
1231
1279
  end
1232
1280
  end
1233
1281
 
@@ -1263,16 +1311,16 @@ module Google
1263
1311
  attr_accessor :continue_on_failure
1264
1312
  alias_method :continue_on_failure?, :continue_on_failure
1265
1313
 
1266
- # A list of queries to run on a cluster.
1267
- # Corresponds to the JSON property `queryList`
1268
- # @return [Google::Apis::DataprocV1::QueryList]
1269
- attr_accessor :query_list
1270
-
1271
1314
  # The HCFS URI of the script that contains Hive queries.
1272
1315
  # Corresponds to the JSON property `queryFileUri`
1273
1316
  # @return [String]
1274
1317
  attr_accessor :query_file_uri
1275
1318
 
1319
+ # A list of queries to run on a cluster.
1320
+ # Corresponds to the JSON property `queryList`
1321
+ # @return [Google::Apis::DataprocV1::QueryList]
1322
+ attr_accessor :query_list
1323
+
1276
1324
  # Optional HCFS URIs of jar files to add to the CLASSPATH of the Hive server and
1277
1325
  # Hadoop MapReduce (MR) tasks. Can contain Hive SerDes and UDFs.
1278
1326
  # Corresponds to the JSON property `jarFileUris`
@@ -1300,8 +1348,8 @@ module Google
1300
1348
  # Update properties of this object
1301
1349
  def update!(**args)
1302
1350
  @continue_on_failure = args[:continue_on_failure] if args.key?(:continue_on_failure)
1303
- @query_list = args[:query_list] if args.key?(:query_list)
1304
1351
  @query_file_uri = args[:query_file_uri] if args.key?(:query_file_uri)
1352
+ @query_list = args[:query_list] if args.key?(:query_list)
1305
1353
  @jar_file_uris = args[:jar_file_uris] if args.key?(:jar_file_uris)
1306
1354
  @script_variables = args[:script_variables] if args.key?(:script_variables)
1307
1355
  @properties = args[:properties] if args.key?(:properties)
@@ -1332,31 +1380,6 @@ module Google
1332
1380
  class ClusterConfig
1333
1381
  include Google::Apis::Core::Hashable
1334
1382
 
1335
- # Optional Commands to execute on each node after config is completed. By
1336
- # default, executables are run on master and all worker nodes. You can test a
1337
- # node's <code>role</code> metadata to run an executable on a master or worker
1338
- # node, as shown below using curl (you can also use wget):
1339
- # ROLE=$(curl -H Metadata-Flavor:Google http://metadata/computeMetadata/v1/
1340
- # instance/attributes/dataproc-role)
1341
- # if [[ "$`ROLE`" == 'Master' ]]; then
1342
- # ... master specific actions ...
1343
- # else
1344
- # ... worker specific actions ...
1345
- # fi
1346
- # Corresponds to the JSON property `initializationActions`
1347
- # @return [Array<Google::Apis::DataprocV1::NodeInitializationAction>]
1348
- attr_accessor :initialization_actions
1349
-
1350
- # Optional A Google Cloud Storage staging bucket used for sharing generated SSH
1351
- # keys and config. If you do not specify a staging bucket, Cloud Dataproc will
1352
- # determine an appropriate Cloud Storage location (US, ASIA, or EU) for your
1353
- # cluster's staging bucket according to the Google Compute Engine zone where
1354
- # your cluster is deployed, and then it will create and manage this project-
1355
- # level, per-location bucket for you.
1356
- # Corresponds to the JSON property `configBucket`
1357
- # @return [String]
1358
- attr_accessor :config_bucket
1359
-
1360
1383
  # Optional The config settings for Google Compute Engine resources in an
1361
1384
  # instance group, such as a master or worker group.
1362
1385
  # Corresponds to the JSON property `workerConfig`
@@ -1386,19 +1409,44 @@ module Google
1386
1409
  # @return [Google::Apis::DataprocV1::InstanceGroupConfig]
1387
1410
  attr_accessor :secondary_worker_config
1388
1411
 
1412
+ # Optional Commands to execute on each node after config is completed. By
1413
+ # default, executables are run on master and all worker nodes. You can test a
1414
+ # node's <code>role</code> metadata to run an executable on a master or worker
1415
+ # node, as shown below using curl (you can also use wget):
1416
+ # ROLE=$(curl -H Metadata-Flavor:Google http://metadata/computeMetadata/v1/
1417
+ # instance/attributes/dataproc-role)
1418
+ # if [[ "$`ROLE`" == 'Master' ]]; then
1419
+ # ... master specific actions ...
1420
+ # else
1421
+ # ... worker specific actions ...
1422
+ # fi
1423
+ # Corresponds to the JSON property `initializationActions`
1424
+ # @return [Array<Google::Apis::DataprocV1::NodeInitializationAction>]
1425
+ attr_accessor :initialization_actions
1426
+
1427
+ # Optional A Google Cloud Storage staging bucket used for sharing generated SSH
1428
+ # keys and config. If you do not specify a staging bucket, Cloud Dataproc will
1429
+ # determine an appropriate Cloud Storage location (US, ASIA, or EU) for your
1430
+ # cluster's staging bucket according to the Google Compute Engine zone where
1431
+ # your cluster is deployed, and then it will create and manage this project-
1432
+ # level, per-location bucket for you.
1433
+ # Corresponds to the JSON property `configBucket`
1434
+ # @return [String]
1435
+ attr_accessor :config_bucket
1436
+
1389
1437
  def initialize(**args)
1390
1438
  update!(**args)
1391
1439
  end
1392
1440
 
1393
1441
  # Update properties of this object
1394
1442
  def update!(**args)
1395
- @initialization_actions = args[:initialization_actions] if args.key?(:initialization_actions)
1396
- @config_bucket = args[:config_bucket] if args.key?(:config_bucket)
1397
1443
  @worker_config = args[:worker_config] if args.key?(:worker_config)
1398
1444
  @gce_cluster_config = args[:gce_cluster_config] if args.key?(:gce_cluster_config)
1399
1445
  @software_config = args[:software_config] if args.key?(:software_config)
1400
1446
  @master_config = args[:master_config] if args.key?(:master_config)
1401
1447
  @secondary_worker_config = args[:secondary_worker_config] if args.key?(:secondary_worker_config)
1448
+ @initialization_actions = args[:initialization_actions] if args.key?(:initialization_actions)
1449
+ @config_bucket = args[:config_bucket] if args.key?(:config_bucket)
1402
1450
  end
1403
1451
  end
1404
1452
 
@@ -1407,17 +1455,6 @@ module Google
1407
1455
  class PySparkJob
1408
1456
  include Google::Apis::Core::Hashable
1409
1457
 
1410
- # Optional HCFS URIs of jar files to add to the CLASSPATHs of the Python driver
1411
- # and tasks.
1412
- # Corresponds to the JSON property `jarFileUris`
1413
- # @return [Array<String>]
1414
- attr_accessor :jar_file_uris
1415
-
1416
- # The runtime logging config of the job.
1417
- # Corresponds to the JSON property `loggingConfig`
1418
- # @return [Google::Apis::DataprocV1::LoggingConfig]
1419
- attr_accessor :logging_config
1420
-
1421
1458
  # Optional A mapping of property names to values, used to configure PySpark.
1422
1459
  # Properties that conflict with values set by the Cloud Dataproc API may be
1423
1460
  # overwritten. Can include properties set in /etc/spark/conf/spark-defaults.conf
@@ -1457,20 +1494,31 @@ module Google
1457
1494
  # @return [Array<String>]
1458
1495
  attr_accessor :archive_uris
1459
1496
 
1497
+ # Optional HCFS URIs of jar files to add to the CLASSPATHs of the Python driver
1498
+ # and tasks.
1499
+ # Corresponds to the JSON property `jarFileUris`
1500
+ # @return [Array<String>]
1501
+ attr_accessor :jar_file_uris
1502
+
1503
+ # The runtime logging config of the job.
1504
+ # Corresponds to the JSON property `loggingConfig`
1505
+ # @return [Google::Apis::DataprocV1::LoggingConfig]
1506
+ attr_accessor :logging_config
1507
+
1460
1508
  def initialize(**args)
1461
1509
  update!(**args)
1462
1510
  end
1463
1511
 
1464
1512
  # Update properties of this object
1465
1513
  def update!(**args)
1466
- @jar_file_uris = args[:jar_file_uris] if args.key?(:jar_file_uris)
1467
- @logging_config = args[:logging_config] if args.key?(:logging_config)
1468
1514
  @properties = args[:properties] if args.key?(:properties)
1469
1515
  @args = args[:args] if args.key?(:args)
1470
1516
  @file_uris = args[:file_uris] if args.key?(:file_uris)
1471
1517
  @python_file_uris = args[:python_file_uris] if args.key?(:python_file_uris)
1472
1518
  @main_python_file_uri = args[:main_python_file_uri] if args.key?(:main_python_file_uri)
1473
1519
  @archive_uris = args[:archive_uris] if args.key?(:archive_uris)
1520
+ @jar_file_uris = args[:jar_file_uris] if args.key?(:jar_file_uris)
1521
+ @logging_config = args[:logging_config] if args.key?(:logging_config)
1474
1522
  end
1475
1523
  end
1476
1524
 
@@ -1479,13 +1527,6 @@ module Google
1479
1527
  class GceClusterConfig
1480
1528
  include Google::Apis::Core::Hashable
1481
1529
 
1482
- # The Google Compute Engine metadata entries to add to all instances (see
1483
- # Project and instance metadata (https://cloud.google.com/compute/docs/storing-
1484
- # retrieving-metadata#project_and_instance_metadata)).
1485
- # Corresponds to the JSON property `metadata`
1486
- # @return [Hash<String,String>]
1487
- attr_accessor :metadata
1488
-
1489
1530
  # Optional If true, all instances in the cluster will only have internal IP
1490
1531
  # addresses. By default, clusters are not restricted to internal IP addresses,
1491
1532
  # and will have ephemeral external IP addresses assigned to each instance. This
@@ -1497,6 +1538,13 @@ module Google
1497
1538
  attr_accessor :internal_ip_only
1498
1539
  alias_method :internal_ip_only?, :internal_ip_only
1499
1540
 
1541
+ # The Google Compute Engine metadata entries to add to all instances (see
1542
+ # Project and instance metadata (https://cloud.google.com/compute/docs/storing-
1543
+ # retrieving-metadata#project_and_instance_metadata)).
1544
+ # Corresponds to the JSON property `metadata`
1545
+ # @return [Hash<String,String>]
1546
+ attr_accessor :metadata
1547
+
1500
1548
  # Optional The URIs of service account scopes to be included in Google Compute
1501
1549
  # Engine instances. The following base set of scopes is always included:
1502
1550
  # https://www.googleapis.com/auth/cloud.useraccounts.readonly
@@ -1557,8 +1605,8 @@ module Google
1557
1605
 
1558
1606
  # Update properties of this object
1559
1607
  def update!(**args)
1560
- @metadata = args[:metadata] if args.key?(:metadata)
1561
1608
  @internal_ip_only = args[:internal_ip_only] if args.key?(:internal_ip_only)
1609
+ @metadata = args[:metadata] if args.key?(:metadata)
1562
1610
  @service_account_scopes = args[:service_account_scopes] if args.key?(:service_account_scopes)
1563
1611
  @tags = args[:tags] if args.key?(:tags)
1564
1612
  @service_account = args[:service_account] if args.key?(:service_account)
@@ -1574,24 +1622,24 @@ module Google
1574
1622
  class ClusterMetrics
1575
1623
  include Google::Apis::Core::Hashable
1576
1624
 
1577
- # The HDFS metrics.
1578
- # Corresponds to the JSON property `hdfsMetrics`
1579
- # @return [Hash<String,String>]
1580
- attr_accessor :hdfs_metrics
1581
-
1582
1625
  # The YARN metrics.
1583
1626
  # Corresponds to the JSON property `yarnMetrics`
1584
- # @return [Hash<String,String>]
1627
+ # @return [Hash<String,Fixnum>]
1585
1628
  attr_accessor :yarn_metrics
1586
1629
 
1630
+ # The HDFS metrics.
1631
+ # Corresponds to the JSON property `hdfsMetrics`
1632
+ # @return [Hash<String,Fixnum>]
1633
+ attr_accessor :hdfs_metrics
1634
+
1587
1635
  def initialize(**args)
1588
1636
  update!(**args)
1589
1637
  end
1590
1638
 
1591
1639
  # Update properties of this object
1592
1640
  def update!(**args)
1593
- @hdfs_metrics = args[:hdfs_metrics] if args.key?(:hdfs_metrics)
1594
1641
  @yarn_metrics = args[:yarn_metrics] if args.key?(:yarn_metrics)
1642
+ @hdfs_metrics = args[:hdfs_metrics] if args.key?(:hdfs_metrics)
1595
1643
  end
1596
1644
  end
1597
1645
 
@@ -1669,6 +1717,31 @@ module Google
1669
1717
  class Operation
1670
1718
  include Google::Apis::Core::Hashable
1671
1719
 
1720
+ # If the value is false, it means the operation is still in progress. If true,
1721
+ # the operation is completed, and either error or response is available.
1722
+ # Corresponds to the JSON property `done`
1723
+ # @return [Boolean]
1724
+ attr_accessor :done
1725
+ alias_method :done?, :done
1726
+
1727
+ # The normal response of the operation in case of success. If the original
1728
+ # method returns no data on success, such as Delete, the response is google.
1729
+ # protobuf.Empty. If the original method is standard Get/Create/Update, the
1730
+ # response should be the resource. For other methods, the response should have
1731
+ # the type XxxResponse, where Xxx is the original method name. For example, if
1732
+ # the original method name is TakeSnapshot(), the inferred response type is
1733
+ # TakeSnapshotResponse.
1734
+ # Corresponds to the JSON property `response`
1735
+ # @return [Hash<String,Object>]
1736
+ attr_accessor :response
1737
+
1738
+ # The server-assigned name, which is only unique within the same service that
1739
+ # originally returns it. If you use the default HTTP mapping, the name should
1740
+ # have the format of operations/some/unique/name.
1741
+ # Corresponds to the JSON property `name`
1742
+ # @return [String]
1743
+ attr_accessor :name
1744
+
1672
1745
  # The Status type defines a logical error model that is suitable for different
1673
1746
  # programming environments, including REST APIs and RPC APIs. It is used by gRPC
1674
1747
  # (https://github.com/grpc). The error model is designed to be:
@@ -1715,42 +1788,17 @@ module Google
1715
1788
  # @return [Hash<String,Object>]
1716
1789
  attr_accessor :metadata
1717
1790
 
1718
- # If the value is false, it means the operation is still in progress. If true,
1719
- # the operation is completed, and either error or response is available.
1720
- # Corresponds to the JSON property `done`
1721
- # @return [Boolean]
1722
- attr_accessor :done
1723
- alias_method :done?, :done
1724
-
1725
- # The normal response of the operation in case of success. If the original
1726
- # method returns no data on success, such as Delete, the response is google.
1727
- # protobuf.Empty. If the original method is standard Get/Create/Update, the
1728
- # response should be the resource. For other methods, the response should have
1729
- # the type XxxResponse, where Xxx is the original method name. For example, if
1730
- # the original method name is TakeSnapshot(), the inferred response type is
1731
- # TakeSnapshotResponse.
1732
- # Corresponds to the JSON property `response`
1733
- # @return [Hash<String,Object>]
1734
- attr_accessor :response
1735
-
1736
- # The server-assigned name, which is only unique within the same service that
1737
- # originally returns it. If you use the default HTTP mapping, the name should
1738
- # have the format of operations/some/unique/name.
1739
- # Corresponds to the JSON property `name`
1740
- # @return [String]
1741
- attr_accessor :name
1742
-
1743
1791
  def initialize(**args)
1744
1792
  update!(**args)
1745
1793
  end
1746
1794
 
1747
1795
  # Update properties of this object
1748
1796
  def update!(**args)
1749
- @error = args[:error] if args.key?(:error)
1750
- @metadata = args[:metadata] if args.key?(:metadata)
1751
1797
  @done = args[:done] if args.key?(:done)
1752
1798
  @response = args[:response] if args.key?(:response)
1753
1799
  @name = args[:name] if args.key?(:name)
1800
+ @error = args[:error] if args.key?(:error)
1801
+ @metadata = args[:metadata] if args.key?(:metadata)
1754
1802
  end
1755
1803
  end
1756
1804
 
@@ -1758,16 +1806,6 @@ module Google
1758
1806
  class OperationStatus
1759
1807
  include Google::Apis::Core::Hashable
1760
1808
 
1761
- # A message containing the detailed operation state.
1762
- # Corresponds to the JSON property `innerState`
1763
- # @return [String]
1764
- attr_accessor :inner_state
1765
-
1766
- # The time this state was entered.
1767
- # Corresponds to the JSON property `stateStartTime`
1768
- # @return [String]
1769
- attr_accessor :state_start_time
1770
-
1771
1809
  # A message containing the operation state.
1772
1810
  # Corresponds to the JSON property `state`
1773
1811
  # @return [String]
@@ -1778,56 +1816,15 @@ module Google
1778
1816
  # @return [String]
1779
1817
  attr_accessor :details
1780
1818
 
1781
- def initialize(**args)
1782
- update!(**args)
1783
- end
1784
-
1785
- # Update properties of this object
1786
- def update!(**args)
1787
- @inner_state = args[:inner_state] if args.key?(:inner_state)
1788
- @state_start_time = args[:state_start_time] if args.key?(:state_start_time)
1789
- @state = args[:state] if args.key?(:state)
1790
- @details = args[:details] if args.key?(:details)
1791
- end
1792
- end
1793
-
1794
- # Encapsulates the full scoping used to reference a job.
1795
- class JobReference
1796
- include Google::Apis::Core::Hashable
1797
-
1798
- # Required The ID of the Google Cloud Platform project that the job belongs to.
1799
- # Corresponds to the JSON property `projectId`
1819
+ # A message containing the detailed operation state.
1820
+ # Corresponds to the JSON property `innerState`
1800
1821
  # @return [String]
1801
- attr_accessor :project_id
1822
+ attr_accessor :inner_state
1802
1823
 
1803
- # Optional The job ID, which must be unique within the project. The job ID is
1804
- # generated by the server upon job submission or provided by the user as a means
1805
- # to perform retries without creating duplicate jobs. The ID must contain only
1806
- # letters (a-z, A-Z), numbers (0-9), underscores (_), or hyphens (-). The
1807
- # maximum length is 100 characters.
1808
- # Corresponds to the JSON property `jobId`
1824
+ # The time this state was entered.
1825
+ # Corresponds to the JSON property `stateStartTime`
1809
1826
  # @return [String]
1810
- attr_accessor :job_id
1811
-
1812
- def initialize(**args)
1813
- update!(**args)
1814
- end
1815
-
1816
- # Update properties of this object
1817
- def update!(**args)
1818
- @project_id = args[:project_id] if args.key?(:project_id)
1819
- @job_id = args[:job_id] if args.key?(:job_id)
1820
- end
1821
- end
1822
-
1823
- # A request to submit a job.
1824
- class SubmitJobRequest
1825
- include Google::Apis::Core::Hashable
1826
-
1827
- # A Cloud Dataproc job resource.
1828
- # Corresponds to the JSON property `job`
1829
- # @return [Google::Apis::DataprocV1::Job]
1830
- attr_accessor :job
1827
+ attr_accessor :state_start_time
1831
1828
 
1832
1829
  def initialize(**args)
1833
1830
  update!(**args)
@@ -1835,7 +1832,10 @@ module Google
1835
1832
 
1836
1833
  # Update properties of this object
1837
1834
  def update!(**args)
1838
- @job = args[:job] if args.key?(:job)
1835
+ @state = args[:state] if args.key?(:state)
1836
+ @details = args[:details] if args.key?(:details)
1837
+ @inner_state = args[:inner_state] if args.key?(:inner_state)
1838
+ @state_start_time = args[:state_start_time] if args.key?(:state_start_time)
1839
1839
  end
1840
1840
  end
1841
1841
  end