google-api-client 0.13.2 → 0.13.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (524) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +149 -0
  3. data/bin/generate-api +6 -2
  4. data/generated/google/apis/acceleratedmobilepageurl_v1.rb +3 -3
  5. data/generated/google/apis/acceleratedmobilepageurl_v1/classes.rb +46 -46
  6. data/generated/google/apis/acceleratedmobilepageurl_v1/representations.rb +15 -15
  7. data/generated/google/apis/acceleratedmobilepageurl_v1/service.rb +6 -6
  8. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +2 -2
  9. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +1394 -1394
  10. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +322 -322
  11. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +449 -449
  12. data/generated/google/apis/adexchangebuyer_v1_2.rb +35 -0
  13. data/generated/google/apis/adexchangebuyer_v1_2/classes.rb +457 -0
  14. data/generated/google/apis/adexchangebuyer_v1_2/representations.rb +189 -0
  15. data/generated/google/apis/adexchangebuyer_v1_2/service.rb +329 -0
  16. data/generated/google/apis/adexchangebuyer_v1_3.rb +35 -0
  17. data/generated/google/apis/adexchangebuyer_v1_3/classes.rb +1347 -0
  18. data/generated/google/apis/adexchangebuyer_v1_3/representations.rb +498 -0
  19. data/generated/google/apis/adexchangebuyer_v1_3/service.rb +873 -0
  20. data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
  21. data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +1 -1
  22. data/generated/google/apis/adexchangeseller_v1.rb +37 -0
  23. data/generated/google/apis/adexchangeseller_v1/classes.rb +557 -0
  24. data/generated/google/apis/adexchangeseller_v1/representations.rb +248 -0
  25. data/generated/google/apis/adexchangeseller_v1/service.rb +568 -0
  26. data/generated/google/apis/adexchangeseller_v1_1.rb +37 -0
  27. data/generated/google/apis/adexchangeseller_v1_1/classes.rb +842 -0
  28. data/generated/google/apis/adexchangeseller_v1_1/representations.rb +364 -0
  29. data/generated/google/apis/adexchangeseller_v1_1/service.rb +771 -0
  30. data/generated/google/apis/adexperiencereport_v1.rb +35 -0
  31. data/generated/google/apis/adexperiencereport_v1/classes.rb +138 -0
  32. data/generated/google/apis/adexperiencereport_v1/representations.rb +77 -0
  33. data/generated/google/apis/adexperiencereport_v1/service.rb +123 -0
  34. data/generated/google/apis/admin_directory_v1.rb +1 -1
  35. data/generated/google/apis/admin_directory_v1/classes.rb +60 -0
  36. data/generated/google/apis/admin_directory_v1/representations.rb +29 -0
  37. data/generated/google/apis/admin_directory_v1/service.rb +39 -0
  38. data/generated/google/apis/adsense_v1_4.rb +1 -1
  39. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  40. data/generated/google/apis/analytics_v2_4.rb +37 -0
  41. data/generated/google/apis/analytics_v2_4/classes.rb +26 -0
  42. data/generated/google/apis/analytics_v2_4/representations.rb +26 -0
  43. data/generated/google/apis/analytics_v2_4/service.rb +345 -0
  44. data/generated/google/apis/analytics_v3.rb +1 -1
  45. data/generated/google/apis/analytics_v3/classes.rb +15 -2
  46. data/generated/google/apis/analytics_v3/representations.rb +3 -0
  47. data/generated/google/apis/analyticsreporting_v4.rb +4 -4
  48. data/generated/google/apis/analyticsreporting_v4/classes.rb +891 -891
  49. data/generated/google/apis/analyticsreporting_v4/representations.rb +189 -189
  50. data/generated/google/apis/androiddeviceprovisioning_v1.rb +32 -0
  51. data/generated/google/apis/androiddeviceprovisioning_v1/classes.rb +917 -0
  52. data/generated/google/apis/androiddeviceprovisioning_v1/representations.rb +447 -0
  53. data/generated/google/apis/androiddeviceprovisioning_v1/service.rb +419 -0
  54. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  55. data/generated/google/apis/androidenterprise_v1/classes.rb +31 -0
  56. data/generated/google/apis/androidenterprise_v1/representations.rb +14 -0
  57. data/generated/google/apis/androidenterprise_v1/service.rb +76 -0
  58. data/generated/google/apis/androidmanagement_v1.rb +35 -0
  59. data/generated/google/apis/androidmanagement_v1/classes.rb +2039 -0
  60. data/generated/google/apis/androidmanagement_v1/representations.rb +702 -0
  61. data/generated/google/apis/androidmanagement_v1/service.rb +796 -0
  62. data/generated/google/apis/androidpublisher_v1.rb +34 -0
  63. data/generated/google/apis/androidpublisher_v1/classes.rb +67 -0
  64. data/generated/google/apis/androidpublisher_v1/representations.rb +42 -0
  65. data/generated/google/apis/androidpublisher_v1/service.rb +150 -0
  66. data/generated/google/apis/androidpublisher_v1_1.rb +34 -0
  67. data/generated/google/apis/androidpublisher_v1_1/classes.rb +123 -0
  68. data/generated/google/apis/androidpublisher_v1_1/representations.rb +60 -0
  69. data/generated/google/apis/androidpublisher_v1_1/service.rb +192 -0
  70. data/generated/google/apis/androidpublisher_v2.rb +1 -1
  71. data/generated/google/apis/androidpublisher_v2/classes.rb +21 -0
  72. data/generated/google/apis/androidpublisher_v2/representations.rb +3 -0
  73. data/generated/google/apis/androidpublisher_v2/service.rb +6 -2
  74. data/generated/google/apis/appengine_v1.rb +4 -4
  75. data/generated/google/apis/appengine_v1/classes.rb +1519 -1474
  76. data/generated/google/apis/appengine_v1/representations.rb +351 -335
  77. data/generated/google/apis/appengine_v1/service.rb +255 -239
  78. data/generated/google/apis/appengine_v1alpha.rb +41 -0
  79. data/generated/google/apis/appengine_v1alpha/classes.rb +987 -0
  80. data/generated/google/apis/appengine_v1alpha/representations.rb +397 -0
  81. data/generated/google/apis/appengine_v1alpha/service.rb +631 -0
  82. data/generated/google/apis/appengine_v1beta.rb +41 -0
  83. data/generated/google/apis/appengine_v1beta/classes.rb +2876 -0
  84. data/generated/google/apis/appengine_v1beta/representations.rb +1138 -0
  85. data/generated/google/apis/appengine_v1beta/service.rb +1546 -0
  86. data/generated/google/apis/appengine_v1beta4.rb +41 -0
  87. data/generated/google/apis/appengine_v1beta4/classes.rb +2170 -0
  88. data/generated/google/apis/appengine_v1beta4/representations.rb +824 -0
  89. data/generated/google/apis/appengine_v1beta4/service.rb +876 -0
  90. data/generated/google/apis/appengine_v1beta5.rb +41 -0
  91. data/generated/google/apis/appengine_v1beta5/classes.rb +2168 -0
  92. data/generated/google/apis/appengine_v1beta5/representations.rb +822 -0
  93. data/generated/google/apis/appengine_v1beta5/service.rb +877 -0
  94. data/generated/google/apis/appsactivity_v1.rb +1 -1
  95. data/generated/google/apis/appstate_v1.rb +1 -1
  96. data/generated/google/apis/bigquery_v2.rb +1 -1
  97. data/generated/google/apis/bigquery_v2/classes.rb +106 -18
  98. data/generated/google/apis/bigquery_v2/representations.rb +15 -0
  99. data/generated/google/apis/bigquerydatatransfer_v1.rb +41 -0
  100. data/generated/google/apis/bigquerydatatransfer_v1/classes.rb +886 -0
  101. data/generated/google/apis/bigquerydatatransfer_v1/representations.rb +343 -0
  102. data/generated/google/apis/bigquerydatatransfer_v1/service.rb +1317 -0
  103. data/generated/google/apis/blogger_v2.rb +34 -0
  104. data/generated/google/apis/blogger_v2/classes.rb +947 -0
  105. data/generated/google/apis/blogger_v2/representations.rb +465 -0
  106. data/generated/google/apis/blogger_v2/service.rb +424 -0
  107. data/generated/google/apis/calendar_v3.rb +1 -1
  108. data/generated/google/apis/calendar_v3/classes.rb +4 -207
  109. data/generated/google/apis/calendar_v3/representations.rb +0 -97
  110. data/generated/google/apis/calendar_v3/service.rb +8 -4
  111. data/generated/google/apis/classroom_v1.rb +27 -27
  112. data/generated/google/apis/classroom_v1/classes.rb +1037 -926
  113. data/generated/google/apis/classroom_v1/representations.rb +294 -244
  114. data/generated/google/apis/classroom_v1/service.rb +1114 -1109
  115. data/generated/google/apis/cloudbilling_v1.rb +1 -1
  116. data/generated/google/apis/cloudbilling_v1/classes.rb +473 -56
  117. data/generated/google/apis/cloudbilling_v1/representations.rb +176 -10
  118. data/generated/google/apis/cloudbilling_v1/service.rb +182 -89
  119. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  120. data/generated/google/apis/cloudbuild_v1/classes.rb +666 -625
  121. data/generated/google/apis/cloudbuild_v1/representations.rb +132 -116
  122. data/generated/google/apis/cloudbuild_v1/service.rb +158 -158
  123. data/generated/google/apis/clouddebugger_v2.rb +4 -4
  124. data/generated/google/apis/clouddebugger_v2/classes.rb +637 -639
  125. data/generated/google/apis/clouddebugger_v2/representations.rb +139 -139
  126. data/generated/google/apis/clouddebugger_v2/service.rb +157 -157
  127. data/generated/google/apis/clouderrorreporting_v1beta1.rb +1 -1
  128. data/generated/google/apis/clouderrorreporting_v1beta1/classes.rb +310 -310
  129. data/generated/google/apis/clouderrorreporting_v1beta1/representations.rb +77 -77
  130. data/generated/google/apis/clouderrorreporting_v1beta1/service.rb +144 -144
  131. data/generated/google/apis/cloudfunctions_v1.rb +4 -1
  132. data/generated/google/apis/cloudfunctions_v1/classes.rb +265 -6
  133. data/generated/google/apis/cloudfunctions_v1/representations.rb +80 -1
  134. data/generated/google/apis/cloudfunctions_v1/service.rb +118 -0
  135. data/generated/google/apis/cloudfunctions_v1beta2.rb +35 -0
  136. data/generated/google/apis/cloudfunctions_v1beta2/classes.rb +678 -0
  137. data/generated/google/apis/cloudfunctions_v1beta2/representations.rb +264 -0
  138. data/generated/google/apis/cloudfunctions_v1beta2/service.rb +385 -0
  139. data/generated/google/apis/cloudkms_v1.rb +1 -1
  140. data/generated/google/apis/cloudkms_v1/classes.rb +652 -622
  141. data/generated/google/apis/cloudkms_v1/representations.rb +138 -137
  142. data/generated/google/apis/cloudkms_v1/service.rb +320 -320
  143. data/generated/google/apis/cloudmonitoring_v2beta2.rb +1 -1
  144. data/generated/google/apis/cloudresourcemanager_v1.rb +4 -4
  145. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +1129 -1129
  146. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +188 -188
  147. data/generated/google/apis/cloudresourcemanager_v1/service.rb +609 -609
  148. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
  149. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +404 -404
  150. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +83 -83
  151. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +328 -328
  152. data/generated/google/apis/cloudresourcemanager_v2beta1.rb +38 -0
  153. data/generated/google/apis/cloudresourcemanager_v2beta1/classes.rb +819 -0
  154. data/generated/google/apis/cloudresourcemanager_v2beta1/representations.rb +304 -0
  155. data/generated/google/apis/cloudresourcemanager_v2beta1/service.rb +528 -0
  156. data/generated/google/apis/cloudtrace_v1.rb +5 -5
  157. data/generated/google/apis/cloudtrace_v1/classes.rb +67 -67
  158. data/generated/google/apis/cloudtrace_v1/representations.rb +21 -21
  159. data/generated/google/apis/cloudtrace_v1/service.rb +36 -36
  160. data/generated/google/apis/cloudtrace_v2.rb +43 -0
  161. data/generated/google/apis/cloudtrace_v2/classes.rb +797 -0
  162. data/generated/google/apis/cloudtrace_v2/representations.rb +353 -0
  163. data/generated/google/apis/cloudtrace_v2/service.rb +238 -0
  164. data/generated/google/apis/clouduseraccounts_alpha.rb +44 -0
  165. data/generated/google/apis/clouduseraccounts_alpha/classes.rb +1188 -0
  166. data/generated/google/apis/clouduseraccounts_alpha/representations.rb +494 -0
  167. data/generated/google/apis/clouduseraccounts_alpha/service.rb +1152 -0
  168. data/generated/google/apis/clouduseraccounts_vm_alpha.rb +44 -0
  169. data/generated/google/apis/clouduseraccounts_vm_alpha/classes.rb +1188 -0
  170. data/generated/google/apis/clouduseraccounts_vm_alpha/representations.rb +494 -0
  171. data/generated/google/apis/clouduseraccounts_vm_alpha/service.rb +1152 -0
  172. data/generated/google/apis/clouduseraccounts_vm_beta.rb +44 -0
  173. data/generated/google/apis/clouduseraccounts_vm_beta/classes.rb +845 -0
  174. data/generated/google/apis/clouduseraccounts_vm_beta/representations.rb +352 -0
  175. data/generated/google/apis/clouduseraccounts_vm_beta/service.rb +908 -0
  176. data/generated/google/apis/compute_alpha.rb +49 -0
  177. data/generated/google/apis/compute_alpha/classes.rb +23796 -0
  178. data/generated/google/apis/compute_alpha/representations.rb +9391 -0
  179. data/generated/google/apis/compute_alpha/service.rb +24188 -0
  180. data/generated/google/apis/compute_beta.rb +1 -1
  181. data/generated/google/apis/compute_beta/classes.rb +1597 -235
  182. data/generated/google/apis/compute_beta/representations.rb +477 -0
  183. data/generated/google/apis/compute_beta/service.rb +2875 -1677
  184. data/generated/google/apis/compute_v1.rb +1 -1
  185. data/generated/google/apis/compute_v1/classes.rb +319 -197
  186. data/generated/google/apis/compute_v1/representations.rb +51 -0
  187. data/generated/google/apis/compute_v1/service.rb +2057 -172
  188. data/generated/google/apis/consumersurveys_v2.rb +40 -0
  189. data/generated/google/apis/consumersurveys_v2/classes.rb +736 -0
  190. data/generated/google/apis/consumersurveys_v2/representations.rb +343 -0
  191. data/generated/google/apis/consumersurveys_v2/service.rb +478 -0
  192. data/generated/google/apis/container_v1.rb +1 -1
  193. data/generated/google/apis/container_v1/classes.rb +1072 -936
  194. data/generated/google/apis/container_v1/representations.rb +266 -202
  195. data/generated/google/apis/container_v1/service.rb +243 -243
  196. data/generated/google/apis/container_v1beta1.rb +35 -0
  197. data/generated/google/apis/container_v1beta1/classes.rb +1900 -0
  198. data/generated/google/apis/container_v1beta1/representations.rb +662 -0
  199. data/generated/google/apis/container_v1beta1/service.rb +1875 -0
  200. data/generated/google/apis/content_v2.rb +1 -1
  201. data/generated/google/apis/content_v2/classes.rb +72 -3
  202. data/generated/google/apis/content_v2/representations.rb +23 -0
  203. data/generated/google/apis/content_v2/service.rb +23 -18
  204. data/generated/google/apis/content_v2sandbox.rb +35 -0
  205. data/generated/google/apis/content_v2sandbox/classes.rb +2406 -0
  206. data/generated/google/apis/content_v2sandbox/representations.rb +1042 -0
  207. data/generated/google/apis/content_v2sandbox/service.rb +709 -0
  208. data/generated/google/apis/dataflow_v1b3.rb +5 -5
  209. data/generated/google/apis/dataflow_v1b3/classes.rb +3341 -3341
  210. data/generated/google/apis/dataflow_v1b3/representations.rb +807 -807
  211. data/generated/google/apis/dataflow_v1b3/service.rb +492 -444
  212. data/generated/google/apis/dataproc_v1.rb +1 -1
  213. data/generated/google/apis/dataproc_v1/classes.rb +1101 -1101
  214. data/generated/google/apis/dataproc_v1/representations.rb +227 -227
  215. data/generated/google/apis/dataproc_v1/service.rb +254 -254
  216. data/generated/google/apis/dataproc_v1beta2.rb +34 -0
  217. data/generated/google/apis/dataproc_v1beta2/classes.rb +1756 -0
  218. data/generated/google/apis/dataproc_v1beta2/representations.rb +675 -0
  219. data/generated/google/apis/dataproc_v1beta2/service.rb +739 -0
  220. data/generated/google/apis/datastore_v1.rb +4 -4
  221. data/generated/google/apis/datastore_v1/classes.rb +1311 -773
  222. data/generated/google/apis/datastore_v1/representations.rb +351 -148
  223. data/generated/google/apis/datastore_v1/service.rb +206 -55
  224. data/generated/google/apis/datastore_v1beta3.rb +38 -0
  225. data/generated/google/apis/datastore_v1beta3/classes.rb +1621 -0
  226. data/generated/google/apis/datastore_v1beta3/representations.rb +715 -0
  227. data/generated/google/apis/datastore_v1beta3/service.rb +260 -0
  228. data/generated/google/apis/deploymentmanager_alpha.rb +44 -0
  229. data/generated/google/apis/deploymentmanager_alpha/classes.rb +2422 -0
  230. data/generated/google/apis/deploymentmanager_alpha/representations.rb +1054 -0
  231. data/generated/google/apis/deploymentmanager_alpha/service.rb +1883 -0
  232. data/generated/google/apis/deploymentmanager_v2.rb +1 -1
  233. data/generated/google/apis/deploymentmanager_v2/classes.rb +81 -2
  234. data/generated/google/apis/deploymentmanager_v2/representations.rb +30 -0
  235. data/generated/google/apis/deploymentmanager_v2beta.rb +44 -0
  236. data/generated/google/apis/deploymentmanager_v2beta/classes.rb +2426 -0
  237. data/generated/google/apis/deploymentmanager_v2beta/representations.rb +1054 -0
  238. data/generated/google/apis/deploymentmanager_v2beta/service.rb +1687 -0
  239. data/generated/google/apis/dfareporting_v2_7.rb +1 -1
  240. data/generated/google/apis/dfareporting_v2_7/classes.rb +9 -26
  241. data/generated/google/apis/dfareporting_v2_7/service.rb +1 -0
  242. data/generated/google/apis/dfareporting_v2_8.rb +1 -1
  243. data/generated/google/apis/dfareporting_v2_8/classes.rb +26 -34
  244. data/generated/google/apis/dfareporting_v2_8/representations.rb +1 -0
  245. data/generated/google/apis/dfareporting_v2_8/service.rb +1 -0
  246. data/generated/google/apis/dlp_v2beta1.rb +36 -0
  247. data/generated/google/apis/dlp_v2beta1/classes.rb +1735 -0
  248. data/generated/google/apis/dlp_v2beta1/representations.rb +879 -0
  249. data/generated/google/apis/dlp_v2beta1/service.rb +406 -0
  250. data/generated/google/apis/dns_v1.rb +1 -1
  251. data/generated/google/apis/dns_v2beta1.rb +1 -1
  252. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  253. data/generated/google/apis/drive_v2.rb +1 -1
  254. data/generated/google/apis/drive_v3.rb +1 -1
  255. data/generated/google/apis/firebasedynamiclinks_v1.rb +1 -1
  256. data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +267 -261
  257. data/generated/google/apis/firebasedynamiclinks_v1/representations.rb +73 -72
  258. data/generated/google/apis/firebasedynamiclinks_v1/service.rb +1 -1
  259. data/generated/google/apis/firebaserules_v1.rb +1 -1
  260. data/generated/google/apis/firebaserules_v1/classes.rb +283 -283
  261. data/generated/google/apis/firebaserules_v1/representations.rb +75 -75
  262. data/generated/google/apis/firebaserules_v1/service.rb +113 -113
  263. data/generated/google/apis/fitness_v1.rb +1 -1
  264. data/generated/google/apis/fitness_v1/classes.rb +1 -1
  265. data/generated/google/apis/fusiontables_v1.rb +37 -0
  266. data/generated/google/apis/fusiontables_v1/classes.rb +977 -0
  267. data/generated/google/apis/fusiontables_v1/representations.rb +449 -0
  268. data/generated/google/apis/fusiontables_v1/service.rb +1373 -0
  269. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  270. data/generated/google/apis/games_management_v1management.rb +1 -1
  271. data/generated/google/apis/games_v1.rb +1 -1
  272. data/generated/google/apis/genomics_v1.rb +8 -8
  273. data/generated/google/apis/genomics_v1/classes.rb +2288 -2288
  274. data/generated/google/apis/genomics_v1/representations.rb +482 -482
  275. data/generated/google/apis/genomics_v1/service.rb +966 -966
  276. data/generated/google/apis/genomics_v1alpha2.rb +40 -0
  277. data/generated/google/apis/genomics_v1alpha2/classes.rb +1207 -0
  278. data/generated/google/apis/genomics_v1alpha2/representations.rb +449 -0
  279. data/generated/google/apis/genomics_v1alpha2/service.rb +426 -0
  280. data/generated/google/apis/gmail_v1.rb +1 -1
  281. data/generated/google/apis/iam_v1.rb +1 -1
  282. data/generated/google/apis/iam_v1/classes.rb +664 -395
  283. data/generated/google/apis/iam_v1/representations.rb +194 -81
  284. data/generated/google/apis/iam_v1/service.rb +657 -92
  285. data/generated/google/apis/identitytoolkit_v3.rb +1 -1
  286. data/generated/google/apis/kgsearch_v1/classes.rb +7 -7
  287. data/generated/google/apis/kgsearch_v1/representations.rb +1 -1
  288. data/generated/google/apis/kgsearch_v1/service.rb +8 -8
  289. data/generated/google/apis/language_v1.rb +4 -1
  290. data/generated/google/apis/language_v1/classes.rb +393 -393
  291. data/generated/google/apis/language_v1/representations.rb +95 -95
  292. data/generated/google/apis/language_v1/service.rb +42 -42
  293. data/generated/google/apis/language_v1beta1.rb +4 -1
  294. data/generated/google/apis/language_v1beta1/classes.rb +457 -457
  295. data/generated/google/apis/language_v1beta1/representations.rb +114 -114
  296. data/generated/google/apis/language_v1beta1/service.rb +48 -48
  297. data/generated/google/apis/language_v1beta2.rb +39 -0
  298. data/generated/google/apis/language_v1beta2/classes.rb +824 -0
  299. data/generated/google/apis/language_v1beta2/representations.rb +373 -0
  300. data/generated/google/apis/language_v1beta2/service.rb +217 -0
  301. data/generated/google/apis/logging_v2.rb +9 -9
  302. data/generated/google/apis/logging_v2/classes.rb +840 -834
  303. data/generated/google/apis/logging_v2/representations.rb +168 -167
  304. data/generated/google/apis/logging_v2/service.rb +667 -463
  305. data/generated/google/apis/logging_v2beta1.rb +9 -9
  306. data/generated/google/apis/logging_v2beta1/classes.rb +856 -850
  307. data/generated/google/apis/logging_v2beta1/representations.rb +169 -168
  308. data/generated/google/apis/logging_v2beta1/service.rb +253 -255
  309. data/generated/google/apis/manufacturers_v1.rb +1 -1
  310. data/generated/google/apis/manufacturers_v1/classes.rb +396 -389
  311. data/generated/google/apis/manufacturers_v1/representations.rb +92 -91
  312. data/generated/google/apis/manufacturers_v1/service.rb +8 -7
  313. data/generated/google/apis/ml_v1.rb +1 -1
  314. data/generated/google/apis/ml_v1/classes.rb +1487 -1676
  315. data/generated/google/apis/ml_v1/representations.rb +229 -299
  316. data/generated/google/apis/ml_v1/service.rb +359 -253
  317. data/generated/google/apis/ml_v1beta1.rb +34 -0
  318. data/generated/google/apis/ml_v1beta1/classes.rb +2396 -0
  319. data/generated/google/apis/ml_v1beta1/representations.rb +755 -0
  320. data/generated/google/apis/ml_v1beta1/service.rb +975 -0
  321. data/generated/google/apis/monitoring_v3.rb +6 -6
  322. data/generated/google/apis/monitoring_v3/classes.rb +834 -834
  323. data/generated/google/apis/monitoring_v3/representations.rb +168 -168
  324. data/generated/google/apis/monitoring_v3/service.rb +330 -330
  325. data/generated/google/apis/mybusiness_v3/classes.rb +1181 -1181
  326. data/generated/google/apis/mybusiness_v3/representations.rb +242 -242
  327. data/generated/google/apis/mybusiness_v3/service.rb +241 -241
  328. data/generated/google/apis/oauth2_v1.rb +43 -0
  329. data/generated/google/apis/oauth2_v1/classes.rb +321 -0
  330. data/generated/google/apis/oauth2_v1/representations.rb +135 -0
  331. data/generated/google/apis/oauth2_v1/service.rb +337 -0
  332. data/generated/google/apis/oauth2_v2.rb +1 -1
  333. data/generated/google/apis/oslogin_v1alpha.rb +37 -0
  334. data/generated/google/apis/oslogin_v1alpha/classes.rb +200 -0
  335. data/generated/google/apis/oslogin_v1alpha/representations.rb +105 -0
  336. data/generated/google/apis/oslogin_v1alpha/service.rb +228 -0
  337. data/generated/google/apis/pagespeedonline_v1.rb +32 -0
  338. data/generated/google/apis/pagespeedonline_v1/classes.rb +536 -0
  339. data/generated/google/apis/pagespeedonline_v1/representations.rb +257 -0
  340. data/generated/google/apis/pagespeedonline_v1/service.rb +120 -0
  341. data/generated/google/apis/partners_v2.rb +1 -1
  342. data/generated/google/apis/partners_v2/classes.rb +1512 -1512
  343. data/generated/google/apis/partners_v2/representations.rb +368 -368
  344. data/generated/google/apis/partners_v2/service.rb +596 -596
  345. data/generated/google/apis/people_v1.rb +15 -15
  346. data/generated/google/apis/people_v1/classes.rb +1384 -1383
  347. data/generated/google/apis/people_v1/representations.rb +311 -311
  348. data/generated/google/apis/people_v1/service.rb +208 -202
  349. data/generated/google/apis/playcustomapp_v1.rb +34 -0
  350. data/generated/google/apis/playcustomapp_v1/classes.rb +51 -0
  351. data/generated/google/apis/playcustomapp_v1/representations.rb +40 -0
  352. data/generated/google/apis/playcustomapp_v1/service.rb +114 -0
  353. data/generated/google/apis/playmoviespartner_v1.rb +34 -0
  354. data/generated/google/apis/playmoviespartner_v1/classes.rb +782 -0
  355. data/generated/google/apis/playmoviespartner_v1/representations.rb +191 -0
  356. data/generated/google/apis/playmoviespartner_v1/service.rb +354 -0
  357. data/generated/google/apis/plus_domains_v1.rb +1 -1
  358. data/generated/google/apis/plus_v1.rb +1 -1
  359. data/generated/google/apis/prediction_v1_2.rb +44 -0
  360. data/generated/google/apis/prediction_v1_2/classes.rb +237 -0
  361. data/generated/google/apis/prediction_v1_2/representations.rb +133 -0
  362. data/generated/google/apis/prediction_v1_2/service.rb +287 -0
  363. data/generated/google/apis/prediction_v1_3.rb +44 -0
  364. data/generated/google/apis/prediction_v1_3/classes.rb +286 -0
  365. data/generated/google/apis/prediction_v1_3/representations.rb +139 -0
  366. data/generated/google/apis/prediction_v1_3/service.rb +284 -0
  367. data/generated/google/apis/prediction_v1_4.rb +44 -0
  368. data/generated/google/apis/prediction_v1_4/classes.rb +336 -0
  369. data/generated/google/apis/prediction_v1_4/representations.rb +158 -0
  370. data/generated/google/apis/prediction_v1_4/service.rb +284 -0
  371. data/generated/google/apis/prediction_v1_5.rb +44 -0
  372. data/generated/google/apis/prediction_v1_5/classes.rb +708 -0
  373. data/generated/google/apis/prediction_v1_5/representations.rb +352 -0
  374. data/generated/google/apis/prediction_v1_5/service.rb +357 -0
  375. data/generated/google/apis/proximitybeacon_v1beta1.rb +1 -1
  376. data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +539 -539
  377. data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +105 -105
  378. data/generated/google/apis/proximitybeacon_v1beta1/service.rb +312 -312
  379. data/generated/google/apis/pubsub_v1.rb +4 -4
  380. data/generated/google/apis/pubsub_v1/classes.rb +352 -352
  381. data/generated/google/apis/pubsub_v1/representations.rb +77 -77
  382. data/generated/google/apis/pubsub_v1/service.rb +346 -346
  383. data/generated/google/apis/pubsub_v1beta1a.rb +37 -0
  384. data/generated/google/apis/pubsub_v1beta1a/classes.rb +605 -0
  385. data/generated/google/apis/pubsub_v1beta1a/representations.rb +306 -0
  386. data/generated/google/apis/pubsub_v1beta1a/service.rb +549 -0
  387. data/generated/google/apis/pubsub_v1beta2.rb +37 -0
  388. data/generated/google/apis/pubsub_v1beta2/classes.rb +679 -0
  389. data/generated/google/apis/pubsub_v1beta2/representations.rb +324 -0
  390. data/generated/google/apis/pubsub_v1beta2/service.rb +779 -0
  391. data/generated/google/apis/replicapool_v1beta1.rb +50 -0
  392. data/generated/google/apis/replicapool_v1beta1/classes.rb +918 -0
  393. data/generated/google/apis/replicapool_v1beta1/representations.rb +409 -0
  394. data/generated/google/apis/replicapool_v1beta1/service.rb +511 -0
  395. data/generated/google/apis/resourceviews_v1beta1.rb +50 -0
  396. data/generated/google/apis/resourceviews_v1beta1/classes.rb +338 -0
  397. data/generated/google/apis/resourceviews_v1beta1/representations.rb +201 -0
  398. data/generated/google/apis/resourceviews_v1beta1/service.rb +667 -0
  399. data/generated/google/apis/runtimeconfig_v1.rb +4 -4
  400. data/generated/google/apis/runtimeconfig_v1/classes.rb +118 -118
  401. data/generated/google/apis/runtimeconfig_v1/representations.rb +18 -18
  402. data/generated/google/apis/runtimeconfig_v1/service.rb +21 -21
  403. data/generated/google/apis/runtimeconfig_v1beta1.rb +40 -0
  404. data/generated/google/apis/runtimeconfig_v1beta1/classes.rb +805 -0
  405. data/generated/google/apis/runtimeconfig_v1beta1/representations.rb +280 -0
  406. data/generated/google/apis/runtimeconfig_v1beta1/service.rb +903 -0
  407. data/generated/google/apis/safebrowsing_v4.rb +32 -0
  408. data/generated/google/apis/safebrowsing_v4/classes.rb +771 -0
  409. data/generated/google/apis/safebrowsing_v4/representations.rb +379 -0
  410. data/generated/google/apis/safebrowsing_v4/service.rb +252 -0
  411. data/generated/google/apis/script_v1.rb +19 -19
  412. data/generated/google/apis/script_v1/classes.rb +99 -157
  413. data/generated/google/apis/script_v1/representations.rb +17 -47
  414. data/generated/google/apis/script_v1/service.rb +12 -12
  415. data/generated/google/apis/searchconsole_v1.rb +1 -1
  416. data/generated/google/apis/searchconsole_v1/classes.rb +84 -84
  417. data/generated/google/apis/searchconsole_v1/representations.rb +32 -32
  418. data/generated/google/apis/servicecontrol_v1.rb +4 -4
  419. data/generated/google/apis/servicecontrol_v1/classes.rb +1086 -1042
  420. data/generated/google/apis/servicecontrol_v1/representations.rb +216 -200
  421. data/generated/google/apis/servicecontrol_v1/service.rb +120 -114
  422. data/generated/google/apis/servicemanagement_v1.rb +7 -7
  423. data/generated/google/apis/servicemanagement_v1/classes.rb +3375 -3383
  424. data/generated/google/apis/servicemanagement_v1/representations.rb +551 -552
  425. data/generated/google/apis/servicemanagement_v1/service.rb +386 -386
  426. data/generated/google/apis/serviceuser_v1.rb +5 -5
  427. data/generated/google/apis/serviceuser_v1/classes.rb +2667 -2598
  428. data/generated/google/apis/serviceuser_v1/representations.rb +406 -389
  429. data/generated/google/apis/serviceuser_v1/service.rb +43 -43
  430. data/generated/google/apis/sheets_v4.rb +7 -7
  431. data/generated/google/apis/sheets_v4/classes.rb +5031 -5024
  432. data/generated/google/apis/sheets_v4/representations.rb +931 -930
  433. data/generated/google/apis/sheets_v4/service.rb +244 -244
  434. data/generated/google/apis/slides_v1.rb +10 -10
  435. data/generated/google/apis/slides_v1/classes.rb +2915 -2915
  436. data/generated/google/apis/slides_v1/representations.rb +698 -698
  437. data/generated/google/apis/slides_v1/service.rb +35 -35
  438. data/generated/google/apis/sourcerepo_v1.rb +3 -3
  439. data/generated/google/apis/sourcerepo_v1/classes.rb +313 -313
  440. data/generated/google/apis/sourcerepo_v1/representations.rb +77 -77
  441. data/generated/google/apis/sourcerepo_v1/service.rb +102 -102
  442. data/generated/google/apis/spanner_v1.rb +4 -4
  443. data/generated/google/apis/spanner_v1/classes.rb +2304 -2251
  444. data/generated/google/apis/spanner_v1/representations.rb +338 -323
  445. data/generated/google/apis/spanner_v1/service.rb +689 -689
  446. data/generated/google/apis/spectrum_v1explorer.rb +31 -0
  447. data/generated/google/apis/spectrum_v1explorer/classes.rb +1612 -0
  448. data/generated/google/apis/spectrum_v1explorer/representations.rb +611 -0
  449. data/generated/google/apis/spectrum_v1explorer/service.rb +285 -0
  450. data/generated/google/apis/speech_v1.rb +34 -0
  451. data/generated/google/apis/speech_v1/classes.rb +572 -0
  452. data/generated/google/apis/speech_v1/representations.rb +236 -0
  453. data/generated/google/apis/speech_v1/service.rb +277 -0
  454. data/generated/google/apis/speech_v1beta1.rb +1 -1
  455. data/generated/google/apis/speech_v1beta1/classes.rb +312 -312
  456. data/generated/google/apis/speech_v1beta1/representations.rb +48 -48
  457. data/generated/google/apis/speech_v1beta1/service.rb +46 -46
  458. data/generated/google/apis/sqladmin_v1beta3.rb +38 -0
  459. data/generated/google/apis/sqladmin_v1beta3/classes.rb +1615 -0
  460. data/generated/google/apis/sqladmin_v1beta3/representations.rb +731 -0
  461. data/generated/google/apis/sqladmin_v1beta3/service.rb +1045 -0
  462. data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
  463. data/generated/google/apis/sqladmin_v1beta4/classes.rb +15 -7
  464. data/generated/google/apis/sqladmin_v1beta4/representations.rb +1 -0
  465. data/generated/google/apis/storage_v1.rb +1 -1
  466. data/generated/google/apis/storage_v1/classes.rb +7 -6
  467. data/generated/google/apis/storage_v1/service.rb +51 -29
  468. data/generated/google/apis/storage_v1beta1.rb +40 -0
  469. data/generated/google/apis/storage_v1beta1/classes.rb +616 -0
  470. data/generated/google/apis/storage_v1beta1/representations.rb +249 -0
  471. data/generated/google/apis/storage_v1beta1/service.rb +1082 -0
  472. data/generated/google/apis/storage_v1beta2.rb +40 -0
  473. data/generated/google/apis/storage_v1beta2/classes.rb +1048 -0
  474. data/generated/google/apis/storage_v1beta2/representations.rb +425 -0
  475. data/generated/google/apis/storage_v1beta2/service.rb +1736 -0
  476. data/generated/google/apis/storagetransfer_v1.rb +1 -1
  477. data/generated/google/apis/storagetransfer_v1/classes.rb +556 -556
  478. data/generated/google/apis/storagetransfer_v1/representations.rb +139 -139
  479. data/generated/google/apis/storagetransfer_v1/service.rb +148 -148
  480. data/generated/google/apis/streetviewpublish_v1.rb +36 -0
  481. data/generated/google/apis/streetviewpublish_v1/classes.rb +705 -0
  482. data/generated/google/apis/streetviewpublish_v1/representations.rb +296 -0
  483. data/generated/google/apis/streetviewpublish_v1/service.rb +485 -0
  484. data/generated/google/apis/taskqueue_v1beta1.rb +37 -0
  485. data/generated/google/apis/taskqueue_v1beta1/classes.rb +242 -0
  486. data/generated/google/apis/taskqueue_v1beta1/representations.rb +124 -0
  487. data/generated/google/apis/taskqueue_v1beta1/service.rb +269 -0
  488. data/generated/google/apis/toolresults_v1beta3.rb +1 -1
  489. data/generated/google/apis/toolresults_v1beta3/classes.rb +382 -4
  490. data/generated/google/apis/toolresults_v1beta3/representations.rb +139 -0
  491. data/generated/google/apis/toolresults_v1beta3/service.rb +50 -0
  492. data/generated/google/apis/toolresults_v1beta3firstparty.rb +31 -0
  493. data/generated/google/apis/toolresults_v1beta3firstparty/classes.rb +2630 -0
  494. data/generated/google/apis/toolresults_v1beta3firstparty/representations.rb +886 -0
  495. data/generated/google/apis/toolresults_v1beta3firstparty/service.rb +1288 -0
  496. data/generated/google/apis/translate_v2/classes.rb +111 -111
  497. data/generated/google/apis/translate_v2/representations.rb +49 -49
  498. data/generated/google/apis/translate_v2/service.rb +94 -94
  499. data/generated/google/apis/vault_v1.rb +31 -0
  500. data/generated/google/apis/vault_v1/classes.rb +554 -0
  501. data/generated/google/apis/vault_v1/representations.rb +318 -0
  502. data/generated/google/apis/vault_v1/service.rb +677 -0
  503. data/generated/google/apis/videointelligence_v1beta1.rb +34 -0
  504. data/generated/google/apis/videointelligence_v1beta1/classes.rb +903 -0
  505. data/generated/google/apis/videointelligence_v1beta1/representations.rb +351 -0
  506. data/generated/google/apis/videointelligence_v1beta1/service.rb +92 -0
  507. data/generated/google/apis/vision_v1.rb +4 -4
  508. data/generated/google/apis/vision_v1/classes.rb +1176 -1178
  509. data/generated/google/apis/vision_v1/representations.rb +235 -235
  510. data/generated/google/apis/webmasters_v3.rb +1 -1
  511. data/generated/google/apis/youtube_analytics_v1.rb +1 -1
  512. data/generated/google/apis/youtube_analytics_v1beta1.rb +46 -0
  513. data/generated/google/apis/youtube_analytics_v1beta1/classes.rb +337 -0
  514. data/generated/google/apis/youtube_analytics_v1beta1/representations.rb +174 -0
  515. data/generated/google/apis/youtube_analytics_v1beta1/service.rb +491 -0
  516. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  517. data/generated/google/apis/youtube_partner_v1/classes.rb +3 -3
  518. data/generated/google/apis/youtube_partner_v1/representations.rb +1 -1
  519. data/generated/google/apis/youtubereporting_v1.rb +4 -4
  520. data/generated/google/apis/youtubereporting_v1/classes.rb +134 -134
  521. data/generated/google/apis/youtubereporting_v1/representations.rb +36 -36
  522. data/generated/google/apis/youtubereporting_v1/service.rb +131 -131
  523. data/lib/google/apis/version.rb +1 -1
  524. metadata +246 -2
