google-api-client 0.12.0 → 0.13.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (315) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +7 -0
  3. data/api_names.yaml +945 -41609
  4. data/generated/google/apis/acceleratedmobilepageurl_v1/classes.rb +12 -12
  5. data/generated/google/apis/acceleratedmobilepageurl_v1/representations.rb +2 -2
  6. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  7. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +1437 -412
  8. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +516 -71
  9. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +1098 -422
  10. data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +6 -6
  11. data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +3 -3
  12. data/generated/google/apis/adexchangebuyer_v1_4/service.rb +3 -3
  13. data/generated/google/apis/adexchangeseller_v2_0/service.rb +10 -10
  14. data/generated/google/apis/admin_directory_v1/service.rb +26 -26
  15. data/generated/google/apis/adsense_v1_4.rb +1 -1
  16. data/generated/google/apis/adsense_v1_4/classes.rb +2 -2
  17. data/generated/google/apis/adsense_v1_4/representations.rb +3 -3
  18. data/generated/google/apis/adsense_v1_4/service.rb +44 -44
  19. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  20. data/generated/google/apis/adsensehost_v4_1/service.rb +22 -22
  21. data/generated/google/apis/analytics_v3/classes.rb +3 -3
  22. data/generated/google/apis/analytics_v3/representations.rb +3 -3
  23. data/generated/google/apis/analytics_v3/service.rb +82 -82
  24. data/generated/google/apis/analyticsreporting_v4/classes.rb +937 -937
  25. data/generated/google/apis/analyticsreporting_v4/representations.rb +128 -128
  26. data/generated/google/apis/analyticsreporting_v4/service.rb +1 -1
  27. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  28. data/generated/google/apis/androidenterprise_v1/classes.rb +10 -10
  29. data/generated/google/apis/androidenterprise_v1/representations.rb +20 -20
  30. data/generated/google/apis/androidenterprise_v1/service.rb +43 -43
  31. data/generated/google/apis/androidpublisher_v2/classes.rb +26 -26
  32. data/generated/google/apis/androidpublisher_v2/representations.rb +46 -46
  33. data/generated/google/apis/androidpublisher_v2/service.rb +95 -95
  34. data/generated/google/apis/appengine_v1.rb +4 -4
  35. data/generated/google/apis/appengine_v1/classes.rb +1570 -1512
  36. data/generated/google/apis/appengine_v1/representations.rb +362 -343
  37. data/generated/google/apis/appengine_v1/service.rb +220 -220
  38. data/generated/google/apis/appstate_v1.rb +1 -1
  39. data/generated/google/apis/bigquery_v2.rb +1 -1
  40. data/generated/google/apis/bigquery_v2/classes.rb +5 -5
  41. data/generated/google/apis/bigquery_v2/representations.rb +8 -8
  42. data/generated/google/apis/bigquery_v2/service.rb +13 -13
  43. data/generated/google/apis/blogger_v3/service.rb +3 -3
  44. data/generated/google/apis/books_v1/classes.rb +55 -55
  45. data/generated/google/apis/books_v1/representations.rb +67 -67
  46. data/generated/google/apis/books_v1/service.rb +82 -82
  47. data/generated/google/apis/calendar_v3.rb +1 -1
  48. data/generated/google/apis/calendar_v3/classes.rb +6 -6
  49. data/generated/google/apis/calendar_v3/representations.rb +3 -3
  50. data/generated/google/apis/calendar_v3/service.rb +2 -2
  51. data/generated/google/apis/civicinfo_v2/classes.rb +2 -2
  52. data/generated/google/apis/civicinfo_v2/representations.rb +4 -4
  53. data/generated/google/apis/civicinfo_v2/service.rb +12 -12
  54. data/generated/google/apis/classroom_v1.rb +7 -7
  55. data/generated/google/apis/classroom_v1/classes.rb +1013 -991
  56. data/generated/google/apis/classroom_v1/representations.rb +207 -204
  57. data/generated/google/apis/classroom_v1/service.rb +709 -709
  58. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  59. data/generated/google/apis/cloudbuild_v1/classes.rb +307 -307
  60. data/generated/google/apis/cloudbuild_v1/representations.rb +84 -84
  61. data/generated/google/apis/cloudbuild_v1/service.rb +125 -125
  62. data/generated/google/apis/clouddebugger_v2/classes.rb +673 -673
  63. data/generated/google/apis/clouddebugger_v2/representations.rb +152 -152
  64. data/generated/google/apis/clouddebugger_v2/service.rb +55 -55
  65. data/generated/google/apis/clouderrorreporting_v1beta1.rb +1 -1
  66. data/generated/google/apis/clouderrorreporting_v1beta1/classes.rb +121 -121
  67. data/generated/google/apis/clouderrorreporting_v1beta1/representations.rb +25 -25
  68. data/generated/google/apis/clouderrorreporting_v1beta1/service.rb +74 -74
  69. data/generated/google/apis/cloudkms_v1.rb +1 -1
  70. data/generated/google/apis/cloudkms_v1/classes.rb +668 -613
  71. data/generated/google/apis/cloudkms_v1/representations.rb +151 -133
  72. data/generated/google/apis/cloudkms_v1/service.rb +267 -267
  73. data/generated/google/apis/cloudresourcemanager_v1.rb +4 -4
  74. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +1167 -1168
  75. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +193 -193
  76. data/generated/google/apis/cloudresourcemanager_v1/service.rb +470 -469
  77. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
  78. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +508 -509
  79. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +94 -94
  80. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +157 -156
  81. data/generated/google/apis/cloudtrace_v1/service.rb +34 -34
  82. data/generated/google/apis/compute_beta.rb +1 -1
  83. data/generated/google/apis/compute_beta/classes.rb +163 -15
  84. data/generated/google/apis/compute_beta/representations.rb +54 -14
  85. data/generated/google/apis/compute_beta/service.rb +2258 -482
  86. data/generated/google/apis/compute_v1.rb +1 -1
  87. data/generated/google/apis/compute_v1/classes.rb +465 -13
  88. data/generated/google/apis/compute_v1/representations.rb +202 -16
  89. data/generated/google/apis/compute_v1/service.rb +573 -309
  90. data/generated/google/apis/container_v1.rb +1 -1
  91. data/generated/google/apis/container_v1/classes.rb +635 -589
  92. data/generated/google/apis/container_v1/representations.rb +139 -111
  93. data/generated/google/apis/container_v1/service.rb +272 -227
  94. data/generated/google/apis/content_v2.rb +1 -1
  95. data/generated/google/apis/content_v2/classes.rb +86 -74
  96. data/generated/google/apis/content_v2/representations.rb +107 -105
  97. data/generated/google/apis/content_v2/service.rb +131 -130
  98. data/generated/google/apis/customsearch_v1.rb +2 -2
  99. data/generated/google/apis/customsearch_v1/classes.rb +0 -6
  100. data/generated/google/apis/customsearch_v1/representations.rb +0 -1
  101. data/generated/google/apis/customsearch_v1/service.rb +2 -5
  102. data/generated/google/apis/dataflow_v1b3.rb +7 -4
  103. data/generated/google/apis/dataflow_v1b3/classes.rb +3405 -3405
  104. data/generated/google/apis/dataflow_v1b3/representations.rb +834 -834
  105. data/generated/google/apis/dataflow_v1b3/service.rb +244 -244
  106. data/generated/google/apis/dataproc_v1.rb +1 -1
  107. data/generated/google/apis/dataproc_v1/classes.rb +543 -691
  108. data/generated/google/apis/dataproc_v1/representations.rb +129 -185
  109. data/generated/google/apis/dataproc_v1/service.rb +347 -347
  110. data/generated/google/apis/datastore_v1.rb +4 -4
  111. data/generated/google/apis/datastore_v1/classes.rb +833 -833
  112. data/generated/google/apis/datastore_v1/representations.rb +182 -182
  113. data/generated/google/apis/datastore_v1/service.rb +45 -45
  114. data/generated/google/apis/deploymentmanager_v2/classes.rb +5 -5
  115. data/generated/google/apis/deploymentmanager_v2/representations.rb +10 -10
  116. data/generated/google/apis/deploymentmanager_v2/service.rb +20 -20
  117. data/generated/google/apis/discovery_v1/classes.rb +4 -4
  118. data/generated/google/apis/discovery_v1/representations.rb +2 -2
  119. data/generated/google/apis/discovery_v1/service.rb +1 -1
  120. data/generated/google/apis/dns_v1.rb +1 -1
  121. data/generated/google/apis/dns_v1/classes.rb +3 -3
  122. data/generated/google/apis/dns_v1/representations.rb +6 -6
  123. data/generated/google/apis/dns_v1/service.rb +12 -12
  124. data/generated/google/apis/dns_v2beta1.rb +1 -1
  125. data/generated/google/apis/doubleclickbidmanager_v1/service.rb +8 -8
  126. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  127. data/generated/google/apis/drive_v2.rb +1 -1
  128. data/generated/google/apis/drive_v2/classes.rb +1 -1
  129. data/generated/google/apis/drive_v2/service.rb +1 -1
  130. data/generated/google/apis/drive_v3.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 +160 -110
  134. data/generated/google/apis/firebasedynamiclinks_v1/representations.rb +60 -31
  135. data/generated/google/apis/firebasedynamiclinks_v1/service.rb +38 -3
  136. data/generated/google/apis/firebaserules_v1/classes.rb +354 -354
  137. data/generated/google/apis/firebaserules_v1/representations.rb +87 -87
  138. data/generated/google/apis/firebaserules_v1/service.rb +103 -103
  139. data/generated/google/apis/fusiontables_v2/service.rb +2 -2
  140. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  141. data/generated/google/apis/games_configuration_v1configuration/classes.rb +2 -2
  142. data/generated/google/apis/games_configuration_v1configuration/representations.rb +4 -4
  143. data/generated/google/apis/games_configuration_v1configuration/service.rb +8 -8
  144. data/generated/google/apis/games_management_v1management.rb +1 -1
  145. data/generated/google/apis/games_v1.rb +1 -1
  146. data/generated/google/apis/games_v1/classes.rb +23 -23
  147. data/generated/google/apis/games_v1/representations.rb +43 -43
  148. data/generated/google/apis/games_v1/service.rb +72 -72
  149. data/generated/google/apis/genomics_v1.rb +1 -1
  150. data/generated/google/apis/genomics_v1/classes.rb +2316 -2316
  151. data/generated/google/apis/genomics_v1/representations.rb +291 -291
  152. data/generated/google/apis/genomics_v1/service.rb +821 -821
  153. data/generated/google/apis/gmail_v1.rb +1 -1
  154. data/generated/google/apis/groupsmigration_v1.rb +1 -1
  155. data/generated/google/apis/groupssettings_v1.rb +1 -1
  156. data/generated/google/apis/groupssettings_v1/classes.rb +2 -2
  157. data/generated/google/apis/groupssettings_v1/service.rb +3 -0
  158. data/generated/google/apis/iam_v1/classes.rb +338 -338
  159. data/generated/google/apis/iam_v1/representations.rb +98 -98
  160. data/generated/google/apis/iam_v1/service.rb +35 -35
  161. data/generated/google/apis/identitytoolkit_v3/classes.rb +15 -15
  162. data/generated/google/apis/identitytoolkit_v3/representations.rb +30 -30
  163. data/generated/google/apis/identitytoolkit_v3/service.rb +64 -64
  164. data/generated/google/apis/kgsearch_v1/service.rb +13 -13
  165. data/generated/google/apis/language_v1.rb +1 -1
  166. data/generated/google/apis/language_v1/classes.rb +374 -374
  167. data/generated/google/apis/language_v1/representations.rb +97 -97
  168. data/generated/google/apis/language_v1/service.rb +16 -16
  169. data/generated/google/apis/language_v1beta1.rb +1 -1
  170. data/generated/google/apis/language_v1beta1/classes.rb +441 -441
  171. data/generated/google/apis/language_v1beta1/representations.rb +108 -108
  172. data/generated/google/apis/language_v1beta1/service.rb +30 -30
  173. data/generated/google/apis/licensing_v1/service.rb +2 -2
  174. data/generated/google/apis/logging_v2.rb +1 -1
  175. data/generated/google/apis/logging_v2/classes.rb +712 -712
  176. data/generated/google/apis/logging_v2/representations.rb +109 -109
  177. data/generated/google/apis/logging_v2/service.rb +543 -539
  178. data/generated/google/apis/logging_v2beta1.rb +1 -1
  179. data/generated/google/apis/logging_v2beta1/classes.rb +752 -752
  180. data/generated/google/apis/logging_v2beta1/representations.rb +94 -94
  181. data/generated/google/apis/logging_v2beta1/service.rb +257 -256
  182. data/generated/google/apis/manufacturers_v1/classes.rb +130 -130
  183. data/generated/google/apis/manufacturers_v1/representations.rb +28 -28
  184. data/generated/google/apis/mirror_v1/classes.rb +5 -5
  185. data/generated/google/apis/mirror_v1/representations.rb +10 -10
  186. data/generated/google/apis/mirror_v1/service.rb +20 -20
  187. data/generated/google/apis/ml_v1.rb +1 -1
  188. data/generated/google/apis/ml_v1/classes.rb +1830 -1210
  189. data/generated/google/apis/ml_v1/representations.rb +342 -120
  190. data/generated/google/apis/ml_v1/service.rb +365 -258
  191. data/generated/google/apis/monitoring_v3.rb +4 -4
  192. data/generated/google/apis/monitoring_v3/classes.rb +889 -889
  193. data/generated/google/apis/monitoring_v3/representations.rb +174 -174
  194. data/generated/google/apis/monitoring_v3/service.rb +119 -119
  195. data/generated/google/apis/mybusiness_v3/service.rb +5 -5
  196. data/generated/google/apis/oauth2_v2/service.rb +1 -1
  197. data/generated/google/apis/pagespeedonline_v2/classes.rb +11 -11
  198. data/generated/google/apis/pagespeedonline_v2/representations.rb +13 -13
  199. data/generated/google/apis/pagespeedonline_v2/service.rb +1 -1
  200. data/generated/google/apis/partners_v2.rb +1 -1
  201. data/generated/google/apis/partners_v2/classes.rb +550 -536
  202. data/generated/google/apis/partners_v2/representations.rb +118 -116
  203. data/generated/google/apis/partners_v2/service.rb +439 -439
  204. data/generated/google/apis/people_v1.rb +4 -4
  205. data/generated/google/apis/people_v1/classes.rb +414 -413
  206. data/generated/google/apis/people_v1/representations.rb +85 -85
  207. data/generated/google/apis/people_v1/service.rb +111 -18
  208. data/generated/google/apis/plus_domains_v1.rb +1 -1
  209. data/generated/google/apis/plus_domains_v1/service.rb +4 -4
  210. data/generated/google/apis/plus_v1.rb +1 -1
  211. data/generated/google/apis/plus_v1/service.rb +1 -1
  212. data/generated/google/apis/prediction_v1_6/service.rb +8 -8
  213. data/generated/google/apis/proximitybeacon_v1beta1.rb +1 -1
  214. data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +443 -443
  215. data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +92 -92
  216. data/generated/google/apis/proximitybeacon_v1beta1/service.rb +152 -152
  217. data/generated/google/apis/pubsub_v1/classes.rb +249 -249
  218. data/generated/google/apis/pubsub_v1/representations.rb +80 -80
  219. data/generated/google/apis/pubsub_v1/service.rb +415 -415
  220. data/generated/google/apis/qpx_express_v1/classes.rb +2 -2
  221. data/generated/google/apis/qpx_express_v1/representations.rb +4 -4
  222. data/generated/google/apis/qpx_express_v1/service.rb +8 -8
  223. data/generated/google/apis/replicapool_v1beta2/classes.rb +5 -5
  224. data/generated/google/apis/replicapool_v1beta2/representations.rb +10 -10
  225. data/generated/google/apis/replicapool_v1beta2/service.rb +21 -21
  226. data/generated/google/apis/replicapoolupdater_v1beta1/service.rb +1 -1
  227. data/generated/google/apis/resourceviews_v1beta2/classes.rb +5 -5
  228. data/generated/google/apis/resourceviews_v1beta2/representations.rb +10 -10
  229. data/generated/google/apis/resourceviews_v1beta2/service.rb +20 -20
  230. data/generated/google/apis/runtimeconfig_v1.rb +4 -4
  231. data/generated/google/apis/runtimeconfig_v1/classes.rb +15 -15
  232. data/generated/google/apis/runtimeconfig_v1/representations.rb +2 -2
  233. data/generated/google/apis/runtimeconfig_v1/service.rb +4 -4
  234. data/generated/google/apis/script_v1.rb +17 -17
  235. data/generated/google/apis/script_v1/classes.rb +27 -27
  236. data/generated/google/apis/script_v1/representations.rb +5 -5
  237. data/generated/google/apis/script_v1/service.rb +4 -4
  238. data/generated/google/apis/searchconsole_v1.rb +1 -1
  239. data/generated/google/apis/searchconsole_v1/classes.rb +53 -53
  240. data/generated/google/apis/searchconsole_v1/representations.rb +23 -23
  241. data/generated/google/apis/searchconsole_v1/service.rb +4 -4
  242. data/generated/google/apis/servicecontrol_v1.rb +1 -1
  243. data/generated/google/apis/servicecontrol_v1/classes.rb +1175 -1175
  244. data/generated/google/apis/servicecontrol_v1/representations.rb +206 -206
  245. data/generated/google/apis/servicecontrol_v1/service.rb +116 -116
  246. data/generated/google/apis/servicemanagement_v1.rb +1 -1
  247. data/generated/google/apis/servicemanagement_v1/classes.rb +1186 -1125
  248. data/generated/google/apis/servicemanagement_v1/representations.rb +241 -223
  249. data/generated/google/apis/servicemanagement_v1/service.rb +201 -201
  250. data/generated/google/apis/serviceuser_v1.rb +1 -1
  251. data/generated/google/apis/serviceuser_v1/classes.rb +2645 -2641
  252. data/generated/google/apis/serviceuser_v1/representations.rb +234 -234
  253. data/generated/google/apis/serviceuser_v1/service.rb +37 -37
  254. data/generated/google/apis/sheets_v4.rb +1 -1
  255. data/generated/google/apis/sheets_v4/classes.rb +5042 -4111
  256. data/generated/google/apis/sheets_v4/representations.rb +994 -824
  257. data/generated/google/apis/sheets_v4/service.rb +80 -80
  258. data/generated/google/apis/site_verification_v1/classes.rb +6 -6
  259. data/generated/google/apis/site_verification_v1/representations.rb +8 -8
  260. data/generated/google/apis/site_verification_v1/service.rb +12 -12
  261. data/generated/google/apis/slides_v1.rb +1 -1
  262. data/generated/google/apis/slides_v1/classes.rb +2885 -2885
  263. data/generated/google/apis/slides_v1/representations.rb +310 -310
  264. data/generated/google/apis/slides_v1/service.rb +54 -54
  265. data/generated/google/apis/sourcerepo_v1/classes.rb +206 -206
  266. data/generated/google/apis/sourcerepo_v1/representations.rb +52 -52
  267. data/generated/google/apis/sourcerepo_v1/service.rb +5 -5
  268. data/generated/google/apis/spanner_v1.rb +1 -1
  269. data/generated/google/apis/spanner_v1/classes.rb +2142 -2141
  270. data/generated/google/apis/spanner_v1/representations.rb +174 -174
  271. data/generated/google/apis/spanner_v1/service.rb +497 -497
  272. data/generated/google/apis/speech_v1beta1.rb +1 -1
  273. data/generated/google/apis/speech_v1beta1/classes.rb +227 -227
  274. data/generated/google/apis/speech_v1beta1/representations.rb +50 -50
  275. data/generated/google/apis/speech_v1beta1/service.rb +33 -33
  276. data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
  277. data/generated/google/apis/sqladmin_v1beta4/classes.rb +21 -21
  278. data/generated/google/apis/sqladmin_v1beta4/representations.rb +29 -29
  279. data/generated/google/apis/sqladmin_v1beta4/service.rb +56 -56
  280. data/generated/google/apis/storage_v1.rb +1 -1
  281. data/generated/google/apis/storage_v1/classes.rb +40 -6
  282. data/generated/google/apis/storage_v1/representations.rb +20 -4
  283. data/generated/google/apis/storage_v1/service.rb +61 -46
  284. data/generated/google/apis/storagetransfer_v1.rb +1 -1
  285. data/generated/google/apis/storagetransfer_v1/classes.rb +184 -184
  286. data/generated/google/apis/storagetransfer_v1/representations.rb +35 -35
  287. data/generated/google/apis/storagetransfer_v1/service.rb +70 -70
  288. data/generated/google/apis/tagmanager_v1/service.rb +33 -33
  289. data/generated/google/apis/toolresults_v1beta3.rb +1 -1
  290. data/generated/google/apis/translate_v2/classes.rb +12 -12
  291. data/generated/google/apis/translate_v2/representations.rb +10 -10
  292. data/generated/google/apis/translate_v2/service.rb +62 -62
  293. data/generated/google/apis/vision_v1.rb +1 -1
  294. data/generated/google/apis/vision_v1/classes.rb +1267 -1267
  295. data/generated/google/apis/vision_v1/representations.rb +200 -200
  296. data/generated/google/apis/vision_v1/service.rb +10 -10
  297. data/generated/google/apis/webmasters_v3.rb +1 -1
  298. data/generated/google/apis/webmasters_v3/classes.rb +4 -4
  299. data/generated/google/apis/webmasters_v3/representations.rb +8 -8
  300. data/generated/google/apis/webmasters_v3/service.rb +21 -21
  301. data/generated/google/apis/youtube_analytics_v1.rb +1 -1
  302. data/generated/google/apis/youtube_analytics_v1/classes.rb +2 -2
  303. data/generated/google/apis/youtube_analytics_v1/representations.rb +4 -4
  304. data/generated/google/apis/youtube_analytics_v1/service.rb +8 -8
  305. data/generated/google/apis/youtube_v3/classes.rb +20 -20
  306. data/generated/google/apis/youtube_v3/representations.rb +40 -40
  307. data/generated/google/apis/youtube_v3/service.rb +80 -80
  308. data/generated/google/apis/youtubereporting_v1.rb +1 -1
  309. data/generated/google/apis/youtubereporting_v1/classes.rb +129 -129
  310. data/generated/google/apis/youtubereporting_v1/representations.rb +38 -38
  311. data/generated/google/apis/youtubereporting_v1/service.rb +97 -97
  312. data/lib/google/apis/generator/annotator.rb +2 -2
  313. data/lib/google/apis/generator/model.rb +2 -2
  314. data/lib/google/apis/version.rb +1 -1
  315. metadata +2 -2
