google-api-client 0.13.2 → 0.13.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (524) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +149 -0
  3. data/bin/generate-api +6 -2
  4. data/generated/google/apis/acceleratedmobilepageurl_v1.rb +3 -3
  5. data/generated/google/apis/acceleratedmobilepageurl_v1/classes.rb +46 -46
  6. data/generated/google/apis/acceleratedmobilepageurl_v1/representations.rb +15 -15
  7. data/generated/google/apis/acceleratedmobilepageurl_v1/service.rb +6 -6
  8. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +2 -2
  9. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +1394 -1394
  10. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +322 -322
  11. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +449 -449
  12. data/generated/google/apis/adexchangebuyer_v1_2.rb +35 -0
  13. data/generated/google/apis/adexchangebuyer_v1_2/classes.rb +457 -0
  14. data/generated/google/apis/adexchangebuyer_v1_2/representations.rb +189 -0
  15. data/generated/google/apis/adexchangebuyer_v1_2/service.rb +329 -0
  16. data/generated/google/apis/adexchangebuyer_v1_3.rb +35 -0
  17. data/generated/google/apis/adexchangebuyer_v1_3/classes.rb +1347 -0
  18. data/generated/google/apis/adexchangebuyer_v1_3/representations.rb +498 -0
  19. data/generated/google/apis/adexchangebuyer_v1_3/service.rb +873 -0
  20. data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
  21. data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +1 -1
  22. data/generated/google/apis/adexchangeseller_v1.rb +37 -0
  23. data/generated/google/apis/adexchangeseller_v1/classes.rb +557 -0
  24. data/generated/google/apis/adexchangeseller_v1/representations.rb +248 -0
  25. data/generated/google/apis/adexchangeseller_v1/service.rb +568 -0
  26. data/generated/google/apis/adexchangeseller_v1_1.rb +37 -0
  27. data/generated/google/apis/adexchangeseller_v1_1/classes.rb +842 -0
  28. data/generated/google/apis/adexchangeseller_v1_1/representations.rb +364 -0
  29. data/generated/google/apis/adexchangeseller_v1_1/service.rb +771 -0
  30. data/generated/google/apis/adexperiencereport_v1.rb +35 -0
  31. data/generated/google/apis/adexperiencereport_v1/classes.rb +138 -0
  32. data/generated/google/apis/adexperiencereport_v1/representations.rb +77 -0
  33. data/generated/google/apis/adexperiencereport_v1/service.rb +123 -0
  34. data/generated/google/apis/admin_directory_v1.rb +1 -1
  35. data/generated/google/apis/admin_directory_v1/classes.rb +60 -0
  36. data/generated/google/apis/admin_directory_v1/representations.rb +29 -0
  37. data/generated/google/apis/admin_directory_v1/service.rb +39 -0
  38. data/generated/google/apis/adsense_v1_4.rb +1 -1
  39. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  40. data/generated/google/apis/analytics_v2_4.rb +37 -0
  41. data/generated/google/apis/analytics_v2_4/classes.rb +26 -0
  42. data/generated/google/apis/analytics_v2_4/representations.rb +26 -0
  43. data/generated/google/apis/analytics_v2_4/service.rb +345 -0
  44. data/generated/google/apis/analytics_v3.rb +1 -1
  45. data/generated/google/apis/analytics_v3/classes.rb +15 -2
  46. data/generated/google/apis/analytics_v3/representations.rb +3 -0
  47. data/generated/google/apis/analyticsreporting_v4.rb +4 -4
  48. data/generated/google/apis/analyticsreporting_v4/classes.rb +891 -891
  49. data/generated/google/apis/analyticsreporting_v4/representations.rb +189 -189
  50. data/generated/google/apis/androiddeviceprovisioning_v1.rb +32 -0
  51. data/generated/google/apis/androiddeviceprovisioning_v1/classes.rb +917 -0
  52. data/generated/google/apis/androiddeviceprovisioning_v1/representations.rb +447 -0
  53. data/generated/google/apis/androiddeviceprovisioning_v1/service.rb +419 -0
  54. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  55. data/generated/google/apis/androidenterprise_v1/classes.rb +31 -0
  56. data/generated/google/apis/androidenterprise_v1/representations.rb +14 -0
  57. data/generated/google/apis/androidenterprise_v1/service.rb +76 -0
  58. data/generated/google/apis/androidmanagement_v1.rb +35 -0
  59. data/generated/google/apis/androidmanagement_v1/classes.rb +2039 -0
  60. data/generated/google/apis/androidmanagement_v1/representations.rb +702 -0
  61. data/generated/google/apis/androidmanagement_v1/service.rb +796 -0
  62. data/generated/google/apis/androidpublisher_v1.rb +34 -0
  63. data/generated/google/apis/androidpublisher_v1/classes.rb +67 -0
  64. data/generated/google/apis/androidpublisher_v1/representations.rb +42 -0
  65. data/generated/google/apis/androidpublisher_v1/service.rb +150 -0
  66. data/generated/google/apis/androidpublisher_v1_1.rb +34 -0
  67. data/generated/google/apis/androidpublisher_v1_1/classes.rb +123 -0
  68. data/generated/google/apis/androidpublisher_v1_1/representations.rb +60 -0
  69. data/generated/google/apis/androidpublisher_v1_1/service.rb +192 -0
  70. data/generated/google/apis/androidpublisher_v2.rb +1 -1
  71. data/generated/google/apis/androidpublisher_v2/classes.rb +21 -0
  72. data/generated/google/apis/androidpublisher_v2/representations.rb +3 -0
  73. data/generated/google/apis/androidpublisher_v2/service.rb +6 -2
  74. data/generated/google/apis/appengine_v1.rb +4 -4
  75. data/generated/google/apis/appengine_v1/classes.rb +1519 -1474
  76. data/generated/google/apis/appengine_v1/representations.rb +351 -335
  77. data/generated/google/apis/appengine_v1/service.rb +255 -239
  78. data/generated/google/apis/appengine_v1alpha.rb +41 -0
  79. data/generated/google/apis/appengine_v1alpha/classes.rb +987 -0
  80. data/generated/google/apis/appengine_v1alpha/representations.rb +397 -0
  81. data/generated/google/apis/appengine_v1alpha/service.rb +631 -0
  82. data/generated/google/apis/appengine_v1beta.rb +41 -0
  83. data/generated/google/apis/appengine_v1beta/classes.rb +2876 -0
  84. data/generated/google/apis/appengine_v1beta/representations.rb +1138 -0
  85. data/generated/google/apis/appengine_v1beta/service.rb +1546 -0
  86. data/generated/google/apis/appengine_v1beta4.rb +41 -0
  87. data/generated/google/apis/appengine_v1beta4/classes.rb +2170 -0
  88. data/generated/google/apis/appengine_v1beta4/representations.rb +824 -0
  89. data/generated/google/apis/appengine_v1beta4/service.rb +876 -0
  90. data/generated/google/apis/appengine_v1beta5.rb +41 -0
  91. data/generated/google/apis/appengine_v1beta5/classes.rb +2168 -0
  92. data/generated/google/apis/appengine_v1beta5/representations.rb +822 -0
  93. data/generated/google/apis/appengine_v1beta5/service.rb +877 -0
  94. data/generated/google/apis/appsactivity_v1.rb +1 -1
  95. data/generated/google/apis/appstate_v1.rb +1 -1
  96. data/generated/google/apis/bigquery_v2.rb +1 -1
  97. data/generated/google/apis/bigquery_v2/classes.rb +106 -18
  98. data/generated/google/apis/bigquery_v2/representations.rb +15 -0
  99. data/generated/google/apis/bigquerydatatransfer_v1.rb +41 -0
  100. data/generated/google/apis/bigquerydatatransfer_v1/classes.rb +886 -0
  101. data/generated/google/apis/bigquerydatatransfer_v1/representations.rb +343 -0
  102. data/generated/google/apis/bigquerydatatransfer_v1/service.rb +1317 -0
  103. data/generated/google/apis/blogger_v2.rb +34 -0
  104. data/generated/google/apis/blogger_v2/classes.rb +947 -0
  105. data/generated/google/apis/blogger_v2/representations.rb +465 -0
  106. data/generated/google/apis/blogger_v2/service.rb +424 -0
  107. data/generated/google/apis/calendar_v3.rb +1 -1
  108. data/generated/google/apis/calendar_v3/classes.rb +4 -207
  109. data/generated/google/apis/calendar_v3/representations.rb +0 -97
  110. data/generated/google/apis/calendar_v3/service.rb +8 -4
  111. data/generated/google/apis/classroom_v1.rb +27 -27
  112. data/generated/google/apis/classroom_v1/classes.rb +1037 -926
  113. data/generated/google/apis/classroom_v1/representations.rb +294 -244
  114. data/generated/google/apis/classroom_v1/service.rb +1114 -1109
  115. data/generated/google/apis/cloudbilling_v1.rb +1 -1
  116. data/generated/google/apis/cloudbilling_v1/classes.rb +473 -56
  117. data/generated/google/apis/cloudbilling_v1/representations.rb +176 -10
  118. data/generated/google/apis/cloudbilling_v1/service.rb +182 -89
  119. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  120. data/generated/google/apis/cloudbuild_v1/classes.rb +666 -625
  121. data/generated/google/apis/cloudbuild_v1/representations.rb +132 -116
  122. data/generated/google/apis/cloudbuild_v1/service.rb +158 -158
  123. data/generated/google/apis/clouddebugger_v2.rb +4 -4
  124. data/generated/google/apis/clouddebugger_v2/classes.rb +637 -639
  125. data/generated/google/apis/clouddebugger_v2/representations.rb +139 -139
  126. data/generated/google/apis/clouddebugger_v2/service.rb +157 -157
  127. data/generated/google/apis/clouderrorreporting_v1beta1.rb +1 -1
  128. data/generated/google/apis/clouderrorreporting_v1beta1/classes.rb +310 -310
  129. data/generated/google/apis/clouderrorreporting_v1beta1/representations.rb +77 -77
  130. data/generated/google/apis/clouderrorreporting_v1beta1/service.rb +144 -144
  131. data/generated/google/apis/cloudfunctions_v1.rb +4 -1
  132. data/generated/google/apis/cloudfunctions_v1/classes.rb +265 -6
  133. data/generated/google/apis/cloudfunctions_v1/representations.rb +80 -1
  134. data/generated/google/apis/cloudfunctions_v1/service.rb +118 -0
  135. data/generated/google/apis/cloudfunctions_v1beta2.rb +35 -0
  136. data/generated/google/apis/cloudfunctions_v1beta2/classes.rb +678 -0
  137. data/generated/google/apis/cloudfunctions_v1beta2/representations.rb +264 -0
  138. data/generated/google/apis/cloudfunctions_v1beta2/service.rb +385 -0
  139. data/generated/google/apis/cloudkms_v1.rb +1 -1
  140. data/generated/google/apis/cloudkms_v1/classes.rb +652 -622
  141. data/generated/google/apis/cloudkms_v1/representations.rb +138 -137
  142. data/generated/google/apis/cloudkms_v1/service.rb +320 -320
  143. data/generated/google/apis/cloudmonitoring_v2beta2.rb +1 -1
  144. data/generated/google/apis/cloudresourcemanager_v1.rb +4 -4
  145. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +1129 -1129
  146. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +188 -188
  147. data/generated/google/apis/cloudresourcemanager_v1/service.rb +609 -609
  148. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
  149. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +404 -404
  150. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +83 -83
  151. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +328 -328
  152. data/generated/google/apis/cloudresourcemanager_v2beta1.rb +38 -0
  153. data/generated/google/apis/cloudresourcemanager_v2beta1/classes.rb +819 -0
  154. data/generated/google/apis/cloudresourcemanager_v2beta1/representations.rb +304 -0
  155. data/generated/google/apis/cloudresourcemanager_v2beta1/service.rb +528 -0
  156. data/generated/google/apis/cloudtrace_v1.rb +5 -5
  157. data/generated/google/apis/cloudtrace_v1/classes.rb +67 -67
  158. data/generated/google/apis/cloudtrace_v1/representations.rb +21 -21
  159. data/generated/google/apis/cloudtrace_v1/service.rb +36 -36
  160. data/generated/google/apis/cloudtrace_v2.rb +43 -0
  161. data/generated/google/apis/cloudtrace_v2/classes.rb +797 -0
  162. data/generated/google/apis/cloudtrace_v2/representations.rb +353 -0
  163. data/generated/google/apis/cloudtrace_v2/service.rb +238 -0
  164. data/generated/google/apis/clouduseraccounts_alpha.rb +44 -0
  165. data/generated/google/apis/clouduseraccounts_alpha/classes.rb +1188 -0
  166. data/generated/google/apis/clouduseraccounts_alpha/representations.rb +494 -0
  167. data/generated/google/apis/clouduseraccounts_alpha/service.rb +1152 -0
  168. data/generated/google/apis/clouduseraccounts_vm_alpha.rb +44 -0
  169. data/generated/google/apis/clouduseraccounts_vm_alpha/classes.rb +1188 -0
  170. data/generated/google/apis/clouduseraccounts_vm_alpha/representations.rb +494 -0
  171. data/generated/google/apis/clouduseraccounts_vm_alpha/service.rb +1152 -0
  172. data/generated/google/apis/clouduseraccounts_vm_beta.rb +44 -0
  173. data/generated/google/apis/clouduseraccounts_vm_beta/classes.rb +845 -0
  174. data/generated/google/apis/clouduseraccounts_vm_beta/representations.rb +352 -0
  175. data/generated/google/apis/clouduseraccounts_vm_beta/service.rb +908 -0
  176. data/generated/google/apis/compute_alpha.rb +49 -0
  177. data/generated/google/apis/compute_alpha/classes.rb +23796 -0
  178. data/generated/google/apis/compute_alpha/representations.rb +9391 -0
  179. data/generated/google/apis/compute_alpha/service.rb +24188 -0
  180. data/generated/google/apis/compute_beta.rb +1 -1
  181. data/generated/google/apis/compute_beta/classes.rb +1597 -235
  182. data/generated/google/apis/compute_beta/representations.rb +477 -0
  183. data/generated/google/apis/compute_beta/service.rb +2875 -1677
  184. data/generated/google/apis/compute_v1.rb +1 -1
  185. data/generated/google/apis/compute_v1/classes.rb +319 -197
  186. data/generated/google/apis/compute_v1/representations.rb +51 -0
  187. data/generated/google/apis/compute_v1/service.rb +2057 -172
  188. data/generated/google/apis/consumersurveys_v2.rb +40 -0
  189. data/generated/google/apis/consumersurveys_v2/classes.rb +736 -0
  190. data/generated/google/apis/consumersurveys_v2/representations.rb +343 -0
  191. data/generated/google/apis/consumersurveys_v2/service.rb +478 -0
  192. data/generated/google/apis/container_v1.rb +1 -1
  193. data/generated/google/apis/container_v1/classes.rb +1072 -936
  194. data/generated/google/apis/container_v1/representations.rb +266 -202
  195. data/generated/google/apis/container_v1/service.rb +243 -243
  196. data/generated/google/apis/container_v1beta1.rb +35 -0
  197. data/generated/google/apis/container_v1beta1/classes.rb +1900 -0
  198. data/generated/google/apis/container_v1beta1/representations.rb +662 -0
  199. data/generated/google/apis/container_v1beta1/service.rb +1875 -0
  200. data/generated/google/apis/content_v2.rb +1 -1
  201. data/generated/google/apis/content_v2/classes.rb +72 -3
  202. data/generated/google/apis/content_v2/representations.rb +23 -0
  203. data/generated/google/apis/content_v2/service.rb +23 -18
  204. data/generated/google/apis/content_v2sandbox.rb +35 -0
  205. data/generated/google/apis/content_v2sandbox/classes.rb +2406 -0
  206. data/generated/google/apis/content_v2sandbox/representations.rb +1042 -0
  207. data/generated/google/apis/content_v2sandbox/service.rb +709 -0
  208. data/generated/google/apis/dataflow_v1b3.rb +5 -5
  209. data/generated/google/apis/dataflow_v1b3/classes.rb +3341 -3341
  210. data/generated/google/apis/dataflow_v1b3/representations.rb +807 -807
  211. data/generated/google/apis/dataflow_v1b3/service.rb +492 -444
  212. data/generated/google/apis/dataproc_v1.rb +1 -1
  213. data/generated/google/apis/dataproc_v1/classes.rb +1101 -1101
  214. data/generated/google/apis/dataproc_v1/representations.rb +227 -227
  215. data/generated/google/apis/dataproc_v1/service.rb +254 -254
  216. data/generated/google/apis/dataproc_v1beta2.rb +34 -0
  217. data/generated/google/apis/dataproc_v1beta2/classes.rb +1756 -0
  218. data/generated/google/apis/dataproc_v1beta2/representations.rb +675 -0
  219. data/generated/google/apis/dataproc_v1beta2/service.rb +739 -0
  220. data/generated/google/apis/datastore_v1.rb +4 -4
  221. data/generated/google/apis/datastore_v1/classes.rb +1311 -773
  222. data/generated/google/apis/datastore_v1/representations.rb +351 -148
  223. data/generated/google/apis/datastore_v1/service.rb +206 -55
  224. data/generated/google/apis/datastore_v1beta3.rb +38 -0
  225. data/generated/google/apis/datastore_v1beta3/classes.rb +1621 -0
  226. data/generated/google/apis/datastore_v1beta3/representations.rb +715 -0
  227. data/generated/google/apis/datastore_v1beta3/service.rb +260 -0
  228. data/generated/google/apis/deploymentmanager_alpha.rb +44 -0
  229. data/generated/google/apis/deploymentmanager_alpha/classes.rb +2422 -0
  230. data/generated/google/apis/deploymentmanager_alpha/representations.rb +1054 -0
  231. data/generated/google/apis/deploymentmanager_alpha/service.rb +1883 -0
  232. data/generated/google/apis/deploymentmanager_v2.rb +1 -1
  233. data/generated/google/apis/deploymentmanager_v2/classes.rb +81 -2
  234. data/generated/google/apis/deploymentmanager_v2/representations.rb +30 -0
  235. data/generated/google/apis/deploymentmanager_v2beta.rb +44 -0
  236. data/generated/google/apis/deploymentmanager_v2beta/classes.rb +2426 -0
  237. data/generated/google/apis/deploymentmanager_v2beta/representations.rb +1054 -0
  238. data/generated/google/apis/deploymentmanager_v2beta/service.rb +1687 -0
  239. data/generated/google/apis/dfareporting_v2_7.rb +1 -1
  240. data/generated/google/apis/dfareporting_v2_7/classes.rb +9 -26
  241. data/generated/google/apis/dfareporting_v2_7/service.rb +1 -0
  242. data/generated/google/apis/dfareporting_v2_8.rb +1 -1
  243. data/generated/google/apis/dfareporting_v2_8/classes.rb +26 -34
  244. data/generated/google/apis/dfareporting_v2_8/representations.rb +1 -0
  245. data/generated/google/apis/dfareporting_v2_8/service.rb +1 -0
  246. data/generated/google/apis/dlp_v2beta1.rb +36 -0
  247. data/generated/google/apis/dlp_v2beta1/classes.rb +1735 -0
  248. data/generated/google/apis/dlp_v2beta1/representations.rb +879 -0
  249. data/generated/google/apis/dlp_v2beta1/service.rb +406 -0
  250. data/generated/google/apis/dns_v1.rb +1 -1
  251. data/generated/google/apis/dns_v2beta1.rb +1 -1
  252. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  253. data/generated/google/apis/drive_v2.rb +1 -1
  254. data/generated/google/apis/drive_v3.rb +1 -1
  255. data/generated/google/apis/firebasedynamiclinks_v1.rb +1 -1
  256. data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +267 -261
  257. data/generated/google/apis/firebasedynamiclinks_v1/representations.rb +73 -72
  258. data/generated/google/apis/firebasedynamiclinks_v1/service.rb +1 -1
  259. data/generated/google/apis/firebaserules_v1.rb +1 -1
  260. data/generated/google/apis/firebaserules_v1/classes.rb +283 -283
  261. data/generated/google/apis/firebaserules_v1/representations.rb +75 -75
  262. data/generated/google/apis/firebaserules_v1/service.rb +113 -113
  263. data/generated/google/apis/fitness_v1.rb +1 -1
  264. data/generated/google/apis/fitness_v1/classes.rb +1 -1
  265. data/generated/google/apis/fusiontables_v1.rb +37 -0
  266. data/generated/google/apis/fusiontables_v1/classes.rb +977 -0
  267. data/generated/google/apis/fusiontables_v1/representations.rb +449 -0
  268. data/generated/google/apis/fusiontables_v1/service.rb +1373 -0
  269. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  270. data/generated/google/apis/games_management_v1management.rb +1 -1
  271. data/generated/google/apis/games_v1.rb +1 -1
  272. data/generated/google/apis/genomics_v1.rb +8 -8
  273. data/generated/google/apis/genomics_v1/classes.rb +2288 -2288
  274. data/generated/google/apis/genomics_v1/representations.rb +482 -482
  275. data/generated/google/apis/genomics_v1/service.rb +966 -966
  276. data/generated/google/apis/genomics_v1alpha2.rb +40 -0
  277. data/generated/google/apis/genomics_v1alpha2/classes.rb +1207 -0
  278. data/generated/google/apis/genomics_v1alpha2/representations.rb +449 -0
  279. data/generated/google/apis/genomics_v1alpha2/service.rb +426 -0
  280. data/generated/google/apis/gmail_v1.rb +1 -1
  281. data/generated/google/apis/iam_v1.rb +1 -1
  282. data/generated/google/apis/iam_v1/classes.rb +664 -395
  283. data/generated/google/apis/iam_v1/representations.rb +194 -81
  284. data/generated/google/apis/iam_v1/service.rb +657 -92
  285. data/generated/google/apis/identitytoolkit_v3.rb +1 -1
  286. data/generated/google/apis/kgsearch_v1/classes.rb +7 -7
  287. data/generated/google/apis/kgsearch_v1/representations.rb +1 -1
  288. data/generated/google/apis/kgsearch_v1/service.rb +8 -8
  289. data/generated/google/apis/language_v1.rb +4 -1
  290. data/generated/google/apis/language_v1/classes.rb +393 -393
  291. data/generated/google/apis/language_v1/representations.rb +95 -95
  292. data/generated/google/apis/language_v1/service.rb +42 -42
  293. data/generated/google/apis/language_v1beta1.rb +4 -1
  294. data/generated/google/apis/language_v1beta1/classes.rb +457 -457
  295. data/generated/google/apis/language_v1beta1/representations.rb +114 -114
  296. data/generated/google/apis/language_v1beta1/service.rb +48 -48
  297. data/generated/google/apis/language_v1beta2.rb +39 -0
  298. data/generated/google/apis/language_v1beta2/classes.rb +824 -0
  299. data/generated/google/apis/language_v1beta2/representations.rb +373 -0
  300. data/generated/google/apis/language_v1beta2/service.rb +217 -0
  301. data/generated/google/apis/logging_v2.rb +9 -9
  302. data/generated/google/apis/logging_v2/classes.rb +840 -834
  303. data/generated/google/apis/logging_v2/representations.rb +168 -167
  304. data/generated/google/apis/logging_v2/service.rb +667 -463
  305. data/generated/google/apis/logging_v2beta1.rb +9 -9
  306. data/generated/google/apis/logging_v2beta1/classes.rb +856 -850
  307. data/generated/google/apis/logging_v2beta1/representations.rb +169 -168
  308. data/generated/google/apis/logging_v2beta1/service.rb +253 -255
  309. data/generated/google/apis/manufacturers_v1.rb +1 -1
  310. data/generated/google/apis/manufacturers_v1/classes.rb +396 -389
  311. data/generated/google/apis/manufacturers_v1/representations.rb +92 -91
  312. data/generated/google/apis/manufacturers_v1/service.rb +8 -7
  313. data/generated/google/apis/ml_v1.rb +1 -1
  314. data/generated/google/apis/ml_v1/classes.rb +1487 -1676
  315. data/generated/google/apis/ml_v1/representations.rb +229 -299
  316. data/generated/google/apis/ml_v1/service.rb +359 -253
  317. data/generated/google/apis/ml_v1beta1.rb +34 -0
  318. data/generated/google/apis/ml_v1beta1/classes.rb +2396 -0
  319. data/generated/google/apis/ml_v1beta1/representations.rb +755 -0
  320. data/generated/google/apis/ml_v1beta1/service.rb +975 -0
  321. data/generated/google/apis/monitoring_v3.rb +6 -6
  322. data/generated/google/apis/monitoring_v3/classes.rb +834 -834
  323. data/generated/google/apis/monitoring_v3/representations.rb +168 -168
  324. data/generated/google/apis/monitoring_v3/service.rb +330 -330
  325. data/generated/google/apis/mybusiness_v3/classes.rb +1181 -1181
  326. data/generated/google/apis/mybusiness_v3/representations.rb +242 -242
  327. data/generated/google/apis/mybusiness_v3/service.rb +241 -241
  328. data/generated/google/apis/oauth2_v1.rb +43 -0
  329. data/generated/google/apis/oauth2_v1/classes.rb +321 -0
  330. data/generated/google/apis/oauth2_v1/representations.rb +135 -0
  331. data/generated/google/apis/oauth2_v1/service.rb +337 -0
  332. data/generated/google/apis/oauth2_v2.rb +1 -1
  333. data/generated/google/apis/oslogin_v1alpha.rb +37 -0
  334. data/generated/google/apis/oslogin_v1alpha/classes.rb +200 -0
  335. data/generated/google/apis/oslogin_v1alpha/representations.rb +105 -0
  336. data/generated/google/apis/oslogin_v1alpha/service.rb +228 -0
  337. data/generated/google/apis/pagespeedonline_v1.rb +32 -0
  338. data/generated/google/apis/pagespeedonline_v1/classes.rb +536 -0
  339. data/generated/google/apis/pagespeedonline_v1/representations.rb +257 -0
  340. data/generated/google/apis/pagespeedonline_v1/service.rb +120 -0
  341. data/generated/google/apis/partners_v2.rb +1 -1
  342. data/generated/google/apis/partners_v2/classes.rb +1512 -1512
  343. data/generated/google/apis/partners_v2/representations.rb +368 -368
  344. data/generated/google/apis/partners_v2/service.rb +596 -596
  345. data/generated/google/apis/people_v1.rb +15 -15
  346. data/generated/google/apis/people_v1/classes.rb +1384 -1383
  347. data/generated/google/apis/people_v1/representations.rb +311 -311
  348. data/generated/google/apis/people_v1/service.rb +208 -202
  349. data/generated/google/apis/playcustomapp_v1.rb +34 -0
  350. data/generated/google/apis/playcustomapp_v1/classes.rb +51 -0
  351. data/generated/google/apis/playcustomapp_v1/representations.rb +40 -0
  352. data/generated/google/apis/playcustomapp_v1/service.rb +114 -0
  353. data/generated/google/apis/playmoviespartner_v1.rb +34 -0
  354. data/generated/google/apis/playmoviespartner_v1/classes.rb +782 -0
  355. data/generated/google/apis/playmoviespartner_v1/representations.rb +191 -0
  356. data/generated/google/apis/playmoviespartner_v1/service.rb +354 -0
  357. data/generated/google/apis/plus_domains_v1.rb +1 -1
  358. data/generated/google/apis/plus_v1.rb +1 -1
  359. data/generated/google/apis/prediction_v1_2.rb +44 -0
  360. data/generated/google/apis/prediction_v1_2/classes.rb +237 -0
  361. data/generated/google/apis/prediction_v1_2/representations.rb +133 -0
  362. data/generated/google/apis/prediction_v1_2/service.rb +287 -0
  363. data/generated/google/apis/prediction_v1_3.rb +44 -0
  364. data/generated/google/apis/prediction_v1_3/classes.rb +286 -0
  365. data/generated/google/apis/prediction_v1_3/representations.rb +139 -0
  366. data/generated/google/apis/prediction_v1_3/service.rb +284 -0
  367. data/generated/google/apis/prediction_v1_4.rb +44 -0
  368. data/generated/google/apis/prediction_v1_4/classes.rb +336 -0
  369. data/generated/google/apis/prediction_v1_4/representations.rb +158 -0
  370. data/generated/google/apis/prediction_v1_4/service.rb +284 -0
  371. data/generated/google/apis/prediction_v1_5.rb +44 -0
  372. data/generated/google/apis/prediction_v1_5/classes.rb +708 -0
  373. data/generated/google/apis/prediction_v1_5/representations.rb +352 -0
  374. data/generated/google/apis/prediction_v1_5/service.rb +357 -0
  375. data/generated/google/apis/proximitybeacon_v1beta1.rb +1 -1
  376. data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +539 -539
  377. data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +105 -105
  378. data/generated/google/apis/proximitybeacon_v1beta1/service.rb +312 -312
  379. data/generated/google/apis/pubsub_v1.rb +4 -4
  380. data/generated/google/apis/pubsub_v1/classes.rb +352 -352
  381. data/generated/google/apis/pubsub_v1/representations.rb +77 -77
  382. data/generated/google/apis/pubsub_v1/service.rb +346 -346
  383. data/generated/google/apis/pubsub_v1beta1a.rb +37 -0
  384. data/generated/google/apis/pubsub_v1beta1a/classes.rb +605 -0
  385. data/generated/google/apis/pubsub_v1beta1a/representations.rb +306 -0
  386. data/generated/google/apis/pubsub_v1beta1a/service.rb +549 -0
  387. data/generated/google/apis/pubsub_v1beta2.rb +37 -0
  388. data/generated/google/apis/pubsub_v1beta2/classes.rb +679 -0
  389. data/generated/google/apis/pubsub_v1beta2/representations.rb +324 -0
  390. data/generated/google/apis/pubsub_v1beta2/service.rb +779 -0
  391. data/generated/google/apis/replicapool_v1beta1.rb +50 -0
  392. data/generated/google/apis/replicapool_v1beta1/classes.rb +918 -0
  393. data/generated/google/apis/replicapool_v1beta1/representations.rb +409 -0
  394. data/generated/google/apis/replicapool_v1beta1/service.rb +511 -0
  395. data/generated/google/apis/resourceviews_v1beta1.rb +50 -0
  396. data/generated/google/apis/resourceviews_v1beta1/classes.rb +338 -0
  397. data/generated/google/apis/resourceviews_v1beta1/representations.rb +201 -0
  398. data/generated/google/apis/resourceviews_v1beta1/service.rb +667 -0
  399. data/generated/google/apis/runtimeconfig_v1.rb +4 -4
  400. data/generated/google/apis/runtimeconfig_v1/classes.rb +118 -118
  401. data/generated/google/apis/runtimeconfig_v1/representations.rb +18 -18
  402. data/generated/google/apis/runtimeconfig_v1/service.rb +21 -21
  403. data/generated/google/apis/runtimeconfig_v1beta1.rb +40 -0
  404. data/generated/google/apis/runtimeconfig_v1beta1/classes.rb +805 -0
  405. data/generated/google/apis/runtimeconfig_v1beta1/representations.rb +280 -0
  406. data/generated/google/apis/runtimeconfig_v1beta1/service.rb +903 -0
  407. data/generated/google/apis/safebrowsing_v4.rb +32 -0
  408. data/generated/google/apis/safebrowsing_v4/classes.rb +771 -0
  409. data/generated/google/apis/safebrowsing_v4/representations.rb +379 -0
  410. data/generated/google/apis/safebrowsing_v4/service.rb +252 -0
  411. data/generated/google/apis/script_v1.rb +19 -19
  412. data/generated/google/apis/script_v1/classes.rb +99 -157
  413. data/generated/google/apis/script_v1/representations.rb +17 -47
  414. data/generated/google/apis/script_v1/service.rb +12 -12
  415. data/generated/google/apis/searchconsole_v1.rb +1 -1
  416. data/generated/google/apis/searchconsole_v1/classes.rb +84 -84
  417. data/generated/google/apis/searchconsole_v1/representations.rb +32 -32
  418. data/generated/google/apis/servicecontrol_v1.rb +4 -4
  419. data/generated/google/apis/servicecontrol_v1/classes.rb +1086 -1042
  420. data/generated/google/apis/servicecontrol_v1/representations.rb +216 -200
  421. data/generated/google/apis/servicecontrol_v1/service.rb +120 -114
  422. data/generated/google/apis/servicemanagement_v1.rb +7 -7
  423. data/generated/google/apis/servicemanagement_v1/classes.rb +3375 -3383
  424. data/generated/google/apis/servicemanagement_v1/representations.rb +551 -552
  425. data/generated/google/apis/servicemanagement_v1/service.rb +386 -386
  426. data/generated/google/apis/serviceuser_v1.rb +5 -5
  427. data/generated/google/apis/serviceuser_v1/classes.rb +2667 -2598
  428. data/generated/google/apis/serviceuser_v1/representations.rb +406 -389
  429. data/generated/google/apis/serviceuser_v1/service.rb +43 -43
  430. data/generated/google/apis/sheets_v4.rb +7 -7
  431. data/generated/google/apis/sheets_v4/classes.rb +5031 -5024
  432. data/generated/google/apis/sheets_v4/representations.rb +931 -930
  433. data/generated/google/apis/sheets_v4/service.rb +244 -244
  434. data/generated/google/apis/slides_v1.rb +10 -10
  435. data/generated/google/apis/slides_v1/classes.rb +2915 -2915
  436. data/generated/google/apis/slides_v1/representations.rb +698 -698
  437. data/generated/google/apis/slides_v1/service.rb +35 -35
  438. data/generated/google/apis/sourcerepo_v1.rb +3 -3
  439. data/generated/google/apis/sourcerepo_v1/classes.rb +313 -313
  440. data/generated/google/apis/sourcerepo_v1/representations.rb +77 -77
  441. data/generated/google/apis/sourcerepo_v1/service.rb +102 -102
  442. data/generated/google/apis/spanner_v1.rb +4 -4
  443. data/generated/google/apis/spanner_v1/classes.rb +2304 -2251
  444. data/generated/google/apis/spanner_v1/representations.rb +338 -323
  445. data/generated/google/apis/spanner_v1/service.rb +689 -689
  446. data/generated/google/apis/spectrum_v1explorer.rb +31 -0
  447. data/generated/google/apis/spectrum_v1explorer/classes.rb +1612 -0
  448. data/generated/google/apis/spectrum_v1explorer/representations.rb +611 -0
  449. data/generated/google/apis/spectrum_v1explorer/service.rb +285 -0
  450. data/generated/google/apis/speech_v1.rb +34 -0
  451. data/generated/google/apis/speech_v1/classes.rb +572 -0
  452. data/generated/google/apis/speech_v1/representations.rb +236 -0
  453. data/generated/google/apis/speech_v1/service.rb +277 -0
  454. data/generated/google/apis/speech_v1beta1.rb +1 -1
  455. data/generated/google/apis/speech_v1beta1/classes.rb +312 -312
  456. data/generated/google/apis/speech_v1beta1/representations.rb +48 -48
  457. data/generated/google/apis/speech_v1beta1/service.rb +46 -46
  458. data/generated/google/apis/sqladmin_v1beta3.rb +38 -0
  459. data/generated/google/apis/sqladmin_v1beta3/classes.rb +1615 -0
  460. data/generated/google/apis/sqladmin_v1beta3/representations.rb +731 -0
  461. data/generated/google/apis/sqladmin_v1beta3/service.rb +1045 -0
  462. data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
  463. data/generated/google/apis/sqladmin_v1beta4/classes.rb +15 -7
  464. data/generated/google/apis/sqladmin_v1beta4/representations.rb +1 -0
  465. data/generated/google/apis/storage_v1.rb +1 -1
  466. data/generated/google/apis/storage_v1/classes.rb +7 -6
  467. data/generated/google/apis/storage_v1/service.rb +51 -29
  468. data/generated/google/apis/storage_v1beta1.rb +40 -0
  469. data/generated/google/apis/storage_v1beta1/classes.rb +616 -0
  470. data/generated/google/apis/storage_v1beta1/representations.rb +249 -0
  471. data/generated/google/apis/storage_v1beta1/service.rb +1082 -0
  472. data/generated/google/apis/storage_v1beta2.rb +40 -0
  473. data/generated/google/apis/storage_v1beta2/classes.rb +1048 -0
  474. data/generated/google/apis/storage_v1beta2/representations.rb +425 -0
  475. data/generated/google/apis/storage_v1beta2/service.rb +1736 -0
  476. data/generated/google/apis/storagetransfer_v1.rb +1 -1
  477. data/generated/google/apis/storagetransfer_v1/classes.rb +556 -556
  478. data/generated/google/apis/storagetransfer_v1/representations.rb +139 -139
  479. data/generated/google/apis/storagetransfer_v1/service.rb +148 -148
  480. data/generated/google/apis/streetviewpublish_v1.rb +36 -0
  481. data/generated/google/apis/streetviewpublish_v1/classes.rb +705 -0
  482. data/generated/google/apis/streetviewpublish_v1/representations.rb +296 -0
  483. data/generated/google/apis/streetviewpublish_v1/service.rb +485 -0
  484. data/generated/google/apis/taskqueue_v1beta1.rb +37 -0
  485. data/generated/google/apis/taskqueue_v1beta1/classes.rb +242 -0
  486. data/generated/google/apis/taskqueue_v1beta1/representations.rb +124 -0
  487. data/generated/google/apis/taskqueue_v1beta1/service.rb +269 -0
  488. data/generated/google/apis/toolresults_v1beta3.rb +1 -1
  489. data/generated/google/apis/toolresults_v1beta3/classes.rb +382 -4
  490. data/generated/google/apis/toolresults_v1beta3/representations.rb +139 -0
  491. data/generated/google/apis/toolresults_v1beta3/service.rb +50 -0
  492. data/generated/google/apis/toolresults_v1beta3firstparty.rb +31 -0
  493. data/generated/google/apis/toolresults_v1beta3firstparty/classes.rb +2630 -0
  494. data/generated/google/apis/toolresults_v1beta3firstparty/representations.rb +886 -0
  495. data/generated/google/apis/toolresults_v1beta3firstparty/service.rb +1288 -0
  496. data/generated/google/apis/translate_v2/classes.rb +111 -111
  497. data/generated/google/apis/translate_v2/representations.rb +49 -49
  498. data/generated/google/apis/translate_v2/service.rb +94 -94
  499. data/generated/google/apis/vault_v1.rb +31 -0
  500. data/generated/google/apis/vault_v1/classes.rb +554 -0
  501. data/generated/google/apis/vault_v1/representations.rb +318 -0
  502. data/generated/google/apis/vault_v1/service.rb +677 -0
  503. data/generated/google/apis/videointelligence_v1beta1.rb +34 -0
  504. data/generated/google/apis/videointelligence_v1beta1/classes.rb +903 -0
  505. data/generated/google/apis/videointelligence_v1beta1/representations.rb +351 -0
  506. data/generated/google/apis/videointelligence_v1beta1/service.rb +92 -0
  507. data/generated/google/apis/vision_v1.rb +4 -4
  508. data/generated/google/apis/vision_v1/classes.rb +1176 -1178
  509. data/generated/google/apis/vision_v1/representations.rb +235 -235
  510. data/generated/google/apis/webmasters_v3.rb +1 -1
  511. data/generated/google/apis/youtube_analytics_v1.rb +1 -1
  512. data/generated/google/apis/youtube_analytics_v1beta1.rb +46 -0
  513. data/generated/google/apis/youtube_analytics_v1beta1/classes.rb +337 -0
  514. data/generated/google/apis/youtube_analytics_v1beta1/representations.rb +174 -0
  515. data/generated/google/apis/youtube_analytics_v1beta1/service.rb +491 -0
  516. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  517. data/generated/google/apis/youtube_partner_v1/classes.rb +3 -3
  518. data/generated/google/apis/youtube_partner_v1/representations.rb +1 -1
  519. data/generated/google/apis/youtubereporting_v1.rb +4 -4
  520. data/generated/google/apis/youtubereporting_v1/classes.rb +134 -134
  521. data/generated/google/apis/youtubereporting_v1/representations.rb +36 -36
  522. data/generated/google/apis/youtubereporting_v1/service.rb +131 -131
  523. data/lib/google/apis/version.rb +1 -1
  524. metadata +246 -2
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://cloud.google.com/dataproc/
26
26
  module DataprocV1
