google-api-client 0.23.4 → 0.23.5

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 (403) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +1 -0
  3. data/CHANGELOG.md +171 -0
  4. data/Gemfile +1 -0
  5. data/generated/google/apis/abusiveexperiencereport_v1.rb +1 -1
  6. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  7. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +7 -1
  8. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +1 -0
  9. data/generated/google/apis/adexchangebuyer_v1_2.rb +1 -1
  10. data/generated/google/apis/adexchangebuyer_v1_3.rb +1 -1
  11. data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
  12. data/generated/google/apis/adexchangeseller_v1.rb +1 -1
  13. data/generated/google/apis/adexchangeseller_v1_1.rb +1 -1
  14. data/generated/google/apis/adexchangeseller_v2_0.rb +1 -1
  15. data/generated/google/apis/adexperiencereport_v1.rb +1 -1
  16. data/generated/google/apis/admin_datatransfer_v1.rb +1 -1
  17. data/generated/google/apis/admin_directory_v1.rb +1 -1
  18. data/generated/google/apis/admin_directory_v1/classes.rb +7 -0
  19. data/generated/google/apis/admin_directory_v1/representations.rb +1 -0
  20. data/generated/google/apis/admin_reports_v1.rb +1 -1
  21. data/generated/google/apis/adsense_v1_4.rb +1 -1
  22. data/generated/google/apis/adsense_v1_4/classes.rb +13 -1
  23. data/generated/google/apis/adsense_v1_4/representations.rb +2 -0
  24. data/generated/google/apis/adsense_v1_4/service.rb +36 -0
  25. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  26. data/generated/google/apis/analytics_v2_4.rb +1 -1
  27. data/generated/google/apis/analytics_v3.rb +1 -1
  28. data/generated/google/apis/analytics_v3/classes.rb +68 -0
  29. data/generated/google/apis/analytics_v3/representations.rb +31 -0
  30. data/generated/google/apis/analytics_v3/service.rb +33 -0
  31. data/generated/google/apis/analyticsreporting_v4.rb +1 -1
  32. data/generated/google/apis/androiddeviceprovisioning_v1.rb +1 -1
  33. data/generated/google/apis/androiddeviceprovisioning_v1/classes.rb +108 -28
  34. data/generated/google/apis/androiddeviceprovisioning_v1/representations.rb +32 -0
  35. data/generated/google/apis/androiddeviceprovisioning_v1/service.rb +73 -0
  36. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  37. data/generated/google/apis/androidenterprise_v1/service.rb +0 -70
  38. data/generated/google/apis/androidmanagement_v1.rb +1 -1
  39. data/generated/google/apis/androidmanagement_v1/classes.rb +2 -5
  40. data/generated/google/apis/androidpublisher_v1.rb +1 -1
  41. data/generated/google/apis/androidpublisher_v1_1.rb +1 -1
  42. data/generated/google/apis/androidpublisher_v2.rb +1 -1
  43. data/generated/google/apis/androidpublisher_v3.rb +1 -1
  44. data/generated/google/apis/appengine_v1.rb +1 -1
  45. data/generated/google/apis/appengine_v1beta.rb +1 -1
  46. data/generated/google/apis/appengine_v1beta/classes.rb +3 -4
  47. data/generated/google/apis/appsactivity_v1.rb +2 -2
  48. data/generated/google/apis/appsactivity_v1/service.rb +1 -1
  49. data/generated/google/apis/appsmarket_v2.rb +1 -1
  50. data/generated/google/apis/appstate_v1.rb +1 -1
  51. data/generated/google/apis/bigquery_v2.rb +1 -1
  52. data/generated/google/apis/bigquery_v2/classes.rb +103 -61
  53. data/generated/google/apis/bigquery_v2/representations.rb +17 -0
  54. data/generated/google/apis/bigquerydatatransfer_v1.rb +1 -1
  55. data/generated/google/apis/binaryauthorization_v1beta1.rb +35 -0
  56. data/generated/google/apis/binaryauthorization_v1beta1/classes.rb +597 -0
  57. data/generated/google/apis/binaryauthorization_v1beta1/representations.rb +238 -0
  58. data/generated/google/apis/binaryauthorization_v1beta1/service.rb +523 -0
  59. data/generated/google/apis/blogger_v2.rb +1 -1
  60. data/generated/google/apis/blogger_v3.rb +1 -1
  61. data/generated/google/apis/books_v1.rb +1 -1
  62. data/generated/google/apis/books_v1/classes.rb +7 -0
  63. data/generated/google/apis/books_v1/representations.rb +1 -0
  64. data/generated/google/apis/calendar_v3.rb +1 -1
  65. data/generated/google/apis/calendar_v3/classes.rb +44 -12
  66. data/generated/google/apis/calendar_v3/service.rb +7 -7
  67. data/generated/google/apis/chat_v1.rb +1 -1
  68. data/generated/google/apis/civicinfo_v2.rb +1 -1
  69. data/generated/google/apis/civicinfo_v2/classes.rb +641 -0
  70. data/generated/google/apis/civicinfo_v2/representations.rb +215 -0
  71. data/generated/google/apis/classroom_v1.rb +1 -1
  72. data/generated/google/apis/classroom_v1/classes.rb +25 -0
  73. data/generated/google/apis/classroom_v1/representations.rb +15 -0
  74. data/generated/google/apis/cloudbilling_v1.rb +1 -1
  75. data/generated/google/apis/cloudbilling_v1/classes.rb +85 -10
  76. data/generated/google/apis/cloudbilling_v1/representations.rb +18 -0
  77. data/generated/google/apis/cloudbilling_v1/service.rb +3 -13
  78. data/generated/google/apis/cloudbuild_v1.rb +4 -4
  79. data/generated/google/apis/cloudbuild_v1/classes.rb +37 -3
  80. data/generated/google/apis/cloudbuild_v1/representations.rb +3 -0
  81. data/generated/google/apis/cloudbuild_v1/service.rb +3 -3
  82. data/generated/google/apis/clouddebugger_v2.rb +1 -1
  83. data/generated/google/apis/clouddebugger_v2/classes.rb +8 -0
  84. data/generated/google/apis/clouddebugger_v2/representations.rb +1 -0
  85. data/generated/google/apis/clouderrorreporting_v1beta1.rb +1 -1
  86. data/generated/google/apis/clouderrorreporting_v1beta1/service.rb +4 -5
  87. data/generated/google/apis/cloudiot_v1.rb +1 -1
  88. data/generated/google/apis/cloudiot_v1/classes.rb +56 -0
  89. data/generated/google/apis/cloudiot_v1/representations.rb +18 -0
  90. data/generated/google/apis/cloudiot_v1/service.rb +355 -0
  91. data/generated/google/apis/cloudkms_v1.rb +6 -3
  92. data/generated/google/apis/cloudkms_v1/classes.rb +340 -14
  93. data/generated/google/apis/cloudkms_v1/representations.rb +147 -0
  94. data/generated/google/apis/cloudkms_v1/service.rb +126 -6
  95. data/generated/google/apis/cloudprofiler_v2.rb +3 -3
  96. data/generated/google/apis/cloudprofiler_v2/classes.rb +0 -6
  97. data/generated/google/apis/cloudprofiler_v2/representations.rb +0 -2
  98. data/generated/google/apis/cloudprofiler_v2/service.rb +2 -2
  99. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  100. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +57 -1
  101. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +18 -0
  102. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
  103. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +56 -0
  104. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +18 -0
  105. data/generated/google/apis/cloudresourcemanager_v2.rb +1 -1
  106. data/generated/google/apis/cloudresourcemanager_v2/classes.rb +57 -1
  107. data/generated/google/apis/cloudresourcemanager_v2/representations.rb +18 -0
  108. data/generated/google/apis/cloudresourcemanager_v2/service.rb +1 -1
  109. data/generated/google/apis/cloudresourcemanager_v2beta1.rb +1 -1
  110. data/generated/google/apis/cloudresourcemanager_v2beta1/classes.rb +57 -1
  111. data/generated/google/apis/cloudresourcemanager_v2beta1/representations.rb +18 -0
  112. data/generated/google/apis/cloudresourcemanager_v2beta1/service.rb +1 -1
  113. data/generated/google/apis/cloudshell_v1alpha1.rb +1 -1
  114. data/generated/google/apis/cloudshell_v1alpha1/classes.rb +28 -0
  115. data/generated/google/apis/cloudshell_v1alpha1/representations.rb +14 -0
  116. data/generated/google/apis/cloudshell_v1alpha1/service.rb +37 -0
  117. data/generated/google/apis/cloudtasks_v2beta2.rb +2 -2
  118. data/generated/google/apis/cloudtasks_v2beta2/classes.rb +167 -103
  119. data/generated/google/apis/cloudtasks_v2beta2/representations.rb +18 -0
  120. data/generated/google/apis/cloudtasks_v2beta2/service.rb +28 -21
  121. data/generated/google/apis/cloudtrace_v1.rb +1 -1
  122. data/generated/google/apis/cloudtrace_v1/classes.rb +1 -1
  123. data/generated/google/apis/cloudtrace_v2.rb +1 -1
  124. data/generated/google/apis/{spectrum_v1explorer.rb → composer_v1.rb} +12 -9
  125. data/generated/google/apis/composer_v1/classes.rb +640 -0
  126. data/generated/google/apis/composer_v1/representations.rb +195 -0
  127. data/generated/google/apis/composer_v1/service.rb +462 -0
  128. data/generated/google/apis/composer_v1beta1.rb +1 -1
  129. data/generated/google/apis/composer_v1beta1/classes.rb +13 -10
  130. data/generated/google/apis/composer_v1beta1/service.rb +6 -6
  131. data/generated/google/apis/compute_alpha.rb +1 -1
  132. data/generated/google/apis/compute_alpha/classes.rb +5135 -4250
  133. data/generated/google/apis/compute_alpha/representations.rb +644 -216
  134. data/generated/google/apis/compute_alpha/service.rb +2308 -1655
  135. data/generated/google/apis/compute_beta.rb +1 -1
  136. data/generated/google/apis/compute_beta/classes.rb +1070 -62
  137. data/generated/google/apis/compute_beta/representations.rb +435 -0
  138. data/generated/google/apis/compute_beta/service.rb +1758 -321
  139. data/generated/google/apis/compute_v1.rb +1 -1
  140. data/generated/google/apis/compute_v1/classes.rb +1984 -210
  141. data/generated/google/apis/compute_v1/representations.rb +754 -9
  142. data/generated/google/apis/compute_v1/service.rb +1299 -12
  143. data/generated/google/apis/container_v1.rb +1 -1
  144. data/generated/google/apis/container_v1/classes.rb +43 -0
  145. data/generated/google/apis/container_v1/representations.rb +17 -0
  146. data/generated/google/apis/container_v1beta1.rb +1 -1
  147. data/generated/google/apis/container_v1beta1/classes.rb +193 -231
  148. data/generated/google/apis/container_v1beta1/representations.rb +72 -82
  149. data/generated/google/apis/container_v1beta1/service.rb +0 -112
  150. data/generated/google/apis/content_v2.rb +1 -1
  151. data/generated/google/apis/content_v2/classes.rb +199 -29
  152. data/generated/google/apis/content_v2/representations.rb +59 -0
  153. data/generated/google/apis/content_v2/service.rb +8 -3
  154. data/generated/google/apis/content_v2sandbox.rb +1 -1
  155. data/generated/google/apis/content_v2sandbox/classes.rb +32 -19
  156. data/generated/google/apis/content_v2sandbox/representations.rb +1 -0
  157. data/generated/google/apis/content_v2sandbox/service.rb +8 -3
  158. data/generated/google/apis/customsearch_v1.rb +1 -1
  159. data/generated/google/apis/customsearch_v1/service.rb +7 -7
  160. data/generated/google/apis/dataproc_v1beta2.rb +1 -1
  161. data/generated/google/apis/dataproc_v1beta2/classes.rb +112 -43
  162. data/generated/google/apis/dataproc_v1beta2/representations.rb +19 -0
  163. data/generated/google/apis/datastore_v1.rb +1 -1
  164. data/generated/google/apis/datastore_v1/classes.rb +140 -0
  165. data/generated/google/apis/datastore_v1/representations.rb +65 -0
  166. data/generated/google/apis/datastore_v1/service.rb +74 -0
  167. data/generated/google/apis/datastore_v1beta1.rb +1 -1
  168. data/generated/google/apis/datastore_v1beta1/classes.rb +31 -0
  169. data/generated/google/apis/datastore_v1beta1/representations.rb +17 -0
  170. data/generated/google/apis/datastore_v1beta3.rb +1 -1
  171. data/generated/google/apis/datastore_v1beta3/classes.rb +31 -0
  172. data/generated/google/apis/datastore_v1beta3/representations.rb +17 -0
  173. data/generated/google/apis/deploymentmanager_alpha.rb +1 -1
  174. data/generated/google/apis/deploymentmanager_v2.rb +1 -1
  175. data/generated/google/apis/deploymentmanager_v2beta.rb +1 -1
  176. data/generated/google/apis/dfareporting_v2_8.rb +1 -1
  177. data/generated/google/apis/dfareporting_v3_0.rb +1 -1
  178. data/generated/google/apis/dfareporting_v3_1.rb +1 -1
  179. data/generated/google/apis/dfareporting_v3_2.rb +40 -0
  180. data/generated/google/apis/dfareporting_v3_2/classes.rb +12297 -0
  181. data/generated/google/apis/dfareporting_v3_2/representations.rb +4397 -0
  182. data/generated/google/apis/dfareporting_v3_2/service.rb +8790 -0
  183. data/generated/google/apis/dialogflow_v2.rb +1 -1
  184. data/generated/google/apis/dialogflow_v2/classes.rb +304 -12
  185. data/generated/google/apis/dialogflow_v2/representations.rb +113 -0
  186. data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
  187. data/generated/google/apis/dialogflow_v2beta1/classes.rb +656 -26
  188. data/generated/google/apis/dialogflow_v2beta1/representations.rb +248 -0
  189. data/generated/google/apis/dialogflow_v2beta1/service.rb +556 -0
  190. data/generated/google/apis/discovery_v1.rb +1 -1
  191. data/generated/google/apis/dlp_v2.rb +1 -1
  192. data/generated/google/apis/dlp_v2/classes.rb +357 -6
  193. data/generated/google/apis/dlp_v2/representations.rb +161 -0
  194. data/generated/google/apis/dlp_v2/service.rb +366 -0
  195. data/generated/google/apis/dns_v1.rb +1 -1
  196. data/generated/google/apis/dns_v1/classes.rb +0 -7
  197. data/generated/google/apis/dns_v1/representations.rb +0 -1
  198. data/generated/google/apis/dns_v1beta2.rb +1 -1
  199. data/generated/google/apis/dns_v1beta2/classes.rb +0 -7
  200. data/generated/google/apis/dns_v1beta2/representations.rb +0 -1
  201. data/generated/google/apis/dns_v2beta1.rb +1 -1
  202. data/generated/google/apis/dns_v2beta1/classes.rb +0 -7
  203. data/generated/google/apis/dns_v2beta1/representations.rb +0 -1
  204. data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
  205. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  206. data/generated/google/apis/drive_v2.rb +1 -1
  207. data/generated/google/apis/drive_v2/service.rb +3 -2
  208. data/generated/google/apis/drive_v3.rb +1 -1
  209. data/generated/google/apis/firestore_v1.rb +37 -0
  210. data/generated/google/apis/firestore_v1/classes.rb +324 -0
  211. data/generated/google/apis/firestore_v1/representations.rb +130 -0
  212. data/generated/google/apis/firestore_v1/service.rb +282 -0
  213. data/generated/google/apis/firestore_v1beta1.rb +1 -1
  214. data/generated/google/apis/firestore_v1beta1/classes.rb +290 -0
  215. data/generated/google/apis/firestore_v1beta1/representations.rb +128 -0
  216. data/generated/google/apis/firestore_v1beta1/service.rb +79 -0
  217. data/generated/google/apis/firestore_v1beta2.rb +37 -0
  218. data/generated/google/apis/firestore_v1beta2/classes.rb +531 -0
  219. data/generated/google/apis/firestore_v1beta2/representations.rb +189 -0
  220. data/generated/google/apis/firestore_v1beta2/service.rb +213 -0
  221. data/generated/google/apis/fitness_v1.rb +1 -1
  222. data/generated/google/apis/fusiontables_v1.rb +1 -1
  223. data/generated/google/apis/fusiontables_v2.rb +1 -1
  224. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  225. data/generated/google/apis/games_management_v1management.rb +1 -1
  226. data/generated/google/apis/games_v1.rb +1 -1
  227. data/generated/google/apis/genomics_v1.rb +1 -1
  228. data/generated/google/apis/genomics_v1/classes.rb +113 -36
  229. data/generated/google/apis/genomics_v1/representations.rb +31 -0
  230. data/generated/google/apis/genomics_v1/service.rb +2 -0
  231. data/generated/google/apis/genomics_v1alpha2.rb +1 -1
  232. data/generated/google/apis/genomics_v1alpha2/classes.rb +57 -36
  233. data/generated/google/apis/genomics_v1alpha2/representations.rb +13 -0
  234. data/generated/google/apis/genomics_v1alpha2/service.rb +2 -0
  235. data/generated/google/apis/genomics_v2alpha1.rb +1 -1
  236. data/generated/google/apis/genomics_v2alpha1/classes.rb +252 -137
  237. data/generated/google/apis/genomics_v2alpha1/representations.rb +50 -0
  238. data/generated/google/apis/genomics_v2alpha1/service.rb +7 -5
  239. data/generated/google/apis/gmail_v1.rb +1 -1
  240. data/generated/google/apis/groupsmigration_v1.rb +1 -1
  241. data/generated/google/apis/groupssettings_v1.rb +1 -1
  242. data/generated/google/apis/iam_v1.rb +1 -1
  243. data/generated/google/apis/iam_v1/classes.rb +258 -3
  244. data/generated/google/apis/iam_v1/representations.rb +73 -0
  245. data/generated/google/apis/iam_v1/service.rb +50 -2
  246. data/generated/google/apis/iamcredentials_v1.rb +2 -2
  247. data/generated/google/apis/iamcredentials_v1/classes.rb +2 -2
  248. data/generated/google/apis/iamcredentials_v1/service.rb +1 -1
  249. data/generated/google/apis/iap_v1beta1.rb +34 -0
  250. data/generated/google/apis/iap_v1beta1/classes.rb +440 -0
  251. data/generated/google/apis/iap_v1beta1/representations.rb +158 -0
  252. data/generated/google/apis/iap_v1beta1/service.rb +398 -0
  253. data/generated/google/apis/identitytoolkit_v3.rb +1 -1
  254. data/generated/google/apis/jobs_v2.rb +3 -3
  255. data/generated/google/apis/jobs_v2/classes.rb +61 -5
  256. data/generated/google/apis/jobs_v2/representations.rb +18 -0
  257. data/generated/google/apis/jobs_v2/service.rb +3 -3
  258. data/generated/google/apis/licensing_v1.rb +1 -1
  259. data/generated/google/apis/logging_v2.rb +2 -2
  260. data/generated/google/apis/logging_v2/classes.rb +64 -58
  261. data/generated/google/apis/logging_v2/representations.rb +1 -0
  262. data/generated/google/apis/logging_v2/service.rb +39 -40
  263. data/generated/google/apis/logging_v2beta1.rb +2 -2
  264. data/generated/google/apis/logging_v2beta1/classes.rb +59 -53
  265. data/generated/google/apis/logging_v2beta1/representations.rb +1 -0
  266. data/generated/google/apis/logging_v2beta1/service.rb +15 -16
  267. data/generated/google/apis/mirror_v1.rb +1 -1
  268. data/generated/google/apis/ml_v1.rb +1 -1
  269. data/generated/google/apis/ml_v1/classes.rb +87 -0
  270. data/generated/google/apis/ml_v1/representations.rb +34 -0
  271. data/generated/google/apis/ml_v1/service.rb +53 -0
  272. data/generated/google/apis/monitoring_v3.rb +1 -1
  273. data/generated/google/apis/monitoring_v3/classes.rb +68 -15
  274. data/generated/google/apis/monitoring_v3/representations.rb +26 -0
  275. data/generated/google/apis/mybusiness_v3/classes.rb +1 -1
  276. data/generated/google/apis/oauth2_v1.rb +1 -1
  277. data/generated/google/apis/oauth2_v2.rb +1 -1
  278. data/generated/google/apis/pagespeedonline_v1.rb +1 -1
  279. data/generated/google/apis/pagespeedonline_v2.rb +1 -1
  280. data/generated/google/apis/pagespeedonline_v4.rb +1 -1
  281. data/generated/google/apis/playcustomapp_v1.rb +1 -1
  282. data/generated/google/apis/plus_domains_v1.rb +1 -1
  283. data/generated/google/apis/plus_v1.rb +1 -1
  284. data/generated/google/apis/poly_v1.rb +4 -3
  285. data/generated/google/apis/poly_v1/classes.rb +28 -0
  286. data/generated/google/apis/poly_v1/representations.rb +15 -0
  287. data/generated/google/apis/poly_v1/service.rb +3 -2
  288. data/generated/google/apis/pubsub_v1.rb +1 -1
  289. data/generated/google/apis/pubsub_v1/classes.rb +63 -8
  290. data/generated/google/apis/pubsub_v1/representations.rb +18 -0
  291. data/generated/google/apis/pubsub_v1/service.rb +7 -8
  292. data/generated/google/apis/pubsub_v1beta2.rb +1 -1
  293. data/generated/google/apis/pubsub_v1beta2/classes.rb +56 -0
  294. data/generated/google/apis/pubsub_v1beta2/representations.rb +18 -0
  295. data/generated/google/apis/redis_v1beta1.rb +2 -2
  296. data/generated/google/apis/redis_v1beta1/classes.rb +38 -119
  297. data/generated/google/apis/redis_v1beta1/representations.rb +10 -43
  298. data/generated/google/apis/redis_v1beta1/service.rb +73 -1
  299. data/generated/google/apis/replicapool_v1beta1.rb +1 -1
  300. data/generated/google/apis/replicapoolupdater_v1beta1.rb +1 -1
  301. data/generated/google/apis/reseller_v1.rb +1 -1
  302. data/generated/google/apis/runtimeconfig_v1beta1.rb +1 -1
  303. data/generated/google/apis/runtimeconfig_v1beta1/classes.rb +57 -1
  304. data/generated/google/apis/runtimeconfig_v1beta1/representations.rb +18 -0
  305. data/generated/google/apis/script_v1.rb +1 -1
  306. data/generated/google/apis/script_v1/classes.rb +1 -57
  307. data/generated/google/apis/script_v1/representations.rb +0 -32
  308. data/generated/google/apis/servicebroker_v1.rb +1 -1
  309. data/generated/google/apis/servicebroker_v1/classes.rb +56 -1
  310. data/generated/google/apis/servicebroker_v1/representations.rb +18 -0
  311. data/generated/google/apis/servicebroker_v1alpha1.rb +1 -1
  312. data/generated/google/apis/servicebroker_v1alpha1/classes.rb +56 -1
  313. data/generated/google/apis/servicebroker_v1alpha1/representations.rb +18 -0
  314. data/generated/google/apis/servicebroker_v1beta1.rb +1 -1
  315. data/generated/google/apis/servicebroker_v1beta1/classes.rb +56 -1
  316. data/generated/google/apis/servicebroker_v1beta1/representations.rb +18 -0
  317. data/generated/google/apis/serviceconsumermanagement_v1.rb +1 -1
  318. data/generated/google/apis/serviceconsumermanagement_v1/classes.rb +13 -4
  319. data/generated/google/apis/serviceconsumermanagement_v1/representations.rb +1 -0
  320. data/generated/google/apis/servicecontrol_v1.rb +1 -1
  321. data/generated/google/apis/servicecontrol_v1/classes.rb +259 -0
  322. data/generated/google/apis/servicecontrol_v1/representations.rb +68 -0
  323. data/generated/google/apis/servicemanagement_v1.rb +1 -1
  324. data/generated/google/apis/servicemanagement_v1/classes.rb +68 -4
  325. data/generated/google/apis/servicemanagement_v1/representations.rb +19 -0
  326. data/generated/google/apis/serviceusage_v1.rb +1 -1
  327. data/generated/google/apis/serviceusage_v1/classes.rb +13 -4
  328. data/generated/google/apis/serviceusage_v1/representations.rb +1 -0
  329. data/generated/google/apis/serviceusage_v1beta1.rb +1 -1
  330. data/generated/google/apis/serviceusage_v1beta1/classes.rb +13 -4
  331. data/generated/google/apis/serviceusage_v1beta1/representations.rb +1 -0
  332. data/generated/google/apis/serviceuser_v1.rb +1 -1
  333. data/generated/google/apis/serviceuser_v1/classes.rb +12 -3
  334. data/generated/google/apis/serviceuser_v1/representations.rb +1 -0
  335. data/generated/google/apis/sheets_v4.rb +1 -1
  336. data/generated/google/apis/sheets_v4/classes.rb +22 -22
  337. data/generated/google/apis/site_verification_v1.rb +1 -1
  338. data/generated/google/apis/slides_v1.rb +1 -1
  339. data/generated/google/apis/sourcerepo_v1.rb +1 -1
  340. data/generated/google/apis/sourcerepo_v1/classes.rb +56 -1
  341. data/generated/google/apis/sourcerepo_v1/representations.rb +18 -0
  342. data/generated/google/apis/sqladmin_v1beta3.rb +38 -0
  343. data/generated/google/apis/sqladmin_v1beta3/classes.rb +1632 -0
  344. data/generated/google/apis/sqladmin_v1beta3/representations.rb +733 -0
  345. data/generated/google/apis/sqladmin_v1beta3/service.rb +995 -0
  346. data/generated/google/apis/sqladmin_v1beta4.rb +4 -4
  347. data/generated/google/apis/sqladmin_v1beta4/classes.rb +30 -14
  348. data/generated/google/apis/sqladmin_v1beta4/service.rb +7 -7
  349. data/generated/google/apis/storage_v1.rb +1 -1
  350. data/generated/google/apis/storage_v1beta1.rb +1 -1
  351. data/generated/google/apis/storage_v1beta2.rb +1 -1
  352. data/generated/google/apis/surveys_v2.rb +1 -1
  353. data/generated/google/apis/tagmanager_v1.rb +1 -1
  354. data/generated/google/apis/tagmanager_v2.rb +1 -1
  355. data/generated/google/apis/tasks_v1.rb +1 -1
  356. data/generated/google/apis/testing_v1.rb +1 -1
  357. data/generated/google/apis/testing_v1/classes.rb +2 -2
  358. data/generated/google/apis/texttospeech_v1.rb +34 -0
  359. data/generated/google/apis/texttospeech_v1/classes.rb +278 -0
  360. data/generated/google/apis/texttospeech_v1/representations.rb +133 -0
  361. data/generated/google/apis/texttospeech_v1/service.rb +127 -0
  362. data/generated/google/apis/texttospeech_v1beta1.rb +1 -1
  363. data/generated/google/apis/texttospeech_v1beta1/service.rb +1 -2
  364. data/generated/google/apis/toolresults_v1beta3.rb +1 -1
  365. data/generated/google/apis/toolresults_v1beta3/classes.rb +0 -12
  366. data/generated/google/apis/toolresults_v1beta3/representations.rb +0 -2
  367. data/generated/google/apis/tpu_v1.rb +1 -1
  368. data/generated/google/apis/tpu_v1/classes.rb +0 -13
  369. data/generated/google/apis/tpu_v1/representations.rb +0 -12
  370. data/generated/google/apis/tpu_v1/service.rb +0 -33
  371. data/generated/google/apis/tpu_v1alpha1.rb +1 -1
  372. data/generated/google/apis/tpu_v1alpha1/classes.rb +0 -13
  373. data/generated/google/apis/tpu_v1alpha1/representations.rb +0 -12
  374. data/generated/google/apis/tpu_v1alpha1/service.rb +0 -33
  375. data/generated/google/apis/urlshortener_v1.rb +1 -1
  376. data/generated/google/apis/vault_v1.rb +1 -1
  377. data/generated/google/apis/vault_v1/classes.rb +803 -0
  378. data/generated/google/apis/vault_v1/representations.rb +384 -0
  379. data/generated/google/apis/vault_v1/service.rb +211 -0
  380. data/generated/google/apis/vision_v1.rb +1 -1
  381. data/generated/google/apis/vision_v1/classes.rb +3342 -227
  382. data/generated/google/apis/vision_v1/representations.rb +1696 -365
  383. data/generated/google/apis/vision_v1p1beta1.rb +1 -1
  384. data/generated/google/apis/vision_v1p1beta1/classes.rb +1826 -94
  385. data/generated/google/apis/vision_v1p1beta1/representations.rb +754 -1
  386. data/generated/google/apis/vision_v1p2beta1.rb +1 -1
  387. data/generated/google/apis/vision_v1p2beta1/classes.rb +3712 -597
  388. data/generated/google/apis/vision_v1p2beta1/representations.rb +1606 -275
  389. data/generated/google/apis/webfonts_v1.rb +1 -1
  390. data/generated/google/apis/webmasters_v3.rb +1 -1
  391. data/generated/google/apis/websecurityscanner_v1alpha.rb +1 -1
  392. data/generated/google/apis/websecurityscanner_v1alpha/classes.rb +58 -2
  393. data/generated/google/apis/websecurityscanner_v1alpha/representations.rb +32 -0
  394. data/generated/google/apis/youtube_analytics_v1.rb +1 -1
  395. data/generated/google/apis/youtube_analytics_v1beta1.rb +1 -1
  396. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  397. data/generated/google/apis/youtube_v3.rb +1 -1
  398. data/lib/google/apis/core/http_command.rb +1 -1
  399. data/lib/google/apis/version.rb +1 -1
  400. metadata +34 -6
  401. data/generated/google/apis/spectrum_v1explorer/classes.rb +0 -1612
  402. data/generated/google/apis/spectrum_v1explorer/representations.rb +0 -611
  403. data/generated/google/apis/spectrum_v1explorer/service.rb +0 -271