@@ -22,25 +22,7 @@ module Google
22
22
  module Apis
23
23
  module ContainerV1
24
24
 
25
- class Cluster
26
- class Representation < Google::Apis::Core::JsonRepresentation; end
27
-
28
- include Google::Apis::Core::JsonObjectSupport
29
- end
30
-
31
- class ListOperationsResponse
32
- class Representation < Google::Apis::Core::JsonRepresentation; end
33
-
34
- include Google::Apis::Core::JsonObjectSupport
35
- end
36
-
37
- class CreateNodePoolRequest
38
- class Representation < Google::Apis::Core::JsonRepresentation; end
39
-
40
- include Google::Apis::Core::JsonObjectSupport
41
- end
42
-
43
- class ServerConfig
25
+ class MasterAuth
44
26
  class Representation < Google::Apis::Core::JsonRepresentation; end
45
27
 
46
28
  include Google::Apis::Core::JsonObjectSupport
@@ -52,31 +34,31 @@ module Google
52
34
  include Google::Apis::Core::JsonObjectSupport
53
35
  end
54
36
 
55
- class MasterAuth
37
+ class AutoUpgradeOptions
56
38
  class Representation < Google::Apis::Core::JsonRepresentation; end
57
39
 
58
40
  include Google::Apis::Core::JsonObjectSupport
59
41
  end
60
42
 
61
- class AutoUpgradeOptions
43
+ class ListClustersResponse
62
44
  class Representation < Google::Apis::Core::JsonRepresentation; end
63
45
 
64
46
  include Google::Apis::Core::JsonObjectSupport
65
47
  end
