google-api-client 0.9.8 → 0.10.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (320) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +15 -8
  3. data/CHANGELOG.md +84 -0
  4. data/Gemfile +10 -2
  5. data/README.md +10 -2
  6. data/api_names.yaml +37172 -135
  7. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +35 -0
  8. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +1200 -0
  9. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +526 -0
  10. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +844 -0
  11. data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
  12. data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +310 -28
  13. data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +84 -0
  14. data/generated/google/apis/adexchangebuyer_v1_4/service.rb +60 -8
  15. data/generated/google/apis/adexchangeseller_v2_0.rb +2 -3
  16. data/generated/google/apis/adexchangeseller_v2_0/service.rb +1 -2
  17. data/generated/google/apis/admin_directory_v1.rb +1 -1
  18. data/generated/google/apis/admin_directory_v1/classes.rb +206 -0
  19. data/generated/google/apis/admin_directory_v1/representations.rb +63 -0
  20. data/generated/google/apis/admin_directory_v1/service.rb +41 -2
  21. data/generated/google/apis/admin_reports_v1.rb +5 -5
  22. data/generated/google/apis/admin_reports_v1/service.rb +6 -6
  23. data/generated/google/apis/adsense_v1_4.rb +1 -1
  24. data/generated/google/apis/adsense_v1_4/classes.rb +1 -1
  25. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  26. data/generated/google/apis/adsensehost_v4_1/classes.rb +1 -2
  27. data/generated/google/apis/analytics_v3.rb +1 -1
  28. data/generated/google/apis/analytics_v3/classes.rb +379 -3
  29. data/generated/google/apis/analytics_v3/representations.rb +136 -0
  30. data/generated/google/apis/analytics_v3/service.rb +256 -0
  31. data/generated/google/apis/analyticsreporting_v4.rb +1 -1
  32. data/generated/google/apis/analyticsreporting_v4/classes.rb +858 -823
  33. data/generated/google/apis/analyticsreporting_v4/representations.rb +194 -193
  34. data/generated/google/apis/analyticsreporting_v4/service.rb +4 -4
  35. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  36. data/generated/google/apis/androidenterprise_v1/classes.rb +913 -220
  37. data/generated/google/apis/androidenterprise_v1/representations.rb +337 -30
  38. data/generated/google/apis/androidenterprise_v1/service.rb +1163 -561
  39. data/generated/google/apis/androidpublisher_v2.rb +1 -1
  40. data/generated/google/apis/androidpublisher_v2/classes.rb +230 -8
  41. data/generated/google/apis/androidpublisher_v2/representations.rb +90 -0
  42. data/generated/google/apis/androidpublisher_v2/service.rb +116 -3
  43. data/generated/google/apis/appengine_v1beta5.rb +7 -1
  44. data/generated/google/apis/appengine_v1beta5/classes.rb +810 -395
  45. data/generated/google/apis/appengine_v1beta5/representations.rb +188 -22
  46. data/generated/google/apis/appengine_v1beta5/service.rb +343 -39
  47. data/generated/google/apis/appsactivity_v1.rb +3 -3
  48. data/generated/google/apis/appsactivity_v1/classes.rb +7 -0
  49. data/generated/google/apis/appsactivity_v1/representations.rb +1 -0
  50. data/generated/google/apis/appsactivity_v1/service.rb +1 -1
  51. data/generated/google/apis/appstate_v1.rb +1 -1
  52. data/generated/google/apis/bigquery_v2.rb +1 -1
  53. data/generated/google/apis/bigquery_v2/classes.rb +360 -38
  54. data/generated/google/apis/bigquery_v2/representations.rb +106 -0
  55. data/generated/google/apis/bigquery_v2/service.rb +18 -4
  56. data/generated/google/apis/books_v1.rb +2 -2
  57. data/generated/google/apis/books_v1/classes.rb +83 -0
  58. data/generated/google/apis/books_v1/representations.rb +35 -0
  59. data/generated/google/apis/books_v1/service.rb +7 -3
  60. data/generated/google/apis/calendar_v3.rb +1 -1
  61. data/generated/google/apis/calendar_v3/classes.rb +208 -5
  62. data/generated/google/apis/calendar_v3/representations.rb +97 -0
  63. data/generated/google/apis/civicinfo_v2.rb +3 -2
  64. data/generated/google/apis/civicinfo_v2/classes.rb +377 -5
  65. data/generated/google/apis/civicinfo_v2/representations.rb +149 -0
  66. data/generated/google/apis/civicinfo_v2/service.rb +27 -6
  67. data/generated/google/apis/classroom_v1.rb +22 -25
  68. data/generated/google/apis/classroom_v1/classes.rb +998 -761
  69. data/generated/google/apis/classroom_v1/representations.rb +263 -198
  70. data/generated/google/apis/classroom_v1/service.rb +1349 -672
  71. data/generated/google/apis/cloudbilling_v1.rb +3 -3
  72. data/generated/google/apis/cloudbilling_v1/classes.rb +76 -75
  73. data/generated/google/apis/cloudbilling_v1/representations.rb +17 -17
  74. data/generated/google/apis/cloudbilling_v1/service.rb +117 -110
  75. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  76. data/generated/google/apis/cloudbuild_v1/classes.rb +661 -264
  77. data/generated/google/apis/cloudbuild_v1/representations.rb +198 -48
  78. data/generated/google/apis/cloudbuild_v1/service.rb +259 -44
  79. data/generated/google/apis/clouddebugger_v2.rb +5 -8
  80. data/generated/google/apis/clouddebugger_v2/classes.rb +686 -616
  81. data/generated/google/apis/clouddebugger_v2/representations.rb +151 -151
  82. data/generated/google/apis/clouddebugger_v2/service.rb +165 -159
  83. data/generated/google/apis/cloudkms_v1.rb +35 -0
  84. data/generated/google/apis/cloudkms_v1/classes.rb +1022 -0
  85. data/generated/google/apis/cloudkms_v1/representations.rb +448 -0
  86. data/generated/google/apis/cloudkms_v1/service.rb +933 -0
  87. data/generated/google/apis/cloudkms_v1beta1.rb +35 -0
  88. data/generated/google/apis/cloudkms_v1beta1/classes.rb +1039 -0
  89. data/generated/google/apis/cloudkms_v1beta1/representations.rb +448 -0
  90. data/generated/google/apis/cloudkms_v1beta1/service.rb +933 -0
  91. data/generated/google/apis/cloudmonitoring_v2beta2.rb +1 -1
  92. data/generated/google/apis/cloudresourcemanager_v1.rb +4 -4
  93. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +1529 -167
  94. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +491 -26
  95. data/generated/google/apis/cloudresourcemanager_v1/service.rb +1593 -135
  96. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
  97. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +1155 -235
  98. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +344 -44
  99. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +702 -310
  100. data/generated/google/apis/cloudtrace_v1.rb +9 -9
  101. data/generated/google/apis/cloudtrace_v1/classes.rb +98 -92
  102. data/generated/google/apis/cloudtrace_v1/representations.rb +24 -24
  103. data/generated/google/apis/cloudtrace_v1/service.rb +42 -37
  104. data/generated/google/apis/compute_beta.rb +1 -1
  105. data/generated/google/apis/compute_beta/classes.rb +7007 -3648
  106. data/generated/google/apis/compute_beta/representations.rb +1459 -120
  107. data/generated/google/apis/compute_beta/service.rb +7943 -3726
  108. data/generated/google/apis/compute_v1.rb +1 -1
  109. data/generated/google/apis/compute_v1/classes.rb +2567 -370
  110. data/generated/google/apis/compute_v1/representations.rb +855 -0
  111. data/generated/google/apis/compute_v1/service.rb +6388 -2908
  112. data/generated/google/apis/container_v1.rb +1 -1
  113. data/generated/google/apis/container_v1/classes.rb +287 -16
  114. data/generated/google/apis/container_v1/representations.rb +113 -2
  115. data/generated/google/apis/container_v1/service.rb +130 -0
  116. data/generated/google/apis/content_v2.rb +1 -1
  117. data/generated/google/apis/content_v2/classes.rb +778 -10
  118. data/generated/google/apis/content_v2/representations.rb +339 -0
  119. data/generated/google/apis/content_v2/service.rb +364 -49
  120. data/generated/google/apis/dataflow_v1b3.rb +37 -0
  121. data/generated/google/apis/dataflow_v1b3/classes.rb +4941 -0
  122. data/generated/google/apis/dataflow_v1b3/representations.rb +2037 -0
  123. data/generated/google/apis/dataflow_v1b3/service.rb +957 -0
  124. data/generated/google/apis/dataproc_v1.rb +1 -1
  125. data/generated/google/apis/dataproc_v1/classes.rb +1235 -963
  126. data/generated/google/apis/dataproc_v1/representations.rb +299 -225
  127. data/generated/google/apis/dataproc_v1/service.rb +277 -192
  128. data/generated/google/apis/datastore_v1.rb +38 -0
  129. data/generated/google/apis/datastore_v1/classes.rb +1289 -0
  130. data/generated/google/apis/datastore_v1/representations.rb +572 -0
  131. data/generated/google/apis/datastore_v1/service.rb +259 -0
  132. data/generated/google/apis/datastore_v1beta3.rb +38 -0
  133. data/generated/google/apis/datastore_v1beta3/classes.rb +1284 -0
  134. data/generated/google/apis/datastore_v1beta3/representations.rb +572 -0
  135. data/generated/google/apis/datastore_v1beta3/service.rb +259 -0
  136. data/generated/google/apis/deploymentmanager_v2.rb +1 -1
  137. data/generated/google/apis/deploymentmanager_v2/classes.rb +436 -3
  138. data/generated/google/apis/deploymentmanager_v2/representations.rb +178 -0
  139. data/generated/google/apis/deploymentmanager_v2/service.rb +226 -61
  140. data/generated/google/apis/dfareporting_v2_5.rb +40 -0
  141. data/generated/google/apis/dfareporting_v2_5/classes.rb +11225 -0
  142. data/generated/google/apis/dfareporting_v2_5/representations.rb +3982 -0
  143. data/generated/google/apis/dfareporting_v2_5/service.rb +8755 -0
  144. data/generated/google/apis/dfareporting_v2_6.rb +40 -0
  145. data/generated/google/apis/dfareporting_v2_6/classes.rb +11586 -0
  146. data/generated/google/apis/dfareporting_v2_6/representations.rb +4119 -0
  147. data/generated/google/apis/dfareporting_v2_6/service.rb +9025 -0
  148. data/generated/google/apis/dfareporting_v2_7.rb +40 -0
  149. data/generated/google/apis/dfareporting_v2_7/classes.rb +11876 -0
  150. data/generated/google/apis/dfareporting_v2_7/representations.rb +4243 -0
  151. data/generated/google/apis/dfareporting_v2_7/service.rb +9095 -0
  152. data/generated/google/apis/dns_v1.rb +1 -1
  153. data/generated/google/apis/dns_v1/classes.rb +1 -1
  154. data/generated/google/apis/dns_v2beta1.rb +43 -0
  155. data/generated/google/apis/dns_v2beta1/classes.rb +915 -0
  156. data/generated/google/apis/dns_v2beta1/representations.rb +368 -0
  157. data/generated/google/apis/dns_v2beta1/service.rb +768 -0
  158. data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
  159. data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +79 -86
  160. data/generated/google/apis/doubleclickbidmanager_v1/representations.rb +25 -28
  161. data/generated/google/apis/doubleclickbidmanager_v1/service.rb +10 -8
  162. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  163. data/generated/google/apis/doubleclicksearch_v2/classes.rb +6 -4
  164. data/generated/google/apis/drive_v2.rb +1 -1
  165. data/generated/google/apis/drive_v2/classes.rb +595 -37
  166. data/generated/google/apis/drive_v2/representations.rb +140 -0
  167. data/generated/google/apis/drive_v2/service.rb +406 -40
  168. data/generated/google/apis/drive_v3.rb +1 -1
  169. data/generated/google/apis/drive_v3/classes.rb +507 -40
  170. data/generated/google/apis/drive_v3/representations.rb +105 -0
  171. data/generated/google/apis/drive_v3/service.rb +326 -29
  172. data/generated/google/apis/fitness_v1.rb +38 -2
  173. data/generated/google/apis/fitness_v1/classes.rb +65 -7
  174. data/generated/google/apis/fitness_v1/representations.rb +20 -0
  175. data/generated/google/apis/fitness_v1/service.rb +17 -18
  176. data/generated/google/apis/fusiontables_v2.rb +1 -1
  177. data/generated/google/apis/fusiontables_v2/classes.rb +4 -3
  178. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  179. data/generated/google/apis/games_management_v1management.rb +1 -1
  180. data/generated/google/apis/games_v1.rb +1 -1
  181. data/generated/google/apis/genomics_v1.rb +10 -12
  182. data/generated/google/apis/genomics_v1/classes.rb +2276 -2165
  183. data/generated/google/apis/genomics_v1/representations.rb +468 -496
  184. data/generated/google/apis/genomics_v1/service.rb +978 -882
  185. data/generated/google/apis/gmail_v1.rb +11 -2
  186. data/generated/google/apis/gmail_v1/classes.rb +655 -5
  187. data/generated/google/apis/gmail_v1/representations.rb +261 -0
  188. data/generated/google/apis/gmail_v1/service.rb +1211 -48
  189. data/generated/google/apis/groupssettings_v1.rb +2 -2
  190. data/generated/google/apis/groupssettings_v1/classes.rb +12 -0
  191. data/generated/google/apis/groupssettings_v1/representations.rb +2 -0
  192. data/generated/google/apis/iam_v1.rb +2 -2
  193. data/generated/google/apis/iam_v1/classes.rb +446 -368
  194. data/generated/google/apis/iam_v1/representations.rb +109 -91
  195. data/generated/google/apis/iam_v1/service.rb +249 -162
  196. data/generated/google/apis/identitytoolkit_v3.rb +7 -1
  197. data/generated/google/apis/identitytoolkit_v3/classes.rb +254 -2
  198. data/generated/google/apis/identitytoolkit_v3/representations.rb +38 -0
  199. data/generated/google/apis/kgsearch_v1.rb +2 -3
  200. data/generated/google/apis/kgsearch_v1/classes.rb +13 -13
  201. data/generated/google/apis/kgsearch_v1/representations.rb +2 -2
  202. data/generated/google/apis/kgsearch_v1/service.rb +26 -24
  203. data/generated/google/apis/language_v1beta1.rb +36 -0
  204. data/generated/google/apis/language_v1beta1/classes.rb +757 -0
  205. data/generated/google/apis/language_v1beta1/representations.rb +339 -0
  206. data/generated/google/apis/language_v1beta1/service.rb +185 -0
  207. data/generated/google/apis/licensing_v1.rb +3 -3
  208. data/generated/google/apis/licensing_v1/classes.rb +14 -2
  209. data/generated/google/apis/licensing_v1/representations.rb +2 -0
  210. data/generated/google/apis/licensing_v1/service.rb +1 -1
  211. data/generated/google/apis/logging_v2beta1.rb +6 -6
  212. data/generated/google/apis/logging_v2beta1/classes.rb +900 -775
  213. data/generated/google/apis/logging_v2beta1/representations.rb +163 -142
  214. data/generated/google/apis/logging_v2beta1/service.rb +427 -155
  215. data/generated/google/apis/manufacturers_v1.rb +34 -0
  216. data/generated/google/apis/manufacturers_v1/classes.rb +605 -0
  217. data/generated/google/apis/manufacturers_v1/representations.rb +223 -0
  218. data/generated/google/apis/manufacturers_v1/service.rb +138 -0
  219. data/generated/google/apis/mirror_v1.rb +2 -2
  220. data/generated/google/apis/mirror_v1/service.rb +1 -1
  221. data/generated/google/apis/monitoring_v3.rb +45 -0
  222. data/generated/google/apis/monitoring_v3/classes.rb +1333 -0
  223. data/generated/google/apis/monitoring_v3/representations.rb +516 -0
  224. data/generated/google/apis/monitoring_v3/service.rb +706 -0
  225. data/generated/google/apis/oauth2_v2.rb +1 -1
  226. data/generated/google/apis/pagespeedonline_v2.rb +1 -1
  227. data/generated/google/apis/partners_v2.rb +3 -3
  228. data/generated/google/apis/partners_v2/classes.rb +1831 -477
  229. data/generated/google/apis/partners_v2/representations.rb +571 -114
  230. data/generated/google/apis/partners_v2/service.rb +898 -167
  231. data/generated/google/apis/people_v1.rb +15 -16
  232. data/generated/google/apis/people_v1/classes.rb +1047 -859
  233. data/generated/google/apis/people_v1/representations.rb +252 -213
  234. data/generated/google/apis/people_v1/service.rb +75 -62
  235. data/generated/google/apis/plus_domains_v1.rb +1 -1
  236. data/generated/google/apis/plus_v1.rb +1 -1
  237. data/generated/google/apis/proximitybeacon_v1beta1.rb +1 -1
  238. data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +527 -456
  239. data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +101 -100
  240. data/generated/google/apis/proximitybeacon_v1beta1/service.rb +467 -343
  241. data/generated/google/apis/pubsub_v1.rb +1 -1
  242. data/generated/google/apis/pubsub_v1/classes.rb +363 -310
  243. data/generated/google/apis/pubsub_v1/representations.rb +76 -76
  244. data/generated/google/apis/pubsub_v1/service.rb +464 -335
  245. data/generated/google/apis/qpx_express_v1.rb +1 -1
  246. data/generated/google/apis/qpx_express_v1/classes.rb +6 -0
  247. data/generated/google/apis/qpx_express_v1/representations.rb +1 -0
  248. data/generated/google/apis/replicapool_v1beta2.rb +1 -1
  249. data/generated/google/apis/replicapoolupdater_v1beta1.rb +4 -2
  250. data/generated/google/apis/replicapoolupdater_v1beta1/service.rb +3 -1
  251. data/generated/google/apis/reseller_v1.rb +1 -1
  252. data/generated/google/apis/reseller_v1/classes.rb +222 -61
  253. data/generated/google/apis/reseller_v1/representations.rb +28 -0
  254. data/generated/google/apis/reseller_v1/service.rb +240 -47
  255. data/generated/google/apis/script_v1.rb +19 -19
  256. data/generated/google/apis/script_v1/classes.rb +151 -137
  257. data/generated/google/apis/script_v1/representations.rb +26 -26
  258. data/generated/google/apis/script_v1/service.rb +9 -8
  259. data/generated/google/apis/sheets_v4.rb +7 -7
  260. data/generated/google/apis/sheets_v4/classes.rb +4530 -3506
  261. data/generated/google/apis/sheets_v4/representations.rb +988 -737
  262. data/generated/google/apis/sheets_v4/service.rb +266 -99
  263. data/generated/google/apis/site_verification_v1.rb +1 -1
  264. data/generated/google/apis/slides_v1.rb +49 -0
  265. data/generated/google/apis/slides_v1/classes.rb +4480 -0
  266. data/generated/google/apis/slides_v1/representations.rb +1926 -0
  267. data/generated/google/apis/slides_v1/service.rb +245 -0
  268. data/generated/google/apis/speech_v1beta1.rb +34 -0
  269. data/generated/google/apis/speech_v1beta1/classes.rb +498 -0
  270. data/generated/google/apis/speech_v1beta1/representations.rb +206 -0
  271. data/generated/google/apis/speech_v1beta1/service.rb +270 -0
  272. data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
  273. data/generated/google/apis/sqladmin_v1beta4/classes.rb +131 -10
  274. data/generated/google/apis/sqladmin_v1beta4/representations.rb +50 -0
  275. data/generated/google/apis/sqladmin_v1beta4/service.rb +92 -2
  276. data/generated/google/apis/storage_v1.rb +1 -1
  277. data/generated/google/apis/storage_v1/classes.rb +205 -21
  278. data/generated/google/apis/storage_v1/representations.rb +51 -1
  279. data/generated/google/apis/storage_v1/service.rb +263 -9
  280. data/generated/google/apis/tagmanager_v1.rb +5 -5
  281. data/generated/google/apis/translate_v2.rb +2 -2
  282. data/generated/google/apis/translate_v2/service.rb +1 -1
  283. data/generated/google/apis/vision_v1.rb +1 -1
  284. data/generated/google/apis/vision_v1/classes.rb +1275 -731
  285. data/generated/google/apis/vision_v1/representations.rb +378 -111
  286. data/generated/google/apis/vision_v1/service.rb +4 -4
  287. data/generated/google/apis/webmasters_v3.rb +1 -1
  288. data/generated/google/apis/youtube_analytics_v1.rb +1 -1
  289. data/generated/google/apis/youtube_analytics_v1/classes.rb +0 -209
  290. data/generated/google/apis/youtube_analytics_v1/representations.rb +0 -99
  291. data/generated/google/apis/youtube_analytics_v1/service.rb +5 -77
  292. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  293. data/generated/google/apis/youtube_partner_v1/classes.rb +155 -0
  294. data/generated/google/apis/youtube_partner_v1/representations.rb +69 -0
  295. data/generated/google/apis/youtube_partner_v1/service.rb +107 -3
  296. data/generated/google/apis/youtube_v3.rb +1 -1
  297. data/generated/google/apis/youtube_v3/classes.rb +430 -22
  298. data/generated/google/apis/youtube_v3/representations.rb +171 -4
  299. data/generated/google/apis/youtube_v3/service.rb +100 -9
  300. data/generated/google/apis/youtubereporting_v1.rb +4 -4
  301. data/generated/google/apis/youtubereporting_v1/classes.rb +140 -131
  302. data/generated/google/apis/youtubereporting_v1/representations.rb +37 -37
  303. data/generated/google/apis/youtubereporting_v1/service.rb +139 -135
  304. data/google-api-client.gemspec +4 -3
  305. data/lib/google/apis/core/api_command.rb +16 -6
  306. data/lib/google/apis/core/base_service.rb +17 -9
  307. data/lib/google/apis/core/download.rb +7 -2
  308. data/lib/google/apis/core/http_command.rb +5 -1
  309. data/lib/google/apis/core/json_representation.rb +2 -2
  310. data/lib/google/apis/core/upload.rb +7 -1
  311. data/lib/google/apis/errors.rb +6 -2
  312. data/lib/google/apis/generator/annotator.rb +6 -0
  313. data/lib/google/apis/version.rb +1 -1
  314. data/samples/cli/lib/samples/bigquery.rb +101 -0
  315. data/samples/cli/lib/samples/calendar.rb +1 -1
  316. data/samples/cli/lib/samples/gmail.rb +74 -0
  317. data/samples/cli/lib/samples/sheets.rb +61 -0
  318. data/samples/cli/lib/samples/you_tube.rb +4 -1
  319. data/sync.rb +71 -0
  320. metadata +86 -18