@@ -0,0 +1,1875 @@
1
+ # Copyright 2015 Google Inc.
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ require 'google/apis/core/base_service'
16
+ require 'google/apis/core/json_representation'
17
+ require 'google/apis/core/hashable'
18
+ require 'google/apis/errors'
19
+
20
+ module Google
21
+ module Apis
22
+ module ContainerV1beta1
23
+ # Google Container Engine API
24
+ #
25
+ # The Google Container Engine API is used for building and managing container
26
+ # based applications, powered by the open source Kubernetes technology.
27
+ #
28
+ # @example
29
+ # require 'google/apis/container_v1beta1'
30
+ #
31
+ # Container = Google::Apis::ContainerV1beta1 # Alias the module
32
+ # service = Container::ContainerService.new
33
+ #
34
+ # @see https://cloud.google.com/container-engine/
35
+ class ContainerService < Google::Apis::Core::BaseService
36
+ # @return [String]
37
+ # API key. Your API key identifies your project and provides you with API access,
38
+ # quota, and reports. Required unless you provide an OAuth 2.0 token.
39
+ attr_accessor :key
40
+
41
+ # @return [String]
42
+ # Available to use for quota purposes for server-side applications. Can be any
43
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
44
+ attr_accessor :quota_user
45
+
46
+ def initialize
47
+ super('https://container.googleapis.com/', '')
48
+ @batch_path = 'batch'
49
+ end
50
+
51
+ # Returns configuration info about the Container Engine service.
52
+ # @param [String] name
53
+ # The name (project and location) of the server config to get
54
+ # Specified in the format 'projects/*/locations/*'.
55
+ # @param [String] project_id
56
+ # The Google Developers Console [project ID or project
57
+ # number](https://support.google.com/cloud/answer/6158840).
58
+ # This field is deprecated, use name instead.
59
+ # @param [String] zone
60
+ # The name of the Google Compute Engine [zone](/compute/docs/zones#available)
61
+ # to return operations for.
62
+ # This field is deprecated, use name instead.
63
+ # @param [String] fields
64
+ # Selector specifying which fields to include in a partial response.
65
+ # @param [String] quota_user
66
+ # Available to use for quota purposes for server-side applications. Can be any
67
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
68
+ # @param [Google::Apis::RequestOptions] options
69
+ # Request-specific options
70
+ #
71
+ # @yield [result, err] Result & error if block supplied
72
+ # @yieldparam result [Google::Apis::ContainerV1beta1::ServerConfig] parsed result object
73
+ # @yieldparam err [StandardError] error object if request failed
74
+ #
75
+ # @return [Google::Apis::ContainerV1beta1::ServerConfig]
76
+ #
77
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
78
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
79
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
80
+ def get_project_location_server_config(name, project_id: nil, zone: nil, fields: nil, quota_user: nil, options: nil, &block)
81
+ command = make_simple_command(:get, 'v1beta1/{+name}/serverConfig', options)
82
+ command.response_representation = Google::Apis::ContainerV1beta1::ServerConfig::Representation
83
+ command.response_class = Google::Apis::ContainerV1beta1::ServerConfig
84
+ command.params['name'] = name unless name.nil?
85
+ command.query['projectId'] = project_id unless project_id.nil?
86
+ command.query['zone'] = zone unless zone.nil?
87
+ command.query['fields'] = fields unless fields.nil?
88
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
89
+ execute_or_queue_command(command, &block)
90
+ end
91
+
92
+ # Completes master IP rotation.
93
+ # @param [String] name
94
+ # The name (project, location, cluster id) of the cluster to complete IP
95
+ # rotation.
96
+ # Specified in the format 'projects/*/locations/*/clusters/*'.
97
+ # @param [Google::Apis::ContainerV1beta1::CompleteIpRotationRequest] complete_ip_rotation_request_object
98
+ # @param [String] fields
99
+ # Selector specifying which fields to include in a partial response.
100
+ # @param [String] quota_user
101
+ # Available to use for quota purposes for server-side applications. Can be any
102
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
103
+ # @param [Google::Apis::RequestOptions] options
104
+ # Request-specific options
105
+ #
106
+ # @yield [result, err] Result & error if block supplied
107
+ # @yieldparam result [Google::Apis::ContainerV1beta1::Operation] parsed result object
108
+ # @yieldparam err [StandardError] error object if request failed
109
+ #
110
+ # @return [Google::Apis::ContainerV1beta1::Operation]
111
+ #
112
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
113
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
114
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
115
+ def complete_project_location_cluster_ip_rotation(name, complete_ip_rotation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
116
+ command = make_simple_command(:post, 'v1beta1/{+name}:completeIpRotation', options)
117
+ command.request_representation = Google::Apis::ContainerV1beta1::CompleteIpRotationRequest::Representation
118
+ command.request_object = complete_ip_rotation_request_object
119
+ command.response_representation = Google::Apis::ContainerV1beta1::Operation::Representation
120
+ command.response_class = Google::Apis::ContainerV1beta1::Operation
121
+ command.params['name'] = name unless name.nil?
122
+ command.query['fields'] = fields unless fields.nil?
123
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
124
+ execute_or_queue_command(command, &block)
125
+ end
126
+
127
+ # Creates a cluster, consisting of the specified number and type of Google
128
+ # Compute Engine instances.
129
+ # By default, the cluster is created in the project's
130
+ # [default network](/compute/docs/networks-and-firewalls#networks).
131
+ # One firewall is added for the cluster. After cluster creation,
132
+ # the cluster creates routes for each node to allow the containers
133
+ # on that node to communicate with all other instances in the
134
+ # cluster.
135
+ # Finally, an entry is added to the project's global metadata indicating
136
+ # which CIDR range is being used by the cluster.
137
+ # @param [String] parent
138
+ # The parent (project and location) where the cluster will be created.
139
+ # Specified in the format 'projects/*/locations/*'.
140
+ # @param [Google::Apis::ContainerV1beta1::CreateClusterRequest] create_cluster_request_object
141
+ # @param [String] fields
142
+ # Selector specifying which fields to include in a partial response.
143
+ # @param [String] quota_user
144
+ # Available to use for quota purposes for server-side applications. Can be any
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::ContainerV1beta1::Operation] parsed result object
151
+ # @yieldparam err [StandardError] error object if request failed
152
+ #
153
+ # @return [Google::Apis::ContainerV1beta1::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 create_project_location_cluster(parent, create_cluster_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
159
+ command = make_simple_command(:post, 'v1beta1/{+parent}/clusters', options)
160
+ command.request_representation = Google::Apis::ContainerV1beta1::CreateClusterRequest::Representation
161
+ command.request_object = create_cluster_request_object
162
+ command.response_representation = Google::Apis::ContainerV1beta1::Operation::Representation
163
+ command.response_class = Google::Apis::ContainerV1beta1::Operation
164
+ command.params['parent'] = parent unless parent.nil?
165
+ command.query['fields'] = fields unless fields.nil?
166
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
167
+ execute_or_queue_command(command, &block)
168
+ end
169
+
170
+ # Deletes the cluster, including the Kubernetes endpoint and all worker
171
+ # nodes.
172
+ # Firewalls and routes that were configured during cluster creation
173
+ # are also deleted.
174
+ # Other Google Compute Engine resources that might be in use by the cluster
175
+ # (e.g. load balancer resources) will not be deleted if they weren't present
176
+ # at the initial create time.
177
+ # @param [String] name
178
+ # The name (project, location, cluster) of the cluster to delete.
179
+ # Specified in the format 'projects/*/locations/*/clusters/*'.
180
+ # @param [String] cluster_id
181
+ # The name of the cluster to delete.
182
+ # This field is deprecated, use name instead.
183
+ # @param [String] project_id
184
+ # The Google Developers Console [project ID or project
185
+ # number](https://support.google.com/cloud/answer/6158840).
186
+ # This field is deprecated, use name instead.
187
+ # @param [String] zone
188
+ # The name of the Google Compute Engine
189
+ # [zone](/compute/docs/zones#available) in which the cluster
190
+ # resides.
191
+ # This field is deprecated, use name instead.
192
+ # @param [String] fields
193
+ # Selector specifying which fields to include in a partial response.
194
+ # @param [String] quota_user
195
+ # Available to use for quota purposes for server-side applications. Can be any
196
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
197
+ # @param [Google::Apis::RequestOptions] options
198
+ # Request-specific options
199
+ #
200
+ # @yield [result, err] Result & error if block supplied
201
+ # @yieldparam result [Google::Apis::ContainerV1beta1::Operation] parsed result object
202
+ # @yieldparam err [StandardError] error object if request failed
203
+ #
204
+ # @return [Google::Apis::ContainerV1beta1::Operation]
205
+ #
206
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
207
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
208
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
209
+ def delete_project_location_cluster(name, cluster_id: nil, project_id: nil, zone: nil, fields: nil, quota_user: nil, options: nil, &block)
210
+ command = make_simple_command(:delete, 'v1beta1/{+name}', options)
211
+ command.response_representation = Google::Apis::ContainerV1beta1::Operation::Representation
212
+ command.response_class = Google::Apis::ContainerV1beta1::Operation
213
+ command.params['name'] = name unless name.nil?
214
+ command.query['clusterId'] = cluster_id unless cluster_id.nil?
215
+ command.query['projectId'] = project_id unless project_id.nil?
216
+ command.query['zone'] = zone unless zone.nil?
217
+ command.query['fields'] = fields unless fields.nil?
218
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
219
+ execute_or_queue_command(command, &block)
220
+ end
221
+
222
+ # Gets the details of a specific cluster.
223
+ # @param [String] name
224
+ # The name (project, location, cluster) of the cluster to retrieve.
225
+ # Specified in the format 'projects/*/locations/*/clusters/*'.
226
+ # @param [String] cluster_id
227
+ # The name of the cluster to retrieve.
228
+ # This field is deprecated, use name instead.
229
+ # @param [String] project_id
230
+ # The Google Developers Console [project ID or project
231
+ # number](https://support.google.com/cloud/answer/6158840).
232
+ # This field is deprecated, use name instead.
233
+ # @param [String] zone
234
+ # The name of the Google Compute Engine
235
+ # [zone](/compute/docs/zones#available) in which the cluster
236
+ # resides.
237
+ # This field is deprecated, use name instead.
238
+ # @param [String] fields
239
+ # Selector specifying which fields to include in a partial response.
240
+ # @param [String] quota_user
241
+ # Available to use for quota purposes for server-side applications. Can be any
242
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
243
+ # @param [Google::Apis::RequestOptions] options
244
+ # Request-specific options
245
+ #
246
+ # @yield [result, err] Result & error if block supplied
247
+ # @yieldparam result [Google::Apis::ContainerV1beta1::Cluster] parsed result object
248
+ # @yieldparam err [StandardError] error object if request failed
249
+ #
250
+ # @return [Google::Apis::ContainerV1beta1::Cluster]
251
+ #
252
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
253
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
254
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
255
+ def get_project_location_cluster(name, cluster_id: nil, project_id: nil, zone: nil, fields: nil, quota_user: nil, options: nil, &block)
256
+ command = make_simple_command(:get, 'v1beta1/{+name}', options)
257
+ command.response_representation = Google::Apis::ContainerV1beta1::Cluster::Representation
258
+ command.response_class = Google::Apis::ContainerV1beta1::Cluster
259
+ command.params['name'] = name unless name.nil?
260
+ command.query['clusterId'] = cluster_id unless cluster_id.nil?
261
+ command.query['projectId'] = project_id unless project_id.nil?
262
+ command.query['zone'] = zone unless zone.nil?
263
+ command.query['fields'] = fields unless fields.nil?
264
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
265
+ execute_or_queue_command(command, &block)
266
+ end
267
+
268
+ # Lists all clusters owned by a project in either the specified zone or all
269
+ # zones.
270
+ # @param [String] parent
271
+ # The parent (project and location) where the clusters will be listed.
272
+ # Specified in the format 'projects/*/locations/*'.
273
+ # Location "-" matches all zones and all regions.
274
+ # @param [String] project_id
275
+ # The Google Developers Console [project ID or project
276
+ # number](https://support.google.com/cloud/answer/6158840).
277
+ # This field is deprecated, use parent instead.
278
+ # @param [String] zone
279
+ # The name of the Google Compute Engine
280
+ # [zone](/compute/docs/zones#available) in which the cluster
281
+ # resides, or "-" for all zones.
282
+ # This field is deprecated, use parent instead.
283
+ # @param [String] fields
284
+ # Selector specifying which fields to include in a partial response.
285
+ # @param [String] quota_user
286
+ # Available to use for quota purposes for server-side applications. Can be any
287
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
288
+ # @param [Google::Apis::RequestOptions] options
289
+ # Request-specific options
290
+ #
291
+ # @yield [result, err] Result & error if block supplied
292
+ # @yieldparam result [Google::Apis::ContainerV1beta1::ListClustersResponse] parsed result object
293
+ # @yieldparam err [StandardError] error object if request failed
294
+ #
295
+ # @return [Google::Apis::ContainerV1beta1::ListClustersResponse]
296
+ #
297
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
298
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
299
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
300
+ def list_project_location_clusters(parent, project_id: nil, zone: nil, fields: nil, quota_user: nil, options: nil, &block)
301
+ command = make_simple_command(:get, 'v1beta1/{+parent}/clusters', options)
302
+ command.response_representation = Google::Apis::ContainerV1beta1::ListClustersResponse::Representation
303
+ command.response_class = Google::Apis::ContainerV1beta1::ListClustersResponse
304
+ command.params['parent'] = parent unless parent.nil?
305
+ command.query['projectId'] = project_id unless project_id.nil?
306
+ command.query['zone'] = zone unless zone.nil?
307
+ command.query['fields'] = fields unless fields.nil?
308
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
309
+ execute_or_queue_command(command, &block)
310
+ end
311
+
312
+ # Enables or disables the ABAC authorization mechanism on a cluster.
313
+ # @param [String] name
314
+ # The name (project, location, cluster id) of the cluster to set legacy abac.
315
+ # Specified in the format 'projects/*/locations/*/clusters/*'.
316
+ # @param [Google::Apis::ContainerV1beta1::SetLegacyAbacRequest] set_legacy_abac_request_object
317
+ # @param [String] fields
318
+ # Selector specifying which fields to include in a partial response.
319
+ # @param [String] quota_user
320
+ # Available to use for quota purposes for server-side applications. Can be any
321
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
322
+ # @param [Google::Apis::RequestOptions] options
323
+ # Request-specific options
324
+ #
325
+ # @yield [result, err] Result & error if block supplied
326
+ # @yieldparam result [Google::Apis::ContainerV1beta1::Operation] parsed result object
327
+ # @yieldparam err [StandardError] error object if request failed
328
+ #
329
+ # @return [Google::Apis::ContainerV1beta1::Operation]
330
+ #
331
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
332
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
333
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
334
+ def set_cluster_legacy_abac(name, set_legacy_abac_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
335
+ command = make_simple_command(:post, 'v1beta1/{+name}:setLegacyAbac', options)
336
+ command.request_representation = Google::Apis::ContainerV1beta1::SetLegacyAbacRequest::Representation
337
+ command.request_object = set_legacy_abac_request_object
338
+ command.response_representation = Google::Apis::ContainerV1beta1::Operation::Representation
339
+ command.response_class = Google::Apis::ContainerV1beta1::Operation
340
+ command.params['name'] = name unless name.nil?
341
+ command.query['fields'] = fields unless fields.nil?
342
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
343
+ execute_or_queue_command(command, &block)
344
+ end
345
+
346
+ # Used to set master auth materials. Currently supports :-
347
+ # Changing the admin password of a specific cluster.
348
+ # This can be either via password generation or explicitly set.
349
+ # Modify basic_auth.csv and reset the K8S API server.
350
+ # @param [String] name
351
+ # The name (project, location, cluster) of the cluster to set auth.
352
+ # Specified in the format 'projects/*/locations/*/clusters/*'.
353
+ # @param [Google::Apis::ContainerV1beta1::SetMasterAuthRequest] set_master_auth_request_object
354
+ # @param [String] fields
355
+ # Selector specifying which fields to include in a partial response.
356
+ # @param [String] quota_user
357
+ # Available to use for quota purposes for server-side applications. Can be any
358
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
359
+ # @param [Google::Apis::RequestOptions] options
360
+ # Request-specific options
361
+ #
362
+ # @yield [result, err] Result & error if block supplied
363
+ # @yieldparam result [Google::Apis::ContainerV1beta1::Operation] parsed result object
364
+ # @yieldparam err [StandardError] error object if request failed
365
+ #
366
+ # @return [Google::Apis::ContainerV1beta1::Operation]
367
+ #
368
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
369
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
370
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
371
+ def set_project_location_cluster_master_auth(name, set_master_auth_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
372
+ command = make_simple_command(:post, 'v1beta1/{+name}:setMasterAuth', options)
373
+ command.request_representation = Google::Apis::ContainerV1beta1::SetMasterAuthRequest::Representation
374
+ command.request_object = set_master_auth_request_object
375
+ command.response_representation = Google::Apis::ContainerV1beta1::Operation::Representation
376
+ command.response_class = Google::Apis::ContainerV1beta1::Operation
377
+ command.params['name'] = name unless name.nil?
378
+ command.query['fields'] = fields unless fields.nil?
379
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
380
+ execute_or_queue_command(command, &block)
381
+ end
382
+
383
+ # Enables/Disables Network Policy for a cluster.
384
+ # @param [String] name
385
+ # The name (project, location, cluster id) of the cluster to set networking
386
+ # policy.
387
+ # Specified in the format 'projects/*/locations/*/clusters/*'.
388
+ # @param [Google::Apis::ContainerV1beta1::SetNetworkPolicyRequest] set_network_policy_request_object
389
+ # @param [String] fields
390
+ # Selector specifying which fields to include in a partial response.
391
+ # @param [String] quota_user
392
+ # Available to use for quota purposes for server-side applications. Can be any
393
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
394
+ # @param [Google::Apis::RequestOptions] options
395
+ # Request-specific options
396
+ #
397
+ # @yield [result, err] Result & error if block supplied
398
+ # @yieldparam result [Google::Apis::ContainerV1beta1::Operation] parsed result object
399
+ # @yieldparam err [StandardError] error object if request failed
400
+ #
401
+ # @return [Google::Apis::ContainerV1beta1::Operation]
402
+ #
403
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
404
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
405
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
406
+ def set_project_location_cluster_network_policy(name, set_network_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
407
+ command = make_simple_command(:post, 'v1beta1/{+name}:setNetworkPolicy', options)
408
+ command.request_representation = Google::Apis::ContainerV1beta1::SetNetworkPolicyRequest::Representation
409
+ command.request_object = set_network_policy_request_object
410
+ command.response_representation = Google::Apis::ContainerV1beta1::Operation::Representation
411
+ command.response_class = Google::Apis::ContainerV1beta1::Operation
412
+ command.params['name'] = name unless name.nil?
413
+ command.query['fields'] = fields unless fields.nil?
414
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
415
+ execute_or_queue_command(command, &block)
416
+ end
417
+
418
+ # Sets labels on a cluster.
419
+ # @param [String] name
420
+ # The name (project, location, cluster id) of the cluster to set labels.
421
+ # Specified in the format 'projects/*/locations/*/clusters/*'.
422
+ # @param [Google::Apis::ContainerV1beta1::SetLabelsRequest] set_labels_request_object
423
+ # @param [String] fields
424
+ # Selector specifying which fields to include in a partial response.
425
+ # @param [String] quota_user
426
+ # Available to use for quota purposes for server-side applications. Can be any
427
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
428
+ # @param [Google::Apis::RequestOptions] options
429
+ # Request-specific options
430
+ #
431
+ # @yield [result, err] Result & error if block supplied
432
+ # @yieldparam result [Google::Apis::ContainerV1beta1::Operation] parsed result object
433
+ # @yieldparam err [StandardError] error object if request failed
434
+ #
435
+ # @return [Google::Apis::ContainerV1beta1::Operation]
436
+ #
437
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
438
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
439
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
440
+ def set_project_location_cluster_resource_labels(name, set_labels_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
441
+ command = make_simple_command(:post, 'v1beta1/{+name}:setResourceLabels', options)
442
+ command.request_representation = Google::Apis::ContainerV1beta1::SetLabelsRequest::Representation
443
+ command.request_object = set_labels_request_object
444
+ command.response_representation = Google::Apis::ContainerV1beta1::Operation::Representation
445
+ command.response_class = Google::Apis::ContainerV1beta1::Operation
446
+ command.params['name'] = name unless name.nil?
447
+ command.query['fields'] = fields unless fields.nil?
448
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
449
+ execute_or_queue_command(command, &block)
450
+ end
451
+
452
+ # Start master IP rotation.
453
+ # @param [String] name
454
+ # The name (project, location, cluster id) of the cluster to start IP rotation.
455
+ # Specified in the format 'projects/*/locations/*/clusters/*'.
456
+ # @param [Google::Apis::ContainerV1beta1::StartIpRotationRequest] start_ip_rotation_request_object
457
+ # @param [String] fields
458
+ # Selector specifying which fields to include in a partial response.
459
+ # @param [String] quota_user
460
+ # Available to use for quota purposes for server-side applications. Can be any
461
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
462
+ # @param [Google::Apis::RequestOptions] options
463
+ # Request-specific options
464
+ #
465
+ # @yield [result, err] Result & error if block supplied
466
+ # @yieldparam result [Google::Apis::ContainerV1beta1::Operation] parsed result object
467
+ # @yieldparam err [StandardError] error object if request failed
468
+ #
469
+ # @return [Google::Apis::ContainerV1beta1::Operation]
470
+ #
471
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
472
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
473
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
474
+ def start_project_location_cluster_ip_rotation(name, start_ip_rotation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
475
+ command = make_simple_command(:post, 'v1beta1/{+name}:startIpRotation', options)
476
+ command.request_representation = Google::Apis::ContainerV1beta1::StartIpRotationRequest::Representation
477
+ command.request_object = start_ip_rotation_request_object
478
+ command.response_representation = Google::Apis::ContainerV1beta1::Operation::Representation
479
+ command.response_class = Google::Apis::ContainerV1beta1::Operation
480
+ command.params['name'] = name unless name.nil?
481
+ command.query['fields'] = fields unless fields.nil?
482
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
483
+ execute_or_queue_command(command, &block)
484
+ end
485
+
486
+ # Updates the settings of a specific cluster.
487
+ # @param [String] name
488
+ # The name (project, location, cluster) of the cluster to update.
489
+ # Specified in the format 'projects/*/locations/*/clusters/*'.
490
+ # @param [Google::Apis::ContainerV1beta1::UpdateClusterRequest] update_cluster_request_object
491
+ # @param [String] fields
492
+ # Selector specifying which fields to include in a partial response.
493
+ # @param [String] quota_user
494
+ # Available to use for quota purposes for server-side applications. Can be any
495
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
496
+ # @param [Google::Apis::RequestOptions] options
497
+ # Request-specific options
498
+ #
499
+ # @yield [result, err] Result & error if block supplied
500
+ # @yieldparam result [Google::Apis::ContainerV1beta1::Operation] parsed result object
501
+ # @yieldparam err [StandardError] error object if request failed
502
+ #
503
+ # @return [Google::Apis::ContainerV1beta1::Operation]
504
+ #
505
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
506
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
507
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
508
+ def update_project_location_cluster(name, update_cluster_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
509
+ command = make_simple_command(:put, 'v1beta1/{+name}', options)
510
+ command.request_representation = Google::Apis::ContainerV1beta1::UpdateClusterRequest::Representation
511
+ command.request_object = update_cluster_request_object
512
+ command.response_representation = Google::Apis::ContainerV1beta1::Operation::Representation
513
+ command.response_class = Google::Apis::ContainerV1beta1::Operation
514
+ command.params['name'] = name unless name.nil?
515
+ command.query['fields'] = fields unless fields.nil?
516
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
517
+ execute_or_queue_command(command, &block)
518
+ end
519
+
520
+ # Creates a node pool for a cluster.
521
+ # @param [String] parent
522
+ # The parent (project, location, cluster id) where the node pool will be created.
523
+ # Specified in the format 'projects/*/locations/*/clusters/*/nodePools/*'.
524
+ # @param [Google::Apis::ContainerV1beta1::CreateNodePoolRequest] create_node_pool_request_object
525
+ # @param [String] fields
526
+ # Selector specifying which fields to include in a partial response.
527
+ # @param [String] quota_user
528
+ # Available to use for quota purposes for server-side applications. Can be any
529
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
530
+ # @param [Google::Apis::RequestOptions] options
531
+ # Request-specific options
532
+ #
533
+ # @yield [result, err] Result & error if block supplied
534
+ # @yieldparam result [Google::Apis::ContainerV1beta1::Operation] parsed result object
535
+ # @yieldparam err [StandardError] error object if request failed
536
+ #
537
+ # @return [Google::Apis::ContainerV1beta1::Operation]
538
+ #
539
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
540
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
541
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
542
+ def create_project_location_cluster_node_pool(parent, create_node_pool_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
543
+ command = make_simple_command(:post, 'v1beta1/{+parent}/nodePools', options)
544
+ command.request_representation = Google::Apis::ContainerV1beta1::CreateNodePoolRequest::Representation
545
+ command.request_object = create_node_pool_request_object
546
+ command.response_representation = Google::Apis::ContainerV1beta1::Operation::Representation
547
+ command.response_class = Google::Apis::ContainerV1beta1::Operation
548
+ command.params['parent'] = parent unless parent.nil?
549
+ command.query['fields'] = fields unless fields.nil?
550
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
551
+ execute_or_queue_command(command, &block)
552
+ end
553
+
554
+ # Deletes a node pool from a cluster.
555
+ # @param [String] name
556
+ # The name (project, location, cluster, node pool id) of the node pool to delete.
557
+ # Specified in the format 'projects/*/locations/*/clusters/*/nodePools/*'.
558
+ # @param [String] cluster_id
559
+ # The name of the cluster.
560
+ # This field is deprecated, use name instead.
561
+ # @param [String] node_pool_id
562
+ # The name of the node pool to delete.
563
+ # This field is deprecated, use name instead.
564
+ # @param [String] project_id
565
+ # The Google Developers Console [project ID or project
566
+ # number](https://developers.google.com/console/help/new/#projectnumber).
567
+ # This field is deprecated, use name instead.
568
+ # @param [String] zone
569
+ # The name of the Google Compute Engine
570
+ # [zone](/compute/docs/zones#available) in which the cluster
571
+ # resides.
572
+ # This field is deprecated, use name instead.
573
+ # @param [String] fields
574
+ # Selector specifying which fields to include in a partial response.
575
+ # @param [String] quota_user
576
+ # Available to use for quota purposes for server-side applications. Can be any
577
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
578
+ # @param [Google::Apis::RequestOptions] options
579
+ # Request-specific options
580
+ #
581
+ # @yield [result, err] Result & error if block supplied
582
+ # @yieldparam result [Google::Apis::ContainerV1beta1::Operation] parsed result object
583
+ # @yieldparam err [StandardError] error object if request failed
584
+ #
585
+ # @return [Google::Apis::ContainerV1beta1::Operation]
586
+ #
587
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
588
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
589
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
590
+ def delete_project_location_cluster_node_pool(name, cluster_id: nil, node_pool_id: nil, project_id: nil, zone: nil, fields: nil, quota_user: nil, options: nil, &block)
591
+ command = make_simple_command(:delete, 'v1beta1/{+name}', options)
592
+ command.response_representation = Google::Apis::ContainerV1beta1::Operation::Representation
593
+ command.response_class = Google::Apis::ContainerV1beta1::Operation
594
+ command.params['name'] = name unless name.nil?
595
+ command.query['clusterId'] = cluster_id unless cluster_id.nil?
596
+ command.query['nodePoolId'] = node_pool_id unless node_pool_id.nil?
597
+ command.query['projectId'] = project_id unless project_id.nil?
598
+ command.query['zone'] = zone unless zone.nil?
599
+ command.query['fields'] = fields unless fields.nil?
600
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
601
+ execute_or_queue_command(command, &block)
602
+ end
603
+
604
+ # Retrieves the node pool requested.
605
+ # @param [String] name
606
+ # The name (project, location, cluster, node pool id) of the node pool to get.
607
+ # Specified in the format 'projects/*/locations/*/clusters/*/nodePools/*'.
608
+ # @param [String] cluster_id
609
+ # The name of the cluster.
610
+ # This field is deprecated, use name instead.
611
+ # @param [String] node_pool_id
612
+ # The name of the node pool.
613
+ # This field is deprecated, use name instead.
614
+ # @param [String] project_id
615
+ # The Google Developers Console [project ID or project
616
+ # number](https://developers.google.com/console/help/new/#projectnumber).
617
+ # This field is deprecated, use name instead.
618
+ # @param [String] zone
619
+ # The name of the Google Compute Engine
620
+ # [zone](/compute/docs/zones#available) in which the cluster
621
+ # resides.
622
+ # This field is deprecated, use name instead.
623
+ # @param [String] fields
624
+ # Selector specifying which fields to include in a partial response.
625
+ # @param [String] quota_user
626
+ # Available to use for quota purposes for server-side applications. Can be any
627
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
628
+ # @param [Google::Apis::RequestOptions] options
629
+ # Request-specific options
630
+ #
631
+ # @yield [result, err] Result & error if block supplied
632
+ # @yieldparam result [Google::Apis::ContainerV1beta1::NodePool] parsed result object
633
+ # @yieldparam err [StandardError] error object if request failed
634
+ #
635
+ # @return [Google::Apis::ContainerV1beta1::NodePool]
636
+ #
637
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
638
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
639
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
640
+ def get_project_location_cluster_node_pool(name, cluster_id: nil, node_pool_id: nil, project_id: nil, zone: nil, fields: nil, quota_user: nil, options: nil, &block)
641
+ command = make_simple_command(:get, 'v1beta1/{+name}', options)
642
+ command.response_representation = Google::Apis::ContainerV1beta1::NodePool::Representation
643
+ command.response_class = Google::Apis::ContainerV1beta1::NodePool
644
+ command.params['name'] = name unless name.nil?
645
+ command.query['clusterId'] = cluster_id unless cluster_id.nil?
646
+ command.query['nodePoolId'] = node_pool_id unless node_pool_id.nil?
647
+ command.query['projectId'] = project_id unless project_id.nil?
648
+ command.query['zone'] = zone unless zone.nil?
649
+ command.query['fields'] = fields unless fields.nil?
650
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
651
+ execute_or_queue_command(command, &block)
652
+ end
653
+
654
+ # Lists the node pools for a cluster.
655
+ # @param [String] parent
656
+ # The parent (project, location, cluster id) where the node pools will be listed.
657
+ # Specified in the format 'projects/*/locations/*/clusters/*'.
658
+ # @param [String] cluster_id
659
+ # The name of the cluster.
660
+ # This field is deprecated, use parent instead.
661
+ # @param [String] project_id
662
+ # The Google Developers Console [project ID or project
663
+ # number](https://developers.google.com/console/help/new/#projectnumber).
664
+ # This field is deprecated, use parent instead.
665
+ # @param [String] zone
666
+ # The name of the Google Compute Engine
667
+ # [zone](/compute/docs/zones#available) in which the cluster
668
+ # resides.
669
+ # This field is deprecated, use parent instead.
670
+ # @param [String] fields
671
+ # Selector specifying which fields to include in a partial response.
672
+ # @param [String] quota_user
673
+ # Available to use for quota purposes for server-side applications. Can be any
674
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
675
+ # @param [Google::Apis::RequestOptions] options
676
+ # Request-specific options
677
+ #
678
+ # @yield [result, err] Result & error if block supplied
679
+ # @yieldparam result [Google::Apis::ContainerV1beta1::ListNodePoolsResponse] parsed result object
680
+ # @yieldparam err [StandardError] error object if request failed
681
+ #
682
+ # @return [Google::Apis::ContainerV1beta1::ListNodePoolsResponse]
683
+ #
684
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
685
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
686
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
687
+ def list_project_location_cluster_node_pools(parent, cluster_id: nil, project_id: nil, zone: nil, fields: nil, quota_user: nil, options: nil, &block)
688
+ command = make_simple_command(:get, 'v1beta1/{+parent}/nodePools', options)
689
+ command.response_representation = Google::Apis::ContainerV1beta1::ListNodePoolsResponse::Representation
690
+ command.response_class = Google::Apis::ContainerV1beta1::ListNodePoolsResponse
691
+ command.params['parent'] = parent unless parent.nil?
692
+ command.query['clusterId'] = cluster_id unless cluster_id.nil?
693
+ command.query['projectId'] = project_id unless project_id.nil?
694
+ command.query['zone'] = zone unless zone.nil?
695
+ command.query['fields'] = fields unless fields.nil?
696
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
697
+ execute_or_queue_command(command, &block)
698
+ end
699
+
700
+ # Roll back the previously Aborted or Failed NodePool upgrade.
701
+ # This will be an no-op if the last upgrade successfully completed.
702
+ # @param [String] name
703
+ # The name (project, location, cluster, node pool id) of the node poll to
704
+ # rollback upgrade.
705
+ # Specified in the format 'projects/*/locations/*/clusters/*/nodePools/*'.
706
+ # @param [Google::Apis::ContainerV1beta1::RollbackNodePoolUpgradeRequest] rollback_node_pool_upgrade_request_object
707
+ # @param [String] fields
708
+ # Selector specifying which fields to include in a partial response.
709
+ # @param [String] quota_user
710
+ # Available to use for quota purposes for server-side applications. Can be any
711
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
712
+ # @param [Google::Apis::RequestOptions] options
713
+ # Request-specific options
714
+ #
715
+ # @yield [result, err] Result & error if block supplied
716
+ # @yieldparam result [Google::Apis::ContainerV1beta1::Operation] parsed result object
717
+ # @yieldparam err [StandardError] error object if request failed
718
+ #
719
+ # @return [Google::Apis::ContainerV1beta1::Operation]
720
+ #
721
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
722
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
723
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
724
+ def rollback_project_location_cluster_node_pool(name, rollback_node_pool_upgrade_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
725
+ command = make_simple_command(:post, 'v1beta1/{+name}:rollback', options)
726
+ command.request_representation = Google::Apis::ContainerV1beta1::RollbackNodePoolUpgradeRequest::Representation
727
+ command.request_object = rollback_node_pool_upgrade_request_object
728
+ command.response_representation = Google::Apis::ContainerV1beta1::Operation::Representation
729
+ command.response_class = Google::Apis::ContainerV1beta1::Operation
730
+ command.params['name'] = name unless name.nil?
731
+ command.query['fields'] = fields unless fields.nil?
732
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
733
+ execute_or_queue_command(command, &block)
734
+ end
735
+
736
+ # Sets the NodeManagement options for a node pool.
737
+ # @param [String] name
738
+ # The name (project, location, cluster, node pool id) of the node pool to set
739
+ # management properties. Specified in the format
740
+ # 'projects/*/locations/*/clusters/*/nodePools/*'.
741
+ # @param [Google::Apis::ContainerV1beta1::SetNodePoolManagementRequest] set_node_pool_management_request_object
742
+ # @param [String] fields
743
+ # Selector specifying which fields to include in a partial response.
744
+ # @param [String] quota_user
745
+ # Available to use for quota purposes for server-side applications. Can be any
746
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
747
+ # @param [Google::Apis::RequestOptions] options
748
+ # Request-specific options
749
+ #
750
+ # @yield [result, err] Result & error if block supplied
751
+ # @yieldparam result [Google::Apis::ContainerV1beta1::Operation] parsed result object
752
+ # @yieldparam err [StandardError] error object if request failed
753
+ #
754
+ # @return [Google::Apis::ContainerV1beta1::Operation]
755
+ #
756
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
757
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
758
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
759
+ def set_project_location_cluster_node_pool_management(name, set_node_pool_management_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
760
+ command = make_simple_command(:post, 'v1beta1/{+name}:setManagement', options)
761
+ command.request_representation = Google::Apis::ContainerV1beta1::SetNodePoolManagementRequest::Representation
762
+ command.request_object = set_node_pool_management_request_object
763
+ command.response_representation = Google::Apis::ContainerV1beta1::Operation::Representation
764
+ command.response_class = Google::Apis::ContainerV1beta1::Operation
765
+ command.params['name'] = name unless name.nil?
766
+ command.query['fields'] = fields unless fields.nil?
767
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
768
+ execute_or_queue_command(command, &block)
769
+ end
770
+
771
+ # Cancels the specified operation.
772
+ # @param [String] name
773
+ # The name (project, location, operation id) of the operation to cancel.
774
+ # Specified in the format 'projects/*/locations/*/operations/*'.
775
+ # @param [Google::Apis::ContainerV1beta1::CancelOperationRequest] cancel_operation_request_object
776
+ # @param [String] fields
777
+ # Selector specifying which fields to include in a partial response.
778
+ # @param [String] quota_user
779
+ # Available to use for quota purposes for server-side applications. Can be any
780
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
781
+ # @param [Google::Apis::RequestOptions] options
782
+ # Request-specific options
783
+ #
784
+ # @yield [result, err] Result & error if block supplied
785
+ # @yieldparam result [Google::Apis::ContainerV1beta1::Empty] parsed result object
786
+ # @yieldparam err [StandardError] error object if request failed
787
+ #
788
+ # @return [Google::Apis::ContainerV1beta1::Empty]
789
+ #
790
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
791
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
792
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
793
+ def cancel_project_location_operation(name, cancel_operation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
794
+ command = make_simple_command(:post, 'v1beta1/{+name}:cancel', options)
795
+ command.request_representation = Google::Apis::ContainerV1beta1::CancelOperationRequest::Representation
796
+ command.request_object = cancel_operation_request_object
797
+ command.response_representation = Google::Apis::ContainerV1beta1::Empty::Representation
798
+ command.response_class = Google::Apis::ContainerV1beta1::Empty
799
+ command.params['name'] = name unless name.nil?
800
+ command.query['fields'] = fields unless fields.nil?
801
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
802
+ execute_or_queue_command(command, &block)
803
+ end
804
+
805
+ # Gets the specified operation.
806
+ # @param [String] name
807
+ # The name (project, location, operation id) of the operation to get.
808
+ # Specified in the format 'projects/*/locations/*/operations/*'.
809
+ # @param [String] operation_id
810
+ # The server-assigned `name` of the operation.
811
+ # This field is deprecated, use name instead.
812
+ # @param [String] project_id
813
+ # The Google Developers Console [project ID or project
814
+ # number](https://support.google.com/cloud/answer/6158840).
815
+ # This field is deprecated, use name instead.
816
+ # @param [String] zone
817
+ # The name of the Google Compute Engine
818
+ # [zone](/compute/docs/zones#available) in which the cluster
819
+ # resides.
820
+ # This field is deprecated, use name instead.
821
+ # @param [String] fields
822
+ # Selector specifying which fields to include in a partial response.
823
+ # @param [String] quota_user
824
+ # Available to use for quota purposes for server-side applications. Can be any
825
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
826
+ # @param [Google::Apis::RequestOptions] options
827
+ # Request-specific options
828
+ #
829
+ # @yield [result, err] Result & error if block supplied
830
+ # @yieldparam result [Google::Apis::ContainerV1beta1::Operation] parsed result object
831
+ # @yieldparam err [StandardError] error object if request failed
832
+ #
833
+ # @return [Google::Apis::ContainerV1beta1::Operation]
834
+ #
835
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
836
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
837
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
838
+ def get_project_location_operation(name, operation_id: nil, project_id: nil, zone: nil, fields: nil, quota_user: nil, options: nil, &block)
839
+ command = make_simple_command(:get, 'v1beta1/{+name}', options)
840
+ command.response_representation = Google::Apis::ContainerV1beta1::Operation::Representation
841
+ command.response_class = Google::Apis::ContainerV1beta1::Operation
842
+ command.params['name'] = name unless name.nil?
843
+ command.query['operationId'] = operation_id unless operation_id.nil?
844
+ command.query['projectId'] = project_id unless project_id.nil?
845
+ command.query['zone'] = zone unless zone.nil?
846
+ command.query['fields'] = fields unless fields.nil?
847
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
848
+ execute_or_queue_command(command, &block)
849
+ end
850
+
851
+ # Lists all operations in a project in a specific zone or all zones.
852
+ # @param [String] parent
853
+ # The parent (project and location) where the operations will be listed.
854
+ # Specified in the format 'projects/*/locations/*'.
855
+ # Location "-" matches all zones and all regions.
856
+ # @param [String] project_id
857
+ # The Google Developers Console [project ID or project
858
+ # number](https://support.google.com/cloud/answer/6158840).
859
+ # This field is deprecated, use parent instead.
860
+ # @param [String] zone
861
+ # The name of the Google Compute Engine [zone](/compute/docs/zones#available)
862
+ # to return operations for, or `-` for all zones.
863
+ # This field is deprecated, use parent instead.
864
+ # @param [String] fields
865
+ # Selector specifying which fields to include in a partial response.
866
+ # @param [String] quota_user
867
+ # Available to use for quota purposes for server-side applications. Can be any
868
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
869
+ # @param [Google::Apis::RequestOptions] options
870
+ # Request-specific options
871
+ #
872
+ # @yield [result, err] Result & error if block supplied
873
+ # @yieldparam result [Google::Apis::ContainerV1beta1::ListOperationsResponse] parsed result object
874
+ # @yieldparam err [StandardError] error object if request failed
875
+ #
876
+ # @return [Google::Apis::ContainerV1beta1::ListOperationsResponse]
877
+ #
878
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
879
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
880
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
881
+ def list_project_location_operations(parent, project_id: nil, zone: nil, fields: nil, quota_user: nil, options: nil, &block)
882
+ command = make_simple_command(:get, 'v1beta1/{+parent}/operations', options)
883
+ command.response_representation = Google::Apis::ContainerV1beta1::ListOperationsResponse::Representation
884
+ command.response_class = Google::Apis::ContainerV1beta1::ListOperationsResponse
885
+ command.params['parent'] = parent unless parent.nil?
886
+ command.query['projectId'] = project_id unless project_id.nil?
887
+ command.query['zone'] = zone unless zone.nil?
888
+ command.query['fields'] = fields unless fields.nil?
889
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
890
+ execute_or_queue_command(command, &block)
891
+ end
892
+
893
+ # Returns configuration info about the Container Engine service.
894
+ # @param [String] project_id
895
+ # The Google Developers Console [project ID or project
896
+ # number](https://support.google.com/cloud/answer/6158840).
897
+ # This field is deprecated, use name instead.
898
+ # @param [String] zone
899
+ # The name of the Google Compute Engine [zone](/compute/docs/zones#available)
900
+ # to return operations for.
901
+ # This field is deprecated, use name instead.
902
+ # @param [String] name
903
+ # The name (project and location) of the server config to get
904
+ # Specified in the format 'projects/*/locations/*'.
905
+ # @param [String] fields
906
+ # Selector specifying which fields to include in a partial response.
907
+ # @param [String] quota_user
908
+ # Available to use for quota purposes for server-side applications. Can be any
909
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
910
+ # @param [Google::Apis::RequestOptions] options
911
+ # Request-specific options
912
+ #
913
+ # @yield [result, err] Result & error if block supplied
914
+ # @yieldparam result [Google::Apis::ContainerV1beta1::ServerConfig] parsed result object
915
+ # @yieldparam err [StandardError] error object if request failed
916
+ #
917
+ # @return [Google::Apis::ContainerV1beta1::ServerConfig]
918
+ #
919
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
920
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
921
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
922
+ def get_project_zone_serverconfig(project_id, zone, name: nil, fields: nil, quota_user: nil, options: nil, &block)
923
+ command = make_simple_command(:get, 'v1beta1/projects/{projectId}/zones/{zone}/serverconfig', options)
924
+ command.response_representation = Google::Apis::ContainerV1beta1::ServerConfig::Representation
925
+ command.response_class = Google::Apis::ContainerV1beta1::ServerConfig
926
+ command.params['projectId'] = project_id unless project_id.nil?
927
+ command.params['zone'] = zone unless zone.nil?
928
+ command.query['name'] = name unless name.nil?
929
+ command.query['fields'] = fields unless fields.nil?
930
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
931
+ execute_or_queue_command(command, &block)
932
+ end
933
+
934
+ # Completes master IP rotation.
935
+ # @param [String] project_id
936
+ # The Google Developers Console [project ID or project
937
+ # number](https://developers.google.com/console/help/new/#projectnumber).
938
+ # This field is deprecated, use name instead.
939
+ # @param [String] zone
940
+ # The name of the Google Compute Engine
941
+ # [zone](/compute/docs/zones#available) in which the cluster
942
+ # resides.
943
+ # This field is deprecated, use name instead.
944
+ # @param [String] cluster_id
945
+ # The name of the cluster.
946
+ # This field is deprecated, use name instead.
947
+ # @param [Google::Apis::ContainerV1beta1::CompleteIpRotationRequest] complete_ip_rotation_request_object
948
+ # @param [String] fields
949
+ # Selector specifying which fields to include in a partial response.
950
+ # @param [String] quota_user
951
+ # Available to use for quota purposes for server-side applications. Can be any
952
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
953
+ # @param [Google::Apis::RequestOptions] options
954
+ # Request-specific options
955
+ #
956
+ # @yield [result, err] Result & error if block supplied
957
+ # @yieldparam result [Google::Apis::ContainerV1beta1::Operation] parsed result object
958
+ # @yieldparam err [StandardError] error object if request failed
959
+ #
960
+ # @return [Google::Apis::ContainerV1beta1::Operation]
961
+ #
962
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
963
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
964
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
965
+ def complete_project_zone_cluster_ip_rotation(project_id, zone, cluster_id, complete_ip_rotation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
966
+ command = make_simple_command(:post, 'v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:completeIpRotation', options)
967
+ command.request_representation = Google::Apis::ContainerV1beta1::CompleteIpRotationRequest::Representation
968
+ command.request_object = complete_ip_rotation_request_object
969
+ command.response_representation = Google::Apis::ContainerV1beta1::Operation::Representation
970
+ command.response_class = Google::Apis::ContainerV1beta1::Operation
971
+ command.params['projectId'] = project_id unless project_id.nil?
972
+ command.params['zone'] = zone unless zone.nil?
973
+ command.params['clusterId'] = cluster_id unless cluster_id.nil?
974
+ command.query['fields'] = fields unless fields.nil?
975
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
976
+ execute_or_queue_command(command, &block)
977
+ end
978
+
979
+ # Creates a cluster, consisting of the specified number and type of Google
980
+ # Compute Engine instances.
981
+ # By default, the cluster is created in the project's
982
+ # [default network](/compute/docs/networks-and-firewalls#networks).
983
+ # One firewall is added for the cluster. After cluster creation,
984
+ # the cluster creates routes for each node to allow the containers
985
+ # on that node to communicate with all other instances in the
986
+ # cluster.
987
+ # Finally, an entry is added to the project's global metadata indicating
988
+ # which CIDR range is being used by the cluster.
989
+ # @param [String] project_id
990
+ # The Google Developers Console [project ID or project
991
+ # number](https://support.google.com/cloud/answer/6158840).
992
+ # This field is deprecated, use parent instead.
993
+ # @param [String] zone
994
+ # The name of the Google Compute Engine
995
+ # [zone](/compute/docs/zones#available) in which the cluster
996
+ # resides.
997
+ # This field is deprecated, use parent instead.
998
+ # @param [Google::Apis::ContainerV1beta1::CreateClusterRequest] create_cluster_request_object
999
+ # @param [String] fields
1000
+ # Selector specifying which fields to include in a partial response.
1001
+ # @param [String] quota_user
1002
+ # Available to use for quota purposes for server-side applications. Can be any
1003
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1004
+ # @param [Google::Apis::RequestOptions] options
1005
+ # Request-specific options
1006
+ #
1007
+ # @yield [result, err] Result & error if block supplied
1008
+ # @yieldparam result [Google::Apis::ContainerV1beta1::Operation] parsed result object
1009
+ # @yieldparam err [StandardError] error object if request failed
1010
+ #
1011
+ # @return [Google::Apis::ContainerV1beta1::Operation]
1012
+ #
1013
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1014
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1015
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1016
+ def create_cluster(project_id, zone, create_cluster_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1017
+ command = make_simple_command(:post, 'v1beta1/projects/{projectId}/zones/{zone}/clusters', options)
1018
+ command.request_representation = Google::Apis::ContainerV1beta1::CreateClusterRequest::Representation
1019
+ command.request_object = create_cluster_request_object
1020
+ command.response_representation = Google::Apis::ContainerV1beta1::Operation::Representation
1021
+ command.response_class = Google::Apis::ContainerV1beta1::Operation
1022
+ command.params['projectId'] = project_id unless project_id.nil?
1023
+ command.params['zone'] = zone unless zone.nil?
1024
+ command.query['fields'] = fields unless fields.nil?
1025
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1026
+ execute_or_queue_command(command, &block)
1027
+ end
1028
+
1029
+ # Deletes the cluster, including the Kubernetes endpoint and all worker
1030
+ # nodes.
1031
+ # Firewalls and routes that were configured during cluster creation
1032
+ # are also deleted.
1033
+ # Other Google Compute Engine resources that might be in use by the cluster
1034
+ # (e.g. load balancer resources) will not be deleted if they weren't present
1035
+ # at the initial create time.
1036
+ # @param [String] project_id
1037
+ # The Google Developers Console [project ID or project
1038
+ # number](https://support.google.com/cloud/answer/6158840).
1039
+ # This field is deprecated, use name instead.
1040
+ # @param [String] zone
1041
+ # The name of the Google Compute Engine
1042
+ # [zone](/compute/docs/zones#available) in which the cluster
1043
+ # resides.
1044
+ # This field is deprecated, use name instead.
1045
+ # @param [String] cluster_id
1046
+ # The name of the cluster to delete.
1047
+ # This field is deprecated, use name instead.
1048
+ # @param [String] name
1049
+ # The name (project, location, cluster) of the cluster to delete.
1050
+ # Specified in the format 'projects/*/locations/*/clusters/*'.
1051
+ # @param [String] fields
1052
+ # Selector specifying which fields to include in a partial response.
1053
+ # @param [String] quota_user
1054
+ # Available to use for quota purposes for server-side applications. Can be any
1055
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1056
+ # @param [Google::Apis::RequestOptions] options
1057
+ # Request-specific options
1058
+ #
1059
+ # @yield [result, err] Result & error if block supplied
1060
+ # @yieldparam result [Google::Apis::ContainerV1beta1::Operation] parsed result object
1061
+ # @yieldparam err [StandardError] error object if request failed
1062
+ #
1063
+ # @return [Google::Apis::ContainerV1beta1::Operation]
1064
+ #
1065
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1066
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1067
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1068
+ def delete_zone_cluster(project_id, zone, cluster_id, name: nil, fields: nil, quota_user: nil, options: nil, &block)
1069
+ command = make_simple_command(:delete, 'v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}', options)
1070
+ command.response_representation = Google::Apis::ContainerV1beta1::Operation::Representation
1071
+ command.response_class = Google::Apis::ContainerV1beta1::Operation
1072
+ command.params['projectId'] = project_id unless project_id.nil?
1073
+ command.params['zone'] = zone unless zone.nil?
1074
+ command.params['clusterId'] = cluster_id unless cluster_id.nil?
1075
+ command.query['name'] = name unless name.nil?
1076
+ command.query['fields'] = fields unless fields.nil?
1077
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1078
+ execute_or_queue_command(command, &block)
1079
+ end
1080
+
1081
+ # Gets the details of a specific cluster.
1082
+ # @param [String] project_id
1083
+ # The Google Developers Console [project ID or project
1084
+ # number](https://support.google.com/cloud/answer/6158840).
1085
+ # This field is deprecated, use name instead.
1086
+ # @param [String] zone
1087
+ # The name of the Google Compute Engine
1088
+ # [zone](/compute/docs/zones#available) in which the cluster
1089
+ # resides.
1090
+ # This field is deprecated, use name instead.
1091
+ # @param [String] cluster_id
1092
+ # The name of the cluster to retrieve.
1093
+ # This field is deprecated, use name instead.
1094
+ # @param [String] name
1095
+ # The name (project, location, cluster) of the cluster to retrieve.
1096
+ # Specified in the format 'projects/*/locations/*/clusters/*'.
1097
+ # @param [String] fields
1098
+ # Selector specifying which fields to include in a partial response.
1099
+ # @param [String] quota_user
1100
+ # Available to use for quota purposes for server-side applications. Can be any
1101
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1102
+ # @param [Google::Apis::RequestOptions] options
1103
+ # Request-specific options
1104
+ #
1105
+ # @yield [result, err] Result & error if block supplied
1106
+ # @yieldparam result [Google::Apis::ContainerV1beta1::Cluster] parsed result object
1107
+ # @yieldparam err [StandardError] error object if request failed
1108
+ #
1109
+ # @return [Google::Apis::ContainerV1beta1::Cluster]
1110
+ #
1111
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1112
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1113
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1114
+ def get_zone_cluster(project_id, zone, cluster_id, name: nil, fields: nil, quota_user: nil, options: nil, &block)
1115
+ command = make_simple_command(:get, 'v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}', options)
1116
+ command.response_representation = Google::Apis::ContainerV1beta1::Cluster::Representation
1117
+ command.response_class = Google::Apis::ContainerV1beta1::Cluster
1118
+ command.params['projectId'] = project_id unless project_id.nil?
1119
+ command.params['zone'] = zone unless zone.nil?
1120
+ command.params['clusterId'] = cluster_id unless cluster_id.nil?
1121
+ command.query['name'] = name unless name.nil?
1122
+ command.query['fields'] = fields unless fields.nil?
1123
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1124
+ execute_or_queue_command(command, &block)
1125
+ end
1126
+
1127
+ # Enables or disables the ABAC authorization mechanism on a cluster.
1128
+ # @param [String] project_id
1129
+ # The Google Developers Console [project ID or project
1130
+ # number](https://support.google.com/cloud/answer/6158840).
1131
+ # This field is deprecated, use name instead.
1132
+ # @param [String] zone
1133
+ # The name of the Google Compute Engine
1134
+ # [zone](/compute/docs/zones#available) in which the cluster
1135
+ # resides.
1136
+ # This field is deprecated, use name instead.
1137
+ # @param [String] cluster_id
1138
+ # The name of the cluster to update.
1139
+ # This field is deprecated, use name instead.
1140
+ # @param [Google::Apis::ContainerV1beta1::SetLegacyAbacRequest] set_legacy_abac_request_object
1141
+ # @param [String] fields
1142
+ # Selector specifying which fields to include in a partial response.
1143
+ # @param [String] quota_user
1144
+ # Available to use for quota purposes for server-side applications. Can be any
1145
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1146
+ # @param [Google::Apis::RequestOptions] options
1147
+ # Request-specific options
1148
+ #
1149
+ # @yield [result, err] Result & error if block supplied
1150
+ # @yieldparam result [Google::Apis::ContainerV1beta1::Operation] parsed result object
1151
+ # @yieldparam err [StandardError] error object if request failed
1152
+ #
1153
+ # @return [Google::Apis::ContainerV1beta1::Operation]
1154
+ #
1155
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1156
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1157
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1158
+ 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)
1159
+ command = make_simple_command(:post, 'v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/legacyAbac', options)
1160
+ command.request_representation = Google::Apis::ContainerV1beta1::SetLegacyAbacRequest::Representation
1161
+ command.request_object = set_legacy_abac_request_object
1162
+ command.response_representation = Google::Apis::ContainerV1beta1::Operation::Representation
1163
+ command.response_class = Google::Apis::ContainerV1beta1::Operation
1164
+ command.params['projectId'] = project_id unless project_id.nil?
1165
+ command.params['zone'] = zone unless zone.nil?
1166
+ command.params['clusterId'] = cluster_id unless cluster_id.nil?
1167
+ command.query['fields'] = fields unless fields.nil?
1168
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1169
+ execute_or_queue_command(command, &block)
1170
+ end
1171
+
1172
+ # Lists all clusters owned by a project in either the specified zone or all
1173
+ # zones.
1174
+ # @param [String] project_id
1175
+ # The Google Developers Console [project ID or project
1176
+ # number](https://support.google.com/cloud/answer/6158840).
1177
+ # This field is deprecated, use parent instead.
1178
+ # @param [String] zone
1179
+ # The name of the Google Compute Engine
1180
+ # [zone](/compute/docs/zones#available) in which the cluster
1181
+ # resides, or "-" for all zones.
1182
+ # This field is deprecated, use parent instead.
1183
+ # @param [String] parent
1184
+ # The parent (project and location) where the clusters will be listed.
1185
+ # Specified in the format 'projects/*/locations/*'.
1186
+ # Location "-" matches all zones and all regions.
1187
+ # @param [String] fields
1188
+ # Selector specifying which fields to include in a partial response.
1189
+ # @param [String] quota_user
1190
+ # Available to use for quota purposes for server-side applications. Can be any
1191
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1192
+ # @param [Google::Apis::RequestOptions] options
1193
+ # Request-specific options
1194
+ #
1195
+ # @yield [result, err] Result & error if block supplied
1196
+ # @yieldparam result [Google::Apis::ContainerV1beta1::ListClustersResponse] parsed result object
1197
+ # @yieldparam err [StandardError] error object if request failed
1198
+ #
1199
+ # @return [Google::Apis::ContainerV1beta1::ListClustersResponse]
1200
+ #
1201
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1202
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1203
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1204
+ def list_zone_clusters(project_id, zone, parent: nil, fields: nil, quota_user: nil, options: nil, &block)
1205
+ command = make_simple_command(:get, 'v1beta1/projects/{projectId}/zones/{zone}/clusters', options)
1206
+ command.response_representation = Google::Apis::ContainerV1beta1::ListClustersResponse::Representation
1207
+ command.response_class = Google::Apis::ContainerV1beta1::ListClustersResponse
1208
+ command.params['projectId'] = project_id unless project_id.nil?
1209
+ command.params['zone'] = zone unless zone.nil?
1210
+ command.query['parent'] = parent unless parent.nil?
1211
+ command.query['fields'] = fields unless fields.nil?
1212
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1213
+ execute_or_queue_command(command, &block)
1214
+ end
1215
+
1216
+ # Sets labels on a cluster.
1217
+ # @param [String] project_id
1218
+ # The Google Developers Console [project ID or project
1219
+ # number](https://developers.google.com/console/help/new/#projectnumber).
1220
+ # This field is deprecated, use name instead.
1221
+ # @param [String] zone
1222
+ # The name of the Google Compute Engine
1223
+ # [zone](/compute/docs/zones#available) in which the cluster
1224
+ # resides.
1225
+ # This field is deprecated, use name instead.
1226
+ # @param [String] cluster_id
1227
+ # The name of the cluster.
1228
+ # This field is deprecated, use name instead.
1229
+ # @param [Google::Apis::ContainerV1beta1::SetLabelsRequest] set_labels_request_object
1230
+ # @param [String] fields
1231
+ # Selector specifying which fields to include in a partial response.
1232
+ # @param [String] quota_user
1233
+ # Available to use for quota purposes for server-side applications. Can be any
1234
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1235
+ # @param [Google::Apis::RequestOptions] options
1236
+ # Request-specific options
1237
+ #
1238
+ # @yield [result, err] Result & error if block supplied
1239
+ # @yieldparam result [Google::Apis::ContainerV1beta1::Operation] parsed result object
1240
+ # @yieldparam err [StandardError] error object if request failed
1241
+ #
1242
+ # @return [Google::Apis::ContainerV1beta1::Operation]
1243
+ #
1244
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1245
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1246
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1247
+ def resource_project_zone_cluster_labels(project_id, zone, cluster_id, set_labels_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1248
+ command = make_simple_command(:post, 'v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/resourceLabels', options)
1249
+ command.request_representation = Google::Apis::ContainerV1beta1::SetLabelsRequest::Representation
1250
+ command.request_object = set_labels_request_object
1251
+ command.response_representation = Google::Apis::ContainerV1beta1::Operation::Representation
1252
+ command.response_class = Google::Apis::ContainerV1beta1::Operation
1253
+ command.params['projectId'] = project_id unless project_id.nil?
1254
+ command.params['zone'] = zone unless zone.nil?
1255
+ command.params['clusterId'] = cluster_id unless cluster_id.nil?
1256
+ command.query['fields'] = fields unless fields.nil?
1257
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1258
+ execute_or_queue_command(command, &block)
1259
+ end
1260
+
1261
+ # Used to set master auth materials. Currently supports :-
1262
+ # Changing the admin password of a specific cluster.
1263
+ # This can be either via password generation or explicitly set.
1264
+ # Modify basic_auth.csv and reset the K8S API server.
1265
+ # @param [String] project_id
1266
+ # The Google Developers Console [project ID or project
1267
+ # number](https://support.google.com/cloud/answer/6158840).
1268
+ # This field is deprecated, use name instead.
1269
+ # @param [String] zone
1270
+ # The name of the Google Compute Engine
1271
+ # [zone](/compute/docs/zones#available) in which the cluster
1272
+ # resides.
1273
+ # This field is deprecated, use name instead.
1274
+ # @param [String] cluster_id
1275
+ # The name of the cluster to upgrade.
1276
+ # This field is deprecated, use name instead.
1277
+ # @param [Google::Apis::ContainerV1beta1::SetMasterAuthRequest] set_master_auth_request_object
1278
+ # @param [String] fields
1279
+ # Selector specifying which fields to include in a partial response.
1280
+ # @param [String] quota_user
1281
+ # Available to use for quota purposes for server-side applications. Can be any
1282
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1283
+ # @param [Google::Apis::RequestOptions] options
1284
+ # Request-specific options
1285
+ #
1286
+ # @yield [result, err] Result & error if block supplied
1287
+ # @yieldparam result [Google::Apis::ContainerV1beta1::Operation] parsed result object
1288
+ # @yieldparam err [StandardError] error object if request failed
1289
+ #
1290
+ # @return [Google::Apis::ContainerV1beta1::Operation]
1291
+ #
1292
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1293
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1294
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1295
+ def set_project_zone_cluster_master_auth(project_id, zone, cluster_id, set_master_auth_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1296
+ command = make_simple_command(:post, 'v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:setMasterAuth', options)
1297
+ command.request_representation = Google::Apis::ContainerV1beta1::SetMasterAuthRequest::Representation
1298
+ command.request_object = set_master_auth_request_object
1299
+ command.response_representation = Google::Apis::ContainerV1beta1::Operation::Representation
1300
+ command.response_class = Google::Apis::ContainerV1beta1::Operation
1301
+ command.params['projectId'] = project_id unless project_id.nil?
1302
+ command.params['zone'] = zone unless zone.nil?
1303
+ command.params['clusterId'] = cluster_id unless cluster_id.nil?
1304
+ command.query['fields'] = fields unless fields.nil?
1305
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1306
+ execute_or_queue_command(command, &block)
1307
+ end
1308
+
1309
+ # Enables/Disables Network Policy for a cluster.
1310
+ # @param [String] project_id
1311
+ # The Google Developers Console [project ID or project
1312
+ # number](https://developers.google.com/console/help/new/#projectnumber).
1313
+ # This field is deprecated, use name instead.
1314
+ # @param [String] zone
1315
+ # The name of the Google Compute Engine
1316
+ # [zone](/compute/docs/zones#available) in which the cluster
1317
+ # resides.
1318
+ # This field is deprecated, use name instead.
1319
+ # @param [String] cluster_id
1320
+ # The name of the cluster.
1321
+ # This field is deprecated, use name instead.
1322
+ # @param [Google::Apis::ContainerV1beta1::SetNetworkPolicyRequest] set_network_policy_request_object
1323
+ # @param [String] fields
1324
+ # Selector specifying which fields to include in a partial response.
1325
+ # @param [String] quota_user
1326
+ # Available to use for quota purposes for server-side applications. Can be any
1327
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1328
+ # @param [Google::Apis::RequestOptions] options
1329
+ # Request-specific options
1330
+ #
1331
+ # @yield [result, err] Result & error if block supplied
1332
+ # @yieldparam result [Google::Apis::ContainerV1beta1::Operation] parsed result object
1333
+ # @yieldparam err [StandardError] error object if request failed
1334
+ #
1335
+ # @return [Google::Apis::ContainerV1beta1::Operation]
1336
+ #
1337
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1338
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1339
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1340
+ def set_project_zone_cluster_network_policy(project_id, zone, cluster_id, set_network_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1341
+ command = make_simple_command(:post, 'v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:setNetworkPolicy', options)
1342
+ command.request_representation = Google::Apis::ContainerV1beta1::SetNetworkPolicyRequest::Representation
1343
+ command.request_object = set_network_policy_request_object
1344
+ command.response_representation = Google::Apis::ContainerV1beta1::Operation::Representation
1345
+ command.response_class = Google::Apis::ContainerV1beta1::Operation
1346
+ command.params['projectId'] = project_id unless project_id.nil?
1347
+ command.params['zone'] = zone unless zone.nil?
1348
+ command.params['clusterId'] = cluster_id unless cluster_id.nil?
1349
+ command.query['fields'] = fields unless fields.nil?
1350
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1351
+ execute_or_queue_command(command, &block)
1352
+ end
1353
+
1354
+ # Start master IP rotation.
1355
+ # @param [String] project_id
1356
+ # The Google Developers Console [project ID or project
1357
+ # number](https://developers.google.com/console/help/new/#projectnumber).
1358
+ # This field is deprecated, use name instead.
1359
+ # @param [String] zone
1360
+ # The name of the Google Compute Engine
1361
+ # [zone](/compute/docs/zones#available) in which the cluster
1362
+ # resides.
1363
+ # This field is deprecated, use name instead.
1364
+ # @param [String] cluster_id
1365
+ # The name of the cluster.
1366
+ # This field is deprecated, use name instead.
1367
+ # @param [Google::Apis::ContainerV1beta1::StartIpRotationRequest] start_ip_rotation_request_object
1368
+ # @param [String] fields
1369
+ # Selector specifying which fields to include in a partial response.
1370
+ # @param [String] quota_user
1371
+ # Available to use for quota purposes for server-side applications. Can be any
1372
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1373
+ # @param [Google::Apis::RequestOptions] options
1374
+ # Request-specific options
1375
+ #
1376
+ # @yield [result, err] Result & error if block supplied
1377
+ # @yieldparam result [Google::Apis::ContainerV1beta1::Operation] parsed result object
1378
+ # @yieldparam err [StandardError] error object if request failed
1379
+ #
1380
+ # @return [Google::Apis::ContainerV1beta1::Operation]
1381
+ #
1382
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1383
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1384
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1385
+ def start_project_zone_cluster_ip_rotation(project_id, zone, cluster_id, start_ip_rotation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1386
+ command = make_simple_command(:post, 'v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:startIpRotation', options)
1387
+ command.request_representation = Google::Apis::ContainerV1beta1::StartIpRotationRequest::Representation
1388
+ command.request_object = start_ip_rotation_request_object
1389
+ command.response_representation = Google::Apis::ContainerV1beta1::Operation::Representation
1390
+ command.response_class = Google::Apis::ContainerV1beta1::Operation
1391
+ command.params['projectId'] = project_id unless project_id.nil?
1392
+ command.params['zone'] = zone unless zone.nil?
1393
+ command.params['clusterId'] = cluster_id unless cluster_id.nil?
1394
+ command.query['fields'] = fields unless fields.nil?
1395
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1396
+ execute_or_queue_command(command, &block)
1397
+ end
1398
+
1399
+ # Updates the settings of a specific cluster.
1400
+ # @param [String] project_id
1401
+ # The Google Developers Console [project ID or project
1402
+ # number](https://support.google.com/cloud/answer/6158840).
1403
+ # This field is deprecated, use name instead.
1404
+ # @param [String] zone
1405
+ # The name of the Google Compute Engine
1406
+ # [zone](/compute/docs/zones#available) in which the cluster
1407
+ # resides.
1408
+ # This field is deprecated, use name instead.
1409
+ # @param [String] cluster_id
1410
+ # The name of the cluster to upgrade.
1411
+ # This field is deprecated, use name instead.
1412
+ # @param [Google::Apis::ContainerV1beta1::UpdateClusterRequest] update_cluster_request_object
1413
+ # @param [String] fields
1414
+ # Selector specifying which fields to include in a partial response.
1415
+ # @param [String] quota_user
1416
+ # Available to use for quota purposes for server-side applications. Can be any
1417
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1418
+ # @param [Google::Apis::RequestOptions] options
1419
+ # Request-specific options
1420
+ #
1421
+ # @yield [result, err] Result & error if block supplied
1422
+ # @yieldparam result [Google::Apis::ContainerV1beta1::Operation] parsed result object
1423
+ # @yieldparam err [StandardError] error object if request failed
1424
+ #
1425
+ # @return [Google::Apis::ContainerV1beta1::Operation]
1426
+ #
1427
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1428
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1429
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1430
+ def update_project_zone_cluster(project_id, zone, cluster_id, update_cluster_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1431
+ command = make_simple_command(:put, 'v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}', options)
1432
+ command.request_representation = Google::Apis::ContainerV1beta1::UpdateClusterRequest::Representation
1433
+ command.request_object = update_cluster_request_object
1434
+ command.response_representation = Google::Apis::ContainerV1beta1::Operation::Representation
1435
+ command.response_class = Google::Apis::ContainerV1beta1::Operation
1436
+ command.params['projectId'] = project_id unless project_id.nil?
1437
+ command.params['zone'] = zone unless zone.nil?
1438
+ command.params['clusterId'] = cluster_id unless cluster_id.nil?
1439
+ command.query['fields'] = fields unless fields.nil?
1440
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1441
+ execute_or_queue_command(command, &block)
1442
+ end
1443
+
1444
+ # Creates a node pool for a cluster.
1445
+ # @param [String] project_id
1446
+ # The Google Developers Console [project ID or project
1447
+ # number](https://developers.google.com/console/help/new/#projectnumber).
1448
+ # This field is deprecated, use parent instead.
1449
+ # @param [String] zone
1450
+ # The name of the Google Compute Engine
1451
+ # [zone](/compute/docs/zones#available) in which the cluster
1452
+ # resides.
1453
+ # This field is deprecated, use parent instead.
1454
+ # @param [String] cluster_id
1455
+ # The name of the cluster.
1456
+ # This field is deprecated, use parent instead.
1457
+ # @param [Google::Apis::ContainerV1beta1::CreateNodePoolRequest] create_node_pool_request_object
1458
+ # @param [String] fields
1459
+ # Selector specifying which fields to include in a partial response.
1460
+ # @param [String] quota_user
1461
+ # Available to use for quota purposes for server-side applications. Can be any
1462
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1463
+ # @param [Google::Apis::RequestOptions] options
1464
+ # Request-specific options
1465
+ #
1466
+ # @yield [result, err] Result & error if block supplied
1467
+ # @yieldparam result [Google::Apis::ContainerV1beta1::Operation] parsed result object
1468
+ # @yieldparam err [StandardError] error object if request failed
1469
+ #
1470
+ # @return [Google::Apis::ContainerV1beta1::Operation]
1471
+ #
1472
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1473
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1474
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1475
+ def create_project_zone_cluster_node_pool(project_id, zone, cluster_id, create_node_pool_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1476
+ command = make_simple_command(:post, 'v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools', options)
1477
+ command.request_representation = Google::Apis::ContainerV1beta1::CreateNodePoolRequest::Representation
1478
+ command.request_object = create_node_pool_request_object
1479
+ command.response_representation = Google::Apis::ContainerV1beta1::Operation::Representation
1480
+ command.response_class = Google::Apis::ContainerV1beta1::Operation
1481
+ command.params['projectId'] = project_id unless project_id.nil?
1482
+ command.params['zone'] = zone unless zone.nil?
1483
+ command.params['clusterId'] = cluster_id unless cluster_id.nil?
1484
+ command.query['fields'] = fields unless fields.nil?
1485
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1486
+ execute_or_queue_command(command, &block)
1487
+ end
1488
+
1489
+ # Deletes a node pool from a cluster.
1490
+ # @param [String] project_id
1491
+ # The Google Developers Console [project ID or project
1492
+ # number](https://developers.google.com/console/help/new/#projectnumber).
1493
+ # This field is deprecated, use name instead.
1494
+ # @param [String] zone
1495
+ # The name of the Google Compute Engine
1496
+ # [zone](/compute/docs/zones#available) in which the cluster
1497
+ # resides.
1498
+ # This field is deprecated, use name instead.
1499
+ # @param [String] cluster_id
1500
+ # The name of the cluster.
1501
+ # This field is deprecated, use name instead.
1502
+ # @param [String] node_pool_id
1503
+ # The name of the node pool to delete.
1504
+ # This field is deprecated, use name instead.
1505
+ # @param [String] name
1506
+ # The name (project, location, cluster, node pool id) of the node pool to delete.
1507
+ # Specified in the format 'projects/*/locations/*/clusters/*/nodePools/*'.
1508
+ # @param [String] fields
1509
+ # Selector specifying which fields to include in a partial response.
1510
+ # @param [String] quota_user
1511
+ # Available to use for quota purposes for server-side applications. Can be any
1512
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1513
+ # @param [Google::Apis::RequestOptions] options
1514
+ # Request-specific options
1515
+ #
1516
+ # @yield [result, err] Result & error if block supplied
1517
+ # @yieldparam result [Google::Apis::ContainerV1beta1::Operation] parsed result object
1518
+ # @yieldparam err [StandardError] error object if request failed
1519
+ #
1520
+ # @return [Google::Apis::ContainerV1beta1::Operation]
1521
+ #
1522
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1523
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1524
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1525
+ def delete_project_zone_cluster_node_pool(project_id, zone, cluster_id, node_pool_id, name: nil, fields: nil, quota_user: nil, options: nil, &block)
1526
+ command = make_simple_command(:delete, 'v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}', options)
1527
+ command.response_representation = Google::Apis::ContainerV1beta1::Operation::Representation
1528
+ command.response_class = Google::Apis::ContainerV1beta1::Operation
1529
+ command.params['projectId'] = project_id unless project_id.nil?
1530
+ command.params['zone'] = zone unless zone.nil?
1531
+ command.params['clusterId'] = cluster_id unless cluster_id.nil?
1532
+ command.params['nodePoolId'] = node_pool_id unless node_pool_id.nil?
1533
+ command.query['name'] = name unless name.nil?
1534
+ command.query['fields'] = fields unless fields.nil?
1535
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1536
+ execute_or_queue_command(command, &block)
1537
+ end
1538
+
1539
+ # Retrieves the node pool requested.
1540
+ # @param [String] project_id
1541
+ # The Google Developers Console [project ID or project
1542
+ # number](https://developers.google.com/console/help/new/#projectnumber).
1543
+ # This field is deprecated, use name instead.
1544
+ # @param [String] zone
1545
+ # The name of the Google Compute Engine
1546
+ # [zone](/compute/docs/zones#available) in which the cluster
1547
+ # resides.
1548
+ # This field is deprecated, use name instead.
1549
+ # @param [String] cluster_id
1550
+ # The name of the cluster.
1551
+ # This field is deprecated, use name instead.
1552
+ # @param [String] node_pool_id
1553
+ # The name of the node pool.
1554
+ # This field is deprecated, use name instead.
1555
+ # @param [String] name
1556
+ # The name (project, location, cluster, node pool id) of the node pool to get.
1557
+ # Specified in the format 'projects/*/locations/*/clusters/*/nodePools/*'.
1558
+ # @param [String] fields
1559
+ # Selector specifying which fields to include in a partial response.
1560
+ # @param [String] quota_user
1561
+ # Available to use for quota purposes for server-side applications. Can be any
1562
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1563
+ # @param [Google::Apis::RequestOptions] options
1564
+ # Request-specific options
1565
+ #
1566
+ # @yield [result, err] Result & error if block supplied
1567
+ # @yieldparam result [Google::Apis::ContainerV1beta1::NodePool] parsed result object
1568
+ # @yieldparam err [StandardError] error object if request failed
1569
+ #
1570
+ # @return [Google::Apis::ContainerV1beta1::NodePool]
1571
+ #
1572
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1573
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1574
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1575
+ def get_project_zone_cluster_node_pool(project_id, zone, cluster_id, node_pool_id, name: nil, fields: nil, quota_user: nil, options: nil, &block)
1576
+ command = make_simple_command(:get, 'v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}', options)
1577
+ command.response_representation = Google::Apis::ContainerV1beta1::NodePool::Representation
1578
+ command.response_class = Google::Apis::ContainerV1beta1::NodePool
1579
+ command.params['projectId'] = project_id unless project_id.nil?
1580
+ command.params['zone'] = zone unless zone.nil?
1581
+ command.params['clusterId'] = cluster_id unless cluster_id.nil?
1582
+ command.params['nodePoolId'] = node_pool_id unless node_pool_id.nil?
1583
+ command.query['name'] = name unless name.nil?
1584
+ command.query['fields'] = fields unless fields.nil?
1585
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1586
+ execute_or_queue_command(command, &block)
1587
+ end
1588
+
1589
+ # Lists the node pools for a cluster.
1590
+ # @param [String] project_id
1591
+ # The Google Developers Console [project ID or project
1592
+ # number](https://developers.google.com/console/help/new/#projectnumber).
1593
+ # This field is deprecated, use parent instead.
1594
+ # @param [String] zone
1595
+ # The name of the Google Compute Engine
1596
+ # [zone](/compute/docs/zones#available) in which the cluster
1597
+ # resides.
1598
+ # This field is deprecated, use parent instead.
1599
+ # @param [String] cluster_id
1600
+ # The name of the cluster.
1601
+ # This field is deprecated, use parent instead.
1602
+ # @param [String] parent
1603
+ # The parent (project, location, cluster id) where the node pools will be listed.
1604
+ # Specified in the format 'projects/*/locations/*/clusters/*'.
1605
+ # @param [String] fields
1606
+ # Selector specifying which fields to include in a partial response.
1607
+ # @param [String] quota_user
1608
+ # Available to use for quota purposes for server-side applications. Can be any
1609
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1610
+ # @param [Google::Apis::RequestOptions] options
1611
+ # Request-specific options
1612
+ #
1613
+ # @yield [result, err] Result & error if block supplied
1614
+ # @yieldparam result [Google::Apis::ContainerV1beta1::ListNodePoolsResponse] parsed result object
1615
+ # @yieldparam err [StandardError] error object if request failed
1616
+ #
1617
+ # @return [Google::Apis::ContainerV1beta1::ListNodePoolsResponse]
1618
+ #
1619
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1620
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1621
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1622
+ def list_project_zone_cluster_node_pools(project_id, zone, cluster_id, parent: nil, fields: nil, quota_user: nil, options: nil, &block)
1623
+ command = make_simple_command(:get, 'v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools', options)
1624
+ command.response_representation = Google::Apis::ContainerV1beta1::ListNodePoolsResponse::Representation
1625
+ command.response_class = Google::Apis::ContainerV1beta1::ListNodePoolsResponse
1626
+ command.params['projectId'] = project_id unless project_id.nil?
1627
+ command.params['zone'] = zone unless zone.nil?
1628
+ command.params['clusterId'] = cluster_id unless cluster_id.nil?
1629
+ command.query['parent'] = parent unless parent.nil?
1630
+ command.query['fields'] = fields unless fields.nil?
1631
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1632
+ execute_or_queue_command(command, &block)
1633
+ end
1634
+
1635
+ # Roll back the previously Aborted or Failed NodePool upgrade.
1636
+ # This will be an no-op if the last upgrade successfully completed.
1637
+ # @param [String] project_id
1638
+ # The Google Developers Console [project ID or project
1639
+ # number](https://support.google.com/cloud/answer/6158840).
1640
+ # This field is deprecated, use name instead.
1641
+ # @param [String] zone
1642
+ # The name of the Google Compute Engine
1643
+ # [zone](/compute/docs/zones#available) in which the cluster
1644
+ # resides.
1645
+ # This field is deprecated, use name instead.
1646
+ # @param [String] cluster_id
1647
+ # The name of the cluster to rollback.
1648
+ # This field is deprecated, use name instead.
1649
+ # @param [String] node_pool_id
1650
+ # The name of the node pool to rollback.
1651
+ # This field is deprecated, use name instead.
1652
+ # @param [Google::Apis::ContainerV1beta1::RollbackNodePoolUpgradeRequest] rollback_node_pool_upgrade_request_object
1653
+ # @param [String] fields
1654
+ # Selector specifying which fields to include in a partial response.
1655
+ # @param [String] quota_user
1656
+ # Available to use for quota purposes for server-side applications. Can be any
1657
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1658
+ # @param [Google::Apis::RequestOptions] options
1659
+ # Request-specific options
1660
+ #
1661
+ # @yield [result, err] Result & error if block supplied
1662
+ # @yieldparam result [Google::Apis::ContainerV1beta1::Operation] parsed result object
1663
+ # @yieldparam err [StandardError] error object if request failed
1664
+ #
1665
+ # @return [Google::Apis::ContainerV1beta1::Operation]
1666
+ #
1667
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1668
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1669
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1670
+ def rollback_project_zone_cluster_node_pool(project_id, zone, cluster_id, node_pool_id, rollback_node_pool_upgrade_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1671
+ command = make_simple_command(:post, 'v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}:rollback', options)
1672
+ command.request_representation = Google::Apis::ContainerV1beta1::RollbackNodePoolUpgradeRequest::Representation
1673
+ command.request_object = rollback_node_pool_upgrade_request_object
1674
+ command.response_representation = Google::Apis::ContainerV1beta1::Operation::Representation
1675
+ command.response_class = Google::Apis::ContainerV1beta1::Operation
1676
+ command.params['projectId'] = project_id unless project_id.nil?
1677
+ command.params['zone'] = zone unless zone.nil?
1678
+ command.params['clusterId'] = cluster_id unless cluster_id.nil?
1679
+ command.params['nodePoolId'] = node_pool_id unless node_pool_id.nil?
1680
+ command.query['fields'] = fields unless fields.nil?
1681
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1682
+ execute_or_queue_command(command, &block)
1683
+ end
1684
+
1685
+ # Sets the NodeManagement options for a node pool.
1686
+ # @param [String] project_id
1687
+ # The Google Developers Console [project ID or project
1688
+ # number](https://support.google.com/cloud/answer/6158840).
1689
+ # This field is deprecated, use name instead.
1690
+ # @param [String] zone
1691
+ # The name of the Google Compute Engine
1692
+ # [zone](/compute/docs/zones#available) in which the cluster
1693
+ # resides.
1694
+ # This field is deprecated, use name instead.
1695
+ # @param [String] cluster_id
1696
+ # The name of the cluster to update.
1697
+ # This field is deprecated, use name instead.
1698
+ # @param [String] node_pool_id
1699
+ # The name of the node pool to update.
1700
+ # This field is deprecated, use name instead.
1701
+ # @param [Google::Apis::ContainerV1beta1::SetNodePoolManagementRequest] set_node_pool_management_request_object
1702
+ # @param [String] fields
1703
+ # Selector specifying which fields to include in a partial response.
1704
+ # @param [String] quota_user
1705
+ # Available to use for quota purposes for server-side applications. Can be any
1706
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1707
+ # @param [Google::Apis::RequestOptions] options
1708
+ # Request-specific options
1709
+ #
1710
+ # @yield [result, err] Result & error if block supplied
1711
+ # @yieldparam result [Google::Apis::ContainerV1beta1::Operation] parsed result object
1712
+ # @yieldparam err [StandardError] error object if request failed
1713
+ #
1714
+ # @return [Google::Apis::ContainerV1beta1::Operation]
1715
+ #
1716
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1717
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1718
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1719
+ 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)
1720
+ command = make_simple_command(:post, 'v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}/setManagement', options)
1721
+ command.request_representation = Google::Apis::ContainerV1beta1::SetNodePoolManagementRequest::Representation
1722
+ command.request_object = set_node_pool_management_request_object
1723
+ command.response_representation = Google::Apis::ContainerV1beta1::Operation::Representation
1724
+ command.response_class = Google::Apis::ContainerV1beta1::Operation
1725
+ command.params['projectId'] = project_id unless project_id.nil?
1726
+ command.params['zone'] = zone unless zone.nil?
1727
+ command.params['clusterId'] = cluster_id unless cluster_id.nil?
1728
+ command.params['nodePoolId'] = node_pool_id unless node_pool_id.nil?
1729
+ command.query['fields'] = fields unless fields.nil?
1730
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1731
+ execute_or_queue_command(command, &block)
1732
+ end
1733
+
1734
+ # Cancels the specified operation.
1735
+ # @param [String] project_id
1736
+ # The Google Developers Console [project ID or project
1737
+ # number](https://support.google.com/cloud/answer/6158840).
1738
+ # This field is deprecated, use name instead.
1739
+ # @param [String] zone
1740
+ # The name of the Google Compute Engine
1741
+ # [zone](/compute/docs/zones#available) in which the operation resides.
1742
+ # This field is deprecated, use name instead.
1743
+ # @param [String] operation_id
1744
+ # The server-assigned `name` of the operation.
1745
+ # This field is deprecated, use name instead.
1746
+ # @param [Google::Apis::ContainerV1beta1::CancelOperationRequest] cancel_operation_request_object
1747
+ # @param [String] fields
1748
+ # Selector specifying which fields to include in a partial response.
1749
+ # @param [String] quota_user
1750
+ # Available to use for quota purposes for server-side applications. Can be any
1751
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1752
+ # @param [Google::Apis::RequestOptions] options
1753
+ # Request-specific options
1754
+ #
1755
+ # @yield [result, err] Result & error if block supplied
1756
+ # @yieldparam result [Google::Apis::ContainerV1beta1::Empty] parsed result object
1757
+ # @yieldparam err [StandardError] error object if request failed
1758
+ #
1759
+ # @return [Google::Apis::ContainerV1beta1::Empty]
1760
+ #
1761
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1762
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1763
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1764
+ def cancel_project_zone_operation(project_id, zone, operation_id, cancel_operation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1765
+ command = make_simple_command(:post, 'v1beta1/projects/{projectId}/zones/{zone}/operations/{operationId}:cancel', options)
1766
+ command.request_representation = Google::Apis::ContainerV1beta1::CancelOperationRequest::Representation
1767
+ command.request_object = cancel_operation_request_object
1768
+ command.response_representation = Google::Apis::ContainerV1beta1::Empty::Representation
1769
+ command.response_class = Google::Apis::ContainerV1beta1::Empty
1770
+ command.params['projectId'] = project_id unless project_id.nil?
1771
+ command.params['zone'] = zone unless zone.nil?
1772
+ command.params['operationId'] = operation_id unless operation_id.nil?
1773
+ command.query['fields'] = fields unless fields.nil?
1774
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1775
+ execute_or_queue_command(command, &block)
1776
+ end
1777
+
1778
+ # Gets the specified operation.
1779
+ # @param [String] project_id
1780
+ # The Google Developers Console [project ID or project
1781
+ # number](https://support.google.com/cloud/answer/6158840).
1782
+ # This field is deprecated, use name instead.
1783
+ # @param [String] zone
1784
+ # The name of the Google Compute Engine
1785
+ # [zone](/compute/docs/zones#available) in which the cluster
1786
+ # resides.
1787
+ # This field is deprecated, use name instead.
1788
+ # @param [String] operation_id
1789
+ # The server-assigned `name` of the operation.
1790
+ # This field is deprecated, use name instead.
1791
+ # @param [String] name
1792
+ # The name (project, location, operation id) of the operation to get.
1793
+ # Specified in the format 'projects/*/locations/*/operations/*'.
1794
+ # @param [String] fields
1795
+ # Selector specifying which fields to include in a partial response.
1796
+ # @param [String] quota_user
1797
+ # Available to use for quota purposes for server-side applications. Can be any
1798
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1799
+ # @param [Google::Apis::RequestOptions] options
1800
+ # Request-specific options
1801
+ #
1802
+ # @yield [result, err] Result & error if block supplied
1803
+ # @yieldparam result [Google::Apis::ContainerV1beta1::Operation] parsed result object
1804
+ # @yieldparam err [StandardError] error object if request failed
1805
+ #
1806
+ # @return [Google::Apis::ContainerV1beta1::Operation]
1807
+ #
1808
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1809
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1810
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1811
+ def get_zone_operation(project_id, zone, operation_id, name: nil, fields: nil, quota_user: nil, options: nil, &block)
1812
+ command = make_simple_command(:get, 'v1beta1/projects/{projectId}/zones/{zone}/operations/{operationId}', options)
1813
+ command.response_representation = Google::Apis::ContainerV1beta1::Operation::Representation
1814
+ command.response_class = Google::Apis::ContainerV1beta1::Operation
1815
+ command.params['projectId'] = project_id unless project_id.nil?
1816
+ command.params['zone'] = zone unless zone.nil?
1817
+ command.params['operationId'] = operation_id unless operation_id.nil?
1818
+ command.query['name'] = name unless name.nil?
1819
+ command.query['fields'] = fields unless fields.nil?
1820
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1821
+ execute_or_queue_command(command, &block)
1822
+ end
1823
+
1824
+ # Lists all operations in a project in a specific zone or all zones.
1825
+ # @param [String] project_id
1826
+ # The Google Developers Console [project ID or project
1827
+ # number](https://support.google.com/cloud/answer/6158840).
1828
+ # This field is deprecated, use parent instead.
1829
+ # @param [String] zone
1830
+ # The name of the Google Compute Engine [zone](/compute/docs/zones#available)
1831
+ # to return operations for, or `-` for all zones.
1832
+ # This field is deprecated, use parent instead.
1833
+ # @param [String] parent
1834
+ # The parent (project and location) where the operations will be listed.
1835
+ # Specified in the format 'projects/*/locations/*'.
1836
+ # Location "-" matches all zones and all regions.
1837
+ # @param [String] fields
1838
+ # Selector specifying which fields to include in a partial response.
1839
+ # @param [String] quota_user
1840
+ # Available to use for quota purposes for server-side applications. Can be any
1841
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1842
+ # @param [Google::Apis::RequestOptions] options
1843
+ # Request-specific options
1844
+ #
1845
+ # @yield [result, err] Result & error if block supplied
1846
+ # @yieldparam result [Google::Apis::ContainerV1beta1::ListOperationsResponse] parsed result object
1847
+ # @yieldparam err [StandardError] error object if request failed
1848
+ #
1849
+ # @return [Google::Apis::ContainerV1beta1::ListOperationsResponse]
1850
+ #
1851
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1852
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1853
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1854
+ def list_zone_operations(project_id, zone, parent: nil, fields: nil, quota_user: nil, options: nil, &block)
1855
+ command = make_simple_command(:get, 'v1beta1/projects/{projectId}/zones/{zone}/operations', options)
1856
+ command.response_representation = Google::Apis::ContainerV1beta1::ListOperationsResponse::Representation
1857
+ command.response_class = Google::Apis::ContainerV1beta1::ListOperationsResponse
1858
+ command.params['projectId'] = project_id unless project_id.nil?
1859
+ command.params['zone'] = zone unless zone.nil?
1860
+ command.query['parent'] = parent unless parent.nil?
1861
+ command.query['fields'] = fields unless fields.nil?
1862
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1863
+ execute_or_queue_command(command, &block)
1864
+ end
1865
+
1866
+ protected
1867
+
1868
+ def apply_command_defaults(command)
1869
+ command.query['key'] = key unless key.nil?
1870
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1871
+ end
1872
+ end
1873
+ end
1874
+ end
1875
+ end