google-api-client 0.11.3 → 0.12.0

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