@@ -46,13 +46,14 @@ module Google
46
46
  super('https://dataproc.googleapis.com/', '')
47
47
  end
48
48
 
49
- # Creates a cluster in a project.
49
+ # Gets the resource representation for a cluster in a project.
50
50
  # @param [String] project_id
51
- # [Required] The ID of the Google Cloud Platform project that the cluster
52
- # belongs to.
51
+ # Required The ID of the Google Cloud Platform project that the cluster belongs
52
+ # to.
53
53
  # @param [String] region
54
- # [Required] The Cloud Dataproc region in which to handle the request.
55
- # @param [Google::Apis::DataprocV1::Cluster] cluster_object
54
+ # Required The Cloud Dataproc region in which to handle the request.
55
+ # @param [String] cluster_name
56
+ # Required The cluster name.
56
57
  # @param [String] fields
57
58
  # Selector specifying which fields to include in a partial response.
58
59
  # @param [String] quota_user
@@ -62,22 +63,21 @@ module Google
62
63
  # Request-specific options
63
64
  #
64
65
  # @yield [result, err] Result & error if block supplied
65
- # @yieldparam result [Google::Apis::DataprocV1::Operation] parsed result object
66
+ # @yieldparam result [Google::Apis::DataprocV1::Cluster] parsed result object
66
67
  # @yieldparam err [StandardError] error object if request failed