27
27
  VERSION = 'V1'
28
- REVISION = '20170707'
28
+ REVISION = '20170822'
29
29
 
30
30
  # View and manage your data across Google Cloud Platform services
31
31
  AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
@@ -22,81 +22,40 @@ module Google
22
22
  module Apis
23
23
  module DataprocV1
24
24
 
25
- # This resource represents a long-running operation that is the result of a
26
- # network API call.
27
- class Operation
25
+ # Specifies the type and number of accelerator cards attached to the instances
26
+ # of an instance group (see GPUs on Compute Engine).
27
+ class AcceleratorConfig
28
28
  include Google::Apis::Core::Hashable
29
29
 
30
- # The server-assigned name, which is only unique within the same service that
31
- # originally returns it. If you use the default HTTP mapping, the name should
32
- # have the format of operations/some/unique/name.
33
- # Corresponds to the JSON property `name`
34
- # @return [String]
35
- attr_accessor :name
30
+ # The number of the accelerator cards of this type exposed to this instance.
31
+ # Corresponds to the JSON property `acceleratorCount`
32
+ # @return [Fixnum]
33
+ attr_accessor :accelerator_count
36
34
 
37
- # The Status type defines a logical error model that is suitable for different
38
- # programming environments, including REST APIs and RPC APIs. It is used by gRPC
39
- # (https://github.com/grpc). The error model is designed to be:
40
- # Simple to use and understand for most users
41
- # Flexible enough to meet unexpected needsOverviewThe Status message contains
42
- # three pieces of data: error code, error message, and error details. The error
43
- # code should be an enum value of google.rpc.Code, but it may accept additional
44
- # error codes if needed. The error message should be a developer-facing English
45
- # message that helps developers understand and resolve the error. If a localized
46
- # user-facing error message is needed, put the localized message in the error
47
- # details or localize it in the client. The optional error details may contain
48
- # arbitrary information about the error. There is a predefined set of error
49
- # detail types in the package google.rpc that can be used for common error
50
- # conditions.Language mappingThe Status message is the logical representation of
51
- # the error model, but it is not necessarily the actual wire format. When the
52
- # Status message is exposed in different client libraries and different wire
53
- # protocols, it can be mapped differently. For example, it will likely be mapped
54
- # to some exceptions in Java, but more likely mapped to some error codes in C.
55
- # Other usesThe error model and the Status message can be used in a variety of
56
- # environments, either with or without APIs, to provide a consistent developer
57
- # experience across different environments.Example uses of this error model
58
- # include:
59
- # Partial errors. If a service needs to return partial errors to the client, it
60
- # may embed the Status in the normal response to indicate the partial errors.
61
- # Workflow errors. A typical workflow has multiple steps. Each step may have a
62
- # Status message for error reporting.
63
- # Batch operations. If a client uses batch request and batch response, the
64
- # Status message should be used directly inside batch response, one for each
65
- # error sub-response.
66
- # Asynchronous operations. If an API call embeds asynchronous operation results
67
- # in its response, the status of those operations should be represented directly
68
- # using the Status message.
69
- # Logging. If some API errors are stored in logs, the message Status could be
70
- # used directly after any stripping needed for security/privacy reasons.
71
- # Corresponds to the JSON property `error`
72
- # @return [Google::Apis::DataprocV1::Status]
73
- attr_accessor :error
35
+ # Full URL, partial URI, or short name of the accelerator type resource to
36
+ # expose to this instance. See Google Compute Engine AcceleratorTypes( /compute/
37
+ # docs/reference/beta/acceleratorTypes)Examples * https://www.googleapis.com/
38
+ # compute/beta/projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia-
39
+ # tesla-k80 * projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia-
40
+ # tesla-k80 * nvidia-tesla-k80
41
+ # Corresponds to the JSON property `acceleratorTypeUri`
42
+ # @return [String]
43
+ attr_accessor :accelerator_type_uri
74
44
 