66
48
 
67
- class ListClustersResponse
49
+ class HttpLoadBalancing
68
50
  class Representation < Google::Apis::Core::JsonRepresentation; end
69
51
 
70
52
  include Google::Apis::Core::JsonObjectSupport
71
53
  end
72
54
 
73
- class HttpLoadBalancing
55
+ class NodePoolAutoscaling
74
56
  class Representation < Google::Apis::Core::JsonRepresentation; end
75
57
 
76
58
  include Google::Apis::Core::JsonObjectSupport
77
59
  end
78
60
 
79
- class NodePoolAutoscaling
61
+ class ClientCertificateConfig
80
62
  class Representation < Google::Apis::Core::JsonRepresentation; end
81
63
 
82
64
  include Google::Apis::Core::JsonObjectSupport
@@ -100,13 +82,13 @@ module Google
100
82
  include Google::Apis::Core::JsonObjectSupport
101
83
  end
102
84
 
103
- class Empty
85
+ class SetNodePoolManagementRequest
104
86
  class Representation < Google::Apis::Core::JsonRepresentation; end
105
87
 
106
88
  include Google::Apis::Core::JsonObjectSupport
107
89
  end
108
90
 
109
- class SetNodePoolManagementRequest
91
+ class Empty
110
92
  class Representation < Google::Apis::Core::JsonRepresentation; end
111
93
 
112
94
  include Google::Apis::Core::JsonObjectSupport
@@ -190,88 +172,58 @@ module Google
190
172
  include Google::Apis::Core::JsonObjectSupport
191
173
  end
192
174
 
193
- class UpdateClusterRequest
175
+ class SetNodePoolSizeRequest
194
176
  class Representation < Google::Apis::Core::JsonRepresentation; end
195
177
 
196
178
  include Google::Apis::Core::JsonObjectSupport
197
179
  end
198
180
 
199
- class Cluster
200
- # @private
201
- class Representation < Google::Apis::Core::JsonRepresentation
202
- property :label_fingerprint, as: 'labelFingerprint'
203
- property :zone, as: 'zone'
204
- property :logging_service, as: 'loggingService'
205
- property :node_ipv4_cidr_size, as: 'nodeIpv4CidrSize'
206
- property :expire_time, as: 'expireTime'
207
- property :status_message, as: 'statusMessage'
208
- property :master_auth, as: 'masterAuth', class: Google::Apis::ContainerV1::MasterAuth, decorator: Google::Apis::ContainerV1::MasterAuth::Representation
181
+ class UpdateClusterRequest
182
+ class Representation < Google::Apis::Core::JsonRepresentation; end
209
183
 
210
- property :current_master_version, as: 'currentMasterVersion'
211
- property :node_config, as: 'nodeConfig', class: Google::Apis::ContainerV1::NodeConfig, decorator: Google::Apis::ContainerV1::NodeConfig::Representation
184
+ include Google::Apis::Core::JsonObjectSupport
185
+ end
212
186
 
213
- property :addons_config, as: 'addonsConfig', class: Google::Apis::ContainerV1::AddonsConfig, decorator: Google::Apis::ContainerV1::AddonsConfig::Representation
187
+ class Cluster
188
+ class Representation < Google::Apis::Core::JsonRepresentation; end
214
189
 
215
- property :status, as: 'status'
216
- property :current_node_version, as: 'currentNodeVersion'
217
- property :subnetwork, as: 'subnetwork'
218
- hash :resource_labels, as: 'resourceLabels'
219
- property :name, as: 'name'
220
- property :initial_cluster_version, as: 'initialClusterVersion'
221
- property :endpoint, as: 'endpoint'
222
- property :legacy_abac, as: 'legacyAbac', class: Google::Apis::ContainerV1::LegacyAbac, decorator: Google::Apis::ContainerV1::LegacyAbac::Representation
190
+ include Google::Apis::Core::JsonObjectSupport
191
+ end
223
192
 
224
- property :create_time, as: 'createTime'
225
- property :cluster_ipv4_cidr, as: 'clusterIpv4Cidr'
226
- property :initial_node_count, as: 'initialNodeCount'
227
- property :self_link, as: 'selfLink'
228
- collection :locations, as: 'locations'
229
- collection :node_pools, as: 'nodePools', class: Google::Apis::ContainerV1::NodePool, decorator: Google::Apis::ContainerV1::NodePool::Representation
193
+ class CreateNodePoolRequest
194
+ class Representation < Google::Apis::Core::JsonRepresentation; end
230
195
 
231
- collection :instance_group_urls, as: 'instanceGroupUrls'
232
- property :services_ipv4_cidr, as: 'servicesIpv4Cidr'
233
- property :enable_kubernetes_alpha, as: 'enableKubernetesAlpha'
234
- property :description, as: 'description'
235
- property :current_node_count, as: 'currentNodeCount'
236
- property :monitoring_service, as: 'monitoringService'
237
- property :network, as: 'network'
238
- end
196
+ include Google::Apis::Core::JsonObjectSupport
239
197
  end
240
198
 
241
199
  class ListOperationsResponse
242
- # @private
243
- class Representation < Google::Apis::Core::JsonRepresentation
244
- collection :operations, as: 'operations', class: Google::Apis::ContainerV1::Operation, decorator: Google::Apis::ContainerV1::Operation::Representation
200
+ class Representation < Google::Apis::Core::JsonRepresentation; end
245
201
 
246
- collection :missing_zones, as: 'missingZones'
247
- end
202
+ include Google::Apis::Core::JsonObjectSupport
248
203
  end
249
204
 
250
- class CreateNodePoolRequest
251
- # @private
252
- class Representation < Google::Apis::Core::JsonRepresentation
253
- property :node_pool, as: 'nodePool', class: Google::Apis::ContainerV1::NodePool, decorator: Google::Apis::ContainerV1::NodePool::Representation
205
+ class ServerConfig
206
+ class Representation < Google::Apis::Core::JsonRepresentation; end
254
207
 
255
- end
208
+ include Google::Apis::Core::JsonObjectSupport
256
209
  end
257
210
 
258
- class ServerConfig
211
+ class MasterAuth
259
212
  # @private
260
213
  class Representation < Google::Apis::Core::JsonRepresentation
261
- collection :valid_master_versions, as: 'validMasterVersions'
262
- property :default_cluster_version, as: 'defaultClusterVersion'
263
- property :default_image_type, as: 'defaultImageType'
264
- collection :valid_node_versions, as: 'validNodeVersions'
265
- collection :valid_image_types, as: 'validImageTypes'
214
+ property :password, as: 'password'
215
+ property :client_certificate_config, as: 'clientCertificateConfig', class: Google::Apis::ContainerV1::ClientCertificateConfig, decorator: Google::Apis::ContainerV1::ClientCertificateConfig::Representation
216
+
217
+ property :client_key, as: 'clientKey'
218
+ property :cluster_ca_certificate, as: 'clusterCaCertificate'
219
+ property :client_certificate, as: 'clientCertificate'
220
+ property :username, as: 'username'
266
221
  end
267
222
  end
268
223
 
269
224
  class NodeConfig
270
225
  # @private
271
226
  class Representation < Google::Apis::Core::JsonRepresentation
272
- property :image_type, as: 'imageType'
273
- collection :oauth_scopes, as: 'oauthScopes'
274
- property :preemptible, as: 'preemptible'
275
227
  hash :labels, as: 'labels'
276
228
  property :local_ssd_count, as: 'localSsdCount'
277
229
  hash :metadata, as: 'metadata'
@@ -279,17 +231,9 @@ module Google
279
231
  collection :tags, as: 'tags'
280
232
  property :service_account, as: 'serviceAccount'
281
233
  property :machine_type, as: 'machineType'
282
- end
283
- end
284
-
285
- class MasterAuth
286
- # @private
287
- class Representation < Google::Apis::Core::JsonRepresentation
288
- property :password, as: 'password'
289
- property :client_certificate, as: 'clientCertificate'
290
- property :username, as: 'username'
291
- property :client_key, as: 'clientKey'
292
- property :cluster_ca_certificate, as: 'clusterCaCertificate'
234
+ property :image_type, as: 'imageType'
235
+ collection :oauth_scopes, as: 'oauthScopes'
236
+ property :preemptible, as: 'preemptible'
293
237
  end
294
238
  end
295
239
 
@@ -304,9 +248,9 @@ module Google
304
248
  class ListClustersResponse
305
249
  # @private
306
250
  class Representation < Google::Apis::Core::JsonRepresentation
251
+ collection :missing_zones, as: 'missingZones'
307
252
  collection :clusters, as: 'clusters', class: Google::Apis::ContainerV1::Cluster, decorator: Google::Apis::ContainerV1::Cluster::Representation
308
253
 
309
- collection :missing_zones, as: 'missingZones'
310
254
  end
311
255
  end
312
256
 
@@ -320,9 +264,16 @@ module Google
320
264
  class NodePoolAutoscaling
321
265
  # @private
322
266
  class Representation < Google::Apis::Core::JsonRepresentation
267
+ property :enabled, as: 'enabled'
323
268
  property :max_node_count, as: 'maxNodeCount'
324
269
  property :min_node_count, as: 'minNodeCount'
325
- property :enabled, as: 'enabled'
270
+ end
271
+ end
272
+
273
+ class ClientCertificateConfig
274
+ # @private
275
+ class Representation < Google::Apis::Core::JsonRepresentation
276
+ property :issue_client_certificate, as: 'issueClientCertificate'
326
277
  end
327
278
  end
328
279
 
@@ -338,16 +289,16 @@ module Google
338
289
  class ClusterUpdate
339
290
  # @private
340
291
  class Representation < Google::Apis::Core::JsonRepresentation
341
- property :desired_master_version, as: 'desiredMasterVersion'
342
- property :desired_node_pool_autoscaling, as: 'desiredNodePoolAutoscaling', class: Google::Apis::ContainerV1::NodePoolAutoscaling, decorator: Google::Apis::ContainerV1::NodePoolAutoscaling::Representation
343
-
344
- collection :desired_locations, as: 'desiredLocations'
345
- property :desired_monitoring_service, as: 'desiredMonitoringService'
346
292
  property :desired_image_type, as: 'desiredImageType'
347
293
  property :desired_addons_config, as: 'desiredAddonsConfig', class: Google::Apis::ContainerV1::AddonsConfig, decorator: Google::Apis::ContainerV1::AddonsConfig::Representation
348
294
 
349
295
  property :desired_node_pool_id, as: 'desiredNodePoolId'
350
296
  property :desired_node_version, as: 'desiredNodeVersion'
297
+ property :desired_master_version, as: 'desiredMasterVersion'
298
+ property :desired_node_pool_autoscaling, as: 'desiredNodePoolAutoscaling', class: Google::Apis::ContainerV1::NodePoolAutoscaling, decorator: Google::Apis::ContainerV1::NodePoolAutoscaling::Representation
299
+
300
+ collection :desired_locations, as: 'desiredLocations'
301
+ property :desired_monitoring_service, as: 'desiredMonitoringService'
351
302
  end
352
303
  end
353
304
 
@@ -358,17 +309,17 @@ module Google
358
309
  end
359
310
  end
360
311
 
361
- class Empty
312
+ class SetNodePoolManagementRequest
362
313
  # @private
363
314
  class Representation < Google::Apis::Core::JsonRepresentation
315
+ property :management, as: 'management', class: Google::Apis::ContainerV1::NodeManagement, decorator: Google::Apis::ContainerV1::NodeManagement::Representation
316
+
364
317
  end
365
318
  end
366
319
 
367
- class SetNodePoolManagementRequest
320
+ class Empty
368
321
  # @private
369
322
  class Representation < Google::Apis::Core::JsonRepresentation
370
- property :management, as: 'management', class: Google::Apis::ContainerV1::NodeManagement, decorator: Google::Apis::ContainerV1::NodeManagement::Representation
371
-
372
323
  end
373
324
  end
374
325
 
@@ -418,19 +369,19 @@ module Google
418
369
  class NodePool
419
370
  # @private
420
371
  class Representation < Google::Apis::Core::JsonRepresentation