67
68
  #
68
- # @return [Google::Apis::DataprocV1::Operation]
69
+ # @return [Google::Apis::DataprocV1::Cluster]
69
70
  #
70
71
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
71
72
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
72
73
  # @raise [Google::Apis::AuthorizationError] Authorization is required
73
- def create_cluster(project_id, region, cluster_object = nil, fields: nil, quota_user: nil, options: nil, &block)
74
- command = make_simple_command(:post, 'v1/projects/{projectId}/regions/{region}/clusters', options)
75
- command.request_representation = Google::Apis::DataprocV1::Cluster::Representation
76
- command.request_object = cluster_object
77
- command.response_representation = Google::Apis::DataprocV1::Operation::Representation
78
- command.response_class = Google::Apis::DataprocV1::Operation
74
+ def get_cluster(project_id, region, cluster_name, fields: nil, quota_user: nil, options: nil, &block)
75
+ command = make_simple_command(:get, 'v1/projects/{projectId}/regions/{region}/clusters/{clusterName}', options)
76
+ command.response_representation = Google::Apis::DataprocV1::Cluster::Representation
77
+ command.response_class = Google::Apis::DataprocV1::Cluster
79
78
  command.params['projectId'] = project_id unless project_id.nil?
80
79
  command.params['region'] = region unless region.nil?