@@ -1060,7 +1060,7 @@ module Google
1060
1060
  execute_or_queue_command(command, &block)
1061
1061
  end
1062
1062
 
1063
- # Adds the given Signed URL Key to the backend bucket.
1063
+ # Adds a key for validating requests with signed URLs for this backend bucket.
1064
1064
  # @param [String] project
1065
1065
  # Project ID for this request.
1066
1066
  # @param [String] backend_bucket
@@ -1160,7 +1160,7 @@ module Google
1160
1160
  execute_or_queue_command(command, &block)
1161
1161
  end
1162
1162
 
1163
- # Deletes the given Signed URL Key from the backend bucket.
1163
+ # Deletes a key for validating requests with signed URLs for this backend bucket.
1164
1164
  # @param [String] project
1165
1165
  # Project ID for this request.
1166
1166
  # @param [String] backend_bucket
@@ -1475,7 +1475,7 @@ module Google
1475
1475
  execute_or_queue_command(command, &block)
1476
1476
  end
1477
1477
 
1478
- # Adds the given Signed URL Key to the specified backend service.
1478
+ # Adds a key for validating requests with signed URLs for this backend service.
1479
1479
  # @param [String] project
1480
1480
  # Project ID for this request.
1481
1481
  # @param [String] backend_service
@@ -1647,7 +1647,8 @@ module Google
1647
1647
  execute_or_queue_command(command, &block)
1648
1648
  end
1649
1649
 
1650
- # Deletes the given Signed URL Key from the specified backend service.
1650
+ # Deletes a key for validating requests with signed URLs for this backend
1651
+ # service.
1651
1652
  # @param [String] project
1652
1653
  # Project ID for this request.
1653
1654
  # @param [String] backend_service
@@ -2282,6 +2283,61 @@ module Google
2282
2283
  execute_or_queue_command(command, &block)
2283
2284
  end
2284
2285
 