372
+ property :status, as: 'status'
373
+ property :config, as: 'config', class: Google::Apis::ContainerV1::NodeConfig, decorator: Google::Apis::ContainerV1::NodeConfig::Representation
374
+
375
+ property :name, as: 'name'
376
+ property :status_message, as: 'statusMessage'
421
377
  property :autoscaling, as: 'autoscaling', class: Google::Apis::ContainerV1::NodePoolAutoscaling, decorator: Google::Apis::ContainerV1::NodePoolAutoscaling::Representation
422
378
 
423
- property :initial_node_count, as: 'initialNodeCount'
424
379
  property :management, as: 'management', class: Google::Apis::ContainerV1::NodeManagement, decorator: Google::Apis::ContainerV1::NodeManagement::Representation
425
380
 
381
+ property :initial_node_count, as: 'initialNodeCount'
426
382
  property :self_link, as: 'selfLink'
427
- collection :instance_group_urls, as: 'instanceGroupUrls'
428
383
  property :version, as: 'version'
429
- property :status, as: 'status'
430
- property :config, as: 'config', class: Google::Apis::ContainerV1::NodeConfig, decorator: Google::Apis::ContainerV1::NodeConfig::Representation
431
-
432
- property :status_message, as: 'statusMessage'
433
- property :name, as: 'name'
384
+ collection :instance_group_urls, as: 'instanceGroupUrls'
434
385
  end
435
386
  end
436
387
 
@@ -460,7 +411,6 @@ module Google
460
411
  class Operation
461
412
  # @private
462
413
  class Representation < Google::Apis::Core::JsonRepresentation
463
- property :zone, as: 'zone'
464
414
  property :status, as: 'status'
465
415
  property :name, as: 'name'
466
416
  property :status_message, as: 'statusMessage'
@@ -468,6 +418,7 @@ module Google
468
418
  property :target_link, as: 'targetLink'
469
419
  property :detail, as: 'detail'
470
420
  property :operation_type, as: 'operationType'
421
+ property :zone, as: 'zone'
471
422
  end
472
423
  end
473
424
 
@@ -487,6 +438,13 @@ module Google
487
438
  end
488
439
  end
489
440
 
441
+ class SetNodePoolSizeRequest
442
+ # @private
443
+ class Representation < Google::Apis::Core::JsonRepresentation
444
+ property :node_count, as: 'nodeCount'
445
+ end
446
+ end
447
+
490
448
  class UpdateClusterRequest
491
449
  # @private
492
450
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -494,6 +452,76 @@ module Google
494
452
 
495
453
  end
496
454
  end
455
+
456
+ class Cluster
457
+ # @private
458
+ class Representation < Google::Apis::Core::JsonRepresentation
459
+ property :network, as: 'network'
460
+ property :label_fingerprint, as: 'labelFingerprint'
461
+ property :zone, as: 'zone'
462
+ property :node_ipv4_cidr_size, as: 'nodeIpv4CidrSize'
463
+ property :expire_time, as: 'expireTime'
464
+ property :logging_service, as: 'loggingService'
465
+ property :status_message, as: 'statusMessage'
466
+ property :master_auth, as: 'masterAuth', class: Google::Apis::ContainerV1::MasterAuth, decorator: Google::Apis::ContainerV1::MasterAuth::Representation
467
+
468
+ property :current_master_version, as: 'currentMasterVersion'
469
+ property :node_config, as: 'nodeConfig', class: Google::Apis::ContainerV1::NodeConfig, decorator: Google::Apis::ContainerV1::NodeConfig::Representation
470
+
471
+ property :addons_config, as: 'addonsConfig', class: Google::Apis::ContainerV1::AddonsConfig, decorator: Google::Apis::ContainerV1::AddonsConfig::Representation
472
+
473
+ property :status, as: 'status'
474
+ property :current_node_version, as: 'currentNodeVersion'
475
+ property :subnetwork, as: 'subnetwork'
476
+ hash :resource_labels, as: 'resourceLabels'
477
+ property :name, as: 'name'
478
+ property :initial_cluster_version, as: 'initialClusterVersion'
479
+ property :endpoint, as: 'endpoint'
480
+ property :legacy_abac, as: 'legacyAbac', class: Google::Apis::ContainerV1::LegacyAbac, decorator: Google::Apis::ContainerV1::LegacyAbac::Representation
481
+
482
+ property :create_time, as: 'createTime'
483
+ property :cluster_ipv4_cidr, as: 'clusterIpv4Cidr'
484
+ property :initial_node_count, as: 'initialNodeCount'
485
+ collection :node_pools, as: 'nodePools', class: Google::Apis::ContainerV1::NodePool, decorator: Google::Apis::ContainerV1::NodePool::Representation
486
+
487
+ collection :locations, as: 'locations'
488
+ property :self_link, as: 'selfLink'
489
+ collection :instance_group_urls, as: 'instanceGroupUrls'
490
+ property :services_ipv4_cidr, as: 'servicesIpv4Cidr'
491
+ property :enable_kubernetes_alpha, as: 'enableKubernetesAlpha'
492
+ property :description, as: 'description'
493
+ property :current_node_count, as: 'currentNodeCount'
494
+ property :monitoring_service, as: 'monitoringService'
495
+ end
496
+ end
497
+
498
+ class CreateNodePoolRequest
499
+ # @private
500
+ class Representation < Google::Apis::Core::JsonRepresentation
501
+ property :node_pool, as: 'nodePool', class: Google::Apis::ContainerV1::NodePool, decorator: Google::Apis::ContainerV1::NodePool::Representation
502
+
503
+ end
504
+ end
505
+
506
+ class ListOperationsResponse
507
+ # @private
508
+ class Representation < Google::Apis::Core::JsonRepresentation
509
+ collection :operations, as: 'operations', class: Google::Apis::ContainerV1::Operation, decorator: Google::Apis::ContainerV1::Operation::Representation
510
+
511
+ collection :missing_zones, as: 'missingZones'
512
+ end
513
+ end
514
+
515
+ class ServerConfig
516
+ # @private
517
+ class Representation < Google::Apis::Core::JsonRepresentation
518
+ collection :valid_master_versions, as: 'validMasterVersions'
519
+ property :default_cluster_version, as: 'defaultClusterVersion'
520
+ property :default_image_type, as: 'defaultImageType'
521
+ collection :valid_node_versions, as: 'validNodeVersions'
522
+ collection :valid_image_types, as: 'validImageTypes'
523
+ end
524
+ end
497
525
  end
498
526
  end
499
527
  end
@@ -55,11 +55,11 @@ module Google
55
55
  # @param [String] zone
56
56
  # The name of the Google Compute Engine [zone](/compute/docs/zones#available)
57
57
  # to return operations for.
58
+ # @param [String] fields
59
+ # Selector specifying which fields to include in a partial response.
58
60
  # @param [String] quota_user
59
61
  # Available to use for quota purposes for server-side applications. Can be any
60
62
  # arbitrary string assigned to a user, but should not exceed 40 characters.
61
- # @param [String] fields
62
- # Selector specifying which fields to include in a partial response.
63
63
  # @param [Google::Apis::RequestOptions] options
64
64
  # Request-specific options
65
65
  #
@@ -72,70 +72,124 @@ module Google
72
72
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
73
73
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
74
74
  # @raise [Google::Apis::AuthorizationError] Authorization is required
75
- def get_project_zone_serverconfig(project_id, zone, quota_user: nil, fields: nil, options: nil, &block)
75
+ def get_project_zone_serverconfig(project_id, zone, fields: nil, quota_user: nil, options: nil, &block)
76
76
  command = make_simple_command(:get, 'v1/projects/{projectId}/zones/{zone}/serverconfig', options)
77
77
  command.response_representation = Google::Apis::ContainerV1::ServerConfig::Representation
78
78
  command.response_class = Google::Apis::ContainerV1::ServerConfig
79
79
  command.params['projectId'] = project_id unless project_id.nil?
80
80
  command.params['zone'] = zone unless zone.nil?
81
- command.query['quotaUser'] = quota_user unless quota_user.nil?
82
81
  command.query['fields'] = fields unless fields.nil?
82
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
83
83
  execute_or_queue_command(command, &block)
84
84
  end
85
85
 
86
- # Lists all clusters owned by a project in either the specified zone or all
87
- # zones.
86
+ # Start master IP rotation.
88
87
  # @param [String] project_id
89
88
  # The Google Developers Console [project ID or project
90
- # number](https://support.google.com/cloud/answer/6158840).
89
+ # number](https://developers.google.com/console/help/new/#projectnumber).
91
90
  # @param [String] zone
92
91
  # The name of the Google Compute Engine
93
92
  # [zone](/compute/docs/zones#available) in which the cluster
94
- # resides, or "-" for all zones.
93
+ # resides.
94
+ # @param [String] cluster_id
95
+ # The name of the cluster.
96
+ # @param [Google::Apis::ContainerV1::StartIpRotationRequest] start_ip_rotation_request_object
97
+ # @param [String] fields
98
+ # Selector specifying which fields to include in a partial response.
95
99
  # @param [String] quota_user
96
100
  # Available to use for quota purposes for server-side applications. Can be any
97
101
  # arbitrary string assigned to a user, but should not exceed 40 characters.
98
- # @param [String] fields
99
- # Selector specifying which fields to include in a partial response.
100
102
  # @param [Google::Apis::RequestOptions] options
101
103
  # Request-specific options
102
104
  #
103
105
  # @yield [result, err] Result & error if block supplied
104
- # @yieldparam result [Google::Apis::ContainerV1::ListClustersResponse] parsed result object
106
+ # @yieldparam result [Google::Apis::ContainerV1::Operation] parsed result object
105
107
  # @yieldparam err [StandardError] error object if request failed
106
108
  #
107
- # @return [Google::Apis::ContainerV1::ListClustersResponse]
109
+ # @return [Google::Apis::ContainerV1::Operation]
108
110
  #
109
111
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
110
112
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
111
113
  # @raise [Google::Apis::AuthorizationError] Authorization is required