80
+ command.params['clusterName'] = cluster_name unless cluster_name.nil?
81
81
  command.query['fields'] = fields unless fields.nil?
82
82
  command.query['quotaUser'] = quota_user unless quota_user.nil?
83
83
  execute_or_queue_command(command, &block)
@@ -85,24 +85,39 @@ module Google
85
85
 
86
86
  # Updates a cluster in a project.
87
87
  # @param [String] project_id
88
- # [Required] The ID of the Google Cloud Platform project the cluster belongs to.
88
+ # Required The ID of the Google Cloud Platform project the cluster belongs to.
89
89
  # @param [String] region
90
- # [Required] The Cloud Dataproc region in which to handle the request.
90
+ # Required The Cloud Dataproc region in which to handle the request.
91
91
  # @param [String] cluster_name
92
- # [Required] The cluster name.
92
+ # Required The cluster name.
93
93
  # @param [Google::Apis::DataprocV1::Cluster] cluster_object
94
94
  # @param [String] update_mask
95
- # [Required] Specifies the path, relative to Cluster, of the field to update.
96
- # For example, to change the number of workers in a cluster to 5, the
97
- # update_mask parameter would be specified as config.worker_config.num_instances,
98
- # and the `PATCH` request body would specify the new value, as follows: ` "
99
- # config":` "workerConfig":` "numInstances":"5" ` ` ` Similarly, to change the
100
- # number of preemptible workers in a cluster to 5, the update_mask parameter
101
- # would be config.secondary_worker_config.num_instances, and the `PATCH` request
102
- # body would be set as follows: ` "config":` "secondaryWorkerConfig":` "
103
- # numInstances":"5" ` ` ` Note: Currently, config.worker_config.num_instances
104
- # and config.secondary_worker_config.num_instances are the only fields that can
105
- # be updated.
95
+ # Required Specifies the path, relative to <code>Cluster</code>, of the field to
96
+ # update. For example, to change the number of workers in a cluster to 5, the <
97
+ # code>update_mask</code> parameter would be specified as <code>config.
98
+ # worker_config.num_instances</code>, and the PATCH request body would specify
99
+ # the new value, as follows:
100
+ # `
101
+ # "config":`
102
+ # "workerConfig":`
103
+ # "numInstances":"5"
104
+ # `
105
+ # `
106
+ # `
107
+ # Similarly, to change the number of preemptible workers in a cluster to 5, the <
108
+ # code>update_mask</code> parameter would be <code>config.
109
+ # secondary_worker_config.num_instances</code>, and the PATCH request body would
110
+ # be set as follows:
111
+ # `
112
+ # "config":`
113
+ # "secondaryWorkerConfig":`
114
+ # "numInstances":"5"
115
+ # `
116
+ # `
117
+ # `
118
+ # <strong>Note:</strong> Currently, <code>config.worker_config.num_instances</
119
+ # code> and <code>config.secondary_worker_config.num_instances</code> are the
120
+ # only fields that can be updated.
106
121
  # @param [String] fields
107
122
  # Selector specifying which fields to include in a partial response.
108
123
  # @param [String] quota_user
@@ -135,14 +150,16 @@ module Google
135
150
  execute_or_queue_command(command, &block)
136
151
  end
137
152
 
138
- # Deletes a cluster in a project.
153
+ # Gets cluster diagnostic information. After the operation completes, the
154
+ # Operation.response field contains DiagnoseClusterOutputLocation.
139
155
  # @param [String] project_id
140
- # [Required] The ID of the Google Cloud Platform project that the cluster
141
- # belongs to.
156
+ # Required The ID of the Google Cloud Platform project that the cluster belongs
157
+ # to.
142
158
  # @param [String] region
143
- # [Required] The Cloud Dataproc region in which to handle the request.
159
+ # Required The Cloud Dataproc region in which to handle the request.
144
160
  # @param [String] cluster_name
145
- # [Required] The cluster name.
161
+ # Required The cluster name.
162
+ # @param [Google::Apis::DataprocV1::DiagnoseClusterRequest] diagnose_cluster_request_object
146
163
  # @param [String] fields
147
164
  # Selector specifying which fields to include in a partial response.
148
165
  # @param [String] quota_user
@@ -160,8 +177,10 @@ module Google
160
177
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
161
178
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
162
179
  # @raise [Google::Apis::AuthorizationError] Authorization is required