75
- # Service-specific metadata associated with the operation. It typically contains
76
- # progress information and common metadata such as create time. Some services
77
- # might not provide such metadata. Any method that returns a long-running
78
- # operation should document the metadata type, if any.
79
- # Corresponds to the JSON property `metadata`
80
- # @return [Hash<String,Object>]
81
- attr_accessor :metadata
45
+ def initialize(**args)
46
+ update!(**args)
47
+ end
82
48
 
83
- # If the value is false, it means the operation is still in progress. If true,
84
- # the operation is completed, and either error or response is available.
85
- # Corresponds to the JSON property `done`
86
- # @return [Boolean]
87
- attr_accessor :done
88
- alias_method :done?, :done
49
+ # Update properties of this object
50
+ def update!(**args)
51
+ @accelerator_count = args[:accelerator_count] if args.key?(:accelerator_count)
52
+ @accelerator_type_uri = args[:accelerator_type_uri] if args.key?(:accelerator_type_uri)
53
+ end
54
+ end
89
55
 
90
- # The normal response of the operation in case of success. If the original
91
- # method returns no data on success, such as Delete, the response is google.
92
- # protobuf.Empty. If the original method is standard Get/Create/Update, the
93
- # response should be the resource. For other methods, the response should have
94
- # the type XxxResponse, where Xxx is the original method name. For example, if
95
- # the original method name is TakeSnapshot(), the inferred response type is
96
- # TakeSnapshotResponse.
97
- # Corresponds to the JSON property `response`
98
- # @return [Hash<String,Object>]
99
- attr_accessor :response
56
+ # A request to cancel a job.
57
+ class CancelJobRequest
58
+ include Google::Apis::Core::Hashable
100
59
 
101
60
  def initialize(**args)
102
61
  update!(**args)
@@ -104,51 +63,136 @@ module Google
104
63
 
105
64
  # Update properties of this object
106
65
  def update!(**args)
107
- @name = args[:name] if args.key?(:name)
108
- @error = args[:error] if args.key?(:error)
109
- @metadata = args[:metadata] if args.key?(:metadata)
110
- @done = args[:done] if args.key?(:done)
111
- @response = args[:response] if args.key?(:response)
112
66
  end
113
67
  end
114
68
 
115
- # Encapsulates the full scoping used to reference a job.
116
- class JobReference
69
+ # Describes the identifying information, config, and status of a cluster of
70
+ # Google Compute Engine instances.
71
+ class Cluster
117
72
  include Google::Apis::Core::Hashable
118
73
 
119
- # Optional. The job ID, which must be unique within the project. The job ID is
120
- # generated by the server upon job submission or provided by the user as a means
121
- # to perform retries without creating duplicate jobs. The ID must contain only
122
- # letters (a-z, A-Z), numbers (0-9), underscores (_), or hyphens (-). The
123
- # maximum length is 100 characters.
124
- # Corresponds to the JSON property `jobId`
74
+ # Required. The cluster name. Cluster names within a project must be unique.
75
+ # Names of deleted clusters can be reused.
76
+ # Corresponds to the JSON property `clusterName`
125
77
  # @return [String]
126
- attr_accessor :job_id
78
+ attr_accessor :cluster_name
127
79
 
128
- # Required. The ID of the Google Cloud Platform project that the job belongs to.
80
+ # Output-only. A cluster UUID (Unique Universal Identifier). Cloud Dataproc
81
+ # generates this value when it creates the cluster.
82
+ # Corresponds to the JSON property `clusterUuid`
83
+ # @return [String]
84
+ attr_accessor :cluster_uuid
85
+
86
+ # The cluster config.
87
+ # Corresponds to the JSON property `config`
88
+ # @return [Google::Apis::DataprocV1::ClusterConfig]
89
+ attr_accessor :config
90
+
91
+ # Optional. The labels to associate with this cluster. Label keys must contain 1
92
+ # to 63 characters, and must conform to RFC 1035 (https://www.ietf.org/rfc/
93
+ # rfc1035.txt). Label values may be empty, but, if present, must contain 1 to 63
94
+ # characters, and must conform to RFC 1035 (https://www.ietf.org/rfc/rfc1035.txt)
95
+ # . No more than 32 labels can be associated with a cluster.
96
+ # Corresponds to the JSON property `labels`
97
+ # @return [Hash<String,String>]
98
+ attr_accessor :labels
99
+
100
+ # Contains cluster daemon metrics, such as HDFS and YARN stats.Beta Feature:
101
+ # This report is available for testing purposes only. It may be changed before
102
+ # final release.
103
+ # Corresponds to the JSON property `metrics`
104
+ # @return [Google::Apis::DataprocV1::ClusterMetrics]
105
+ attr_accessor :metrics
106
+
107
+ # Required. The Google Cloud Platform project ID that the cluster belongs to.
129
108
  # Corresponds to the JSON property `projectId`
130
109
  # @return [String]
131
110
  attr_accessor :project_id
132
111
 
112
+ # The status of a cluster and its instances.
113
+ # Corresponds to the JSON property `status`
114
+ # @return [Google::Apis::DataprocV1::ClusterStatus]
115
+ attr_accessor :status
116
+
117
+ # Output-only. The previous cluster status.
118
+ # Corresponds to the JSON property `statusHistory`
119
+ # @return [Array<Google::Apis::DataprocV1::ClusterStatus>]
120
+ attr_accessor :status_history
121
+
133
122
  def initialize(**args)
134
123
  update!(**args)
135
124
  end
136
125
 
137
126
  # Update properties of this object
138
127
  def update!(**args)
139
- @job_id = args[:job_id] if args.key?(:job_id)
128
+ @cluster_name = args[:cluster_name] if args.key?(:cluster_name)
129
+ @cluster_uuid = args[:cluster_uuid] if args.key?(:cluster_uuid)
130
+ @config = args[:config] if args.key?(:config)
131
+ @labels = args[:labels] if args.key?(:labels)
132
+ @metrics = args[:metrics] if args.key?(:metrics)
140
133
  @project_id = args[:project_id] if args.key?(:project_id)
134
+ @status = args[:status] if args.key?(:status)
135
+ @status_history = args[:status_history] if args.key?(:status_history)
141
136
  end
142
137
  end
143
138
 
144
- # A request to submit a job.
145
- class SubmitJobRequest
139
+ # The cluster config.
140
+ class ClusterConfig
146
141
  include Google::Apis::Core::Hashable
147
142
 
148
- # A Cloud Dataproc job resource.
149
- # Corresponds to the JSON property `job`
150
- # @return [Google::Apis::DataprocV1::Job]
151
- attr_accessor :job
143
+ # Optional. A Google Cloud Storage staging bucket used for sharing generated SSH
144
+ # keys and config. If you do not specify a staging bucket, Cloud Dataproc will
145
+ # determine an appropriate Cloud Storage location (US, ASIA, or EU) for your
146
+ # cluster's staging bucket according to the Google Compute Engine zone where
147
+ # your cluster is deployed, and then it will create and manage this project-
148
+ # level, per-location bucket for you.
149
+ # Corresponds to the JSON property `configBucket`
150
+ # @return [String]
151
+ attr_accessor :config_bucket
152
+
153
+ # Common config settings for resources of Google Compute Engine cluster
154
+ # instances, applicable to all instances in the cluster.
155
+ # Corresponds to the JSON property `gceClusterConfig`
156
+ # @return [Google::Apis::DataprocV1::GceClusterConfig]
157
+ attr_accessor :gce_cluster_config
158
+
159
+ # Optional. Commands to execute on each node after config is completed. By
160
+ # default, executables are run on master and all worker nodes. You can test a
161
+ # node's role metadata to run an executable on a master or worker node, as shown
162
+ # below using curl (you can also use wget):
163
+ # ROLE=$(curl -H Metadata-Flavor:Google http://metadata/computeMetadata/v1/
164
+ # instance/attributes/dataproc-role)
165
+ # if [[ "$`ROLE`" == 'Master' ]]; then
166
+ # ... master specific actions ...
167
+ # else
168
+ # ... worker specific actions ...
169
+ # fi
170
+ # Corresponds to the JSON property `initializationActions`
171
+ # @return [Array<Google::Apis::DataprocV1::NodeInitializationAction>]
172
+ attr_accessor :initialization_actions
173
+
174
+ # Optional. The config settings for Google Compute Engine resources in an
175
+ # instance group, such as a master or worker group.
176
+ # Corresponds to the JSON property `masterConfig`
177
+ # @return [Google::Apis::DataprocV1::InstanceGroupConfig]
178
+ attr_accessor :master_config
179
+
180
+ # Optional. The config settings for Google Compute Engine resources in an
181
+ # instance group, such as a master or worker group.
182
+ # Corresponds to the JSON property `secondaryWorkerConfig`
183
+ # @return [Google::Apis::DataprocV1::InstanceGroupConfig]
184
+ attr_accessor :secondary_worker_config
185
+
186
+ # Specifies the selection and config of software inside the cluster.
187
+ # Corresponds to the JSON property `softwareConfig`
188
+ # @return [Google::Apis::DataprocV1::SoftwareConfig]
189
+ attr_accessor :software_config
190
+
191
+ # Optional. The config settings for Google Compute Engine resources in an
192
+ # instance group, such as a master or worker group.
193
+ # Corresponds to the JSON property `workerConfig`
194
+ # @return [Google::Apis::DataprocV1::InstanceGroupConfig]
195
+ attr_accessor :worker_config
152
196
 
153
197
  def initialize(**args)
154
198
  update!(**args)
@@ -156,64 +200,31 @@ module Google
156
200
 
157
201
  # Update properties of this object
158
202
  def update!(**args)
159
- @job = args[:job] if args.key?(:job)
203
+ @config_bucket = args[:config_bucket] if args.key?(:config_bucket)
204
+ @gce_cluster_config = args[:gce_cluster_config] if args.key?(:gce_cluster_config)
205
+ @initialization_actions = args[:initialization_actions] if args.key?(:initialization_actions)
206
+ @master_config = args[:master_config] if args.key?(:master_config)
207
+ @secondary_worker_config = args[:secondary_worker_config] if args.key?(:secondary_worker_config)
208
+ @software_config = args[:software_config] if args.key?(:software_config)
209
+ @worker_config = args[:worker_config] if args.key?(:worker_config)
160
210
  end
161
211
  end
162
212
 
163
- # The Status type defines a logical error model that is suitable for different
164
- # programming environments, including REST APIs and RPC APIs. It is used by gRPC
165
- # (https://github.com/grpc). The error model is designed to be:
166
- # Simple to use and understand for most users
167
- # Flexible enough to meet unexpected needsOverviewThe Status message contains
168
- # three pieces of data: error code, error message, and error details. The error
169
- # code should be an enum value of google.rpc.Code, but it may accept additional
170
- # error codes if needed. The error message should be a developer-facing English
171
- # message that helps developers understand and resolve the error. If a localized
172
- # user-facing error message is needed, put the localized message in the error
173
- # details or localize it in the client. The optional error details may contain
174
- # arbitrary information about the error. There is a predefined set of error
175
- # detail types in the package google.rpc that can be used for common error
176
- # conditions.Language mappingThe Status message is the logical representation of
177
- # the error model, but it is not necessarily the actual wire format. When the
178
- # Status message is exposed in different client libraries and different wire
179
- # protocols, it can be mapped differently. For example, it will likely be mapped
180
- # to some exceptions in Java, but more likely mapped to some error codes in C.
181
- # Other usesThe error model and the Status message can be used in a variety of
182
- # environments, either with or without APIs, to provide a consistent developer
183
- # experience across different environments.Example uses of this error model
184
- # include:
185
- # Partial errors. If a service needs to return partial errors to the client, it
186
- # may embed the Status in the normal response to indicate the partial errors.
187
- # Workflow errors. A typical workflow has multiple steps. Each step may have a
188
- # Status message for error reporting.
189
- # Batch operations. If a client uses batch request and batch response, the
190
- # Status message should be used directly inside batch response, one for each
191
- # error sub-response.
192
- # Asynchronous operations. If an API call embeds asynchronous operation results
193
- # in its response, the status of those operations should be represented directly
194
- # using the Status message.
195
- # Logging. If some API errors are stored in logs, the message Status could be
196
- # used directly after any stripping needed for security/privacy reasons.
197
- class Status
213
+ # Contains cluster daemon metrics, such as HDFS and YARN stats.Beta Feature:
214
+ # This report is available for testing purposes only. It may be changed before
215
+ # final release.
216
+ class ClusterMetrics
198
217
  include Google::Apis::Core::Hashable
199
218
 
200
- # The status code, which should be an enum value of google.rpc.Code.
201
- # Corresponds to the JSON property `code`
202
- # @return [Fixnum]
203
- attr_accessor :code
204
-
205
- # A developer-facing error message, which should be in English. Any user-facing
206
- # error message should be localized and sent in the google.rpc.Status.details
207
- # field, or localized by the client.
208
- # Corresponds to the JSON property `message`
209
- # @return [String]
210
- attr_accessor :message
219
+ # The HDFS metrics.
220
+ # Corresponds to the JSON property `hdfsMetrics`
221
+ # @return [Hash<String,Fixnum>]
222
+ attr_accessor :hdfs_metrics
211
223
 
212
- # A list of messages that carry the error details. There will be a common set of
213
- # message types for APIs to use.
214
- # Corresponds to the JSON property `details`
215
- # @return [Array<Hash<String,Object>>]
216
- attr_accessor :details
224
+ # The YARN metrics.
225
+ # Corresponds to the JSON property `yarnMetrics`
226
+ # @return [Hash<String,Fixnum>]
227
+ attr_accessor :yarn_metrics
217
228
 
218
229
  def initialize(**args)
219
230
  update!(**args)
@@ -221,98 +232,54 @@ module Google
221
232
 
222
233
  # Update properties of this object
223
234
  def update!(**args)
224
- @code = args[:code] if args.key?(:code)
225
- @message = args[:message] if args.key?(:message)
226
- @details = args[:details] if args.key?(:details)
235
+ @hdfs_metrics = args[:hdfs_metrics] if args.key?(:hdfs_metrics)
236
+ @yarn_metrics = args[:yarn_metrics] if args.key?(:yarn_metrics)
227
237
  end
228
238
  end
229
239
 
230
- # Optional. The config settings for Google Compute Engine resources in an
231
- # instance group, such as a master or worker group.
232
- class InstanceGroupConfig
240
+ # Metadata describing the operation.
241
+ class ClusterOperationMetadata
233
242
  include Google::Apis::Core::Hashable
234
243
 
235
- # Specifies the config of disk options for a group of VM instances.
236
- # Corresponds to the JSON property `diskConfig`
237
- # @return [Google::Apis::DataprocV1::DiskConfig]
238
- attr_accessor :disk_config
239
-
240
- # Optional. The Google Compute Engine machine type used for cluster instances.A
241
- # full URL, partial URI, or short name are valid. Examples:
242
- # https://www.googleapis.com/compute/v1/projects/[project_id]/zones/us-east1-a/
243
- # machineTypes/n1-standard-2
244
- # projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2
245
- # n1-standard-2
246
- # Corresponds to the JSON property `machineTypeUri`
244
+ # Output-only. Name of the cluster for the operation.
245
+ # Corresponds to the JSON property `clusterName`
247
246
  # @return [String]
248
- attr_accessor :machine_type_uri
247
+ attr_accessor :cluster_name
249
248
 
250
- # Output-only. The Google Compute Engine image resource used for cluster
251
- # instances. Inferred from SoftwareConfig.image_version.
252
- # Corresponds to the JSON property `imageUri`
249
+ # Output-only. Cluster UUID for the operation.
250
+ # Corresponds to the JSON property `clusterUuid`
253
251
  # @return [String]
254
- attr_accessor :image_uri
255
-
256
- # Specifies the resources used to actively manage an instance group.
257
- # Corresponds to the JSON property `managedGroupConfig`
258
- # @return [Google::Apis::DataprocV1::ManagedGroupConfig]
259
- attr_accessor :managed_group_config
260
-
261
- # Optional. Specifies that this instance group contains preemptible instances.
262
- # Corresponds to the JSON property `isPreemptible`
263
- # @return [Boolean]
264
- attr_accessor :is_preemptible
265
- alias_method :is_preemptible?, :is_preemptible
266
-
267
- # Optional. The list of instance names. Cloud Dataproc derives the names from
268
- # cluster_name, num_instances, and the instance group if not set by user (
269
- # recommended practice is to let Cloud Dataproc derive the name).
270
- # Corresponds to the JSON property `instanceNames`
271
- # @return [Array<String>]
272
- attr_accessor :instance_names
273
-
274
- # Optional. The Google Compute Engine accelerator configuration for these
275
- # instances.Beta Feature: This feature is still under development. It may be
276
- # changed before final release.
277
- # Corresponds to the JSON property `accelerators`
278
- # @return [Array<Google::Apis::DataprocV1::AcceleratorConfig>]
279
- attr_accessor :accelerators
280
-
281
- # Optional. The number of VM instances in the instance group. For master
282
- # instance groups, must be set to 1.
283
- # Corresponds to the JSON property `numInstances`
284
- # @return [Fixnum]
285
- attr_accessor :num_instances
252
+ attr_accessor :cluster_uuid
286
253
 
287
- def initialize(**args)
288
- update!(**args)
289
- end
254
+ # Output-only. Short description of operation.
255
+ # Corresponds to the JSON property `description`
256
+ # @return [String]
257
+ attr_accessor :description
290
258
 
291
- # Update properties of this object
292
- def update!(**args)
293
- @disk_config = args[:disk_config] if args.key?(:disk_config)
294
- @machine_type_uri = args[:machine_type_uri] if args.key?(:machine_type_uri)
295
- @image_uri = args[:image_uri] if args.key?(:image_uri)
296
- @managed_group_config = args[:managed_group_config] if args.key?(:managed_group_config)
297
- @is_preemptible = args[:is_preemptible] if args.key?(:is_preemptible)
298
- @instance_names = args[:instance_names] if args.key?(:instance_names)
299
- @accelerators = args[:accelerators] if args.key?(:accelerators)
300
- @num_instances = args[:num_instances] if args.key?(:num_instances)
301
- end
302
- end
259
+ # Output-only. Labels associated with the operation
260
+ # Corresponds to the JSON property `labels`
261
+ # @return [Hash<String,String>]
262
+ attr_accessor :labels
303
263
 
304
- # Job scheduling options.Beta Feature: These options are available for testing
305
- # purposes only. They may be changed before final release.
306
- class JobScheduling
307
- include Google::Apis::Core::Hashable
264
+ # Output-only. The operation type.
265
+ # Corresponds to the JSON property `operationType`
266
+ # @return [String]
267
+ attr_accessor :operation_type
308
268
 
309
- # Optional. Maximum number of times per hour a driver may be restarted as a
310
- # result of driver terminating with non-zero code before job is reported failed.
311
- # A job may be reported as thrashing if driver exits with non-zero code 4 times
312
- # within 10 minute window.Maximum value is 10.
313
- # Corresponds to the JSON property `maxFailuresPerHour`
314
- # @return [Fixnum]
315
- attr_accessor :max_failures_per_hour
269
+ # The status of the operation.
270
+ # Corresponds to the JSON property `status`
271
+ # @return [Google::Apis::DataprocV1::ClusterOperationStatus]
272
+ attr_accessor :status
273
+
274
+ # Output-only. The previous operation status.
275
+ # Corresponds to the JSON property `statusHistory`
276
+ # @return [Array<Google::Apis::DataprocV1::ClusterOperationStatus>]
277
+ attr_accessor :status_history
278
+
279
+ # Output-only. Errors encountered during operation execution.
280
+ # Corresponds to the JSON property `warnings`
281
+ # @return [Array<String>]
282
+ attr_accessor :warnings
316
283
 
317
284
  def initialize(**args)
318
285
  update!(**args)
@@ -320,27 +287,40 @@ module Google
320
287
 
321
288
  # Update properties of this object
322
289
  def update!(**args)
323
- @max_failures_per_hour = args[:max_failures_per_hour] if args.key?(:max_failures_per_hour)
290
+ @cluster_name = args[:cluster_name] if args.key?(:cluster_name)
291
+ @cluster_uuid = args[:cluster_uuid] if args.key?(:cluster_uuid)
292
+ @description = args[:description] if args.key?(:description)
293
+ @labels = args[:labels] if args.key?(:labels)
294
+ @operation_type = args[:operation_type] if args.key?(:operation_type)
295
+ @status = args[:status] if args.key?(:status)
296
+ @status_history = args[:status_history] if args.key?(:status_history)
297
+ @warnings = args[:warnings] if args.key?(:warnings)
324
298
  end
325
299
  end
326
300
 
327
- # Specifies an executable to run on a fully configured node and a timeout period
328
- # for executable completion.
329
- class NodeInitializationAction
301
+ # The status of the operation.
302
+ class ClusterOperationStatus
330
303
  include Google::Apis::Core::Hashable
331
304
 
332
- # Required. Google Cloud Storage URI of executable file.
333
- # Corresponds to the JSON property `executableFile`
305
+ # Output-only.A message containing any operation metadata details.
306
+ # Corresponds to the JSON property `details`
334
307
  # @return [String]
335
- attr_accessor :executable_file
308
+ attr_accessor :details
336
309
 
337
- # Optional. Amount of time executable has to complete. Default is 10 minutes.
338
- # Cluster creation fails with an explanatory error message (the name of the
339
- # executable that caused the error and the exceeded timeout period) if the
340
- # executable is not completed at end of the timeout period.
341
- # Corresponds to the JSON property `executionTimeout`
310
+ # Output-only. A message containing the detailed operation state.
311
+ # Corresponds to the JSON property `innerState`
342
312
  # @return [String]
343
- attr_accessor :execution_timeout
313
+ attr_accessor :inner_state
314
+
315
+ # Output-only. A message containing the operation state.
316
+ # Corresponds to the JSON property `state`
317
+ # @return [String]
318
+ attr_accessor :state
319
+
320
+ # Output-only. The time this state was entered.
321
+ # Corresponds to the JSON property `stateStartTime`
322
+ # @return [String]
323
+ attr_accessor :state_start_time
344
324
 