112
- def list_project_zone_clusters(project_id, zone, quota_user: nil, fields: nil, options: nil, &block)
113
- command = make_simple_command(:get, 'v1/projects/{projectId}/zones/{zone}/clusters', options)
114
- command.response_representation = Google::Apis::ContainerV1::ListClustersResponse::Representation
115
- command.response_class = Google::Apis::ContainerV1::ListClustersResponse
114
+ def start_cluster_ip_rotation(project_id, zone, cluster_id, start_ip_rotation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
115
+ command = make_simple_command(:post, 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:startIpRotation', options)
116
+ command.request_representation = Google::Apis::ContainerV1::StartIpRotationRequest::Representation
117
+ command.request_object = start_ip_rotation_request_object
118
+ command.response_representation = Google::Apis::ContainerV1::Operation::Representation
119
+ command.response_class = Google::Apis::ContainerV1::Operation
116
120
  command.params['projectId'] = project_id unless project_id.nil?
117
121
  command.params['zone'] = zone unless zone.nil?
118
- command.query['quotaUser'] = quota_user unless quota_user.nil?
122
+ command.params['clusterId'] = cluster_id unless cluster_id.nil?
119
123
  command.query['fields'] = fields unless fields.nil?
124
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
120
125
  execute_or_queue_command(command, &block)
121
126
  end
122
127
 
123
- # Sets labels on a cluster.
128
+ # Used to set master auth materials. Currently supports :-
129
+ # Changing the admin password of a specific cluster.
130
+ # This can be either via password generation or explicitly set the password.
124
131
  # @param [String] project_id
125
132
  # The Google Developers Console [project ID or project
126
- # number](https://developers.google.com/console/help/new/#projectnumber).
133
+ # number](https://support.google.com/cloud/answer/6158840).
127
134
  # @param [String] zone
128
135
  # The name of the Google Compute Engine
129
136
  # [zone](/compute/docs/zones#available) in which the cluster
130
137
  # resides.
131
138
  # @param [String] cluster_id
132
- # The name of the cluster.
133
- # @param [Google::Apis::ContainerV1::SetLabelsRequest] set_labels_request_object
139
+ # The name of the cluster to upgrade.
140
+ # @param [Google::Apis::ContainerV1::SetMasterAuthRequest] set_master_auth_request_object
141
+ # @param [String] fields
142
+ # Selector specifying which fields to include in a partial response.
134
143
  # @param [String] quota_user
135
144
  # Available to use for quota purposes for server-side applications. Can be any
136
145
  # arbitrary string assigned to a user, but should not exceed 40 characters.
146
+ # @param [Google::Apis::RequestOptions] options
147
+ # Request-specific options
148
+ #
149
+ # @yield [result, err] Result & error if block supplied
150
+ # @yieldparam result [Google::Apis::ContainerV1::Operation] parsed result object
151
+ # @yieldparam err [StandardError] error object if request failed
152
+ #
153
+ # @return [Google::Apis::ContainerV1::Operation]
154
+ #
155
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
156
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
157
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
158
+ def set_cluster_master_auth(project_id, zone, cluster_id, set_master_auth_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
159
+ command = make_simple_command(:post, 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:setMasterAuth', options)
160
+ command.request_representation = Google::Apis::ContainerV1::SetMasterAuthRequest::Representation
161
+ command.request_object = set_master_auth_request_object
162
+ command.response_representation = Google::Apis::ContainerV1::Operation::Representation
163
+ command.response_class = Google::Apis::ContainerV1::Operation
164
+ command.params['projectId'] = project_id unless project_id.nil?
165
+ command.params['zone'] = zone unless zone.nil?
166
+ command.params['clusterId'] = cluster_id unless cluster_id.nil?
167
+ command.query['fields'] = fields unless fields.nil?
168
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
169
+ execute_or_queue_command(command, &block)
170
+ end
171
+
172
+ # Deletes the cluster, including the Kubernetes endpoint and all worker
173
+ # nodes.
174
+ # Firewalls and routes that were configured during cluster creation
175
+ # are also deleted.
176
+ # Other Google Compute Engine resources that might be in use by the cluster
177
+ # (e.g. load balancer resources) will not be deleted if they weren't present
178
+ # at the initial create time.
179
+ # @param [String] project_id
180
+ # The Google Developers Console [project ID or project
181
+ # number](https://support.google.com/cloud/answer/6158840).
182
+ # @param [String] zone
183
+ # The name of the Google Compute Engine
184
+ # [zone](/compute/docs/zones#available) in which the cluster
185
+ # resides.
186
+ # @param [String] cluster_id
187
+ # The name of the cluster to delete.
137
188
  # @param [String] fields
138
189
  # Selector specifying which fields to include in a partial response.
190
+ # @param [String] quota_user
191
+ # Available to use for quota purposes for server-side applications. Can be any
192
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
139
193
  # @param [Google::Apis::RequestOptions] options
140
194
  # Request-specific options
141
195
  #
@@ -148,17 +202,52 @@ module Google
148
202
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
149
203
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
150
204
  # @raise [Google::Apis::AuthorizationError] Authorization is required
151
- def resource_project_zone_cluster_labels(project_id, zone, cluster_id, set_labels_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
152
- command = make_simple_command(:post, 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/resourceLabels', options)
153
- command.request_representation = Google::Apis::ContainerV1::SetLabelsRequest::Representation
154
- command.request_object = set_labels_request_object
205
+ def delete_zone_cluster(project_id, zone, cluster_id, fields: nil, quota_user: nil, options: nil, &block)
206
+ command = make_simple_command(:delete, 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}', options)
155
207
  command.response_representation = Google::Apis::ContainerV1::Operation::Representation
156
208
  command.response_class = Google::Apis::ContainerV1::Operation
157
209
  command.params['projectId'] = project_id unless project_id.nil?
158
210
  command.params['zone'] = zone unless zone.nil?
159
211
  command.params['clusterId'] = cluster_id unless cluster_id.nil?
212
+ command.query['fields'] = fields unless fields.nil?
160
213
  command.query['quotaUser'] = quota_user unless quota_user.nil?
214
+ execute_or_queue_command(command, &block)
215
+ end
216
+
217
+ # Lists all clusters owned by a project in either the specified zone or all
218
+ # zones.
219
+ # @param [String] project_id
220
+ # The Google Developers Console [project ID or project
221
+ # number](https://support.google.com/cloud/answer/6158840).
222
+ # @param [String] zone
223
+ # The name of the Google Compute Engine
224
+ # [zone](/compute/docs/zones#available) in which the cluster
225
+ # resides, or "-" for all zones.
226
+ # @param [String] fields
227
+ # Selector specifying which fields to include in a partial response.
228
+ # @param [String] quota_user
229
+ # Available to use for quota purposes for server-side applications. Can be any
230
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
231
+ # @param [Google::Apis::RequestOptions] options
232
+ # Request-specific options
233
+ #
234
+ # @yield [result, err] Result & error if block supplied
235
+ # @yieldparam result [Google::Apis::ContainerV1::ListClustersResponse] parsed result object
236
+ # @yieldparam err [StandardError] error object if request failed
237
+ #
238
+ # @return [Google::Apis::ContainerV1::ListClustersResponse]
239
+ #
240
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
241
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
242
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
243
+ def list_zone_clusters(project_id, zone, fields: nil, quota_user: nil, options: nil, &block)
244
+ command = make_simple_command(:get, 'v1/projects/{projectId}/zones/{zone}/clusters', options)
245
+ command.response_representation = Google::Apis::ContainerV1::ListClustersResponse::Representation
246
+ command.response_class = Google::Apis::ContainerV1::ListClustersResponse
247
+ command.params['projectId'] = project_id unless project_id.nil?
248
+ command.params['zone'] = zone unless zone.nil?
161
249
  command.query['fields'] = fields unless fields.nil?
250
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
162
251
  execute_or_queue_command(command, &block)
163
252
  end
164
253
 
@@ -180,11 +269,11 @@ module Google
180
269
  # [zone](/compute/docs/zones#available) in which the cluster
181
270
  # resides.
182
271
  # @param [Google::Apis::ContainerV1::CreateClusterRequest] create_cluster_request_object
272
+ # @param [String] fields
273
+ # Selector specifying which fields to include in a partial response.
183
274
  # @param [String] quota_user
184
275
  # Available to use for quota purposes for server-side applications. Can be any
185
276
  # arbitrary string assigned to a user, but should not exceed 40 characters.
186
- # @param [String] fields
187
- # Selector specifying which fields to include in a partial response.
188
277
  # @param [Google::Apis::RequestOptions] options
189
278
  # Request-specific options
190
279
  #
@@ -197,7 +286,7 @@ module Google
197
286
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
198
287
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
199
288
  # @raise [Google::Apis::AuthorizationError] Authorization is required
200
- def create_cluster(project_id, zone, create_cluster_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
289
+ def create_cluster(project_id, zone, create_cluster_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
201
290
  command = make_simple_command(:post, 'v1/projects/{projectId}/zones/{zone}/clusters', options)
202
291
  command.request_representation = Google::Apis::ContainerV1::CreateClusterRequest::Representation
203
292
  command.request_object = create_cluster_request_object
@@ -205,12 +294,12 @@ module Google
205
294
  command.response_class = Google::Apis::ContainerV1::Operation
206
295
  command.params['projectId'] = project_id unless project_id.nil?
207
296
  command.params['zone'] = zone unless zone.nil?
208
- command.query['quotaUser'] = quota_user unless quota_user.nil?
209
297
  command.query['fields'] = fields unless fields.nil?
298
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
210
299
  execute_or_queue_command(command, &block)
211
300
  end
212
301
 
213
- # Completes master IP rotation.
302
+ # Sets labels on a cluster.
214
303
  # @param [String] project_id
215
304
  # The Google Developers Console [project ID or project
216
305
  # number](https://developers.google.com/console/help/new/#projectnumber).
@@ -220,12 +309,12 @@ module Google
220
309
  # resides.
221
310
  # @param [String] cluster_id
222
311
  # The name of the cluster.
223
- # @param [Google::Apis::ContainerV1::CompleteIpRotationRequest] complete_ip_rotation_request_object
312
+ # @param [Google::Apis::ContainerV1::SetLabelsRequest] set_labels_request_object
313
+ # @param [String] fields
314
+ # Selector specifying which fields to include in a partial response.
224
315
  # @param [String] quota_user
225
316
  # Available to use for quota purposes for server-side applications. Can be any
226
317
  # arbitrary string assigned to a user, but should not exceed 40 characters.
227
- # @param [String] fields
228
- # Selector specifying which fields to include in a partial response.
229
318
  # @param [Google::Apis::RequestOptions] options
230
319
  # Request-specific options
231
320
  #
@@ -238,36 +327,36 @@ module Google
238
327
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
239
328
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
240
329
  # @raise [Google::Apis::AuthorizationError] Authorization is required
241
- def complete_cluster_ip_rotation(project_id, zone, cluster_id, complete_ip_rotation_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
242
- command = make_simple_command(:post, 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:completeIpRotation', options)
243
- command.request_representation = Google::Apis::ContainerV1::CompleteIpRotationRequest::Representation
244
- command.request_object = complete_ip_rotation_request_object
330
+ def resource_project_zone_cluster_labels(project_id, zone, cluster_id, set_labels_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
331
+ command = make_simple_command(:post, 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/resourceLabels', options)
332
+ command.request_representation = Google::Apis::ContainerV1::SetLabelsRequest::Representation
333
+ command.request_object = set_labels_request_object
245
334
  command.response_representation = Google::Apis::ContainerV1::Operation::Representation
246
335
  command.response_class = Google::Apis::ContainerV1::Operation
247
336
  command.params['projectId'] = project_id unless project_id.nil?
248
337
  command.params['zone'] = zone unless zone.nil?
249
338
  command.params['clusterId'] = cluster_id unless cluster_id.nil?
250
- command.query['quotaUser'] = quota_user unless quota_user.nil?
251
339
  command.query['fields'] = fields unless fields.nil?
340
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
252
341
  execute_or_queue_command(command, &block)
253
342
  end
254
343
 
255
- # Enables or disables the ABAC authorization mechanism on a cluster.
344
+ # Completes master IP rotation.
256
345
  # @param [String] project_id
257
346
  # The Google Developers Console [project ID or project
258
- # number](https://support.google.com/cloud/answer/6158840).
347
+ # number](https://developers.google.com/console/help/new/#projectnumber).
259
348
  # @param [String] zone
260
349
  # The name of the Google Compute Engine
261
350
  # [zone](/compute/docs/zones#available) in which the cluster
262
351
  # resides.
263
352
  # @param [String] cluster_id
264
- # The name of the cluster to update.
265
- # @param [Google::Apis::ContainerV1::SetLegacyAbacRequest] set_legacy_abac_request_object
353
+ # The name of the cluster.
354
+ # @param [Google::Apis::ContainerV1::CompleteIpRotationRequest] complete_ip_rotation_request_object
355
+ # @param [String] fields
356
+ # Selector specifying which fields to include in a partial response.
266
357
  # @param [String] quota_user
267
358
  # Available to use for quota purposes for server-side applications. Can be any
268
359
  # arbitrary string assigned to a user, but should not exceed 40 characters.
269
- # @param [String] fields
270
- # Selector specifying which fields to include in a partial response.
271
360
  # @param [Google::Apis::RequestOptions] options
272
361
  # Request-specific options
273
362
  #
@@ -280,17 +369,17 @@ module Google
280
369
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
281
370
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
282
371
  # @raise [Google::Apis::AuthorizationError] Authorization is required
283
- def legacy_project_zone_cluster_abac(project_id, zone, cluster_id, set_legacy_abac_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
284
- command = make_simple_command(:post, 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/legacyAbac', options)
285
- command.request_representation = Google::Apis::ContainerV1::SetLegacyAbacRequest::Representation
286
- command.request_object = set_legacy_abac_request_object
372
+ def complete_cluster_ip_rotation(project_id, zone, cluster_id, complete_ip_rotation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
373
+ command = make_simple_command(:post, 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:completeIpRotation', options)
374
+ command.request_representation = Google::Apis::ContainerV1::CompleteIpRotationRequest::Representation
375
+ command.request_object = complete_ip_rotation_request_object
287
376
  command.response_representation = Google::Apis::ContainerV1::Operation::Representation
288
377
  command.response_class = Google::Apis::ContainerV1::Operation
289
378
  command.params['projectId'] = project_id unless project_id.nil?
290
379
  command.params['zone'] = zone unless zone.nil?
291
380
  command.params['clusterId'] = cluster_id unless cluster_id.nil?
292
- command.query['quotaUser'] = quota_user unless quota_user.nil?
293
381
  command.query['fields'] = fields unless fields.nil?
382
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
294
383
  execute_or_queue_command(command, &block)
295
384
  end
296
385
 
@@ -304,11 +393,11 @@ module Google
304
393
  # resides.
305
394
  # @param [String] cluster_id
306
395
  # The name of the cluster to retrieve.
396
+ # @param [String] fields
397
+ # Selector specifying which fields to include in a partial response.
307
398
  # @param [String] quota_user
308
399
  # Available to use for quota purposes for server-side applications. Can be any
309
400
  # arbitrary string assigned to a user, but should not exceed 40 characters.
310
- # @param [String] fields
311
- # Selector specifying which fields to include in a partial response.
312
401
  # @param [Google::Apis::RequestOptions] options
313
402
  # Request-specific options
314
403
  #
@@ -321,19 +410,19 @@ module Google
321
410
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
322
411
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
323
412
  # @raise [Google::Apis::AuthorizationError] Authorization is required
324
- def get_project_zone_cluster(project_id, zone, cluster_id, quota_user: nil, fields: nil, options: nil, &block)
413
+ def get_zone_cluster(project_id, zone, cluster_id, fields: nil, quota_user: nil, options: nil, &block)
325
414
  command = make_simple_command(:get, 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}', options)
326
415
  command.response_representation = Google::Apis::ContainerV1::Cluster::Representation
327
416
  command.response_class = Google::Apis::ContainerV1::Cluster
328
417
  command.params['projectId'] = project_id unless project_id.nil?
329
418
  command.params['zone'] = zone unless zone.nil?
330
419
  command.params['clusterId'] = cluster_id unless cluster_id.nil?
331
- command.query['quotaUser'] = quota_user unless quota_user.nil?
332
420
  command.query['fields'] = fields unless fields.nil?
421
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
333
422
  execute_or_queue_command(command, &block)
334
423
  end
335
424
 
336
- # Updates the settings of a specific cluster.
425
+ # Enables or disables the ABAC authorization mechanism on a cluster.
337
426
  # @param [String] project_id
338
427
  # The Google Developers Console [project ID or project
339
428
  # number](https://support.google.com/cloud/answer/6158840).
@@ -342,13 +431,13 @@ module Google
342
431
  # [zone](/compute/docs/zones#available) in which the cluster
343
432
  # resides.
344
433
  # @param [String] cluster_id
345
- # The name of the cluster to upgrade.
346
- # @param [Google::Apis::ContainerV1::UpdateClusterRequest] update_cluster_request_object
434
+ # The name of the cluster to update.
435
+ # @param [Google::Apis::ContainerV1::SetLegacyAbacRequest] set_legacy_abac_request_object
436
+ # @param [String] fields
437
+ # Selector specifying which fields to include in a partial response.
347
438
  # @param [String] quota_user
348
439
  # Available to use for quota purposes for server-side applications. Can be any
349
440
  # arbitrary string assigned to a user, but should not exceed 40 characters.
350
- # @param [String] fields
351
- # Selector specifying which fields to include in a partial response.
352
441
  # @param [Google::Apis::RequestOptions] options
353
442
  # Request-specific options
354
443
  #
@@ -361,36 +450,36 @@ module Google
361
450
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
362
451
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
363
452
  # @raise [Google::Apis::AuthorizationError] Authorization is required
364
- def update_cluster(project_id, zone, cluster_id, update_cluster_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
365
- command = make_simple_command(:put, 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}', options)
366
- command.request_representation = Google::Apis::ContainerV1::UpdateClusterRequest::Representation
367
- command.request_object = update_cluster_request_object
453
+ def legacy_project_zone_cluster_abac(project_id, zone, cluster_id, set_legacy_abac_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
454
+ command = make_simple_command(:post, 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/legacyAbac', options)
455
+ command.request_representation = Google::Apis::ContainerV1::SetLegacyAbacRequest::Representation
456
+ command.request_object = set_legacy_abac_request_object
368
457
  command.response_representation = Google::Apis::ContainerV1::Operation::Representation
369
458
  command.response_class = Google::Apis::ContainerV1::Operation
370
459
  command.params['projectId'] = project_id unless project_id.nil?
371
460
  command.params['zone'] = zone unless zone.nil?
372
461
  command.params['clusterId'] = cluster_id unless cluster_id.nil?
373
- command.query['quotaUser'] = quota_user unless quota_user.nil?
374
462
  command.query['fields'] = fields unless fields.nil?
463
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
375
464
  execute_or_queue_command(command, &block)
376
465
  end
377
466
 
378
- # Start master IP rotation.
467
+ # Updates the settings of a specific cluster.
379
468
  # @param [String] project_id
380
469
  # The Google Developers Console [project ID or project
381
- # number](https://developers.google.com/console/help/new/#projectnumber).
470
+ # number](https://support.google.com/cloud/answer/6158840).
382
471
  # @param [String] zone
383
472
  # The name of the Google Compute Engine
384
473
  # [zone](/compute/docs/zones#available) in which the cluster
385
474
  # resides.
386
475
  # @param [String] cluster_id
387
- # The name of the cluster.
388
- # @param [Google::Apis::ContainerV1::StartIpRotationRequest] start_ip_rotation_request_object
476
+ # The name of the cluster to upgrade.
477
+ # @param [Google::Apis::ContainerV1::UpdateClusterRequest] update_cluster_request_object
478
+ # @param [String] fields
479
+ # Selector specifying which fields to include in a partial response.
389
480
  # @param [String] quota_user
390
481
  # Available to use for quota purposes for server-side applications. Can be any
391
482
  # arbitrary string assigned to a user, but should not exceed 40 characters.
392
- # @param [String] fields
393
- # Selector specifying which fields to include in a partial response.
394
483
  # @param [Google::Apis::RequestOptions] options
395
484
  # Request-specific options
396
485
  #
@@ -403,38 +492,37 @@ module Google
403
492
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
404
493
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
405
494
  # @raise [Google::Apis::AuthorizationError] Authorization is required
406
- def start_cluster_ip_rotation(project_id, zone, cluster_id, start_ip_rotation_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
407
- command = make_simple_command(:post, 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:startIpRotation', options)
408
- command.request_representation = Google::Apis::ContainerV1::StartIpRotationRequest::Representation
409
- command.request_object = start_ip_rotation_request_object
495
+ def update_cluster(project_id, zone, cluster_id, update_cluster_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
496
+ command = make_simple_command(:put, 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}', options)
497
+ command.request_representation = Google::Apis::ContainerV1::UpdateClusterRequest::Representation
498
+ command.request_object = update_cluster_request_object
410
499
  command.response_representation = Google::Apis::ContainerV1::Operation::Representation
411
500
  command.response_class = Google::Apis::ContainerV1::Operation
412
501
  command.params['projectId'] = project_id unless project_id.nil?
413
502
  command.params['zone'] = zone unless zone.nil?
414
503
  command.params['clusterId'] = cluster_id unless cluster_id.nil?
415
- command.query['quotaUser'] = quota_user unless quota_user.nil?
416
504
  command.query['fields'] = fields unless fields.nil?
505
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
417
506
  execute_or_queue_command(command, &block)
418
507
  end
419
508
 
420
- # Used to set master auth materials. Currently supports :-
421
- # Changing the admin password of a specific cluster.
422
- # This can be either via password generation or explicitly set the password.
509
+ # Deletes a node pool from a cluster.
423
510
  # @param [String] project_id
424
511
  # The Google Developers Console [project ID or project
425
- # number](https://support.google.com/cloud/answer/6158840).
512
+ # number](https://developers.google.com/console/help/new/#projectnumber).
426
513
  # @param [String] zone
427
514
  # The name of the Google Compute Engine
428
515
  # [zone](/compute/docs/zones#available) in which the cluster
429
516
  # resides.
430
517
  # @param [String] cluster_id
431
- # The name of the cluster to upgrade.
432
- # @param [Google::Apis::ContainerV1::SetMasterAuthRequest] set_master_auth_request_object
518
+ # The name of the cluster.
519
+ # @param [String] node_pool_id
520
+ # The name of the node pool to delete.
521
+ # @param [String] fields
522
+ # Selector specifying which fields to include in a partial response.
433
523
  # @param [String] quota_user
434
524
  # Available to use for quota purposes for server-side applications. Can be any
435
525
  # arbitrary string assigned to a user, but should not exceed 40 characters.
436
- # @param [String] fields
437
- # Selector specifying which fields to include in a partial response.
438
526
  # @param [Google::Apis::RequestOptions] options
439
527
  # Request-specific options
440
528
  #
@@ -447,27 +535,20 @@ module Google
447
535
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
448
536
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
449
537
  # @raise [Google::Apis::AuthorizationError] Authorization is required
450
- def set_cluster_master_auth(project_id, zone, cluster_id, set_master_auth_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
451
- command = make_simple_command(:post, 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:setMasterAuth', options)
452
- command.request_representation = Google::Apis::ContainerV1::SetMasterAuthRequest::Representation
453
- command.request_object = set_master_auth_request_object
538
+ def delete_project_zone_cluster_node_pool(project_id, zone, cluster_id, node_pool_id, fields: nil, quota_user: nil, options: nil, &block)
539
+ command = make_simple_command(:delete, 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}', options)
454
540
  command.response_representation = Google::Apis::ContainerV1::Operation::Representation
455
541
  command.response_class = Google::Apis::ContainerV1::Operation
456
542
  command.params['projectId'] = project_id unless project_id.nil?
457
543
  command.params['zone'] = zone unless zone.nil?
458
544
  command.params['clusterId'] = cluster_id unless cluster_id.nil?
459
- command.query['quotaUser'] = quota_user unless quota_user.nil?
545
+ command.params['nodePoolId'] = node_pool_id unless node_pool_id.nil?
460
546
  command.query['fields'] = fields unless fields.nil?
547
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
461
548
  execute_or_queue_command(command, &block)
462
549
  end
463
550
 
464
- # Deletes the cluster, including the Kubernetes endpoint and all worker
465
- # nodes.
466
- # Firewalls and routes that were configured during cluster creation
467
- # are also deleted.
468
- # Other Google Compute Engine resources that might be in use by the cluster
469
- # (e.g. load balancer resources) will not be deleted if they weren't present
470
- # at the initial create time.
551
+ # Sets the NodeManagement options for a node pool.
471
552
  # @param [String] project_id
472
553
  # The Google Developers Console [project ID or project
473
554
  # number](https://support.google.com/cloud/answer/6158840).
@@ -476,12 +557,15 @@ module Google
476
557
  # [zone](/compute/docs/zones#available) in which the cluster
477
558
  # resides.
478
559
  # @param [String] cluster_id
479
- # The name of the cluster to delete.
560
+ # The name of the cluster to update.
561
+ # @param [String] node_pool_id
562
+ # The name of the node pool to update.
563
+ # @param [Google::Apis::ContainerV1::SetNodePoolManagementRequest] set_node_pool_management_request_object
564
+ # @param [String] fields
565
+ # Selector specifying which fields to include in a partial response.
480
566
  # @param [String] quota_user
481
567
  # Available to use for quota purposes for server-side applications. Can be any
482
568
  # arbitrary string assigned to a user, but should not exceed 40 characters.
483
- # @param [String] fields
484
- # Selector specifying which fields to include in a partial response.
485
569
  # @param [Google::Apis::RequestOptions] options
486
570
  # Request-specific options
487
571
  #
@@ -494,20 +578,22 @@ module Google
494
578
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
495
579
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
496
580
  # @raise [Google::Apis::AuthorizationError] Authorization is required
497
- def delete_project_zone_cluster(project_id, zone, cluster_id, quota_user: nil, fields: nil, options: nil, &block)
498
- command = make_simple_command(:delete, 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}', options)
581
+ def set_project_zone_cluster_node_pool_management(project_id, zone, cluster_id, node_pool_id, set_node_pool_management_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
582
+ command = make_simple_command(:post, 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}/setManagement', options)
583
+ command.request_representation = Google::Apis::ContainerV1::SetNodePoolManagementRequest::Representation
584
+ command.request_object = set_node_pool_management_request_object
499
585
  command.response_representation = Google::Apis::ContainerV1::Operation::Representation
500
586
  command.response_class = Google::Apis::ContainerV1::Operation
501
587
  command.params['projectId'] = project_id unless project_id.nil?
502
588
  command.params['zone'] = zone unless zone.nil?
503
589
  command.params['clusterId'] = cluster_id unless cluster_id.nil?
504
- command.query['quotaUser'] = quota_user unless quota_user.nil?
590
+ command.params['nodePoolId'] = node_pool_id unless node_pool_id.nil?
505
591
  command.query['fields'] = fields unless fields.nil?
592
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
506
593
  execute_or_queue_command(command, &block)
507
594
  end
508
595
 
509
- # Roll back the previously Aborted or Failed NodePool upgrade.
510
- # This will be an no-op if the last upgrade successfully completed.
596
+ # Sets the size of a specific node pool.
511
597
  # @param [String] project_id
512
598
  # The Google Developers Console [project ID or project
513
599
  # number](https://support.google.com/cloud/answer/6158840).
@@ -516,15 +602,15 @@ module Google
516
602
  # [zone](/compute/docs/zones#available) in which the cluster
517
603
  # resides.
518
604
  # @param [String] cluster_id
519
- # The name of the cluster to rollback.
605
+ # The name of the cluster to update.
520
606
  # @param [String] node_pool_id
521
- # The name of the node pool to rollback.
522
- # @param [Google::Apis::ContainerV1::RollbackNodePoolUpgradeRequest] rollback_node_pool_upgrade_request_object
607
+ # The name of the node pool to update.
608
+ # @param [Google::Apis::ContainerV1::SetNodePoolSizeRequest] set_node_pool_size_request_object
609
+ # @param [String] fields
610
+ # Selector specifying which fields to include in a partial response.
523
611
  # @param [String] quota_user
524
612
  # Available to use for quota purposes for server-side applications. Can be any
525
613
  # arbitrary string assigned to a user, but should not exceed 40 characters.
526
- # @param [String] fields
527
- # Selector specifying which fields to include in a partial response.
528
614
  # @param [Google::Apis::RequestOptions] options
529
615
  # Request-specific options
530
616
  #
@@ -537,22 +623,22 @@ module Google
537
623
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
538
624
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
539
625
  # @raise [Google::Apis::AuthorizationError] Authorization is required
540
- def rollback_node_pool_upgrade(project_id, zone, cluster_id, node_pool_id, rollback_node_pool_upgrade_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
541
- command = make_simple_command(:post, 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}:rollback', options)
542
- command.request_representation = Google::Apis::ContainerV1::RollbackNodePoolUpgradeRequest::Representation
543
- command.request_object = rollback_node_pool_upgrade_request_object
626
+ def set_project_zone_cluster_node_pool_size(project_id, zone, cluster_id, node_pool_id, set_node_pool_size_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
627
+ command = make_simple_command(:post, 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}/setSize', options)
628
+ command.request_representation = Google::Apis::ContainerV1::SetNodePoolSizeRequest::Representation
629
+ command.request_object = set_node_pool_size_request_object
544
630
  command.response_representation = Google::Apis::ContainerV1::Operation::Representation
545
631
  command.response_class = Google::Apis::ContainerV1::Operation
546
632
  command.params['projectId'] = project_id unless project_id.nil?
547
633
  command.params['zone'] = zone unless zone.nil?
548
634
  command.params['clusterId'] = cluster_id unless cluster_id.nil?
549
635
  command.params['nodePoolId'] = node_pool_id unless node_pool_id.nil?
550
- command.query['quotaUser'] = quota_user unless quota_user.nil?
551
636
  command.query['fields'] = fields unless fields.nil?
637
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
552
638
  execute_or_queue_command(command, &block)
553
639
  end
554
640
 
555
- # Creates a node pool for a cluster.
641
+ # Lists the node pools for a cluster.
556
642
  # @param [String] project_id
557
643
  # The Google Developers Console [project ID or project
558
644
  # number](https://developers.google.com/console/help/new/#projectnumber).
@@ -562,98 +648,97 @@ module Google
562
648
  # resides.
563
649
  # @param [String] cluster_id
564
650
  # The name of the cluster.
565
- # @param [Google::Apis::ContainerV1::CreateNodePoolRequest] create_node_pool_request_object
651
+ # @param [String] fields
652
+ # Selector specifying which fields to include in a partial response.
566
653
  # @param [String] quota_user
567
654
  # Available to use for quota purposes for server-side applications. Can be any
568
655
  # arbitrary string assigned to a user, but should not exceed 40 characters.
569
- # @param [String] fields
570
- # Selector specifying which fields to include in a partial response.
571
656
  # @param [Google::Apis::RequestOptions] options
572
657
  # Request-specific options
573
658
  #
574
659
  # @yield [result, err] Result & error if block supplied
575
- # @yieldparam result [Google::Apis::ContainerV1::Operation] parsed result object
660
+ # @yieldparam result [Google::Apis::ContainerV1::ListNodePoolsResponse] parsed result object
576
661
  # @yieldparam err [StandardError] error object if request failed
577
662
  #
578
- # @return [Google::Apis::ContainerV1::Operation]
663
+ # @return [Google::Apis::ContainerV1::ListNodePoolsResponse]
579
664
  #
580
665
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
581
666
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
582
667
  # @raise [Google::Apis::AuthorizationError] Authorization is required
583
- def create_node_pool(project_id, zone, cluster_id, create_node_pool_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
584
- command = make_simple_command(:post, 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools', options)
585
- command.request_representation = Google::Apis::ContainerV1::CreateNodePoolRequest::Representation
586
- command.request_object = create_node_pool_request_object
587
- command.response_representation = Google::Apis::ContainerV1::Operation::Representation
588
- command.response_class = Google::Apis::ContainerV1::Operation
668
+ def list_project_zone_cluster_node_pools(project_id, zone, cluster_id, fields: nil, quota_user: nil, options: nil, &block)
669
+ command = make_simple_command(:get, 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools', options)
670
+ command.response_representation = Google::Apis::ContainerV1::ListNodePoolsResponse::Representation
671
+ command.response_class = Google::Apis::ContainerV1::ListNodePoolsResponse
589
672
  command.params['projectId'] = project_id unless project_id.nil?
590
673
  command.params['zone'] = zone unless zone.nil?
591
674
  command.params['clusterId'] = cluster_id unless cluster_id.nil?
592
- command.query['quotaUser'] = quota_user unless quota_user.nil?
593
675
  command.query['fields'] = fields unless fields.nil?
676
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
594
677
  execute_or_queue_command(command, &block)
595
678
  end
596
679
 
597
- # Retrieves the node pool requested.
680
+ # Roll back the previously Aborted or Failed NodePool upgrade.
681
+ # This will be an no-op if the last upgrade successfully completed.
598
682
  # @param [String] project_id
599
683
  # The Google Developers Console [project ID or project
600
- # number](https://developers.google.com/console/help/new/#projectnumber).
684
+ # number](https://support.google.com/cloud/answer/6158840).
601
685
  # @param [String] zone
602
686
  # The name of the Google Compute Engine
603
687
  # [zone](/compute/docs/zones#available) in which the cluster
604
688
  # resides.
605
689
  # @param [String] cluster_id
606
- # The name of the cluster.
690
+ # The name of the cluster to rollback.
607
691
  # @param [String] node_pool_id
608
- # The name of the node pool.
692
+ # The name of the node pool to rollback.
693
+ # @param [Google::Apis::ContainerV1::RollbackNodePoolUpgradeRequest] rollback_node_pool_upgrade_request_object
694
+ # @param [String] fields
695
+ # Selector specifying which fields to include in a partial response.
609
696
  # @param [String] quota_user
610
697
  # Available to use for quota purposes for server-side applications. Can be any
611
698
  # arbitrary string assigned to a user, but should not exceed 40 characters.
612
- # @param [String] fields
613
- # Selector specifying which fields to include in a partial response.
614
699
  # @param [Google::Apis::RequestOptions] options
615
700
  # Request-specific options
616
701
  #
617
702
  # @yield [result, err] Result & error if block supplied
618
- # @yieldparam result [Google::Apis::ContainerV1::NodePool] parsed result object
703
+ # @yieldparam result [Google::Apis::ContainerV1::Operation] parsed result object
619
704
  # @yieldparam err [StandardError] error object if request failed
620
705
  #
621
- # @return [Google::Apis::ContainerV1::NodePool]
706
+ # @return [Google::Apis::ContainerV1::Operation]
622
707
  #
623
708
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
624
709
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
625
710
  # @raise [Google::Apis::AuthorizationError] Authorization is required
626
- def get_project_zone_cluster_node_pool(project_id, zone, cluster_id, node_pool_id, quota_user: nil, fields: nil, options: nil, &block)
627
- command = make_simple_command(:get, 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}', options)
628
- command.response_representation = Google::Apis::ContainerV1::NodePool::Representation
629
- command.response_class = Google::Apis::ContainerV1::NodePool
711
+ def rollback_node_pool_upgrade(project_id, zone, cluster_id, node_pool_id, rollback_node_pool_upgrade_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
712
+ command = make_simple_command(:post, 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}:rollback', options)
713
+ command.request_representation = Google::Apis::ContainerV1::RollbackNodePoolUpgradeRequest::Representation
714
+ command.request_object = rollback_node_pool_upgrade_request_object
715
+ command.response_representation = Google::Apis::ContainerV1::Operation::Representation
716
+ command.response_class = Google::Apis::ContainerV1::Operation
630
717
  command.params['projectId'] = project_id unless project_id.nil?
631
718
  command.params['zone'] = zone unless zone.nil?
632
719
  command.params['clusterId'] = cluster_id unless cluster_id.nil?
633
720
  command.params['nodePoolId'] = node_pool_id unless node_pool_id.nil?
634
- command.query['quotaUser'] = quota_user unless quota_user.nil?
635
721
  command.query['fields'] = fields unless fields.nil?
722
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
636
723
  execute_or_queue_command(command, &block)
637
724
  end
638
725
 
639
- # Sets the NodeManagement options for a node pool.
726
+ # Creates a node pool for a cluster.
640
727
  # @param [String] project_id
641
728
  # The Google Developers Console [project ID or project
642
- # number](https://support.google.com/cloud/answer/6158840).
729
+ # number](https://developers.google.com/console/help/new/#projectnumber).
643
730
  # @param [String] zone
644
731
  # The name of the Google Compute Engine
645
732
  # [zone](/compute/docs/zones#available) in which the cluster
646
733
  # resides.
647
734
  # @param [String] cluster_id
648
- # The name of the cluster to update.
649
- # @param [String] node_pool_id
650
- # The name of the node pool to update.
651
- # @param [Google::Apis::ContainerV1::SetNodePoolManagementRequest] set_node_pool_management_request_object
735
+ # The name of the cluster.
736
+ # @param [Google::Apis::ContainerV1::CreateNodePoolRequest] create_node_pool_request_object
737
+ # @param [String] fields
738
+ # Selector specifying which fields to include in a partial response.
652
739
  # @param [String] quota_user
653
740
  # Available to use for quota purposes for server-side applications. Can be any
654
741
  # arbitrary string assigned to a user, but should not exceed 40 characters.
655
- # @param [String] fields
656
- # Selector specifying which fields to include in a partial response.
657
742
  # @param [Google::Apis::RequestOptions] options
658
743
  # Request-specific options
659
744
  #
@@ -666,22 +751,21 @@ module Google
666
751
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
667
752
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
668
753
  # @raise [Google::Apis::AuthorizationError] Authorization is required
669
- def set_project_zone_cluster_node_pool_management(project_id, zone, cluster_id, node_pool_id, set_node_pool_management_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
670
- command = make_simple_command(:post, 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}/setManagement', options)
671
- command.request_representation = Google::Apis::ContainerV1::SetNodePoolManagementRequest::Representation
672
- command.request_object = set_node_pool_management_request_object
754
+ def create_node_pool(project_id, zone, cluster_id, create_node_pool_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
755
+ command = make_simple_command(:post, 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools', options)
756
+ command.request_representation = Google::Apis::ContainerV1::CreateNodePoolRequest::Representation
757
+ command.request_object = create_node_pool_request_object
673
758
  command.response_representation = Google::Apis::ContainerV1::Operation::Representation
674
759
  command.response_class = Google::Apis::ContainerV1::Operation
675
760
  command.params['projectId'] = project_id unless project_id.nil?
676
761
  command.params['zone'] = zone unless zone.nil?
677
762
  command.params['clusterId'] = cluster_id unless cluster_id.nil?
678
- command.params['nodePoolId'] = node_pool_id unless node_pool_id.nil?
679
- command.query['quotaUser'] = quota_user unless quota_user.nil?
680
763
  command.query['fields'] = fields unless fields.nil?
764
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
681
765
  execute_or_queue_command(command, &block)
682
766
  end
683
767
 
684
- # Deletes a node pool from a cluster.
768
+ # Retrieves the node pool requested.
685
769
  # @param [String] project_id
686
770
  # The Google Developers Console [project ID or project
687
771
  # number](https://developers.google.com/console/help/new/#projectnumber).
@@ -692,73 +776,75 @@ module Google
692
776
  # @param [String] cluster_id
693
777
  # The name of the cluster.
694
778
  # @param [String] node_pool_id
695
- # The name of the node pool to delete.
779
+ # The name of the node pool.
780
+ # @param [String] fields
781
+ # Selector specifying which fields to include in a partial response.
696
782
  # @param [String] quota_user
697
783
  # Available to use for quota purposes for server-side applications. Can be any
698
784
  # arbitrary string assigned to a user, but should not exceed 40 characters.
699
- # @param [String] fields
700
- # Selector specifying which fields to include in a partial response.
701
785
  # @param [Google::Apis::RequestOptions] options
702
786
  # Request-specific options
703
787
  #
704
788
  # @yield [result, err] Result & error if block supplied
705
- # @yieldparam result [Google::Apis::ContainerV1::Operation] parsed result object
789
+ # @yieldparam result [Google::Apis::ContainerV1::NodePool] parsed result object
706
790
  # @yieldparam err [StandardError] error object if request failed
707
791
  #
708
- # @return [Google::Apis::ContainerV1::Operation]
792
+ # @return [Google::Apis::ContainerV1::NodePool]
709
793
  #
710
794
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
711
795
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
712
796
  # @raise [Google::Apis::AuthorizationError] Authorization is required
713
- def delete_project_zone_cluster_node_pool(project_id, zone, cluster_id, node_pool_id, quota_user: nil, fields: nil, options: nil, &block)
714
- command = make_simple_command(:delete, 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}', options)
715
- command.response_representation = Google::Apis::ContainerV1::Operation::Representation
716
- command.response_class = Google::Apis::ContainerV1::Operation
797
+ def get_project_zone_cluster_node_pool(project_id, zone, cluster_id, node_pool_id, fields: nil, quota_user: nil, options: nil, &block)
798
+ command = make_simple_command(:get, 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}', options)
799
+ command.response_representation = Google::Apis::ContainerV1::NodePool::Representation
800
+ command.response_class = Google::Apis::ContainerV1::NodePool
717
801
  command.params['projectId'] = project_id unless project_id.nil?
718
802
  command.params['zone'] = zone unless zone.nil?
719
803
  command.params['clusterId'] = cluster_id unless cluster_id.nil?
720
804
  command.params['nodePoolId'] = node_pool_id unless node_pool_id.nil?
721
- command.query['quotaUser'] = quota_user unless quota_user.nil?
722
805
  command.query['fields'] = fields unless fields.nil?
806
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
723
807
  execute_or_queue_command(command, &block)
724
808
  end
725
809
 
726
- # Lists the node pools for a cluster.
810
+ # Cancels the specified operation.
727
811
  # @param [String] project_id
728
812
  # The Google Developers Console [project ID or project
729
- # number](https://developers.google.com/console/help/new/#projectnumber).
813
+ # number](https://support.google.com/cloud/answer/6158840).
730
814
  # @param [String] zone
731
815
  # The name of the Google Compute Engine
732
- # [zone](/compute/docs/zones#available) in which the cluster
733
- # resides.
734
- # @param [String] cluster_id
735
- # The name of the cluster.
816
+ # [zone](/compute/docs/zones#available) in which the operation resides.
817
+ # @param [String] operation_id
818
+ # The server-assigned `name` of the operation.
819
+ # @param [Google::Apis::ContainerV1::CancelOperationRequest] cancel_operation_request_object
820
+ # @param [String] fields
821
+ # Selector specifying which fields to include in a partial response.
736
822
  # @param [String] quota_user
737
823
  # Available to use for quota purposes for server-side applications. Can be any
738
824
  # arbitrary string assigned to a user, but should not exceed 40 characters.
739
- # @param [String] fields
740
- # Selector specifying which fields to include in a partial response.
741
825
  # @param [Google::Apis::RequestOptions] options
742
826
  # Request-specific options
743
827
  #
744
828
  # @yield [result, err] Result & error if block supplied
745
- # @yieldparam result [Google::Apis::ContainerV1::ListNodePoolsResponse] parsed result object
829
+ # @yieldparam result [Google::Apis::ContainerV1::Empty] parsed result object
746
830
  # @yieldparam err [StandardError] error object if request failed
747
831
  #
748
- # @return [Google::Apis::ContainerV1::ListNodePoolsResponse]
832
+ # @return [Google::Apis::ContainerV1::Empty]
749
833
  #
750
834
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
751
835
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
752
836
  # @raise [Google::Apis::AuthorizationError] Authorization is required
753
- def list_project_zone_cluster_node_pools(project_id, zone, cluster_id, quota_user: nil, fields: nil, options: nil, &block)
754
- command = make_simple_command(:get, 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools', options)
755
- command.response_representation = Google::Apis::ContainerV1::ListNodePoolsResponse::Representation
756
- command.response_class = Google::Apis::ContainerV1::ListNodePoolsResponse
837
+ def cancel_operation(project_id, zone, operation_id, cancel_operation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
838
+ command = make_simple_command(:post, 'v1/projects/{projectId}/zones/{zone}/operations/{operationId}:cancel', options)
839
+ command.request_representation = Google::Apis::ContainerV1::CancelOperationRequest::Representation
840
+ command.request_object = cancel_operation_request_object
841
+ command.response_representation = Google::Apis::ContainerV1::Empty::Representation
842
+ command.response_class = Google::Apis::ContainerV1::Empty
757
843
  command.params['projectId'] = project_id unless project_id.nil?
758
844
  command.params['zone'] = zone unless zone.nil?
759
- command.params['clusterId'] = cluster_id unless cluster_id.nil?
760
- command.query['quotaUser'] = quota_user unless quota_user.nil?
845
+ command.params['operationId'] = operation_id unless operation_id.nil?
761
846
  command.query['fields'] = fields unless fields.nil?
847
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
762
848
  execute_or_queue_command(command, &block)
763
849
  end
764
850
 
@@ -769,11 +855,11 @@ module Google
769
855
  # @param [String] zone
770
856
  # The name of the Google Compute Engine [zone](/compute/docs/zones#available)
771
857
  # to return operations for, or `-` for all zones.
858
+ # @param [String] fields
859
+ # Selector specifying which fields to include in a partial response.
772
860
  # @param [String] quota_user
773
861
  # Available to use for quota purposes for server-side applications. Can be any
774
862
  # arbitrary string assigned to a user, but should not exceed 40 characters.
775
- # @param [String] fields
776
- # Selector specifying which fields to include in a partial response.
777
863
  # @param [Google::Apis::RequestOptions] options
778
864
  # Request-specific options
779
865
  #
@@ -786,14 +872,14 @@ module Google
786
872
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
787
873
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
788
874
  # @raise [Google::Apis::AuthorizationError] Authorization is required
789
- def list_project_zone_operations(project_id, zone, quota_user: nil, fields: nil, options: nil, &block)
875
+ def list_zone_operations(project_id, zone, fields: nil, quota_user: nil, options: nil, &block)
790
876
  command = make_simple_command(:get, 'v1/projects/{projectId}/zones/{zone}/operations', options)
791
877
  command.response_representation = Google::Apis::ContainerV1::ListOperationsResponse::Representation
792
878
  command.response_class = Google::Apis::ContainerV1::ListOperationsResponse
793
879
  command.params['projectId'] = project_id unless project_id.nil?
794
880
  command.params['zone'] = zone unless zone.nil?
795
- command.query['quotaUser'] = quota_user unless quota_user.nil?
796
881
  command.query['fields'] = fields unless fields.nil?
882
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
797
883
  execute_or_queue_command(command, &block)
798
884
  end
799
885
 
@@ -807,11 +893,11 @@ module Google
807
893
  # resides.
808
894
  # @param [String] operation_id
809
895
  # The server-assigned `name` of the operation.
896
+ # @param [String] fields
897
+ # Selector specifying which fields to include in a partial response.
810
898
  # @param [String] quota_user
811
899
  # Available to use for quota purposes for server-side applications. Can be any
812
900
  # arbitrary string assigned to a user, but should not exceed 40 characters.
813
- # @param [String] fields
814
- # Selector specifying which fields to include in a partial response.
815
901
  # @param [Google::Apis::RequestOptions] options
816
902
  # Request-specific options
817
903
  #
@@ -824,56 +910,15 @@ module Google
824
910
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
825
911
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
826
912
  # @raise [Google::Apis::AuthorizationError] Authorization is required
827
- def get_project_zone_operation(project_id, zone, operation_id, quota_user: nil, fields: nil, options: nil, &block)
913
+ def get_zone_operation(project_id, zone, operation_id, fields: nil, quota_user: nil, options: nil, &block)
828
914
  command = make_simple_command(:get, 'v1/projects/{projectId}/zones/{zone}/operations/{operationId}', options)
829
915
  command.response_representation = Google::Apis::ContainerV1::Operation::Representation
830
916
  command.response_class = Google::Apis::ContainerV1::Operation
831
917
  command.params['projectId'] = project_id unless project_id.nil?
832
918
  command.params['zone'] = zone unless zone.nil?
833
919
  command.params['operationId'] = operation_id unless operation_id.nil?
834
- command.query['quotaUser'] = quota_user unless quota_user.nil?
835
920
  command.query['fields'] = fields unless fields.nil?
836
- execute_or_queue_command(command, &block)
837
- end
838
-
839
- # Cancels the specified operation.
840
- # @param [String] project_id
841
- # The Google Developers Console [project ID or project
842
- # number](https://support.google.com/cloud/answer/6158840).
843
- # @param [String] zone
844
- # The name of the Google Compute Engine
845
- # [zone](/compute/docs/zones#available) in which the operation resides.
846
- # @param [String] operation_id
847
- # The server-assigned `name` of the operation.
848
- # @param [Google::Apis::ContainerV1::CancelOperationRequest] cancel_operation_request_object
849
- # @param [String] quota_user
850
- # Available to use for quota purposes for server-side applications. Can be any
851
- # arbitrary string assigned to a user, but should not exceed 40 characters.
852
- # @param [String] fields
853
- # Selector specifying which fields to include in a partial response.
854
- # @param [Google::Apis::RequestOptions] options
855
- # Request-specific options
856
- #
857
- # @yield [result, err] Result & error if block supplied
858
- # @yieldparam result [Google::Apis::ContainerV1::Empty] parsed result object
859
- # @yieldparam err [StandardError] error object if request failed
860
- #
861
- # @return [Google::Apis::ContainerV1::Empty]
862
- #
863
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
864
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
865
- # @raise [Google::Apis::AuthorizationError] Authorization is required
866
- def cancel_operation(project_id, zone, operation_id, cancel_operation_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
867
- command = make_simple_command(:post, 'v1/projects/{projectId}/zones/{zone}/operations/{operationId}:cancel', options)
868
- command.request_representation = Google::Apis::ContainerV1::CancelOperationRequest::Representation
869
- command.request_object = cancel_operation_request_object
870
- command.response_representation = Google::Apis::ContainerV1::Empty::Representation
871
- command.response_class = Google::Apis::ContainerV1::Empty
872
- command.params['projectId'] = project_id unless project_id.nil?
873
- command.params['zone'] = zone unless zone.nil?
874
- command.params['operationId'] = operation_id unless operation_id.nil?
875
921
  command.query['quotaUser'] = quota_user unless quota_user.nil?
876
- command.query['fields'] = fields unless fields.nil?
877
922
  execute_or_queue_command(command, &block)
878
923
  end
879
924