163
- def delete_cluster(project_id, region, cluster_name, fields: nil, quota_user: nil, options: nil, &block)
164
- command = make_simple_command(:delete, 'v1/projects/{projectId}/regions/{region}/clusters/{clusterName}', options)
180
+ def diagnose_cluster(project_id, region, cluster_name, diagnose_cluster_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
181
+ command = make_simple_command(:post, 'v1/projects/{projectId}/regions/{region}/clusters/{clusterName}:diagnose', options)
182
+ command.request_representation = Google::Apis::DataprocV1::DiagnoseClusterRequest::Representation
183
+ command.request_object = diagnose_cluster_request_object
165
184
  command.response_representation = Google::Apis::DataprocV1::Operation::Representation
166
185
  command.response_class = Google::Apis::DataprocV1::Operation
167
186
  command.params['projectId'] = project_id unless project_id.nil?
@@ -172,14 +191,14 @@ module Google
172
191
  execute_or_queue_command(command, &block)
173
192
  end
174
193
 
175
- # Gets the resource representation for a cluster in a project.
194
+ # Deletes a cluster in a project.
176
195
  # @param [String] project_id
177
- # [Required] The ID of the Google Cloud Platform project that the cluster
178
- # belongs to.
196
+ # Required The ID of the Google Cloud Platform project that the cluster belongs
197
+ # to.
179
198
  # @param [String] region
180
- # [Required] The Cloud Dataproc region in which to handle the request.
199
+ # Required The Cloud Dataproc region in which to handle the request.
181
200
  # @param [String] cluster_name
182
- # [Required] The cluster name.
201
+ # Required The cluster name.
183
202
  # @param [String] fields
184
203
  # Selector specifying which fields to include in a partial response.
185
204
  # @param [String] quota_user
@@ -189,18 +208,18 @@ module Google
189
208
  # Request-specific options
190
209
  #
191
210
  # @yield [result, err] Result & error if block supplied
192
- # @yieldparam result [Google::Apis::DataprocV1::Cluster] parsed result object
211
+ # @yieldparam result [Google::Apis::DataprocV1::Operation] parsed result object
193
212
  # @yieldparam err [StandardError] error object if request failed
194
213
  #
195
- # @return [Google::Apis::DataprocV1::Cluster]
214
+ # @return [Google::Apis::DataprocV1::Operation]
196
215
  #
197
216
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
198
217
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
199
218
  # @raise [Google::Apis::AuthorizationError] Authorization is required
200
- def get_cluster(project_id, region, cluster_name, fields: nil, quota_user: nil, options: nil, &block)
201
- command = make_simple_command(:get, 'v1/projects/{projectId}/regions/{region}/clusters/{clusterName}', options)
202
- command.response_representation = Google::Apis::DataprocV1::Cluster::Representation
203
- command.response_class = Google::Apis::DataprocV1::Cluster
219
+ def delete_cluster(project_id, region, cluster_name, fields: nil, quota_user: nil, options: nil, &block)
220
+ command = make_simple_command(:delete, 'v1/projects/{projectId}/regions/{region}/clusters/{clusterName}', options)
221
+ command.response_representation = Google::Apis::DataprocV1::Operation::Representation
222
+ command.response_class = Google::Apis::DataprocV1::Operation
204
223
  command.params['projectId'] = project_id unless project_id.nil?
205
224
  command.params['region'] = region unless region.nil?
206
225
  command.params['clusterName'] = cluster_name unless cluster_name.nil?
@@ -211,14 +230,26 @@ module Google
211
230
 
212
231
  # Lists all regions/`region`/clusters in a project.
213
232
  # @param [String] project_id
214
- # [Required] The ID of the Google Cloud Platform project that the cluster
215
- # belongs to.
233
+ # Required The ID of the Google Cloud Platform project that the cluster belongs
234
+ # to.
216
235
  # @param [String] region
217
- # [Required] The Cloud Dataproc region in which to handle the request.
236
+ # Required The Cloud Dataproc region in which to handle the request.
218
237
  # @param [Fixnum] page_size
219
- # The standard List page size.
238
+ # Optional The standard List page size.
239
+ # @param [String] filter
240
+ # Optional A filter constraining the clusters to list. Filters are case-
241
+ # sensitive and have the following syntax:field = value AND field = value ...
242
+ # where field is one of status.state, clusterName, or labels.[KEY], and [KEY] is
243
+ # a label key. value can be * to match all values. status.state can be one of
244
+ # the following: ACTIVE, INACTIVE, CREATING, RUNNING, ERROR, DELETING, or
245
+ # UPDATING. ACTIVE contains the CREATING, UPDATING, and RUNNING states. INACTIVE
246
+ # contains the DELETING and ERROR states. clusterName is the name of the cluster
247
+ # provided at creation time. Only the logical AND operator is supported; space-
248
+ # separated items are treated as having an implicit AND operator.Example filter:
249
+ # status.state = ACTIVE AND clusterName = mycluster AND labels.env = staging AND
250
+ # labels.starred = *
220
251
  # @param [String] page_token
221
- # The standard List page token.
252
+ # Optional The standard List page token.
222
253
  # @param [String] fields
223
254
  # Selector specifying which fields to include in a partial response.
224
255
  # @param [String] quota_user
@@ -236,29 +267,27 @@ module Google
236
267
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
237
268
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
238
269
  # @raise [Google::Apis::AuthorizationError] Authorization is required
239
- def list_clusters(project_id, region, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
270
+ def list_clusters(project_id, region, page_size: nil, filter: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
240
271
  command = make_simple_command(:get, 'v1/projects/{projectId}/regions/{region}/clusters', options)
241
272
  command.response_representation = Google::Apis::DataprocV1::ListClustersResponse::Representation
242
273
  command.response_class = Google::Apis::DataprocV1::ListClustersResponse
243
274
  command.params['projectId'] = project_id unless project_id.nil?
244
275
  command.params['region'] = region unless region.nil?
245
276
  command.query['pageSize'] = page_size unless page_size.nil?
277
+ command.query['filter'] = filter unless filter.nil?
246
278
  command.query['pageToken'] = page_token unless page_token.nil?
247
279
  command.query['fields'] = fields unless fields.nil?
248
280
  command.query['quotaUser'] = quota_user unless quota_user.nil?
249
281
  execute_or_queue_command(command, &block)
250
282
  end
251
283
 
252
- # Gets cluster diagnostic information. After the operation completes, the
253
- # Operation.response field contains `DiagnoseClusterOutputLocation`.
284
+ # Creates a cluster in a project.
254
285
  # @param [String] project_id
255
- # [Required] The ID of the Google Cloud Platform project that the cluster
256
- # belongs to.
286
+ # Required The ID of the Google Cloud Platform project that the cluster belongs
287
+ # to.
257
288
  # @param [String] region
258
- # [Required] The Cloud Dataproc region in which to handle the request.
259
- # @param [String] cluster_name
260
- # [Required] The cluster name.
261
- # @param [Google::Apis::DataprocV1::DiagnoseClusterRequest] diagnose_cluster_request_object
289
+ # Required The Cloud Dataproc region in which to handle the request.
290
+ # @param [Google::Apis::DataprocV1::Cluster] cluster_object
262
291
  # @param [String] fields
263
292
  # Selector specifying which fields to include in a partial response.
264
293
  # @param [String] quota_user
@@ -276,26 +305,29 @@ module Google
276
305
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
277
306
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
278
307
  # @raise [Google::Apis::AuthorizationError] Authorization is required
279
- def diagnose_cluster(project_id, region, cluster_name, diagnose_cluster_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
280
- command = make_simple_command(:post, 'v1/projects/{projectId}/regions/{region}/clusters/{clusterName}:diagnose', options)
281
- command.request_representation = Google::Apis::DataprocV1::DiagnoseClusterRequest::Representation
282
- command.request_object = diagnose_cluster_request_object
308
+ def create_cluster(project_id, region, cluster_object = nil, fields: nil, quota_user: nil, options: nil, &block)
309
+ command = make_simple_command(:post, 'v1/projects/{projectId}/regions/{region}/clusters', options)
310
+ command.request_representation = Google::Apis::DataprocV1::Cluster::Representation
311
+ command.request_object = cluster_object
283
312
  command.response_representation = Google::Apis::DataprocV1::Operation::Representation
284
313
  command.response_class = Google::Apis::DataprocV1::Operation
285
314
  command.params['projectId'] = project_id unless project_id.nil?
286
315
  command.params['region'] = region unless region.nil?
287
- command.params['clusterName'] = cluster_name unless cluster_name.nil?
288
316
  command.query['fields'] = fields unless fields.nil?
289
317
  command.query['quotaUser'] = quota_user unless quota_user.nil?
290
318
  execute_or_queue_command(command, &block)
291
319
  end
292
320
 
293
- # Submits a job to a cluster.
294
- # @param [String] project_id
295
- # [Required] The ID of the Google Cloud Platform project that the job belongs to.
296
- # @param [String] region
297
- # [Required] The Cloud Dataproc region in which to handle the request.
298
- # @param [Google::Apis::DataprocV1::SubmitJobRequest] submit_job_request_object
321
+ # Starts asynchronous cancellation on a long-running operation. The server makes
322
+ # a best effort to cancel the operation, but success is not guaranteed. If the
323
+ # server doesn't support this method, it returns google.rpc.Code.UNIMPLEMENTED.
324
+ # Clients can use Operations.GetOperation or other methods to check whether the
325
+ # cancellation succeeded or whether the operation completed despite cancellation.
326
+ # On successful cancellation, the operation is not deleted; instead, it becomes
327
+ # an operation with an Operation.error value with a google.rpc.Status.code of 1,
328
+ # corresponding to Code.CANCELLED.
329
+ # @param [String] name
330
+ # The name of the operation resource to be cancelled.
299
331
  # @param [String] fields
300
332
  # Selector specifying which fields to include in a partial response.
301
333
  # @param [String] quota_user
@@ -305,34 +337,30 @@ module Google
305
337
  # Request-specific options
306
338
  #
307
339
  # @yield [result, err] Result & error if block supplied
308
- # @yieldparam result [Google::Apis::DataprocV1::Job] parsed result object
340
+ # @yieldparam result [Google::Apis::DataprocV1::Empty] parsed result object
309
341
  # @yieldparam err [StandardError] error object if request failed
310
342
  #
311
- # @return [Google::Apis::DataprocV1::Job]
343
+ # @return [Google::Apis::DataprocV1::Empty]
312
344
  #
313
345
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
314
346
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
315
347
  # @raise [Google::Apis::AuthorizationError] Authorization is required
316
- def submit_job(project_id, region, submit_job_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
317
- command = make_simple_command(:post, 'v1/projects/{projectId}/regions/{region}/jobs:submit', options)
318
- command.request_representation = Google::Apis::DataprocV1::SubmitJobRequest::Representation
319
- command.request_object = submit_job_request_object
320
- command.response_representation = Google::Apis::DataprocV1::Job::Representation
321
- command.response_class = Google::Apis::DataprocV1::Job
322
- command.params['projectId'] = project_id unless project_id.nil?
323
- command.params['region'] = region unless region.nil?
348
+ def cancel_operation(name, fields: nil, quota_user: nil, options: nil, &block)
349
+ command = make_simple_command(:post, 'v1/{+name}:cancel', options)
350
+ command.response_representation = Google::Apis::DataprocV1::Empty::Representation
351
+ command.response_class = Google::Apis::DataprocV1::Empty
352
+ command.params['name'] = name unless name.nil?
324
353
  command.query['fields'] = fields unless fields.nil?
325
354
  command.query['quotaUser'] = quota_user unless quota_user.nil?
326
355
  execute_or_queue_command(command, &block)
327
356
  end
328
357
 
329
- # Gets the resource representation for a job in a project.
330
- # @param [String] project_id
331
- # [Required] The ID of the Google Cloud Platform project that the job belongs to.
332
- # @param [String] region
333
- # [Required] The Cloud Dataproc region in which to handle the request.
334
- # @param [String] job_id
335
- # [Required] The job ID.
358
+ # Deletes a long-running operation. This method indicates that the client is no
359
+ # longer interested in the operation result. It does not cancel the operation.
360
+ # If the server doesn't support this method, it returns google.rpc.Code.
361
+ # UNIMPLEMENTED.
362
+ # @param [String] name
363
+ # The name of the operation resource to be deleted.
336
364
  # @param [String] fields
337
365
  # Selector specifying which fields to include in a partial response.
338
366
  # @param [String] quota_user
@@ -342,41 +370,36 @@ module Google
342
370
  # Request-specific options
343
371
  #
344
372
  # @yield [result, err] Result & error if block supplied
345
- # @yieldparam result [Google::Apis::DataprocV1::Job] parsed result object
373
+ # @yieldparam result [Google::Apis::DataprocV1::Empty] parsed result object
346
374
  # @yieldparam err [StandardError] error object if request failed
347
375
  #
348
- # @return [Google::Apis::DataprocV1::Job]
376
+ # @return [Google::Apis::DataprocV1::Empty]
349
377
  #
350
378
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
351
379
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
352
380
  # @raise [Google::Apis::AuthorizationError] Authorization is required
353
- def get_job(project_id, region, job_id, fields: nil, quota_user: nil, options: nil, &block)
354
- command = make_simple_command(:get, 'v1/projects/{projectId}/regions/{region}/jobs/{jobId}', options)
355
- command.response_representation = Google::Apis::DataprocV1::Job::Representation
356
- command.response_class = Google::Apis::DataprocV1::Job
357
- command.params['projectId'] = project_id unless project_id.nil?
358
- command.params['region'] = region unless region.nil?
359
- command.params['jobId'] = job_id unless job_id.nil?
381
+ def delete_operation(name, fields: nil, quota_user: nil, options: nil, &block)
382
+ command = make_simple_command(:delete, 'v1/{+name}', options)
383
+ command.response_representation = Google::Apis::DataprocV1::Empty::Representation
384
+ command.response_class = Google::Apis::DataprocV1::Empty
385
+ command.params['name'] = name unless name.nil?
360
386
  command.query['fields'] = fields unless fields.nil?
361
387
  command.query['quotaUser'] = quota_user unless quota_user.nil?
362
388
  execute_or_queue_command(command, &block)
363
389
  end
364
390
 
365
- # Lists regions/`region`/jobs in a project.
366
- # @param [String] project_id
367
- # [Required] The ID of the Google Cloud Platform project that the job belongs to.
368
- # @param [String] region
369
- # [Required] The Cloud Dataproc region in which to handle the request.
391
+ # Lists operations that match the specified filter in the request. If the server
392
+ # doesn't support this method, it returns UNIMPLEMENTED.NOTE: the name binding
393
+ # below allows API services to override the binding to use different resource
394
+ # name schemes, such as users/*/operations.
395
+ # @param [String] name
396
+ # The name of the operation collection.
370
397
  # @param [Fixnum] page_size
371
- # [Optional] The number of results to return in each response.
398
+ # The standard list page size.
399
+ # @param [String] filter
400
+ # The standard list filter.
372
401
  # @param [String] page_token
373
- # [Optional] The page token, returned by a previous call, to request the next
374
- # page of results.
375
- # @param [String] cluster_name
376
- # [Optional] If set, the returned jobs list includes only jobs that were
377
- # submitted to the named cluster.
378
- # @param [String] job_state_matcher
379
- # [Optional] Specifies enumerated categories of jobs to list.
402
+ # The standard list page token.
380
403
  # @param [String] fields
381
404
  # Selector specifying which fields to include in a partial response.
382
405
  # @param [String] quota_user
@@ -386,39 +409,66 @@ module Google
386
409
  # Request-specific options
387
410
  #
388
411
  # @yield [result, err] Result & error if block supplied
389
- # @yieldparam result [Google::Apis::DataprocV1::ListJobsResponse] parsed result object
412
+ # @yieldparam result [Google::Apis::DataprocV1::ListOperationsResponse] parsed result object
390
413
  # @yieldparam err [StandardError] error object if request failed
391
414
  #
392
- # @return [Google::Apis::DataprocV1::ListJobsResponse]
415
+ # @return [Google::Apis::DataprocV1::ListOperationsResponse]
393
416
  #
394
417
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
395
418
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
396
419
  # @raise [Google::Apis::AuthorizationError] Authorization is required
397
- def list_jobs(project_id, region, page_size: nil, page_token: nil, cluster_name: nil, job_state_matcher: nil, fields: nil, quota_user: nil, options: nil, &block)
398
- command = make_simple_command(:get, 'v1/projects/{projectId}/regions/{region}/jobs', options)
399
- command.response_representation = Google::Apis::DataprocV1::ListJobsResponse::Representation
400
- command.response_class = Google::Apis::DataprocV1::ListJobsResponse
401
- command.params['projectId'] = project_id unless project_id.nil?
402
- command.params['region'] = region unless region.nil?
420
+ def list_operations(name, page_size: nil, filter: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
421
+ command = make_simple_command(:get, 'v1/{+name}', options)
422
+ command.response_representation = Google::Apis::DataprocV1::ListOperationsResponse::Representation
423
+ command.response_class = Google::Apis::DataprocV1::ListOperationsResponse
424
+ command.params['name'] = name unless name.nil?
403
425
  command.query['pageSize'] = page_size unless page_size.nil?
426
+ command.query['filter'] = filter unless filter.nil?
404
427
  command.query['pageToken'] = page_token unless page_token.nil?
405
- command.query['clusterName'] = cluster_name unless cluster_name.nil?
406
- command.query['jobStateMatcher'] = job_state_matcher unless job_state_matcher.nil?
428
+ command.query['fields'] = fields unless fields.nil?
429
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
430
+ execute_or_queue_command(command, &block)
431
+ end
432
+
433
+ # Gets the latest state of a long-running operation. Clients can use this method
434
+ # to poll the operation result at intervals as recommended by the API service.
435
+ # @param [String] name
436
+ # The name of the operation resource.
437
+ # @param [String] fields
438
+ # Selector specifying which fields to include in a partial response.
439
+ # @param [String] quota_user
440
+ # Available to use for quota purposes for server-side applications. Can be any
441
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
442
+ # @param [Google::Apis::RequestOptions] options
443
+ # Request-specific options
444
+ #
445
+ # @yield [result, err] Result & error if block supplied
446
+ # @yieldparam result [Google::Apis::DataprocV1::Operation] parsed result object
447
+ # @yieldparam err [StandardError] error object if request failed
448
+ #
449
+ # @return [Google::Apis::DataprocV1::Operation]
450
+ #
451
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
452
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
453
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
454
+ def get_operation(name, fields: nil, quota_user: nil, options: nil, &block)
455
+ command = make_simple_command(:get, 'v1/{+name}', options)
456
+ command.response_representation = Google::Apis::DataprocV1::Operation::Representation
457
+ command.response_class = Google::Apis::DataprocV1::Operation
458
+ command.params['name'] = name unless name.nil?
407
459
  command.query['fields'] = fields unless fields.nil?
408
460
  command.query['quotaUser'] = quota_user unless quota_user.nil?
409
461
  execute_or_queue_command(command, &block)
410
462
  end
411
463
 
412
464
  # Starts a job cancellation request. To access the job resource after
413
- # cancellation, call [regions/`region`/jobs.list](/dataproc/reference/rest/v1/
414
- # projects.regions.jobs/list) or [regions/`region`/jobs.get](/dataproc/reference/
415
- # rest/v1/projects.regions.jobs/get).
465
+ # cancellation, call regions/`region`/jobs.list or regions/`region`/jobs.get.
416
466
  # @param [String] project_id
417
- # [Required] The ID of the Google Cloud Platform project that the job belongs to.
467
+ # Required The ID of the Google Cloud Platform project that the job belongs to.
418
468
  # @param [String] region
419
- # [Required] The Cloud Dataproc region in which to handle the request.
469
+ # Required The Cloud Dataproc region in which to handle the request.
420
470
  # @param [String] job_id
421
- # [Required] The job ID.
471
+ # Required The job ID.
422
472
  # @param [Google::Apis::DataprocV1::CancelJobRequest] cancel_job_request_object
423
473
  # @param [String] fields
424
474
  # Selector specifying which fields to include in a partial response.
@@ -451,14 +501,20 @@ module Google
451
501
  execute_or_queue_command(command, &block)
452
502
  end
453
503
 
454
- # Deletes the job from the project. If the job is active, the delete fails, and
455
- # the response returns `FAILED_PRECONDITION`.
504
+ # Updates a job in a project.
456
505
  # @param [String] project_id
457
- # [Required] The ID of the Google Cloud Platform project that the job belongs to.
506
+ # Required The ID of the Google Cloud Platform project that the job belongs to.
458
507
  # @param [String] region
459
- # [Required] The Cloud Dataproc region in which to handle the request.
508
+ # Required The Cloud Dataproc region in which to handle the request.
460
509
  # @param [String] job_id
461
- # [Required] The job ID.
510
+ # Required The job ID.
511
+ # @param [Google::Apis::DataprocV1::Job] job_object
512
+ # @param [String] update_mask
513
+ # Required Specifies the path, relative to <code>Job</code>, of the field to
514
+ # update. For example, to update the labels of a Job the <code>update_mask</code>
515
+ # parameter would be specified as <code>labels</code>, and the PATCH request
516
+ # body would specify the new value. <strong>Note:</strong> Currently, <code>
517
+ # labels</code> is the only field that can be updated.
462
518
  # @param [String] fields
463
519
  # Selector specifying which fields to include in a partial response.
464
520
  # @param [String] quota_user
@@ -468,30 +524,36 @@ module Google
468
524
  # Request-specific options
469
525
  #
470
526
  # @yield [result, err] Result & error if block supplied
471
- # @yieldparam result [Google::Apis::DataprocV1::Empty] parsed result object
527
+ # @yieldparam result [Google::Apis::DataprocV1::Job] parsed result object
472
528
  # @yieldparam err [StandardError] error object if request failed
473
529
  #
474
- # @return [Google::Apis::DataprocV1::Empty]
530
+ # @return [Google::Apis::DataprocV1::Job]
475
531
  #
476
532
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
477
533
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
478
534
  # @raise [Google::Apis::AuthorizationError] Authorization is required
479
- def delete_job(project_id, region, job_id, fields: nil, quota_user: nil, options: nil, &block)
480
- command = make_simple_command(:delete, 'v1/projects/{projectId}/regions/{region}/jobs/{jobId}', options)
481
- command.response_representation = Google::Apis::DataprocV1::Empty::Representation
482
- command.response_class = Google::Apis::DataprocV1::Empty
535
+ def patch_project_region_job(project_id, region, job_id, job_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
536
+ command = make_simple_command(:patch, 'v1/projects/{projectId}/regions/{region}/jobs/{jobId}', options)
537
+ command.request_representation = Google::Apis::DataprocV1::Job::Representation
538
+ command.request_object = job_object
539
+ command.response_representation = Google::Apis::DataprocV1::Job::Representation
540
+ command.response_class = Google::Apis::DataprocV1::Job
483
541
  command.params['projectId'] = project_id unless project_id.nil?
484
542
  command.params['region'] = region unless region.nil?
485
543
  command.params['jobId'] = job_id unless job_id.nil?
544
+ command.query['updateMask'] = update_mask unless update_mask.nil?
486
545
  command.query['fields'] = fields unless fields.nil?
487
546
  command.query['quotaUser'] = quota_user unless quota_user.nil?
488
547
  execute_or_queue_command(command, &block)
489
548
  end
490
549
 
491
- # Gets the latest state of a long-running operation. Clients can use this method
492
- # to poll the operation result at intervals as recommended by the API service.
493
- # @param [String] name
494
- # The name of the operation resource.
550
+ # Gets the resource representation for a job in a project.
551
+ # @param [String] project_id
552
+ # Required The ID of the Google Cloud Platform project that the job belongs to.
553
+ # @param [String] region
554
+ # Required The Cloud Dataproc region in which to handle the request.
555
+ # @param [String] job_id
556
+ # Required The job ID.
495
557
  # @param [String] fields
496
558
  # Selector specifying which fields to include in a partial response.
497
559
  # @param [String] quota_user
@@ -501,36 +563,32 @@ module Google
501
563
  # Request-specific options
502
564
  #
503
565
  # @yield [result, err] Result & error if block supplied
504
- # @yieldparam result [Google::Apis::DataprocV1::Operation] parsed result object
566
+ # @yieldparam result [Google::Apis::DataprocV1::Job] parsed result object
505
567
  # @yieldparam err [StandardError] error object if request failed
506
568
  #
507
- # @return [Google::Apis::DataprocV1::Operation]
569
+ # @return [Google::Apis::DataprocV1::Job]
508
570
  #
509
571
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
510
572
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
511
573
  # @raise [Google::Apis::AuthorizationError] Authorization is required
512
- def get_operation(name, fields: nil, quota_user: nil, options: nil, &block)
513
- command = make_simple_command(:get, 'v1/{+name}', options)
514
- command.response_representation = Google::Apis::DataprocV1::Operation::Representation
515
- command.response_class = Google::Apis::DataprocV1::Operation
516
- command.params['name'] = name unless name.nil?
574
+ def get_job(project_id, region, job_id, fields: nil, quota_user: nil, options: nil, &block)
575
+ command = make_simple_command(:get, 'v1/projects/{projectId}/regions/{region}/jobs/{jobId}', options)
576
+ command.response_representation = Google::Apis::DataprocV1::Job::Representation
577
+ command.response_class = Google::Apis::DataprocV1::Job
578
+ command.params['projectId'] = project_id unless project_id.nil?
579
+ command.params['region'] = region unless region.nil?
580
+ command.params['jobId'] = job_id unless job_id.nil?
517
581
  command.query['fields'] = fields unless fields.nil?
518
582
  command.query['quotaUser'] = quota_user unless quota_user.nil?
519
583
  execute_or_queue_command(command, &block)
520
584
  end
521
585
 
522
- # Lists operations that match the specified filter in the request. If the server
523
- # doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name`
524
- # binding below allows API services to override the binding to use different
525
- # resource name schemes, such as `users/*/operations`.
526
- # @param [String] name
527
- # The name of the operation collection.
528
- # @param [String] filter
529
- # The standard list filter.
530
- # @param [Fixnum] page_size
531
- # The standard list page size.
532
- # @param [String] page_token
533
- # The standard list page token.
586
+ # Submits a job to a cluster.
587
+ # @param [String] project_id
588
+ # Required The ID of the Google Cloud Platform project that the job belongs to.
589
+ # @param [String] region
590
+ # Required The Cloud Dataproc region in which to handle the request.
591
+ # @param [Google::Apis::DataprocV1::SubmitJobRequest] submit_job_request_object
534
592
  # @param [String] fields
535
593
  # Selector specifying which fields to include in a partial response.
536
594
  # @param [String] quota_user
@@ -540,34 +598,35 @@ module Google
540
598
  # Request-specific options
541
599
  #
542
600
  # @yield [result, err] Result & error if block supplied
543
- # @yieldparam result [Google::Apis::DataprocV1::ListOperationsResponse] parsed result object
601
+ # @yieldparam result [Google::Apis::DataprocV1::Job] parsed result object
544
602
  # @yieldparam err [StandardError] error object if request failed
545
603
  #
546
- # @return [Google::Apis::DataprocV1::ListOperationsResponse]
604
+ # @return [Google::Apis::DataprocV1::Job]
547
605
  #
548
606
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
549
607
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
550
608
  # @raise [Google::Apis::AuthorizationError] Authorization is required
551
- def list_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
552
- command = make_simple_command(:get, 'v1/{+name}', options)
553
- command.response_representation = Google::Apis::DataprocV1::ListOperationsResponse::Representation
554
- command.response_class = Google::Apis::DataprocV1::ListOperationsResponse
555
- command.params['name'] = name unless name.nil?
556
- command.query['filter'] = filter unless filter.nil?
557
- command.query['pageSize'] = page_size unless page_size.nil?
558
- command.query['pageToken'] = page_token unless page_token.nil?
609
+ def submit_job(project_id, region, submit_job_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
610
+ command = make_simple_command(:post, 'v1/projects/{projectId}/regions/{region}/jobs:submit', options)
611
+ command.request_representation = Google::Apis::DataprocV1::SubmitJobRequest::Representation
612
+ command.request_object = submit_job_request_object
613
+ command.response_representation = Google::Apis::DataprocV1::Job::Representation
614
+ command.response_class = Google::Apis::DataprocV1::Job
615
+ command.params['projectId'] = project_id unless project_id.nil?
616
+ command.params['region'] = region unless region.nil?
559
617
  command.query['fields'] = fields unless fields.nil?
560
618
  command.query['quotaUser'] = quota_user unless quota_user.nil?
561
619
  execute_or_queue_command(command, &block)
562
620
  end
563
621
 
564
- # Starts asynchronous cancellation on a long-running operation. The server makes
565
- # a best effort to cancel the operation, but success is not guaranteed. If the
566
- # server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
567
- # Clients can use Operations.GetOperation or other methods to check whether the
568
- # cancellation succeeded or whether the operation completed despite cancellation.
569
- # @param [String] name
570
- # The name of the operation resource to be cancelled.
622
+ # Deletes the job from the project. If the job is active, the delete fails, and
623
+ # the response returns FAILED_PRECONDITION.
624
+ # @param [String] project_id
625
+ # Required The ID of the Google Cloud Platform project that the job belongs to.
626
+ # @param [String] region
627
+ # Required The Cloud Dataproc region in which to handle the request.
628
+ # @param [String] job_id
629
+ # Required The job ID.
571
630
  # @param [String] fields
572
631
  # Selector specifying which fields to include in a partial response.
573
632
  # @param [String] quota_user
@@ -585,22 +644,42 @@ module Google
585
644
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
586
645
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
587
646
  # @raise [Google::Apis::AuthorizationError] Authorization is required
588
- def cancel_operation(name, fields: nil, quota_user: nil, options: nil, &block)
589
- command = make_simple_command(:post, 'v1/{+name}:cancel', options)
647
+ def delete_job(project_id, region, job_id, fields: nil, quota_user: nil, options: nil, &block)
648
+ command = make_simple_command(:delete, 'v1/projects/{projectId}/regions/{region}/jobs/{jobId}', options)
590
649
  command.response_representation = Google::Apis::DataprocV1::Empty::Representation
591
650
  command.response_class = Google::Apis::DataprocV1::Empty
592
- command.params['name'] = name unless name.nil?
651
+ command.params['projectId'] = project_id unless project_id.nil?
652
+ command.params['region'] = region unless region.nil?
653
+ command.params['jobId'] = job_id unless job_id.nil?
593
654
  command.query['fields'] = fields unless fields.nil?
594
655
  command.query['quotaUser'] = quota_user unless quota_user.nil?
595
656
  execute_or_queue_command(command, &block)
596
657
  end
597
658
 
598
- # Deletes a long-running operation. This method indicates that the client is no
599
- # longer interested in the operation result. It does not cancel the operation.
600
- # If the server doesn't support this method, it returns `google.rpc.Code.
601
- # UNIMPLEMENTED`.
602
- # @param [String] name
603
- # The name of the operation resource to be deleted.
659
+ # Lists regions/`region`/jobs in a project.
660
+ # @param [String] project_id
661
+ # Required The ID of the Google Cloud Platform project that the job belongs to.
662
+ # @param [String] region
663
+ # Required The Cloud Dataproc region in which to handle the request.
664
+ # @param [String] filter
665
+ # Optional A filter constraining the jobs to list. Filters are case-sensitive
666
+ # and have the following syntax:field = value AND field = value ...where field
667
+ # is status.state or labels.[KEY], and [KEY] is a label key. value can be * to
668
+ # match all values. status.state can be either ACTIVE or INACTIVE. Only the
669
+ # logical AND operator is supported; space-separated items are treated as having
670
+ # an implicit AND operator.Example filter:status.state = ACTIVE AND labels.env =
671
+ # staging AND labels.starred = *
672
+ # @param [String] job_state_matcher
673
+ # Optional Specifies enumerated categories of jobs to list (default = match ALL
674
+ # jobs).
675
+ # @param [String] page_token
676
+ # Optional The page token, returned by a previous call, to request the next page
677
+ # of results.
678
+ # @param [Fixnum] page_size
679
+ # Optional The number of results to return in each response.
680
+ # @param [String] cluster_name
681
+ # Optional If set, the returned jobs list includes only jobs that were submitted
682
+ # to the named cluster.
604
683
  # @param [String] fields
605
684
  # Selector specifying which fields to include in a partial response.
606
685
  # @param [String] quota_user
@@ -610,19 +689,25 @@ module Google
610
689
  # Request-specific options
611
690
  #
612
691
  # @yield [result, err] Result & error if block supplied
613
- # @yieldparam result [Google::Apis::DataprocV1::Empty] parsed result object
692
+ # @yieldparam result [Google::Apis::DataprocV1::ListJobsResponse] parsed result object
614
693
  # @yieldparam err [StandardError] error object if request failed
615
694
  #
616
- # @return [Google::Apis::DataprocV1::Empty]
695
+ # @return [Google::Apis::DataprocV1::ListJobsResponse]
617
696
  #
618
697
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
619
698
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
620
699
  # @raise [Google::Apis::AuthorizationError] Authorization is required
621
- def delete_operation(name, fields: nil, quota_user: nil, options: nil, &block)
622
- command = make_simple_command(:delete, 'v1/{+name}', options)
623
- command.response_representation = Google::Apis::DataprocV1::Empty::Representation
624
- command.response_class = Google::Apis::DataprocV1::Empty
625
- command.params['name'] = name unless name.nil?
700
+ def list_jobs(project_id, region, filter: nil, job_state_matcher: nil, page_token: nil, page_size: nil, cluster_name: nil, fields: nil, quota_user: nil, options: nil, &block)
701
+ command = make_simple_command(:get, 'v1/projects/{projectId}/regions/{region}/jobs', options)
702
+ command.response_representation = Google::Apis::DataprocV1::ListJobsResponse::Representation
703
+ command.response_class = Google::Apis::DataprocV1::ListJobsResponse
704
+ command.params['projectId'] = project_id unless project_id.nil?
705
+ command.params['region'] = region unless region.nil?
706
+ command.query['filter'] = filter unless filter.nil?
707
+ command.query['jobStateMatcher'] = job_state_matcher unless job_state_matcher.nil?
708
+ command.query['pageToken'] = page_token unless page_token.nil?
709
+ command.query['pageSize'] = page_size unless page_size.nil?
710
+ command.query['clusterName'] = cluster_name unless cluster_name.nil?
626
711
  command.query['fields'] = fields unless fields.nil?
627
712
  command.query['quotaUser'] = quota_user unless quota_user.nil?
628
713
  execute_or_queue_command(command, &block)