345
325
  def initialize(**args)
346
326
  update!(**args)
@@ -348,41 +328,37 @@ module Google
348
328
 
349
329
  # Update properties of this object
350
330
  def update!(**args)
351
- @executable_file = args[:executable_file] if args.key?(:executable_file)
352
- @execution_timeout = args[:execution_timeout] if args.key?(:execution_timeout)
331
+ @details = args[:details] if args.key?(:details)
332
+ @inner_state = args[:inner_state] if args.key?(:inner_state)
333
+ @state = args[:state] if args.key?(:state)
334
+ @state_start_time = args[:state_start_time] if args.key?(:state_start_time)
353
335
  end
354
336
  end
355
337
 
356
- # A list of jobs in a project.
357
- class ListJobsResponse
338
+ # The status of a cluster and its instances.
339
+ class ClusterStatus
358
340
  include Google::Apis::Core::Hashable
359
341
 
360
- # Output-only. Jobs list.
361
- # Corresponds to the JSON property `jobs`
362
- # @return [Array<Google::Apis::DataprocV1::Job>]
363
- attr_accessor :jobs
364
-
365
- # Optional. This token is included in the response if there are more results to
366
- # fetch. To fetch additional results, provide this value as the page_token in a
367
- # subsequent <code>ListJobsRequest</code>.
368
- # Corresponds to the JSON property `nextPageToken`
342
+ # Output-only. Optional details of cluster's state.
343
+ # Corresponds to the JSON property `detail`
369
344
  # @return [String]
370
- attr_accessor :next_page_token
345
+ attr_accessor :detail
371
346
 
372
- def initialize(**args)
373
- update!(**args)
374
- end
347
+ # Output-only. The cluster's state.
348
+ # Corresponds to the JSON property `state`
349
+ # @return [String]
350
+ attr_accessor :state
375
351
 
376
- # Update properties of this object
377
- def update!(**args)
378
- @jobs = args[:jobs] if args.key?(:jobs)
379
- @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
380
- end
381
- end
352
+ # Output-only. Time when this state was entered.
353
+ # Corresponds to the JSON property `stateStartTime`
354
+ # @return [String]
355
+ attr_accessor :state_start_time
382
356
 
383
- # A request to cancel a job.
384
- class CancelJobRequest
385
- include Google::Apis::Core::Hashable
357
+ # Output-only. Additional state information that includes status reported by the
358
+ # agent.
359
+ # Corresponds to the JSON property `substate`
360
+ # @return [String]
361
+ attr_accessor :substate
386
362
 
387
363
  def initialize(**args)
388
364
  update!(**args)
@@ -390,114 +366,35 @@ module Google
390
366
 
391
367
  # Update properties of this object
392
368
  def update!(**args)
369
+ @detail = args[:detail] if args.key?(:detail)
370
+ @state = args[:state] if args.key?(:state)
371
+ @state_start_time = args[:state_start_time] if args.key?(:state_start_time)
372
+ @substate = args[:substate] if args.key?(:substate)
393
373
  end
394
374
  end
395
375
 
396
- # A Cloud Dataproc job for running Apache Spark SQL (http://spark.apache.org/sql/
397
- # ) queries.
398
- class SparkSqlJob
376
+ # A request to collect cluster diagnostic information.
377
+ class DiagnoseClusterRequest
399
378
  include Google::Apis::Core::Hashable
400
379
 
401
- # The HCFS URI of the script that contains SQL queries.
402
- # Corresponds to the JSON property `queryFileUri`
403
- # @return [String]
404
- attr_accessor :query_file_uri
405
-
406
- # A list of queries to run on a cluster.
407
- # Corresponds to the JSON property `queryList`
408
- # @return [Google::Apis::DataprocV1::QueryList]
409
- attr_accessor :query_list
410
-
411
- # Optional. Mapping of query variable names to values (equivalent to the Spark
412
- # SQL command: SET name="value";).
413
- # Corresponds to the JSON property `scriptVariables`
414
- # @return [Hash<String,String>]
415
- attr_accessor :script_variables
416
-
417
- # Optional. HCFS URIs of jar files to be added to the Spark CLASSPATH.
418
- # Corresponds to the JSON property `jarFileUris`
419
- # @return [Array<String>]
420
- attr_accessor :jar_file_uris
421
-
422
- # The runtime logging config of the job.
423
- # Corresponds to the JSON property `loggingConfig`
424
- # @return [Google::Apis::DataprocV1::LoggingConfig]
425
- attr_accessor :logging_config
426
-
427
- # Optional. A mapping of property names to values, used to configure Spark SQL's
428
- # SparkConf. Properties that conflict with values set by the Cloud Dataproc API
429
- # may be overwritten.
430
- # Corresponds to the JSON property `properties`
431
- # @return [Hash<String,String>]
432
- attr_accessor :properties
433
-
434
380
  def initialize(**args)
435
381
  update!(**args)
436
382
  end
437
383
 
438
384
  # Update properties of this object
439
385
  def update!(**args)
440
- @query_file_uri = args[:query_file_uri] if args.key?(:query_file_uri)
441
- @query_list = args[:query_list] if args.key?(:query_list)
442
- @script_variables = args[:script_variables] if args.key?(:script_variables)
443
- @jar_file_uris = args[:jar_file_uris] if args.key?(:jar_file_uris)
444
- @logging_config = args[:logging_config] if args.key?(:logging_config)
445
- @properties = args[:properties] if args.key?(:properties)
446
386
  end
447
387
  end
448
388
 
449
- # Describes the identifying information, config, and status of a cluster of
450
- # Google Compute Engine instances.
451
- class Cluster
389
+ # The location of diagnostic output.
390
+ class DiagnoseClusterResults
452
391
  include Google::Apis::Core::Hashable
453
392
 
454
- # Optional. The labels to associate with this cluster. Label keys must contain 1
455
- # to 63 characters, and must conform to RFC 1035 (https://www.ietf.org/rfc/
456
- # rfc1035.txt). Label values may be empty, but, if present, must contain 1 to 63
457
- # characters, and must conform to RFC 1035 (https://www.ietf.org/rfc/rfc1035.txt)
458
- # . No more than 32 labels can be associated with a cluster.
459
- # Corresponds to the JSON property `labels`
460
- # @return [Hash<String,String>]
461
- attr_accessor :labels
462
-
463
- # Contains cluster daemon metrics, such as HDFS and YARN stats.Beta Feature:
464
- # This report is available for testing purposes only. It may be changed before
465
- # final release.
466
- # Corresponds to the JSON property `metrics`
467
- # @return [Google::Apis::DataprocV1::ClusterMetrics]
468
- attr_accessor :metrics
469
-
470
- # The status of a cluster and its instances.
471
- # Corresponds to the JSON property `status`
472
- # @return [Google::Apis::DataprocV1::ClusterStatus]
473
- attr_accessor :status
474
-
475
- # Output-only. The previous cluster status.
476
- # Corresponds to the JSON property `statusHistory`
477
- # @return [Array<Google::Apis::DataprocV1::ClusterStatus>]
478
- attr_accessor :status_history
479
-
480
- # The cluster config.
481
- # Corresponds to the JSON property `config`
482
- # @return [Google::Apis::DataprocV1::ClusterConfig]
483
- attr_accessor :config
484
-
485
- # Output-only. A cluster UUID (Unique Universal Identifier). Cloud Dataproc
486
- # generates this value when it creates the cluster.
487
- # Corresponds to the JSON property `clusterUuid`
488
- # @return [String]
489
- attr_accessor :cluster_uuid
490
-
491
- # Required. The cluster name. Cluster names within a project must be unique.
492
- # Names of deleted clusters can be reused.
493
- # Corresponds to the JSON property `clusterName`
494
- # @return [String]
495
- attr_accessor :cluster_name
496
-
497
- # Required. The Google Cloud Platform project ID that the cluster belongs to.
498
- # Corresponds to the JSON property `projectId`
393
+ # Output-only. The Google Cloud Storage URI of the diagnostic output. The output
394
+ # report is a plain text file with a summary of collected diagnostics.
395
+ # Corresponds to the JSON property `outputUri`
499
396
  # @return [String]
500
- attr_accessor :project_id
397
+ attr_accessor :output_uri
501
398
 
502
399
  def initialize(**args)
503
400
  update!(**args)
@@ -505,30 +402,27 @@ module Google
505
402
 
506
403
  # Update properties of this object
507
404
  def update!(**args)
508
- @labels = args[:labels] if args.key?(:labels)
509
- @metrics = args[:metrics] if args.key?(:metrics)
510
- @status = args[:status] if args.key?(:status)
511
- @status_history = args[:status_history] if args.key?(:status_history)
512
- @config = args[:config] if args.key?(:config)
513
- @cluster_uuid = args[:cluster_uuid] if args.key?(:cluster_uuid)
514
- @cluster_name = args[:cluster_name] if args.key?(:cluster_name)
515
- @project_id = args[:project_id] if args.key?(:project_id)
405
+ @output_uri = args[:output_uri] if args.key?(:output_uri)
516
406
  end
517
407
  end
518
408
 
519
- # The response message for Operations.ListOperations.
520
- class ListOperationsResponse
409
+ # Specifies the config of disk options for a group of VM instances.
410
+ class DiskConfig
521
411
  include Google::Apis::Core::Hashable
522
412
 
523
- # A list of operations that matches the specified filter in the request.
524
- # Corresponds to the JSON property `operations`
525
- # @return [Array<Google::Apis::DataprocV1::Operation>]
526
- attr_accessor :operations
413
+ # Optional. Size in GB of the boot disk (default is 500GB).
414
+ # Corresponds to the JSON property `bootDiskSizeGb`
415
+ # @return [Fixnum]
416
+ attr_accessor :boot_disk_size_gb
527
417
 
528
- # The standard List next-page token.
529
- # Corresponds to the JSON property `nextPageToken`
530
- # @return [String]
531
- attr_accessor :next_page_token
418
+ # Optional. Number of attached SSDs, from 0 to 4 (default is 0). If SSDs are not
419
+ # attached, the boot disk is used to store runtime logs and HDFS (https://hadoop.
420
+ # apache.org/docs/r1.2.1/hdfs_user_guide.html) data. If one or more SSDs are
421
+ # attached, this runtime bulk data is spread across them, and the boot disk
422
+ # contains only basic config and installed binaries.
423
+ # Corresponds to the JSON property `numLocalSsds`
424
+ # @return [Fixnum]
425
+ attr_accessor :num_local_ssds
532
426
 
533
427
  def initialize(**args)
534
428
  update!(**args)
@@ -536,25 +430,20 @@ module Google
536
430
 
537
431
  # Update properties of this object
538
432
  def update!(**args)
539
- @operations = args[:operations] if args.key?(:operations)
540
- @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
433
+ @boot_disk_size_gb = args[:boot_disk_size_gb] if args.key?(:boot_disk_size_gb)
434
+ @num_local_ssds = args[:num_local_ssds] if args.key?(:num_local_ssds)
541
435
  end
542
436
  end
543
437
 
544
- # Cloud Dataproc job config.
545
- class JobPlacement
546
- include Google::Apis::Core::Hashable
547
-
548
- # Output-only. A cluster UUID generated by the Cloud Dataproc service when the
549
- # job is submitted.
550
- # Corresponds to the JSON property `clusterUuid`
551
- # @return [String]
552
- attr_accessor :cluster_uuid
553
-
554
- # Required. The name of the cluster where the job will be submitted.
555
- # Corresponds to the JSON property `clusterName`
556
- # @return [String]
557
- attr_accessor :cluster_name
438
+ # A generic empty message that you can re-use to avoid defining duplicated empty
439
+ # messages in your APIs. A typical example is to use it as the request or the
440
+ # response type of an API method. For instance:
441
+ # service Foo `
442
+ # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
443
+ # `
444
+ # The JSON representation for Empty is empty JSON object ``.
445
+ class Empty
446
+ include Google::Apis::Core::Hashable
558
447
 
559
448
  def initialize(**args)
560
449
  update!(**args)
@@ -562,37 +451,98 @@ module Google
562
451
 
563
452
  # Update properties of this object
564
453
  def update!(**args)
565
- @cluster_uuid = args[:cluster_uuid] if args.key?(:cluster_uuid)
566
- @cluster_name = args[:cluster_name] if args.key?(:cluster_name)
567
454
  end
568
455
  end
569
456
 
570
- # Specifies the selection and config of software inside the cluster.
571
- class SoftwareConfig
457
+ # Common config settings for resources of Google Compute Engine cluster
458
+ # instances, applicable to all instances in the cluster.
459
+ class GceClusterConfig
572
460
  include Google::Apis::Core::Hashable
573
461
 
574
- # Optional. The version of software inside the cluster. It must match the
575
- # regular expression [0-9]+\.[0-9]+. If unspecified, it defaults to the latest
576
- # version (see Cloud Dataproc Versioning).
577
- # Corresponds to the JSON property `imageVersion`
578
- # @return [String]
579
- attr_accessor :image_version
462
+ # Optional. If true, all instances in the cluster will only have internal IP
463
+ # addresses. By default, clusters are not restricted to internal IP addresses,
464
+ # and will have ephemeral external IP addresses assigned to each instance. This
465
+ # internal_ip_only restriction can only be enabled for subnetwork enabled
466
+ # networks, and all off-cluster dependencies must be configured to be accessible
467
+ # without external IP addresses.
468
+ # Corresponds to the JSON property `internalIpOnly`
469
+ # @return [Boolean]
470
+ attr_accessor :internal_ip_only
471
+ alias_method :internal_ip_only?, :internal_ip_only
580
472
 
581
- # Optional. The properties to set on daemon config files.Property keys are
582
- # specified in prefix:property format, such as core:fs.defaultFS. The following
583
- # are supported prefixes and their mappings:
584
- # capacity-scheduler: capacity-scheduler.xml
585
- # core: core-site.xml
586
- # distcp: distcp-default.xml
587
- # hdfs: hdfs-site.xml
588
- # hive: hive-site.xml
589
- # mapred: mapred-site.xml
590
- # pig: pig.properties
591
- # spark: spark-defaults.conf
592
- # yarn: yarn-site.xml
593
- # Corresponds to the JSON property `properties`
473
+ # The Google Compute Engine metadata entries to add to all instances (see
474
+ # Project and instance metadata (https://cloud.google.com/compute/docs/storing-
475
+ # retrieving-metadata#project_and_instance_metadata)).
476
+ # Corresponds to the JSON property `metadata`
594
477
  # @return [Hash<String,String>]
595
- attr_accessor :properties
478
+ attr_accessor :metadata
479
+
480
+ # Optional. The Google Compute Engine network to be used for machine
481
+ # communications. Cannot be specified with subnetwork_uri. If neither
482
+ # network_uri nor subnetwork_uri is specified, the "default" network of the
483
+ # project is used, if it exists. Cannot be a "Custom Subnet Network" (see Using
484
+ # Subnetworks for more information).A full URL, partial URI, or short name are
485
+ # valid. Examples:
486
+ # https://www.googleapis.com/compute/v1/projects/[project_id]/regions/global/
487
+ # default
488
+ # projects/[project_id]/regions/global/default
489
+ # default
490
+ # Corresponds to the JSON property `networkUri`
491
+ # @return [String]
492
+ attr_accessor :network_uri
493
+
494
+ # Optional. The service account of the instances. Defaults to the default Google
495
+ # Compute Engine service account. Custom service accounts need permissions
496
+ # equivalent to the folloing IAM roles:
497
+ # roles/logging.logWriter
498
+ # roles/storage.objectAdmin(see https://cloud.google.com/compute/docs/access/
499
+ # service-accounts#custom_service_accounts for more information). Example: [
500
+ # account_id]@[project_id].iam.gserviceaccount.com
501
+ # Corresponds to the JSON property `serviceAccount`
502
+ # @return [String]
503
+ attr_accessor :service_account
504
+
505
+ # Optional. The URIs of service account scopes to be included in Google Compute
506
+ # Engine instances. The following base set of scopes is always included:
507
+ # https://www.googleapis.com/auth/cloud.useraccounts.readonly
508
+ # https://www.googleapis.com/auth/devstorage.read_write
509
+ # https://www.googleapis.com/auth/logging.writeIf no scopes are specified, the
510
+ # following defaults are also provided:
511
+ # https://www.googleapis.com/auth/bigquery
512
+ # https://www.googleapis.com/auth/bigtable.admin.table
513
+ # https://www.googleapis.com/auth/bigtable.data
514
+ # https://www.googleapis.com/auth/devstorage.full_control
515
+ # Corresponds to the JSON property `serviceAccountScopes`
516
+ # @return [Array<String>]
517
+ attr_accessor :service_account_scopes
518
+
519
+ # Optional. The Google Compute Engine subnetwork to be used for machine
520
+ # communications. Cannot be specified with network_uri.A full URL, partial URI,
521
+ # or short name are valid. Examples:
522
+ # https://www.googleapis.com/compute/v1/projects/[project_id]/regions/us-east1/
523
+ # sub0
524
+ # projects/[project_id]/regions/us-east1/sub0
525
+ # sub0
526
+ # Corresponds to the JSON property `subnetworkUri`
527
+ # @return [String]
528
+ attr_accessor :subnetwork_uri
529
+
530
+ # The Google Compute Engine tags to add to all instances (see Tagging instances).
531
+ # Corresponds to the JSON property `tags`
532
+ # @return [Array<String>]
533
+ attr_accessor :tags
534
+
535
+ # Optional. The zone where the Google Compute Engine cluster will be located. On
536
+ # a create request, it is required in the "global" region. If omitted in a non-
537
+ # global Cloud Dataproc region, the service will pick a zone in the
538
+ # corresponding Compute Engine region. On a get request, zone will always be
539
+ # present.A full URL, partial URI, or short name are valid. Examples:
540
+ # https://www.googleapis.com/compute/v1/projects/[project_id]/zones/[zone]
541
+ # projects/[project_id]/zones/[zone]
542
+ # us-central1-f
543
+ # Corresponds to the JSON property `zoneUri`
544
+ # @return [String]
545
+ attr_accessor :zone_uri
596
546
 
597
547
  def initialize(**args)
598
548
  update!(**args)
@@ -600,35 +550,77 @@ module Google
600
550
 
601
551
  # Update properties of this object
602
552
  def update!(**args)
603
- @image_version = args[:image_version] if args.key?(:image_version)
604
- @properties = args[:properties] if args.key?(:properties)
553
+ @internal_ip_only = args[:internal_ip_only] if args.key?(:internal_ip_only)
554
+ @metadata = args[:metadata] if args.key?(:metadata)
555
+ @network_uri = args[:network_uri] if args.key?(:network_uri)
556
+ @service_account = args[:service_account] if args.key?(:service_account)
557
+ @service_account_scopes = args[:service_account_scopes] if args.key?(:service_account_scopes)
558
+ @subnetwork_uri = args[:subnetwork_uri] if args.key?(:subnetwork_uri)
559
+ @tags = args[:tags] if args.key?(:tags)
560
+ @zone_uri = args[:zone_uri] if args.key?(:zone_uri)
605
561
  end
606
562
  end
607
563
 
608
- # The status of a cluster and its instances.
609
- class ClusterStatus
564
+ # A Cloud Dataproc job for running Apache Hadoop MapReduce (https://hadoop.
565
+ # apache.org/docs/current/hadoop-mapreduce-client/hadoop-mapreduce-client-core/
566
+ # MapReduceTutorial.html) jobs on Apache Hadoop YARN (https://hadoop.apache.org/
567
+ # docs/r2.7.1/hadoop-yarn/hadoop-yarn-site/YARN.html).
568
+ class HadoopJob
610
569
  include Google::Apis::Core::Hashable
611
570
 
612
- # Output-only. Additional state information that includes status reported by the
613
- # agent.
614
- # Corresponds to the JSON property `substate`
615
- # @return [String]
616
- attr_accessor :substate
571
+ # Optional. HCFS URIs of archives to be extracted in the working directory of
572
+ # Hadoop drivers and tasks. Supported file types: .jar, .tar, .tar.gz, .tgz, or .
573
+ # zip.
574
+ # Corresponds to the JSON property `archiveUris`
575
+ # @return [Array<String>]
576
+ attr_accessor :archive_uris
617
577
 
618
- # Output-only. Time when this state was entered.
619
- # Corresponds to the JSON property `stateStartTime`
620
- # @return [String]
621
- attr_accessor :state_start_time
578
+ # Optional. The arguments to pass to the driver. Do not include arguments, such
579
+ # as -libjars or -Dfoo=bar, that can be set as job properties, since a collision
580
+ # may occur that causes an incorrect job submission.
581
+ # Corresponds to the JSON property `args`
582
+ # @return [Array<String>]
583
+ attr_accessor :args
622
584
 
623
- # Output-only. Optional details of cluster's state.
624
- # Corresponds to the JSON property `detail`
585
+ # Optional. HCFS (Hadoop Compatible Filesystem) URIs of files to be copied to
586
+ # the working directory of Hadoop drivers and distributed tasks. Useful for
587
+ # naively parallel tasks.
588
+ # Corresponds to the JSON property `fileUris`
589
+ # @return [Array<String>]
590
+ attr_accessor :file_uris
591
+
592
+ # Optional. Jar file URIs to add to the CLASSPATHs of the Hadoop driver and
593
+ # tasks.
594
+ # Corresponds to the JSON property `jarFileUris`
595
+ # @return [Array<String>]
596
+ attr_accessor :jar_file_uris
597
+
598
+ # The runtime logging config of the job.
599
+ # Corresponds to the JSON property `loggingConfig`
600
+ # @return [Google::Apis::DataprocV1::LoggingConfig]
601
+ attr_accessor :logging_config
602
+
603
+ # The name of the driver's main class. The jar file containing the class must be
604
+ # in the default CLASSPATH or specified in jar_file_uris.
605
+ # Corresponds to the JSON property `mainClass`
625
606
  # @return [String]
626
- attr_accessor :detail
607
+ attr_accessor :main_class
627
608
 