2286
+ # Adds existing resource policies to a disk. You can only add one policy which
2287
+ # will be applied to this disk for scheduling snapshot creation.
2288
+ # @param [String] project
2289
+ # Project ID for this request.
2290
+ # @param [String] zone
2291
+ # The name of the zone for this request.
2292
+ # @param [String] disk
2293
+ # The disk name for this request.
2294
+ # @param [Google::Apis::ComputeBeta::DisksAddResourcePoliciesRequest] disks_add_resource_policies_request_object
2295
+ # @param [String] request_id
2296
+ # An optional request ID to identify requests. Specify a unique request ID so
2297
+ # that if you must retry your request, the server will know to ignore the
2298
+ # request if it has already been completed.
2299
+ # For example, consider a situation where you make an initial request and the
2300
+ # request times out. If you make the request again with the same request ID, the
2301
+ # server can check if original operation with the same request ID was received,
2302
+ # and if so, will ignore the second request. This prevents clients from
2303
+ # accidentally creating duplicate commitments.
2304
+ # The request ID must be a valid UUID with the exception that zero UUID is not
2305
+ # supported (00000000-0000-0000-0000-000000000000).
2306
+ # @param [String] fields
2307
+ # Selector specifying which fields to include in a partial response.
2308
+ # @param [String] quota_user
2309
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
2310
+ # characters.
2311
+ # @param [String] user_ip
2312
+ # Deprecated. Please use quotaUser instead.
2313
+ # @param [Google::Apis::RequestOptions] options
2314
+ # Request-specific options
2315
+ #
2316
+ # @yield [result, err] Result & error if block supplied
2317
+ # @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
2318
+ # @yieldparam err [StandardError] error object if request failed
2319
+ #
2320
+ # @return [Google::Apis::ComputeBeta::Operation]
2321
+ #
2322
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2323
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2324
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2325
+ def add_disk_resource_policies(project, zone, disk, disks_add_resource_policies_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2326
+ command = make_simple_command(:post, '{project}/zones/{zone}/disks/{disk}/addResourcePolicies', options)
2327
+ command.request_representation = Google::Apis::ComputeBeta::DisksAddResourcePoliciesRequest::Representation
2328
+ command.request_object = disks_add_resource_policies_request_object
2329
+ command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
2330
+ command.response_class = Google::Apis::ComputeBeta::Operation
2331
+ command.params['project'] = project unless project.nil?
2332
+ command.params['zone'] = zone unless zone.nil?
2333
+ command.params['disk'] = disk unless disk.nil?
2334
+ command.query['requestId'] = request_id unless request_id.nil?
2335
+ command.query['fields'] = fields unless fields.nil?
2336
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2337
+ command.query['userIp'] = user_ip unless user_ip.nil?
2338
+ execute_or_queue_command(command, &block)
2339
+ end
2340
+
2285
2341
  # Retrieves an aggregated list of persistent disks.
2286
2342
  # @param [String] project
2287
2343
  # Project ID for this request.
@@ -2502,6 +2558,46 @@ module Google
2502
2558
  execute_or_queue_command(command, &block)
2503
2559
  end
2504
2560
 
2561
+ # Gets the access control policy for a resource. May be empty if no such policy
2562
+ # or resource exists.
2563
+ # @param [String] project
2564
+ # Project ID for this request.
2565
+ # @param [String] zone
2566
+ # The name of the zone for this request.
2567
+ # @param [String] resource
2568
+ # Name of the resource for this request.
2569
+ # @param [String] fields
2570
+ # Selector specifying which fields to include in a partial response.
2571
+ # @param [String] quota_user
2572
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
2573
+ # characters.
2574
+ # @param [String] user_ip
2575
+ # Deprecated. Please use quotaUser instead.
2576
+ # @param [Google::Apis::RequestOptions] options
2577
+ # Request-specific options
2578
+ #
2579
+ # @yield [result, err] Result & error if block supplied
2580
+ # @yieldparam result [Google::Apis::ComputeBeta::Policy] parsed result object
2581
+ # @yieldparam err [StandardError] error object if request failed
2582
+ #
2583
+ # @return [Google::Apis::ComputeBeta::Policy]
2584
+ #
2585
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2586
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2587
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2588
+ def get_disk_iam_policy(project, zone, resource, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2589
+ command = make_simple_command(:get, '{project}/zones/{zone}/disks/{resource}/getIamPolicy', options)
2590
+ command.response_representation = Google::Apis::ComputeBeta::Policy::Representation
2591
+ command.response_class = Google::Apis::ComputeBeta::Policy
2592
+ command.params['project'] = project unless project.nil?
2593
+ command.params['zone'] = zone unless zone.nil?
2594
+ command.params['resource'] = resource unless resource.nil?
2595
+ command.query['fields'] = fields unless fields.nil?
2596
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2597
+ command.query['userIp'] = user_ip unless user_ip.nil?
2598
+ execute_or_queue_command(command, &block)
2599
+ end
2600
+
2505
2601
  # Creates a persistent disk in the specified project using the data in the
2506
2602
  # request. You can create a disk with a sourceImage, a sourceSnapshot, or create
2507
2603
  # an empty 500 GB data disk by omitting all properties. You can also create a
@@ -2633,6 +2729,60 @@ module Google
2633
2729
  execute_or_queue_command(command, &block)
2634
2730
  end
2635
2731
 
2732
+ # Removes resource policies from a disk.
2733
+ # @param [String] project
2734
+ # Project ID for this request.
2735
+ # @param [String] zone
2736
+ # The name of the zone for this request.
2737
+ # @param [String] disk
2738
+ # The disk name for this request.
2739
+ # @param [Google::Apis::ComputeBeta::DisksRemoveResourcePoliciesRequest] disks_remove_resource_policies_request_object
2740
+ # @param [String] request_id
2741
+ # An optional request ID to identify requests. Specify a unique request ID so
2742
+ # that if you must retry your request, the server will know to ignore the
2743
+ # request if it has already been completed.
2744
+ # For example, consider a situation where you make an initial request and the
2745
+ # request times out. If you make the request again with the same request ID, the
2746
+ # server can check if original operation with the same request ID was received,
2747
+ # and if so, will ignore the second request. This prevents clients from
2748
+ # accidentally creating duplicate commitments.
2749
+ # The request ID must be a valid UUID with the exception that zero UUID is not
2750
+ # supported (00000000-0000-0000-0000-000000000000).
2751
+ # @param [String] fields
2752
+ # Selector specifying which fields to include in a partial response.
2753
+ # @param [String] quota_user
2754
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
2755
+ # characters.
2756
+ # @param [String] user_ip
2757
+ # Deprecated. Please use quotaUser instead.
2758
+ # @param [Google::Apis::RequestOptions] options
2759
+ # Request-specific options
2760
+ #
2761
+ # @yield [result, err] Result & error if block supplied
2762
+ # @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
2763
+ # @yieldparam err [StandardError] error object if request failed
2764
+ #
2765
+ # @return [Google::Apis::ComputeBeta::Operation]
2766
+ #
2767
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2768
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2769
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2770
+ def remove_disk_resource_policies(project, zone, disk, disks_remove_resource_policies_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2771
+ command = make_simple_command(:post, '{project}/zones/{zone}/disks/{disk}/removeResourcePolicies', options)
2772
+ command.request_representation = Google::Apis::ComputeBeta::DisksRemoveResourcePoliciesRequest::Representation
2773
+ command.request_object = disks_remove_resource_policies_request_object
2774
+ command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
2775
+ command.response_class = Google::Apis::ComputeBeta::Operation
2776
+ command.params['project'] = project unless project.nil?
2777
+ command.params['zone'] = zone unless zone.nil?
2778
+ command.params['disk'] = disk unless disk.nil?
2779
+ command.query['requestId'] = request_id unless request_id.nil?
2780
+ command.query['fields'] = fields unless fields.nil?
2781
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2782
+ command.query['userIp'] = user_ip unless user_ip.nil?
2783
+ execute_or_queue_command(command, &block)
2784
+ end
2785
+
2636
2786
  # Resizes the specified persistent disk. You can only increase the size of the
2637
2787
  # disk.
2638
2788
  # @param [String] project
@@ -2688,6 +2838,49 @@ module Google
2688
2838
  execute_or_queue_command(command, &block)
2689
2839
  end
2690
2840
 
2841
+ # Sets the access control policy on the specified resource. Replaces any
2842
+ # existing policy.
2843
+ # @param [String] project
2844
+ # Project ID for this request.
2845
+ # @param [String] zone
2846
+ # The name of the zone for this request.
2847
+ # @param [String] resource
2848
+ # Name of the resource for this request.
2849
+ # @param [Google::Apis::ComputeBeta::ZoneSetPolicyRequest] zone_set_policy_request_object
2850
+ # @param [String] fields
2851
+ # Selector specifying which fields to include in a partial response.
2852
+ # @param [String] quota_user
2853
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
2854
+ # characters.
2855
+ # @param [String] user_ip
2856
+ # Deprecated. Please use quotaUser instead.
2857
+ # @param [Google::Apis::RequestOptions] options
2858
+ # Request-specific options
2859
+ #
2860
+ # @yield [result, err] Result & error if block supplied
2861
+ # @yieldparam result [Google::Apis::ComputeBeta::Policy] parsed result object
2862
+ # @yieldparam err [StandardError] error object if request failed
2863
+ #
2864
+ # @return [Google::Apis::ComputeBeta::Policy]
2865
+ #
2866
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2867
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2868
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2869
+ def set_disk_iam_policy(project, zone, resource, zone_set_policy_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2870
+ command = make_simple_command(:post, '{project}/zones/{zone}/disks/{resource}/setIamPolicy', options)
2871
+ command.request_representation = Google::Apis::ComputeBeta::ZoneSetPolicyRequest::Representation
2872
+ command.request_object = zone_set_policy_request_object
2873
+ command.response_representation = Google::Apis::ComputeBeta::Policy::Representation
2874
+ command.response_class = Google::Apis::ComputeBeta::Policy
2875
+ command.params['project'] = project unless project.nil?
2876
+ command.params['zone'] = zone unless zone.nil?
2877
+ command.params['resource'] = resource unless resource.nil?
2878
+ command.query['fields'] = fields unless fields.nil?
2879
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2880
+ command.query['userIp'] = user_ip unless user_ip.nil?
2881
+ execute_or_queue_command(command, &block)
2882
+ end
2883
+
2691
2884
  # Sets the labels on a disk. To learn more about labels, read the Labeling
2692
2885
  # Resources documentation.
2693
2886
  # @param [String] project
@@ -5630,6 +5823,43 @@ module Google
5630
5823
  execute_or_queue_command(command, &block)
5631
5824
  end
5632
5825
 
5826
+ # Gets the access control policy for a resource. May be empty if no such policy
5827
+ # or resource exists.
5828
+ # @param [String] project
5829
+ # Project ID for this request.
5830
+ # @param [String] resource
5831
+ # Name of the resource for this request.
5832
+ # @param [String] fields
5833
+ # Selector specifying which fields to include in a partial response.
5834
+ # @param [String] quota_user
5835
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
5836
+ # characters.
5837
+ # @param [String] user_ip
5838
+ # Deprecated. Please use quotaUser instead.
5839
+ # @param [Google::Apis::RequestOptions] options
5840
+ # Request-specific options
5841
+ #
5842
+ # @yield [result, err] Result & error if block supplied
5843
+ # @yieldparam result [Google::Apis::ComputeBeta::Policy] parsed result object
5844
+ # @yieldparam err [StandardError] error object if request failed
5845
+ #
5846
+ # @return [Google::Apis::ComputeBeta::Policy]
5847
+ #
5848
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
5849
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
5850
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
5851
+ def get_image_iam_policy(project, resource, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
5852
+ command = make_simple_command(:get, '{project}/global/images/{resource}/getIamPolicy', options)
5853
+ command.response_representation = Google::Apis::ComputeBeta::Policy::Representation
5854
+ command.response_class = Google::Apis::ComputeBeta::Policy
5855
+ command.params['project'] = project unless project.nil?
5856
+ command.params['resource'] = resource unless resource.nil?
5857
+ command.query['fields'] = fields unless fields.nil?
5858
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
5859
+ command.query['userIp'] = user_ip unless user_ip.nil?
5860
+ execute_or_queue_command(command, &block)
5861
+ end
5862
+
5633
5863
  # Creates an image in the specified project using the data included in the
5634
5864
  # request.
5635
5865
  # @param [String] project
@@ -5758,6 +5988,46 @@ module Google
5758
5988
  execute_or_queue_command(command, &block)
5759
5989
  end
5760
5990
 
5991
+ # Sets the access control policy on the specified resource. Replaces any
5992
+ # existing policy.
5993
+ # @param [String] project
5994
+ # Project ID for this request.
5995
+ # @param [String] resource
5996
+ # Name of the resource for this request.
5997
+ # @param [Google::Apis::ComputeBeta::GlobalSetPolicyRequest] global_set_policy_request_object
5998
+ # @param [String] fields
5999
+ # Selector specifying which fields to include in a partial response.
6000
+ # @param [String] quota_user
6001
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
6002
+ # characters.
6003
+ # @param [String] user_ip
6004
+ # Deprecated. Please use quotaUser instead.
6005
+ # @param [Google::Apis::RequestOptions] options
6006
+ # Request-specific options
6007
+ #
6008
+ # @yield [result, err] Result & error if block supplied
6009
+ # @yieldparam result [Google::Apis::ComputeBeta::Policy] parsed result object
6010
+ # @yieldparam err [StandardError] error object if request failed
6011
+ #
6012
+ # @return [Google::Apis::ComputeBeta::Policy]
6013
+ #
6014
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
6015
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
6016
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
6017
+ def set_image_iam_policy(project, resource, global_set_policy_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
6018
+ command = make_simple_command(:post, '{project}/global/images/{resource}/setIamPolicy', options)
6019
+ command.request_representation = Google::Apis::ComputeBeta::GlobalSetPolicyRequest::Representation
6020
+ command.request_object = global_set_policy_request_object
6021
+ command.response_representation = Google::Apis::ComputeBeta::Policy::Representation
6022
+ command.response_class = Google::Apis::ComputeBeta::Policy
6023
+ command.params['project'] = project unless project.nil?
6024
+ command.params['resource'] = resource unless resource.nil?
6025
+ command.query['fields'] = fields unless fields.nil?
6026
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
6027
+ command.query['userIp'] = user_ip unless user_ip.nil?
6028
+ execute_or_queue_command(command, &block)
6029
+ end
6030
+
5761
6031
  # Sets the labels on an image. To learn more about labels, read the Labeling
5762
6032
  # Resources documentation.
5763
6033
  # @param [String] project
@@ -6275,9 +6545,39 @@ module Google
6275
6545
  # @param [String] instance_group_manager
6276
6546
  # The name of the managed instance group.
6277
6547
  # @param [String] filter
6548
+ # A filter expression that filters resources listed in the response. The
6549
+ # expression must specify the field name, a comparison operator, and the value
6550
+ # that you want to use for filtering. The value must be a string, a number, or a
6551
+ # boolean. The comparison operator must be either =, !=, >, or <.
6552
+ # For example, if you are filtering Compute Engine instances, you can exclude
6553
+ # instances named example-instance by specifying name != example-instance.
6554
+ # You can also filter nested fields. For example, you could specify scheduling.
6555
+ # automaticRestart = false to include instances only if they are not scheduled
6556
+ # for automatic restarts. You can use filtering on nested fields to filter based
6557
+ # on resource labels.
6558
+ # To filter on multiple expressions, provide each separate expression within
6559
+ # parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = "
6560
+ # Intel Skylake"). By default, each expression is an AND expression. However,
6561
+ # you can include AND and OR expressions explicitly. For example, (cpuPlatform =
6562
+ # "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.
6563
+ # automaticRestart = true).
6278
6564
  # @param [Fixnum] max_results
6565
+ # The maximum number of results per page that should be returned. If the number
6566
+ # of available results is larger than maxResults, Compute Engine returns a
6567
+ # nextPageToken that can be used to get the next page of results in subsequent
6568
+ # list requests. Acceptable values are 0 to 500, inclusive. (Default: 500)
6279
6569
  # @param [String] order_by
6570
+ # Sorts list results by a certain order. By default, results are returned in
6571
+ # alphanumerical order based on the resource name.
6572
+ # You can also sort results in descending order based on the creation timestamp
6573
+ # using orderBy="creationTimestamp desc". This sorts results based on the
6574
+ # creationTimestamp field in reverse chronological order (newest result first).
6575
+ # Use this to sort resources like operations so that the newest operation is
6576
+ # returned first.
6577
+ # Currently, only sorting by name or creationTimestamp desc is supported.
6280
6578
  # @param [String] page_token
6579
+ # Specifies a page token to use. Set pageToken to the nextPageToken returned by
6580
+ # a previous list request to get the next page of results.
6281
6581
  # @param [String] fields
6282
6582
  # Selector specifying which fields to include in a partial response.
6283
6583
  # @param [String] quota_user
@@ -7503,6 +7803,43 @@ module Google
7503
7803
  execute_or_queue_command(command, &block)
7504
7804
  end
7505
7805
 
7806
+ # Gets the access control policy for a resource. May be empty if no such policy
7807
+ # or resource exists.
7808
+ # @param [String] project
7809
+ # Project ID for this request.
7810
+ # @param [String] resource
7811
+ # Name of the resource for this request.
7812
+ # @param [String] fields
7813
+ # Selector specifying which fields to include in a partial response.
7814
+ # @param [String] quota_user
7815
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
7816
+ # characters.
7817
+ # @param [String] user_ip
7818
+ # Deprecated. Please use quotaUser instead.
7819
+ # @param [Google::Apis::RequestOptions] options
7820
+ # Request-specific options
7821
+ #
7822
+ # @yield [result, err] Result & error if block supplied
7823
+ # @yieldparam result [Google::Apis::ComputeBeta::Policy] parsed result object
7824
+ # @yieldparam err [StandardError] error object if request failed
7825
+ #
7826
+ # @return [Google::Apis::ComputeBeta::Policy]
7827
+ #
7828
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
7829
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
7830
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
7831
+ def get_instance_template_iam_policy(project, resource, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
7832
+ command = make_simple_command(:get, '{project}/global/instanceTemplates/{resource}/getIamPolicy', options)
7833
+ command.response_representation = Google::Apis::ComputeBeta::Policy::Representation
7834
+ command.response_class = Google::Apis::ComputeBeta::Policy
7835
+ command.params['project'] = project unless project.nil?
7836
+ command.params['resource'] = resource unless resource.nil?
7837
+ command.query['fields'] = fields unless fields.nil?
7838
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
7839
+ command.query['userIp'] = user_ip unless user_ip.nil?
7840
+ execute_or_queue_command(command, &block)
7841
+ end
7842
+
7506
7843
  # Creates an instance template in the specified project using the data that is
7507
7844
  # included in the request. If you are creating a new template to update an
7508
7845
  # existing instance group, your new instance template must use the same network
@@ -7626,6 +7963,46 @@ module Google
7626
7963
  execute_or_queue_command(command, &block)
7627
7964
  end
7628
7965
 
7966
+ # Sets the access control policy on the specified resource. Replaces any
7967
+ # existing policy.
7968
+ # @param [String] project
7969
+ # Project ID for this request.
7970
+ # @param [String] resource
7971
+ # Name of the resource for this request.
7972
+ # @param [Google::Apis::ComputeBeta::GlobalSetPolicyRequest] global_set_policy_request_object
7973
+ # @param [String] fields
7974
+ # Selector specifying which fields to include in a partial response.
7975
+ # @param [String] quota_user
7976
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
7977
+ # characters.
7978
+ # @param [String] user_ip
7979
+ # Deprecated. Please use quotaUser instead.
7980
+ # @param [Google::Apis::RequestOptions] options
7981
+ # Request-specific options
7982
+ #
7983
+ # @yield [result, err] Result & error if block supplied
7984
+ # @yieldparam result [Google::Apis::ComputeBeta::Policy] parsed result object
7985
+ # @yieldparam err [StandardError] error object if request failed
7986
+ #
7987
+ # @return [Google::Apis::ComputeBeta::Policy]
7988
+ #
7989
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
7990
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
7991
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
7992
+ def set_instance_template_iam_policy(project, resource, global_set_policy_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
7993
+ command = make_simple_command(:post, '{project}/global/instanceTemplates/{resource}/setIamPolicy', options)
7994
+ command.request_representation = Google::Apis::ComputeBeta::GlobalSetPolicyRequest::Representation
7995
+ command.request_object = global_set_policy_request_object
7996
+ command.response_representation = Google::Apis::ComputeBeta::Policy::Representation
7997
+ command.response_class = Google::Apis::ComputeBeta::Policy
7998
+ command.params['project'] = project unless project.nil?
7999
+ command.params['resource'] = resource unless resource.nil?
8000
+ command.query['fields'] = fields unless fields.nil?
8001
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
8002
+ command.query['userIp'] = user_ip unless user_ip.nil?
8003
+ execute_or_queue_command(command, &block)
8004
+ end
8005
+
7629
8006
  # Returns permissions that a caller has on the specified resource.
7630
8007
  # @param [String] project
7631
8008
  # Project ID for this request.
@@ -8057,6 +8434,46 @@ module Google
8057
8434
  execute_or_queue_command(command, &block)
8058
8435
  end
8059
8436
 
8437
+ # Gets the access control policy for a resource. May be empty if no such policy
8438
+ # or resource exists.
8439
+ # @param [String] project
8440
+ # Project ID for this request.
8441
+ # @param [String] zone
8442
+ # The name of the zone for this request.
8443
+ # @param [String] resource
8444
+ # Name of the resource for this request.
8445
+ # @param [String] fields
8446
+ # Selector specifying which fields to include in a partial response.
8447
+ # @param [String] quota_user
8448
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
8449
+ # characters.
8450
+ # @param [String] user_ip
8451
+ # Deprecated. Please use quotaUser instead.
8452
+ # @param [Google::Apis::RequestOptions] options
8453
+ # Request-specific options
8454
+ #
8455
+ # @yield [result, err] Result & error if block supplied
8456
+ # @yieldparam result [Google::Apis::ComputeBeta::Policy] parsed result object
8457
+ # @yieldparam err [StandardError] error object if request failed
8458
+ #
8459
+ # @return [Google::Apis::ComputeBeta::Policy]
8460
+ #
8461
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
8462
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
8463
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
8464
+ def get_instance_iam_policy(project, zone, resource, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
8465
+ command = make_simple_command(:get, '{project}/zones/{zone}/instances/{resource}/getIamPolicy', options)
8466
+ command.response_representation = Google::Apis::ComputeBeta::Policy::Representation
8467
+ command.response_class = Google::Apis::ComputeBeta::Policy
8468
+ command.params['project'] = project unless project.nil?
8469
+ command.params['zone'] = zone unless zone.nil?
8470
+ command.params['resource'] = resource unless resource.nil?
8471
+ command.query['fields'] = fields unless fields.nil?
8472
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
8473
+ command.query['userIp'] = user_ip unless user_ip.nil?
8474
+ execute_or_queue_command(command, &block)
8475
+ end
8476
+
8060
8477
  # Returns the specified instance's serial port output.
8061
8478
  # @param [String] project
8062
8479
  # Project ID for this request.
@@ -8482,6 +8899,49 @@ module Google
8482
8899
  execute_or_queue_command(command, &block)
8483
8900
  end
8484
8901
 
8902
+ # Sets the access control policy on the specified resource. Replaces any
8903
+ # existing policy.
8904
+ # @param [String] project
8905
+ # Project ID for this request.
8906
+ # @param [String] zone
8907
+ # The name of the zone for this request.
8908
+ # @param [String] resource
8909
+ # Name of the resource for this request.
8910
+ # @param [Google::Apis::ComputeBeta::ZoneSetPolicyRequest] zone_set_policy_request_object
8911
+ # @param [String] fields
8912
+ # Selector specifying which fields to include in a partial response.
8913
+ # @param [String] quota_user
8914
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
8915
+ # characters.
8916
+ # @param [String] user_ip
8917
+ # Deprecated. Please use quotaUser instead.
8918
+ # @param [Google::Apis::RequestOptions] options
8919
+ # Request-specific options
8920
+ #
8921
+ # @yield [result, err] Result & error if block supplied
8922
+ # @yieldparam result [Google::Apis::ComputeBeta::Policy] parsed result object
8923
+ # @yieldparam err [StandardError] error object if request failed
8924
+ #
8925
+ # @return [Google::Apis::ComputeBeta::Policy]
8926
+ #
8927
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
8928
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
8929
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
8930
+ def set_instance_iam_policy(project, zone, resource, zone_set_policy_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
8931
+ command = make_simple_command(:post, '{project}/zones/{zone}/instances/{resource}/setIamPolicy', options)
8932
+ command.request_representation = Google::Apis::ComputeBeta::ZoneSetPolicyRequest::Representation
8933
+ command.request_object = zone_set_policy_request_object
8934
+ command.response_representation = Google::Apis::ComputeBeta::Policy::Representation
8935
+ command.response_class = Google::Apis::ComputeBeta::Policy
8936
+ command.params['project'] = project unless project.nil?
8937
+ command.params['zone'] = zone unless zone.nil?
8938
+ command.params['resource'] = resource unless resource.nil?
8939
+ command.query['fields'] = fields unless fields.nil?
8940
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
8941
+ command.query['userIp'] = user_ip unless user_ip.nil?
8942
+ execute_or_queue_command(command, &block)
8943
+ end
8944
+
8485
8945
  # Sets labels on an instance. To learn more about labels, read the Labeling
8486
8946
  # Resources documentation.
8487
8947
  # @param [String] project
@@ -8866,8 +9326,9 @@ module Google
8866
9326
  execute_or_queue_command(command, &block)
8867
9327
  end
8868
9328
 
8869
- # Sets the Shielded VM integrity policy for an instance. This method supports
8870
- # PATCH semantics and uses the JSON merge patch format and processing rules.
9329
+ # Sets the Shielded VM integrity policy for a VM instance. You can only use this
9330
+ # method on a running VM instance. This method supports PATCH semantics and uses
9331
+ # the JSON merge patch format and processing rules.
8871
9332
  # @param [String] project
8872
9333
  # Project ID for this request.
8873
9334
  # @param [String] zone
@@ -9334,8 +9795,9 @@ module Google
9334
9795
  execute_or_queue_command(command, &block)
9335
9796
  end
9336
9797
 
9337
- # Updates the Shielded VM config for an instance. This method supports PATCH
9338
- # semantics and uses the JSON merge patch format and processing rules.
9798
+ # Updates the Shielded VM config for a VM instance. You can only use this method
9799
+ # on a stopped VM instance. This method supports PATCH semantics and uses the
9800
+ # JSON merge patch format and processing rules.
9339
9801
  # @param [String] project
9340
9802
  # Project ID for this request.
9341
9803
  # @param [String] zone
@@ -11738,7 +12200,8 @@ module Google
11738
12200
  execute_or_queue_command(command, &block)
11739
12201
  end
11740
12202
 
11741
- # Retrieves an aggregated list of node groups.
12203
+ # Retrieves an aggregated list of node groups. Note: use nodeGroups.listNodes
12204
+ # for more details about each group.
11742
12205
  # @param [String] project
11743
12206
  # Project ID for this request.
11744
12207
  # @param [String] filter
@@ -11915,7 +12378,8 @@ module Google
11915
12378
  end
11916
12379
 
11917
12380
  # Returns the specified NodeGroup. Get a list of available NodeGroups by making
11918
- # a list() request.
12381
+ # a list() request. Note: the "nodes" field should not be used. Use nodeGroups.
12382
+ # listNodes instead.
11919
12383
  # @param [String] project
11920
12384
  # Project ID for this request.
11921
12385
  # @param [String] zone
@@ -11954,6 +12418,46 @@ module Google
11954
12418
  execute_or_queue_command(command, &block)
11955
12419
  end
11956
12420
 
12421
+ # Gets the access control policy for a resource. May be empty if no such policy
12422
+ # or resource exists.
12423
+ # @param [String] project
12424
+ # Project ID for this request.
12425
+ # @param [String] zone
12426
+ # The name of the zone for this request.
12427
+ # @param [String] resource
12428
+ # Name of the resource for this request.
12429
+ # @param [String] fields
12430
+ # Selector specifying which fields to include in a partial response.
12431
+ # @param [String] quota_user
12432
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
12433
+ # characters.
12434
+ # @param [String] user_ip
12435
+ # Deprecated. Please use quotaUser instead.
12436
+ # @param [Google::Apis::RequestOptions] options
12437
+ # Request-specific options
12438
+ #
12439
+ # @yield [result, err] Result & error if block supplied
12440
+ # @yieldparam result [Google::Apis::ComputeBeta::Policy] parsed result object
12441
+ # @yieldparam err [StandardError] error object if request failed
12442
+ #
12443
+ # @return [Google::Apis::ComputeBeta::Policy]
12444
+ #
12445
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
12446
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
12447
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
12448
+ def get_node_group_iam_policy(project, zone, resource, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
12449
+ command = make_simple_command(:get, '{project}/zones/{zone}/nodeGroups/{resource}/getIamPolicy', options)
12450
+ command.response_representation = Google::Apis::ComputeBeta::Policy::Representation
12451
+ command.response_class = Google::Apis::ComputeBeta::Policy
12452
+ command.params['project'] = project unless project.nil?
12453
+ command.params['zone'] = zone unless zone.nil?
12454
+ command.params['resource'] = resource unless resource.nil?
12455
+ command.query['fields'] = fields unless fields.nil?
12456
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
12457
+ command.query['userIp'] = user_ip unless user_ip.nil?
12458
+ execute_or_queue_command(command, &block)
12459
+ end
12460
+
11957
12461
  # Creates a NodeGroup resource in the specified project using the data included
11958
12462
  # in the request.
11959
12463
  # @param [String] project
@@ -12009,7 +12513,8 @@ module Google
12009
12513
  execute_or_queue_command(command, &block)
12010
12514
  end
12011
12515
 
12012
- # Retrieves a list of node groups available to the specified project.
12516
+ # Retrieves a list of node groups available to the specified project. Note: use
12517
+ # nodeGroups.listNodes for more details about each group.
12013
12518
  # @param [String] project
12014
12519
  # Project ID for this request.
12015
12520
  # @param [String] zone
@@ -12083,63 +12588,13 @@ module Google
12083
12588
  execute_or_queue_command(command, &block)
12084
12589
  end
12085
12590
 
12086
- # Updates the node template of the node group.
12591
+ # Lists nodes in the node group.
12087
12592
  # @param [String] project
12088
12593
  # Project ID for this request.
12089
12594
  # @param [String] zone
12090
12595
  # The name of the zone for this request.
12091
12596
  # @param [String] node_group
12092
- # Name of the NodeGroup resource to delete.
12093
- # @param [Google::Apis::ComputeBeta::NodeGroupsSetNodeTemplateRequest] node_groups_set_node_template_request_object
12094
- # @param [String] request_id
12095
- # An optional request ID to identify requests. Specify a unique request ID so
12096
- # that if you must retry your request, the server will know to ignore the
12097
- # request if it has already been completed.
12098
- # For example, consider a situation where you make an initial request and the
12099
- # request times out. If you make the request again with the same request ID, the
12100
- # server can check if original operation with the same request ID was received,
12101
- # and if so, will ignore the second request. This prevents clients from
12102
- # accidentally creating duplicate commitments.
12103
- # The request ID must be a valid UUID with the exception that zero UUID is not
12104
- # supported (00000000-0000-0000-0000-000000000000).
12105
- # @param [String] fields
12106
- # Selector specifying which fields to include in a partial response.
12107
- # @param [String] quota_user
12108
- # An opaque string that represents a user for quota purposes. Must not exceed 40
12109
- # characters.
12110
- # @param [String] user_ip
12111
- # Deprecated. Please use quotaUser instead.
12112
- # @param [Google::Apis::RequestOptions] options
12113
- # Request-specific options
12114
- #
12115
- # @yield [result, err] Result & error if block supplied
12116
- # @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
12117
- # @yieldparam err [StandardError] error object if request failed
12118
- #
12119
- # @return [Google::Apis::ComputeBeta::Operation]
12120
- #
12121
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
12122
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
12123
- # @raise [Google::Apis::AuthorizationError] Authorization is required
12124
- def set_node_group_node_template(project, zone, node_group, node_groups_set_node_template_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
12125
- command = make_simple_command(:post, '{project}/zones/{zone}/nodeGroups/{nodeGroup}/setNodeTemplate', options)
12126
- command.request_representation = Google::Apis::ComputeBeta::NodeGroupsSetNodeTemplateRequest::Representation
12127
- command.request_object = node_groups_set_node_template_request_object
12128
- command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
12129
- command.response_class = Google::Apis::ComputeBeta::Operation
12130
- command.params['project'] = project unless project.nil?
12131
- command.params['zone'] = zone unless zone.nil?
12132
- command.params['nodeGroup'] = node_group unless node_group.nil?
12133
- command.query['requestId'] = request_id unless request_id.nil?
12134
- command.query['fields'] = fields unless fields.nil?
12135
- command.query['quotaUser'] = quota_user unless quota_user.nil?
12136
- command.query['userIp'] = user_ip unless user_ip.nil?
12137
- execute_or_queue_command(command, &block)
12138
- end
12139
-
12140
- # Retrieves an aggregated list of node templates.
12141
- # @param [String] project
12142
- # Project ID for this request.
12597
+ # Name of the NodeGroup resource whose nodes you want to list.
12143
12598
  # @param [String] filter
12144
12599
  # A filter expression that filters resources listed in the response. The
12145
12600
  # expression must specify the field name, a comparison operator, and the value
@@ -12185,16 +12640,228 @@ module Google
12185
12640
  # Request-specific options
12186
12641
  #
12187
12642
  # @yield [result, err] Result & error if block supplied
12188
- # @yieldparam result [Google::Apis::ComputeBeta::NodeTemplateAggregatedList] parsed result object
12643
+ # @yieldparam result [Google::Apis::ComputeBeta::NodeGroupsListNodes] parsed result object
12189
12644
  # @yieldparam err [StandardError] error object if request failed
12190
12645
  #
12191
- # @return [Google::Apis::ComputeBeta::NodeTemplateAggregatedList]
12646
+ # @return [Google::Apis::ComputeBeta::NodeGroupsListNodes]
12192
12647
  #
12193
12648
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
12194
12649
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
12195
12650
  # @raise [Google::Apis::AuthorizationError] Authorization is required
12196
- def aggregated_node_template_list(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
12197
- command = make_simple_command(:get, '{project}/aggregated/nodeTemplates', options)
12651
+ def list_node_group_nodes(project, zone, node_group, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
12652
+ command = make_simple_command(:post, '{project}/zones/{zone}/nodeGroups/{nodeGroup}/listNodes', options)
12653
+ command.response_representation = Google::Apis::ComputeBeta::NodeGroupsListNodes::Representation
12654
+ command.response_class = Google::Apis::ComputeBeta::NodeGroupsListNodes
12655
+ command.params['project'] = project unless project.nil?
12656
+ command.params['zone'] = zone unless zone.nil?
12657
+ command.params['nodeGroup'] = node_group unless node_group.nil?
12658
+ command.query['filter'] = filter unless filter.nil?
12659
+ command.query['maxResults'] = max_results unless max_results.nil?
12660
+ command.query['orderBy'] = order_by unless order_by.nil?
12661
+ command.query['pageToken'] = page_token unless page_token.nil?
12662
+ command.query['fields'] = fields unless fields.nil?
12663
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
12664
+ command.query['userIp'] = user_ip unless user_ip.nil?
12665
+ execute_or_queue_command(command, &block)
12666
+ end
12667
+
12668
+ # Sets the access control policy on the specified resource. Replaces any
12669
+ # existing policy.
12670
+ # @param [String] project
12671
+ # Project ID for this request.
12672
+ # @param [String] zone
12673
+ # The name of the zone for this request.
12674
+ # @param [String] resource
12675
+ # Name of the resource for this request.
12676
+ # @param [Google::Apis::ComputeBeta::ZoneSetPolicyRequest] zone_set_policy_request_object
12677
+ # @param [String] fields
12678
+ # Selector specifying which fields to include in a partial response.
12679
+ # @param [String] quota_user
12680
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
12681
+ # characters.
12682
+ # @param [String] user_ip
12683
+ # Deprecated. Please use quotaUser instead.
12684
+ # @param [Google::Apis::RequestOptions] options
12685
+ # Request-specific options
12686
+ #
12687
+ # @yield [result, err] Result & error if block supplied
12688
+ # @yieldparam result [Google::Apis::ComputeBeta::Policy] parsed result object
12689
+ # @yieldparam err [StandardError] error object if request failed
12690
+ #
12691
+ # @return [Google::Apis::ComputeBeta::Policy]
12692
+ #
12693
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
12694
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
12695
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
12696
+ def set_node_group_iam_policy(project, zone, resource, zone_set_policy_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
12697
+ command = make_simple_command(:post, '{project}/zones/{zone}/nodeGroups/{resource}/setIamPolicy', options)
12698
+ command.request_representation = Google::Apis::ComputeBeta::ZoneSetPolicyRequest::Representation
12699
+ command.request_object = zone_set_policy_request_object
12700
+ command.response_representation = Google::Apis::ComputeBeta::Policy::Representation
12701
+ command.response_class = Google::Apis::ComputeBeta::Policy
12702
+ command.params['project'] = project unless project.nil?
12703
+ command.params['zone'] = zone unless zone.nil?
12704
+ command.params['resource'] = resource unless resource.nil?
12705
+ command.query['fields'] = fields unless fields.nil?
12706
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
12707
+ command.query['userIp'] = user_ip unless user_ip.nil?
12708
+ execute_or_queue_command(command, &block)
12709
+ end
12710
+
12711
+ # Updates the node template of the node group.
12712
+ # @param [String] project
12713
+ # Project ID for this request.
12714
+ # @param [String] zone
12715
+ # The name of the zone for this request.
12716
+ # @param [String] node_group
12717
+ # Name of the NodeGroup resource to delete.
12718
+ # @param [Google::Apis::ComputeBeta::NodeGroupsSetNodeTemplateRequest] node_groups_set_node_template_request_object
12719
+ # @param [String] request_id
12720
+ # An optional request ID to identify requests. Specify a unique request ID so
12721
+ # that if you must retry your request, the server will know to ignore the
12722
+ # request if it has already been completed.
12723
+ # For example, consider a situation where you make an initial request and the
12724
+ # request times out. If you make the request again with the same request ID, the
12725
+ # server can check if original operation with the same request ID was received,
12726
+ # and if so, will ignore the second request. This prevents clients from
12727
+ # accidentally creating duplicate commitments.
12728
+ # The request ID must be a valid UUID with the exception that zero UUID is not
12729
+ # supported (00000000-0000-0000-0000-000000000000).
12730
+ # @param [String] fields
12731
+ # Selector specifying which fields to include in a partial response.
12732
+ # @param [String] quota_user
12733
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
12734
+ # characters.
12735
+ # @param [String] user_ip
12736
+ # Deprecated. Please use quotaUser instead.
12737
+ # @param [Google::Apis::RequestOptions] options
12738
+ # Request-specific options
12739
+ #
12740
+ # @yield [result, err] Result & error if block supplied
12741
+ # @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
12742
+ # @yieldparam err [StandardError] error object if request failed
12743
+ #
12744
+ # @return [Google::Apis::ComputeBeta::Operation]
12745
+ #
12746
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
12747
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
12748
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
12749
+ def set_node_group_node_template(project, zone, node_group, node_groups_set_node_template_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
12750
+ command = make_simple_command(:post, '{project}/zones/{zone}/nodeGroups/{nodeGroup}/setNodeTemplate', options)
12751
+ command.request_representation = Google::Apis::ComputeBeta::NodeGroupsSetNodeTemplateRequest::Representation
12752
+ command.request_object = node_groups_set_node_template_request_object
12753
+ command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
12754
+ command.response_class = Google::Apis::ComputeBeta::Operation
12755
+ command.params['project'] = project unless project.nil?
12756
+ command.params['zone'] = zone unless zone.nil?
12757
+ command.params['nodeGroup'] = node_group unless node_group.nil?
12758
+ command.query['requestId'] = request_id unless request_id.nil?
12759
+ command.query['fields'] = fields unless fields.nil?
12760
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
12761
+ command.query['userIp'] = user_ip unless user_ip.nil?
12762
+ execute_or_queue_command(command, &block)
12763
+ end
12764
+
12765
+ # Returns permissions that a caller has on the specified resource.
12766
+ # @param [String] project
12767
+ # Project ID for this request.
12768
+ # @param [String] zone
12769
+ # The name of the zone for this request.
12770
+ # @param [String] resource
12771
+ # Name of the resource for this request.
12772
+ # @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object
12773
+ # @param [String] fields
12774
+ # Selector specifying which fields to include in a partial response.
12775
+ # @param [String] quota_user
12776
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
12777
+ # characters.
12778
+ # @param [String] user_ip
12779
+ # Deprecated. Please use quotaUser instead.
12780
+ # @param [Google::Apis::RequestOptions] options
12781
+ # Request-specific options
12782
+ #
12783
+ # @yield [result, err] Result & error if block supplied
12784
+ # @yieldparam result [Google::Apis::ComputeBeta::TestPermissionsResponse] parsed result object
12785
+ # @yieldparam err [StandardError] error object if request failed
12786
+ #
12787
+ # @return [Google::Apis::ComputeBeta::TestPermissionsResponse]
12788
+ #
12789
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
12790
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
12791
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
12792
+ def test_node_group_iam_permissions(project, zone, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
12793
+ command = make_simple_command(:post, '{project}/zones/{zone}/nodeGroups/{resource}/testIamPermissions', options)
12794
+ command.request_representation = Google::Apis::ComputeBeta::TestPermissionsRequest::Representation
12795
+ command.request_object = test_permissions_request_object
12796
+ command.response_representation = Google::Apis::ComputeBeta::TestPermissionsResponse::Representation
12797
+ command.response_class = Google::Apis::ComputeBeta::TestPermissionsResponse
12798
+ command.params['project'] = project unless project.nil?
12799
+ command.params['zone'] = zone unless zone.nil?
12800
+ command.params['resource'] = resource unless resource.nil?
12801
+ command.query['fields'] = fields unless fields.nil?
12802
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
12803
+ command.query['userIp'] = user_ip unless user_ip.nil?
12804
+ execute_or_queue_command(command, &block)
12805
+ end
12806
+
12807
+ # Retrieves an aggregated list of node templates.
12808
+ # @param [String] project
12809
+ # Project ID for this request.
12810
+ # @param [String] filter
12811
+ # A filter expression that filters resources listed in the response. The
12812
+ # expression must specify the field name, a comparison operator, and the value
12813
+ # that you want to use for filtering. The value must be a string, a number, or a
12814
+ # boolean. The comparison operator must be either =, !=, >, or <.
12815
+ # For example, if you are filtering Compute Engine instances, you can exclude
12816
+ # instances named example-instance by specifying name != example-instance.
12817
+ # You can also filter nested fields. For example, you could specify scheduling.
12818
+ # automaticRestart = false to include instances only if they are not scheduled
12819
+ # for automatic restarts. You can use filtering on nested fields to filter based
12820
+ # on resource labels.
12821
+ # To filter on multiple expressions, provide each separate expression within
12822
+ # parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = "
12823
+ # Intel Skylake"). By default, each expression is an AND expression. However,
12824
+ # you can include AND and OR expressions explicitly. For example, (cpuPlatform =
12825
+ # "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.
12826
+ # automaticRestart = true).
12827
+ # @param [Fixnum] max_results
12828
+ # The maximum number of results per page that should be returned. If the number
12829
+ # of available results is larger than maxResults, Compute Engine returns a
12830
+ # nextPageToken that can be used to get the next page of results in subsequent
12831
+ # list requests. Acceptable values are 0 to 500, inclusive. (Default: 500)
12832
+ # @param [String] order_by
12833
+ # Sorts list results by a certain order. By default, results are returned in
12834
+ # alphanumerical order based on the resource name.
12835
+ # You can also sort results in descending order based on the creation timestamp
12836
+ # using orderBy="creationTimestamp desc". This sorts results based on the
12837
+ # creationTimestamp field in reverse chronological order (newest result first).
12838
+ # Use this to sort resources like operations so that the newest operation is
12839
+ # returned first.
12840
+ # Currently, only sorting by name or creationTimestamp desc is supported.
12841
+ # @param [String] page_token
12842
+ # Specifies a page token to use. Set pageToken to the nextPageToken returned by
12843
+ # a previous list request to get the next page of results.
12844
+ # @param [String] fields
12845
+ # Selector specifying which fields to include in a partial response.
12846
+ # @param [String] quota_user
12847
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
12848
+ # characters.
12849
+ # @param [String] user_ip
12850
+ # Deprecated. Please use quotaUser instead.
12851
+ # @param [Google::Apis::RequestOptions] options
12852
+ # Request-specific options
12853
+ #
12854
+ # @yield [result, err] Result & error if block supplied
12855
+ # @yieldparam result [Google::Apis::ComputeBeta::NodeTemplateAggregatedList] parsed result object
12856
+ # @yieldparam err [StandardError] error object if request failed
12857
+ #
12858
+ # @return [Google::Apis::ComputeBeta::NodeTemplateAggregatedList]
12859
+ #
12860
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
12861
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
12862
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
12863
+ def aggregated_node_template_list(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
12864
+ command = make_simple_command(:get, '{project}/aggregated/nodeTemplates', options)
12198
12865
  command.response_representation = Google::Apis::ComputeBeta::NodeTemplateAggregatedList::Representation
12199
12866
  command.response_class = Google::Apis::ComputeBeta::NodeTemplateAggregatedList
12200
12867
  command.params['project'] = project unless project.nil?
@@ -12299,6 +12966,46 @@ module Google
12299
12966
  execute_or_queue_command(command, &block)
12300
12967
  end
12301
12968
 
12969
+ # Gets the access control policy for a resource. May be empty if no such policy
12970
+ # or resource exists.
12971
+ # @param [String] project
12972
+ # Project ID for this request.
12973
+ # @param [String] region
12974
+ # The name of the region for this request.
12975
+ # @param [String] resource
12976
+ # Name of the resource for this request.
12977
+ # @param [String] fields
12978
+ # Selector specifying which fields to include in a partial response.
12979
+ # @param [String] quota_user
12980
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
12981
+ # characters.
12982
+ # @param [String] user_ip
12983
+ # Deprecated. Please use quotaUser instead.
12984
+ # @param [Google::Apis::RequestOptions] options
12985
+ # Request-specific options
12986
+ #
12987
+ # @yield [result, err] Result & error if block supplied
12988
+ # @yieldparam result [Google::Apis::ComputeBeta::Policy] parsed result object
12989
+ # @yieldparam err [StandardError] error object if request failed
12990
+ #
12991
+ # @return [Google::Apis::ComputeBeta::Policy]
12992
+ #
12993
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
12994
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
12995
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
12996
+ def get_node_template_iam_policy(project, region, resource, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
12997
+ command = make_simple_command(:get, '{project}/regions/{region}/nodeTemplates/{resource}/getIamPolicy', options)
12998
+ command.response_representation = Google::Apis::ComputeBeta::Policy::Representation
12999
+ command.response_class = Google::Apis::ComputeBeta::Policy
13000
+ command.params['project'] = project unless project.nil?
13001
+ command.params['region'] = region unless region.nil?
13002
+ command.params['resource'] = resource unless resource.nil?
13003
+ command.query['fields'] = fields unless fields.nil?
13004
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
13005
+ command.query['userIp'] = user_ip unless user_ip.nil?
13006
+ execute_or_queue_command(command, &block)
13007
+ end
13008
+
12302
13009
  # Creates a NodeTemplate resource in the specified project using the data
12303
13010
  # included in the request.
12304
13011
  # @param [String] project
@@ -12425,21 +13132,106 @@ module Google
12425
13132
  execute_or_queue_command(command, &block)
12426
13133
  end
12427
13134
 
12428
- # Retrieves an aggregated list of node types.
13135
+ # Sets the access control policy on the specified resource. Replaces any
13136
+ # existing policy.
12429
13137
  # @param [String] project
12430
13138
  # Project ID for this request.
12431
- # @param [String] filter
12432
- # A filter expression that filters resources listed in the response. The
12433
- # expression must specify the field name, a comparison operator, and the value
12434
- # that you want to use for filtering. The value must be a string, a number, or a
12435
- # boolean. The comparison operator must be either =, !=, >, or <.
12436
- # For example, if you are filtering Compute Engine instances, you can exclude
12437
- # instances named example-instance by specifying name != example-instance.
12438
- # You can also filter nested fields. For example, you could specify scheduling.
12439
- # automaticRestart = false to include instances only if they are not scheduled
12440
- # for automatic restarts. You can use filtering on nested fields to filter based
12441
- # on resource labels.
12442
- # To filter on multiple expressions, provide each separate expression within
13139
+ # @param [String] region
13140
+ # The name of the region for this request.
13141
+ # @param [String] resource
13142
+ # Name of the resource for this request.
13143
+ # @param [Google::Apis::ComputeBeta::RegionSetPolicyRequest] region_set_policy_request_object
13144
+ # @param [String] fields
13145
+ # Selector specifying which fields to include in a partial response.
13146
+ # @param [String] quota_user
13147
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
13148
+ # characters.
13149
+ # @param [String] user_ip
13150
+ # Deprecated. Please use quotaUser instead.
13151
+ # @param [Google::Apis::RequestOptions] options
13152
+ # Request-specific options
13153
+ #
13154
+ # @yield [result, err] Result & error if block supplied
13155
+ # @yieldparam result [Google::Apis::ComputeBeta::Policy] parsed result object
13156
+ # @yieldparam err [StandardError] error object if request failed
13157
+ #
13158
+ # @return [Google::Apis::ComputeBeta::Policy]
13159
+ #
13160
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
13161
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
13162
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
13163
+ def set_node_template_iam_policy(project, region, resource, region_set_policy_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
13164
+ command = make_simple_command(:post, '{project}/regions/{region}/nodeTemplates/{resource}/setIamPolicy', options)
13165
+ command.request_representation = Google::Apis::ComputeBeta::RegionSetPolicyRequest::Representation
13166
+ command.request_object = region_set_policy_request_object
13167
+ command.response_representation = Google::Apis::ComputeBeta::Policy::Representation
13168
+ command.response_class = Google::Apis::ComputeBeta::Policy
13169
+ command.params['project'] = project unless project.nil?
13170
+ command.params['region'] = region unless region.nil?
13171
+ command.params['resource'] = resource unless resource.nil?
13172
+ command.query['fields'] = fields unless fields.nil?
13173
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
13174
+ command.query['userIp'] = user_ip unless user_ip.nil?
13175
+ execute_or_queue_command(command, &block)
13176
+ end
13177
+
13178
+ # Returns permissions that a caller has on the specified resource.
13179
+ # @param [String] project
13180
+ # Project ID for this request.
13181
+ # @param [String] region
13182
+ # The name of the region for this request.
13183
+ # @param [String] resource
13184
+ # Name of the resource for this request.
13185
+ # @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object
13186
+ # @param [String] fields
13187
+ # Selector specifying which fields to include in a partial response.
13188
+ # @param [String] quota_user
13189
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
13190
+ # characters.
13191
+ # @param [String] user_ip
13192
+ # Deprecated. Please use quotaUser instead.
13193
+ # @param [Google::Apis::RequestOptions] options
13194
+ # Request-specific options
13195
+ #
13196
+ # @yield [result, err] Result & error if block supplied
13197
+ # @yieldparam result [Google::Apis::ComputeBeta::TestPermissionsResponse] parsed result object
13198
+ # @yieldparam err [StandardError] error object if request failed
13199
+ #
13200
+ # @return [Google::Apis::ComputeBeta::TestPermissionsResponse]
13201
+ #
13202
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
13203
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
13204
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
13205
+ def test_node_template_iam_permissions(project, region, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
13206
+ command = make_simple_command(:post, '{project}/regions/{region}/nodeTemplates/{resource}/testIamPermissions', options)
13207
+ command.request_representation = Google::Apis::ComputeBeta::TestPermissionsRequest::Representation
13208
+ command.request_object = test_permissions_request_object
13209
+ command.response_representation = Google::Apis::ComputeBeta::TestPermissionsResponse::Representation
13210
+ command.response_class = Google::Apis::ComputeBeta::TestPermissionsResponse
13211
+ command.params['project'] = project unless project.nil?
13212
+ command.params['region'] = region unless region.nil?
13213
+ command.params['resource'] = resource unless resource.nil?
13214
+ command.query['fields'] = fields unless fields.nil?
13215
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
13216
+ command.query['userIp'] = user_ip unless user_ip.nil?
13217
+ execute_or_queue_command(command, &block)
13218
+ end
13219
+
13220
+ # Retrieves an aggregated list of node types.
13221
+ # @param [String] project
13222
+ # Project ID for this request.
13223
+ # @param [String] filter
13224
+ # A filter expression that filters resources listed in the response. The
13225
+ # expression must specify the field name, a comparison operator, and the value
13226
+ # that you want to use for filtering. The value must be a string, a number, or a
13227
+ # boolean. The comparison operator must be either =, !=, >, or <.
13228
+ # For example, if you are filtering Compute Engine instances, you can exclude
13229
+ # instances named example-instance by specifying name != example-instance.
13230
+ # You can also filter nested fields. For example, you could specify scheduling.
13231
+ # automaticRestart = false to include instances only if they are not scheduled
13232
+ # for automatic restarts. You can use filtering on nested fields to filter based
13233
+ # on resource labels.
13234
+ # To filter on multiple expressions, provide each separate expression within
12443
13235
  # parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = "
12444
13236
  # Intel Skylake"). By default, each expression is an AND expression. However,
12445
13237
  # you can include AND and OR expressions explicitly. For example, (cpuPlatform =
@@ -12870,9 +13662,39 @@ module Google
12870
13662
  # @param [String] project
12871
13663
  # Project ID for this request.
12872
13664
  # @param [String] filter
13665
+ # A filter expression that filters resources listed in the response. The
13666
+ # expression must specify the field name, a comparison operator, and the value
13667
+ # that you want to use for filtering. The value must be a string, a number, or a
13668
+ # boolean. The comparison operator must be either =, !=, >, or <.
13669
+ # For example, if you are filtering Compute Engine instances, you can exclude
13670
+ # instances named example-instance by specifying name != example-instance.
13671
+ # You can also filter nested fields. For example, you could specify scheduling.
13672
+ # automaticRestart = false to include instances only if they are not scheduled
13673
+ # for automatic restarts. You can use filtering on nested fields to filter based
13674
+ # on resource labels.
13675
+ # To filter on multiple expressions, provide each separate expression within
13676
+ # parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = "
13677
+ # Intel Skylake"). By default, each expression is an AND expression. However,
13678
+ # you can include AND and OR expressions explicitly. For example, (cpuPlatform =
13679
+ # "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.
13680
+ # automaticRestart = true).
12873
13681
  # @param [Fixnum] max_results
13682
+ # The maximum number of results per page that should be returned. If the number
13683
+ # of available results is larger than maxResults, Compute Engine returns a
13684
+ # nextPageToken that can be used to get the next page of results in subsequent
13685
+ # list requests. Acceptable values are 0 to 500, inclusive. (Default: 500)
12874
13686
  # @param [String] order_by
13687
+ # Sorts list results by a certain order. By default, results are returned in
13688
+ # alphanumerical order based on the resource name.
13689
+ # You can also sort results in descending order based on the creation timestamp
13690
+ # using orderBy="creationTimestamp desc". This sorts results based on the
13691
+ # creationTimestamp field in reverse chronological order (newest result first).
13692
+ # Use this to sort resources like operations so that the newest operation is
13693
+ # returned first.
13694
+ # Currently, only sorting by name or creationTimestamp desc is supported.
12875
13695
  # @param [String] page_token
13696
+ # Specifies a page token to use. Set pageToken to the nextPageToken returned by
13697
+ # a previous list request to get the next page of results.
12876
13698
  # @param [String] fields
12877
13699
  # Selector specifying which fields to include in a partial response.
12878
13700
  # @param [String] quota_user
@@ -12912,9 +13734,39 @@ module Google
12912
13734
  # Project ID for this request.
12913
13735
  # @param [Google::Apis::ComputeBeta::ProjectsListXpnHostsRequest] projects_list_xpn_hosts_request_object
12914
13736
  # @param [String] filter
13737
+ # A filter expression that filters resources listed in the response. The
13738
+ # expression must specify the field name, a comparison operator, and the value
13739
+ # that you want to use for filtering. The value must be a string, a number, or a
13740
+ # boolean. The comparison operator must be either =, !=, >, or <.
13741
+ # For example, if you are filtering Compute Engine instances, you can exclude
13742
+ # instances named example-instance by specifying name != example-instance.
13743
+ # You can also filter nested fields. For example, you could specify scheduling.
13744
+ # automaticRestart = false to include instances only if they are not scheduled
13745
+ # for automatic restarts. You can use filtering on nested fields to filter based
13746
+ # on resource labels.
13747
+ # To filter on multiple expressions, provide each separate expression within
13748
+ # parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = "
13749
+ # Intel Skylake"). By default, each expression is an AND expression. However,
13750
+ # you can include AND and OR expressions explicitly. For example, (cpuPlatform =
13751
+ # "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.
13752
+ # automaticRestart = true).
12915
13753
  # @param [Fixnum] max_results
13754
+ # The maximum number of results per page that should be returned. If the number
13755
+ # of available results is larger than maxResults, Compute Engine returns a
13756
+ # nextPageToken that can be used to get the next page of results in subsequent
13757
+ # list requests. Acceptable values are 0 to 500, inclusive. (Default: 500)
12916
13758
  # @param [String] order_by
13759
+ # Sorts list results by a certain order. By default, results are returned in
13760
+ # alphanumerical order based on the resource name.
13761
+ # You can also sort results in descending order based on the creation timestamp
13762
+ # using orderBy="creationTimestamp desc". This sorts results based on the
13763
+ # creationTimestamp field in reverse chronological order (newest result first).
13764
+ # Use this to sort resources like operations so that the newest operation is
13765
+ # returned first.
13766
+ # Currently, only sorting by name or creationTimestamp desc is supported.
12917
13767
  # @param [String] page_token
13768
+ # Specifies a page token to use. Set pageToken to the nextPageToken returned by
13769
+ # a previous list request to get the next page of results.
12918
13770
  # @param [String] fields
12919
13771
  # Selector specifying which fields to include in a partial response.
12920
13772
  # @param [String] quota_user
@@ -14333,6 +15185,61 @@ module Google
14333
15185
  execute_or_queue_command(command, &block)
14334
15186
  end
14335
15187
 
15188
+ # Adds existing resource policies to a regional disk. You can only add one
15189
+ # policy which will be applied to this disk for scheduling snapshot creation.
15190
+ # @param [String] project
15191
+ # Project ID for this request.
15192
+ # @param [String] region
15193
+ # The name of the region for this request.
15194
+ # @param [String] disk
15195
+ # The disk name for this request.
15196
+ # @param [Google::Apis::ComputeBeta::RegionDisksAddResourcePoliciesRequest] region_disks_add_resource_policies_request_object
15197
+ # @param [String] request_id
15198
+ # An optional request ID to identify requests. Specify a unique request ID so
15199
+ # that if you must retry your request, the server will know to ignore the
15200
+ # request if it has already been completed.
15201
+ # For example, consider a situation where you make an initial request and the
15202
+ # request times out. If you make the request again with the same request ID, the
15203
+ # server can check if original operation with the same request ID was received,
15204
+ # and if so, will ignore the second request. This prevents clients from
15205
+ # accidentally creating duplicate commitments.
15206
+ # The request ID must be a valid UUID with the exception that zero UUID is not
15207
+ # supported (00000000-0000-0000-0000-000000000000).
15208
+ # @param [String] fields
15209
+ # Selector specifying which fields to include in a partial response.
15210
+ # @param [String] quota_user
15211
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
15212
+ # characters.
15213
+ # @param [String] user_ip
15214
+ # Deprecated. Please use quotaUser instead.
15215
+ # @param [Google::Apis::RequestOptions] options
15216
+ # Request-specific options
15217
+ #
15218
+ # @yield [result, err] Result & error if block supplied
15219
+ # @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
15220
+ # @yieldparam err [StandardError] error object if request failed
15221
+ #
15222
+ # @return [Google::Apis::ComputeBeta::Operation]
15223
+ #
15224
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
15225
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
15226
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
15227
+ def add_region_disk_resource_policies(project, region, disk, region_disks_add_resource_policies_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
15228
+ command = make_simple_command(:post, '{project}/regions/{region}/disks/{disk}/addResourcePolicies', options)
15229
+ command.request_representation = Google::Apis::ComputeBeta::RegionDisksAddResourcePoliciesRequest::Representation
15230
+ command.request_object = region_disks_add_resource_policies_request_object
15231
+ command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
15232
+ command.response_class = Google::Apis::ComputeBeta::Operation
15233
+ command.params['project'] = project unless project.nil?
15234
+ command.params['region'] = region unless region.nil?
15235
+ command.params['disk'] = disk unless disk.nil?
15236
+ command.query['requestId'] = request_id unless request_id.nil?
15237
+ command.query['fields'] = fields unless fields.nil?
15238
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
15239
+ command.query['userIp'] = user_ip unless user_ip.nil?
15240
+ execute_or_queue_command(command, &block)
15241
+ end
15242
+
14336
15243
  # Creates a snapshot of this regional disk.
14337
15244
  # @param [String] project
14338
15245
  # Project ID for this request.
@@ -14609,6 +15516,60 @@ module Google
14609
15516
  execute_or_queue_command(command, &block)
14610
15517
  end
14611
15518
 
15519
+ # Removes resource policies from a regional disk.
15520
+ # @param [String] project
15521
+ # Project ID for this request.
15522
+ # @param [String] region
15523
+ # The name of the region for this request.
15524
+ # @param [String] disk
15525
+ # The disk name for this request.
15526
+ # @param [Google::Apis::ComputeBeta::RegionDisksRemoveResourcePoliciesRequest] region_disks_remove_resource_policies_request_object
15527
+ # @param [String] request_id
15528
+ # An optional request ID to identify requests. Specify a unique request ID so
15529
+ # that if you must retry your request, the server will know to ignore the
15530
+ # request if it has already been completed.
15531
+ # For example, consider a situation where you make an initial request and the
15532
+ # request times out. If you make the request again with the same request ID, the
15533
+ # server can check if original operation with the same request ID was received,
15534
+ # and if so, will ignore the second request. This prevents clients from
15535
+ # accidentally creating duplicate commitments.
15536
+ # The request ID must be a valid UUID with the exception that zero UUID is not
15537
+ # supported (00000000-0000-0000-0000-000000000000).
15538
+ # @param [String] fields
15539
+ # Selector specifying which fields to include in a partial response.
15540
+ # @param [String] quota_user
15541
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
15542
+ # characters.
15543
+ # @param [String] user_ip
15544
+ # Deprecated. Please use quotaUser instead.
15545
+ # @param [Google::Apis::RequestOptions] options
15546
+ # Request-specific options
15547
+ #
15548
+ # @yield [result, err] Result & error if block supplied
15549
+ # @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
15550
+ # @yieldparam err [StandardError] error object if request failed
15551
+ #
15552
+ # @return [Google::Apis::ComputeBeta::Operation]
15553
+ #
15554
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
15555
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
15556
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
15557
+ def remove_region_disk_resource_policies(project, region, disk, region_disks_remove_resource_policies_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
15558
+ command = make_simple_command(:post, '{project}/regions/{region}/disks/{disk}/removeResourcePolicies', options)
15559
+ command.request_representation = Google::Apis::ComputeBeta::RegionDisksRemoveResourcePoliciesRequest::Representation
15560
+ command.request_object = region_disks_remove_resource_policies_request_object
15561
+ command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
15562
+ command.response_class = Google::Apis::ComputeBeta::Operation
15563
+ command.params['project'] = project unless project.nil?
15564
+ command.params['region'] = region unless region.nil?
15565
+ command.params['disk'] = disk unless disk.nil?
15566
+ command.query['requestId'] = request_id unless request_id.nil?
15567
+ command.query['fields'] = fields unless fields.nil?
15568
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
15569
+ command.query['userIp'] = user_ip unless user_ip.nil?
15570
+ execute_or_queue_command(command, &block)
15571
+ end
15572
+
14612
15573
  # Resizes the specified regional persistent disk.
14613
15574
  # @param [String] project
14614
15575
  # The project ID for this request.
@@ -15121,16 +16082,46 @@ module Google
15121
16082
  # @param [String] instance_group_manager
15122
16083
  # The name of the managed instance group.
15123
16084
  # @param [String] filter
15124
- # @param [Fixnum] max_results
15125
- # @param [String] order_by
15126
- # @param [String] page_token
15127
- # @param [String] fields
15128
- # Selector specifying which fields to include in a partial response.
15129
- # @param [String] quota_user
15130
- # An opaque string that represents a user for quota purposes. Must not exceed 40
15131
- # characters.
15132
- # @param [String] user_ip
15133
- # Deprecated. Please use quotaUser instead.
16085
+ # A filter expression that filters resources listed in the response. The
16086
+ # expression must specify the field name, a comparison operator, and the value
16087
+ # that you want to use for filtering. The value must be a string, a number, or a
16088
+ # boolean. The comparison operator must be either =, !=, >, or <.
16089
+ # For example, if you are filtering Compute Engine instances, you can exclude
16090
+ # instances named example-instance by specifying name != example-instance.
16091
+ # You can also filter nested fields. For example, you could specify scheduling.
16092
+ # automaticRestart = false to include instances only if they are not scheduled
16093
+ # for automatic restarts. You can use filtering on nested fields to filter based
16094
+ # on resource labels.
16095
+ # To filter on multiple expressions, provide each separate expression within
16096
+ # parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = "
16097
+ # Intel Skylake"). By default, each expression is an AND expression. However,
16098
+ # you can include AND and OR expressions explicitly. For example, (cpuPlatform =
16099
+ # "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.
16100
+ # automaticRestart = true).
16101
+ # @param [Fixnum] max_results
16102
+ # The maximum number of results per page that should be returned. If the number
16103
+ # of available results is larger than maxResults, Compute Engine returns a
16104
+ # nextPageToken that can be used to get the next page of results in subsequent
16105
+ # list requests. Acceptable values are 0 to 500, inclusive. (Default: 500)
16106
+ # @param [String] order_by
16107
+ # Sorts list results by a certain order. By default, results are returned in
16108
+ # alphanumerical order based on the resource name.
16109
+ # You can also sort results in descending order based on the creation timestamp
16110
+ # using orderBy="creationTimestamp desc". This sorts results based on the
16111
+ # creationTimestamp field in reverse chronological order (newest result first).
16112
+ # Use this to sort resources like operations so that the newest operation is
16113
+ # returned first.
16114
+ # Currently, only sorting by name or creationTimestamp desc is supported.
16115
+ # @param [String] page_token
16116
+ # Specifies a page token to use. Set pageToken to the nextPageToken returned by
16117
+ # a previous list request to get the next page of results.
16118
+ # @param [String] fields
16119
+ # Selector specifying which fields to include in a partial response.
16120
+ # @param [String] quota_user
16121
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
16122
+ # characters.
16123
+ # @param [String] user_ip
16124
+ # Deprecated. Please use quotaUser instead.
15134
16125
  # @param [Google::Apis::RequestOptions] options
15135
16126
  # Request-specific options
15136
16127
  #
@@ -15434,36 +16425,386 @@ module Google
15434
16425
  # @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
15435
16426
  # @yieldparam err [StandardError] error object if request failed
15436
16427
  #
15437
- # @return [Google::Apis::ComputeBeta::Operation]
16428
+ # @return [Google::Apis::ComputeBeta::Operation]
16429
+ #
16430
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
16431
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
16432
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
16433
+ def set_region_instance_group_manager_instance_template(project, region, instance_group_manager, region_instance_group_managers_set_template_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
16434
+ command = make_simple_command(:post, '{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/setInstanceTemplate', options)
16435
+ command.request_representation = Google::Apis::ComputeBeta::RegionInstanceGroupManagersSetTemplateRequest::Representation
16436
+ command.request_object = region_instance_group_managers_set_template_request_object
16437
+ command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
16438
+ command.response_class = Google::Apis::ComputeBeta::Operation
16439
+ command.params['project'] = project unless project.nil?
16440
+ command.params['region'] = region unless region.nil?
16441
+ command.params['instanceGroupManager'] = instance_group_manager unless instance_group_manager.nil?
16442
+ command.query['requestId'] = request_id unless request_id.nil?
16443
+ command.query['fields'] = fields unless fields.nil?
16444
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
16445
+ command.query['userIp'] = user_ip unless user_ip.nil?
16446
+ execute_or_queue_command(command, &block)
16447
+ end
16448
+
16449
+ # Modifies the target pools to which all new instances in this group are
16450
+ # assigned. Existing instances in the group are not affected.
16451
+ # @param [String] project
16452
+ # Project ID for this request.
16453
+ # @param [String] region
16454
+ # Name of the region scoping this request.
16455
+ # @param [String] instance_group_manager
16456
+ # Name of the managed instance group.
16457
+ # @param [Google::Apis::ComputeBeta::RegionInstanceGroupManagersSetTargetPoolsRequest] region_instance_group_managers_set_target_pools_request_object
16458
+ # @param [String] request_id
16459
+ # An optional request ID to identify requests. Specify a unique request ID so
16460
+ # that if you must retry your request, the server will know to ignore the
16461
+ # request if it has already been completed.
16462
+ # For example, consider a situation where you make an initial request and the
16463
+ # request times out. If you make the request again with the same request ID, the
16464
+ # server can check if original operation with the same request ID was received,
16465
+ # and if so, will ignore the second request. This prevents clients from
16466
+ # accidentally creating duplicate commitments.
16467
+ # The request ID must be a valid UUID with the exception that zero UUID is not
16468
+ # supported (00000000-0000-0000-0000-000000000000).
16469
+ # @param [String] fields
16470
+ # Selector specifying which fields to include in a partial response.
16471
+ # @param [String] quota_user
16472
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
16473
+ # characters.
16474
+ # @param [String] user_ip
16475
+ # Deprecated. Please use quotaUser instead.
16476
+ # @param [Google::Apis::RequestOptions] options
16477
+ # Request-specific options
16478
+ #
16479
+ # @yield [result, err] Result & error if block supplied
16480
+ # @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
16481
+ # @yieldparam err [StandardError] error object if request failed
16482
+ #
16483
+ # @return [Google::Apis::ComputeBeta::Operation]
16484
+ #
16485
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
16486
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
16487
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
16488
+ def set_region_instance_group_manager_target_pools(project, region, instance_group_manager, region_instance_group_managers_set_target_pools_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
16489
+ command = make_simple_command(:post, '{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/setTargetPools', options)
16490
+ command.request_representation = Google::Apis::ComputeBeta::RegionInstanceGroupManagersSetTargetPoolsRequest::Representation
16491
+ command.request_object = region_instance_group_managers_set_target_pools_request_object
16492
+ command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
16493
+ command.response_class = Google::Apis::ComputeBeta::Operation
16494
+ command.params['project'] = project unless project.nil?
16495
+ command.params['region'] = region unless region.nil?
16496
+ command.params['instanceGroupManager'] = instance_group_manager unless instance_group_manager.nil?
16497
+ command.query['requestId'] = request_id unless request_id.nil?
16498
+ command.query['fields'] = fields unless fields.nil?
16499
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
16500
+ command.query['userIp'] = user_ip unless user_ip.nil?
16501
+ execute_or_queue_command(command, &block)
16502
+ end
16503
+
16504
+ # Returns permissions that a caller has on the specified resource.
16505
+ # @param [String] project
16506
+ # Project ID for this request.
16507
+ # @param [String] region
16508
+ # The name of the region for this request.
16509
+ # @param [String] resource
16510
+ # Name of the resource for this request.
16511
+ # @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object
16512
+ # @param [String] fields
16513
+ # Selector specifying which fields to include in a partial response.
16514
+ # @param [String] quota_user
16515
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
16516
+ # characters.
16517
+ # @param [String] user_ip
16518
+ # Deprecated. Please use quotaUser instead.
16519
+ # @param [Google::Apis::RequestOptions] options
16520
+ # Request-specific options
16521
+ #
16522
+ # @yield [result, err] Result & error if block supplied
16523
+ # @yieldparam result [Google::Apis::ComputeBeta::TestPermissionsResponse] parsed result object
16524
+ # @yieldparam err [StandardError] error object if request failed
16525
+ #
16526
+ # @return [Google::Apis::ComputeBeta::TestPermissionsResponse]
16527
+ #
16528
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
16529
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
16530
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
16531
+ def test_region_instance_group_manager_iam_permissions(project, region, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
16532
+ command = make_simple_command(:post, '{project}/regions/{region}/instanceGroupManagers/{resource}/testIamPermissions', options)
16533
+ command.request_representation = Google::Apis::ComputeBeta::TestPermissionsRequest::Representation
16534
+ command.request_object = test_permissions_request_object
16535
+ command.response_representation = Google::Apis::ComputeBeta::TestPermissionsResponse::Representation
16536
+ command.response_class = Google::Apis::ComputeBeta::TestPermissionsResponse
16537
+ command.params['project'] = project unless project.nil?
16538
+ command.params['region'] = region unless region.nil?
16539
+ command.params['resource'] = resource unless resource.nil?
16540
+ command.query['fields'] = fields unless fields.nil?
16541
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
16542
+ command.query['userIp'] = user_ip unless user_ip.nil?
16543
+ execute_or_queue_command(command, &block)
16544
+ end
16545
+
16546
+ # Updates a managed instance group using the information that you specify in the
16547
+ # request. This operation is marked as DONE when the group is updated even if
16548
+ # the instances in the group have not yet been updated. You must separately
16549
+ # verify the status of the individual instances with the listmanagedinstances
16550
+ # method.
16551
+ # @param [String] project
16552
+ # Project ID for this request.
16553
+ # @param [String] region
16554
+ # Name of the region scoping this request.
16555
+ # @param [String] instance_group_manager
16556
+ # The name of the instance group manager.
16557
+ # @param [Google::Apis::ComputeBeta::InstanceGroupManager] instance_group_manager_object
16558
+ # @param [String] request_id
16559
+ # An optional request ID to identify requests. Specify a unique request ID so
16560
+ # that if you must retry your request, the server will know to ignore the
16561
+ # request if it has already been completed.
16562
+ # For example, consider a situation where you make an initial request and the
16563
+ # request times out. If you make the request again with the same request ID, the
16564
+ # server can check if original operation with the same request ID was received,
16565
+ # and if so, will ignore the second request. This prevents clients from
16566
+ # accidentally creating duplicate commitments.
16567
+ # The request ID must be a valid UUID with the exception that zero UUID is not
16568
+ # supported (00000000-0000-0000-0000-000000000000).
16569
+ # @param [String] fields
16570
+ # Selector specifying which fields to include in a partial response.
16571
+ # @param [String] quota_user
16572
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
16573
+ # characters.
16574
+ # @param [String] user_ip
16575
+ # Deprecated. Please use quotaUser instead.
16576
+ # @param [Google::Apis::RequestOptions] options
16577
+ # Request-specific options
16578
+ #
16579
+ # @yield [result, err] Result & error if block supplied
16580
+ # @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
16581
+ # @yieldparam err [StandardError] error object if request failed
16582
+ #
16583
+ # @return [Google::Apis::ComputeBeta::Operation]
16584
+ #
16585
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
16586
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
16587
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
16588
+ def update_region_instance_group_manager(project, region, instance_group_manager, instance_group_manager_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
16589
+ command = make_simple_command(:put, '{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}', options)
16590
+ command.request_representation = Google::Apis::ComputeBeta::InstanceGroupManager::Representation
16591
+ command.request_object = instance_group_manager_object
16592
+ command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
16593
+ command.response_class = Google::Apis::ComputeBeta::Operation
16594
+ command.params['project'] = project unless project.nil?
16595
+ command.params['region'] = region unless region.nil?
16596
+ command.params['instanceGroupManager'] = instance_group_manager unless instance_group_manager.nil?
16597
+ command.query['requestId'] = request_id unless request_id.nil?
16598
+ command.query['fields'] = fields unless fields.nil?
16599
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
16600
+ command.query['userIp'] = user_ip unless user_ip.nil?
16601
+ execute_or_queue_command(command, &block)
16602
+ end
16603
+
16604
+ # Returns the specified instance group resource.
16605
+ # @param [String] project
16606
+ # Project ID for this request.
16607
+ # @param [String] region
16608
+ # Name of the region scoping this request.
16609
+ # @param [String] instance_group
16610
+ # Name of the instance group resource to return.
16611
+ # @param [String] fields
16612
+ # Selector specifying which fields to include in a partial response.
16613
+ # @param [String] quota_user
16614
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
16615
+ # characters.
16616
+ # @param [String] user_ip
16617
+ # Deprecated. Please use quotaUser instead.
16618
+ # @param [Google::Apis::RequestOptions] options
16619
+ # Request-specific options
16620
+ #
16621
+ # @yield [result, err] Result & error if block supplied
16622
+ # @yieldparam result [Google::Apis::ComputeBeta::InstanceGroup] parsed result object
16623
+ # @yieldparam err [StandardError] error object if request failed
16624
+ #
16625
+ # @return [Google::Apis::ComputeBeta::InstanceGroup]
16626
+ #
16627
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
16628
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
16629
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
16630
+ def get_region_instance_group(project, region, instance_group, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
16631
+ command = make_simple_command(:get, '{project}/regions/{region}/instanceGroups/{instanceGroup}', options)
16632
+ command.response_representation = Google::Apis::ComputeBeta::InstanceGroup::Representation
16633
+ command.response_class = Google::Apis::ComputeBeta::InstanceGroup
16634
+ command.params['project'] = project unless project.nil?
16635
+ command.params['region'] = region unless region.nil?
16636
+ command.params['instanceGroup'] = instance_group unless instance_group.nil?
16637
+ command.query['fields'] = fields unless fields.nil?
16638
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
16639
+ command.query['userIp'] = user_ip unless user_ip.nil?
16640
+ execute_or_queue_command(command, &block)
16641
+ end
16642
+
16643
+ # Retrieves the list of instance group resources contained within the specified
16644
+ # region.
16645
+ # @param [String] project
16646
+ # Project ID for this request.
16647
+ # @param [String] region
16648
+ # Name of the region scoping this request.
16649
+ # @param [String] filter
16650
+ # A filter expression that filters resources listed in the response. The
16651
+ # expression must specify the field name, a comparison operator, and the value
16652
+ # that you want to use for filtering. The value must be a string, a number, or a
16653
+ # boolean. The comparison operator must be either =, !=, >, or <.
16654
+ # For example, if you are filtering Compute Engine instances, you can exclude
16655
+ # instances named example-instance by specifying name != example-instance.
16656
+ # You can also filter nested fields. For example, you could specify scheduling.
16657
+ # automaticRestart = false to include instances only if they are not scheduled
16658
+ # for automatic restarts. You can use filtering on nested fields to filter based
16659
+ # on resource labels.
16660
+ # To filter on multiple expressions, provide each separate expression within
16661
+ # parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = "
16662
+ # Intel Skylake"). By default, each expression is an AND expression. However,
16663
+ # you can include AND and OR expressions explicitly. For example, (cpuPlatform =
16664
+ # "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.
16665
+ # automaticRestart = true).
16666
+ # @param [Fixnum] max_results
16667
+ # The maximum number of results per page that should be returned. If the number
16668
+ # of available results is larger than maxResults, Compute Engine returns a
16669
+ # nextPageToken that can be used to get the next page of results in subsequent
16670
+ # list requests. Acceptable values are 0 to 500, inclusive. (Default: 500)
16671
+ # @param [String] order_by
16672
+ # Sorts list results by a certain order. By default, results are returned in
16673
+ # alphanumerical order based on the resource name.
16674
+ # You can also sort results in descending order based on the creation timestamp
16675
+ # using orderBy="creationTimestamp desc". This sorts results based on the
16676
+ # creationTimestamp field in reverse chronological order (newest result first).
16677
+ # Use this to sort resources like operations so that the newest operation is
16678
+ # returned first.
16679
+ # Currently, only sorting by name or creationTimestamp desc is supported.
16680
+ # @param [String] page_token
16681
+ # Specifies a page token to use. Set pageToken to the nextPageToken returned by
16682
+ # a previous list request to get the next page of results.
16683
+ # @param [String] fields
16684
+ # Selector specifying which fields to include in a partial response.
16685
+ # @param [String] quota_user
16686
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
16687
+ # characters.
16688
+ # @param [String] user_ip
16689
+ # Deprecated. Please use quotaUser instead.
16690
+ # @param [Google::Apis::RequestOptions] options
16691
+ # Request-specific options
16692
+ #
16693
+ # @yield [result, err] Result & error if block supplied
16694
+ # @yieldparam result [Google::Apis::ComputeBeta::RegionInstanceGroupList] parsed result object
16695
+ # @yieldparam err [StandardError] error object if request failed
16696
+ #
16697
+ # @return [Google::Apis::ComputeBeta::RegionInstanceGroupList]
16698
+ #
16699
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
16700
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
16701
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
16702
+ def list_region_instance_groups(project, region, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
16703
+ command = make_simple_command(:get, '{project}/regions/{region}/instanceGroups', options)
16704
+ command.response_representation = Google::Apis::ComputeBeta::RegionInstanceGroupList::Representation
16705
+ command.response_class = Google::Apis::ComputeBeta::RegionInstanceGroupList
16706
+ command.params['project'] = project unless project.nil?
16707
+ command.params['region'] = region unless region.nil?
16708
+ command.query['filter'] = filter unless filter.nil?
16709
+ command.query['maxResults'] = max_results unless max_results.nil?
16710
+ command.query['orderBy'] = order_by unless order_by.nil?
16711
+ command.query['pageToken'] = page_token unless page_token.nil?
16712
+ command.query['fields'] = fields unless fields.nil?
16713
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
16714
+ command.query['userIp'] = user_ip unless user_ip.nil?
16715
+ execute_or_queue_command(command, &block)
16716
+ end
16717
+
16718
+ # Lists the instances in the specified instance group and displays information
16719
+ # about the named ports. Depending on the specified options, this method can
16720
+ # list all instances or only the instances that are running.
16721
+ # @param [String] project
16722
+ # Project ID for this request.
16723
+ # @param [String] region
16724
+ # Name of the region scoping this request.
16725
+ # @param [String] instance_group
16726
+ # Name of the regional instance group for which we want to list the instances.
16727
+ # @param [Google::Apis::ComputeBeta::RegionInstanceGroupsListInstancesRequest] region_instance_groups_list_instances_request_object
16728
+ # @param [String] filter
16729
+ # A filter expression that filters resources listed in the response. The
16730
+ # expression must specify the field name, a comparison operator, and the value
16731
+ # that you want to use for filtering. The value must be a string, a number, or a
16732
+ # boolean. The comparison operator must be either =, !=, >, or <.
16733
+ # For example, if you are filtering Compute Engine instances, you can exclude
16734
+ # instances named example-instance by specifying name != example-instance.
16735
+ # You can also filter nested fields. For example, you could specify scheduling.
16736
+ # automaticRestart = false to include instances only if they are not scheduled
16737
+ # for automatic restarts. You can use filtering on nested fields to filter based
16738
+ # on resource labels.
16739
+ # To filter on multiple expressions, provide each separate expression within
16740
+ # parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = "
16741
+ # Intel Skylake"). By default, each expression is an AND expression. However,
16742
+ # you can include AND and OR expressions explicitly. For example, (cpuPlatform =
16743
+ # "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.
16744
+ # automaticRestart = true).
16745
+ # @param [Fixnum] max_results
16746
+ # The maximum number of results per page that should be returned. If the number
16747
+ # of available results is larger than maxResults, Compute Engine returns a
16748
+ # nextPageToken that can be used to get the next page of results in subsequent
16749
+ # list requests. Acceptable values are 0 to 500, inclusive. (Default: 500)
16750
+ # @param [String] order_by
16751
+ # Sorts list results by a certain order. By default, results are returned in
16752
+ # alphanumerical order based on the resource name.
16753
+ # You can also sort results in descending order based on the creation timestamp
16754
+ # using orderBy="creationTimestamp desc". This sorts results based on the
16755
+ # creationTimestamp field in reverse chronological order (newest result first).
16756
+ # Use this to sort resources like operations so that the newest operation is
16757
+ # returned first.
16758
+ # Currently, only sorting by name or creationTimestamp desc is supported.
16759
+ # @param [String] page_token
16760
+ # Specifies a page token to use. Set pageToken to the nextPageToken returned by
16761
+ # a previous list request to get the next page of results.
16762
+ # @param [String] fields
16763
+ # Selector specifying which fields to include in a partial response.
16764
+ # @param [String] quota_user
16765
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
16766
+ # characters.
16767
+ # @param [String] user_ip
16768
+ # Deprecated. Please use quotaUser instead.
16769
+ # @param [Google::Apis::RequestOptions] options
16770
+ # Request-specific options
16771
+ #
16772
+ # @yield [result, err] Result & error if block supplied
16773
+ # @yieldparam result [Google::Apis::ComputeBeta::RegionInstanceGroupsListInstances] parsed result object
16774
+ # @yieldparam err [StandardError] error object if request failed
16775
+ #
16776
+ # @return [Google::Apis::ComputeBeta::RegionInstanceGroupsListInstances]
15438
16777
  #
15439
16778
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
15440
16779
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
15441
16780
  # @raise [Google::Apis::AuthorizationError] Authorization is required
15442
- def set_region_instance_group_manager_instance_template(project, region, instance_group_manager, region_instance_group_managers_set_template_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
15443
- command = make_simple_command(:post, '{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/setInstanceTemplate', options)
15444
- command.request_representation = Google::Apis::ComputeBeta::RegionInstanceGroupManagersSetTemplateRequest::Representation
15445
- command.request_object = region_instance_group_managers_set_template_request_object
15446
- command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
15447
- command.response_class = Google::Apis::ComputeBeta::Operation
16781
+ def list_region_instance_group_instances(project, region, instance_group, region_instance_groups_list_instances_request_object = nil, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
16782
+ command = make_simple_command(:post, '{project}/regions/{region}/instanceGroups/{instanceGroup}/listInstances', options)
16783
+ command.request_representation = Google::Apis::ComputeBeta::RegionInstanceGroupsListInstancesRequest::Representation
16784
+ command.request_object = region_instance_groups_list_instances_request_object
16785
+ command.response_representation = Google::Apis::ComputeBeta::RegionInstanceGroupsListInstances::Representation
16786
+ command.response_class = Google::Apis::ComputeBeta::RegionInstanceGroupsListInstances
15448
16787
  command.params['project'] = project unless project.nil?
15449
16788
  command.params['region'] = region unless region.nil?
15450
- command.params['instanceGroupManager'] = instance_group_manager unless instance_group_manager.nil?
15451
- command.query['requestId'] = request_id unless request_id.nil?
16789
+ command.params['instanceGroup'] = instance_group unless instance_group.nil?
16790
+ command.query['filter'] = filter unless filter.nil?
16791
+ command.query['maxResults'] = max_results unless max_results.nil?
16792
+ command.query['orderBy'] = order_by unless order_by.nil?
16793
+ command.query['pageToken'] = page_token unless page_token.nil?
15452
16794
  command.query['fields'] = fields unless fields.nil?
15453
16795
  command.query['quotaUser'] = quota_user unless quota_user.nil?
15454
16796
  command.query['userIp'] = user_ip unless user_ip.nil?
15455
16797
  execute_or_queue_command(command, &block)
15456
16798
  end
15457
16799
 
15458
- # Modifies the target pools to which all new instances in this group are
15459
- # assigned. Existing instances in the group are not affected.
16800
+ # Sets the named ports for the specified regional instance group.
15460
16801
  # @param [String] project
15461
16802
  # Project ID for this request.
15462
16803
  # @param [String] region
15463
16804
  # Name of the region scoping this request.
15464
- # @param [String] instance_group_manager
15465
- # Name of the managed instance group.
15466
- # @param [Google::Apis::ComputeBeta::RegionInstanceGroupManagersSetTargetPoolsRequest] region_instance_group_managers_set_target_pools_request_object
16805
+ # @param [String] instance_group
16806
+ # The name of the regional instance group where the named ports are updated.
16807
+ # @param [Google::Apis::ComputeBeta::RegionInstanceGroupsSetNamedPortsRequest] region_instance_groups_set_named_ports_request_object
15467
16808
  # @param [String] request_id
15468
16809
  # An optional request ID to identify requests. Specify a unique request ID so
15469
16810
  # that if you must retry your request, the server will know to ignore the
@@ -15494,15 +16835,15 @@ module Google
15494
16835
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
15495
16836
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
15496
16837
  # @raise [Google::Apis::AuthorizationError] Authorization is required
15497
- def set_region_instance_group_manager_target_pools(project, region, instance_group_manager, region_instance_group_managers_set_target_pools_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
15498
- command = make_simple_command(:post, '{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/setTargetPools', options)
15499
- command.request_representation = Google::Apis::ComputeBeta::RegionInstanceGroupManagersSetTargetPoolsRequest::Representation
15500
- command.request_object = region_instance_group_managers_set_target_pools_request_object
16838
+ def set_region_instance_group_named_ports(project, region, instance_group, region_instance_groups_set_named_ports_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
16839
+ command = make_simple_command(:post, '{project}/regions/{region}/instanceGroups/{instanceGroup}/setNamedPorts', options)
16840
+ command.request_representation = Google::Apis::ComputeBeta::RegionInstanceGroupsSetNamedPortsRequest::Representation
16841
+ command.request_object = region_instance_groups_set_named_ports_request_object
15501
16842
  command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
15502
16843
  command.response_class = Google::Apis::ComputeBeta::Operation
15503
16844
  command.params['project'] = project unless project.nil?
15504
16845
  command.params['region'] = region unless region.nil?
15505
- command.params['instanceGroupManager'] = instance_group_manager unless instance_group_manager.nil?
16846
+ command.params['instanceGroup'] = instance_group unless instance_group.nil?
15506
16847
  command.query['requestId'] = request_id unless request_id.nil?
15507
16848
  command.query['fields'] = fields unless fields.nil?
15508
16849
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -15537,8 +16878,8 @@ module Google
15537
16878
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
15538
16879
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
15539
16880
  # @raise [Google::Apis::AuthorizationError] Authorization is required
15540
- def test_region_instance_group_manager_iam_permissions(project, region, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
15541
- command = make_simple_command(:post, '{project}/regions/{region}/instanceGroupManagers/{resource}/testIamPermissions', options)
16881
+ def test_region_instance_group_iam_permissions(project, region, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
16882
+ command = make_simple_command(:post, '{project}/regions/{region}/instanceGroups/{resource}/testIamPermissions', options)
15542
16883
  command.request_representation = Google::Apis::ComputeBeta::TestPermissionsRequest::Representation
15543
16884
  command.request_object = test_permissions_request_object
15544
16885
  command.response_representation = Google::Apis::ComputeBeta::TestPermissionsResponse::Representation
@@ -15552,29 +16893,13 @@ module Google
15552
16893
  execute_or_queue_command(command, &block)
15553
16894
  end
15554
16895
 
15555
- # Updates a managed instance group using the information that you specify in the
15556
- # request. This operation is marked as DONE when the group is updated even if
15557
- # the instances in the group have not yet been updated. You must separately
15558
- # verify the status of the individual instances with the listmanagedinstances
15559
- # method.
16896
+ # Deletes the specified region-specific Operations resource.
15560
16897
  # @param [String] project
15561
16898
  # Project ID for this request.
15562
16899
  # @param [String] region
15563
- # Name of the region scoping this request.
15564
- # @param [String] instance_group_manager
15565
- # The name of the instance group manager.
15566
- # @param [Google::Apis::ComputeBeta::InstanceGroupManager] instance_group_manager_object
15567
- # @param [String] request_id
15568
- # An optional request ID to identify requests. Specify a unique request ID so
15569
- # that if you must retry your request, the server will know to ignore the
15570
- # request if it has already been completed.
15571
- # For example, consider a situation where you make an initial request and the
15572
- # request times out. If you make the request again with the same request ID, the
15573
- # server can check if original operation with the same request ID was received,
15574
- # and if so, will ignore the second request. This prevents clients from
15575
- # accidentally creating duplicate commitments.
15576
- # The request ID must be a valid UUID with the exception that zero UUID is not
15577
- # supported (00000000-0000-0000-0000-000000000000).
16900
+ # Name of the region for this request.
16901
+ # @param [String] operation
16902
+ # Name of the Operations resource to delete.
15578
16903
  # @param [String] fields
15579
16904
  # Selector specifying which fields to include in a partial response.
15580
16905
  # @param [String] quota_user
@@ -15586,37 +16911,32 @@ module Google
15586
16911
  # Request-specific options
15587
16912
  #
15588
16913
  # @yield [result, err] Result & error if block supplied
15589
- # @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
16914
+ # @yieldparam result [NilClass] No result returned for this method
15590
16915
  # @yieldparam err [StandardError] error object if request failed
15591
16916
  #
15592
- # @return [Google::Apis::ComputeBeta::Operation]
16917
+ # @return [void]
15593
16918
  #
15594
16919
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
15595
16920
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
15596
16921
  # @raise [Google::Apis::AuthorizationError] Authorization is required
15597
- def update_region_instance_group_manager(project, region, instance_group_manager, instance_group_manager_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
15598
- command = make_simple_command(:put, '{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}', options)
15599
- command.request_representation = Google::Apis::ComputeBeta::InstanceGroupManager::Representation
15600
- command.request_object = instance_group_manager_object
15601
- command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
15602
- command.response_class = Google::Apis::ComputeBeta::Operation
16922
+ def delete_region_operation(project, region, operation, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
16923
+ command = make_simple_command(:delete, '{project}/regions/{region}/operations/{operation}', options)
15603
16924
  command.params['project'] = project unless project.nil?
15604
16925
  command.params['region'] = region unless region.nil?
15605
- command.params['instanceGroupManager'] = instance_group_manager unless instance_group_manager.nil?
15606
- command.query['requestId'] = request_id unless request_id.nil?
16926
+ command.params['operation'] = operation unless operation.nil?
15607
16927
  command.query['fields'] = fields unless fields.nil?
15608
16928
  command.query['quotaUser'] = quota_user unless quota_user.nil?
15609
16929
  command.query['userIp'] = user_ip unless user_ip.nil?
15610
16930
  execute_or_queue_command(command, &block)
15611
16931
  end
15612
16932
 
15613
- # Returns the specified instance group resource.
16933
+ # Retrieves the specified region-specific Operations resource.
15614
16934
  # @param [String] project
15615
16935
  # Project ID for this request.
15616
16936
  # @param [String] region
15617
- # Name of the region scoping this request.
15618
- # @param [String] instance_group
15619
- # Name of the instance group resource to return.
16937
+ # Name of the region for this request.
16938
+ # @param [String] operation
16939
+ # Name of the Operations resource to return.
15620
16940
  # @param [String] fields
15621
16941
  # Selector specifying which fields to include in a partial response.
15622
16942
  # @param [String] quota_user
@@ -15628,33 +16948,32 @@ module Google
15628
16948
  # Request-specific options
15629
16949
  #
15630
16950
  # @yield [result, err] Result & error if block supplied
15631
- # @yieldparam result [Google::Apis::ComputeBeta::InstanceGroup] parsed result object
16951
+ # @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
15632
16952
  # @yieldparam err [StandardError] error object if request failed
15633
16953
  #
15634
- # @return [Google::Apis::ComputeBeta::InstanceGroup]
16954
+ # @return [Google::Apis::ComputeBeta::Operation]
15635
16955
  #
15636
16956
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
15637
16957
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
15638
16958
  # @raise [Google::Apis::AuthorizationError] Authorization is required
15639
- def get_region_instance_group(project, region, instance_group, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
15640
- command = make_simple_command(:get, '{project}/regions/{region}/instanceGroups/{instanceGroup}', options)
15641
- command.response_representation = Google::Apis::ComputeBeta::InstanceGroup::Representation
15642
- command.response_class = Google::Apis::ComputeBeta::InstanceGroup
16959
+ def get_region_operation(project, region, operation, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
16960
+ command = make_simple_command(:get, '{project}/regions/{region}/operations/{operation}', options)
16961
+ command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
16962
+ command.response_class = Google::Apis::ComputeBeta::Operation
15643
16963
  command.params['project'] = project unless project.nil?
15644
16964
  command.params['region'] = region unless region.nil?
15645
- command.params['instanceGroup'] = instance_group unless instance_group.nil?
16965
+ command.params['operation'] = operation unless operation.nil?
15646
16966
  command.query['fields'] = fields unless fields.nil?
15647
16967
  command.query['quotaUser'] = quota_user unless quota_user.nil?
15648
16968
  command.query['userIp'] = user_ip unless user_ip.nil?
15649
16969
  execute_or_queue_command(command, &block)
15650
16970
  end
15651
16971
 
15652
- # Retrieves the list of instance group resources contained within the specified
15653
- # region.
16972
+ # Retrieves a list of Operation resources contained within the specified region.
15654
16973
  # @param [String] project
15655
16974
  # Project ID for this request.
15656
16975
  # @param [String] region
15657
- # Name of the region scoping this request.
16976
+ # Name of the region for this request.
15658
16977
  # @param [String] filter
15659
16978
  # A filter expression that filters resources listed in the response. The
15660
16979
  # expression must specify the field name, a comparison operator, and the value
@@ -15700,18 +17019,18 @@ module Google
15700
17019
  # Request-specific options
15701
17020
  #
15702
17021
  # @yield [result, err] Result & error if block supplied
15703
- # @yieldparam result [Google::Apis::ComputeBeta::RegionInstanceGroupList] parsed result object
17022
+ # @yieldparam result [Google::Apis::ComputeBeta::OperationList] parsed result object
15704
17023
  # @yieldparam err [StandardError] error object if request failed
15705
17024
  #
15706
- # @return [Google::Apis::ComputeBeta::RegionInstanceGroupList]
17025
+ # @return [Google::Apis::ComputeBeta::OperationList]
15707
17026
  #
15708
17027
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
15709
17028
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
15710
17029
  # @raise [Google::Apis::AuthorizationError] Authorization is required
15711
- def list_region_instance_groups(project, region, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
15712
- command = make_simple_command(:get, '{project}/regions/{region}/instanceGroups', options)
15713
- command.response_representation = Google::Apis::ComputeBeta::RegionInstanceGroupList::Representation
15714
- command.response_class = Google::Apis::ComputeBeta::RegionInstanceGroupList
17030
+ def list_region_operations(project, region, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
17031
+ command = make_simple_command(:get, '{project}/regions/{region}/operations', options)
17032
+ command.response_representation = Google::Apis::ComputeBeta::OperationList::Representation
17033
+ command.response_class = Google::Apis::ComputeBeta::OperationList
15715
17034
  command.params['project'] = project unless project.nil?
15716
17035
  command.params['region'] = region unless region.nil?
15717
17036
  command.query['filter'] = filter unless filter.nil?
@@ -15724,16 +17043,46 @@ module Google
15724
17043
  execute_or_queue_command(command, &block)
15725
17044
  end
15726
17045
 
15727
- # Lists the instances in the specified instance group and displays information
15728
- # about the named ports. Depending on the specified options, this method can
15729
- # list all instances or only the instances that are running.
17046
+ # Returns the specified Region resource. Gets a list of available regions by
17047
+ # making a list() request.
15730
17048
  # @param [String] project
15731
17049
  # Project ID for this request.
15732
17050
  # @param [String] region
15733
- # Name of the region scoping this request.
15734
- # @param [String] instance_group
15735
- # Name of the regional instance group for which we want to list the instances.
15736
- # @param [Google::Apis::ComputeBeta::RegionInstanceGroupsListInstancesRequest] region_instance_groups_list_instances_request_object
17051
+ # Name of the region resource to return.
17052
+ # @param [String] fields
17053
+ # Selector specifying which fields to include in a partial response.
17054
+ # @param [String] quota_user
17055
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
17056
+ # characters.
17057
+ # @param [String] user_ip
17058
+ # Deprecated. Please use quotaUser instead.
17059
+ # @param [Google::Apis::RequestOptions] options
17060
+ # Request-specific options
17061
+ #
17062
+ # @yield [result, err] Result & error if block supplied
17063
+ # @yieldparam result [Google::Apis::ComputeBeta::Region] parsed result object
17064
+ # @yieldparam err [StandardError] error object if request failed
17065
+ #
17066
+ # @return [Google::Apis::ComputeBeta::Region]
17067
+ #
17068
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
17069
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
17070
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
17071
+ def get_region(project, region, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
17072
+ command = make_simple_command(:get, '{project}/regions/{region}', options)
17073
+ command.response_representation = Google::Apis::ComputeBeta::Region::Representation
17074
+ command.response_class = Google::Apis::ComputeBeta::Region
17075
+ command.params['project'] = project unless project.nil?
17076
+ command.params['region'] = region unless region.nil?
17077
+ command.query['fields'] = fields unless fields.nil?
17078
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
17079
+ command.query['userIp'] = user_ip unless user_ip.nil?
17080
+ execute_or_queue_command(command, &block)
17081
+ end
17082
+
17083
+ # Retrieves the list of region resources available to the specified project.
17084
+ # @param [String] project
17085
+ # Project ID for this request.
15737
17086
  # @param [String] filter
15738
17087
  # A filter expression that filters resources listed in the response. The
15739
17088
  # expression must specify the field name, a comparison operator, and the value
@@ -15779,23 +17128,19 @@ module Google
15779
17128
  # Request-specific options
15780
17129
  #
15781
17130
  # @yield [result, err] Result & error if block supplied
15782
- # @yieldparam result [Google::Apis::ComputeBeta::RegionInstanceGroupsListInstances] parsed result object
17131
+ # @yieldparam result [Google::Apis::ComputeBeta::RegionList] parsed result object
15783
17132
  # @yieldparam err [StandardError] error object if request failed
15784
17133
  #
15785
- # @return [Google::Apis::ComputeBeta::RegionInstanceGroupsListInstances]
17134
+ # @return [Google::Apis::ComputeBeta::RegionList]
15786
17135
  #
15787
17136
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
15788
17137
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
15789
17138
  # @raise [Google::Apis::AuthorizationError] Authorization is required
15790
- def list_region_instance_group_instances(project, region, instance_group, region_instance_groups_list_instances_request_object = nil, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
15791
- command = make_simple_command(:post, '{project}/regions/{region}/instanceGroups/{instanceGroup}/listInstances', options)
15792
- command.request_representation = Google::Apis::ComputeBeta::RegionInstanceGroupsListInstancesRequest::Representation
15793
- command.request_object = region_instance_groups_list_instances_request_object
15794
- command.response_representation = Google::Apis::ComputeBeta::RegionInstanceGroupsListInstances::Representation
15795
- command.response_class = Google::Apis::ComputeBeta::RegionInstanceGroupsListInstances
17139
+ def list_regions(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
17140
+ command = make_simple_command(:get, '{project}/regions', options)
17141
+ command.response_representation = Google::Apis::ComputeBeta::RegionList::Representation
17142
+ command.response_class = Google::Apis::ComputeBeta::RegionList
15796
17143
  command.params['project'] = project unless project.nil?
15797
- command.params['region'] = region unless region.nil?
15798
- command.params['instanceGroup'] = instance_group unless instance_group.nil?
15799
17144
  command.query['filter'] = filter unless filter.nil?
15800
17145
  command.query['maxResults'] = max_results unless max_results.nil?
15801
17146
  command.query['orderBy'] = order_by unless order_by.nil?
@@ -15806,25 +17151,43 @@ module Google
15806
17151
  execute_or_queue_command(command, &block)
15807
17152
  end
15808
17153
 
15809
- # Sets the named ports for the specified regional instance group.
17154
+ # Retrieves an aggregated list of resource policies.
15810
17155
  # @param [String] project
15811
17156
  # Project ID for this request.
15812
- # @param [String] region
15813
- # Name of the region scoping this request.
15814
- # @param [String] instance_group
15815
- # The name of the regional instance group where the named ports are updated.
15816
- # @param [Google::Apis::ComputeBeta::RegionInstanceGroupsSetNamedPortsRequest] region_instance_groups_set_named_ports_request_object
15817
- # @param [String] request_id
15818
- # An optional request ID to identify requests. Specify a unique request ID so
15819
- # that if you must retry your request, the server will know to ignore the
15820
- # request if it has already been completed.
15821
- # For example, consider a situation where you make an initial request and the
15822
- # request times out. If you make the request again with the same request ID, the
15823
- # server can check if original operation with the same request ID was received,
15824
- # and if so, will ignore the second request. This prevents clients from
15825
- # accidentally creating duplicate commitments.
15826
- # The request ID must be a valid UUID with the exception that zero UUID is not
15827
- # supported (00000000-0000-0000-0000-000000000000).
17157
+ # @param [String] filter
17158
+ # A filter expression that filters resources listed in the response. The
17159
+ # expression must specify the field name, a comparison operator, and the value
17160
+ # that you want to use for filtering. The value must be a string, a number, or a
17161
+ # boolean. The comparison operator must be either =, !=, >, or <.
17162
+ # For example, if you are filtering Compute Engine instances, you can exclude
17163
+ # instances named example-instance by specifying name != example-instance.
17164
+ # You can also filter nested fields. For example, you could specify scheduling.
17165
+ # automaticRestart = false to include instances only if they are not scheduled
17166
+ # for automatic restarts. You can use filtering on nested fields to filter based
17167
+ # on resource labels.
17168
+ # To filter on multiple expressions, provide each separate expression within
17169
+ # parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = "
17170
+ # Intel Skylake"). By default, each expression is an AND expression. However,
17171
+ # you can include AND and OR expressions explicitly. For example, (cpuPlatform =
17172
+ # "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.
17173
+ # automaticRestart = true).
17174
+ # @param [Fixnum] max_results
17175
+ # The maximum number of results per page that should be returned. If the number
17176
+ # of available results is larger than maxResults, Compute Engine returns a
17177
+ # nextPageToken that can be used to get the next page of results in subsequent
17178
+ # list requests. Acceptable values are 0 to 500, inclusive. (Default: 500)
17179
+ # @param [String] order_by
17180
+ # Sorts list results by a certain order. By default, results are returned in
17181
+ # alphanumerical order based on the resource name.
17182
+ # You can also sort results in descending order based on the creation timestamp
17183
+ # using orderBy="creationTimestamp desc". This sorts results based on the
17184
+ # creationTimestamp field in reverse chronological order (newest result first).
17185
+ # Use this to sort resources like operations so that the newest operation is
17186
+ # returned first.
17187
+ # Currently, only sorting by name or creationTimestamp desc is supported.
17188
+ # @param [String] page_token
17189
+ # Specifies a page token to use. Set pageToken to the nextPageToken returned by
17190
+ # a previous list request to get the next page of results.
15828
17191
  # @param [String] fields
15829
17192
  # Selector specifying which fields to include in a partial response.
15830
17193
  # @param [String] quota_user
@@ -15836,38 +17199,47 @@ module Google
15836
17199
  # Request-specific options
15837
17200
  #
15838
17201
  # @yield [result, err] Result & error if block supplied
15839
- # @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
17202
+ # @yieldparam result [Google::Apis::ComputeBeta::ResourcePolicyAggregatedList] parsed result object
15840
17203
  # @yieldparam err [StandardError] error object if request failed
15841
17204
  #
15842
- # @return [Google::Apis::ComputeBeta::Operation]
17205
+ # @return [Google::Apis::ComputeBeta::ResourcePolicyAggregatedList]
15843
17206
  #
15844
17207
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
15845
17208
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
15846
17209
  # @raise [Google::Apis::AuthorizationError] Authorization is required
15847
- def set_region_instance_group_named_ports(project, region, instance_group, region_instance_groups_set_named_ports_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
15848
- command = make_simple_command(:post, '{project}/regions/{region}/instanceGroups/{instanceGroup}/setNamedPorts', options)
15849
- command.request_representation = Google::Apis::ComputeBeta::RegionInstanceGroupsSetNamedPortsRequest::Representation
15850
- command.request_object = region_instance_groups_set_named_ports_request_object
15851
- command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
15852
- command.response_class = Google::Apis::ComputeBeta::Operation
17210
+ def aggregated_resource_policy_list(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
17211
+ command = make_simple_command(:get, '{project}/aggregated/resourcePolicies', options)
17212
+ command.response_representation = Google::Apis::ComputeBeta::ResourcePolicyAggregatedList::Representation
17213
+ command.response_class = Google::Apis::ComputeBeta::ResourcePolicyAggregatedList
15853
17214
  command.params['project'] = project unless project.nil?
15854
- command.params['region'] = region unless region.nil?
15855
- command.params['instanceGroup'] = instance_group unless instance_group.nil?
15856
- command.query['requestId'] = request_id unless request_id.nil?
17215
+ command.query['filter'] = filter unless filter.nil?
17216
+ command.query['maxResults'] = max_results unless max_results.nil?
17217
+ command.query['orderBy'] = order_by unless order_by.nil?
17218
+ command.query['pageToken'] = page_token unless page_token.nil?
15857
17219
  command.query['fields'] = fields unless fields.nil?
15858
17220
  command.query['quotaUser'] = quota_user unless quota_user.nil?
15859
17221
  command.query['userIp'] = user_ip unless user_ip.nil?
15860
17222
  execute_or_queue_command(command, &block)
15861
17223
  end
15862
17224
 
15863
- # Returns permissions that a caller has on the specified resource.
17225
+ # Deletes the specified resource policy.
15864
17226
  # @param [String] project
15865
17227
  # Project ID for this request.
15866
17228
  # @param [String] region
15867
- # The name of the region for this request.
15868
- # @param [String] resource
15869
- # Name of the resource for this request.
15870
- # @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object
17229
+ # Name of the region for this request.
17230
+ # @param [String] resource_policy
17231
+ # Name of the resource policy to delete.
17232
+ # @param [String] request_id
17233
+ # An optional request ID to identify requests. Specify a unique request ID so
17234
+ # that if you must retry your request, the server will know to ignore the
17235
+ # request if it has already been completed.
17236
+ # For example, consider a situation where you make an initial request and the
17237
+ # request times out. If you make the request again with the same request ID, the
17238
+ # server can check if original operation with the same request ID was received,
17239
+ # and if so, will ignore the second request. This prevents clients from
17240
+ # accidentally creating duplicate commitments.
17241
+ # The request ID must be a valid UUID with the exception that zero UUID is not
17242
+ # supported (00000000-0000-0000-0000-000000000000).
15871
17243
  # @param [String] fields
15872
17244
  # Selector specifying which fields to include in a partial response.
15873
17245
  # @param [String] quota_user
@@ -15879,36 +17251,35 @@ module Google
15879
17251
  # Request-specific options
15880
17252
  #
15881
17253
  # @yield [result, err] Result & error if block supplied
15882
- # @yieldparam result [Google::Apis::ComputeBeta::TestPermissionsResponse] parsed result object
17254
+ # @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
15883
17255
  # @yieldparam err [StandardError] error object if request failed
15884
17256
  #
15885
- # @return [Google::Apis::ComputeBeta::TestPermissionsResponse]
17257
+ # @return [Google::Apis::ComputeBeta::Operation]
15886
17258
  #
15887
17259
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
15888
17260
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
15889
17261
  # @raise [Google::Apis::AuthorizationError] Authorization is required
15890
- def test_region_instance_group_iam_permissions(project, region, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
15891
- command = make_simple_command(:post, '{project}/regions/{region}/instanceGroups/{resource}/testIamPermissions', options)
15892
- command.request_representation = Google::Apis::ComputeBeta::TestPermissionsRequest::Representation
15893
- command.request_object = test_permissions_request_object
15894
- command.response_representation = Google::Apis::ComputeBeta::TestPermissionsResponse::Representation
15895
- command.response_class = Google::Apis::ComputeBeta::TestPermissionsResponse
17262
+ def delete_resource_policy(project, region, resource_policy, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
17263
+ command = make_simple_command(:delete, '{project}/regions/{region}/resourcePolicies/{resourcePolicy}', options)
17264
+ command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
17265
+ command.response_class = Google::Apis::ComputeBeta::Operation
15896
17266
  command.params['project'] = project unless project.nil?
15897
17267
  command.params['region'] = region unless region.nil?
15898
- command.params['resource'] = resource unless resource.nil?
17268
+ command.params['resourcePolicy'] = resource_policy unless resource_policy.nil?
17269
+ command.query['requestId'] = request_id unless request_id.nil?
15899
17270
  command.query['fields'] = fields unless fields.nil?
15900
17271
  command.query['quotaUser'] = quota_user unless quota_user.nil?
15901
17272
  command.query['userIp'] = user_ip unless user_ip.nil?
15902
17273
  execute_or_queue_command(command, &block)
15903
17274
  end
15904
17275
 
15905
- # Deletes the specified region-specific Operations resource.
17276
+ # Retrieves all information of the specified resource policy.
15906
17277
  # @param [String] project
15907
17278
  # Project ID for this request.
15908
17279
  # @param [String] region
15909
17280
  # Name of the region for this request.
15910
- # @param [String] operation
15911
- # Name of the Operations resource to delete.
17281
+ # @param [String] resource_policy
17282
+ # Name of the resource policy to retrieve.
15912
17283
  # @param [String] fields
15913
17284
  # Selector specifying which fields to include in a partial response.
15914
17285
  # @param [String] quota_user
@@ -15920,32 +17291,44 @@ module Google
15920
17291
  # Request-specific options
15921
17292
  #
15922
17293
  # @yield [result, err] Result & error if block supplied
15923
- # @yieldparam result [NilClass] No result returned for this method
17294
+ # @yieldparam result [Google::Apis::ComputeBeta::ResourcePolicy] parsed result object
15924
17295
  # @yieldparam err [StandardError] error object if request failed
15925
17296
  #
15926
- # @return [void]
17297
+ # @return [Google::Apis::ComputeBeta::ResourcePolicy]
15927
17298
  #
15928
17299
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
15929
17300
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
15930
17301
  # @raise [Google::Apis::AuthorizationError] Authorization is required
15931
- def delete_region_operation(project, region, operation, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
15932
- command = make_simple_command(:delete, '{project}/regions/{region}/operations/{operation}', options)
17302
+ def get_resource_policy(project, region, resource_policy, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
17303
+ command = make_simple_command(:get, '{project}/regions/{region}/resourcePolicies/{resourcePolicy}', options)
17304
+ command.response_representation = Google::Apis::ComputeBeta::ResourcePolicy::Representation
17305
+ command.response_class = Google::Apis::ComputeBeta::ResourcePolicy
15933
17306
  command.params['project'] = project unless project.nil?
15934
17307
  command.params['region'] = region unless region.nil?
15935
- command.params['operation'] = operation unless operation.nil?
17308
+ command.params['resourcePolicy'] = resource_policy unless resource_policy.nil?
15936
17309
  command.query['fields'] = fields unless fields.nil?
15937
17310
  command.query['quotaUser'] = quota_user unless quota_user.nil?
15938
17311
  command.query['userIp'] = user_ip unless user_ip.nil?
15939
17312
  execute_or_queue_command(command, &block)
15940
17313
  end
15941
17314
 
15942
- # Retrieves the specified region-specific Operations resource.
17315
+ # Creates a new resource policy.
15943
17316
  # @param [String] project
15944
17317
  # Project ID for this request.
15945
17318
  # @param [String] region
15946
17319
  # Name of the region for this request.
15947
- # @param [String] operation
15948
- # Name of the Operations resource to return.
17320
+ # @param [Google::Apis::ComputeBeta::ResourcePolicy] resource_policy_object
17321
+ # @param [String] request_id
17322
+ # An optional request ID to identify requests. Specify a unique request ID so
17323
+ # that if you must retry your request, the server will know to ignore the
17324
+ # request if it has already been completed.
17325
+ # For example, consider a situation where you make an initial request and the
17326
+ # request times out. If you make the request again with the same request ID, the
17327
+ # server can check if original operation with the same request ID was received,
17328
+ # and if so, will ignore the second request. This prevents clients from
17329
+ # accidentally creating duplicate commitments.
17330
+ # The request ID must be a valid UUID with the exception that zero UUID is not
17331
+ # supported (00000000-0000-0000-0000-000000000000).
15949
17332
  # @param [String] fields
15950
17333
  # Selector specifying which fields to include in a partial response.
15951
17334
  # @param [String] quota_user
@@ -15965,20 +17348,23 @@ module Google
15965
17348
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
15966
17349
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
15967
17350
  # @raise [Google::Apis::AuthorizationError] Authorization is required
15968
- def get_region_operation(project, region, operation, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
15969
- command = make_simple_command(:get, '{project}/regions/{region}/operations/{operation}', options)
17351
+ def insert_resource_policy(project, region, resource_policy_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
17352
+ command = make_simple_command(:post, '{project}/regions/{region}/resourcePolicies', options)
17353
+ command.request_representation = Google::Apis::ComputeBeta::ResourcePolicy::Representation
17354
+ command.request_object = resource_policy_object
15970
17355
  command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
15971
17356
  command.response_class = Google::Apis::ComputeBeta::Operation
15972
17357
  command.params['project'] = project unless project.nil?
15973
17358
  command.params['region'] = region unless region.nil?
15974
- command.params['operation'] = operation unless operation.nil?
17359
+ command.query['requestId'] = request_id unless request_id.nil?
15975
17360
  command.query['fields'] = fields unless fields.nil?
15976
17361
  command.query['quotaUser'] = quota_user unless quota_user.nil?
15977
17362
  command.query['userIp'] = user_ip unless user_ip.nil?
15978
17363
  execute_or_queue_command(command, &block)
15979
17364
  end
15980
17365
 
15981
- # Retrieves a list of Operation resources contained within the specified region.
17366
+ # A list all the resource policies that have been configured for the specified
17367
+ # project in specified region.
15982
17368
  # @param [String] project
15983
17369
  # Project ID for this request.
15984
17370
  # @param [String] region
@@ -16028,18 +17414,18 @@ module Google
16028
17414
  # Request-specific options
16029
17415
  #
16030
17416
  # @yield [result, err] Result & error if block supplied
16031
- # @yieldparam result [Google::Apis::ComputeBeta::OperationList] parsed result object
17417
+ # @yieldparam result [Google::Apis::ComputeBeta::ResourcePoliciesList] parsed result object
16032
17418
  # @yieldparam err [StandardError] error object if request failed
16033
17419
  #
16034
- # @return [Google::Apis::ComputeBeta::OperationList]
17420
+ # @return [Google::Apis::ComputeBeta::ResourcePoliciesList]
16035
17421
  #
16036
17422
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
16037
17423
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
16038
17424
  # @raise [Google::Apis::AuthorizationError] Authorization is required
16039
- def list_region_operations(project, region, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
16040
- command = make_simple_command(:get, '{project}/regions/{region}/operations', options)
16041
- command.response_representation = Google::Apis::ComputeBeta::OperationList::Representation
16042
- command.response_class = Google::Apis::ComputeBeta::OperationList
17425
+ def list_resource_policies(project, region, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
17426
+ command = make_simple_command(:get, '{project}/regions/{region}/resourcePolicies', options)
17427
+ command.response_representation = Google::Apis::ComputeBeta::ResourcePoliciesList::Representation
17428
+ command.response_class = Google::Apis::ComputeBeta::ResourcePoliciesList
16043
17429
  command.params['project'] = project unless project.nil?
16044
17430
  command.params['region'] = region unless region.nil?
16045
17431
  command.query['filter'] = filter unless filter.nil?
@@ -16052,12 +17438,14 @@ module Google
16052
17438
  execute_or_queue_command(command, &block)
16053
17439
  end
16054
17440
 
16055
- # Returns the specified Region resource. Gets a list of available regions by
16056
- # making a list() request.
17441
+ # Returns permissions that a caller has on the specified resource.
16057
17442
  # @param [String] project
16058
17443
  # Project ID for this request.
16059
17444
  # @param [String] region
16060
- # Name of the region resource to return.
17445
+ # The name of the region for this request.
17446
+ # @param [String] resource
17447
+ # Name of the resource for this request.
17448
+ # @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object
16061
17449
  # @param [String] fields
16062
17450
  # Selector specifying which fields to include in a partial response.
16063
17451
  # @param [String] quota_user
@@ -16069,91 +17457,23 @@ module Google
16069
17457
  # Request-specific options
16070
17458
  #
16071
17459
  # @yield [result, err] Result & error if block supplied
16072
- # @yieldparam result [Google::Apis::ComputeBeta::Region] parsed result object
17460
+ # @yieldparam result [Google::Apis::ComputeBeta::TestPermissionsResponse] parsed result object
16073
17461
  # @yieldparam err [StandardError] error object if request failed
16074
17462
  #
16075
- # @return [Google::Apis::ComputeBeta::Region]
17463
+ # @return [Google::Apis::ComputeBeta::TestPermissionsResponse]
16076
17464
  #
16077
17465
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
16078
17466
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
16079
17467
  # @raise [Google::Apis::AuthorizationError] Authorization is required
16080
- def get_region(project, region, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
16081
- command = make_simple_command(:get, '{project}/regions/{region}', options)
16082
- command.response_representation = Google::Apis::ComputeBeta::Region::Representation
16083
- command.response_class = Google::Apis::ComputeBeta::Region
17468
+ def test_resource_policy_iam_permissions(project, region, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
17469
+ command = make_simple_command(:post, '{project}/regions/{region}/resourcePolicies/{resource}/testIamPermissions', options)
17470
+ command.request_representation = Google::Apis::ComputeBeta::TestPermissionsRequest::Representation
17471
+ command.request_object = test_permissions_request_object
17472
+ command.response_representation = Google::Apis::ComputeBeta::TestPermissionsResponse::Representation
17473
+ command.response_class = Google::Apis::ComputeBeta::TestPermissionsResponse
16084
17474
  command.params['project'] = project unless project.nil?
16085
17475
  command.params['region'] = region unless region.nil?
16086
- command.query['fields'] = fields unless fields.nil?
16087
- command.query['quotaUser'] = quota_user unless quota_user.nil?
16088
- command.query['userIp'] = user_ip unless user_ip.nil?
16089
- execute_or_queue_command(command, &block)
16090
- end
16091
-
16092
- # Retrieves the list of region resources available to the specified project.
16093
- # @param [String] project
16094
- # Project ID for this request.
16095
- # @param [String] filter
16096
- # A filter expression that filters resources listed in the response. The
16097
- # expression must specify the field name, a comparison operator, and the value
16098
- # that you want to use for filtering. The value must be a string, a number, or a
16099
- # boolean. The comparison operator must be either =, !=, >, or <.
16100
- # For example, if you are filtering Compute Engine instances, you can exclude
16101
- # instances named example-instance by specifying name != example-instance.
16102
- # You can also filter nested fields. For example, you could specify scheduling.
16103
- # automaticRestart = false to include instances only if they are not scheduled
16104
- # for automatic restarts. You can use filtering on nested fields to filter based
16105
- # on resource labels.
16106
- # To filter on multiple expressions, provide each separate expression within
16107
- # parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = "
16108
- # Intel Skylake"). By default, each expression is an AND expression. However,
16109
- # you can include AND and OR expressions explicitly. For example, (cpuPlatform =
16110
- # "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.
16111
- # automaticRestart = true).
16112
- # @param [Fixnum] max_results
16113
- # The maximum number of results per page that should be returned. If the number
16114
- # of available results is larger than maxResults, Compute Engine returns a
16115
- # nextPageToken that can be used to get the next page of results in subsequent
16116
- # list requests. Acceptable values are 0 to 500, inclusive. (Default: 500)
16117
- # @param [String] order_by
16118
- # Sorts list results by a certain order. By default, results are returned in
16119
- # alphanumerical order based on the resource name.
16120
- # You can also sort results in descending order based on the creation timestamp
16121
- # using orderBy="creationTimestamp desc". This sorts results based on the
16122
- # creationTimestamp field in reverse chronological order (newest result first).
16123
- # Use this to sort resources like operations so that the newest operation is
16124
- # returned first.
16125
- # Currently, only sorting by name or creationTimestamp desc is supported.
16126
- # @param [String] page_token
16127
- # Specifies a page token to use. Set pageToken to the nextPageToken returned by
16128
- # a previous list request to get the next page of results.
16129
- # @param [String] fields
16130
- # Selector specifying which fields to include in a partial response.
16131
- # @param [String] quota_user
16132
- # An opaque string that represents a user for quota purposes. Must not exceed 40
16133
- # characters.
16134
- # @param [String] user_ip
16135
- # Deprecated. Please use quotaUser instead.
16136
- # @param [Google::Apis::RequestOptions] options
16137
- # Request-specific options
16138
- #
16139
- # @yield [result, err] Result & error if block supplied
16140
- # @yieldparam result [Google::Apis::ComputeBeta::RegionList] parsed result object
16141
- # @yieldparam err [StandardError] error object if request failed
16142
- #
16143
- # @return [Google::Apis::ComputeBeta::RegionList]
16144
- #
16145
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
16146
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
16147
- # @raise [Google::Apis::AuthorizationError] Authorization is required
16148
- def list_regions(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
16149
- command = make_simple_command(:get, '{project}/regions', options)
16150
- command.response_representation = Google::Apis::ComputeBeta::RegionList::Representation
16151
- command.response_class = Google::Apis::ComputeBeta::RegionList
16152
- command.params['project'] = project unless project.nil?
16153
- command.query['filter'] = filter unless filter.nil?
16154
- command.query['maxResults'] = max_results unless max_results.nil?
16155
- command.query['orderBy'] = order_by unless order_by.nil?
16156
- command.query['pageToken'] = page_token unless page_token.nil?
17476
+ command.params['resource'] = resource unless resource.nil?
16157
17477
  command.query['fields'] = fields unless fields.nil?
16158
17478
  command.query['quotaUser'] = quota_user unless quota_user.nil?
16159
17479
  command.query['userIp'] = user_ip unless user_ip.nil?
@@ -17412,6 +18732,46 @@ module Google
17412
18732
  execute_or_queue_command(command, &block)
17413
18733
  end
17414
18734
 
18735
+ # Sets the labels on a security policy. To learn more about labels, read the
18736
+ # Labeling Resources documentation.
18737
+ # @param [String] project
18738
+ # Project ID for this request.
18739
+ # @param [String] resource
18740
+ # Name of the resource for this request.
18741
+ # @param [Google::Apis::ComputeBeta::GlobalSetLabelsRequest] global_set_labels_request_object
18742
+ # @param [String] fields
18743
+ # Selector specifying which fields to include in a partial response.
18744
+ # @param [String] quota_user
18745
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
18746
+ # characters.
18747
+ # @param [String] user_ip
18748
+ # Deprecated. Please use quotaUser instead.
18749
+ # @param [Google::Apis::RequestOptions] options
18750
+ # Request-specific options
18751
+ #
18752
+ # @yield [result, err] Result & error if block supplied
18753
+ # @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
18754
+ # @yieldparam err [StandardError] error object if request failed
18755
+ #
18756
+ # @return [Google::Apis::ComputeBeta::Operation]
18757
+ #
18758
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
18759
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
18760
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
18761
+ def set_security_policy_labels(project, resource, global_set_labels_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
18762
+ command = make_simple_command(:post, '{project}/global/securityPolicies/{resource}/setLabels', options)
18763
+ command.request_representation = Google::Apis::ComputeBeta::GlobalSetLabelsRequest::Representation
18764
+ command.request_object = global_set_labels_request_object
18765
+ command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
18766
+ command.response_class = Google::Apis::ComputeBeta::Operation
18767
+ command.params['project'] = project unless project.nil?
18768
+ command.params['resource'] = resource unless resource.nil?
18769
+ command.query['fields'] = fields unless fields.nil?
18770
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
18771
+ command.query['userIp'] = user_ip unless user_ip.nil?
18772
+ execute_or_queue_command(command, &block)
18773
+ end
18774
+
17415
18775
  # Returns permissions that a caller has on the specified resource.
17416
18776
  # @param [String] project
17417
18777
  # Project ID for this request.
@@ -17540,6 +18900,43 @@ module Google
17540
18900
  execute_or_queue_command(command, &block)
17541
18901
  end
17542
18902
 
18903
+ # Gets the access control policy for a resource. May be empty if no such policy
18904
+ # or resource exists.
18905
+ # @param [String] project
18906
+ # Project ID for this request.
18907
+ # @param [String] resource
18908
+ # Name of the resource for this request.
18909
+ # @param [String] fields
18910
+ # Selector specifying which fields to include in a partial response.
18911
+ # @param [String] quota_user
18912
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
18913
+ # characters.
18914
+ # @param [String] user_ip
18915
+ # Deprecated. Please use quotaUser instead.
18916
+ # @param [Google::Apis::RequestOptions] options
18917
+ # Request-specific options
18918
+ #
18919
+ # @yield [result, err] Result & error if block supplied
18920
+ # @yieldparam result [Google::Apis::ComputeBeta::Policy] parsed result object
18921
+ # @yieldparam err [StandardError] error object if request failed
18922
+ #
18923
+ # @return [Google::Apis::ComputeBeta::Policy]
18924
+ #
18925
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
18926
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
18927
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
18928
+ def get_snapshot_iam_policy(project, resource, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
18929
+ command = make_simple_command(:get, '{project}/global/snapshots/{resource}/getIamPolicy', options)
18930
+ command.response_representation = Google::Apis::ComputeBeta::Policy::Representation
18931
+ command.response_class = Google::Apis::ComputeBeta::Policy
18932
+ command.params['project'] = project unless project.nil?
18933
+ command.params['resource'] = resource unless resource.nil?
18934
+ command.query['fields'] = fields unless fields.nil?
18935
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
18936
+ command.query['userIp'] = user_ip unless user_ip.nil?
18937
+ execute_or_queue_command(command, &block)
18938
+ end
18939
+
17543
18940
  # Retrieves the list of Snapshot resources contained within the specified
17544
18941
  # project.
17545
18942
  # @param [String] project
@@ -17612,6 +19009,46 @@ module Google
17612
19009
  execute_or_queue_command(command, &block)
17613
19010
  end
17614
19011
 
19012
+ # Sets the access control policy on the specified resource. Replaces any
19013
+ # existing policy.
19014
+ # @param [String] project
19015
+ # Project ID for this request.
19016
+ # @param [String] resource
19017
+ # Name of the resource for this request.
19018
+ # @param [Google::Apis::ComputeBeta::GlobalSetPolicyRequest] global_set_policy_request_object
19019
+ # @param [String] fields
19020
+ # Selector specifying which fields to include in a partial response.
19021
+ # @param [String] quota_user
19022
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
19023
+ # characters.
19024
+ # @param [String] user_ip
19025
+ # Deprecated. Please use quotaUser instead.
19026
+ # @param [Google::Apis::RequestOptions] options
19027
+ # Request-specific options
19028
+ #
19029
+ # @yield [result, err] Result & error if block supplied
19030
+ # @yieldparam result [Google::Apis::ComputeBeta::Policy] parsed result object
19031
+ # @yieldparam err [StandardError] error object if request failed
19032
+ #
19033
+ # @return [Google::Apis::ComputeBeta::Policy]
19034
+ #
19035
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
19036
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
19037
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
19038
+ def set_snapshot_iam_policy(project, resource, global_set_policy_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
19039
+ command = make_simple_command(:post, '{project}/global/snapshots/{resource}/setIamPolicy', options)
19040
+ command.request_representation = Google::Apis::ComputeBeta::GlobalSetPolicyRequest::Representation
19041
+ command.request_object = global_set_policy_request_object
19042
+ command.response_representation = Google::Apis::ComputeBeta::Policy::Representation
19043
+ command.response_class = Google::Apis::ComputeBeta::Policy
19044
+ command.params['project'] = project unless project.nil?
19045
+ command.params['resource'] = resource unless resource.nil?
19046
+ command.query['fields'] = fields unless fields.nil?
19047
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
19048
+ command.query['userIp'] = user_ip unless user_ip.nil?
19049
+ execute_or_queue_command(command, &block)
19050
+ end
19051
+
17615
19052
  # Sets the labels on a snapshot. To learn more about labels, read the Labeling
17616
19053
  # Resources documentation.
17617
19054
  # @param [String] project