628
- # Output-only. The cluster's state.
629
- # Corresponds to the JSON property `state`
609
+ # The HCFS URI of the jar file containing the main class. Examples: 'gs://foo-
610
+ # bucket/analytics-binaries/extract-useful-metrics-mr.jar' 'hdfs:/tmp/test-
611
+ # samples/custom-wordcount.jar' 'file:///home/usr/lib/hadoop-mapreduce/hadoop-
612
+ # mapreduce-examples.jar'
613
+ # Corresponds to the JSON property `mainJarFileUri`
630
614
  # @return [String]
631
- attr_accessor :state
615
+ attr_accessor :main_jar_file_uri
616
+
617
+ # Optional. A mapping of property names to values, used to configure Hadoop.
618
+ # Properties that conflict with values set by the Cloud Dataproc API may be
619
+ # overwritten. Can include properties set in /etc/hadoop/conf/*-site and classes
620
+ # in user code.
621
+ # Corresponds to the JSON property `properties`
622
+ # @return [Hash<String,String>]
623
+ attr_accessor :properties
632
624
 
633
625
  def initialize(**args)
634
626
  update!(**args)
@@ -636,16 +628,20 @@ module Google
636
628
 
637
629
  # Update properties of this object
638
630
  def update!(**args)
639
- @substate = args[:substate] if args.key?(:substate)
640
- @state_start_time = args[:state_start_time] if args.key?(:state_start_time)
641
- @detail = args[:detail] if args.key?(:detail)
642
- @state = args[:state] if args.key?(:state)
631
+ @archive_uris = args[:archive_uris] if args.key?(:archive_uris)
632
+ @args = args[:args] if args.key?(:args)
633
+ @file_uris = args[:file_uris] if args.key?(:file_uris)
634
+ @jar_file_uris = args[:jar_file_uris] if args.key?(:jar_file_uris)
635
+ @logging_config = args[:logging_config] if args.key?(:logging_config)
636
+ @main_class = args[:main_class] if args.key?(:main_class)
637
+ @main_jar_file_uri = args[:main_jar_file_uri] if args.key?(:main_jar_file_uri)
638
+ @properties = args[:properties] if args.key?(:properties)
643
639
  end
644
640
  end
645
641
 
646
- # A Cloud Dataproc job for running Apache Pig (https://pig.apache.org/) queries
647
- # on YARN.
648
- class PigJob
642
+ # A Cloud Dataproc job for running Apache Hive (https://hive.apache.org/)
643
+ # queries on YARN.
644
+ class HiveJob
649
645
  include Google::Apis::Core::Hashable
650
646
 
651
647
  # Optional. Whether to continue executing queries if a query fails. The default
@@ -656,72 +652,107 @@ module Google
656
652
  attr_accessor :continue_on_failure
657
653
  alias_method :continue_on_failure?, :continue_on_failure
658
654
 
659
- # A list of queries to run on a cluster.
660
- # Corresponds to the JSON property `queryList`
661
- # @return [Google::Apis::DataprocV1::QueryList]
662
- attr_accessor :query_list
663
-
664
- # The HCFS URI of the script that contains the Pig queries.
665
- # Corresponds to the JSON property `queryFileUri`
666
- # @return [String]
667
- attr_accessor :query_file_uri
668
-
669
- # Optional. HCFS URIs of jar files to add to the CLASSPATH of the Pig Client and
670
- # Hadoop MapReduce (MR) tasks. Can contain Pig UDFs.
655
+ # Optional. HCFS URIs of jar files to add to the CLASSPATH of the Hive server
656
+ # and Hadoop MapReduce (MR) tasks. Can contain Hive SerDes and UDFs.
671
657
  # Corresponds to the JSON property `jarFileUris`
672
658
  # @return [Array<String>]
673
659
  attr_accessor :jar_file_uris
674
660
 
675
- # Optional. Mapping of query variable names to values (equivalent to the Pig
676
- # command: name=[value]).
677
- # Corresponds to the JSON property `scriptVariables`
678
- # @return [Hash<String,String>]
679
- attr_accessor :script_variables
680
-
681
- # The runtime logging config of the job.
682
- # Corresponds to the JSON property `loggingConfig`
683
- # @return [Google::Apis::DataprocV1::LoggingConfig]
684
- attr_accessor :logging_config
685
-
686
- # Optional. A mapping of property names to values, used to configure Pig.
661
+ # Optional. A mapping of property names and values, used to configure Hive.
687
662
  # Properties that conflict with values set by the Cloud Dataproc API may be
688
663
  # overwritten. Can include properties set in /etc/hadoop/conf/*-site.xml, /etc/
689
- # pig/conf/pig.properties, and classes in user code.
664
+ # hive/conf/hive-site.xml, and classes in user code.
690
665
  # Corresponds to the JSON property `properties`
691
666
  # @return [Hash<String,String>]
692
667
  attr_accessor :properties
693
668
 
669
+ # The HCFS URI of the script that contains Hive queries.
670
+ # Corresponds to the JSON property `queryFileUri`
671
+ # @return [String]
672
+ attr_accessor :query_file_uri
673
+
674
+ # A list of queries to run on a cluster.
675
+ # Corresponds to the JSON property `queryList`
676
+ # @return [Google::Apis::DataprocV1::QueryList]
677
+ attr_accessor :query_list
678
+
679
+ # Optional. Mapping of query variable names to values (equivalent to the Hive
680
+ # command: SET name="value";).
681
+ # Corresponds to the JSON property `scriptVariables`
682
+ # @return [Hash<String,String>]
683
+ attr_accessor :script_variables
684
+
694
685
  def initialize(**args)
695
686
  update!(**args)
696
687
  end
697
688
 
698
689
  # Update properties of this object
699
690
  def update!(**args)
700
- @continue_on_failure = args[:continue_on_failure] if args.key?(:continue_on_failure)
701
- @query_list = args[:query_list] if args.key?(:query_list)
702
- @query_file_uri = args[:query_file_uri] if args.key?(:query_file_uri)
691
+ @continue_on_failure = args[:continue_on_failure] if args.key?(:continue_on_failure)
703
692
  @jar_file_uris = args[:jar_file_uris] if args.key?(:jar_file_uris)
704
- @script_variables = args[:script_variables] if args.key?(:script_variables)
705
- @logging_config = args[:logging_config] if args.key?(:logging_config)
706
693
  @properties = args[:properties] if args.key?(:properties)
694
+ @query_file_uri = args[:query_file_uri] if args.key?(:query_file_uri)
695
+ @query_list = args[:query_list] if args.key?(:query_list)
696
+ @script_variables = args[:script_variables] if args.key?(:script_variables)
707
697
  end
708
698
  end
709
699
 
710
- # The list of all clusters in a project.
711
- class ListClustersResponse
700
+ # Optional. The config settings for Google Compute Engine resources in an
701
+ # instance group, such as a master or worker group.
702
+ class InstanceGroupConfig
712
703
  include Google::Apis::Core::Hashable
713
704
 
714
- # Output-only. This token is included in the response if there are more results
715
- # to fetch. To fetch additional results, provide this value as the page_token in
716
- # a subsequent ListClustersRequest.
717
- # Corresponds to the JSON property `nextPageToken`
705
+ # Optional. The Google Compute Engine accelerator configuration for these
706
+ # instances.Beta Feature: This feature is still under development. It may be
707
+ # changed before final release.
708
+ # Corresponds to the JSON property `accelerators`
709
+ # @return [Array<Google::Apis::DataprocV1::AcceleratorConfig>]
710
+ attr_accessor :accelerators
711
+
712
+ # Specifies the config of disk options for a group of VM instances.
713
+ # Corresponds to the JSON property `diskConfig`
714
+ # @return [Google::Apis::DataprocV1::DiskConfig]
715
+ attr_accessor :disk_config
716
+
717
+ # Output-only. The Google Compute Engine image resource used for cluster
718
+ # instances. Inferred from SoftwareConfig.image_version.
719
+ # Corresponds to the JSON property `imageUri`
718
720
  # @return [String]
719
- attr_accessor :next_page_token
721
+ attr_accessor :image_uri
720
722
 
721
- # Output-only. The clusters in the project.
722
- # Corresponds to the JSON property `clusters`
723
- # @return [Array<Google::Apis::DataprocV1::Cluster>]
724
- attr_accessor :clusters
723
+ # Optional. The list of instance names. Cloud Dataproc derives the names from
724
+ # cluster_name, num_instances, and the instance group if not set by user (
725
+ # recommended practice is to let Cloud Dataproc derive the name).
726
+ # Corresponds to the JSON property `instanceNames`
727
+ # @return [Array<String>]
728
+ attr_accessor :instance_names
729
+
730
+ # Optional. Specifies that this instance group contains preemptible instances.
731
+ # Corresponds to the JSON property `isPreemptible`
732
+ # @return [Boolean]
733
+ attr_accessor :is_preemptible
734
+ alias_method :is_preemptible?, :is_preemptible
735
+
736
+ # Optional. The Google Compute Engine machine type used for cluster instances.A
737
+ # full URL, partial URI, or short name are valid. Examples:
738
+ # https://www.googleapis.com/compute/v1/projects/[project_id]/zones/us-east1-a/
739
+ # machineTypes/n1-standard-2
740
+ # projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2
741
+ # n1-standard-2
742
+ # Corresponds to the JSON property `machineTypeUri`
743
+ # @return [String]
744
+ attr_accessor :machine_type_uri
745
+
746
+ # Specifies the resources used to actively manage an instance group.
747
+ # Corresponds to the JSON property `managedGroupConfig`
748
+ # @return [Google::Apis::DataprocV1::ManagedGroupConfig]
749
+ attr_accessor :managed_group_config
750
+
751
+ # Optional. The number of VM instances in the instance group. For master
752
+ # instance groups, must be set to 1.
753
+ # Corresponds to the JSON property `numInstances`
754
+ # @return [Fixnum]
755
+ attr_accessor :num_instances
725
756
 
726
757
  def initialize(**args)
727
758
  update!(**args)
@@ -729,8 +760,14 @@ module Google
729
760
 
730
761
  # Update properties of this object
731
762
  def update!(**args)
732
- @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
733
- @clusters = args[:clusters] if args.key?(:clusters)
763
+ @accelerators = args[:accelerators] if args.key?(:accelerators)
764
+ @disk_config = args[:disk_config] if args.key?(:disk_config)
765
+ @image_uri = args[:image_uri] if args.key?(:image_uri)
766
+ @instance_names = args[:instance_names] if args.key?(:instance_names)
767
+ @is_preemptible = args[:is_preemptible] if args.key?(:is_preemptible)
768
+ @machine_type_uri = args[:machine_type_uri] if args.key?(:machine_type_uri)
769
+ @managed_group_config = args[:managed_group_config] if args.key?(:managed_group_config)
770
+ @num_instances = args[:num_instances] if args.key?(:num_instances)
734
771
  end
735
772
  end
736
773
 
@@ -738,6 +775,27 @@ module Google
738
775
  class Job
739
776
  include Google::Apis::Core::Hashable
740
777
 
778
+ # Output-only. If present, the location of miscellaneous control files which may
779
+ # be used as part of job setup and handling. If not present, control files may
780
+ # be placed in the same location as driver_output_uri.
781
+ # Corresponds to the JSON property `driverControlFilesUri`
782
+ # @return [String]
783
+ attr_accessor :driver_control_files_uri
784
+
785
+ # Output-only. A URI pointing to the location of the stdout of the job's driver
786
+ # program.
787
+ # Corresponds to the JSON property `driverOutputResourceUri`
788
+ # @return [String]
789
+ attr_accessor :driver_output_resource_uri
790
+
791
+ # A Cloud Dataproc job for running Apache Hadoop MapReduce (https://hadoop.
792
+ # apache.org/docs/current/hadoop-mapreduce-client/hadoop-mapreduce-client-core/
793
+ # MapReduceTutorial.html) jobs on Apache Hadoop YARN (https://hadoop.apache.org/
794
+ # docs/r2.7.1/hadoop-yarn/hadoop-yarn-site/YARN.html).
795
+ # Corresponds to the JSON property `hadoopJob`
796
+ # @return [Google::Apis::DataprocV1::HadoopJob]
797
+ attr_accessor :hadoop_job
798
+
741
799
  # A Cloud Dataproc job for running Apache Hive (https://hive.apache.org/)
742
800
  # queries on YARN.
743
801
  # Corresponds to the JSON property `hiveJob`
@@ -753,35 +811,16 @@ module Google
753
811
  # @return [Hash<String,String>]
754
812
  attr_accessor :labels
755
813
 
756
- # Output-only. A URI pointing to the location of the stdout of the job's driver
757
- # program.
758
- # Corresponds to the JSON property `driverOutputResourceUri`
759
- # @return [String]
760
- attr_accessor :driver_output_resource_uri
761
-
762
- # A Cloud Dataproc job for running Apache Spark SQL (http://spark.apache.org/sql/
763
- # ) queries.
764
- # Corresponds to the JSON property `sparkSqlJob`
765
- # @return [Google::Apis::DataprocV1::SparkSqlJob]
766
- attr_accessor :spark_sql_job
767
-
768
- # Output-only. The previous job status.
769
- # Corresponds to the JSON property `statusHistory`
770
- # @return [Array<Google::Apis::DataprocV1::JobStatus>]
771
- attr_accessor :status_history
772
-
773
- # A Cloud Dataproc job for running Apache Spark (http://spark.apache.org/)
774
- # applications on YARN.
775
- # Corresponds to the JSON property `sparkJob`
776
- # @return [Google::Apis::DataprocV1::SparkJob]
777
- attr_accessor :spark_job
814
+ # A Cloud Dataproc job for running Apache Pig (https://pig.apache.org/) queries
815
+ # on YARN.
816
+ # Corresponds to the JSON property `pigJob`
817
+ # @return [Google::Apis::DataprocV1::PigJob]
818
+ attr_accessor :pig_job
778
819
 
779
- # Output-only. The collection of YARN applications spun up by this job.Beta
780
- # Feature: This report is available for testing purposes only. It may be changed
781
- # before final release.
782
- # Corresponds to the JSON property `yarnApplications`
783
- # @return [Array<Google::Apis::DataprocV1::YarnApplication>]
784
- attr_accessor :yarn_applications
820
+ # Cloud Dataproc job config.
821
+ # Corresponds to the JSON property `placement`
822
+ # @return [Google::Apis::DataprocV1::JobPlacement]
823
+ attr_accessor :placement
785
824
 
786
825
  # A Cloud Dataproc job for running Apache PySpark (https://spark.apache.org/docs/
787
826
  # 0.9.0/python-programming-guide.html) applications on YARN.
@@ -794,42 +833,40 @@ module Google
794
833
  # @return [Google::Apis::DataprocV1::JobReference]
795
834
  attr_accessor :reference
796
835
 
797
- # A Cloud Dataproc job for running Apache Hadoop MapReduce (https://hadoop.
798
- # apache.org/docs/current/hadoop-mapreduce-client/hadoop-mapreduce-client-core/
799
- # MapReduceTutorial.html) jobs on Apache Hadoop YARN (https://hadoop.apache.org/
800
- # docs/r2.7.1/hadoop-yarn/hadoop-yarn-site/YARN.html).
801
- # Corresponds to the JSON property `hadoopJob`
802
- # @return [Google::Apis::DataprocV1::HadoopJob]
803
- attr_accessor :hadoop_job
836
+ # Job scheduling options.Beta Feature: These options are available for testing
837
+ # purposes only. They may be changed before final release.
838
+ # Corresponds to the JSON property `scheduling`
839
+ # @return [Google::Apis::DataprocV1::JobScheduling]
840
+ attr_accessor :scheduling
804
841
 
805
- # Cloud Dataproc job config.
806
- # Corresponds to the JSON property `placement`
807
- # @return [Google::Apis::DataprocV1::JobPlacement]
808
- attr_accessor :placement
842
+ # A Cloud Dataproc job for running Apache Spark (http://spark.apache.org/)
843
+ # applications on YARN.
844
+ # Corresponds to the JSON property `sparkJob`
845
+ # @return [Google::Apis::DataprocV1::SparkJob]
846
+ attr_accessor :spark_job
847
+
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
809
853
 
810
854
  # Cloud Dataproc job status.
811
855
  # Corresponds to the JSON property `status`
812
856
  # @return [Google::Apis::DataprocV1::JobStatus]
813
857
  attr_accessor :status
814
858
 
815
- # Output-only. If present, the location of miscellaneous control files which may
816
- # be used as part of job setup and handling. If not present, control files may
817
- # be placed in the same location as driver_output_uri.
818
- # Corresponds to the JSON property `driverControlFilesUri`
819
- # @return [String]
820
- attr_accessor :driver_control_files_uri
821
-
822
- # Job scheduling options.Beta Feature: These options are available for testing
823
- # purposes only. They may be changed before final release.
824
- # Corresponds to the JSON property `scheduling`
825
- # @return [Google::Apis::DataprocV1::JobScheduling]
826
- attr_accessor :scheduling
859
+ # Output-only. The previous job status.
860
+ # Corresponds to the JSON property `statusHistory`
861
+ # @return [Array<Google::Apis::DataprocV1::JobStatus>]
862
+ attr_accessor :status_history
827
863
 
828
- # A Cloud Dataproc job for running Apache Pig (https://pig.apache.org/) queries
829
- # on YARN.
830
- # Corresponds to the JSON property `pigJob`
831
- # @return [Google::Apis::DataprocV1::PigJob]
832
- attr_accessor :pig_job
864
+ # Output-only. The collection of YARN applications spun up by this job.Beta
865
+ # Feature: This report is available for testing purposes only. It may be changed
866
+ # before final release.
867
+ # Corresponds to the JSON property `yarnApplications`
868
+ # @return [Array<Google::Apis::DataprocV1::YarnApplication>]
869
+ attr_accessor :yarn_applications
833
870
 
834
871
  def initialize(**args)
835
872
  update!(**args)
@@ -837,78 +874,91 @@ module Google
837
874
 
838
875
  # Update properties of this object
839
876
  def update!(**args)
877
+ @driver_control_files_uri = args[:driver_control_files_uri] if args.key?(:driver_control_files_uri)
878
+ @driver_output_resource_uri = args[:driver_output_resource_uri] if args.key?(:driver_output_resource_uri)
879
+ @hadoop_job = args[:hadoop_job] if args.key?(:hadoop_job)
840
880
  @hive_job = args[:hive_job] if args.key?(:hive_job)
841
881
  @labels = args[:labels] if args.key?(:labels)
842
- @driver_output_resource_uri = args[:driver_output_resource_uri] if args.key?(:driver_output_resource_uri)
843
- @spark_sql_job = args[:spark_sql_job] if args.key?(:spark_sql_job)
844
- @status_history = args[:status_history] if args.key?(:status_history)
845
- @spark_job = args[:spark_job] if args.key?(:spark_job)
846
- @yarn_applications = args[:yarn_applications] if args.key?(:yarn_applications)
882
+ @pig_job = args[:pig_job] if args.key?(:pig_job)
883
+ @placement = args[:placement] if args.key?(:placement)
847
884
  @pyspark_job = args[:pyspark_job] if args.key?(:pyspark_job)
848
885
  @reference = args[:reference] if args.key?(:reference)
849
- @hadoop_job = args[:hadoop_job] if args.key?(:hadoop_job)
850
- @placement = args[:placement] if args.key?(:placement)
851
- @status = args[:status] if args.key?(:status)
852
- @driver_control_files_uri = args[:driver_control_files_uri] if args.key?(:driver_control_files_uri)
853
886
  @scheduling = args[:scheduling] if args.key?(:scheduling)
854
- @pig_job = args[:pig_job] if args.key?(:pig_job)
887
+ @spark_job = args[:spark_job] if args.key?(:spark_job)
888
+ @spark_sql_job = args[:spark_sql_job] if args.key?(:spark_sql_job)
889
+ @status = args[:status] if args.key?(:status)
890
+ @status_history = args[:status_history] if args.key?(:status_history)
891
+ @yarn_applications = args[:yarn_applications] if args.key?(:yarn_applications)
855
892
  end
856
893
  end
857
894
 
858
- # A Cloud Dataproc job for running Apache Spark (http://spark.apache.org/)
859
- # applications on YARN.
860
- class SparkJob
895
+ # Cloud Dataproc job config.
896
+ class JobPlacement
861
897
  include Google::Apis::Core::Hashable
862
898
 
863
- # The name of the driver's main class. The jar file that contains the class must
864
- # be in the default CLASSPATH or specified in jar_file_uris.
865
- # Corresponds to the JSON property `mainClass`
899
+ # Required. The name of the cluster where the job will be submitted.
900
+ # Corresponds to the JSON property `clusterName`
866
901
  # @return [String]
867
- attr_accessor :main_class
902
+ attr_accessor :cluster_name
868
903
 
869
- # Optional. HCFS URIs of archives to be extracted in the working directory of
870
- # Spark drivers and tasks. Supported file types: .jar, .tar, .tar.gz, .tgz, and .
871
- # zip.
872
- # Corresponds to the JSON property `archiveUris`
873
- # @return [Array<String>]
874
- attr_accessor :archive_uris
904
+ # Output-only. A cluster UUID generated by the Cloud Dataproc service when the
905
+ # job is submitted.
906
+ # Corresponds to the JSON property `clusterUuid`
907
+ # @return [String]
908
+ attr_accessor :cluster_uuid
875
909
 
876
- # The HCFS URI of the jar file that contains the main class.
877
- # Corresponds to the JSON property `mainJarFileUri`
910
+ def initialize(**args)
911
+ update!(**args)
912
+ end
913
+
914
+ # Update properties of this object
915
+ def update!(**args)
916
+ @cluster_name = args[:cluster_name] if args.key?(:cluster_name)
917
+ @cluster_uuid = args[:cluster_uuid] if args.key?(:cluster_uuid)
918
+ end
919
+ end
920
+
921
+ # Encapsulates the full scoping used to reference a job.
922
+ class JobReference
923
+ include Google::Apis::Core::Hashable
924
+
925
+ # Optional. The job ID, which must be unique within the project. The job ID is
926
+ # generated by the server upon job submission or provided by the user as a means
927
+ # to perform retries without creating duplicate jobs. The ID must contain only
928
+ # letters (a-z, A-Z), numbers (0-9), underscores (_), or hyphens (-). The
929
+ # maximum length is 100 characters.
930
+ # Corresponds to the JSON property `jobId`
878
931
  # @return [String]
879
- attr_accessor :main_jar_file_uri
932
+ attr_accessor :job_id
880
933
 
881
- # Optional. HCFS URIs of jar files to add to the CLASSPATHs of the Spark driver
882
- # and tasks.
883
- # Corresponds to the JSON property `jarFileUris`
884
- # @return [Array<String>]
885
- attr_accessor :jar_file_uris
934
+ # Required. The ID of the Google Cloud Platform project that the job belongs to.
935
+ # Corresponds to the JSON property `projectId`
936
+ # @return [String]
937
+ attr_accessor :project_id
886
938
 
887
- # The runtime logging config of the job.
888
- # Corresponds to the JSON property `loggingConfig`
889
- # @return [Google::Apis::DataprocV1::LoggingConfig]
890
- attr_accessor :logging_config
939
+ def initialize(**args)
940
+ update!(**args)
941
+ end
891
942
 
892
- # Optional. A mapping of property names to values, used to configure Spark.
893
- # Properties that conflict with values set by the Cloud Dataproc API may be
894
- # overwritten. Can include properties set in /etc/spark/conf/spark-defaults.conf
895
- # and classes in user code.
896
- # Corresponds to the JSON property `properties`
897
- # @return [Hash<String,String>]
898
- attr_accessor :properties
943
+ # Update properties of this object
944
+ def update!(**args)
945
+ @job_id = args[:job_id] if args.key?(:job_id)
946
+ @project_id = args[:project_id] if args.key?(:project_id)
947
+ end
948
+ end
899
949
 
900
- # Optional. The arguments to pass to the driver. Do not include arguments, such
901
- # as --conf, that can be set as job properties, since a collision may occur that
902
- # causes an incorrect job submission.
903
- # Corresponds to the JSON property `args`
904
- # @return [Array<String>]
905
- attr_accessor :args
950
+ # Job scheduling options.Beta Feature: These options are available for testing
951
+ # purposes only. They may be changed before final release.
952
+ class JobScheduling
953
+ include Google::Apis::Core::Hashable
906
954
 
907
- # Optional. HCFS URIs of files to be copied to the working directory of Spark
908
- # drivers and distributed tasks. Useful for naively parallel tasks.
909
- # Corresponds to the JSON property `fileUris`
910
- # @return [Array<String>]
911
- attr_accessor :file_uris
955
+ # Optional. Maximum number of times per hour a driver may be restarted as a
956
+ # result of driver terminating with non-zero code before job is reported failed.
957
+ # A job may be reported as thrashing if driver exits with non-zero code 4 times
958
+ # within 10 minute window.Maximum value is 10.
959
+ # Corresponds to the JSON property `maxFailuresPerHour`
960
+ # @return [Fixnum]
961
+ attr_accessor :max_failures_per_hour
912
962
 
913
963
  def initialize(**args)
914
964
  update!(**args)
@@ -916,14 +966,7 @@ module Google
916
966
 
917
967
  # Update properties of this object
918
968
  def update!(**args)
919
- @main_class = args[:main_class] if args.key?(:main_class)
920
- @archive_uris = args[:archive_uris] if args.key?(:archive_uris)
921
- @main_jar_file_uri = args[:main_jar_file_uri] if args.key?(:main_jar_file_uri)
922
- @jar_file_uris = args[:jar_file_uris] if args.key?(:jar_file_uris)
923
- @logging_config = args[:logging_config] if args.key?(:logging_config)
924
- @properties = args[:properties] if args.key?(:properties)
925
- @args = args[:args] if args.key?(:args)
926
- @file_uris = args[:file_uris] if args.key?(:file_uris)
969
+ @max_failures_per_hour = args[:max_failures_per_hour] if args.key?(:max_failures_per_hour)
927
970
  end
928
971
  end
929
972
 
@@ -942,17 +985,17 @@ module Google
942
985
  # @return [String]
943
986
  attr_accessor :state
944
987
 
988
+ # Output-only. The time when this state was entered.
989
+ # Corresponds to the JSON property `stateStartTime`
990
+ # @return [String]
991
+ attr_accessor :state_start_time
992
+
945
993
  # Output-only. Additional state information, which includes status reported by
946
994
  # the agent.
947
995
  # Corresponds to the JSON property `substate`
948
996
  # @return [String]
949
997
  attr_accessor :substate
950
998
 
951
- # Output-only. The time when this state was entered.
952
- # Corresponds to the JSON property `stateStartTime`
953
- # @return [String]
954
- attr_accessor :state_start_time
955
-
956
999
  def initialize(**args)
957
1000
  update!(**args)
958
1001
  end
@@ -961,25 +1004,26 @@ module Google
961
1004
  def update!(**args)
962
1005
  @details = args[:details] if args.key?(:details)
963
1006
  @state = args[:state] if args.key?(:state)
964
- @substate = args[:substate] if args.key?(:substate)
965
1007
  @state_start_time = args[:state_start_time] if args.key?(:state_start_time)
1008
+ @substate = args[:substate] if args.key?(:substate)
966
1009
  end
967
1010
  end
968
1011
 
969
- # Specifies the resources used to actively manage an instance group.
970
- class ManagedGroupConfig
1012
+ # The list of all clusters in a project.
1013
+ class ListClustersResponse
971
1014
  include Google::Apis::Core::Hashable
972
1015
 
973
- # Output-only. The name of the Instance Group Manager for this group.
974
- # Corresponds to the JSON property `instanceGroupManagerName`
975
- # @return [String]
976
- attr_accessor :instance_group_manager_name
1016
+ # Output-only. The clusters in the project.
1017
+ # Corresponds to the JSON property `clusters`
1018
+ # @return [Array<Google::Apis::DataprocV1::Cluster>]
1019
+ attr_accessor :clusters
977
1020
 
978
- # Output-only. The name of the Instance Template used for the Managed Instance
979
- # Group.
980
- # Corresponds to the JSON property `instanceTemplateName`
1021
+ # Output-only. This token is included in the response if there are more results
1022
+ # to fetch. To fetch additional results, provide this value as the page_token in
1023
+ # a subsequent ListClustersRequest.
1024
+ # Corresponds to the JSON property `nextPageToken`
981
1025
  # @return [String]
982
- attr_accessor :instance_template_name
1026
+ attr_accessor :next_page_token
983
1027
 
984
1028
  def initialize(**args)
985
1029
  update!(**args)
@@ -987,34 +1031,26 @@ module Google
987
1031
 
988
1032
  # Update properties of this object
989
1033
  def update!(**args)
990
- @instance_group_manager_name = args[:instance_group_manager_name] if args.key?(:instance_group_manager_name)
991
- @instance_template_name = args[:instance_template_name] if args.key?(:instance_template_name)
1034
+ @clusters = args[:clusters] if args.key?(:clusters)
1035
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
992
1036
  end
993
1037
  end
994
1038
 
995
- # The status of the operation.
996
- class ClusterOperationStatus
1039
+ # A list of jobs in a project.
1040
+ class ListJobsResponse
997
1041
  include Google::Apis::Core::Hashable
998
1042
 
999
- # Output-only.A message containing any operation metadata details.
1000
- # Corresponds to the JSON property `details`
1001
- # @return [String]
1002
- attr_accessor :details
1003
-
1004
- # Output-only. A message containing the operation state.
1005
- # Corresponds to the JSON property `state`
1006
- # @return [String]
1007
- attr_accessor :state
1008
-
1009
- # Output-only. A message containing the detailed operation state.
1010
- # Corresponds to the JSON property `innerState`
1011
- # @return [String]
1012
- attr_accessor :inner_state
1043
+ # Output-only. Jobs list.
1044
+ # Corresponds to the JSON property `jobs`
1045
+ # @return [Array<Google::Apis::DataprocV1::Job>]
1046
+ attr_accessor :jobs
1013
1047
 
1014
- # Output-only. The time this state was entered.
1015
- # Corresponds to the JSON property `stateStartTime`
1048
+ # Optional. This token is included in the response if there are more results to
1049
+ # fetch. To fetch additional results, provide this value as the page_token in a
1050
+ # subsequent <code>ListJobsRequest</code>.
1051
+ # Corresponds to the JSON property `nextPageToken`
1016
1052
  # @return [String]
1017
- attr_accessor :state_start_time
1053
+ attr_accessor :next_page_token
1018
1054
 
1019
1055
  def initialize(**args)
1020
1056
  update!(**args)
@@ -1022,73 +1058,24 @@ module Google
1022
1058
 
1023
1059
  # Update properties of this object
1024
1060
  def update!(**args)
1025
- @details = args[:details] if args.key?(:details)
1026
- @state = args[:state] if args.key?(:state)
1027
- @inner_state = args[:inner_state] if args.key?(:inner_state)
1028
- @state_start_time = args[:state_start_time] if args.key?(:state_start_time)
1061
+ @jobs = args[:jobs] if args.key?(:jobs)
1062
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1029
1063
  end
1030
1064
  end
1031
1065
 
1032
- # A Cloud Dataproc job for running Apache Hadoop MapReduce (https://hadoop.
1033
- # apache.org/docs/current/hadoop-mapreduce-client/hadoop-mapreduce-client-core/
1034
- # MapReduceTutorial.html) jobs on Apache Hadoop YARN (https://hadoop.apache.org/
1035
- # docs/r2.7.1/hadoop-yarn/hadoop-yarn-site/YARN.html).
1036
- class HadoopJob
1066
+ # The response message for Operations.ListOperations.
1067
+ class ListOperationsResponse
1037
1068
  include Google::Apis::Core::Hashable
1038
1069
 
1039
- # Optional. Jar file URIs to add to the CLASSPATHs of the Hadoop driver and
1040
- # tasks.
1041
- # Corresponds to the JSON property `jarFileUris`
1042
- # @return [Array<String>]
1043
- attr_accessor :jar_file_uris
1044
-
1045
- # The runtime logging config of the job.
1046
- # Corresponds to the JSON property `loggingConfig`
1047
- # @return [Google::Apis::DataprocV1::LoggingConfig]
1048
- attr_accessor :logging_config
1049
-
1050
- # Optional. A mapping of property names to values, used to configure Hadoop.
1051
- # Properties that conflict with values set by the Cloud Dataproc API may be
1052
- # overwritten. Can include properties set in /etc/hadoop/conf/*-site and classes
1053
- # in user code.
1054
- # Corresponds to the JSON property `properties`
1055
- # @return [Hash<String,String>]
1056
- attr_accessor :properties
1057
-
1058
- # Optional. The arguments to pass to the driver. Do not include arguments, such
1059
- # as -libjars or -Dfoo=bar, that can be set as job properties, since a collision
1060
- # may occur that causes an incorrect job submission.
1061
- # Corresponds to the JSON property `args`
1062
- # @return [Array<String>]
1063
- attr_accessor :args
1064
-
1065
- # Optional. HCFS (Hadoop Compatible Filesystem) URIs of files to be copied to
1066
- # the working directory of Hadoop drivers and distributed tasks. Useful for
1067
- # naively parallel tasks.
1068
- # Corresponds to the JSON property `fileUris`
1069
- # @return [Array<String>]
1070
- attr_accessor :file_uris
1071
-
1072
- # The name of the driver's main class. The jar file containing the class must be
1073
- # in the default CLASSPATH or specified in jar_file_uris.
1074
- # Corresponds to the JSON property `mainClass`
1070
+ # The standard List next-page token.
1071
+ # Corresponds to the JSON property `nextPageToken`
1075
1072
  # @return [String]
1076
- attr_accessor :main_class
1077
-
1078
- # Optional. HCFS URIs of archives to be extracted in the working directory of
1079
- # Hadoop drivers and tasks. Supported file types: .jar, .tar, .tar.gz, .tgz, or .
1080
- # zip.
1081
- # Corresponds to the JSON property `archiveUris`
1082
- # @return [Array<String>]
1083
- attr_accessor :archive_uris
1073
+ attr_accessor :next_page_token
1084
1074
 
1085
- # The HCFS URI of the jar file containing the main class. Examples: 'gs://foo-
1086
- # bucket/analytics-binaries/extract-useful-metrics-mr.jar' 'hdfs:/tmp/test-
1087
- # samples/custom-wordcount.jar' 'file:///home/usr/lib/hadoop-mapreduce/hadoop-
1088
- # mapreduce-examples.jar'
1089
- # Corresponds to the JSON property `mainJarFileUri`
1090
- # @return [String]
1091
- attr_accessor :main_jar_file_uri
1075
+ # A list of operations that matches the specified filter in the request.
1076
+ # Corresponds to the JSON property `operations`
1077
+ # @return [Array<Google::Apis::DataprocV1::Operation>]
1078
+ attr_accessor :operations
1092
1079
 
1093
1080
  def initialize(**args)
1094
1081
  update!(**args)
@@ -1096,37 +1083,21 @@ module Google
1096
1083
 
1097
1084
  # Update properties of this object
1098
1085
  def update!(**args)
1099
- @jar_file_uris = args[:jar_file_uris] if args.key?(:jar_file_uris)
1100
- @logging_config = args[:logging_config] if args.key?(:logging_config)
1101
- @properties = args[:properties] if args.key?(:properties)
1102
- @args = args[:args] if args.key?(:args)
1103
- @file_uris = args[:file_uris] if args.key?(:file_uris)
1104
- @main_class = args[:main_class] if args.key?(:main_class)
1105
- @archive_uris = args[:archive_uris] if args.key?(:archive_uris)
1106
- @main_jar_file_uri = args[:main_jar_file_uri] if args.key?(:main_jar_file_uri)
1086
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1087
+ @operations = args[:operations] if args.key?(:operations)
1107
1088
  end
1108
1089
  end
1109
1090
 
1110
- # A list of queries to run on a cluster.
1111
- class QueryList
1091
+ # The runtime logging config of the job.
1092
+ class LoggingConfig
1112
1093
  include Google::Apis::Core::Hashable
1113
1094
 
1114
- # Required. The queries to execute. You do not need to terminate a query with a
1115
- # semicolon. Multiple queries can be specified in one string by separating each
1116
- # with a semicolon. Here is an example of an Cloud Dataproc API snippet that
1117
- # uses a QueryList to specify a HiveJob:
1118
- # "hiveJob": `
1119
- # "queryList": `
1120
- # "queries": [
1121
- # "query1",
1122
- # "query2",
1123
- # "query3;query4",
1124
- # ]
1125
- # `
1126
- # `
1127
- # Corresponds to the JSON property `queries`
1128
- # @return [Array<String>]
1129
- attr_accessor :queries
1095
+ # The per-package log levels for the driver. This may include "root" package
1096
+ # name to configure rootLogger. Examples: 'com.google = FATAL', 'root = INFO', '
1097
+ # org.apache = DEBUG'
1098
+ # Corresponds to the JSON property `driverLogLevels`
1099
+ # @return [Hash<String,String>]
1100
+ attr_accessor :driver_log_levels
1130
1101
 
1131
1102
  def initialize(**args)
1132
1103
  update!(**args)
@@ -1134,39 +1105,24 @@ module Google
1134
1105
 
1135
1106
  # Update properties of this object
1136
1107
  def update!(**args)
1137
- @queries = args[:queries] if args.key?(:queries)
1108
+ @driver_log_levels = args[:driver_log_levels] if args.key?(:driver_log_levels)
1138
1109
  end
1139
1110
  end
1140
1111
 
1141
- # A YARN application created by a job. Application information is a subset of <
1142
- # code>org.apache.hadoop.yarn.proto.YarnProtos.ApplicationReportProto</code>.
1143
- # Beta Feature: This report is available for testing purposes only. It may be
1144
- # changed before final release.
1145
- class YarnApplication
1146
- include Google::Apis::Core::Hashable
1147
-
1148
- # Required. The application state.
1149
- # Corresponds to the JSON property `state`
1150
- # @return [String]
1151
- attr_accessor :state
1152
-
1153
- # Required. The application name.
1154
- # Corresponds to the JSON property `name`
1155
- # @return [String]
1156
- attr_accessor :name
1112
+ # Specifies the resources used to actively manage an instance group.
1113
+ class ManagedGroupConfig
1114
+ include Google::Apis::Core::Hashable
1157
1115
 
1158
- # Optional. The HTTP URL of the ApplicationMaster, HistoryServer, or
1159
- # TimelineServer that provides application-specific information. The URL uses
1160
- # the internal hostname, and requires a proxy server for resolution and,
1161
- # possibly, access.
1162
- # Corresponds to the JSON property `trackingUrl`
1116
+ # Output-only. The name of the Instance Group Manager for this group.
1117
+ # Corresponds to the JSON property `instanceGroupManagerName`
1163
1118
  # @return [String]
1164
- attr_accessor :tracking_url
1119
+ attr_accessor :instance_group_manager_name
1165
1120
 
1166
- # Required. The numerical progress of the application, from 1 to 100.
1167
- # Corresponds to the JSON property `progress`
1168
- # @return [Float]
1169
- attr_accessor :progress
1121
+ # Output-only. The name of the Instance Template used for the Managed Instance
1122
+ # Group.
1123
+ # Corresponds to the JSON property `instanceTemplateName`
1124
+ # @return [String]
1125
+ attr_accessor :instance_template_name
1170
1126
 
1171
1127
  def initialize(**args)
1172
1128
  update!(**args)
@@ -1174,43 +1130,115 @@ module Google
1174
1130
 
1175
1131
  # Update properties of this object
1176
1132
  def update!(**args)
1177
- @state = args[:state] if args.key?(:state)
1178
- @name = args[:name] if args.key?(:name)
1179
- @tracking_url = args[:tracking_url] if args.key?(:tracking_url)
1180
- @progress = args[:progress] if args.key?(:progress)
1133
+ @instance_group_manager_name = args[:instance_group_manager_name] if args.key?(:instance_group_manager_name)
1134
+ @instance_template_name = args[:instance_template_name] if args.key?(:instance_template_name)
1181
1135
  end
1182
1136
  end
1183
1137
 
1184
- # A request to collect cluster diagnostic information.
1185
- class DiagnoseClusterRequest
1138
+ # Specifies an executable to run on a fully configured node and a timeout period
1139
+ # for executable completion.
1140
+ class NodeInitializationAction
1186
1141
  include Google::Apis::Core::Hashable
1187
1142
 
1143
+ # Required. Google Cloud Storage URI of executable file.
1144
+ # Corresponds to the JSON property `executableFile`
1145
+ # @return [String]
1146
+ attr_accessor :executable_file
1147
+
1148
+ # Optional. Amount of time executable has to complete. Default is 10 minutes.
1149
+ # Cluster creation fails with an explanatory error message (the name of the
1150
+ # executable that caused the error and the exceeded timeout period) if the
1151
+ # executable is not completed at end of the timeout period.
1152
+ # Corresponds to the JSON property `executionTimeout`
1153
+ # @return [String]
1154
+ attr_accessor :execution_timeout
1155
+
1188
1156
  def initialize(**args)
1189
1157
  update!(**args)
1190
1158
  end
1191
1159
 
1192
1160
  # Update properties of this object
1193
1161
  def update!(**args)
1162
+ @executable_file = args[:executable_file] if args.key?(:executable_file)
1163
+ @execution_timeout = args[:execution_timeout] if args.key?(:execution_timeout)
1194
1164
  end
1195
1165
  end
1196
1166
 
1197
- # Specifies the config of disk options for a group of VM instances.
1198
- class DiskConfig
1167
+ # This resource represents a long-running operation that is the result of a
1168
+ # network API call.
1169
+ class Operation
1199
1170
  include Google::Apis::Core::Hashable
1200
1171
 
1201
- # Optional. Number of attached SSDs, from 0 to 4 (default is 0). If SSDs are not
1202
- # attached, the boot disk is used to store runtime logs and HDFS (https://hadoop.
1203
- # apache.org/docs/r1.2.1/hdfs_user_guide.html) data. If one or more SSDs are
1204
- # attached, this runtime bulk data is spread across them, and the boot disk
1205
- # contains only basic config and installed binaries.
1206
- # Corresponds to the JSON property `numLocalSsds`
1207
- # @return [Fixnum]
1208
- attr_accessor :num_local_ssds
1172
+ # If the value is false, it means the operation is still in progress. If true,
1173
+ # the operation is completed, and either error or response is available.
1174
+ # Corresponds to the JSON property `done`
1175
+ # @return [Boolean]
1176
+ attr_accessor :done
1177
+ alias_method :done?, :done
1209
1178
 
1210
- # Optional. Size in GB of the boot disk (default is 500GB).
1211
- # Corresponds to the JSON property `bootDiskSizeGb`
1212
- # @return [Fixnum]
1213
- attr_accessor :boot_disk_size_gb
1179
+ # The Status type defines a logical error model that is suitable for different
1180
+ # programming environments, including REST APIs and RPC APIs. It is used by gRPC
1181
+ # (https://github.com/grpc). The error model is designed to be:
1182
+ # Simple to use and understand for most users
1183
+ # Flexible enough to meet unexpected needsOverviewThe Status message contains
1184
+ # three pieces of data: error code, error message, and error details. The error
1185
+ # code should be an enum value of google.rpc.Code, but it may accept additional
1186
+ # error codes if needed. The error message should be a developer-facing English
1187
+ # message that helps developers understand and resolve the error. If a localized
1188
+ # user-facing error message is needed, put the localized message in the error
1189
+ # details or localize it in the client. The optional error details may contain
1190
+ # arbitrary information about the error. There is a predefined set of error
1191
+ # detail types in the package google.rpc that can be used for common error
1192
+ # conditions.Language mappingThe Status message is the logical representation of
1193
+ # the error model, but it is not necessarily the actual wire format. When the
1194
+ # Status message is exposed in different client libraries and different wire
1195
+ # protocols, it can be mapped differently. For example, it will likely be mapped
1196
+ # to some exceptions in Java, but more likely mapped to some error codes in C.
1197
+ # Other usesThe error model and the Status message can be used in a variety of
1198
+ # environments, either with or without APIs, to provide a consistent developer
1199
+ # experience across different environments.Example uses of this error model
1200
+ # include:
1201
+ # Partial errors. If a service needs to return partial errors to the client, it
1202
+ # may embed the Status in the normal response to indicate the partial errors.
1203
+ # Workflow errors. A typical workflow has multiple steps. Each step may have a
1204
+ # Status message for error reporting.
1205
+ # Batch operations. If a client uses batch request and batch response, the
1206
+ # Status message should be used directly inside batch response, one for each
1207
+ # error sub-response.
1208
+ # Asynchronous operations. If an API call embeds asynchronous operation results
1209
+ # in its response, the status of those operations should be represented directly
1210
+ # using the Status message.
1211
+ # Logging. If some API errors are stored in logs, the message Status could be
1212
+ # used directly after any stripping needed for security/privacy reasons.
1213
+ # Corresponds to the JSON property `error`
1214
+ # @return [Google::Apis::DataprocV1::Status]
1215
+ attr_accessor :error
1216
+
1217
+ # Service-specific metadata associated with the operation. It typically contains
1218
+ # progress information and common metadata such as create time. Some services
1219
+ # might not provide such metadata. Any method that returns a long-running
1220
+ # operation should document the metadata type, if any.
1221
+ # Corresponds to the JSON property `metadata`
1222
+ # @return [Hash<String,Object>]
1223
+ attr_accessor :metadata
1224
+
1225
+ # The server-assigned name, which is only unique within the same service that
1226
+ # originally returns it. If you use the default HTTP mapping, the name should
1227
+ # have the format of operations/some/unique/name.
1228
+ # Corresponds to the JSON property `name`
1229
+ # @return [String]
1230
+ attr_accessor :name
1231
+
1232
+ # The normal response of the operation in case of success. If the original
1233
+ # method returns no data on success, such as Delete, the response is google.
1234
+ # protobuf.Empty. If the original method is standard Get/Create/Update, the
1235
+ # response should be the resource. For other methods, the response should have
1236
+ # the type XxxResponse, where Xxx is the original method name. For example, if
1237
+ # the original method name is TakeSnapshot(), the inferred response type is
1238
+ # TakeSnapshotResponse.
1239
+ # Corresponds to the JSON property `response`
1240
+ # @return [Hash<String,Object>]
1241
+ attr_accessor :response
1214
1242
 
1215
1243
  def initialize(**args)
1216
1244
  update!(**args)
@@ -1218,54 +1246,61 @@ module Google
1218
1246
 
1219
1247
  # Update properties of this object
1220
1248
  def update!(**args)
1221
- @num_local_ssds = args[:num_local_ssds] if args.key?(:num_local_ssds)
1222
- @boot_disk_size_gb = args[:boot_disk_size_gb] if args.key?(:boot_disk_size_gb)
1249
+ @done = args[:done] if args.key?(:done)
1250
+ @error = args[:error] if args.key?(:error)
1251
+ @metadata = args[:metadata] if args.key?(:metadata)
1252
+ @name = args[:name] if args.key?(:name)
1253
+ @response = args[:response] if args.key?(:response)
1223
1254
  end
1224
1255
  end
1225
1256
 
1226
- # Metadata describing the operation.
1227
- class ClusterOperationMetadata
1257
+ # A Cloud Dataproc job for running Apache Pig (https://pig.apache.org/) queries
1258
+ # on YARN.
1259
+ class PigJob
1228
1260
  include Google::Apis::Core::Hashable
1229
1261
 
1230
- # The status of the operation.
1231
- # Corresponds to the JSON property `status`
1232
- # @return [Google::Apis::DataprocV1::ClusterOperationStatus]
1233
- attr_accessor :status
1234
-
1235
- # Output-only. The previous operation status.
1236
- # Corresponds to the JSON property `statusHistory`
1237
- # @return [Array<Google::Apis::DataprocV1::ClusterOperationStatus>]
1238
- attr_accessor :status_history
1262
+ # Optional. Whether to continue executing queries if a query fails. The default
1263
+ # value is false. Setting to true can be useful when executing independent
1264
+ # parallel queries.
1265
+ # Corresponds to the JSON property `continueOnFailure`
1266
+ # @return [Boolean]
1267
+ attr_accessor :continue_on_failure
1268
+ alias_method :continue_on_failure?, :continue_on_failure
1239
1269
 
1240
- # Output-only. Name of the cluster for the operation.
1241
- # Corresponds to the JSON property `clusterName`
1242
- # @return [String]
1243
- attr_accessor :cluster_name
1270
+ # Optional. HCFS URIs of jar files to add to the CLASSPATH of the Pig Client and
1271
+ # Hadoop MapReduce (MR) tasks. Can contain Pig UDFs.
1272
+ # Corresponds to the JSON property `jarFileUris`
1273
+ # @return [Array<String>]
1274
+ attr_accessor :jar_file_uris
1244
1275
 
1245
- # Output-only. Cluster UUID for the operation.
1246
- # Corresponds to the JSON property `clusterUuid`
1247
- # @return [String]
1248
- attr_accessor :cluster_uuid
1276
+ # The runtime logging config of the job.
1277
+ # Corresponds to the JSON property `loggingConfig`
1278
+ # @return [Google::Apis::DataprocV1::LoggingConfig]
1279
+ attr_accessor :logging_config
1249
1280
 
1250
- # Output-only. The operation type.
1251
- # Corresponds to the JSON property `operationType`
1252
- # @return [String]
1253
- attr_accessor :operation_type
1281
+ # Optional. A mapping of property names to values, used to configure Pig.
1282
+ # Properties that conflict with values set by the Cloud Dataproc API may be
1283
+ # overwritten. Can include properties set in /etc/hadoop/conf/*-site.xml, /etc/
1284
+ # pig/conf/pig.properties, and classes in user code.
1285
+ # Corresponds to the JSON property `properties`
1286
+ # @return [Hash<String,String>]
1287
+ attr_accessor :properties
1254
1288
 
1255
- # Output-only. Short description of operation.
1256
- # Corresponds to the JSON property `description`
1289
+ # The HCFS URI of the script that contains the Pig queries.
1290
+ # Corresponds to the JSON property `queryFileUri`
1257
1291
  # @return [String]
1258
- attr_accessor :description
1292
+ attr_accessor :query_file_uri
1259
1293
 
1260
- # Output-only. Errors encountered during operation execution.
1261
- # Corresponds to the JSON property `warnings`
1262
- # @return [Array<String>]
1263
- attr_accessor :warnings
1294
+ # A list of queries to run on a cluster.
1295
+ # Corresponds to the JSON property `queryList`
1296
+ # @return [Google::Apis::DataprocV1::QueryList]
1297
+ attr_accessor :query_list
1264
1298
 
1265
- # Output-only. Labels associated with the operation
1266
- # Corresponds to the JSON property `labels`
1299
+ # Optional. Mapping of query variable names to values (equivalent to the Pig
1300
+ # command: name=[value]).
1301
+ # Corresponds to the JSON property `scriptVariables`
1267
1302
  # @return [Hash<String,String>]
1268
- attr_accessor :labels
1303
+ attr_accessor :script_variables
1269
1304
 
1270
1305
  def initialize(**args)
1271
1306
  update!(**args)
@@ -1273,59 +1308,70 @@ module Google
1273
1308
 
1274
1309
  # Update properties of this object
1275
1310
  def update!(**args)
1276
- @status = args[:status] if args.key?(:status)
1277
- @status_history = args[:status_history] if args.key?(:status_history)
1278
- @cluster_name = args[:cluster_name] if args.key?(:cluster_name)
1279
- @cluster_uuid = args[:cluster_uuid] if args.key?(:cluster_uuid)
1280
- @operation_type = args[:operation_type] if args.key?(:operation_type)
1281
- @description = args[:description] if args.key?(:description)
1282
- @warnings = args[:warnings] if args.key?(:warnings)
1283
- @labels = args[:labels] if args.key?(:labels)
1311
+ @continue_on_failure = args[:continue_on_failure] if args.key?(:continue_on_failure)
1312
+ @jar_file_uris = args[:jar_file_uris] if args.key?(:jar_file_uris)
1313
+ @logging_config = args[:logging_config] if args.key?(:logging_config)
1314
+ @properties = args[:properties] if args.key?(:properties)
1315
+ @query_file_uri = args[:query_file_uri] if args.key?(:query_file_uri)
1316
+ @query_list = args[:query_list] if args.key?(:query_list)
1317
+ @script_variables = args[:script_variables] if args.key?(:script_variables)
1284
1318
  end
1285
1319
  end
1286
1320
 
1287
- # A Cloud Dataproc job for running Apache Hive (https://hive.apache.org/)
1288
- # queries on YARN.
1289
- class HiveJob
1321
+ # A Cloud Dataproc job for running Apache PySpark (https://spark.apache.org/docs/
1322
+ # 0.9.0/python-programming-guide.html) applications on YARN.
1323
+ class PySparkJob
1290
1324
  include Google::Apis::Core::Hashable
1291
1325
 
1292
- # Optional. HCFS URIs of jar files to add to the CLASSPATH of the Hive server
1293
- # and Hadoop MapReduce (MR) tasks. Can contain Hive SerDes and UDFs.
1326
+ # Optional. HCFS URIs of archives to be extracted in the working directory of .
1327
+ # jar, .tar, .tar.gz, .tgz, and .zip.
1328
+ # Corresponds to the JSON property `archiveUris`
1329
+ # @return [Array<String>]
1330
+ attr_accessor :archive_uris
1331
+
1332
+ # Optional. The arguments to pass to the driver. Do not include arguments, such
1333
+ # as --conf, that can be set as job properties, since a collision may occur that
1334
+ # causes an incorrect job submission.
1335
+ # Corresponds to the JSON property `args`
1336
+ # @return [Array<String>]
1337
+ attr_accessor :args
1338
+
1339
+ # Optional. HCFS URIs of files to be copied to the working directory of Python
1340
+ # drivers and distributed tasks. Useful for naively parallel tasks.
1341
+ # Corresponds to the JSON property `fileUris`
1342
+ # @return [Array<String>]
1343
+ attr_accessor :file_uris
1344
+
1345
+ # Optional. HCFS URIs of jar files to add to the CLASSPATHs of the Python driver
1346
+ # and tasks.
1294
1347
  # Corresponds to the JSON property `jarFileUris`
1295
1348
  # @return [Array<String>]
1296
1349
  attr_accessor :jar_file_uris
1297
1350
 
1298
- # Optional. Mapping of query variable names to values (equivalent to the Hive
1299
- # command: SET name="value";).
1300
- # Corresponds to the JSON property `scriptVariables`
1301
- # @return [Hash<String,String>]
1302
- attr_accessor :script_variables
1351
+ # The runtime logging config of the job.
1352
+ # Corresponds to the JSON property `loggingConfig`
1353
+ # @return [Google::Apis::DataprocV1::LoggingConfig]
1354
+ attr_accessor :logging_config
1355
+
1356
+ # Required. The HCFS URI of the main Python file to use as the driver. Must be a
1357
+ # .py file.
1358
+ # Corresponds to the JSON property `mainPythonFileUri`
1359
+ # @return [String]
1360
+ attr_accessor :main_python_file_uri
1303
1361
 
1304
- # Optional. A mapping of property names and values, used to configure Hive.
1362
+ # Optional. A mapping of property names to values, used to configure PySpark.
1305
1363
  # Properties that conflict with values set by the Cloud Dataproc API may be
1306
- # overwritten. Can include properties set in /etc/hadoop/conf/*-site.xml, /etc/
1307
- # hive/conf/hive-site.xml, and classes in user code.
1364
+ # overwritten. Can include properties set in /etc/spark/conf/spark-defaults.conf
1365
+ # and classes in user code.
1308
1366
  # Corresponds to the JSON property `properties`
1309
1367
  # @return [Hash<String,String>]
1310
1368
  attr_accessor :properties
1311
1369
 
1312
- # Optional. Whether to continue executing queries if a query fails. The default
1313
- # value is false. Setting to true can be useful when executing independent
1314
- # parallel queries.
1315
- # Corresponds to the JSON property `continueOnFailure`
1316
- # @return [Boolean]
1317
- attr_accessor :continue_on_failure
1318
- alias_method :continue_on_failure?, :continue_on_failure
1319
-
1320
- # A list of queries to run on a cluster.
1321
- # Corresponds to the JSON property `queryList`
1322
- # @return [Google::Apis::DataprocV1::QueryList]
1323
- attr_accessor :query_list
1324
-
1325
- # The HCFS URI of the script that contains Hive queries.
1326
- # Corresponds to the JSON property `queryFileUri`
1327
- # @return [String]
1328
- attr_accessor :query_file_uri
1370
+ # Optional. HCFS file URIs of Python files to pass to the PySpark framework.
1371
+ # Supported file types: .py, .egg, and .zip.
1372
+ # Corresponds to the JSON property `pythonFileUris`
1373
+ # @return [Array<String>]
1374
+ attr_accessor :python_file_uris
1329
1375
 
1330
1376
  def initialize(**args)
1331
1377
  update!(**args)
@@ -1333,43 +1379,37 @@ module Google
1333
1379
 
1334
1380
  # Update properties of this object
1335
1381
  def update!(**args)
1382
+ @archive_uris = args[:archive_uris] if args.key?(:archive_uris)
1383
+ @args = args[:args] if args.key?(:args)
1384
+ @file_uris = args[:file_uris] if args.key?(:file_uris)
1336
1385
  @jar_file_uris = args[:jar_file_uris] if args.key?(:jar_file_uris)
1337
- @script_variables = args[:script_variables] if args.key?(:script_variables)
1386
+ @logging_config = args[:logging_config] if args.key?(:logging_config)
1387
+ @main_python_file_uri = args[:main_python_file_uri] if args.key?(:main_python_file_uri)
1338
1388
  @properties = args[:properties] if args.key?(:properties)
1339
- @continue_on_failure = args[:continue_on_failure] if args.key?(:continue_on_failure)
1340
- @query_list = args[:query_list] if args.key?(:query_list)
1341
- @query_file_uri = args[:query_file_uri] if args.key?(:query_file_uri)
1342
- end
1343
- end
1344
-
1345
- # A generic empty message that you can re-use to avoid defining duplicated empty
1346
- # messages in your APIs. A typical example is to use it as the request or the
1347
- # response type of an API method. For instance:
1348
- # service Foo `
1349
- # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
1350
- # `
1351
- # The JSON representation for Empty is empty JSON object ``.
1352
- class Empty
1353
- include Google::Apis::Core::Hashable
1354
-
1355
- def initialize(**args)
1356
- update!(**args)
1357
- end
1358
-
1359
- # Update properties of this object
1360
- def update!(**args)
1389
+ @python_file_uris = args[:python_file_uris] if args.key?(:python_file_uris)
1361
1390
  end
1362
1391
  end
1363
1392
 
1364
- # The location of diagnostic output.
1365
- class DiagnoseClusterResults
1393
+ # A list of queries to run on a cluster.
1394
+ class QueryList
1366
1395
  include Google::Apis::Core::Hashable
1367
1396
 
1368
- # Output-only. The Google Cloud Storage URI of the diagnostic output. The output
1369
- # report is a plain text file with a summary of collected diagnostics.
1370
- # Corresponds to the JSON property `outputUri`
1371
- # @return [String]
1372
- attr_accessor :output_uri
1397
+ # Required. The queries to execute. You do not need to terminate a query with a
1398
+ # semicolon. Multiple queries can be specified in one string by separating each
1399
+ # with a semicolon. Here is an example of an Cloud Dataproc API snippet that
1400
+ # uses a QueryList to specify a HiveJob:
1401
+ # "hiveJob": `
1402
+ # "queryList": `
1403
+ # "queries": [
1404
+ # "query1",
1405
+ # "query2",
1406
+ # "query3;query4",
1407
+ # ]
1408
+ # `
1409
+ # `
1410
+ # Corresponds to the JSON property `queries`
1411
+ # @return [Array<String>]
1412
+ attr_accessor :queries
1373
1413
 
1374
1414
  def initialize(**args)
1375
1415
  update!(**args)
@@ -1377,67 +1417,36 @@ module Google
1377
1417
 
1378
1418
  # Update properties of this object
1379
1419
  def update!(**args)
1380
- @output_uri = args[:output_uri] if args.key?(:output_uri)
1420
+ @queries = args[:queries] if args.key?(:queries)
1381
1421
  end
1382
1422
  end
1383
1423
 
1384
- # The cluster config.
1385
- class ClusterConfig
1424
+ # Specifies the selection and config of software inside the cluster.
1425
+ class SoftwareConfig
1386
1426
  include Google::Apis::Core::Hashable
1387
1427
 
1388
- # Optional. The config settings for Google Compute Engine resources in an
1389
- # instance group, such as a master or worker group.
1390
- # Corresponds to the JSON property `masterConfig`
1391
- # @return [Google::Apis::DataprocV1::InstanceGroupConfig]
1392
- attr_accessor :master_config
1393
-
1394
- # Optional. The config settings for Google Compute Engine resources in an
1395
- # instance group, such as a master or worker group.
1396
- # Corresponds to the JSON property `secondaryWorkerConfig`
1397
- # @return [Google::Apis::DataprocV1::InstanceGroupConfig]
1398
- attr_accessor :secondary_worker_config
1399
-
1400
- # Optional. Commands to execute on each node after config is completed. By
1401
- # default, executables are run on master and all worker nodes. You can test a
1402
- # node's role metadata to run an executable on a master or worker node, as shown
1403
- # below using curl (you can also use wget):
1404
- # ROLE=$(curl -H Metadata-Flavor:Google http://metadata/computeMetadata/v1/
1405
- # instance/attributes/dataproc-role)
1406
- # if [[ "$`ROLE`" == 'Master' ]]; then
1407
- # ... master specific actions ...
1408
- # else
1409
- # ... worker specific actions ...
1410
- # fi
1411
- # Corresponds to the JSON property `initializationActions`
1412
- # @return [Array<Google::Apis::DataprocV1::NodeInitializationAction>]
1413
- attr_accessor :initialization_actions
1414
-
1415
- # Optional. A Google Cloud Storage staging bucket used for sharing generated SSH
1416
- # keys and config. If you do not specify a staging bucket, Cloud Dataproc will
1417
- # determine an appropriate Cloud Storage location (US, ASIA, or EU) for your
1418
- # cluster's staging bucket according to the Google Compute Engine zone where
1419
- # your cluster is deployed, and then it will create and manage this project-
1420
- # level, per-location bucket for you.
1421
- # Corresponds to the JSON property `configBucket`
1428
+ # Optional. The version of software inside the cluster. It must match the
1429
+ # regular expression [0-9]+\.[0-9]+. If unspecified, it defaults to the latest
1430
+ # version (see Cloud Dataproc Versioning).
1431
+ # Corresponds to the JSON property `imageVersion`
1422
1432
  # @return [String]
1423
- attr_accessor :config_bucket
1424
-
1425
- # Optional. The config settings for Google Compute Engine resources in an
1426
- # instance group, such as a master or worker group.
1427
- # Corresponds to the JSON property `workerConfig`
1428
- # @return [Google::Apis::DataprocV1::InstanceGroupConfig]
1429
- attr_accessor :worker_config
1430
-
1431
- # Common config settings for resources of Google Compute Engine cluster
1432
- # instances, applicable to all instances in the cluster.
1433
- # Corresponds to the JSON property `gceClusterConfig`
1434
- # @return [Google::Apis::DataprocV1::GceClusterConfig]
1435
- attr_accessor :gce_cluster_config
1433
+ attr_accessor :image_version
1436
1434
 
1437
- # Specifies the selection and config of software inside the cluster.
1438
- # Corresponds to the JSON property `softwareConfig`
1439
- # @return [Google::Apis::DataprocV1::SoftwareConfig]
1440
- attr_accessor :software_config
1435
+ # Optional. The properties to set on daemon config files.Property keys are
1436
+ # specified in prefix:property format, such as core:fs.defaultFS. The following
1437
+ # are supported prefixes and their mappings:
1438
+ # capacity-scheduler: capacity-scheduler.xml
1439
+ # core: core-site.xml
1440
+ # distcp: distcp-default.xml
1441
+ # hdfs: hdfs-site.xml
1442
+ # hive: hive-site.xml
1443
+ # mapred: mapred-site.xml
1444
+ # pig: pig.properties
1445
+ # spark: spark-defaults.conf
1446
+ # yarn: yarn-site.xmlFor more information, see Cluster properties.
1447
+ # Corresponds to the JSON property `properties`
1448
+ # @return [Hash<String,String>]
1449
+ attr_accessor :properties
1441
1450
 
1442
1451
  def initialize(**args)
1443
1452
  update!(**args)
@@ -1445,39 +1454,22 @@ module Google
1445
1454
 
1446
1455
  # Update properties of this object
1447
1456
  def update!(**args)
1448
- @master_config = args[:master_config] if args.key?(:master_config)
1449
- @secondary_worker_config = args[:secondary_worker_config] if args.key?(:secondary_worker_config)
1450
- @initialization_actions = args[:initialization_actions] if args.key?(:initialization_actions)
1451
- @config_bucket = args[:config_bucket] if args.key?(:config_bucket)
1452
- @worker_config = args[:worker_config] if args.key?(:worker_config)
1453
- @gce_cluster_config = args[:gce_cluster_config] if args.key?(:gce_cluster_config)
1454
- @software_config = args[:software_config] if args.key?(:software_config)
1457
+ @image_version = args[:image_version] if args.key?(:image_version)
1458
+ @properties = args[:properties] if args.key?(:properties)
1455
1459
  end
1456
1460
  end
1457
1461
 
1458
- # A Cloud Dataproc job for running Apache PySpark (https://spark.apache.org/docs/
1459
- # 0.9.0/python-programming-guide.html) applications on YARN.
1460
- class PySparkJob
1462
+ # A Cloud Dataproc job for running Apache Spark (http://spark.apache.org/)
1463
+ # applications on YARN.
1464
+ class SparkJob
1461
1465
  include Google::Apis::Core::Hashable
1462
1466
 
1463
- # Optional. HCFS URIs of jar files to add to the CLASSPATHs of the Python driver
1464
- # and tasks.
1465
- # Corresponds to the JSON property `jarFileUris`
1467
+ # Optional. HCFS URIs of archives to be extracted in the working directory of
1468
+ # Spark drivers and tasks. Supported file types: .jar, .tar, .tar.gz, .tgz, and .
1469
+ # zip.
1470
+ # Corresponds to the JSON property `archiveUris`
1466
1471
  # @return [Array<String>]
1467
- attr_accessor :jar_file_uris
1468
-
1469
- # The runtime logging config of the job.
1470
- # Corresponds to the JSON property `loggingConfig`
1471
- # @return [Google::Apis::DataprocV1::LoggingConfig]
1472
- attr_accessor :logging_config
1473
-
1474
- # Optional. A mapping of property names to values, used to configure PySpark.
1475
- # Properties that conflict with values set by the Cloud Dataproc API may be
1476
- # overwritten. Can include properties set in /etc/spark/conf/spark-defaults.conf
1477
- # and classes in user code.
1478
- # Corresponds to the JSON property `properties`
1479
- # @return [Hash<String,String>]
1480
- attr_accessor :properties
1472
+ attr_accessor :archive_uris
1481
1473
 
1482
1474
  # Optional. The arguments to pass to the driver. Do not include arguments, such
1483
1475
  # as --conf, that can be set as job properties, since a collision may occur that
@@ -1486,29 +1478,41 @@ module Google
1486
1478
  # @return [Array<String>]
1487
1479
  attr_accessor :args
1488
1480
 
1489
- # Optional. HCFS URIs of files to be copied to the working directory of Python
1481
+ # Optional. HCFS URIs of files to be copied to the working directory of Spark
1490
1482
  # drivers and distributed tasks. Useful for naively parallel tasks.
1491
1483
  # Corresponds to the JSON property `fileUris`
1492
1484
  # @return [Array<String>]
1493
1485
  attr_accessor :file_uris
1494
1486
 
1495
- # Optional. HCFS file URIs of Python files to pass to the PySpark framework.
1496
- # Supported file types: .py, .egg, and .zip.
1497
- # Corresponds to the JSON property `pythonFileUris`
1487
+ # Optional. HCFS URIs of jar files to add to the CLASSPATHs of the Spark driver
1488
+ # and tasks.
1489
+ # Corresponds to the JSON property `jarFileUris`
1498
1490
  # @return [Array<String>]
1499
- attr_accessor :python_file_uris
1491
+ attr_accessor :jar_file_uris
1500
1492
 
1501
- # Required. The HCFS URI of the main Python file to use as the driver. Must be a
1502
- # .py file.
1503
- # Corresponds to the JSON property `mainPythonFileUri`
1493
+ # The runtime logging config of the job.
1494
+ # Corresponds to the JSON property `loggingConfig`
1495
+ # @return [Google::Apis::DataprocV1::LoggingConfig]
1496
+ attr_accessor :logging_config
1497
+
1498
+ # The name of the driver's main class. The jar file that contains the class must
1499
+ # be in the default CLASSPATH or specified in jar_file_uris.
1500
+ # Corresponds to the JSON property `mainClass`
1504
1501
  # @return [String]
1505
- attr_accessor :main_python_file_uri
1502
+ attr_accessor :main_class
1506
1503
 
1507
- # Optional. HCFS URIs of archives to be extracted in the working directory of .
1508
- # jar, .tar, .tar.gz, .tgz, and .zip.
1509
- # Corresponds to the JSON property `archiveUris`
1510
- # @return [Array<String>]
1511
- attr_accessor :archive_uris
1504
+ # The HCFS URI of the jar file that contains the main class.
1505
+ # Corresponds to the JSON property `mainJarFileUri`
1506
+ # @return [String]
1507
+ attr_accessor :main_jar_file_uri
1508
+
1509
+ # Optional. A mapping of property names to values, used to configure Spark.
1510
+ # Properties that conflict with values set by the Cloud Dataproc API may be
1511
+ # overwritten. Can include properties set in /etc/spark/conf/spark-defaults.conf
1512
+ # and classes in user code.
1513
+ # Corresponds to the JSON property `properties`
1514
+ # @return [Hash<String,String>]
1515
+ attr_accessor :properties
1512
1516
 
1513
1517
  def initialize(**args)
1514
1518
  update!(**args)
@@ -1516,106 +1520,54 @@ module Google
1516
1520
 
1517
1521
  # Update properties of this object
1518
1522
  def update!(**args)
1519
- @jar_file_uris = args[:jar_file_uris] if args.key?(:jar_file_uris)
1520
- @logging_config = args[:logging_config] if args.key?(:logging_config)
1521
- @properties = args[:properties] if args.key?(:properties)
1523
+ @archive_uris = args[:archive_uris] if args.key?(:archive_uris)
1522
1524
  @args = args[:args] if args.key?(:args)
1523
1525
  @file_uris = args[:file_uris] if args.key?(:file_uris)
1524
- @python_file_uris = args[:python_file_uris] if args.key?(:python_file_uris)
1525
- @main_python_file_uri = args[:main_python_file_uri] if args.key?(:main_python_file_uri)
1526
- @archive_uris = args[:archive_uris] if args.key?(:archive_uris)
1526
+ @jar_file_uris = args[:jar_file_uris] if args.key?(:jar_file_uris)
1527
+ @logging_config = args[:logging_config] if args.key?(:logging_config)
1528
+ @main_class = args[:main_class] if args.key?(:main_class)
1529
+ @main_jar_file_uri = args[:main_jar_file_uri] if args.key?(:main_jar_file_uri)
1530
+ @properties = args[:properties] if args.key?(:properties)
1527
1531
  end
1528
1532
  end
1529
1533
 
1530
- # Common config settings for resources of Google Compute Engine cluster
1531
- # instances, applicable to all instances in the cluster.
1532
- class GceClusterConfig
1534
+ # A Cloud Dataproc job for running Apache Spark SQL (http://spark.apache.org/sql/
1535
+ # ) queries.
1536
+ class SparkSqlJob
1533
1537
  include Google::Apis::Core::Hashable
1534
1538
 
1535
- # The Google Compute Engine metadata entries to add to all instances (see
1536
- # Project and instance metadata (https://cloud.google.com/compute/docs/storing-
1537
- # retrieving-metadata#project_and_instance_metadata)).
1538
- # Corresponds to the JSON property `metadata`
1539
- # @return [Hash<String,String>]
1540
- attr_accessor :metadata
1541
-
1542
- # Optional. If true, all instances in the cluster will only have internal IP
1543
- # addresses. By default, clusters are not restricted to internal IP addresses,
1544
- # and will have ephemeral external IP addresses assigned to each instance. This
1545
- # internal_ip_only restriction can only be enabled for subnetwork enabled
1546
- # networks, and all off-cluster dependencies must be configured to be accessible
1547
- # without external IP addresses.
1548
- # Corresponds to the JSON property `internalIpOnly`
1549
- # @return [Boolean]
1550
- attr_accessor :internal_ip_only
1551
- alias_method :internal_ip_only?, :internal_ip_only
1552
-
1553
- # Optional. The URIs of service account scopes to be included in Google Compute
1554
- # Engine instances. The following base set of scopes is always included:
1555
- # https://www.googleapis.com/auth/cloud.useraccounts.readonly
1556
- # https://www.googleapis.com/auth/devstorage.read_write
1557
- # https://www.googleapis.com/auth/logging.writeIf no scopes are specified, the
1558
- # following defaults are also provided:
1559
- # https://www.googleapis.com/auth/bigquery
1560
- # https://www.googleapis.com/auth/bigtable.admin.table
1561
- # https://www.googleapis.com/auth/bigtable.data
1562
- # https://www.googleapis.com/auth/devstorage.full_control
1563
- # Corresponds to the JSON property `serviceAccountScopes`
1539
+ # Optional. HCFS URIs of jar files to be added to the Spark CLASSPATH.
1540
+ # Corresponds to the JSON property `jarFileUris`
1564
1541
  # @return [Array<String>]
1565
- attr_accessor :service_account_scopes
1542
+ attr_accessor :jar_file_uris
1566
1543
 
1567
- # The Google Compute Engine tags to add to all instances (see Tagging instances).
1568
- # Corresponds to the JSON property `tags`
1569
- # @return [Array<String>]
1570
- attr_accessor :tags
1544
+ # The runtime logging config of the job.
1545
+ # Corresponds to the JSON property `loggingConfig`
1546
+ # @return [Google::Apis::DataprocV1::LoggingConfig]
1547
+ attr_accessor :logging_config
1571
1548
 
1572
- # Optional. The service account of the instances. Defaults to the default Google
1573
- # Compute Engine service account. Custom service accounts need permissions
1574
- # equivalent to the folloing IAM roles:
1575
- # roles/logging.logWriter
1576
- # roles/storage.objectAdmin(see https://cloud.google.com/compute/docs/access/
1577
- # service-accounts#custom_service_accounts for more information). Example: [
1578
- # account_id]@[project_id].iam.gserviceaccount.com
1579
- # Corresponds to the JSON property `serviceAccount`
1580
- # @return [String]
1581
- attr_accessor :service_account
1549
+ # Optional. A mapping of property names to values, used to configure Spark SQL's
1550
+ # SparkConf. Properties that conflict with values set by the Cloud Dataproc API
1551
+ # may be overwritten.
1552
+ # Corresponds to the JSON property `properties`
1553
+ # @return [Hash<String,String>]
1554
+ attr_accessor :properties
1582
1555
 
1583
- # Optional. The Google Compute Engine subnetwork to be used for machine
1584
- # communications. Cannot be specified with network_uri.A full URL, partial URI,
1585
- # or short name are valid. Examples:
1586
- # https://www.googleapis.com/compute/v1/projects/[project_id]/regions/us-east1/
1587
- # sub0
1588
- # projects/[project_id]/regions/us-east1/sub0
1589
- # sub0
1590
- # Corresponds to the JSON property `subnetworkUri`
1556
+ # The HCFS URI of the script that contains SQL queries.
1557
+ # Corresponds to the JSON property `queryFileUri`
1591
1558
  # @return [String]
1592
- attr_accessor :subnetwork_uri
1559
+ attr_accessor :query_file_uri
1593
1560
 
1594
- # Optional. The Google Compute Engine network to be used for machine
1595
- # communications. Cannot be specified with subnetwork_uri. If neither
1596
- # network_uri nor subnetwork_uri is specified, the "default" network of the
1597
- # project is used, if it exists. Cannot be a "Custom Subnet Network" (see Using
1598
- # Subnetworks for more information).A full URL, partial URI, or short name are
1599
- # valid. Examples:
1600
- # https://www.googleapis.com/compute/v1/projects/[project_id]/regions/global/
1601
- # default
1602
- # projects/[project_id]/regions/global/default
1603
- # default
1604
- # Corresponds to the JSON property `networkUri`
1605
- # @return [String]
1606
- attr_accessor :network_uri
1561
+ # A list of queries to run on a cluster.
1562
+ # Corresponds to the JSON property `queryList`
1563
+ # @return [Google::Apis::DataprocV1::QueryList]
1564
+ attr_accessor :query_list
1607
1565
 
1608
- # Optional. The zone where the Google Compute Engine cluster will be located. On
1609
- # a create request, it is required in the "global" region. If omitted in a non-
1610
- # global Cloud Dataproc region, the service will pick a zone in the
1611
- # corresponding GCE region. On a get request, zone will always be present.A full
1612
- # URL, partial URI, or short name are valid. Examples:
1613
- # https://www.googleapis.com/compute/v1/projects/[project_id]/zones/[zone]
1614
- # projects/[project_id]/zones/[zone]
1615
- # us-central1-f
1616
- # Corresponds to the JSON property `zoneUri`
1617
- # @return [String]
1618
- attr_accessor :zone_uri
1566
+ # Optional. Mapping of query variable names to values (equivalent to the Spark
1567
+ # SQL command: SET name="value";).
1568
+ # Corresponds to the JSON property `scriptVariables`
1569
+ # @return [Hash<String,String>]
1570
+ attr_accessor :script_variables
1619
1571
 
1620
1572
  def initialize(**args)
1621
1573
  update!(**args)
@@ -1623,32 +1575,69 @@ module Google
1623
1575
 
1624
1576
  # Update properties of this object
1625
1577
  def update!(**args)
1626
- @metadata = args[:metadata] if args.key?(:metadata)
1627
- @internal_ip_only = args[:internal_ip_only] if args.key?(:internal_ip_only)
1628
- @service_account_scopes = args[:service_account_scopes] if args.key?(:service_account_scopes)
1629
- @tags = args[:tags] if args.key?(:tags)
1630
- @service_account = args[:service_account] if args.key?(:service_account)
1631
- @subnetwork_uri = args[:subnetwork_uri] if args.key?(:subnetwork_uri)
1632
- @network_uri = args[:network_uri] if args.key?(:network_uri)
1633
- @zone_uri = args[:zone_uri] if args.key?(:zone_uri)
1578
+ @jar_file_uris = args[:jar_file_uris] if args.key?(:jar_file_uris)
1579
+ @logging_config = args[:logging_config] if args.key?(:logging_config)
1580
+ @properties = args[:properties] if args.key?(:properties)
1581
+ @query_file_uri = args[:query_file_uri] if args.key?(:query_file_uri)
1582
+ @query_list = args[:query_list] if args.key?(:query_list)
1583
+ @script_variables = args[:script_variables] if args.key?(:script_variables)
1634
1584
  end
1635
1585
  end
1636
1586
 
1637
- # Contains cluster daemon metrics, such as HDFS and YARN stats.Beta Feature:
1638
- # This report is available for testing purposes only. It may be changed before
1639
- # final release.
1640
- class ClusterMetrics
1587
+ # The Status type defines a logical error model that is suitable for different
1588
+ # programming environments, including REST APIs and RPC APIs. It is used by gRPC
1589
+ # (https://github.com/grpc). The error model is designed to be:
1590
+ # Simple to use and understand for most users
1591
+ # Flexible enough to meet unexpected needsOverviewThe Status message contains
1592
+ # three pieces of data: error code, error message, and error details. The error
1593
+ # code should be an enum value of google.rpc.Code, but it may accept additional
1594
+ # error codes if needed. The error message should be a developer-facing English
1595
+ # message that helps developers understand and resolve the error. If a localized
1596
+ # user-facing error message is needed, put the localized message in the error
1597
+ # details or localize it in the client. The optional error details may contain
1598
+ # arbitrary information about the error. There is a predefined set of error
1599
+ # detail types in the package google.rpc that can be used for common error
1600
+ # conditions.Language mappingThe Status message is the logical representation of
1601
+ # the error model, but it is not necessarily the actual wire format. When the
1602
+ # Status message is exposed in different client libraries and different wire
1603
+ # protocols, it can be mapped differently. For example, it will likely be mapped
1604
+ # to some exceptions in Java, but more likely mapped to some error codes in C.
1605
+ # Other usesThe error model and the Status message can be used in a variety of
1606
+ # environments, either with or without APIs, to provide a consistent developer
1607
+ # experience across different environments.Example uses of this error model
1608
+ # include:
1609
+ # Partial errors. If a service needs to return partial errors to the client, it
1610
+ # may embed the Status in the normal response to indicate the partial errors.
1611
+ # Workflow errors. A typical workflow has multiple steps. Each step may have a
1612
+ # Status message for error reporting.
1613
+ # Batch operations. If a client uses batch request and batch response, the
1614
+ # Status message should be used directly inside batch response, one for each
1615
+ # error sub-response.
1616
+ # Asynchronous operations. If an API call embeds asynchronous operation results
1617
+ # in its response, the status of those operations should be represented directly
1618
+ # using the Status message.
1619
+ # Logging. If some API errors are stored in logs, the message Status could be
1620
+ # used directly after any stripping needed for security/privacy reasons.
1621
+ class Status
1641
1622
  include Google::Apis::Core::Hashable
1642
1623
 
1643
- # The HDFS metrics.
1644
- # Corresponds to the JSON property `hdfsMetrics`
1645
- # @return [Hash<String,Fixnum>]
1646
- attr_accessor :hdfs_metrics
1624
+ # The status code, which should be an enum value of google.rpc.Code.
1625
+ # Corresponds to the JSON property `code`
1626
+ # @return [Fixnum]
1627
+ attr_accessor :code
1647
1628
 
1648
- # The YARN metrics.
1649
- # Corresponds to the JSON property `yarnMetrics`
1650
- # @return [Hash<String,Fixnum>]
1651
- attr_accessor :yarn_metrics
1629
+ # A list of messages that carry the error details. There is a common set of
1630
+ # message types for APIs to use.
1631
+ # Corresponds to the JSON property `details`
1632
+ # @return [Array<Hash<String,Object>>]
1633
+ attr_accessor :details
1634
+
1635
+ # A developer-facing error message, which should be in English. Any user-facing
1636
+ # error message should be localized and sent in the google.rpc.Status.details
1637
+ # field, or localized by the client.
1638
+ # Corresponds to the JSON property `message`
1639
+ # @return [String]
1640
+ attr_accessor :message
1652
1641
 
1653
1642
  def initialize(**args)
1654
1643
  update!(**args)
@@ -1656,30 +1645,20 @@ module Google
1656
1645
 
1657
1646
  # Update properties of this object
1658
1647
  def update!(**args)
1659
- @hdfs_metrics = args[:hdfs_metrics] if args.key?(:hdfs_metrics)
1660
- @yarn_metrics = args[:yarn_metrics] if args.key?(:yarn_metrics)
1648
+ @code = args[:code] if args.key?(:code)
1649
+ @details = args[:details] if args.key?(:details)
1650
+ @message = args[:message] if args.key?(:message)
1661
1651
  end
1662
1652
  end
1663
1653
 
1664
- # Specifies the type and number of accelerator cards attached to the instances
1665
- # of an instance group (see GPUs on Compute Engine).
1666
- class AcceleratorConfig
1654
+ # A request to submit a job.
1655
+ class SubmitJobRequest
1667
1656
  include Google::Apis::Core::Hashable
1668
1657
 
1669
- # The number of the accelerator cards of this type exposed to this instance.
1670
- # Corresponds to the JSON property `acceleratorCount`
1671
- # @return [Fixnum]
1672
- attr_accessor :accelerator_count
1673
-
1674
- # Full URL, partial URI, or short name of the accelerator type resource to
1675
- # expose to this instance. See Google Compute Engine AcceleratorTypes( /compute/
1676
- # docs/reference/beta/acceleratorTypes)Examples * https://www.googleapis.com/
1677
- # compute/beta/projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia-
1678
- # tesla-k80 * projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia-
1679
- # tesla-k80 * nvidia-tesla-k80
1680
- # Corresponds to the JSON property `acceleratorTypeUri`
1681
- # @return [String]
1682
- attr_accessor :accelerator_type_uri
1658
+ # A Cloud Dataproc job resource.
1659
+ # Corresponds to the JSON property `job`
1660
+ # @return [Google::Apis::DataprocV1::Job]
1661
+ attr_accessor :job
1683
1662
 
1684
1663
  def initialize(**args)
1685
1664
  update!(**args)
@@ -1687,21 +1666,39 @@ module Google
1687
1666
 
1688
1667
  # Update properties of this object
1689
1668
  def update!(**args)
1690
- @accelerator_count = args[:accelerator_count] if args.key?(:accelerator_count)
1691
- @accelerator_type_uri = args[:accelerator_type_uri] if args.key?(:accelerator_type_uri)
1669
+ @job = args[:job] if args.key?(:job)
1692
1670
  end
1693
1671
  end
1694
1672
 
1695
- # The runtime logging config of the job.
1696
- class LoggingConfig
1673
+ # A YARN application created by a job. Application information is a subset of <
1674
+ # code>org.apache.hadoop.yarn.proto.YarnProtos.ApplicationReportProto</code>.
1675
+ # Beta Feature: This report is available for testing purposes only. It may be
1676
+ # changed before final release.
1677
+ class YarnApplication
1697
1678
  include Google::Apis::Core::Hashable
1698
1679
 
1699
- # The per-package log levels for the driver. This may include "root" package
1700
- # name to configure rootLogger. Examples: 'com.google = FATAL', 'root = INFO', '
1701
- # org.apache = DEBUG'
1702
- # Corresponds to the JSON property `driverLogLevels`
1703
- # @return [Hash<String,String>]
1704
- attr_accessor :driver_log_levels
1680
+ # Required. The application name.
1681
+ # Corresponds to the JSON property `name`
1682
+ # @return [String]
1683
+ attr_accessor :name
1684
+
1685
+ # Required. The numerical progress of the application, from 1 to 100.
1686
+ # Corresponds to the JSON property `progress`
1687
+ # @return [Float]
1688
+ attr_accessor :progress
1689
+
1690
+ # Required. The application state.
1691
+ # Corresponds to the JSON property `state`
1692
+ # @return [String]
1693
+ attr_accessor :state
1694
+
1695
+ # Optional. The HTTP URL of the ApplicationMaster, HistoryServer, or
1696
+ # TimelineServer that provides application-specific information. The URL uses
1697
+ # the internal hostname, and requires a proxy server for resolution and,
1698
+ # possibly, access.
1699
+ # Corresponds to the JSON property `trackingUrl`
1700
+ # @return [String]
1701
+ attr_accessor :tracking_url
1705
1702
 
1706
1703
  def initialize(**args)
1707
1704
  update!(**args)
@@ -1709,7 +1706,10 @@ module Google
1709
1706
 
1710
1707
  # Update properties of this object
1711
1708
  def update!(**args)
1712
- @driver_log_levels = args[:driver_log_levels] if args.key?(:driver_log_levels)
1709
+ @name = args[:name] if args.key?(:name)
1710
+ @progress = args[:progress] if args.key?(:progress)
1711
+ @state = args[:state] if args.key?(:state)
1712
+ @tracking_url = args[:tracking_url] if args.key?(:tracking_url)
1713
1713
  end
1714
1714
  end
1715
1715
  end