google-api-client 0.44.2 → 0.46.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (502) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/autoapprove.yml +49 -0
  3. data/.gitignore +2 -0
  4. data/CHANGELOG.md +295 -0
  5. data/api_list_config.yaml +8 -0
  6. data/bin/generate-api +77 -15
  7. data/generated/google/apis/acceleratedmobilepageurl_v1.rb +1 -1
  8. data/generated/google/apis/acceleratedmobilepageurl_v1/classes.rb +7 -9
  9. data/generated/google/apis/acceleratedmobilepageurl_v1/service.rb +2 -2
  10. data/generated/google/apis/accessapproval_v1.rb +1 -1
  11. data/generated/google/apis/accessapproval_v1/classes.rb +25 -16
  12. data/generated/google/apis/accessapproval_v1/service.rb +27 -27
  13. data/generated/google/apis/accesscontextmanager_v1.rb +1 -1
  14. data/generated/google/apis/accesscontextmanager_v1/classes.rb +68 -0
  15. data/generated/google/apis/accesscontextmanager_v1/representations.rb +30 -0
  16. data/generated/google/apis/accesscontextmanager_v1/service.rb +180 -0
  17. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  18. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +30 -30
  19. data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
  20. data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +25 -0
  21. data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +15 -0
  22. data/generated/google/apis/admin_directory_v1.rb +1 -1
  23. data/generated/google/apis/admin_directory_v1/classes.rb +135 -0
  24. data/generated/google/apis/admin_directory_v1/representations.rb +62 -0
  25. data/generated/google/apis/admin_directory_v1/service.rb +72 -0
  26. data/generated/google/apis/admin_reports_v1.rb +1 -1
  27. data/generated/google/apis/admob_v1.rb +6 -2
  28. data/generated/google/apis/admob_v1/classes.rb +31 -31
  29. data/generated/google/apis/admob_v1/service.rb +2 -1
  30. data/generated/google/apis/adsense_v1_4.rb +1 -1
  31. data/generated/google/apis/adsense_v1_4/service.rb +4 -1
  32. data/generated/google/apis/analyticsadmin_v1alpha.rb +43 -0
  33. data/generated/google/apis/analyticsadmin_v1alpha/classes.rb +1361 -0
  34. data/generated/google/apis/analyticsadmin_v1alpha/representations.rb +610 -0
  35. data/generated/google/apis/analyticsadmin_v1alpha/service.rb +2134 -0
  36. data/generated/google/apis/analyticsdata_v1alpha.rb +1 -1
  37. data/generated/google/apis/analyticsdata_v1alpha/classes.rb +32 -1
  38. data/generated/google/apis/analyticsdata_v1alpha/representations.rb +17 -0
  39. data/generated/google/apis/analyticsdata_v1alpha/service.rb +39 -0
  40. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  41. data/generated/google/apis/androidenterprise_v1/service.rb +2 -2
  42. data/generated/google/apis/androidmanagement_v1.rb +1 -1
  43. data/generated/google/apis/androidpublisher_v3.rb +1 -1
  44. data/generated/google/apis/androidpublisher_v3/classes.rb +7 -0
  45. data/generated/google/apis/androidpublisher_v3/representations.rb +1 -0
  46. data/generated/google/apis/apigee_v1.rb +1 -1
  47. data/generated/google/apis/apigee_v1/classes.rb +442 -14
  48. data/generated/google/apis/apigee_v1/representations.rb +161 -1
  49. data/generated/google/apis/apigee_v1/service.rb +264 -44
  50. data/generated/google/apis/appengine_v1.rb +1 -1
  51. data/generated/google/apis/appengine_v1beta.rb +1 -1
  52. data/generated/google/apis/appsmarket_v2.rb +1 -1
  53. data/generated/google/apis/artifactregistry_v1beta1.rb +1 -1
  54. data/generated/google/apis/artifactregistry_v1beta1/classes.rb +14 -0
  55. data/generated/google/apis/artifactregistry_v1beta1/representations.rb +2 -0
  56. data/generated/google/apis/{apigateway_v1alpha1.rb → assuredworkloads_v1beta1.rb} +8 -8
  57. data/generated/google/apis/assuredworkloads_v1beta1/classes.rb +722 -0
  58. data/generated/google/apis/assuredworkloads_v1beta1/representations.rb +359 -0
  59. data/generated/google/apis/assuredworkloads_v1beta1/service.rb +328 -0
  60. data/generated/google/apis/bigquery_v2.rb +1 -1
  61. data/generated/google/apis/bigquery_v2/classes.rb +140 -23
  62. data/generated/google/apis/bigquery_v2/representations.rb +36 -0
  63. data/generated/google/apis/bigquery_v2/service.rb +46 -0
  64. data/generated/google/apis/billingbudgets_v1.rb +38 -0
  65. data/generated/google/apis/billingbudgets_v1/classes.rb +362 -0
  66. data/generated/google/apis/billingbudgets_v1/representations.rb +170 -0
  67. data/generated/google/apis/billingbudgets_v1/service.rb +249 -0
  68. data/generated/google/apis/billingbudgets_v1beta1.rb +1 -1
  69. data/generated/google/apis/billingbudgets_v1beta1/classes.rb +16 -6
  70. data/generated/google/apis/billingbudgets_v1beta1/representations.rb +1 -0
  71. data/generated/google/apis/binaryauthorization_v1.rb +1 -1
  72. data/generated/google/apis/binaryauthorization_v1/classes.rb +187 -0
  73. data/generated/google/apis/binaryauthorization_v1/representations.rb +74 -0
  74. data/generated/google/apis/binaryauthorization_v1/service.rb +35 -0
  75. data/generated/google/apis/binaryauthorization_v1beta1.rb +1 -1
  76. data/generated/google/apis/binaryauthorization_v1beta1/classes.rb +187 -0
  77. data/generated/google/apis/binaryauthorization_v1beta1/representations.rb +74 -0
  78. data/generated/google/apis/binaryauthorization_v1beta1/service.rb +35 -0
  79. data/generated/google/apis/books_v1.rb +1 -1
  80. data/generated/google/apis/books_v1/service.rb +2 -2
  81. data/generated/google/apis/calendar_v3.rb +1 -1
  82. data/generated/google/apis/calendar_v3/classes.rb +2 -1
  83. data/generated/google/apis/chat_v1.rb +1 -1
  84. data/generated/google/apis/chat_v1/classes.rb +79 -5
  85. data/generated/google/apis/chat_v1/representations.rb +35 -0
  86. data/generated/google/apis/civicinfo_v2.rb +1 -1
  87. data/generated/google/apis/civicinfo_v2/classes.rb +0 -24
  88. data/generated/google/apis/civicinfo_v2/representations.rb +0 -3
  89. data/generated/google/apis/classroom_v1.rb +7 -1
  90. data/generated/google/apis/classroom_v1/classes.rb +153 -21
  91. data/generated/google/apis/classroom_v1/representations.rb +43 -0
  92. data/generated/google/apis/classroom_v1/service.rb +240 -0
  93. data/generated/google/apis/cloudasset_v1.rb +1 -1
  94. data/generated/google/apis/cloudasset_v1/classes.rb +52 -0
  95. data/generated/google/apis/cloudasset_v1/representations.rb +16 -0
  96. data/generated/google/apis/cloudasset_v1p4beta1.rb +1 -1
  97. data/generated/google/apis/cloudasset_v1p4beta1/classes.rb +7 -5
  98. data/generated/google/apis/cloudbilling_v1.rb +1 -1
  99. data/generated/google/apis/cloudbilling_v1/classes.rb +4 -4
  100. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  101. data/generated/google/apis/cloudbuild_v1/classes.rb +0 -34
  102. data/generated/google/apis/cloudbuild_v1/representations.rb +0 -15
  103. data/generated/google/apis/cloudbuild_v1/service.rb +7 -4
  104. data/generated/google/apis/cloudfunctions_v1.rb +1 -1
  105. data/generated/google/apis/cloudfunctions_v1/classes.rb +12 -1
  106. data/generated/google/apis/cloudfunctions_v1/representations.rb +1 -0
  107. data/generated/google/apis/cloudidentity_v1.rb +1 -1
  108. data/generated/google/apis/cloudidentity_v1/classes.rb +127 -63
  109. data/generated/google/apis/cloudidentity_v1/representations.rb +29 -0
  110. data/generated/google/apis/cloudidentity_v1/service.rb +124 -70
  111. data/generated/google/apis/cloudidentity_v1beta1.rb +1 -1
  112. data/generated/google/apis/cloudidentity_v1beta1/classes.rb +188 -0
  113. data/generated/google/apis/cloudidentity_v1beta1/representations.rb +94 -0
  114. data/generated/google/apis/cloudidentity_v1beta1/service.rb +179 -0
  115. data/generated/google/apis/cloudkms_v1.rb +1 -1
  116. data/generated/google/apis/cloudkms_v1/classes.rb +7 -0
  117. data/generated/google/apis/cloudkms_v1/representations.rb +1 -0
  118. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  119. data/generated/google/apis/cloudresourcemanager_v1/service.rb +2 -2
  120. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
  121. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +2 -2
  122. data/generated/google/apis/cloudsearch_v1.rb +1 -1
  123. data/generated/google/apis/cloudsearch_v1/classes.rb +2 -1
  124. data/generated/google/apis/cloudshell_v1.rb +1 -1
  125. data/generated/google/apis/cloudshell_v1/classes.rb +342 -0
  126. data/generated/google/apis/cloudshell_v1/representations.rb +200 -0
  127. data/generated/google/apis/cloudshell_v1/service.rb +177 -0
  128. data/generated/google/apis/cloudtasks_v2.rb +1 -1
  129. data/generated/google/apis/cloudtasks_v2/classes.rb +7 -0
  130. data/generated/google/apis/cloudtasks_v2/representations.rb +1 -0
  131. data/generated/google/apis/cloudtasks_v2beta2.rb +1 -1
  132. data/generated/google/apis/cloudtasks_v2beta2/classes.rb +25 -19
  133. data/generated/google/apis/cloudtasks_v2beta2/representations.rb +1 -0
  134. data/generated/google/apis/cloudtasks_v2beta3.rb +1 -1
  135. data/generated/google/apis/cloudtasks_v2beta3/classes.rb +7 -0
  136. data/generated/google/apis/cloudtasks_v2beta3/representations.rb +1 -0
  137. data/generated/google/apis/composer_v1.rb +1 -1
  138. data/generated/google/apis/composer_v1/classes.rb +2 -3
  139. data/generated/google/apis/composer_v1beta1.rb +1 -1
  140. data/generated/google/apis/composer_v1beta1/classes.rb +4 -4
  141. data/generated/google/apis/composer_v1beta1/service.rb +37 -35
  142. data/generated/google/apis/compute_alpha.rb +1 -1
  143. data/generated/google/apis/compute_alpha/classes.rb +633 -146
  144. data/generated/google/apis/compute_alpha/representations.rb +131 -8
  145. data/generated/google/apis/compute_alpha/service.rb +1995 -1013
  146. data/generated/google/apis/compute_beta.rb +1 -1
  147. data/generated/google/apis/compute_beta/classes.rb +566 -94
  148. data/generated/google/apis/compute_beta/representations.rb +100 -1
  149. data/generated/google/apis/compute_beta/service.rb +805 -136
  150. data/generated/google/apis/compute_v1.rb +1 -1
  151. data/generated/google/apis/compute_v1/classes.rb +336 -53
  152. data/generated/google/apis/compute_v1/representations.rb +57 -1
  153. data/generated/google/apis/compute_v1/service.rb +739 -133
  154. data/generated/google/apis/container_v1.rb +1 -1
  155. data/generated/google/apis/container_v1/classes.rb +22 -10
  156. data/generated/google/apis/container_v1beta1.rb +1 -1
  157. data/generated/google/apis/container_v1beta1/classes.rb +50 -10
  158. data/generated/google/apis/container_v1beta1/representations.rb +15 -0
  159. data/generated/google/apis/content_v2.rb +1 -1
  160. data/generated/google/apis/content_v2/classes.rb +2 -1
  161. data/generated/google/apis/content_v2_1.rb +1 -1
  162. data/generated/google/apis/content_v2_1/classes.rb +108 -5
  163. data/generated/google/apis/content_v2_1/representations.rb +47 -0
  164. data/generated/google/apis/content_v2_1/service.rb +38 -1
  165. data/generated/google/apis/customsearch_v1.rb +1 -1
  166. data/generated/google/apis/customsearch_v1/service.rb +2 -2
  167. data/generated/google/apis/datacatalog_v1beta1.rb +1 -1
  168. data/generated/google/apis/datacatalog_v1beta1/classes.rb +1 -1
  169. data/generated/google/apis/dataflow_v1b3.rb +1 -1
  170. data/generated/google/apis/dataflow_v1b3/classes.rb +152 -5
  171. data/generated/google/apis/dataflow_v1b3/representations.rb +30 -0
  172. data/generated/google/apis/dataflow_v1b3/service.rb +10 -1
  173. data/generated/google/apis/datafusion_v1.rb +1 -1
  174. data/generated/google/apis/dataproc_v1.rb +1 -1
  175. data/generated/google/apis/dataproc_v1/classes.rb +29 -3
  176. data/generated/google/apis/dataproc_v1/representations.rb +15 -0
  177. data/generated/google/apis/dataproc_v1beta2.rb +1 -1
  178. data/generated/google/apis/dataproc_v1beta2/classes.rb +33 -6
  179. data/generated/google/apis/dataproc_v1beta2/representations.rb +15 -0
  180. data/generated/google/apis/dfareporting_v3_3.rb +1 -1
  181. data/generated/google/apis/dfareporting_v3_3/classes.rb +0 -164
  182. data/generated/google/apis/dfareporting_v3_3/representations.rb +0 -42
  183. data/generated/google/apis/dfareporting_v3_3/service.rb +51 -54
  184. data/generated/google/apis/dfareporting_v3_4.rb +1 -1
  185. data/generated/google/apis/dfareporting_v3_4/classes.rb +0 -164
  186. data/generated/google/apis/dfareporting_v3_4/representations.rb +0 -42
  187. data/generated/google/apis/dfareporting_v3_4/service.rb +51 -54
  188. data/generated/google/apis/dialogflow_v2.rb +1 -1
  189. data/generated/google/apis/dialogflow_v2/classes.rb +208 -30
  190. data/generated/google/apis/dialogflow_v2/representations.rb +118 -7
  191. data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
  192. data/generated/google/apis/dialogflow_v2beta1/classes.rb +215 -38
  193. data/generated/google/apis/dialogflow_v2beta1/representations.rb +118 -7
  194. data/generated/google/apis/dialogflow_v2beta1/service.rb +60 -10
  195. data/generated/google/apis/dialogflow_v3beta1.rb +1 -1
  196. data/generated/google/apis/dialogflow_v3beta1/classes.rb +311 -33
  197. data/generated/google/apis/dialogflow_v3beta1/representations.rb +153 -7
  198. data/generated/google/apis/dialogflow_v3beta1/service.rb +22 -9
  199. data/generated/google/apis/displayvideo_v1.rb +1 -1
  200. data/generated/google/apis/displayvideo_v1/classes.rb +38 -30
  201. data/generated/google/apis/displayvideo_v1/representations.rb +1 -0
  202. data/generated/google/apis/displayvideo_v1/service.rb +21 -18
  203. data/generated/google/apis/dlp_v2.rb +1 -1
  204. data/generated/google/apis/dlp_v2/classes.rb +30 -3
  205. data/generated/google/apis/dlp_v2/representations.rb +16 -0
  206. data/generated/google/apis/dlp_v2/service.rb +328 -328
  207. data/generated/google/apis/dns_v1.rb +1 -1
  208. data/generated/google/apis/dns_v1/classes.rb +181 -0
  209. data/generated/google/apis/dns_v1/representations.rb +83 -0
  210. data/generated/google/apis/dns_v1/service.rb +10 -10
  211. data/generated/google/apis/dns_v1beta2.rb +1 -1
  212. data/generated/google/apis/dns_v1beta2/classes.rb +181 -0
  213. data/generated/google/apis/dns_v1beta2/representations.rb +83 -0
  214. data/generated/google/apis/dns_v1beta2/service.rb +10 -10
  215. data/generated/google/apis/documentai_v1beta3.rb +36 -0
  216. data/generated/google/apis/documentai_v1beta3/classes.rb +6149 -0
  217. data/generated/google/apis/documentai_v1beta3/representations.rb +2666 -0
  218. data/generated/google/apis/documentai_v1beta3/service.rb +263 -0
  219. data/generated/google/apis/domains_v1alpha2.rb +34 -0
  220. data/generated/google/apis/domains_v1alpha2/classes.rb +1534 -0
  221. data/generated/google/apis/domains_v1alpha2/representations.rb +605 -0
  222. data/generated/google/apis/domains_v1alpha2/service.rb +805 -0
  223. data/generated/google/apis/{appsactivity_v1.rb → domains_v1beta1.rb} +11 -11
  224. data/generated/google/apis/domains_v1beta1/classes.rb +1534 -0
  225. data/generated/google/apis/domains_v1beta1/representations.rb +605 -0
  226. data/generated/google/apis/domains_v1beta1/service.rb +805 -0
  227. data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
  228. data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +1 -1
  229. data/generated/google/apis/doubleclickbidmanager_v1_1.rb +1 -1
  230. data/generated/google/apis/doubleclickbidmanager_v1_1/classes.rb +3 -3
  231. data/generated/google/apis/drive_v2.rb +1 -1
  232. data/generated/google/apis/drive_v2/classes.rb +4 -1
  233. data/generated/google/apis/drive_v3.rb +1 -1
  234. data/generated/google/apis/drive_v3/classes.rb +4 -2
  235. data/generated/google/apis/file_v1.rb +1 -1
  236. data/generated/google/apis/file_v1/classes.rb +1 -1
  237. data/generated/google/apis/file_v1beta1.rb +1 -1
  238. data/generated/google/apis/file_v1beta1/classes.rb +1 -1
  239. data/generated/google/apis/firebasehosting_v1beta1.rb +1 -1
  240. data/generated/google/apis/firebasehosting_v1beta1/service.rb +4 -4
  241. data/generated/google/apis/firestore_v1.rb +1 -1
  242. data/generated/google/apis/firestore_v1beta1.rb +1 -1
  243. data/generated/google/apis/fitness_v1.rb +13 -1
  244. data/generated/google/apis/fitness_v1/service.rb +3 -1
  245. data/generated/google/apis/gameservices_v1.rb +1 -1
  246. data/generated/google/apis/gameservices_v1/classes.rb +15 -14
  247. data/generated/google/apis/gameservices_v1/service.rb +54 -51
  248. data/generated/google/apis/gameservices_v1beta.rb +1 -1
  249. data/generated/google/apis/gameservices_v1beta/classes.rb +15 -14
  250. data/generated/google/apis/gameservices_v1beta/service.rb +54 -51
  251. data/generated/google/apis/genomics_v2alpha1.rb +1 -1
  252. data/generated/google/apis/genomics_v2alpha1/classes.rb +104 -0
  253. data/generated/google/apis/genomics_v2alpha1/representations.rb +47 -0
  254. data/generated/google/apis/gmail_v1.rb +1 -1
  255. data/generated/google/apis/gmail_v1/service.rb +1 -1
  256. data/generated/google/apis/gmailpostmastertools_v1beta1.rb +1 -1
  257. data/generated/google/apis/gmailpostmastertools_v1beta1/service.rb +10 -10
  258. data/generated/google/apis/healthcare_v1.rb +1 -1
  259. data/generated/google/apis/healthcare_v1/classes.rb +7 -5
  260. data/generated/google/apis/healthcare_v1/service.rb +1 -3
  261. data/generated/google/apis/healthcare_v1beta1.rb +1 -1
  262. data/generated/google/apis/healthcare_v1beta1/classes.rb +1111 -278
  263. data/generated/google/apis/healthcare_v1beta1/representations.rb +486 -68
  264. data/generated/google/apis/healthcare_v1beta1/service.rb +1475 -247
  265. data/generated/google/apis/iam_v1.rb +1 -1
  266. data/generated/google/apis/iam_v1/service.rb +2 -1
  267. data/generated/google/apis/jobs_v2.rb +1 -1
  268. data/generated/google/apis/jobs_v2/classes.rb +798 -0
  269. data/generated/google/apis/jobs_v2/representations.rb +272 -0
  270. data/generated/google/apis/jobs_v3.rb +1 -1
  271. data/generated/google/apis/jobs_v3/classes.rb +798 -0
  272. data/generated/google/apis/jobs_v3/representations.rb +272 -0
  273. data/generated/google/apis/jobs_v3p1beta1.rb +1 -1
  274. data/generated/google/apis/jobs_v3p1beta1/classes.rb +759 -0
  275. data/generated/google/apis/jobs_v3p1beta1/representations.rb +257 -0
  276. data/generated/google/apis/licensing_v1.rb +4 -3
  277. data/generated/google/apis/licensing_v1/classes.rb +1 -1
  278. data/generated/google/apis/licensing_v1/service.rb +55 -85
  279. data/generated/google/apis/lifesciences_v2beta.rb +1 -1
  280. data/generated/google/apis/lifesciences_v2beta/classes.rb +104 -0
  281. data/generated/google/apis/lifesciences_v2beta/representations.rb +47 -0
  282. data/generated/google/apis/localservices_v1.rb +1 -1
  283. data/generated/google/apis/localservices_v1/service.rb +20 -20
  284. data/generated/google/apis/logging_v2.rb +1 -1
  285. data/generated/google/apis/logging_v2/classes.rb +98 -55
  286. data/generated/google/apis/logging_v2/representations.rb +32 -0
  287. data/generated/google/apis/logging_v2/service.rb +1214 -264
  288. data/generated/google/apis/managedidentities_v1.rb +1 -1
  289. data/generated/google/apis/managedidentities_v1/classes.rb +8 -1
  290. data/generated/google/apis/managedidentities_v1/representations.rb +1 -0
  291. data/generated/google/apis/managedidentities_v1/service.rb +1 -4
  292. data/generated/google/apis/managedidentities_v1alpha1.rb +1 -1
  293. data/generated/google/apis/managedidentities_v1alpha1/classes.rb +87 -9
  294. data/generated/google/apis/managedidentities_v1alpha1/representations.rb +34 -1
  295. data/generated/google/apis/managedidentities_v1alpha1/service.rb +83 -5
  296. data/generated/google/apis/managedidentities_v1beta1.rb +1 -1
  297. data/generated/google/apis/managedidentities_v1beta1/classes.rb +88 -9
  298. data/generated/google/apis/managedidentities_v1beta1/representations.rb +34 -1
  299. data/generated/google/apis/managedidentities_v1beta1/service.rb +83 -5
  300. data/generated/google/apis/memcache_v1beta2.rb +1 -1
  301. data/generated/google/apis/memcache_v1beta2/classes.rb +1 -1
  302. data/generated/google/apis/memcache_v1beta2/service.rb +5 -5
  303. data/generated/google/apis/monitoring_v1.rb +1 -1
  304. data/generated/google/apis/monitoring_v1/classes.rb +10 -10
  305. data/generated/google/apis/monitoring_v3.rb +1 -1
  306. data/generated/google/apis/monitoring_v3/classes.rb +99 -45
  307. data/generated/google/apis/monitoring_v3/representations.rb +18 -0
  308. data/generated/google/apis/monitoring_v3/service.rb +5 -5
  309. data/generated/google/apis/networkmanagement_v1beta1.rb +1 -1
  310. data/generated/google/apis/networkmanagement_v1beta1/classes.rb +68 -0
  311. data/generated/google/apis/networkmanagement_v1beta1/representations.rb +23 -0
  312. data/generated/google/apis/{plus_v1.rb → oauth2_v2.rb} +12 -15
  313. data/generated/google/apis/oauth2_v2/classes.rb +165 -0
  314. data/generated/google/apis/oauth2_v2/representations.rb +68 -0
  315. data/generated/google/apis/oauth2_v2/service.rb +158 -0
  316. data/generated/google/apis/osconfig_v1.rb +3 -3
  317. data/generated/google/apis/osconfig_v1/service.rb +4 -4
  318. data/generated/google/apis/osconfig_v1beta.rb +3 -3
  319. data/generated/google/apis/osconfig_v1beta/service.rb +4 -4
  320. data/generated/google/apis/oslogin_v1alpha.rb +1 -1
  321. data/generated/google/apis/oslogin_v1alpha/classes.rb +2 -2
  322. data/generated/google/apis/oslogin_v1alpha/service.rb +13 -13
  323. data/generated/google/apis/people_v1.rb +1 -1
  324. data/generated/google/apis/people_v1/classes.rb +48 -47
  325. data/generated/google/apis/people_v1/service.rb +12 -10
  326. data/generated/google/apis/playablelocations_v3.rb +1 -1
  327. data/generated/google/apis/playablelocations_v3/classes.rb +6 -6
  328. data/generated/google/apis/poly_v1.rb +3 -4
  329. data/generated/google/apis/poly_v1/classes.rb +65 -79
  330. data/generated/google/apis/poly_v1/service.rb +50 -63
  331. data/generated/google/apis/prod_tt_sasportal_v1alpha1.rb +1 -1
  332. data/generated/google/apis/prod_tt_sasportal_v1alpha1/service.rb +109 -0
  333. data/generated/google/apis/pubsub_v1.rb +1 -1
  334. data/generated/google/apis/pubsub_v1/classes.rb +7 -0
  335. data/generated/google/apis/pubsub_v1/representations.rb +1 -0
  336. data/generated/google/apis/pubsub_v1beta2.rb +1 -1
  337. data/generated/google/apis/pubsub_v1beta2/classes.rb +7 -0
  338. data/generated/google/apis/pubsub_v1beta2/representations.rb +1 -0
  339. data/generated/google/apis/pubsublite_v1.rb +1 -1
  340. data/generated/google/apis/pubsublite_v1/classes.rb +72 -0
  341. data/generated/google/apis/pubsublite_v1/representations.rb +33 -0
  342. data/generated/google/apis/pubsublite_v1/service.rb +33 -0
  343. data/generated/google/apis/realtimebidding_v1.rb +1 -1
  344. data/generated/google/apis/realtimebidding_v1/classes.rb +84 -123
  345. data/generated/google/apis/realtimebidding_v1/representations.rb +18 -32
  346. data/generated/google/apis/realtimebidding_v1/service.rb +4 -1
  347. data/generated/google/apis/recommender_v1.rb +1 -1
  348. data/generated/google/apis/recommender_v1/service.rb +4 -2
  349. data/generated/google/apis/recommender_v1beta1.rb +1 -1
  350. data/generated/google/apis/recommender_v1beta1/service.rb +4 -2
  351. data/generated/google/apis/redis_v1.rb +1 -1
  352. data/generated/google/apis/redis_v1/classes.rb +5 -391
  353. data/generated/google/apis/redis_v1/representations.rb +0 -139
  354. data/generated/google/apis/redis_v1/service.rb +2 -2
  355. data/generated/google/apis/redis_v1beta1.rb +1 -1
  356. data/generated/google/apis/redis_v1beta1/classes.rb +33 -391
  357. data/generated/google/apis/redis_v1beta1/representations.rb +12 -137
  358. data/generated/google/apis/redis_v1beta1/service.rb +36 -2
  359. data/generated/google/apis/remotebuildexecution_v1.rb +1 -1
  360. data/generated/google/apis/remotebuildexecution_v1/classes.rb +6 -0
  361. data/generated/google/apis/remotebuildexecution_v1/representations.rb +1 -0
  362. data/generated/google/apis/remotebuildexecution_v1alpha.rb +1 -1
  363. data/generated/google/apis/remotebuildexecution_v1alpha/classes.rb +6 -0
  364. data/generated/google/apis/remotebuildexecution_v1alpha/representations.rb +1 -0
  365. data/generated/google/apis/remotebuildexecution_v2.rb +1 -1
  366. data/generated/google/apis/remotebuildexecution_v2/classes.rb +6 -0
  367. data/generated/google/apis/remotebuildexecution_v2/representations.rb +1 -0
  368. data/generated/google/apis/reseller_v1.rb +2 -2
  369. data/generated/google/apis/reseller_v1/classes.rb +151 -219
  370. data/generated/google/apis/reseller_v1/service.rb +122 -173
  371. data/generated/google/apis/run_v1.rb +1 -1
  372. data/generated/google/apis/run_v1/classes.rb +15 -135
  373. data/generated/google/apis/run_v1/representations.rb +0 -61
  374. data/generated/google/apis/run_v1/service.rb +0 -342
  375. data/generated/google/apis/sasportal_v1alpha1.rb +1 -1
  376. data/generated/google/apis/sasportal_v1alpha1/classes.rb +20 -0
  377. data/generated/google/apis/sasportal_v1alpha1/representations.rb +13 -0
  378. data/generated/google/apis/sasportal_v1alpha1/service.rb +479 -0
  379. data/generated/google/apis/searchconsole_v1.rb +7 -1
  380. data/generated/google/apis/searchconsole_v1/classes.rb +388 -0
  381. data/generated/google/apis/searchconsole_v1/representations.rb +162 -0
  382. data/generated/google/apis/searchconsole_v1/service.rb +287 -0
  383. data/generated/google/apis/secretmanager_v1.rb +1 -1
  384. data/generated/google/apis/securitycenter_v1.rb +1 -1
  385. data/generated/google/apis/securitycenter_v1/classes.rb +5 -199
  386. data/generated/google/apis/securitycenter_v1/representations.rb +0 -72
  387. data/generated/google/apis/securitycenter_v1beta1.rb +1 -1
  388. data/generated/google/apis/securitycenter_v1beta1/classes.rb +2 -196
  389. data/generated/google/apis/securitycenter_v1beta1/representations.rb +0 -72
  390. data/generated/google/apis/securitycenter_v1beta2.rb +1 -1
  391. data/generated/google/apis/securitycenter_v1beta2/classes.rb +2 -196
  392. data/generated/google/apis/securitycenter_v1beta2/representations.rb +0 -72
  393. data/generated/google/apis/serviceconsumermanagement_v1.rb +1 -1
  394. data/generated/google/apis/serviceconsumermanagement_v1/classes.rb +12 -12
  395. data/generated/google/apis/serviceconsumermanagement_v1/service.rb +32 -30
  396. data/generated/google/apis/servicecontrol_v1.rb +1 -1
  397. data/generated/google/apis/servicecontrol_v1/classes.rb +6 -4
  398. data/generated/google/apis/servicecontrol_v2.rb +1 -1
  399. data/generated/google/apis/servicecontrol_v2/classes.rb +5 -3
  400. data/generated/google/apis/servicemanagement_v1.rb +1 -1
  401. data/generated/google/apis/servicemanagement_v1/classes.rb +0 -22
  402. data/generated/google/apis/servicemanagement_v1/representations.rb +0 -13
  403. data/generated/google/apis/servicemanagement_v1/service.rb +0 -36
  404. data/generated/google/apis/servicenetworking_v1.rb +1 -1
  405. data/generated/google/apis/servicenetworking_v1/classes.rb +107 -4
  406. data/generated/google/apis/servicenetworking_v1/representations.rb +34 -0
  407. data/generated/google/apis/servicenetworking_v1/service.rb +2 -2
  408. data/generated/google/apis/servicenetworking_v1beta.rb +1 -1
  409. data/generated/google/apis/servicenetworking_v1beta/classes.rb +107 -4
  410. data/generated/google/apis/servicenetworking_v1beta/representations.rb +34 -0
  411. data/generated/google/apis/sheets_v4.rb +1 -1
  412. data/generated/google/apis/sheets_v4/classes.rb +175 -85
  413. data/generated/google/apis/smartdevicemanagement_v1.rb +35 -0
  414. data/generated/google/apis/smartdevicemanagement_v1/classes.rb +307 -0
  415. data/generated/google/apis/smartdevicemanagement_v1/representations.rb +173 -0
  416. data/generated/google/apis/smartdevicemanagement_v1/service.rb +309 -0
  417. data/generated/google/apis/sourcerepo_v1.rb +1 -1
  418. data/generated/google/apis/sourcerepo_v1/classes.rb +250 -400
  419. data/generated/google/apis/sourcerepo_v1/service.rb +40 -49
  420. data/generated/google/apis/spanner_v1.rb +1 -1
  421. data/generated/google/apis/spanner_v1/classes.rb +7 -0
  422. data/generated/google/apis/spanner_v1/representations.rb +1 -0
  423. data/generated/google/apis/{sql_v1beta4.rb → sqladmin_v1beta4.rb} +5 -5
  424. data/generated/google/apis/{sql_v1beta4 → sqladmin_v1beta4}/classes.rb +229 -109
  425. data/generated/google/apis/{sql_v1beta4 → sqladmin_v1beta4}/representations.rb +137 -87
  426. data/generated/google/apis/{sql_v1beta4 → sqladmin_v1beta4}/service.rb +244 -244
  427. data/generated/google/apis/storage_v1.rb +1 -1
  428. data/generated/google/apis/storage_v1/classes.rb +2 -10
  429. data/generated/google/apis/storage_v1/representations.rb +0 -1
  430. data/generated/google/apis/storage_v1/service.rb +3 -2
  431. data/generated/google/apis/storagetransfer_v1.rb +1 -1
  432. data/generated/google/apis/storagetransfer_v1/classes.rb +21 -0
  433. data/generated/google/apis/storagetransfer_v1/representations.rb +13 -0
  434. data/generated/google/apis/storagetransfer_v1/service.rb +22 -20
  435. data/generated/google/apis/streetviewpublish_v1.rb +1 -1
  436. data/generated/google/apis/streetviewpublish_v1/classes.rb +4 -4
  437. data/generated/google/apis/sts_v1.rb +1 -1
  438. data/generated/google/apis/sts_v1/classes.rb +10 -9
  439. data/generated/google/apis/sts_v1beta.rb +1 -1
  440. data/generated/google/apis/sts_v1beta/classes.rb +67 -67
  441. data/generated/google/apis/sts_v1beta/service.rb +2 -2
  442. data/generated/google/apis/tagmanager_v2.rb +1 -1
  443. data/generated/google/apis/tasks_v1.rb +1 -1
  444. data/generated/google/apis/tasks_v1/classes.rb +1 -1
  445. data/generated/google/apis/tasks_v1/service.rb +4 -3
  446. data/generated/google/apis/testing_v1.rb +1 -1
  447. data/generated/google/apis/testing_v1/classes.rb +49 -2
  448. data/generated/google/apis/testing_v1/representations.rb +20 -0
  449. data/generated/google/apis/texttospeech_v1beta1.rb +1 -1
  450. data/generated/google/apis/toolresults_v1beta3.rb +1 -1
  451. data/generated/google/apis/tpu_v1.rb +1 -1
  452. data/generated/google/apis/tpu_v1/classes.rb +3 -3
  453. data/generated/google/apis/tpu_v1/service.rb +8 -8
  454. data/generated/google/apis/tpu_v1alpha1.rb +1 -1
  455. data/generated/google/apis/tpu_v1alpha1/classes.rb +3 -3
  456. data/generated/google/apis/tpu_v1alpha1/service.rb +8 -8
  457. data/generated/google/apis/translate_v3.rb +1 -1
  458. data/generated/google/apis/translate_v3/classes.rb +2 -2
  459. data/generated/google/apis/vault_v1.rb +1 -1
  460. data/generated/google/apis/vault_v1/classes.rb +333 -0
  461. data/generated/google/apis/vault_v1/representations.rb +162 -0
  462. data/generated/google/apis/vault_v1/service.rb +151 -0
  463. data/generated/google/apis/videointelligence_v1.rb +1 -1
  464. data/generated/google/apis/videointelligence_v1/classes.rb +751 -28
  465. data/generated/google/apis/videointelligence_v1/representations.rb +402 -2
  466. data/generated/google/apis/videointelligence_v1beta2.rb +1 -1
  467. data/generated/google/apis/videointelligence_v1beta2/classes.rb +751 -28
  468. data/generated/google/apis/videointelligence_v1beta2/representations.rb +402 -2
  469. data/generated/google/apis/videointelligence_v1p1beta1.rb +1 -1
  470. data/generated/google/apis/videointelligence_v1p1beta1/classes.rb +749 -26
  471. data/generated/google/apis/videointelligence_v1p1beta1/representations.rb +402 -2
  472. data/generated/google/apis/videointelligence_v1p2beta1.rb +1 -1
  473. data/generated/google/apis/videointelligence_v1p2beta1/classes.rb +734 -11
  474. data/generated/google/apis/videointelligence_v1p2beta1/representations.rb +402 -2
  475. data/generated/google/apis/videointelligence_v1p3beta1.rb +1 -1
  476. data/generated/google/apis/videointelligence_v1p3beta1/classes.rb +667 -28
  477. data/generated/google/apis/videointelligence_v1p3beta1/representations.rb +368 -2
  478. data/generated/google/apis/websecurityscanner_v1.rb +1 -1
  479. data/generated/google/apis/websecurityscanner_v1beta.rb +1 -1
  480. data/generated/google/apis/workflowexecutions_v1beta.rb +2 -2
  481. data/generated/google/apis/workflowexecutions_v1beta/service.rb +1 -1
  482. data/generated/google/apis/workflows_v1beta.rb +3 -2
  483. data/generated/google/apis/workflows_v1beta/service.rb +2 -1
  484. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  485. data/generated/google/apis/youtube_v3.rb +1 -1
  486. data/generated/google/apis/youtube_v3/classes.rb +12 -945
  487. data/generated/google/apis/youtube_v3/representations.rb +0 -445
  488. data/generated/google/apis/youtube_v3/service.rb +3 -198
  489. data/google-api-client.gemspec +1 -1
  490. data/lib/google/apis/core/api_command.rb +1 -0
  491. data/lib/google/apis/version.rb +1 -1
  492. data/synth.py +40 -0
  493. metadata +41 -19
  494. data/generated/google/apis/apigateway_v1alpha1/classes.rb +0 -633
  495. data/generated/google/apis/apigateway_v1alpha1/representations.rb +0 -250
  496. data/generated/google/apis/apigateway_v1alpha1/service.rb +0 -623
  497. data/generated/google/apis/appsactivity_v1/classes.rb +0 -415
  498. data/generated/google/apis/appsactivity_v1/representations.rb +0 -209
  499. data/generated/google/apis/appsactivity_v1/service.rb +0 -126
  500. data/generated/google/apis/plus_v1/classes.rb +0 -2094
  501. data/generated/google/apis/plus_v1/representations.rb +0 -907
  502. data/generated/google/apis/plus_v1/service.rb +0 -451
@@ -2008,6 +2008,30 @@ module Google
2008
2008
  include Google::Apis::Core::JsonObjectSupport
2009
2009
  end
2010
2010
 
2011
+ class InstantSnapshot
2012
+ class Representation < Google::Apis::Core::JsonRepresentation; end
2013
+
2014
+ include Google::Apis::Core::JsonObjectSupport
2015
+ end
2016
+
2017
+ class InstantSnapshotList
2018
+ class Representation < Google::Apis::Core::JsonRepresentation; end
2019
+
2020
+ class Warning
2021
+ class Representation < Google::Apis::Core::JsonRepresentation; end
2022
+
2023
+ class Datum
2024
+ class Representation < Google::Apis::Core::JsonRepresentation; end
2025
+
2026
+ include Google::Apis::Core::JsonObjectSupport
2027
+ end
2028
+
2029
+ include Google::Apis::Core::JsonObjectSupport
2030
+ end
2031
+
2032
+ include Google::Apis::Core::JsonObjectSupport
2033
+ end
2034
+
2011
2035
  class Int64RangeMatch
2012
2036
  class Representation < Google::Apis::Core::JsonRepresentation; end
2013
2037
 
@@ -4240,6 +4264,12 @@ module Google
4240
4264
  include Google::Apis::Core::JsonObjectSupport
4241
4265
  end
4242
4266
 
4267
+ class SecurityPolicyRuleRateLimitOptionsThreshold
4268
+ class Representation < Google::Apis::Core::JsonRepresentation; end
4269
+
4270
+ include Google::Apis::Core::JsonObjectSupport
4271
+ end
4272
+
4243
4273
  class SecuritySettings
4244
4274
  class Representation < Google::Apis::Core::JsonRepresentation; end
4245
4275
 
@@ -4618,6 +4648,12 @@ module Google
4618
4648
  include Google::Apis::Core::JsonObjectSupport
4619
4649
  end
4620
4650
 
4651
+ class Subsetting
4652
+ class Representation < Google::Apis::Core::JsonRepresentation; end
4653
+
4654
+ include Google::Apis::Core::JsonObjectSupport
4655
+ end
4656
+
4621
4657
  class TcpHealthCheck
4622
4658
  class Representation < Google::Apis::Core::JsonRepresentation; end
4623
4659
 
@@ -5834,7 +5870,6 @@ module Google
5834
5870
  property :location_hint, as: 'locationHint'
5835
5871
  property :machine_type, as: 'machineType'
5836
5872
  property :maintenance_freeze_duration_hours, as: 'maintenanceFreezeDurationHours'
5837
- property :maintenance_interval, as: 'maintenanceInterval'
5838
5873
  property :min_cpu_platform, as: 'minCpuPlatform'
5839
5874
  end
5840
5875
  end
@@ -5872,6 +5907,7 @@ module Google
5872
5907
 
5873
5908
  property :source, as: 'source'
5874
5909
  property :type, as: 'type'
5910
+ collection :user_licenses, as: 'userLicenses'
5875
5911
  end
5876
5912
  end
5877
5913
 
@@ -6296,6 +6332,8 @@ module Google
6296
6332
  property :self_link, as: 'selfLink'
6297
6333
  property :self_link_with_id, as: 'selfLinkWithId'
6298
6334
  property :session_affinity, as: 'sessionAffinity'
6335
+ property :subsetting, as: 'subsetting', class: Google::Apis::ComputeAlpha::Subsetting, decorator: Google::Apis::ComputeAlpha::Subsetting::Representation
6336
+
6299
6337
  property :timeout_sec, as: 'timeoutSec'
6300
6338
  end
6301
6339
  end
@@ -6545,6 +6583,7 @@ module Google
6545
6583
  class Binding
6546
6584
  # @private
6547
6585
  class Representation < Google::Apis::Core::JsonRepresentation
6586
+ property :binding_id, as: 'bindingId'
6548
6587
  property :condition, as: 'condition', class: Google::Apis::ComputeAlpha::Expr, decorator: Google::Apis::ComputeAlpha::Expr::Representation
6549
6588
 
6550
6589
  collection :members, as: 'members'
@@ -6864,7 +6903,7 @@ module Google
6864
6903
  property :region, as: 'region'
6865
6904
  collection :replica_zones, as: 'replicaZones'
6866
6905
  collection :resource_policies, as: 'resourcePolicies'
6867
- property :satisfies_physical_zone_separation, as: 'satisfiesPhysicalZoneSeparation'
6906
+ property :satisfies_pzs, as: 'satisfiesPzs'
6868
6907
  property :self_link, as: 'selfLink'
6869
6908
  property :self_link_with_id, as: 'selfLinkWithId'
6870
6909
  property :size_gb, :numeric_string => true, as: 'sizeGb'
@@ -6886,6 +6925,7 @@ module Google
6886
6925
  property :status, as: 'status'
6887
6926
  property :storage_type, as: 'storageType'
6888
6927
  property :type, as: 'type'
6928
+ collection :user_licenses, as: 'userLicenses'
6889
6929
  collection :users, as: 'users'
6890
6930
  property :zone, as: 'zone'
6891
6931
  end
@@ -8460,9 +8500,10 @@ module Google
8460
8500
  property :reservation_affinity, as: 'reservationAffinity', class: Google::Apis::ComputeAlpha::ReservationAffinity, decorator: Google::Apis::ComputeAlpha::ReservationAffinity::Representation
8461
8501
 
8462
8502
  collection :resource_policies, as: 'resourcePolicies'
8463
- property :satisfies_physical_zone_separation, as: 'satisfiesPhysicalZoneSeparation'
8503
+ property :satisfies_pzs, as: 'satisfiesPzs'
8464
8504
  property :scheduling, as: 'scheduling', class: Google::Apis::ComputeAlpha::Scheduling, decorator: Google::Apis::ComputeAlpha::Scheduling::Representation
8465
8505
 
8506
+ collection :secure_labels, as: 'secureLabels'
8466
8507
  property :self_link, as: 'selfLink'
8467
8508
  property :self_link_with_id, as: 'selfLinkWithId'
8468
8509
  collection :service_accounts, as: 'serviceAccounts', class: Google::Apis::ComputeAlpha::ServiceAccount, decorator: Google::Apis::ComputeAlpha::ServiceAccount::Representation
@@ -9407,6 +9448,60 @@ module Google
9407
9448
  end
9408
9449
  end
9409
9450
 
9451
+ class InstantSnapshot
9452
+ # @private
9453
+ class Representation < Google::Apis::Core::JsonRepresentation
9454
+ property :creation_timestamp, as: 'creationTimestamp'
9455
+ property :description, as: 'description'
9456
+ property :disk_size_gb, :numeric_string => true, as: 'diskSizeGb'
9457
+ property :guest_flush, as: 'guestFlush'
9458
+ property :id, :numeric_string => true, as: 'id'
9459
+ property :kind, as: 'kind'
9460
+ property :label_fingerprint, :base64 => true, as: 'labelFingerprint'
9461
+ hash :labels, as: 'labels'
9462
+ property :name, as: 'name'
9463
+ property :region, as: 'region'
9464
+ property :self_link, as: 'selfLink'
9465
+ property :self_link_with_id, as: 'selfLinkWithId'
9466
+ property :source_disk, as: 'sourceDisk'
9467
+ property :source_disk_id, as: 'sourceDiskId'
9468
+ property :status, as: 'status'
9469
+ property :zone, as: 'zone'
9470
+ end
9471
+ end
9472
+
9473
+ class InstantSnapshotList
9474
+ # @private
9475
+ class Representation < Google::Apis::Core::JsonRepresentation
9476
+ property :id, as: 'id'
9477
+ collection :items, as: 'items', class: Google::Apis::ComputeAlpha::InstantSnapshot, decorator: Google::Apis::ComputeAlpha::InstantSnapshot::Representation
9478
+
9479
+ property :kind, as: 'kind'
9480
+ property :next_page_token, as: 'nextPageToken'
9481
+ property :self_link, as: 'selfLink'
9482
+ property :warning, as: 'warning', class: Google::Apis::ComputeAlpha::InstantSnapshotList::Warning, decorator: Google::Apis::ComputeAlpha::InstantSnapshotList::Warning::Representation
9483
+
9484
+ end
9485
+
9486
+ class Warning
9487
+ # @private
9488
+ class Representation < Google::Apis::Core::JsonRepresentation
9489
+ property :code, as: 'code'
9490
+ collection :data, as: 'data', class: Google::Apis::ComputeAlpha::InstantSnapshotList::Warning::Datum, decorator: Google::Apis::ComputeAlpha::InstantSnapshotList::Warning::Datum::Representation
9491
+
9492
+ property :message, as: 'message'
9493
+ end
9494
+
9495
+ class Datum
9496
+ # @private
9497
+ class Representation < Google::Apis::Core::JsonRepresentation
9498
+ property :key, as: 'key'
9499
+ property :value, as: 'value'
9500
+ end
9501
+ end
9502
+ end
9503
+ end
9504
+
9410
9505
  class Int64RangeMatch
9411
9506
  # @private
9412
9507
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -10605,6 +10700,7 @@ module Google
10605
10700
  property :name, as: 'name'
10606
10701
  property :network, as: 'network'
10607
10702
  property :network_ip, as: 'networkIP'
10703
+ property :queue_count, as: 'queueCount'
10608
10704
  property :subnetwork, as: 'subnetwork'
10609
10705
  end
10610
10706
  end
@@ -10830,7 +10926,7 @@ module Google
10830
10926
  collection :instances, as: 'instances'
10831
10927
  property :name, as: 'name'
10832
10928
  property :node_type, as: 'nodeType'
10833
- property :satisfies_physical_zone_separation, as: 'satisfiesPhysicalZoneSeparation'
10929
+ property :satisfies_pzs, as: 'satisfiesPzs'
10834
10930
  property :server_binding, as: 'serverBinding', class: Google::Apis::ComputeAlpha::ServerBinding, decorator: Google::Apis::ComputeAlpha::ServerBinding::Representation
10835
10931
 
10836
10932
  property :server_id, as: 'serverId'
@@ -12032,7 +12128,7 @@ module Google
12032
12128
  property :self_link, as: 'selfLink'
12033
12129
  property :self_link_with_id, as: 'selfLinkWithId'
12034
12130
  property :status, as: 'status'
12035
- property :supports_physical_zone_separation, as: 'supportsPhysicalZoneSeparation'
12131
+ property :supports_pzs, as: 'supportsPzs'
12036
12132
  collection :zones, as: 'zones'
12037
12133
  end
12038
12134
  end
@@ -13014,6 +13110,7 @@ module Google
13014
13110
  property :name, as: 'name'
13015
13111
  property :peer_asn, as: 'peerAsn'
13016
13112
  property :peer_ip_address, as: 'peerIpAddress'
13113
+ property :router_appliance_instance, as: 'routerApplianceInstance'
13017
13114
  end
13018
13115
  end
13019
13116
 
@@ -13038,6 +13135,9 @@ module Google
13038
13135
  property :linked_vpn_tunnel, as: 'linkedVpnTunnel'
13039
13136
  property :management_type, as: 'managementType'
13040
13137
  property :name, as: 'name'
13138
+ property :private_ip_address, as: 'privateIpAddress'
13139
+ property :redundant_interface, as: 'redundantInterface'
13140
+ property :subnetwork, as: 'subnetwork'
13041
13141
  end
13042
13142
  end
13043
13143
 
@@ -13498,14 +13598,27 @@ module Google
13498
13598
  class SecurityPolicyRuleRateLimitOptions
13499
13599
  # @private
13500
13600
  class Representation < Google::Apis::Core::JsonRepresentation
13601
+ property :ban_duration_sec, as: 'banDurationSec'
13602
+ property :ban_threshold, as: 'banThreshold', class: Google::Apis::ComputeAlpha::SecurityPolicyRuleRateLimitOptionsThreshold, decorator: Google::Apis::ComputeAlpha::SecurityPolicyRuleRateLimitOptionsThreshold::Representation
13603
+
13501
13604
  property :block_duration, as: 'blockDuration'
13502
13605
  property :conform_action, as: 'conformAction'
13503
13606
  property :enforce_on_key, as: 'enforceOnKey'
13504
13607
  property :exceed_action, as: 'exceedAction'
13608
+ property :rate_limit_threshold, as: 'rateLimitThreshold', class: Google::Apis::ComputeAlpha::SecurityPolicyRuleRateLimitOptionsThreshold, decorator: Google::Apis::ComputeAlpha::SecurityPolicyRuleRateLimitOptionsThreshold::Representation
13609
+
13505
13610
  property :threshold_rps, as: 'thresholdRps'
13506
13611
  end
13507
13612
  end
13508
13613
 
13614
+ class SecurityPolicyRuleRateLimitOptionsThreshold
13615
+ # @private
13616
+ class Representation < Google::Apis::Core::JsonRepresentation
13617
+ property :count, as: 'count'
13618
+ property :interval_sec, as: 'intervalSec'
13619
+ end
13620
+ end
13621
+
13509
13622
  class SecuritySettings
13510
13623
  # @private
13511
13624
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -13568,7 +13681,7 @@ module Google
13568
13681
  property :id, :numeric_string => true, as: 'id'
13569
13682
  property :kind, as: 'kind'
13570
13683
  property :name, as: 'name'
13571
- collection :nat_ip_cidr_ranges, as: 'natIpCidrRanges'
13684
+ collection :nat_subnets, as: 'natSubnets'
13572
13685
  property :producer_forwarding_rule, as: 'producerForwardingRule'
13573
13686
  property :region, as: 'region'
13574
13687
  property :self_link, as: 'selfLink'
@@ -13702,6 +13815,7 @@ module Google
13702
13815
  property :description, as: 'description'
13703
13816
  property :disk_size_gb, :numeric_string => true, as: 'diskSizeGb'
13704
13817
  property :download_bytes, :numeric_string => true, as: 'downloadBytes'
13818
+ property :guest_flush, as: 'guestFlush'
13705
13819
  collection :guest_os_features, as: 'guestOsFeatures', class: Google::Apis::ComputeAlpha::GuestOsFeature, decorator: Google::Apis::ComputeAlpha::GuestOsFeature::Representation
13706
13820
 
13707
13821
  property :id, :numeric_string => true, as: 'id'
@@ -13711,7 +13825,7 @@ module Google
13711
13825
  collection :license_codes, as: 'licenseCodes'
13712
13826
  collection :licenses, as: 'licenses'
13713
13827
  property :name, as: 'name'
13714
- property :satisfies_physical_zone_separation, as: 'satisfiesPhysicalZoneSeparation'
13828
+ property :satisfies_pzs, as: 'satisfiesPzs'
13715
13829
  property :self_link, as: 'selfLink'
13716
13830
  property :self_link_with_id, as: 'selfLinkWithId'
13717
13831
  property :snapshot_encryption_key, as: 'snapshotEncryptionKey', class: Google::Apis::ComputeAlpha::CustomerEncryptionKey, decorator: Google::Apis::ComputeAlpha::CustomerEncryptionKey::Representation
@@ -14206,6 +14320,13 @@ module Google
14206
14320
  end
14207
14321
  end
14208
14322
 
14323
+ class Subsetting
14324
+ # @private
14325
+ class Representation < Google::Apis::Core::JsonRepresentation
14326
+ property :policy, as: 'policy'
14327
+ end
14328
+ end
14329
+
14209
14330
  class TcpHealthCheck
14210
14331
  # @private
14211
14332
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -14307,6 +14428,7 @@ module Google
14307
14428
  class Representation < Google::Apis::Core::JsonRepresentation
14308
14429
  property :creation_timestamp, as: 'creationTimestamp'
14309
14430
  property :description, as: 'description'
14431
+ property :fingerprint, :base64 => true, as: 'fingerprint'
14310
14432
  collection :http_filters, as: 'httpFilters'
14311
14433
  property :id, :numeric_string => true, as: 'id'
14312
14434
  property :kind, as: 'kind'
@@ -14442,6 +14564,7 @@ module Google
14442
14564
  property :certificate_map, as: 'certificateMap'
14443
14565
  property :creation_timestamp, as: 'creationTimestamp'
14444
14566
  property :description, as: 'description'
14567
+ collection :http_filters, as: 'httpFilters'
14445
14568
  property :id, :numeric_string => true, as: 'id'
14446
14569
  property :kind, as: 'kind'
14447
14570
  property :name, as: 'name'
@@ -15791,7 +15914,7 @@ module Google
15791
15914
  property :region, as: 'region'
15792
15915
  property :self_link, as: 'selfLink'
15793
15916
  property :status, as: 'status'
15794
- property :supports_physical_zone_separation, as: 'supportsPhysicalZoneSeparation'
15917
+ property :supports_pzs, as: 'supportsPzs'
15795
15918
  end
15796
15919
  end
15797
15920
 
@@ -2631,7 +2631,7 @@ module Google
2631
2631
  # Name of the persistent disk to snapshot.
2632
2632
  # @param [Google::Apis::ComputeAlpha::Snapshot] snapshot_object
2633
2633
  # @param [Boolean] guest_flush
2634
- # [Input Only] Specifies to create an application consistent snapshot by
2634
+ # [Input Only] Whether to attempt an application consistent snapshot by
2635
2635
  # informing the OS to prepare for the snapshot process. Currently only supported
2636
2636
  # on Windows instances using the Volume Shadow Copy Service (VSS).
2637
2637
  # @param [String] request_id
@@ -3202,6 +3202,65 @@ module Google
3202
3202
  execute_or_queue_command(command, &block)
3203
3203
  end
3204
3204
 
3205
+ # Update the specified disk with the data included in the request. Update is
3206
+ # performed only on selected fields included as part of update-mask. Only the
3207
+ # following fields can be modified: user_license.
3208
+ # @param [String] project
3209
+ # Project ID for this request.
3210
+ # @param [String] zone
3211
+ # The name of the zone for this request.
3212
+ # @param [String] disk
3213
+ # The disk name for this request.
3214
+ # @param [Google::Apis::ComputeAlpha::Disk] disk_object
3215
+ # @param [Array<String>, String] paths
3216
+ # The set of field mask paths.
3217
+ # @param [String] request_id
3218
+ # An optional request ID to identify requests. Specify a unique request ID so
3219
+ # that if you must retry your request, the server will know to ignore the
3220
+ # request if it has already been completed.
3221
+ # For example, consider a situation where you make an initial request and the
3222
+ # request times out. If you make the request again with the same request ID, the
3223
+ # server can check if original operation with the same request ID was received,
3224
+ # and if so, will ignore the second request. This prevents clients from
3225
+ # accidentally creating duplicate commitments.
3226
+ # The request ID must be a valid UUID with the exception that zero UUID is not
3227
+ # supported (00000000-0000-0000-0000-000000000000).
3228
+ # @param [String] fields
3229
+ # Selector specifying which fields to include in a partial response.
3230
+ # @param [String] quota_user
3231
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
3232
+ # characters.
3233
+ # @param [String] user_ip
3234
+ # Deprecated. Please use quotaUser instead.
3235
+ # @param [Google::Apis::RequestOptions] options
3236
+ # Request-specific options
3237
+ #
3238
+ # @yield [result, err] Result & error if block supplied
3239
+ # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
3240
+ # @yieldparam err [StandardError] error object if request failed
3241
+ #
3242
+ # @return [Google::Apis::ComputeAlpha::Operation]
3243
+ #
3244
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3245
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3246
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3247
+ def update_disk(project, zone, disk, disk_object = nil, paths: nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
3248
+ command = make_simple_command(:patch, 'projects/{project}/zones/{zone}/disks/{disk}', options)
3249
+ command.request_representation = Google::Apis::ComputeAlpha::Disk::Representation
3250
+ command.request_object = disk_object
3251
+ command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
3252
+ command.response_class = Google::Apis::ComputeAlpha::Operation
3253
+ command.params['project'] = project unless project.nil?
3254
+ command.params['zone'] = zone unless zone.nil?
3255
+ command.params['disk'] = disk unless disk.nil?
3256
+ command.query['paths'] = paths unless paths.nil?
3257
+ command.query['requestId'] = request_id unless request_id.nil?
3258
+ command.query['fields'] = fields unless fields.nil?
3259
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3260
+ command.query['userIp'] = user_ip unless user_ip.nil?
3261
+ execute_or_queue_command(command, &block)
3262
+ end
3263
+
3205
3264
  # Deletes the specified externalVpnGateway.
3206
3265
  # @param [String] project
3207
3266
  # Project ID for this request.
@@ -9489,8 +9548,10 @@ module Google
9489
9548
  execute_or_queue_command(command, &block)
9490
9549
  end
9491
9550
 
9492
- # Returns the specified instance group. Gets a list of available instance groups
9493
- # by making a list() request.
9551
+ # Returns the specified zonal instance group. Get a list of available zonal
9552
+ # instance groups by making a list() request.
9553
+ # For managed instance groups, use the instanceGroupManagers or
9554
+ # regionInstanceGroupManagers methods instead.
9494
9555
  # @param [String] project
9495
9556
  # Project ID for this request.
9496
9557
  # @param [String] zone
@@ -9581,8 +9642,10 @@ module Google
9581
9642
  execute_or_queue_command(command, &block)
9582
9643
  end
9583
9644
 
9584
- # Retrieves the list of instance groups that are located in the specified
9585
- # project and zone.
9645
+ # Retrieves the list of zonal instance group resources contained within the
9646
+ # specified zone.
9647
+ # For managed instance groups, use the instanceGroupManagers or
9648
+ # regionInstanceGroupManagers methods instead.
9586
9649
  # @param [String] project
9587
9650
  # Project ID for this request.
9588
9651
  # @param [String] zone
@@ -10443,7 +10506,8 @@ module Google
10443
10506
  # @param [Google::Apis::ComputeAlpha::AttachedDisk] attached_disk_object
10444
10507
  # @param [Boolean] force_attach
10445
10508
  # Whether to force attach the regional disk even if it's currently attached to
10446
- # another instance.
10509
+ # another instance. If you try to force attach a zonal disk to an instance, you
10510
+ # will receive an error.
10447
10511
  # @param [String] request_id
10448
10512
  # An optional request ID to identify requests. Specify a unique request ID so
10449
10513
  # that if you must retry your request, the server will know to ignore the
@@ -11198,9 +11262,9 @@ module Google
11198
11262
  end
11199
11263
 
11200
11264
  # Retrieves a list of resources that refer to the VM instance specified in the
11201
- # request. For example, if the VM instance is part of a managed instance group,
11202
- # the referrers list includes the managed instance group. For more information,
11203
- # read Viewing Referrers to VM Instances.
11265
+ # request. For example, if the VM instance is part of a managed or unmanaged
11266
+ # instance group, the referrers list includes the instance group. For more
11267
+ # information, read Viewing referrers to VM instances.
11204
11268
  # @param [String] project
11205
11269
  # Project ID for this request.
11206
11270
  # @param [String] zone
@@ -25593,109 +25657,18 @@ module Google
25593
25657
  execute_or_queue_command(command, &block)
25594
25658
  end
25595
25659
 
25596
- # Deletes the specified network endpoint group. Note that the NEG cannot be
25597
- # deleted if it is configured as a backend of a backend service.
25598
- # @param [String] project
25599
- # Project ID for this request.
25600
- # @param [String] region
25601
- # The name of the region where the network endpoint group is located. It should
25602
- # comply with RFC1035.
25603
- # @param [String] network_endpoint_group
25604
- # The name of the network endpoint group to delete. It should comply with
25605
- # RFC1035.
25606
- # @param [String] request_id
25607
- # An optional request ID to identify requests. Specify a unique request ID so
25608
- # that if you must retry your request, the server will know to ignore the
25609
- # request if it has already been completed.
25610
- # For example, consider a situation where you make an initial request and the
25611
- # request times out. If you make the request again with the same request ID, the
25612
- # server can check if original operation with the same request ID was received,
25613
- # and if so, will ignore the second request. This prevents clients from
25614
- # accidentally creating duplicate commitments.
25615
- # The request ID must be a valid UUID with the exception that zero UUID is not
25616
- # supported (00000000-0000-0000-0000-000000000000).
25617
- # @param [String] fields
25618
- # Selector specifying which fields to include in a partial response.
25619
- # @param [String] quota_user
25620
- # An opaque string that represents a user for quota purposes. Must not exceed 40
25621
- # characters.
25622
- # @param [String] user_ip
25623
- # Deprecated. Please use quotaUser instead.
25624
- # @param [Google::Apis::RequestOptions] options
25625
- # Request-specific options
25626
- #
25627
- # @yield [result, err] Result & error if block supplied
25628
- # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
25629
- # @yieldparam err [StandardError] error object if request failed
25630
- #
25631
- # @return [Google::Apis::ComputeAlpha::Operation]
25632
- #
25633
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
25634
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
25635
- # @raise [Google::Apis::AuthorizationError] Authorization is required
25636
- def delete_region_network_endpoint_group(project, region, network_endpoint_group, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
25637
- command = make_simple_command(:delete, 'projects/{project}/regions/{region}/networkEndpointGroups/{networkEndpointGroup}', options)
25638
- command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
25639
- command.response_class = Google::Apis::ComputeAlpha::Operation
25640
- command.params['project'] = project unless project.nil?
25641
- command.params['region'] = region unless region.nil?
25642
- command.params['networkEndpointGroup'] = network_endpoint_group unless network_endpoint_group.nil?
25643
- command.query['requestId'] = request_id unless request_id.nil?
25644
- command.query['fields'] = fields unless fields.nil?
25645
- command.query['quotaUser'] = quota_user unless quota_user.nil?
25646
- command.query['userIp'] = user_ip unless user_ip.nil?
25647
- execute_or_queue_command(command, &block)
25648
- end
25649
-
25650
- # Returns the specified network endpoint group. Gets a list of available network
25651
- # endpoint groups by making a list() request.
25652
- # @param [String] project
25653
- # Project ID for this request.
25654
- # @param [String] region
25655
- # The name of the region where the network endpoint group is located. It should
25656
- # comply with RFC1035.
25657
- # @param [String] network_endpoint_group
25658
- # The name of the network endpoint group. It should comply with RFC1035.
25659
- # @param [String] fields
25660
- # Selector specifying which fields to include in a partial response.
25661
- # @param [String] quota_user
25662
- # An opaque string that represents a user for quota purposes. Must not exceed 40
25663
- # characters.
25664
- # @param [String] user_ip
25665
- # Deprecated. Please use quotaUser instead.
25666
- # @param [Google::Apis::RequestOptions] options
25667
- # Request-specific options
25668
- #
25669
- # @yield [result, err] Result & error if block supplied
25670
- # @yieldparam result [Google::Apis::ComputeAlpha::NetworkEndpointGroup] parsed result object
25671
- # @yieldparam err [StandardError] error object if request failed
25672
- #
25673
- # @return [Google::Apis::ComputeAlpha::NetworkEndpointGroup]
25674
- #
25675
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
25676
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
25677
- # @raise [Google::Apis::AuthorizationError] Authorization is required
25678
- def get_region_network_endpoint_group(project, region, network_endpoint_group, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
25679
- command = make_simple_command(:get, 'projects/{project}/regions/{region}/networkEndpointGroups/{networkEndpointGroup}', options)
25680
- command.response_representation = Google::Apis::ComputeAlpha::NetworkEndpointGroup::Representation
25681
- command.response_class = Google::Apis::ComputeAlpha::NetworkEndpointGroup
25682
- command.params['project'] = project unless project.nil?
25683
- command.params['region'] = region unless region.nil?
25684
- command.params['networkEndpointGroup'] = network_endpoint_group unless network_endpoint_group.nil?
25685
- command.query['fields'] = fields unless fields.nil?
25686
- command.query['quotaUser'] = quota_user unless quota_user.nil?
25687
- command.query['userIp'] = user_ip unless user_ip.nil?
25688
- execute_or_queue_command(command, &block)
25689
- end
25690
-
25691
- # Creates a network endpoint group in the specified project using the parameters
25692
- # that are included in the request.
25660
+ # Deletes the specified InstantSnapshot resource. Keep in mind that deleting a
25661
+ # single instantSnapshot might not necessarily delete all the data on that
25662
+ # instantSnapshot. If any data on the instantSnapshot that is marked for
25663
+ # deletion is needed for subsequent instantSnapshots, the data will be moved to
25664
+ # the next corresponding instantSnapshot.
25665
+ # For more information, see Deleting instantSnapshots.
25693
25666
  # @param [String] project
25694
25667
  # Project ID for this request.
25695
25668
  # @param [String] region
25696
- # The name of the region where you want to create the network endpoint group. It
25697
- # should comply with RFC1035.
25698
- # @param [Google::Apis::ComputeAlpha::NetworkEndpointGroup] network_endpoint_group_object
25669
+ # The name of the region for this request.
25670
+ # @param [String] instant_snapshot
25671
+ # Name of the InstantSnapshot resource to delete.
25699
25672
  # @param [String] request_id
25700
25673
  # An optional request ID to identify requests. Specify a unique request ID so
25701
25674
  # that if you must retry your request, the server will know to ignore the
@@ -25726,14 +25699,13 @@ module Google
25726
25699
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
25727
25700
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
25728
25701
  # @raise [Google::Apis::AuthorizationError] Authorization is required
25729
- def insert_region_network_endpoint_group(project, region, network_endpoint_group_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
25730
- command = make_simple_command(:post, 'projects/{project}/regions/{region}/networkEndpointGroups', options)
25731
- command.request_representation = Google::Apis::ComputeAlpha::NetworkEndpointGroup::Representation
25732
- command.request_object = network_endpoint_group_object
25702
+ def delete_region_instant_snapshot(project, region, instant_snapshot, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
25703
+ command = make_simple_command(:delete, 'projects/{project}/regions/{region}/instantSnapshots/{instantSnapshot}', options)
25733
25704
  command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
25734
25705
  command.response_class = Google::Apis::ComputeAlpha::Operation
25735
25706
  command.params['project'] = project unless project.nil?
25736
25707
  command.params['region'] = region unless region.nil?
25708
+ command.params['instantSnapshot'] = instant_snapshot unless instant_snapshot.nil?
25737
25709
  command.query['requestId'] = request_id unless request_id.nil?
25738
25710
  command.query['fields'] = fields unless fields.nil?
25739
25711
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -25741,104 +25713,13 @@ module Google
25741
25713
  execute_or_queue_command(command, &block)
25742
25714
  end
25743
25715
 
25744
- # Retrieves the list of regional network endpoint groups available to the
25745
- # specified project in the given region.
25746
- # @param [String] project
25747
- # Project ID for this request.
25748
- # @param [String] region
25749
- # The name of the region where the network endpoint group is located. It should
25750
- # comply with RFC1035.
25751
- # @param [String] filter
25752
- # A filter expression that filters resources listed in the response. The
25753
- # expression must specify the field name, a comparison operator, and the value
25754
- # that you want to use for filtering. The value must be a string, a number, or a
25755
- # boolean. The comparison operator must be either `=`, `!=`, `>`, or `<`.
25756
- # For example, if you are filtering Compute Engine instances, you can exclude
25757
- # instances named `example-instance` by specifying `name != example-instance`.
25758
- # You can also filter nested fields. For example, you could specify `scheduling.
25759
- # automaticRestart = false` to include instances only if they are not scheduled
25760
- # for automatic restarts. You can use filtering on nested fields to filter based
25761
- # on resource labels.
25762
- # To filter on multiple expressions, provide each separate expression within
25763
- # parentheses. For example: ``` (scheduling.automaticRestart = true) (
25764
- # cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND`
25765
- # expression. However, you can include `AND` and `OR` expressions explicitly.
25766
- # For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel
25767
- # Broadwell") AND (scheduling.automaticRestart = true) ```
25768
- # @param [Fixnum] max_results
25769
- # The maximum number of results per page that should be returned. If the number
25770
- # of available results is larger than `maxResults`, Compute Engine returns a `
25771
- # nextPageToken` that can be used to get the next page of results in subsequent
25772
- # list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
25773
- # @param [String] order_by
25774
- # Sorts list results by a certain order. By default, results are returned in
25775
- # alphanumerical order based on the resource name.
25776
- # You can also sort results in descending order based on the creation timestamp
25777
- # using `orderBy="creationTimestamp desc"`. This sorts results based on the `
25778
- # creationTimestamp` field in reverse chronological order (newest result first).
25779
- # Use this to sort resources like operations so that the newest operation is
25780
- # returned first.
25781
- # Currently, only sorting by `name` or `creationTimestamp desc` is supported.
25782
- # @param [String] page_token
25783
- # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
25784
- # by a previous list request to get the next page of results.
25785
- # @param [Boolean] return_partial_success
25786
- # Opt-in for partial success behavior which provides partial results in case of
25787
- # failure. The default value is false and the logic is the same as today.
25788
- # @param [String] fields
25789
- # Selector specifying which fields to include in a partial response.
25790
- # @param [String] quota_user
25791
- # An opaque string that represents a user for quota purposes. Must not exceed 40
25792
- # characters.
25793
- # @param [String] user_ip
25794
- # Deprecated. Please use quotaUser instead.
25795
- # @param [Google::Apis::RequestOptions] options
25796
- # Request-specific options
25797
- #
25798
- # @yield [result, err] Result & error if block supplied
25799
- # @yieldparam result [Google::Apis::ComputeAlpha::NetworkEndpointGroupList] parsed result object
25800
- # @yieldparam err [StandardError] error object if request failed
25801
- #
25802
- # @return [Google::Apis::ComputeAlpha::NetworkEndpointGroupList]
25803
- #
25804
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
25805
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
25806
- # @raise [Google::Apis::AuthorizationError] Authorization is required
25807
- def list_region_network_endpoint_groups(project, region, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
25808
- command = make_simple_command(:get, 'projects/{project}/regions/{region}/networkEndpointGroups', options)
25809
- command.response_representation = Google::Apis::ComputeAlpha::NetworkEndpointGroupList::Representation
25810
- command.response_class = Google::Apis::ComputeAlpha::NetworkEndpointGroupList
25811
- command.params['project'] = project unless project.nil?
25812
- command.params['region'] = region unless region.nil?
25813
- command.query['filter'] = filter unless filter.nil?
25814
- command.query['maxResults'] = max_results unless max_results.nil?
25815
- command.query['orderBy'] = order_by unless order_by.nil?
25816
- command.query['pageToken'] = page_token unless page_token.nil?
25817
- command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
25818
- command.query['fields'] = fields unless fields.nil?
25819
- command.query['quotaUser'] = quota_user unless quota_user.nil?
25820
- command.query['userIp'] = user_ip unless user_ip.nil?
25821
- execute_or_queue_command(command, &block)
25822
- end
25823
-
25824
- # Deletes the specified NotificationEndpoint in the given region
25716
+ # Returns the specified InstantSnapshot resource in the specified region.
25825
25717
  # @param [String] project
25826
25718
  # Project ID for this request.
25827
25719
  # @param [String] region
25828
- # Name of the region scoping this request.
25829
- # @param [String] notification_endpoint
25830
- # Name of the NotificationEndpoint resource to delete.
25831
- # @param [String] request_id
25832
- # An optional request ID to identify requests. Specify a unique request ID so
25833
- # that if you must retry your request, the server will know to ignore the
25834
- # request if it has already been completed.
25835
- # For example, consider a situation where you make an initial request and the
25836
- # request times out. If you make the request again with the same request ID, the
25837
- # server can check if original operation with the same request ID was received,
25838
- # and if so, will ignore the second request. This prevents clients from
25839
- # accidentally creating duplicate commitments.
25840
- # The request ID must be a valid UUID with the exception that zero UUID is not
25841
- # supported (00000000-0000-0000-0000-000000000000).
25720
+ # The name of the region for this request.
25721
+ # @param [String] instant_snapshot
25722
+ # Name of the InstantSnapshot resource to return.
25842
25723
  # @param [String] fields
25843
25724
  # Selector specifying which fields to include in a partial response.
25844
25725
  # @param [String] quota_user
@@ -25850,35 +25731,37 @@ module Google
25850
25731
  # Request-specific options
25851
25732
  #
25852
25733
  # @yield [result, err] Result & error if block supplied
25853
- # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
25734
+ # @yieldparam result [Google::Apis::ComputeAlpha::InstantSnapshot] parsed result object
25854
25735
  # @yieldparam err [StandardError] error object if request failed
25855
25736
  #
25856
- # @return [Google::Apis::ComputeAlpha::Operation]
25737
+ # @return [Google::Apis::ComputeAlpha::InstantSnapshot]
25857
25738
  #
25858
25739
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
25859
25740
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
25860
25741
  # @raise [Google::Apis::AuthorizationError] Authorization is required
25861
- def delete_region_notification_endpoint(project, region, notification_endpoint, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
25862
- command = make_simple_command(:delete, 'projects/{project}/regions/{region}/notificationEndpoints/{notificationEndpoint}', options)
25863
- command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
25864
- command.response_class = Google::Apis::ComputeAlpha::Operation
25742
+ def get_region_instant_snapshot(project, region, instant_snapshot, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
25743
+ command = make_simple_command(:get, 'projects/{project}/regions/{region}/instantSnapshots/{instantSnapshot}', options)
25744
+ command.response_representation = Google::Apis::ComputeAlpha::InstantSnapshot::Representation
25745
+ command.response_class = Google::Apis::ComputeAlpha::InstantSnapshot
25865
25746
  command.params['project'] = project unless project.nil?
25866
25747
  command.params['region'] = region unless region.nil?
25867
- command.params['notificationEndpoint'] = notification_endpoint unless notification_endpoint.nil?
25868
- command.query['requestId'] = request_id unless request_id.nil?
25748
+ command.params['instantSnapshot'] = instant_snapshot unless instant_snapshot.nil?
25869
25749
  command.query['fields'] = fields unless fields.nil?
25870
25750
  command.query['quotaUser'] = quota_user unless quota_user.nil?
25871
25751
  command.query['userIp'] = user_ip unless user_ip.nil?
25872
25752
  execute_or_queue_command(command, &block)
25873
25753
  end
25874
25754
 
25875
- # Returns the specified NotificationEndpoint resource in the given region.
25755
+ # Gets the access control policy for a resource. May be empty if no such policy
25756
+ # or resource exists.
25876
25757
  # @param [String] project
25877
25758
  # Project ID for this request.
25878
25759
  # @param [String] region
25879
- # Name of the region scoping this request.
25880
- # @param [String] notification_endpoint
25881
- # Name of the NotificationEndpoint resource to return.
25760
+ # The name of the region for this request.
25761
+ # @param [String] resource
25762
+ # Name or id of the resource for this request.
25763
+ # @param [Fixnum] options_requested_policy_version
25764
+ # Requested IAM Policy version.
25882
25765
  # @param [String] fields
25883
25766
  # Selector specifying which fields to include in a partial response.
25884
25767
  # @param [String] quota_user
@@ -25890,34 +25773,34 @@ module Google
25890
25773
  # Request-specific options
25891
25774
  #
25892
25775
  # @yield [result, err] Result & error if block supplied
25893
- # @yieldparam result [Google::Apis::ComputeAlpha::NotificationEndpoint] parsed result object
25776
+ # @yieldparam result [Google::Apis::ComputeAlpha::Policy] parsed result object
25894
25777
  # @yieldparam err [StandardError] error object if request failed
25895
25778
  #
25896
- # @return [Google::Apis::ComputeAlpha::NotificationEndpoint]
25779
+ # @return [Google::Apis::ComputeAlpha::Policy]
25897
25780
  #
25898
25781
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
25899
25782
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
25900
25783
  # @raise [Google::Apis::AuthorizationError] Authorization is required
25901
- def get_region_notification_endpoint(project, region, notification_endpoint, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
25902
- command = make_simple_command(:get, 'projects/{project}/regions/{region}/notificationEndpoints/{notificationEndpoint}', options)
25903
- command.response_representation = Google::Apis::ComputeAlpha::NotificationEndpoint::Representation
25904
- command.response_class = Google::Apis::ComputeAlpha::NotificationEndpoint
25784
+ def get_region_instant_snapshot_iam_policy(project, region, resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
25785
+ command = make_simple_command(:get, 'projects/{project}/regions/{region}/instantSnapshots/{resource}/getIamPolicy', options)
25786
+ command.response_representation = Google::Apis::ComputeAlpha::Policy::Representation
25787
+ command.response_class = Google::Apis::ComputeAlpha::Policy
25905
25788
  command.params['project'] = project unless project.nil?
25906
25789
  command.params['region'] = region unless region.nil?
25907
- command.params['notificationEndpoint'] = notification_endpoint unless notification_endpoint.nil?
25790
+ command.params['resource'] = resource unless resource.nil?
25791
+ command.query['optionsRequestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
25908
25792
  command.query['fields'] = fields unless fields.nil?
25909
25793
  command.query['quotaUser'] = quota_user unless quota_user.nil?
25910
25794
  command.query['userIp'] = user_ip unless user_ip.nil?
25911
25795
  execute_or_queue_command(command, &block)
25912
25796
  end
25913
25797
 
25914
- # Create a NotificationEndpoint in the specified project in the given region
25915
- # using the parameters that are included in the request.
25798
+ # Creates an instant snapshot in the specified region.
25916
25799
  # @param [String] project
25917
25800
  # Project ID for this request.
25918
25801
  # @param [String] region
25919
- # Name of the region scoping this request.
25920
- # @param [Google::Apis::ComputeAlpha::NotificationEndpoint] notification_endpoint_object
25802
+ # Name of the region for this request.
25803
+ # @param [Google::Apis::ComputeAlpha::InstantSnapshot] instant_snapshot_object
25921
25804
  # @param [String] request_id
25922
25805
  # An optional request ID to identify requests. Specify a unique request ID so
25923
25806
  # that if you must retry your request, the server will know to ignore the
@@ -25948,10 +25831,10 @@ module Google
25948
25831
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
25949
25832
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
25950
25833
  # @raise [Google::Apis::AuthorizationError] Authorization is required
25951
- def insert_region_notification_endpoint(project, region, notification_endpoint_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
25952
- command = make_simple_command(:post, 'projects/{project}/regions/{region}/notificationEndpoints', options)
25953
- command.request_representation = Google::Apis::ComputeAlpha::NotificationEndpoint::Representation
25954
- command.request_object = notification_endpoint_object
25834
+ def insert_region_instant_snapshot(project, region, instant_snapshot_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
25835
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/instantSnapshots', options)
25836
+ command.request_representation = Google::Apis::ComputeAlpha::InstantSnapshot::Representation
25837
+ command.request_object = instant_snapshot_object
25955
25838
  command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
25956
25839
  command.response_class = Google::Apis::ComputeAlpha::Operation
25957
25840
  command.params['project'] = project unless project.nil?
@@ -25963,11 +25846,600 @@ module Google
25963
25846
  execute_or_queue_command(command, &block)
25964
25847
  end
25965
25848
 
25966
- # Lists the NotificationEndpoints for a project in the given region.
25849
+ # Retrieves the list of InstantSnapshot resources contained within the specified
25850
+ # region.
25967
25851
  # @param [String] project
25968
25852
  # Project ID for this request.
25969
25853
  # @param [String] region
25970
- # Name of the region scoping this request.
25854
+ # The name of the region for this request.
25855
+ # @param [String] filter
25856
+ # A filter expression that filters resources listed in the response. The
25857
+ # expression must specify the field name, a comparison operator, and the value
25858
+ # that you want to use for filtering. The value must be a string, a number, or a
25859
+ # boolean. The comparison operator must be either `=`, `!=`, `>`, or `<`.
25860
+ # For example, if you are filtering Compute Engine instances, you can exclude
25861
+ # instances named `example-instance` by specifying `name != example-instance`.
25862
+ # You can also filter nested fields. For example, you could specify `scheduling.
25863
+ # automaticRestart = false` to include instances only if they are not scheduled
25864
+ # for automatic restarts. You can use filtering on nested fields to filter based
25865
+ # on resource labels.
25866
+ # To filter on multiple expressions, provide each separate expression within
25867
+ # parentheses. For example: ``` (scheduling.automaticRestart = true) (
25868
+ # cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND`
25869
+ # expression. However, you can include `AND` and `OR` expressions explicitly.
25870
+ # For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel
25871
+ # Broadwell") AND (scheduling.automaticRestart = true) ```
25872
+ # @param [Fixnum] max_results
25873
+ # The maximum number of results per page that should be returned. If the number
25874
+ # of available results is larger than `maxResults`, Compute Engine returns a `
25875
+ # nextPageToken` that can be used to get the next page of results in subsequent
25876
+ # list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
25877
+ # @param [String] order_by
25878
+ # Sorts list results by a certain order. By default, results are returned in
25879
+ # alphanumerical order based on the resource name.
25880
+ # You can also sort results in descending order based on the creation timestamp
25881
+ # using `orderBy="creationTimestamp desc"`. This sorts results based on the `
25882
+ # creationTimestamp` field in reverse chronological order (newest result first).
25883
+ # Use this to sort resources like operations so that the newest operation is
25884
+ # returned first.
25885
+ # Currently, only sorting by `name` or `creationTimestamp desc` is supported.
25886
+ # @param [String] page_token
25887
+ # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
25888
+ # by a previous list request to get the next page of results.
25889
+ # @param [Boolean] return_partial_success
25890
+ # Opt-in for partial success behavior which provides partial results in case of
25891
+ # failure. The default value is false and the logic is the same as today.
25892
+ # @param [String] fields
25893
+ # Selector specifying which fields to include in a partial response.
25894
+ # @param [String] quota_user
25895
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
25896
+ # characters.
25897
+ # @param [String] user_ip
25898
+ # Deprecated. Please use quotaUser instead.
25899
+ # @param [Google::Apis::RequestOptions] options
25900
+ # Request-specific options
25901
+ #
25902
+ # @yield [result, err] Result & error if block supplied
25903
+ # @yieldparam result [Google::Apis::ComputeAlpha::InstantSnapshotList] parsed result object
25904
+ # @yieldparam err [StandardError] error object if request failed
25905
+ #
25906
+ # @return [Google::Apis::ComputeAlpha::InstantSnapshotList]
25907
+ #
25908
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
25909
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
25910
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
25911
+ def list_region_instant_snapshots(project, region, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
25912
+ command = make_simple_command(:get, 'projects/{project}/regions/{region}/instantSnapshots', options)
25913
+ command.response_representation = Google::Apis::ComputeAlpha::InstantSnapshotList::Representation
25914
+ command.response_class = Google::Apis::ComputeAlpha::InstantSnapshotList
25915
+ command.params['project'] = project unless project.nil?
25916
+ command.params['region'] = region unless region.nil?
25917
+ command.query['filter'] = filter unless filter.nil?
25918
+ command.query['maxResults'] = max_results unless max_results.nil?
25919
+ command.query['orderBy'] = order_by unless order_by.nil?
25920
+ command.query['pageToken'] = page_token unless page_token.nil?
25921
+ command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
25922
+ command.query['fields'] = fields unless fields.nil?
25923
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
25924
+ command.query['userIp'] = user_ip unless user_ip.nil?
25925
+ execute_or_queue_command(command, &block)
25926
+ end
25927
+
25928
+ # Sets the access control policy on the specified resource. Replaces any
25929
+ # existing policy.
25930
+ # @param [String] project
25931
+ # Project ID for this request.
25932
+ # @param [String] region
25933
+ # The name of the region for this request.
25934
+ # @param [String] resource
25935
+ # Name or id of the resource for this request.
25936
+ # @param [Google::Apis::ComputeAlpha::RegionSetPolicyRequest] region_set_policy_request_object
25937
+ # @param [String] fields
25938
+ # Selector specifying which fields to include in a partial response.
25939
+ # @param [String] quota_user
25940
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
25941
+ # characters.
25942
+ # @param [String] user_ip
25943
+ # Deprecated. Please use quotaUser instead.
25944
+ # @param [Google::Apis::RequestOptions] options
25945
+ # Request-specific options
25946
+ #
25947
+ # @yield [result, err] Result & error if block supplied
25948
+ # @yieldparam result [Google::Apis::ComputeAlpha::Policy] parsed result object
25949
+ # @yieldparam err [StandardError] error object if request failed
25950
+ #
25951
+ # @return [Google::Apis::ComputeAlpha::Policy]
25952
+ #
25953
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
25954
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
25955
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
25956
+ def set_region_instant_snapshot_iam_policy(project, region, resource, region_set_policy_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
25957
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/instantSnapshots/{resource}/setIamPolicy', options)
25958
+ command.request_representation = Google::Apis::ComputeAlpha::RegionSetPolicyRequest::Representation
25959
+ command.request_object = region_set_policy_request_object
25960
+ command.response_representation = Google::Apis::ComputeAlpha::Policy::Representation
25961
+ command.response_class = Google::Apis::ComputeAlpha::Policy
25962
+ command.params['project'] = project unless project.nil?
25963
+ command.params['region'] = region unless region.nil?
25964
+ command.params['resource'] = resource unless resource.nil?
25965
+ command.query['fields'] = fields unless fields.nil?
25966
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
25967
+ command.query['userIp'] = user_ip unless user_ip.nil?
25968
+ execute_or_queue_command(command, &block)
25969
+ end
25970
+
25971
+ # Sets the labels on a instantSnapshot in the given region. To learn more about
25972
+ # labels, read the Labeling Resources documentation.
25973
+ # @param [String] project
25974
+ # Project ID for this request.
25975
+ # @param [String] region
25976
+ # The region for this request.
25977
+ # @param [String] resource
25978
+ # Name or id of the resource for this request.
25979
+ # @param [Google::Apis::ComputeAlpha::RegionSetLabelsRequest] region_set_labels_request_object
25980
+ # @param [String] request_id
25981
+ # An optional request ID to identify requests. Specify a unique request ID so
25982
+ # that if you must retry your request, the server will know to ignore the
25983
+ # request if it has already been completed.
25984
+ # For example, consider a situation where you make an initial request and the
25985
+ # request times out. If you make the request again with the same request ID, the
25986
+ # server can check if original operation with the same request ID was received,
25987
+ # and if so, will ignore the second request. This prevents clients from
25988
+ # accidentally creating duplicate commitments.
25989
+ # The request ID must be a valid UUID with the exception that zero UUID is not
25990
+ # supported (00000000-0000-0000-0000-000000000000).
25991
+ # @param [String] fields
25992
+ # Selector specifying which fields to include in a partial response.
25993
+ # @param [String] quota_user
25994
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
25995
+ # characters.
25996
+ # @param [String] user_ip
25997
+ # Deprecated. Please use quotaUser instead.
25998
+ # @param [Google::Apis::RequestOptions] options
25999
+ # Request-specific options
26000
+ #
26001
+ # @yield [result, err] Result & error if block supplied
26002
+ # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
26003
+ # @yieldparam err [StandardError] error object if request failed
26004
+ #
26005
+ # @return [Google::Apis::ComputeAlpha::Operation]
26006
+ #
26007
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
26008
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
26009
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
26010
+ def set_region_instant_snapshot_labels(project, region, resource, region_set_labels_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
26011
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/instantSnapshots/{resource}/setLabels', options)
26012
+ command.request_representation = Google::Apis::ComputeAlpha::RegionSetLabelsRequest::Representation
26013
+ command.request_object = region_set_labels_request_object
26014
+ command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
26015
+ command.response_class = Google::Apis::ComputeAlpha::Operation
26016
+ command.params['project'] = project unless project.nil?
26017
+ command.params['region'] = region unless region.nil?
26018
+ command.params['resource'] = resource unless resource.nil?
26019
+ command.query['requestId'] = request_id unless request_id.nil?
26020
+ command.query['fields'] = fields unless fields.nil?
26021
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
26022
+ command.query['userIp'] = user_ip unless user_ip.nil?
26023
+ execute_or_queue_command(command, &block)
26024
+ end
26025
+
26026
+ # Returns permissions that a caller has on the specified resource.
26027
+ # @param [String] project
26028
+ # Project ID for this request.
26029
+ # @param [String] region
26030
+ # The name of the region for this request.
26031
+ # @param [String] resource
26032
+ # Name or id of the resource for this request.
26033
+ # @param [Google::Apis::ComputeAlpha::TestPermissionsRequest] test_permissions_request_object
26034
+ # @param [String] fields
26035
+ # Selector specifying which fields to include in a partial response.
26036
+ # @param [String] quota_user
26037
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
26038
+ # characters.
26039
+ # @param [String] user_ip
26040
+ # Deprecated. Please use quotaUser instead.
26041
+ # @param [Google::Apis::RequestOptions] options
26042
+ # Request-specific options
26043
+ #
26044
+ # @yield [result, err] Result & error if block supplied
26045
+ # @yieldparam result [Google::Apis::ComputeAlpha::TestPermissionsResponse] parsed result object
26046
+ # @yieldparam err [StandardError] error object if request failed
26047
+ #
26048
+ # @return [Google::Apis::ComputeAlpha::TestPermissionsResponse]
26049
+ #
26050
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
26051
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
26052
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
26053
+ def test_region_instant_snapshot_iam_permissions(project, region, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
26054
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/instantSnapshots/{resource}/testIamPermissions', options)
26055
+ command.request_representation = Google::Apis::ComputeAlpha::TestPermissionsRequest::Representation
26056
+ command.request_object = test_permissions_request_object
26057
+ command.response_representation = Google::Apis::ComputeAlpha::TestPermissionsResponse::Representation
26058
+ command.response_class = Google::Apis::ComputeAlpha::TestPermissionsResponse
26059
+ command.params['project'] = project unless project.nil?
26060
+ command.params['region'] = region unless region.nil?
26061
+ command.params['resource'] = resource unless resource.nil?
26062
+ command.query['fields'] = fields unless fields.nil?
26063
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
26064
+ command.query['userIp'] = user_ip unless user_ip.nil?
26065
+ execute_or_queue_command(command, &block)
26066
+ end
26067
+
26068
+ # Deletes the specified network endpoint group. Note that the NEG cannot be
26069
+ # deleted if it is configured as a backend of a backend service.
26070
+ # @param [String] project
26071
+ # Project ID for this request.
26072
+ # @param [String] region
26073
+ # The name of the region where the network endpoint group is located. It should
26074
+ # comply with RFC1035.
26075
+ # @param [String] network_endpoint_group
26076
+ # The name of the network endpoint group to delete. It should comply with
26077
+ # RFC1035.
26078
+ # @param [String] request_id
26079
+ # An optional request ID to identify requests. Specify a unique request ID so
26080
+ # that if you must retry your request, the server will know to ignore the
26081
+ # request if it has already been completed.
26082
+ # For example, consider a situation where you make an initial request and the
26083
+ # request times out. If you make the request again with the same request ID, the
26084
+ # server can check if original operation with the same request ID was received,
26085
+ # and if so, will ignore the second request. This prevents clients from
26086
+ # accidentally creating duplicate commitments.
26087
+ # The request ID must be a valid UUID with the exception that zero UUID is not
26088
+ # supported (00000000-0000-0000-0000-000000000000).
26089
+ # @param [String] fields
26090
+ # Selector specifying which fields to include in a partial response.
26091
+ # @param [String] quota_user
26092
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
26093
+ # characters.
26094
+ # @param [String] user_ip
26095
+ # Deprecated. Please use quotaUser instead.
26096
+ # @param [Google::Apis::RequestOptions] options
26097
+ # Request-specific options
26098
+ #
26099
+ # @yield [result, err] Result & error if block supplied
26100
+ # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
26101
+ # @yieldparam err [StandardError] error object if request failed
26102
+ #
26103
+ # @return [Google::Apis::ComputeAlpha::Operation]
26104
+ #
26105
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
26106
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
26107
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
26108
+ def delete_region_network_endpoint_group(project, region, network_endpoint_group, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
26109
+ command = make_simple_command(:delete, 'projects/{project}/regions/{region}/networkEndpointGroups/{networkEndpointGroup}', options)
26110
+ command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
26111
+ command.response_class = Google::Apis::ComputeAlpha::Operation
26112
+ command.params['project'] = project unless project.nil?
26113
+ command.params['region'] = region unless region.nil?
26114
+ command.params['networkEndpointGroup'] = network_endpoint_group unless network_endpoint_group.nil?
26115
+ command.query['requestId'] = request_id unless request_id.nil?
26116
+ command.query['fields'] = fields unless fields.nil?
26117
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
26118
+ command.query['userIp'] = user_ip unless user_ip.nil?
26119
+ execute_or_queue_command(command, &block)
26120
+ end
26121
+
26122
+ # Returns the specified network endpoint group. Gets a list of available network
26123
+ # endpoint groups by making a list() request.
26124
+ # @param [String] project
26125
+ # Project ID for this request.
26126
+ # @param [String] region
26127
+ # The name of the region where the network endpoint group is located. It should
26128
+ # comply with RFC1035.
26129
+ # @param [String] network_endpoint_group
26130
+ # The name of the network endpoint group. It should comply with RFC1035.
26131
+ # @param [String] fields
26132
+ # Selector specifying which fields to include in a partial response.
26133
+ # @param [String] quota_user
26134
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
26135
+ # characters.
26136
+ # @param [String] user_ip
26137
+ # Deprecated. Please use quotaUser instead.
26138
+ # @param [Google::Apis::RequestOptions] options
26139
+ # Request-specific options
26140
+ #
26141
+ # @yield [result, err] Result & error if block supplied
26142
+ # @yieldparam result [Google::Apis::ComputeAlpha::NetworkEndpointGroup] parsed result object
26143
+ # @yieldparam err [StandardError] error object if request failed
26144
+ #
26145
+ # @return [Google::Apis::ComputeAlpha::NetworkEndpointGroup]
26146
+ #
26147
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
26148
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
26149
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
26150
+ def get_region_network_endpoint_group(project, region, network_endpoint_group, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
26151
+ command = make_simple_command(:get, 'projects/{project}/regions/{region}/networkEndpointGroups/{networkEndpointGroup}', options)
26152
+ command.response_representation = Google::Apis::ComputeAlpha::NetworkEndpointGroup::Representation
26153
+ command.response_class = Google::Apis::ComputeAlpha::NetworkEndpointGroup
26154
+ command.params['project'] = project unless project.nil?
26155
+ command.params['region'] = region unless region.nil?
26156
+ command.params['networkEndpointGroup'] = network_endpoint_group unless network_endpoint_group.nil?
26157
+ command.query['fields'] = fields unless fields.nil?
26158
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
26159
+ command.query['userIp'] = user_ip unless user_ip.nil?
26160
+ execute_or_queue_command(command, &block)
26161
+ end
26162
+
26163
+ # Creates a network endpoint group in the specified project using the parameters
26164
+ # that are included in the request.
26165
+ # @param [String] project
26166
+ # Project ID for this request.
26167
+ # @param [String] region
26168
+ # The name of the region where you want to create the network endpoint group. It
26169
+ # should comply with RFC1035.
26170
+ # @param [Google::Apis::ComputeAlpha::NetworkEndpointGroup] network_endpoint_group_object
26171
+ # @param [String] request_id
26172
+ # An optional request ID to identify requests. Specify a unique request ID so
26173
+ # that if you must retry your request, the server will know to ignore the
26174
+ # request if it has already been completed.
26175
+ # For example, consider a situation where you make an initial request and the
26176
+ # request times out. If you make the request again with the same request ID, the
26177
+ # server can check if original operation with the same request ID was received,
26178
+ # and if so, will ignore the second request. This prevents clients from
26179
+ # accidentally creating duplicate commitments.
26180
+ # The request ID must be a valid UUID with the exception that zero UUID is not
26181
+ # supported (00000000-0000-0000-0000-000000000000).
26182
+ # @param [String] fields
26183
+ # Selector specifying which fields to include in a partial response.
26184
+ # @param [String] quota_user
26185
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
26186
+ # characters.
26187
+ # @param [String] user_ip
26188
+ # Deprecated. Please use quotaUser instead.
26189
+ # @param [Google::Apis::RequestOptions] options
26190
+ # Request-specific options
26191
+ #
26192
+ # @yield [result, err] Result & error if block supplied
26193
+ # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
26194
+ # @yieldparam err [StandardError] error object if request failed
26195
+ #
26196
+ # @return [Google::Apis::ComputeAlpha::Operation]
26197
+ #
26198
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
26199
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
26200
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
26201
+ def insert_region_network_endpoint_group(project, region, network_endpoint_group_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
26202
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/networkEndpointGroups', options)
26203
+ command.request_representation = Google::Apis::ComputeAlpha::NetworkEndpointGroup::Representation
26204
+ command.request_object = network_endpoint_group_object
26205
+ command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
26206
+ command.response_class = Google::Apis::ComputeAlpha::Operation
26207
+ command.params['project'] = project unless project.nil?
26208
+ command.params['region'] = region unless region.nil?
26209
+ command.query['requestId'] = request_id unless request_id.nil?
26210
+ command.query['fields'] = fields unless fields.nil?
26211
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
26212
+ command.query['userIp'] = user_ip unless user_ip.nil?
26213
+ execute_or_queue_command(command, &block)
26214
+ end
26215
+
26216
+ # Retrieves the list of regional network endpoint groups available to the
26217
+ # specified project in the given region.
26218
+ # @param [String] project
26219
+ # Project ID for this request.
26220
+ # @param [String] region
26221
+ # The name of the region where the network endpoint group is located. It should
26222
+ # comply with RFC1035.
26223
+ # @param [String] filter
26224
+ # A filter expression that filters resources listed in the response. The
26225
+ # expression must specify the field name, a comparison operator, and the value
26226
+ # that you want to use for filtering. The value must be a string, a number, or a
26227
+ # boolean. The comparison operator must be either `=`, `!=`, `>`, or `<`.
26228
+ # For example, if you are filtering Compute Engine instances, you can exclude
26229
+ # instances named `example-instance` by specifying `name != example-instance`.
26230
+ # You can also filter nested fields. For example, you could specify `scheduling.
26231
+ # automaticRestart = false` to include instances only if they are not scheduled
26232
+ # for automatic restarts. You can use filtering on nested fields to filter based
26233
+ # on resource labels.
26234
+ # To filter on multiple expressions, provide each separate expression within
26235
+ # parentheses. For example: ``` (scheduling.automaticRestart = true) (
26236
+ # cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND`
26237
+ # expression. However, you can include `AND` and `OR` expressions explicitly.
26238
+ # For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel
26239
+ # Broadwell") AND (scheduling.automaticRestart = true) ```
26240
+ # @param [Fixnum] max_results
26241
+ # The maximum number of results per page that should be returned. If the number
26242
+ # of available results is larger than `maxResults`, Compute Engine returns a `
26243
+ # nextPageToken` that can be used to get the next page of results in subsequent
26244
+ # list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
26245
+ # @param [String] order_by
26246
+ # Sorts list results by a certain order. By default, results are returned in
26247
+ # alphanumerical order based on the resource name.
26248
+ # You can also sort results in descending order based on the creation timestamp
26249
+ # using `orderBy="creationTimestamp desc"`. This sorts results based on the `
26250
+ # creationTimestamp` field in reverse chronological order (newest result first).
26251
+ # Use this to sort resources like operations so that the newest operation is
26252
+ # returned first.
26253
+ # Currently, only sorting by `name` or `creationTimestamp desc` is supported.
26254
+ # @param [String] page_token
26255
+ # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
26256
+ # by a previous list request to get the next page of results.
26257
+ # @param [Boolean] return_partial_success
26258
+ # Opt-in for partial success behavior which provides partial results in case of
26259
+ # failure. The default value is false and the logic is the same as today.
26260
+ # @param [String] fields
26261
+ # Selector specifying which fields to include in a partial response.
26262
+ # @param [String] quota_user
26263
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
26264
+ # characters.
26265
+ # @param [String] user_ip
26266
+ # Deprecated. Please use quotaUser instead.
26267
+ # @param [Google::Apis::RequestOptions] options
26268
+ # Request-specific options
26269
+ #
26270
+ # @yield [result, err] Result & error if block supplied
26271
+ # @yieldparam result [Google::Apis::ComputeAlpha::NetworkEndpointGroupList] parsed result object
26272
+ # @yieldparam err [StandardError] error object if request failed
26273
+ #
26274
+ # @return [Google::Apis::ComputeAlpha::NetworkEndpointGroupList]
26275
+ #
26276
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
26277
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
26278
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
26279
+ def list_region_network_endpoint_groups(project, region, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
26280
+ command = make_simple_command(:get, 'projects/{project}/regions/{region}/networkEndpointGroups', options)
26281
+ command.response_representation = Google::Apis::ComputeAlpha::NetworkEndpointGroupList::Representation
26282
+ command.response_class = Google::Apis::ComputeAlpha::NetworkEndpointGroupList
26283
+ command.params['project'] = project unless project.nil?
26284
+ command.params['region'] = region unless region.nil?
26285
+ command.query['filter'] = filter unless filter.nil?
26286
+ command.query['maxResults'] = max_results unless max_results.nil?
26287
+ command.query['orderBy'] = order_by unless order_by.nil?
26288
+ command.query['pageToken'] = page_token unless page_token.nil?
26289
+ command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
26290
+ command.query['fields'] = fields unless fields.nil?
26291
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
26292
+ command.query['userIp'] = user_ip unless user_ip.nil?
26293
+ execute_or_queue_command(command, &block)
26294
+ end
26295
+
26296
+ # Deletes the specified NotificationEndpoint in the given region
26297
+ # @param [String] project
26298
+ # Project ID for this request.
26299
+ # @param [String] region
26300
+ # Name of the region scoping this request.
26301
+ # @param [String] notification_endpoint
26302
+ # Name of the NotificationEndpoint resource to delete.
26303
+ # @param [String] request_id
26304
+ # An optional request ID to identify requests. Specify a unique request ID so
26305
+ # that if you must retry your request, the server will know to ignore the
26306
+ # request if it has already been completed.
26307
+ # For example, consider a situation where you make an initial request and the
26308
+ # request times out. If you make the request again with the same request ID, the
26309
+ # server can check if original operation with the same request ID was received,
26310
+ # and if so, will ignore the second request. This prevents clients from
26311
+ # accidentally creating duplicate commitments.
26312
+ # The request ID must be a valid UUID with the exception that zero UUID is not
26313
+ # supported (00000000-0000-0000-0000-000000000000).
26314
+ # @param [String] fields
26315
+ # Selector specifying which fields to include in a partial response.
26316
+ # @param [String] quota_user
26317
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
26318
+ # characters.
26319
+ # @param [String] user_ip
26320
+ # Deprecated. Please use quotaUser instead.
26321
+ # @param [Google::Apis::RequestOptions] options
26322
+ # Request-specific options
26323
+ #
26324
+ # @yield [result, err] Result & error if block supplied
26325
+ # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
26326
+ # @yieldparam err [StandardError] error object if request failed
26327
+ #
26328
+ # @return [Google::Apis::ComputeAlpha::Operation]
26329
+ #
26330
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
26331
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
26332
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
26333
+ def delete_region_notification_endpoint(project, region, notification_endpoint, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
26334
+ command = make_simple_command(:delete, 'projects/{project}/regions/{region}/notificationEndpoints/{notificationEndpoint}', options)
26335
+ command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
26336
+ command.response_class = Google::Apis::ComputeAlpha::Operation
26337
+ command.params['project'] = project unless project.nil?
26338
+ command.params['region'] = region unless region.nil?
26339
+ command.params['notificationEndpoint'] = notification_endpoint unless notification_endpoint.nil?
26340
+ command.query['requestId'] = request_id unless request_id.nil?
26341
+ command.query['fields'] = fields unless fields.nil?
26342
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
26343
+ command.query['userIp'] = user_ip unless user_ip.nil?
26344
+ execute_or_queue_command(command, &block)
26345
+ end
26346
+
26347
+ # Returns the specified NotificationEndpoint resource in the given region.
26348
+ # @param [String] project
26349
+ # Project ID for this request.
26350
+ # @param [String] region
26351
+ # Name of the region scoping this request.
26352
+ # @param [String] notification_endpoint
26353
+ # Name of the NotificationEndpoint resource to return.
26354
+ # @param [String] fields
26355
+ # Selector specifying which fields to include in a partial response.
26356
+ # @param [String] quota_user
26357
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
26358
+ # characters.
26359
+ # @param [String] user_ip
26360
+ # Deprecated. Please use quotaUser instead.
26361
+ # @param [Google::Apis::RequestOptions] options
26362
+ # Request-specific options
26363
+ #
26364
+ # @yield [result, err] Result & error if block supplied
26365
+ # @yieldparam result [Google::Apis::ComputeAlpha::NotificationEndpoint] parsed result object
26366
+ # @yieldparam err [StandardError] error object if request failed
26367
+ #
26368
+ # @return [Google::Apis::ComputeAlpha::NotificationEndpoint]
26369
+ #
26370
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
26371
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
26372
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
26373
+ def get_region_notification_endpoint(project, region, notification_endpoint, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
26374
+ command = make_simple_command(:get, 'projects/{project}/regions/{region}/notificationEndpoints/{notificationEndpoint}', options)
26375
+ command.response_representation = Google::Apis::ComputeAlpha::NotificationEndpoint::Representation
26376
+ command.response_class = Google::Apis::ComputeAlpha::NotificationEndpoint
26377
+ command.params['project'] = project unless project.nil?
26378
+ command.params['region'] = region unless region.nil?
26379
+ command.params['notificationEndpoint'] = notification_endpoint unless notification_endpoint.nil?
26380
+ command.query['fields'] = fields unless fields.nil?
26381
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
26382
+ command.query['userIp'] = user_ip unless user_ip.nil?
26383
+ execute_or_queue_command(command, &block)
26384
+ end
26385
+
26386
+ # Create a NotificationEndpoint in the specified project in the given region
26387
+ # using the parameters that are included in the request.
26388
+ # @param [String] project
26389
+ # Project ID for this request.
26390
+ # @param [String] region
26391
+ # Name of the region scoping this request.
26392
+ # @param [Google::Apis::ComputeAlpha::NotificationEndpoint] notification_endpoint_object
26393
+ # @param [String] request_id
26394
+ # An optional request ID to identify requests. Specify a unique request ID so
26395
+ # that if you must retry your request, the server will know to ignore the
26396
+ # request if it has already been completed.
26397
+ # For example, consider a situation where you make an initial request and the
26398
+ # request times out. If you make the request again with the same request ID, the
26399
+ # server can check if original operation with the same request ID was received,
26400
+ # and if so, will ignore the second request. This prevents clients from
26401
+ # accidentally creating duplicate commitments.
26402
+ # The request ID must be a valid UUID with the exception that zero UUID is not
26403
+ # supported (00000000-0000-0000-0000-000000000000).
26404
+ # @param [String] fields
26405
+ # Selector specifying which fields to include in a partial response.
26406
+ # @param [String] quota_user
26407
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
26408
+ # characters.
26409
+ # @param [String] user_ip
26410
+ # Deprecated. Please use quotaUser instead.
26411
+ # @param [Google::Apis::RequestOptions] options
26412
+ # Request-specific options
26413
+ #
26414
+ # @yield [result, err] Result & error if block supplied
26415
+ # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
26416
+ # @yieldparam err [StandardError] error object if request failed
26417
+ #
26418
+ # @return [Google::Apis::ComputeAlpha::Operation]
26419
+ #
26420
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
26421
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
26422
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
26423
+ def insert_region_notification_endpoint(project, region, notification_endpoint_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
26424
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/notificationEndpoints', options)
26425
+ command.request_representation = Google::Apis::ComputeAlpha::NotificationEndpoint::Representation
26426
+ command.request_object = notification_endpoint_object
26427
+ command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
26428
+ command.response_class = Google::Apis::ComputeAlpha::Operation
26429
+ command.params['project'] = project unless project.nil?
26430
+ command.params['region'] = region unless region.nil?
26431
+ command.query['requestId'] = request_id unless request_id.nil?
26432
+ command.query['fields'] = fields unless fields.nil?
26433
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
26434
+ command.query['userIp'] = user_ip unless user_ip.nil?
26435
+ execute_or_queue_command(command, &block)
26436
+ end
26437
+
26438
+ # Lists the NotificationEndpoints for a project in the given region.
26439
+ # @param [String] project
26440
+ # Project ID for this request.
26441
+ # @param [String] region
26442
+ # Name of the region scoping this request.
25971
26443
  # @param [String] filter
25972
26444
  # A filter expression that filters resources listed in the response. The
25973
26445
  # expression must specify the field name, a comparison operator, and the value
@@ -30325,14 +30797,229 @@ module Google
30325
30797
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
30326
30798
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
30327
30799
  # @raise [Google::Apis::AuthorizationError] Authorization is required
30328
- def insert_service_attachment(project, region, service_attachment_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
30329
- command = make_simple_command(:post, 'projects/{project}/regions/{region}/serviceAttachments', options)
30330
- command.request_representation = Google::Apis::ComputeAlpha::ServiceAttachment::Representation
30331
- command.request_object = service_attachment_object
30800
+ def insert_service_attachment(project, region, service_attachment_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
30801
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/serviceAttachments', options)
30802
+ command.request_representation = Google::Apis::ComputeAlpha::ServiceAttachment::Representation
30803
+ command.request_object = service_attachment_object
30804
+ command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
30805
+ command.response_class = Google::Apis::ComputeAlpha::Operation
30806
+ command.params['project'] = project unless project.nil?
30807
+ command.params['region'] = region unless region.nil?
30808
+ command.query['requestId'] = request_id unless request_id.nil?
30809
+ command.query['fields'] = fields unless fields.nil?
30810
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
30811
+ command.query['userIp'] = user_ip unless user_ip.nil?
30812
+ execute_or_queue_command(command, &block)
30813
+ end
30814
+
30815
+ # Lists the ServiceAttachments for a project in the given scope.
30816
+ # @param [String] project
30817
+ # Project ID for this request.
30818
+ # @param [String] region
30819
+ # Name of the region of this request.
30820
+ # @param [String] filter
30821
+ # A filter expression that filters resources listed in the response. The
30822
+ # expression must specify the field name, a comparison operator, and the value
30823
+ # that you want to use for filtering. The value must be a string, a number, or a
30824
+ # boolean. The comparison operator must be either `=`, `!=`, `>`, or `<`.
30825
+ # For example, if you are filtering Compute Engine instances, you can exclude
30826
+ # instances named `example-instance` by specifying `name != example-instance`.
30827
+ # You can also filter nested fields. For example, you could specify `scheduling.
30828
+ # automaticRestart = false` to include instances only if they are not scheduled
30829
+ # for automatic restarts. You can use filtering on nested fields to filter based
30830
+ # on resource labels.
30831
+ # To filter on multiple expressions, provide each separate expression within
30832
+ # parentheses. For example: ``` (scheduling.automaticRestart = true) (
30833
+ # cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND`
30834
+ # expression. However, you can include `AND` and `OR` expressions explicitly.
30835
+ # For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel
30836
+ # Broadwell") AND (scheduling.automaticRestart = true) ```
30837
+ # @param [Fixnum] max_results
30838
+ # The maximum number of results per page that should be returned. If the number
30839
+ # of available results is larger than `maxResults`, Compute Engine returns a `
30840
+ # nextPageToken` that can be used to get the next page of results in subsequent
30841
+ # list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
30842
+ # @param [String] order_by
30843
+ # Sorts list results by a certain order. By default, results are returned in
30844
+ # alphanumerical order based on the resource name.
30845
+ # You can also sort results in descending order based on the creation timestamp
30846
+ # using `orderBy="creationTimestamp desc"`. This sorts results based on the `
30847
+ # creationTimestamp` field in reverse chronological order (newest result first).
30848
+ # Use this to sort resources like operations so that the newest operation is
30849
+ # returned first.
30850
+ # Currently, only sorting by `name` or `creationTimestamp desc` is supported.
30851
+ # @param [String] page_token
30852
+ # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
30853
+ # by a previous list request to get the next page of results.
30854
+ # @param [Boolean] return_partial_success
30855
+ # Opt-in for partial success behavior which provides partial results in case of
30856
+ # failure. The default value is false and the logic is the same as today.
30857
+ # @param [String] fields
30858
+ # Selector specifying which fields to include in a partial response.
30859
+ # @param [String] quota_user
30860
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
30861
+ # characters.
30862
+ # @param [String] user_ip
30863
+ # Deprecated. Please use quotaUser instead.
30864
+ # @param [Google::Apis::RequestOptions] options
30865
+ # Request-specific options
30866
+ #
30867
+ # @yield [result, err] Result & error if block supplied
30868
+ # @yieldparam result [Google::Apis::ComputeAlpha::ServiceAttachmentList] parsed result object
30869
+ # @yieldparam err [StandardError] error object if request failed
30870
+ #
30871
+ # @return [Google::Apis::ComputeAlpha::ServiceAttachmentList]
30872
+ #
30873
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
30874
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
30875
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
30876
+ def list_service_attachments(project, region, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
30877
+ command = make_simple_command(:get, 'projects/{project}/regions/{region}/serviceAttachments', options)
30878
+ command.response_representation = Google::Apis::ComputeAlpha::ServiceAttachmentList::Representation
30879
+ command.response_class = Google::Apis::ComputeAlpha::ServiceAttachmentList
30880
+ command.params['project'] = project unless project.nil?
30881
+ command.params['region'] = region unless region.nil?
30882
+ command.query['filter'] = filter unless filter.nil?
30883
+ command.query['maxResults'] = max_results unless max_results.nil?
30884
+ command.query['orderBy'] = order_by unless order_by.nil?
30885
+ command.query['pageToken'] = page_token unless page_token.nil?
30886
+ command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
30887
+ command.query['fields'] = fields unless fields.nil?
30888
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
30889
+ command.query['userIp'] = user_ip unless user_ip.nil?
30890
+ execute_or_queue_command(command, &block)
30891
+ end
30892
+
30893
+ # Sets the access control policy on the specified resource. Replaces any
30894
+ # existing policy.
30895
+ # @param [String] project
30896
+ # Project ID for this request.
30897
+ # @param [String] region
30898
+ # The name of the region for this request.
30899
+ # @param [String] resource
30900
+ # Name or id of the resource for this request.
30901
+ # @param [Google::Apis::ComputeAlpha::RegionSetPolicyRequest] region_set_policy_request_object
30902
+ # @param [String] fields
30903
+ # Selector specifying which fields to include in a partial response.
30904
+ # @param [String] quota_user
30905
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
30906
+ # characters.
30907
+ # @param [String] user_ip
30908
+ # Deprecated. Please use quotaUser instead.
30909
+ # @param [Google::Apis::RequestOptions] options
30910
+ # Request-specific options
30911
+ #
30912
+ # @yield [result, err] Result & error if block supplied
30913
+ # @yieldparam result [Google::Apis::ComputeAlpha::Policy] parsed result object
30914
+ # @yieldparam err [StandardError] error object if request failed
30915
+ #
30916
+ # @return [Google::Apis::ComputeAlpha::Policy]
30917
+ #
30918
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
30919
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
30920
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
30921
+ def set_service_attachment_iam_policy(project, region, resource, region_set_policy_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
30922
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/serviceAttachments/{resource}/setIamPolicy', options)
30923
+ command.request_representation = Google::Apis::ComputeAlpha::RegionSetPolicyRequest::Representation
30924
+ command.request_object = region_set_policy_request_object
30925
+ command.response_representation = Google::Apis::ComputeAlpha::Policy::Representation
30926
+ command.response_class = Google::Apis::ComputeAlpha::Policy
30927
+ command.params['project'] = project unless project.nil?
30928
+ command.params['region'] = region unless region.nil?
30929
+ command.params['resource'] = resource unless resource.nil?
30930
+ command.query['fields'] = fields unless fields.nil?
30931
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
30932
+ command.query['userIp'] = user_ip unless user_ip.nil?
30933
+ execute_or_queue_command(command, &block)
30934
+ end
30935
+
30936
+ # Returns permissions that a caller has on the specified resource.
30937
+ # @param [String] project
30938
+ # Project ID for this request.
30939
+ # @param [String] region
30940
+ # The name of the region for this request.
30941
+ # @param [String] resource
30942
+ # Name or id of the resource for this request.
30943
+ # @param [Google::Apis::ComputeAlpha::TestPermissionsRequest] test_permissions_request_object
30944
+ # @param [String] fields
30945
+ # Selector specifying which fields to include in a partial response.
30946
+ # @param [String] quota_user
30947
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
30948
+ # characters.
30949
+ # @param [String] user_ip
30950
+ # Deprecated. Please use quotaUser instead.
30951
+ # @param [Google::Apis::RequestOptions] options
30952
+ # Request-specific options
30953
+ #
30954
+ # @yield [result, err] Result & error if block supplied
30955
+ # @yieldparam result [Google::Apis::ComputeAlpha::TestPermissionsResponse] parsed result object
30956
+ # @yieldparam err [StandardError] error object if request failed
30957
+ #
30958
+ # @return [Google::Apis::ComputeAlpha::TestPermissionsResponse]
30959
+ #
30960
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
30961
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
30962
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
30963
+ def test_service_attachment_iam_permissions(project, region, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
30964
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/serviceAttachments/{resource}/testIamPermissions', options)
30965
+ command.request_representation = Google::Apis::ComputeAlpha::TestPermissionsRequest::Representation
30966
+ command.request_object = test_permissions_request_object
30967
+ command.response_representation = Google::Apis::ComputeAlpha::TestPermissionsResponse::Representation
30968
+ command.response_class = Google::Apis::ComputeAlpha::TestPermissionsResponse
30969
+ command.params['project'] = project unless project.nil?
30970
+ command.params['region'] = region unless region.nil?
30971
+ command.params['resource'] = resource unless resource.nil?
30972
+ command.query['fields'] = fields unless fields.nil?
30973
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
30974
+ command.query['userIp'] = user_ip unless user_ip.nil?
30975
+ execute_or_queue_command(command, &block)
30976
+ end
30977
+
30978
+ # Deletes the specified Snapshot resource. Keep in mind that deleting a single
30979
+ # snapshot might not necessarily delete all the data on that snapshot. If any
30980
+ # data on the snapshot that is marked for deletion is needed for subsequent
30981
+ # snapshots, the data will be moved to the next corresponding snapshot.
30982
+ # For more information, see Deleting snapshots.
30983
+ # @param [String] project
30984
+ # Project ID for this request.
30985
+ # @param [String] snapshot
30986
+ # Name of the Snapshot resource to delete.
30987
+ # @param [String] request_id
30988
+ # An optional request ID to identify requests. Specify a unique request ID so
30989
+ # that if you must retry your request, the server will know to ignore the
30990
+ # request if it has already been completed.
30991
+ # For example, consider a situation where you make an initial request and the
30992
+ # request times out. If you make the request again with the same request ID, the
30993
+ # server can check if original operation with the same request ID was received,
30994
+ # and if so, will ignore the second request. This prevents clients from
30995
+ # accidentally creating duplicate commitments.
30996
+ # The request ID must be a valid UUID with the exception that zero UUID is not
30997
+ # supported (00000000-0000-0000-0000-000000000000).
30998
+ # @param [String] fields
30999
+ # Selector specifying which fields to include in a partial response.
31000
+ # @param [String] quota_user
31001
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
31002
+ # characters.
31003
+ # @param [String] user_ip
31004
+ # Deprecated. Please use quotaUser instead.
31005
+ # @param [Google::Apis::RequestOptions] options
31006
+ # Request-specific options
31007
+ #
31008
+ # @yield [result, err] Result & error if block supplied
31009
+ # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
31010
+ # @yieldparam err [StandardError] error object if request failed
31011
+ #
31012
+ # @return [Google::Apis::ComputeAlpha::Operation]
31013
+ #
31014
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
31015
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
31016
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
31017
+ def delete_snapshot(project, snapshot, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
31018
+ command = make_simple_command(:delete, 'projects/{project}/global/snapshots/{snapshot}', options)
30332
31019
  command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
30333
31020
  command.response_class = Google::Apis::ComputeAlpha::Operation
30334
31021
  command.params['project'] = project unless project.nil?
30335
- command.params['region'] = region unless region.nil?
31022
+ command.params['snapshot'] = snapshot unless snapshot.nil?
30336
31023
  command.query['requestId'] = request_id unless request_id.nil?
30337
31024
  command.query['fields'] = fields unless fields.nil?
30338
31025
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -30340,48 +31027,12 @@ module Google
30340
31027
  execute_or_queue_command(command, &block)
30341
31028
  end
30342
31029
 
30343
- # Lists the ServiceAttachments for a project in the given scope.
31030
+ # Returns the specified Snapshot resource. Gets a list of available snapshots by
31031
+ # making a list() request.
30344
31032
  # @param [String] project
30345
31033
  # Project ID for this request.
30346
- # @param [String] region
30347
- # Name of the region of this request.
30348
- # @param [String] filter
30349
- # A filter expression that filters resources listed in the response. The
30350
- # expression must specify the field name, a comparison operator, and the value
30351
- # that you want to use for filtering. The value must be a string, a number, or a
30352
- # boolean. The comparison operator must be either `=`, `!=`, `>`, or `<`.
30353
- # For example, if you are filtering Compute Engine instances, you can exclude
30354
- # instances named `example-instance` by specifying `name != example-instance`.
30355
- # You can also filter nested fields. For example, you could specify `scheduling.
30356
- # automaticRestart = false` to include instances only if they are not scheduled
30357
- # for automatic restarts. You can use filtering on nested fields to filter based
30358
- # on resource labels.
30359
- # To filter on multiple expressions, provide each separate expression within
30360
- # parentheses. For example: ``` (scheduling.automaticRestart = true) (
30361
- # cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND`
30362
- # expression. However, you can include `AND` and `OR` expressions explicitly.
30363
- # For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel
30364
- # Broadwell") AND (scheduling.automaticRestart = true) ```
30365
- # @param [Fixnum] max_results
30366
- # The maximum number of results per page that should be returned. If the number
30367
- # of available results is larger than `maxResults`, Compute Engine returns a `
30368
- # nextPageToken` that can be used to get the next page of results in subsequent
30369
- # list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
30370
- # @param [String] order_by
30371
- # Sorts list results by a certain order. By default, results are returned in
30372
- # alphanumerical order based on the resource name.
30373
- # You can also sort results in descending order based on the creation timestamp
30374
- # using `orderBy="creationTimestamp desc"`. This sorts results based on the `
30375
- # creationTimestamp` field in reverse chronological order (newest result first).
30376
- # Use this to sort resources like operations so that the newest operation is
30377
- # returned first.
30378
- # Currently, only sorting by `name` or `creationTimestamp desc` is supported.
30379
- # @param [String] page_token
30380
- # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
30381
- # by a previous list request to get the next page of results.
30382
- # @param [Boolean] return_partial_success
30383
- # Opt-in for partial success behavior which provides partial results in case of
30384
- # failure. The default value is false and the logic is the same as today.
31034
+ # @param [String] snapshot
31035
+ # Name of the Snapshot resource to return.
30385
31036
  # @param [String] fields
30386
31037
  # Selector specifying which fields to include in a partial response.
30387
31038
  # @param [String] quota_user
@@ -30393,40 +31044,34 @@ module Google
30393
31044
  # Request-specific options
30394
31045
  #
30395
31046
  # @yield [result, err] Result & error if block supplied
30396
- # @yieldparam result [Google::Apis::ComputeAlpha::ServiceAttachmentList] parsed result object
31047
+ # @yieldparam result [Google::Apis::ComputeAlpha::Snapshot] parsed result object
30397
31048
  # @yieldparam err [StandardError] error object if request failed
30398
31049
  #
30399
- # @return [Google::Apis::ComputeAlpha::ServiceAttachmentList]
31050
+ # @return [Google::Apis::ComputeAlpha::Snapshot]
30400
31051
  #
30401
31052
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
30402
31053
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
30403
31054
  # @raise [Google::Apis::AuthorizationError] Authorization is required
30404
- def list_service_attachments(project, region, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
30405
- command = make_simple_command(:get, 'projects/{project}/regions/{region}/serviceAttachments', options)
30406
- command.response_representation = Google::Apis::ComputeAlpha::ServiceAttachmentList::Representation
30407
- command.response_class = Google::Apis::ComputeAlpha::ServiceAttachmentList
31055
+ def get_snapshot(project, snapshot, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
31056
+ command = make_simple_command(:get, 'projects/{project}/global/snapshots/{snapshot}', options)
31057
+ command.response_representation = Google::Apis::ComputeAlpha::Snapshot::Representation
31058
+ command.response_class = Google::Apis::ComputeAlpha::Snapshot
30408
31059
  command.params['project'] = project unless project.nil?
30409
- command.params['region'] = region unless region.nil?
30410
- command.query['filter'] = filter unless filter.nil?
30411
- command.query['maxResults'] = max_results unless max_results.nil?
30412
- command.query['orderBy'] = order_by unless order_by.nil?
30413
- command.query['pageToken'] = page_token unless page_token.nil?
30414
- command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
31060
+ command.params['snapshot'] = snapshot unless snapshot.nil?
30415
31061
  command.query['fields'] = fields unless fields.nil?
30416
31062
  command.query['quotaUser'] = quota_user unless quota_user.nil?
30417
31063
  command.query['userIp'] = user_ip unless user_ip.nil?
30418
31064
  execute_or_queue_command(command, &block)
30419
31065
  end
30420
31066
 
30421
- # Sets the access control policy on the specified resource. Replaces any
30422
- # existing policy.
31067
+ # Gets the access control policy for a resource. May be empty if no such policy
31068
+ # or resource exists.
30423
31069
  # @param [String] project
30424
31070
  # Project ID for this request.
30425
- # @param [String] region
30426
- # The name of the region for this request.
30427
31071
  # @param [String] resource
30428
31072
  # Name or id of the resource for this request.
30429
- # @param [Google::Apis::ComputeAlpha::RegionSetPolicyRequest] region_set_policy_request_object
31073
+ # @param [Fixnum] options_requested_policy_version
31074
+ # Requested IAM Policy version.
30430
31075
  # @param [String] fields
30431
31076
  # Selector specifying which fields to include in a partial response.
30432
31077
  # @param [String] quota_user
@@ -30446,72 +31091,24 @@ module Google
30446
31091
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
30447
31092
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
30448
31093
  # @raise [Google::Apis::AuthorizationError] Authorization is required
30449
- def set_service_attachment_iam_policy(project, region, resource, region_set_policy_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
30450
- command = make_simple_command(:post, 'projects/{project}/regions/{region}/serviceAttachments/{resource}/setIamPolicy', options)
30451
- command.request_representation = Google::Apis::ComputeAlpha::RegionSetPolicyRequest::Representation
30452
- command.request_object = region_set_policy_request_object
31094
+ def get_snapshot_iam_policy(project, resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
31095
+ command = make_simple_command(:get, 'projects/{project}/global/snapshots/{resource}/getIamPolicy', options)
30453
31096
  command.response_representation = Google::Apis::ComputeAlpha::Policy::Representation
30454
31097
  command.response_class = Google::Apis::ComputeAlpha::Policy
30455
31098
  command.params['project'] = project unless project.nil?
30456
- command.params['region'] = region unless region.nil?
30457
- command.params['resource'] = resource unless resource.nil?
30458
- command.query['fields'] = fields unless fields.nil?
30459
- command.query['quotaUser'] = quota_user unless quota_user.nil?
30460
- command.query['userIp'] = user_ip unless user_ip.nil?
30461
- execute_or_queue_command(command, &block)
30462
- end
30463
-
30464
- # Returns permissions that a caller has on the specified resource.
30465
- # @param [String] project
30466
- # Project ID for this request.
30467
- # @param [String] region
30468
- # The name of the region for this request.
30469
- # @param [String] resource
30470
- # Name or id of the resource for this request.
30471
- # @param [Google::Apis::ComputeAlpha::TestPermissionsRequest] test_permissions_request_object
30472
- # @param [String] fields
30473
- # Selector specifying which fields to include in a partial response.
30474
- # @param [String] quota_user
30475
- # An opaque string that represents a user for quota purposes. Must not exceed 40
30476
- # characters.
30477
- # @param [String] user_ip
30478
- # Deprecated. Please use quotaUser instead.
30479
- # @param [Google::Apis::RequestOptions] options
30480
- # Request-specific options
30481
- #
30482
- # @yield [result, err] Result & error if block supplied
30483
- # @yieldparam result [Google::Apis::ComputeAlpha::TestPermissionsResponse] parsed result object
30484
- # @yieldparam err [StandardError] error object if request failed
30485
- #
30486
- # @return [Google::Apis::ComputeAlpha::TestPermissionsResponse]
30487
- #
30488
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
30489
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
30490
- # @raise [Google::Apis::AuthorizationError] Authorization is required
30491
- def test_service_attachment_iam_permissions(project, region, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
30492
- command = make_simple_command(:post, 'projects/{project}/regions/{region}/serviceAttachments/{resource}/testIamPermissions', options)
30493
- command.request_representation = Google::Apis::ComputeAlpha::TestPermissionsRequest::Representation
30494
- command.request_object = test_permissions_request_object
30495
- command.response_representation = Google::Apis::ComputeAlpha::TestPermissionsResponse::Representation
30496
- command.response_class = Google::Apis::ComputeAlpha::TestPermissionsResponse
30497
- command.params['project'] = project unless project.nil?
30498
- command.params['region'] = region unless region.nil?
30499
31099
  command.params['resource'] = resource unless resource.nil?
31100
+ command.query['optionsRequestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
30500
31101
  command.query['fields'] = fields unless fields.nil?
30501
31102
  command.query['quotaUser'] = quota_user unless quota_user.nil?
30502
31103
  command.query['userIp'] = user_ip unless user_ip.nil?
30503
31104
  execute_or_queue_command(command, &block)
30504
31105
  end
30505
31106
 
30506
- # Deletes the specified Snapshot resource. Keep in mind that deleting a single
30507
- # snapshot might not necessarily delete all the data on that snapshot. If any
30508
- # data on the snapshot that is marked for deletion is needed for subsequent
30509
- # snapshots, the data will be moved to the next corresponding snapshot.
30510
- # For more information, see Deleting snapshots.
31107
+ # Creates a snapshot in the specified project using the data included in the
31108
+ # request.
30511
31109
  # @param [String] project
30512
31110
  # Project ID for this request.
30513
- # @param [String] snapshot
30514
- # Name of the Snapshot resource to delete.
31111
+ # @param [Google::Apis::ComputeAlpha::Snapshot] snapshot_object
30515
31112
  # @param [String] request_id
30516
31113
  # An optional request ID to identify requests. Specify a unique request ID so
30517
31114
  # that if you must retry your request, the server will know to ignore the
@@ -30542,12 +31139,13 @@ module Google
30542
31139
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
30543
31140
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
30544
31141
  # @raise [Google::Apis::AuthorizationError] Authorization is required
30545
- def delete_snapshot(project, snapshot, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
30546
- command = make_simple_command(:delete, 'projects/{project}/global/snapshots/{snapshot}', options)
31142
+ def insert_snapshot(project, snapshot_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
31143
+ command = make_simple_command(:post, 'projects/{project}/global/snapshots', options)
31144
+ command.request_representation = Google::Apis::ComputeAlpha::Snapshot::Representation
31145
+ command.request_object = snapshot_object
30547
31146
  command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
30548
31147
  command.response_class = Google::Apis::ComputeAlpha::Operation
30549
31148
  command.params['project'] = project unless project.nil?
30550
- command.params['snapshot'] = snapshot unless snapshot.nil?
30551
31149
  command.query['requestId'] = request_id unless request_id.nil?
30552
31150
  command.query['fields'] = fields unless fields.nil?
30553
31151
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -30555,83 +31153,6 @@ module Google
30555
31153
  execute_or_queue_command(command, &block)
30556
31154
  end
30557
31155
 
30558
- # Returns the specified Snapshot resource. Gets a list of available snapshots by
30559
- # making a list() request.
30560
- # @param [String] project
30561
- # Project ID for this request.
30562
- # @param [String] snapshot
30563
- # Name of the Snapshot resource to return.
30564
- # @param [String] fields
30565
- # Selector specifying which fields to include in a partial response.
30566
- # @param [String] quota_user
30567
- # An opaque string that represents a user for quota purposes. Must not exceed 40
30568
- # characters.
30569
- # @param [String] user_ip
30570
- # Deprecated. Please use quotaUser instead.
30571
- # @param [Google::Apis::RequestOptions] options
30572
- # Request-specific options
30573
- #
30574
- # @yield [result, err] Result & error if block supplied
30575
- # @yieldparam result [Google::Apis::ComputeAlpha::Snapshot] parsed result object
30576
- # @yieldparam err [StandardError] error object if request failed
30577
- #
30578
- # @return [Google::Apis::ComputeAlpha::Snapshot]
30579
- #
30580
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
30581
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
30582
- # @raise [Google::Apis::AuthorizationError] Authorization is required
30583
- def get_snapshot(project, snapshot, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
30584
- command = make_simple_command(:get, 'projects/{project}/global/snapshots/{snapshot}', options)
30585
- command.response_representation = Google::Apis::ComputeAlpha::Snapshot::Representation
30586
- command.response_class = Google::Apis::ComputeAlpha::Snapshot
30587
- command.params['project'] = project unless project.nil?
30588
- command.params['snapshot'] = snapshot unless snapshot.nil?
30589
- command.query['fields'] = fields unless fields.nil?
30590
- command.query['quotaUser'] = quota_user unless quota_user.nil?
30591
- command.query['userIp'] = user_ip unless user_ip.nil?
30592
- execute_or_queue_command(command, &block)
30593
- end
30594
-
30595
- # Gets the access control policy for a resource. May be empty if no such policy
30596
- # or resource exists.
30597
- # @param [String] project
30598
- # Project ID for this request.
30599
- # @param [String] resource
30600
- # Name or id of the resource for this request.
30601
- # @param [Fixnum] options_requested_policy_version
30602
- # Requested IAM Policy version.
30603
- # @param [String] fields
30604
- # Selector specifying which fields to include in a partial response.
30605
- # @param [String] quota_user
30606
- # An opaque string that represents a user for quota purposes. Must not exceed 40
30607
- # characters.
30608
- # @param [String] user_ip
30609
- # Deprecated. Please use quotaUser instead.
30610
- # @param [Google::Apis::RequestOptions] options
30611
- # Request-specific options
30612
- #
30613
- # @yield [result, err] Result & error if block supplied
30614
- # @yieldparam result [Google::Apis::ComputeAlpha::Policy] parsed result object
30615
- # @yieldparam err [StandardError] error object if request failed
30616
- #
30617
- # @return [Google::Apis::ComputeAlpha::Policy]
30618
- #
30619
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
30620
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
30621
- # @raise [Google::Apis::AuthorizationError] Authorization is required
30622
- def get_snapshot_iam_policy(project, resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
30623
- command = make_simple_command(:get, 'projects/{project}/global/snapshots/{resource}/getIamPolicy', options)
30624
- command.response_representation = Google::Apis::ComputeAlpha::Policy::Representation
30625
- command.response_class = Google::Apis::ComputeAlpha::Policy
30626
- command.params['project'] = project unless project.nil?
30627
- command.params['resource'] = resource unless resource.nil?
30628
- command.query['optionsRequestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
30629
- command.query['fields'] = fields unless fields.nil?
30630
- command.query['quotaUser'] = quota_user unless quota_user.nil?
30631
- command.query['userIp'] = user_ip unless user_ip.nil?
30632
- execute_or_queue_command(command, &block)
30633
- end
30634
-
30635
31156
  # Retrieves the list of Snapshot resources contained within the specified
30636
31157
  # project.
30637
31158
  # @param [String] project
@@ -32814,6 +33335,59 @@ module Google
32814
33335
  execute_or_queue_command(command, &block)
32815
33336
  end
32816
33337
 
33338
+ # Patches the specified TargetHttpProxy resource with the data included in the
33339
+ # request. This method supports PATCH semantics and uses JSON merge patch format
33340
+ # and processing rules. (== suppress_warning http-rest-shadowed ==)
33341
+ # @param [String] project
33342
+ # Project ID for this request.
33343
+ # @param [String] target_http_proxy
33344
+ # Name of the TargetHttpProxy resource to patch.
33345
+ # @param [Google::Apis::ComputeAlpha::TargetHttpProxy] target_http_proxy_object
33346
+ # @param [String] request_id
33347
+ # An optional request ID to identify requests. Specify a unique request ID so
33348
+ # that if you must retry your request, the server will know to ignore the
33349
+ # request if it has already been completed.
33350
+ # For example, consider a situation where you make an initial request and the
33351
+ # request times out. If you make the request again with the same request ID, the
33352
+ # server can check if original operation with the same request ID was received,
33353
+ # and if so, will ignore the second request. This prevents clients from
33354
+ # accidentally creating duplicate commitments.
33355
+ # The request ID must be a valid UUID with the exception that zero UUID is not
33356
+ # supported (00000000-0000-0000-0000-000000000000).
33357
+ # @param [String] fields
33358
+ # Selector specifying which fields to include in a partial response.
33359
+ # @param [String] quota_user
33360
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
33361
+ # characters.
33362
+ # @param [String] user_ip
33363
+ # Deprecated. Please use quotaUser instead.
33364
+ # @param [Google::Apis::RequestOptions] options
33365
+ # Request-specific options
33366
+ #
33367
+ # @yield [result, err] Result & error if block supplied
33368
+ # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
33369
+ # @yieldparam err [StandardError] error object if request failed
33370
+ #
33371
+ # @return [Google::Apis::ComputeAlpha::Operation]
33372
+ #
33373
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
33374
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
33375
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
33376
+ def patch_target_http_proxy(project, target_http_proxy, target_http_proxy_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
33377
+ command = make_simple_command(:patch, 'projects/{project}/global/targetHttpProxies/{targetHttpProxy}', options)
33378
+ command.request_representation = Google::Apis::ComputeAlpha::TargetHttpProxy::Representation
33379
+ command.request_object = target_http_proxy_object
33380
+ command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
33381
+ command.response_class = Google::Apis::ComputeAlpha::Operation
33382
+ command.params['project'] = project unless project.nil?
33383
+ command.params['targetHttpProxy'] = target_http_proxy unless target_http_proxy.nil?
33384
+ command.query['requestId'] = request_id unless request_id.nil?
33385
+ command.query['fields'] = fields unless fields.nil?
33386
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
33387
+ command.query['userIp'] = user_ip unless user_ip.nil?
33388
+ execute_or_queue_command(command, &block)
33389
+ end
33390
+
32817
33391
  # Changes the URL map for TargetHttpProxy.
32818
33392
  # @param [String] project
32819
33393
  # Project ID for this request.
@@ -35081,31 +35655,473 @@ module Google
35081
35655
  # Request-specific options
35082
35656
  #
35083
35657
  # @yield [result, err] Result & error if block supplied
35084
- # @yieldparam result [Google::Apis::ComputeAlpha::TargetTcpProxy] parsed result object
35658
+ # @yieldparam result [Google::Apis::ComputeAlpha::TargetTcpProxy] parsed result object
35659
+ # @yieldparam err [StandardError] error object if request failed
35660
+ #
35661
+ # @return [Google::Apis::ComputeAlpha::TargetTcpProxy]
35662
+ #
35663
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
35664
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
35665
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
35666
+ def get_target_tcp_proxy(project, target_tcp_proxy, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
35667
+ command = make_simple_command(:get, 'projects/{project}/global/targetTcpProxies/{targetTcpProxy}', options)
35668
+ command.response_representation = Google::Apis::ComputeAlpha::TargetTcpProxy::Representation
35669
+ command.response_class = Google::Apis::ComputeAlpha::TargetTcpProxy
35670
+ command.params['project'] = project unless project.nil?
35671
+ command.params['targetTcpProxy'] = target_tcp_proxy unless target_tcp_proxy.nil?
35672
+ command.query['fields'] = fields unless fields.nil?
35673
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
35674
+ command.query['userIp'] = user_ip unless user_ip.nil?
35675
+ execute_or_queue_command(command, &block)
35676
+ end
35677
+
35678
+ # Creates a TargetTcpProxy resource in the specified project using the data
35679
+ # included in the request.
35680
+ # @param [String] project
35681
+ # Project ID for this request.
35682
+ # @param [Google::Apis::ComputeAlpha::TargetTcpProxy] target_tcp_proxy_object
35683
+ # @param [String] request_id
35684
+ # An optional request ID to identify requests. Specify a unique request ID so
35685
+ # that if you must retry your request, the server will know to ignore the
35686
+ # request if it has already been completed.
35687
+ # For example, consider a situation where you make an initial request and the
35688
+ # request times out. If you make the request again with the same request ID, the
35689
+ # server can check if original operation with the same request ID was received,
35690
+ # and if so, will ignore the second request. This prevents clients from
35691
+ # accidentally creating duplicate commitments.
35692
+ # The request ID must be a valid UUID with the exception that zero UUID is not
35693
+ # supported (00000000-0000-0000-0000-000000000000).
35694
+ # @param [String] fields
35695
+ # Selector specifying which fields to include in a partial response.
35696
+ # @param [String] quota_user
35697
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
35698
+ # characters.
35699
+ # @param [String] user_ip
35700
+ # Deprecated. Please use quotaUser instead.
35701
+ # @param [Google::Apis::RequestOptions] options
35702
+ # Request-specific options
35703
+ #
35704
+ # @yield [result, err] Result & error if block supplied
35705
+ # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
35706
+ # @yieldparam err [StandardError] error object if request failed
35707
+ #
35708
+ # @return [Google::Apis::ComputeAlpha::Operation]
35709
+ #
35710
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
35711
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
35712
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
35713
+ def insert_target_tcp_proxy(project, target_tcp_proxy_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
35714
+ command = make_simple_command(:post, 'projects/{project}/global/targetTcpProxies', options)
35715
+ command.request_representation = Google::Apis::ComputeAlpha::TargetTcpProxy::Representation
35716
+ command.request_object = target_tcp_proxy_object
35717
+ command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
35718
+ command.response_class = Google::Apis::ComputeAlpha::Operation
35719
+ command.params['project'] = project unless project.nil?
35720
+ command.query['requestId'] = request_id unless request_id.nil?
35721
+ command.query['fields'] = fields unless fields.nil?
35722
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
35723
+ command.query['userIp'] = user_ip unless user_ip.nil?
35724
+ execute_or_queue_command(command, &block)
35725
+ end
35726
+
35727
+ # Retrieves the list of TargetTcpProxy resources available to the specified
35728
+ # project.
35729
+ # @param [String] project
35730
+ # Project ID for this request.
35731
+ # @param [String] filter
35732
+ # A filter expression that filters resources listed in the response. The
35733
+ # expression must specify the field name, a comparison operator, and the value
35734
+ # that you want to use for filtering. The value must be a string, a number, or a
35735
+ # boolean. The comparison operator must be either `=`, `!=`, `>`, or `<`.
35736
+ # For example, if you are filtering Compute Engine instances, you can exclude
35737
+ # instances named `example-instance` by specifying `name != example-instance`.
35738
+ # You can also filter nested fields. For example, you could specify `scheduling.
35739
+ # automaticRestart = false` to include instances only if they are not scheduled
35740
+ # for automatic restarts. You can use filtering on nested fields to filter based
35741
+ # on resource labels.
35742
+ # To filter on multiple expressions, provide each separate expression within
35743
+ # parentheses. For example: ``` (scheduling.automaticRestart = true) (
35744
+ # cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND`
35745
+ # expression. However, you can include `AND` and `OR` expressions explicitly.
35746
+ # For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel
35747
+ # Broadwell") AND (scheduling.automaticRestart = true) ```
35748
+ # @param [Fixnum] max_results
35749
+ # The maximum number of results per page that should be returned. If the number
35750
+ # of available results is larger than `maxResults`, Compute Engine returns a `
35751
+ # nextPageToken` that can be used to get the next page of results in subsequent
35752
+ # list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
35753
+ # @param [String] order_by
35754
+ # Sorts list results by a certain order. By default, results are returned in
35755
+ # alphanumerical order based on the resource name.
35756
+ # You can also sort results in descending order based on the creation timestamp
35757
+ # using `orderBy="creationTimestamp desc"`. This sorts results based on the `
35758
+ # creationTimestamp` field in reverse chronological order (newest result first).
35759
+ # Use this to sort resources like operations so that the newest operation is
35760
+ # returned first.
35761
+ # Currently, only sorting by `name` or `creationTimestamp desc` is supported.
35762
+ # @param [String] page_token
35763
+ # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
35764
+ # by a previous list request to get the next page of results.
35765
+ # @param [Boolean] return_partial_success
35766
+ # Opt-in for partial success behavior which provides partial results in case of
35767
+ # failure. The default value is false and the logic is the same as today.
35768
+ # @param [String] fields
35769
+ # Selector specifying which fields to include in a partial response.
35770
+ # @param [String] quota_user
35771
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
35772
+ # characters.
35773
+ # @param [String] user_ip
35774
+ # Deprecated. Please use quotaUser instead.
35775
+ # @param [Google::Apis::RequestOptions] options
35776
+ # Request-specific options
35777
+ #
35778
+ # @yield [result, err] Result & error if block supplied
35779
+ # @yieldparam result [Google::Apis::ComputeAlpha::TargetTcpProxyList] parsed result object
35780
+ # @yieldparam err [StandardError] error object if request failed
35781
+ #
35782
+ # @return [Google::Apis::ComputeAlpha::TargetTcpProxyList]
35783
+ #
35784
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
35785
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
35786
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
35787
+ def list_target_tcp_proxies(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
35788
+ command = make_simple_command(:get, 'projects/{project}/global/targetTcpProxies', options)
35789
+ command.response_representation = Google::Apis::ComputeAlpha::TargetTcpProxyList::Representation
35790
+ command.response_class = Google::Apis::ComputeAlpha::TargetTcpProxyList
35791
+ command.params['project'] = project unless project.nil?
35792
+ command.query['filter'] = filter unless filter.nil?
35793
+ command.query['maxResults'] = max_results unless max_results.nil?
35794
+ command.query['orderBy'] = order_by unless order_by.nil?
35795
+ command.query['pageToken'] = page_token unless page_token.nil?
35796
+ command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
35797
+ command.query['fields'] = fields unless fields.nil?
35798
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
35799
+ command.query['userIp'] = user_ip unless user_ip.nil?
35800
+ execute_or_queue_command(command, &block)
35801
+ end
35802
+
35803
+ # Changes the BackendService for TargetTcpProxy.
35804
+ # @param [String] project
35805
+ # Project ID for this request.
35806
+ # @param [String] target_tcp_proxy
35807
+ # Name of the TargetTcpProxy resource whose BackendService resource is to be set.
35808
+ # @param [Google::Apis::ComputeAlpha::TargetTcpProxiesSetBackendServiceRequest] target_tcp_proxies_set_backend_service_request_object
35809
+ # @param [String] request_id
35810
+ # An optional request ID to identify requests. Specify a unique request ID so
35811
+ # that if you must retry your request, the server will know to ignore the
35812
+ # request if it has already been completed.
35813
+ # For example, consider a situation where you make an initial request and the
35814
+ # request times out. If you make the request again with the same request ID, the
35815
+ # server can check if original operation with the same request ID was received,
35816
+ # and if so, will ignore the second request. This prevents clients from
35817
+ # accidentally creating duplicate commitments.
35818
+ # The request ID must be a valid UUID with the exception that zero UUID is not
35819
+ # supported (00000000-0000-0000-0000-000000000000).
35820
+ # @param [String] fields
35821
+ # Selector specifying which fields to include in a partial response.
35822
+ # @param [String] quota_user
35823
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
35824
+ # characters.
35825
+ # @param [String] user_ip
35826
+ # Deprecated. Please use quotaUser instead.
35827
+ # @param [Google::Apis::RequestOptions] options
35828
+ # Request-specific options
35829
+ #
35830
+ # @yield [result, err] Result & error if block supplied
35831
+ # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
35832
+ # @yieldparam err [StandardError] error object if request failed
35833
+ #
35834
+ # @return [Google::Apis::ComputeAlpha::Operation]
35835
+ #
35836
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
35837
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
35838
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
35839
+ def set_target_tcp_proxy_backend_service(project, target_tcp_proxy, target_tcp_proxies_set_backend_service_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
35840
+ command = make_simple_command(:post, 'projects/{project}/global/targetTcpProxies/{targetTcpProxy}/setBackendService', options)
35841
+ command.request_representation = Google::Apis::ComputeAlpha::TargetTcpProxiesSetBackendServiceRequest::Representation
35842
+ command.request_object = target_tcp_proxies_set_backend_service_request_object
35843
+ command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
35844
+ command.response_class = Google::Apis::ComputeAlpha::Operation
35845
+ command.params['project'] = project unless project.nil?
35846
+ command.params['targetTcpProxy'] = target_tcp_proxy unless target_tcp_proxy.nil?
35847
+ command.query['requestId'] = request_id unless request_id.nil?
35848
+ command.query['fields'] = fields unless fields.nil?
35849
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
35850
+ command.query['userIp'] = user_ip unless user_ip.nil?
35851
+ execute_or_queue_command(command, &block)
35852
+ end
35853
+
35854
+ # Changes the ProxyHeaderType for TargetTcpProxy.
35855
+ # @param [String] project
35856
+ # Project ID for this request.
35857
+ # @param [String] target_tcp_proxy
35858
+ # Name of the TargetTcpProxy resource whose ProxyHeader is to be set.
35859
+ # @param [Google::Apis::ComputeAlpha::TargetTcpProxiesSetProxyHeaderRequest] target_tcp_proxies_set_proxy_header_request_object
35860
+ # @param [String] request_id
35861
+ # An optional request ID to identify requests. Specify a unique request ID so
35862
+ # that if you must retry your request, the server will know to ignore the
35863
+ # request if it has already been completed.
35864
+ # For example, consider a situation where you make an initial request and the
35865
+ # request times out. If you make the request again with the same request ID, the
35866
+ # server can check if original operation with the same request ID was received,
35867
+ # and if so, will ignore the second request. This prevents clients from
35868
+ # accidentally creating duplicate commitments.
35869
+ # The request ID must be a valid UUID with the exception that zero UUID is not
35870
+ # supported (00000000-0000-0000-0000-000000000000).
35871
+ # @param [String] fields
35872
+ # Selector specifying which fields to include in a partial response.
35873
+ # @param [String] quota_user
35874
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
35875
+ # characters.
35876
+ # @param [String] user_ip
35877
+ # Deprecated. Please use quotaUser instead.
35878
+ # @param [Google::Apis::RequestOptions] options
35879
+ # Request-specific options
35880
+ #
35881
+ # @yield [result, err] Result & error if block supplied
35882
+ # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
35883
+ # @yieldparam err [StandardError] error object if request failed
35884
+ #
35885
+ # @return [Google::Apis::ComputeAlpha::Operation]
35886
+ #
35887
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
35888
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
35889
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
35890
+ def set_target_tcp_proxy_proxy_header(project, target_tcp_proxy, target_tcp_proxies_set_proxy_header_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
35891
+ command = make_simple_command(:post, 'projects/{project}/global/targetTcpProxies/{targetTcpProxy}/setProxyHeader', options)
35892
+ command.request_representation = Google::Apis::ComputeAlpha::TargetTcpProxiesSetProxyHeaderRequest::Representation
35893
+ command.request_object = target_tcp_proxies_set_proxy_header_request_object
35894
+ command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
35895
+ command.response_class = Google::Apis::ComputeAlpha::Operation
35896
+ command.params['project'] = project unless project.nil?
35897
+ command.params['targetTcpProxy'] = target_tcp_proxy unless target_tcp_proxy.nil?
35898
+ command.query['requestId'] = request_id unless request_id.nil?
35899
+ command.query['fields'] = fields unless fields.nil?
35900
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
35901
+ command.query['userIp'] = user_ip unless user_ip.nil?
35902
+ execute_or_queue_command(command, &block)
35903
+ end
35904
+
35905
+ # Returns permissions that a caller has on the specified resource.
35906
+ # @param [String] project
35907
+ # Project ID for this request.
35908
+ # @param [String] resource
35909
+ # Name or id of the resource for this request.
35910
+ # @param [Google::Apis::ComputeAlpha::TestPermissionsRequest] test_permissions_request_object
35911
+ # @param [String] fields
35912
+ # Selector specifying which fields to include in a partial response.
35913
+ # @param [String] quota_user
35914
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
35915
+ # characters.
35916
+ # @param [String] user_ip
35917
+ # Deprecated. Please use quotaUser instead.
35918
+ # @param [Google::Apis::RequestOptions] options
35919
+ # Request-specific options
35920
+ #
35921
+ # @yield [result, err] Result & error if block supplied
35922
+ # @yieldparam result [Google::Apis::ComputeAlpha::TestPermissionsResponse] parsed result object
35923
+ # @yieldparam err [StandardError] error object if request failed
35924
+ #
35925
+ # @return [Google::Apis::ComputeAlpha::TestPermissionsResponse]
35926
+ #
35927
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
35928
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
35929
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
35930
+ def test_target_tcp_proxy_iam_permissions(project, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
35931
+ command = make_simple_command(:post, 'projects/{project}/global/targetTcpProxies/{resource}/testIamPermissions', options)
35932
+ command.request_representation = Google::Apis::ComputeAlpha::TestPermissionsRequest::Representation
35933
+ command.request_object = test_permissions_request_object
35934
+ command.response_representation = Google::Apis::ComputeAlpha::TestPermissionsResponse::Representation
35935
+ command.response_class = Google::Apis::ComputeAlpha::TestPermissionsResponse
35936
+ command.params['project'] = project unless project.nil?
35937
+ command.params['resource'] = resource unless resource.nil?
35938
+ command.query['fields'] = fields unless fields.nil?
35939
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
35940
+ command.query['userIp'] = user_ip unless user_ip.nil?
35941
+ execute_or_queue_command(command, &block)
35942
+ end
35943
+
35944
+ # Retrieves an aggregated list of target VPN gateways.
35945
+ # @param [String] project
35946
+ # Project ID for this request.
35947
+ # @param [String] filter
35948
+ # A filter expression that filters resources listed in the response. The
35949
+ # expression must specify the field name, a comparison operator, and the value
35950
+ # that you want to use for filtering. The value must be a string, a number, or a
35951
+ # boolean. The comparison operator must be either `=`, `!=`, `>`, or `<`.
35952
+ # For example, if you are filtering Compute Engine instances, you can exclude
35953
+ # instances named `example-instance` by specifying `name != example-instance`.
35954
+ # You can also filter nested fields. For example, you could specify `scheduling.
35955
+ # automaticRestart = false` to include instances only if they are not scheduled
35956
+ # for automatic restarts. You can use filtering on nested fields to filter based
35957
+ # on resource labels.
35958
+ # To filter on multiple expressions, provide each separate expression within
35959
+ # parentheses. For example: ``` (scheduling.automaticRestart = true) (
35960
+ # cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND`
35961
+ # expression. However, you can include `AND` and `OR` expressions explicitly.
35962
+ # For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel
35963
+ # Broadwell") AND (scheduling.automaticRestart = true) ```
35964
+ # @param [Boolean] include_all_scopes
35965
+ # Indicates whether every visible scope for each scope type (zone, region,
35966
+ # global) should be included in the response. For new resource types added after
35967
+ # this field, the flag has no effect as new resource types will always include
35968
+ # every visible scope for each scope type in response. For resource types which
35969
+ # predate this field, if this flag is omitted or false, only scopes of the scope
35970
+ # types where the resource type is expected to be found will be included.
35971
+ # @param [Fixnum] max_results
35972
+ # The maximum number of results per page that should be returned. If the number
35973
+ # of available results is larger than `maxResults`, Compute Engine returns a `
35974
+ # nextPageToken` that can be used to get the next page of results in subsequent
35975
+ # list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
35976
+ # @param [String] order_by
35977
+ # Sorts list results by a certain order. By default, results are returned in
35978
+ # alphanumerical order based on the resource name.
35979
+ # You can also sort results in descending order based on the creation timestamp
35980
+ # using `orderBy="creationTimestamp desc"`. This sorts results based on the `
35981
+ # creationTimestamp` field in reverse chronological order (newest result first).
35982
+ # Use this to sort resources like operations so that the newest operation is
35983
+ # returned first.
35984
+ # Currently, only sorting by `name` or `creationTimestamp desc` is supported.
35985
+ # @param [String] page_token
35986
+ # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
35987
+ # by a previous list request to get the next page of results.
35988
+ # @param [Boolean] return_partial_success
35989
+ # Opt-in for partial success behavior which provides partial results in case of
35990
+ # failure. The default value is false and the logic is the same as today.
35991
+ # @param [String] fields
35992
+ # Selector specifying which fields to include in a partial response.
35993
+ # @param [String] quota_user
35994
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
35995
+ # characters.
35996
+ # @param [String] user_ip
35997
+ # Deprecated. Please use quotaUser instead.
35998
+ # @param [Google::Apis::RequestOptions] options
35999
+ # Request-specific options
36000
+ #
36001
+ # @yield [result, err] Result & error if block supplied
36002
+ # @yieldparam result [Google::Apis::ComputeAlpha::TargetVpnGatewayAggregatedList] parsed result object
36003
+ # @yieldparam err [StandardError] error object if request failed
36004
+ #
36005
+ # @return [Google::Apis::ComputeAlpha::TargetVpnGatewayAggregatedList]
36006
+ #
36007
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
36008
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
36009
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
36010
+ def aggregated_target_vpn_gateway_list(project, filter: nil, include_all_scopes: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
36011
+ command = make_simple_command(:get, 'projects/{project}/aggregated/targetVpnGateways', options)
36012
+ command.response_representation = Google::Apis::ComputeAlpha::TargetVpnGatewayAggregatedList::Representation
36013
+ command.response_class = Google::Apis::ComputeAlpha::TargetVpnGatewayAggregatedList
36014
+ command.params['project'] = project unless project.nil?
36015
+ command.query['filter'] = filter unless filter.nil?
36016
+ command.query['includeAllScopes'] = include_all_scopes unless include_all_scopes.nil?
36017
+ command.query['maxResults'] = max_results unless max_results.nil?
36018
+ command.query['orderBy'] = order_by unless order_by.nil?
36019
+ command.query['pageToken'] = page_token unless page_token.nil?
36020
+ command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
36021
+ command.query['fields'] = fields unless fields.nil?
36022
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
36023
+ command.query['userIp'] = user_ip unless user_ip.nil?
36024
+ execute_or_queue_command(command, &block)
36025
+ end
36026
+
36027
+ # Deletes the specified target VPN gateway.
36028
+ # @param [String] project
36029
+ # Project ID for this request.
36030
+ # @param [String] region
36031
+ # Name of the region for this request.
36032
+ # @param [String] target_vpn_gateway
36033
+ # Name of the target VPN gateway to delete.
36034
+ # @param [String] request_id
36035
+ # An optional request ID to identify requests. Specify a unique request ID so
36036
+ # that if you must retry your request, the server will know to ignore the
36037
+ # request if it has already been completed.
36038
+ # For example, consider a situation where you make an initial request and the
36039
+ # request times out. If you make the request again with the same request ID, the
36040
+ # server can check if original operation with the same request ID was received,
36041
+ # and if so, will ignore the second request. This prevents clients from
36042
+ # accidentally creating duplicate commitments.
36043
+ # The request ID must be a valid UUID with the exception that zero UUID is not
36044
+ # supported (00000000-0000-0000-0000-000000000000).
36045
+ # @param [String] fields
36046
+ # Selector specifying which fields to include in a partial response.
36047
+ # @param [String] quota_user
36048
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
36049
+ # characters.
36050
+ # @param [String] user_ip
36051
+ # Deprecated. Please use quotaUser instead.
36052
+ # @param [Google::Apis::RequestOptions] options
36053
+ # Request-specific options
36054
+ #
36055
+ # @yield [result, err] Result & error if block supplied
36056
+ # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
36057
+ # @yieldparam err [StandardError] error object if request failed
36058
+ #
36059
+ # @return [Google::Apis::ComputeAlpha::Operation]
36060
+ #
36061
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
36062
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
36063
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
36064
+ def delete_target_vpn_gateway(project, region, target_vpn_gateway, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
36065
+ command = make_simple_command(:delete, 'projects/{project}/regions/{region}/targetVpnGateways/{targetVpnGateway}', options)
36066
+ command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
36067
+ command.response_class = Google::Apis::ComputeAlpha::Operation
36068
+ command.params['project'] = project unless project.nil?
36069
+ command.params['region'] = region unless region.nil?
36070
+ command.params['targetVpnGateway'] = target_vpn_gateway unless target_vpn_gateway.nil?
36071
+ command.query['requestId'] = request_id unless request_id.nil?
36072
+ command.query['fields'] = fields unless fields.nil?
36073
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
36074
+ command.query['userIp'] = user_ip unless user_ip.nil?
36075
+ execute_or_queue_command(command, &block)
36076
+ end
36077
+
36078
+ # Returns the specified target VPN gateway. Gets a list of available target VPN
36079
+ # gateways by making a list() request.
36080
+ # @param [String] project
36081
+ # Project ID for this request.
36082
+ # @param [String] region
36083
+ # Name of the region for this request.
36084
+ # @param [String] target_vpn_gateway
36085
+ # Name of the target VPN gateway to return.
36086
+ # @param [String] fields
36087
+ # Selector specifying which fields to include in a partial response.
36088
+ # @param [String] quota_user
36089
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
36090
+ # characters.
36091
+ # @param [String] user_ip
36092
+ # Deprecated. Please use quotaUser instead.
36093
+ # @param [Google::Apis::RequestOptions] options
36094
+ # Request-specific options
36095
+ #
36096
+ # @yield [result, err] Result & error if block supplied
36097
+ # @yieldparam result [Google::Apis::ComputeAlpha::TargetVpnGateway] parsed result object
35085
36098
  # @yieldparam err [StandardError] error object if request failed
35086
36099
  #
35087
- # @return [Google::Apis::ComputeAlpha::TargetTcpProxy]
36100
+ # @return [Google::Apis::ComputeAlpha::TargetVpnGateway]
35088
36101
  #
35089
36102
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
35090
36103
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
35091
36104
  # @raise [Google::Apis::AuthorizationError] Authorization is required
35092
- def get_target_tcp_proxy(project, target_tcp_proxy, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
35093
- command = make_simple_command(:get, 'projects/{project}/global/targetTcpProxies/{targetTcpProxy}', options)
35094
- command.response_representation = Google::Apis::ComputeAlpha::TargetTcpProxy::Representation
35095
- command.response_class = Google::Apis::ComputeAlpha::TargetTcpProxy
36105
+ def get_target_vpn_gateway(project, region, target_vpn_gateway, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
36106
+ command = make_simple_command(:get, 'projects/{project}/regions/{region}/targetVpnGateways/{targetVpnGateway}', options)
36107
+ command.response_representation = Google::Apis::ComputeAlpha::TargetVpnGateway::Representation
36108
+ command.response_class = Google::Apis::ComputeAlpha::TargetVpnGateway
35096
36109
  command.params['project'] = project unless project.nil?
35097
- command.params['targetTcpProxy'] = target_tcp_proxy unless target_tcp_proxy.nil?
36110
+ command.params['region'] = region unless region.nil?
36111
+ command.params['targetVpnGateway'] = target_vpn_gateway unless target_vpn_gateway.nil?
35098
36112
  command.query['fields'] = fields unless fields.nil?
35099
36113
  command.query['quotaUser'] = quota_user unless quota_user.nil?
35100
36114
  command.query['userIp'] = user_ip unless user_ip.nil?
35101
36115
  execute_or_queue_command(command, &block)
35102
36116
  end
35103
36117
 
35104
- # Creates a TargetTcpProxy resource in the specified project using the data
35105
- # included in the request.
36118
+ # Creates a target VPN gateway in the specified project and region using the
36119
+ # data included in the request.
35106
36120
  # @param [String] project
35107
36121
  # Project ID for this request.
35108
- # @param [Google::Apis::ComputeAlpha::TargetTcpProxy] target_tcp_proxy_object
36122
+ # @param [String] region
36123
+ # Name of the region for this request.
36124
+ # @param [Google::Apis::ComputeAlpha::TargetVpnGateway] target_vpn_gateway_object
35109
36125
  # @param [String] request_id
35110
36126
  # An optional request ID to identify requests. Specify a unique request ID so
35111
36127
  # that if you must retry your request, the server will know to ignore the
@@ -35136,13 +36152,14 @@ module Google
35136
36152
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
35137
36153
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
35138
36154
  # @raise [Google::Apis::AuthorizationError] Authorization is required
35139
- def insert_target_tcp_proxy(project, target_tcp_proxy_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
35140
- command = make_simple_command(:post, 'projects/{project}/global/targetTcpProxies', options)
35141
- command.request_representation = Google::Apis::ComputeAlpha::TargetTcpProxy::Representation
35142
- command.request_object = target_tcp_proxy_object
36155
+ def insert_target_vpn_gateway(project, region, target_vpn_gateway_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
36156
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/targetVpnGateways', options)
36157
+ command.request_representation = Google::Apis::ComputeAlpha::TargetVpnGateway::Representation
36158
+ command.request_object = target_vpn_gateway_object
35143
36159
  command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
35144
36160
  command.response_class = Google::Apis::ComputeAlpha::Operation
35145
36161
  command.params['project'] = project unless project.nil?
36162
+ command.params['region'] = region unless region.nil?
35146
36163
  command.query['requestId'] = request_id unless request_id.nil?
35147
36164
  command.query['fields'] = fields unless fields.nil?
35148
36165
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -35150,10 +36167,12 @@ module Google
35150
36167
  execute_or_queue_command(command, &block)
35151
36168
  end
35152
36169
 
35153
- # Retrieves the list of TargetTcpProxy resources available to the specified
35154
- # project.
36170
+ # Retrieves a list of target VPN gateways available to the specified project and
36171
+ # region.
35155
36172
  # @param [String] project
35156
36173
  # Project ID for this request.
36174
+ # @param [String] region
36175
+ # Name of the region for this request.
35157
36176
  # @param [String] filter
35158
36177
  # A filter expression that filters resources listed in the response. The
35159
36178
  # expression must specify the field name, a comparison operator, and the value
@@ -35202,19 +36221,20 @@ module Google
35202
36221
  # Request-specific options
35203
36222
  #
35204
36223
  # @yield [result, err] Result & error if block supplied
35205
- # @yieldparam result [Google::Apis::ComputeAlpha::TargetTcpProxyList] parsed result object
36224
+ # @yieldparam result [Google::Apis::ComputeAlpha::TargetVpnGatewayList] parsed result object
35206
36225
  # @yieldparam err [StandardError] error object if request failed
35207
36226
  #
35208
- # @return [Google::Apis::ComputeAlpha::TargetTcpProxyList]
36227
+ # @return [Google::Apis::ComputeAlpha::TargetVpnGatewayList]
35209
36228
  #
35210
36229
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
35211
36230
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
35212
36231
  # @raise [Google::Apis::AuthorizationError] Authorization is required
35213
- def list_target_tcp_proxies(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
35214
- command = make_simple_command(:get, 'projects/{project}/global/targetTcpProxies', options)
35215
- command.response_representation = Google::Apis::ComputeAlpha::TargetTcpProxyList::Representation
35216
- command.response_class = Google::Apis::ComputeAlpha::TargetTcpProxyList
36232
+ def list_target_vpn_gateways(project, region, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
36233
+ command = make_simple_command(:get, 'projects/{project}/regions/{region}/targetVpnGateways', options)
36234
+ command.response_representation = Google::Apis::ComputeAlpha::TargetVpnGatewayList::Representation
36235
+ command.response_class = Google::Apis::ComputeAlpha::TargetVpnGatewayList
35217
36236
  command.params['project'] = project unless project.nil?
36237
+ command.params['region'] = region unless region.nil?
35218
36238
  command.query['filter'] = filter unless filter.nil?
35219
36239
  command.query['maxResults'] = max_results unless max_results.nil?
35220
36240
  command.query['orderBy'] = order_by unless order_by.nil?
@@ -35226,63 +36246,15 @@ module Google
35226
36246
  execute_or_queue_command(command, &block)
35227
36247
  end
35228
36248
 
35229
- # Changes the BackendService for TargetTcpProxy.
35230
- # @param [String] project
35231
- # Project ID for this request.
35232
- # @param [String] target_tcp_proxy
35233
- # Name of the TargetTcpProxy resource whose BackendService resource is to be set.
35234
- # @param [Google::Apis::ComputeAlpha::TargetTcpProxiesSetBackendServiceRequest] target_tcp_proxies_set_backend_service_request_object
35235
- # @param [String] request_id
35236
- # An optional request ID to identify requests. Specify a unique request ID so
35237
- # that if you must retry your request, the server will know to ignore the
35238
- # request if it has already been completed.
35239
- # For example, consider a situation where you make an initial request and the
35240
- # request times out. If you make the request again with the same request ID, the
35241
- # server can check if original operation with the same request ID was received,
35242
- # and if so, will ignore the second request. This prevents clients from
35243
- # accidentally creating duplicate commitments.
35244
- # The request ID must be a valid UUID with the exception that zero UUID is not
35245
- # supported (00000000-0000-0000-0000-000000000000).
35246
- # @param [String] fields
35247
- # Selector specifying which fields to include in a partial response.
35248
- # @param [String] quota_user
35249
- # An opaque string that represents a user for quota purposes. Must not exceed 40
35250
- # characters.
35251
- # @param [String] user_ip
35252
- # Deprecated. Please use quotaUser instead.
35253
- # @param [Google::Apis::RequestOptions] options
35254
- # Request-specific options
35255
- #
35256
- # @yield [result, err] Result & error if block supplied
35257
- # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
35258
- # @yieldparam err [StandardError] error object if request failed
35259
- #
35260
- # @return [Google::Apis::ComputeAlpha::Operation]
35261
- #
35262
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
35263
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
35264
- # @raise [Google::Apis::AuthorizationError] Authorization is required
35265
- def set_target_tcp_proxy_backend_service(project, target_tcp_proxy, target_tcp_proxies_set_backend_service_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
35266
- command = make_simple_command(:post, 'projects/{project}/global/targetTcpProxies/{targetTcpProxy}/setBackendService', options)
35267
- command.request_representation = Google::Apis::ComputeAlpha::TargetTcpProxiesSetBackendServiceRequest::Representation
35268
- command.request_object = target_tcp_proxies_set_backend_service_request_object
35269
- command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
35270
- command.response_class = Google::Apis::ComputeAlpha::Operation
35271
- command.params['project'] = project unless project.nil?
35272
- command.params['targetTcpProxy'] = target_tcp_proxy unless target_tcp_proxy.nil?
35273
- command.query['requestId'] = request_id unless request_id.nil?
35274
- command.query['fields'] = fields unless fields.nil?
35275
- command.query['quotaUser'] = quota_user unless quota_user.nil?
35276
- command.query['userIp'] = user_ip unless user_ip.nil?
35277
- execute_or_queue_command(command, &block)
35278
- end
35279
-
35280
- # Changes the ProxyHeaderType for TargetTcpProxy.
36249
+ # Sets the labels on a TargetVpnGateway. To learn more about labels, read the
36250
+ # Labeling Resources documentation.
35281
36251
  # @param [String] project
35282
36252
  # Project ID for this request.
35283
- # @param [String] target_tcp_proxy
35284
- # Name of the TargetTcpProxy resource whose ProxyHeader is to be set.
35285
- # @param [Google::Apis::ComputeAlpha::TargetTcpProxiesSetProxyHeaderRequest] target_tcp_proxies_set_proxy_header_request_object
36253
+ # @param [String] region
36254
+ # The region for this request.
36255
+ # @param [String] resource
36256
+ # Name or id of the resource for this request.
36257
+ # @param [Google::Apis::ComputeAlpha::RegionSetLabelsRequest] region_set_labels_request_object
35286
36258
  # @param [String] request_id
35287
36259
  # An optional request ID to identify requests. Specify a unique request ID so
35288
36260
  # that if you must retry your request, the server will know to ignore the
@@ -35313,14 +36285,15 @@ module Google
35313
36285
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
35314
36286
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
35315
36287
  # @raise [Google::Apis::AuthorizationError] Authorization is required
35316
- def set_target_tcp_proxy_proxy_header(project, target_tcp_proxy, target_tcp_proxies_set_proxy_header_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
35317
- command = make_simple_command(:post, 'projects/{project}/global/targetTcpProxies/{targetTcpProxy}/setProxyHeader', options)
35318
- command.request_representation = Google::Apis::ComputeAlpha::TargetTcpProxiesSetProxyHeaderRequest::Representation
35319
- command.request_object = target_tcp_proxies_set_proxy_header_request_object
36288
+ def set_target_vpn_gateway_labels(project, region, resource, region_set_labels_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
36289
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/targetVpnGateways/{resource}/setLabels', options)
36290
+ command.request_representation = Google::Apis::ComputeAlpha::RegionSetLabelsRequest::Representation
36291
+ command.request_object = region_set_labels_request_object
35320
36292
  command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
35321
36293
  command.response_class = Google::Apis::ComputeAlpha::Operation
35322
36294
  command.params['project'] = project unless project.nil?
35323
- command.params['targetTcpProxy'] = target_tcp_proxy unless target_tcp_proxy.nil?
36295
+ command.params['region'] = region unless region.nil?
36296
+ command.params['resource'] = resource unless resource.nil?
35324
36297
  command.query['requestId'] = request_id unless request_id.nil?
35325
36298
  command.query['fields'] = fields unless fields.nil?
35326
36299
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -35331,6 +36304,8 @@ module Google
35331
36304
  # Returns permissions that a caller has on the specified resource.
35332
36305
  # @param [String] project
35333
36306
  # Project ID for this request.
36307
+ # @param [String] region
36308
+ # The name of the region for this request.
35334
36309
  # @param [String] resource
35335
36310
  # Name or id of the resource for this request.
35336
36311
  # @param [Google::Apis::ComputeAlpha::TestPermissionsRequest] test_permissions_request_object
@@ -35353,13 +36328,14 @@ module Google
35353
36328
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
35354
36329
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
35355
36330
  # @raise [Google::Apis::AuthorizationError] Authorization is required
35356
- def test_target_tcp_proxy_iam_permissions(project, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
35357
- command = make_simple_command(:post, 'projects/{project}/global/targetTcpProxies/{resource}/testIamPermissions', options)
36331
+ def test_target_vpn_gateway_iam_permissions(project, region, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
36332
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/targetVpnGateways/{resource}/testIamPermissions', options)
35358
36333
  command.request_representation = Google::Apis::ComputeAlpha::TestPermissionsRequest::Representation
35359
36334
  command.request_object = test_permissions_request_object
35360
36335
  command.response_representation = Google::Apis::ComputeAlpha::TestPermissionsResponse::Representation
35361
36336
  command.response_class = Google::Apis::ComputeAlpha::TestPermissionsResponse
35362
36337
  command.params['project'] = project unless project.nil?
36338
+ command.params['region'] = region unless region.nil?
35363
36339
  command.params['resource'] = resource unless resource.nil?
35364
36340
  command.query['fields'] = fields unless fields.nil?
35365
36341
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -35367,9 +36343,10 @@ module Google
35367
36343
  execute_or_queue_command(command, &block)
35368
36344
  end
35369
36345
 
35370
- # Retrieves an aggregated list of target VPN gateways.
36346
+ # Retrieves the list of all UrlMap resources, regional and global, available to
36347
+ # the specified project.
35371
36348
  # @param [String] project
35372
- # Project ID for this request.
36349
+ # Name of the project scoping this request.
35373
36350
  # @param [String] filter
35374
36351
  # A filter expression that filters resources listed in the response. The
35375
36352
  # expression must specify the field name, a comparison operator, and the value
@@ -35425,18 +36402,18 @@ module Google
35425
36402
  # Request-specific options
35426
36403
  #
35427
36404
  # @yield [result, err] Result & error if block supplied
35428
- # @yieldparam result [Google::Apis::ComputeAlpha::TargetVpnGatewayAggregatedList] parsed result object
36405
+ # @yieldparam result [Google::Apis::ComputeAlpha::UrlMapsAggregatedList] parsed result object
35429
36406
  # @yieldparam err [StandardError] error object if request failed
35430
36407
  #
35431
- # @return [Google::Apis::ComputeAlpha::TargetVpnGatewayAggregatedList]
36408
+ # @return [Google::Apis::ComputeAlpha::UrlMapsAggregatedList]
35432
36409
  #
35433
36410
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
35434
36411
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
35435
36412
  # @raise [Google::Apis::AuthorizationError] Authorization is required
35436
- def aggregated_target_vpn_gateway_list(project, filter: nil, include_all_scopes: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
35437
- command = make_simple_command(:get, 'projects/{project}/aggregated/targetVpnGateways', options)
35438
- command.response_representation = Google::Apis::ComputeAlpha::TargetVpnGatewayAggregatedList::Representation
35439
- command.response_class = Google::Apis::ComputeAlpha::TargetVpnGatewayAggregatedList
36413
+ def aggregated_url_map_list(project, filter: nil, include_all_scopes: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
36414
+ command = make_simple_command(:get, 'projects/{project}/aggregated/urlMaps', options)
36415
+ command.response_representation = Google::Apis::ComputeAlpha::UrlMapsAggregatedList::Representation
36416
+ command.response_class = Google::Apis::ComputeAlpha::UrlMapsAggregatedList
35440
36417
  command.params['project'] = project unless project.nil?
35441
36418
  command.query['filter'] = filter unless filter.nil?
35442
36419
  command.query['includeAllScopes'] = include_all_scopes unless include_all_scopes.nil?
@@ -35450,13 +36427,11 @@ module Google
35450
36427
  execute_or_queue_command(command, &block)
35451
36428
  end
35452
36429
 
35453
- # Deletes the specified target VPN gateway.
36430
+ # Deletes the specified UrlMap resource.
35454
36431
  # @param [String] project
35455
36432
  # Project ID for this request.
35456
- # @param [String] region
35457
- # Name of the region for this request.
35458
- # @param [String] target_vpn_gateway
35459
- # Name of the target VPN gateway to delete.
36433
+ # @param [String] url_map
36434
+ # Name of the UrlMap resource to delete.
35460
36435
  # @param [String] request_id
35461
36436
  # An optional request ID to identify requests. Specify a unique request ID so
35462
36437
  # that if you must retry your request, the server will know to ignore the
@@ -35487,13 +36462,12 @@ module Google
35487
36462
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
35488
36463
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
35489
36464
  # @raise [Google::Apis::AuthorizationError] Authorization is required
35490
- def delete_target_vpn_gateway(project, region, target_vpn_gateway, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
35491
- command = make_simple_command(:delete, 'projects/{project}/regions/{region}/targetVpnGateways/{targetVpnGateway}', options)
36465
+ def delete_url_map(project, url_map, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
36466
+ command = make_simple_command(:delete, 'projects/{project}/global/urlMaps/{urlMap}', options)
35492
36467
  command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
35493
36468
  command.response_class = Google::Apis::ComputeAlpha::Operation
35494
36469
  command.params['project'] = project unless project.nil?
35495
- command.params['region'] = region unless region.nil?
35496
- command.params['targetVpnGateway'] = target_vpn_gateway unless target_vpn_gateway.nil?
36470
+ command.params['urlMap'] = url_map unless url_map.nil?
35497
36471
  command.query['requestId'] = request_id unless request_id.nil?
35498
36472
  command.query['fields'] = fields unless fields.nil?
35499
36473
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -35501,14 +36475,12 @@ module Google
35501
36475
  execute_or_queue_command(command, &block)
35502
36476
  end
35503
36477
 
35504
- # Returns the specified target VPN gateway. Gets a list of available target VPN
35505
- # gateways by making a list() request.
36478
+ # Returns the specified UrlMap resource. Gets a list of available URL maps by
36479
+ # making a list() request.
35506
36480
  # @param [String] project
35507
36481
  # Project ID for this request.
35508
- # @param [String] region
35509
- # Name of the region for this request.
35510
- # @param [String] target_vpn_gateway
35511
- # Name of the target VPN gateway to return.
36482
+ # @param [String] url_map
36483
+ # Name of the UrlMap resource to return.
35512
36484
  # @param [String] fields
35513
36485
  # Selector specifying which fields to include in a partial response.
35514
36486
  # @param [String] quota_user
@@ -35520,34 +36492,31 @@ module Google
35520
36492
  # Request-specific options
35521
36493
  #
35522
36494
  # @yield [result, err] Result & error if block supplied
35523
- # @yieldparam result [Google::Apis::ComputeAlpha::TargetVpnGateway] parsed result object
36495
+ # @yieldparam result [Google::Apis::ComputeAlpha::UrlMap] parsed result object
35524
36496
  # @yieldparam err [StandardError] error object if request failed
35525
36497
  #
35526
- # @return [Google::Apis::ComputeAlpha::TargetVpnGateway]
36498
+ # @return [Google::Apis::ComputeAlpha::UrlMap]
35527
36499
  #
35528
36500
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
35529
36501
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
35530
36502
  # @raise [Google::Apis::AuthorizationError] Authorization is required
35531
- def get_target_vpn_gateway(project, region, target_vpn_gateway, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
35532
- command = make_simple_command(:get, 'projects/{project}/regions/{region}/targetVpnGateways/{targetVpnGateway}', options)
35533
- command.response_representation = Google::Apis::ComputeAlpha::TargetVpnGateway::Representation
35534
- command.response_class = Google::Apis::ComputeAlpha::TargetVpnGateway
36503
+ def get_url_map(project, url_map, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
36504
+ command = make_simple_command(:get, 'projects/{project}/global/urlMaps/{urlMap}', options)
36505
+ command.response_representation = Google::Apis::ComputeAlpha::UrlMap::Representation
36506
+ command.response_class = Google::Apis::ComputeAlpha::UrlMap
35535
36507
  command.params['project'] = project unless project.nil?
35536
- command.params['region'] = region unless region.nil?
35537
- command.params['targetVpnGateway'] = target_vpn_gateway unless target_vpn_gateway.nil?
36508
+ command.params['urlMap'] = url_map unless url_map.nil?
35538
36509
  command.query['fields'] = fields unless fields.nil?
35539
36510
  command.query['quotaUser'] = quota_user unless quota_user.nil?
35540
36511
  command.query['userIp'] = user_ip unless user_ip.nil?
35541
36512
  execute_or_queue_command(command, &block)
35542
36513
  end
35543
36514
 
35544
- # Creates a target VPN gateway in the specified project and region using the
35545
- # data included in the request.
36515
+ # Creates a UrlMap resource in the specified project using the data included in
36516
+ # the request.
35546
36517
  # @param [String] project
35547
36518
  # Project ID for this request.
35548
- # @param [String] region
35549
- # Name of the region for this request.
35550
- # @param [Google::Apis::ComputeAlpha::TargetVpnGateway] target_vpn_gateway_object
36519
+ # @param [Google::Apis::ComputeAlpha::UrlMap] url_map_object
35551
36520
  # @param [String] request_id
35552
36521
  # An optional request ID to identify requests. Specify a unique request ID so
35553
36522
  # that if you must retry your request, the server will know to ignore the
@@ -35578,14 +36547,13 @@ module Google
35578
36547
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
35579
36548
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
35580
36549
  # @raise [Google::Apis::AuthorizationError] Authorization is required
35581
- def insert_target_vpn_gateway(project, region, target_vpn_gateway_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
35582
- command = make_simple_command(:post, 'projects/{project}/regions/{region}/targetVpnGateways', options)
35583
- command.request_representation = Google::Apis::ComputeAlpha::TargetVpnGateway::Representation
35584
- command.request_object = target_vpn_gateway_object
36550
+ def insert_url_map(project, url_map_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
36551
+ command = make_simple_command(:post, 'projects/{project}/global/urlMaps', options)
36552
+ command.request_representation = Google::Apis::ComputeAlpha::UrlMap::Representation
36553
+ command.request_object = url_map_object
35585
36554
  command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
35586
36555
  command.response_class = Google::Apis::ComputeAlpha::Operation
35587
36556
  command.params['project'] = project unless project.nil?
35588
- command.params['region'] = region unless region.nil?
35589
36557
  command.query['requestId'] = request_id unless request_id.nil?
35590
36558
  command.query['fields'] = fields unless fields.nil?
35591
36559
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -35593,12 +36561,61 @@ module Google
35593
36561
  execute_or_queue_command(command, &block)
35594
36562
  end
35595
36563
 
35596
- # Retrieves a list of target VPN gateways available to the specified project and
35597
- # region.
36564
+ # Initiates a cache invalidation operation, invalidating the specified path,
36565
+ # scoped to the specified UrlMap.
36566
+ # @param [String] project
36567
+ # Project ID for this request.
36568
+ # @param [String] url_map
36569
+ # Name of the UrlMap scoping this request.
36570
+ # @param [Google::Apis::ComputeAlpha::CacheInvalidationRule] cache_invalidation_rule_object
36571
+ # @param [String] request_id
36572
+ # An optional request ID to identify requests. Specify a unique request ID so
36573
+ # that if you must retry your request, the server will know to ignore the
36574
+ # request if it has already been completed.
36575
+ # For example, consider a situation where you make an initial request and the
36576
+ # request times out. If you make the request again with the same request ID, the
36577
+ # server can check if original operation with the same request ID was received,
36578
+ # and if so, will ignore the second request. This prevents clients from
36579
+ # accidentally creating duplicate commitments.
36580
+ # The request ID must be a valid UUID with the exception that zero UUID is not
36581
+ # supported (00000000-0000-0000-0000-000000000000).
36582
+ # @param [String] fields
36583
+ # Selector specifying which fields to include in a partial response.
36584
+ # @param [String] quota_user
36585
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
36586
+ # characters.
36587
+ # @param [String] user_ip
36588
+ # Deprecated. Please use quotaUser instead.
36589
+ # @param [Google::Apis::RequestOptions] options
36590
+ # Request-specific options
36591
+ #
36592
+ # @yield [result, err] Result & error if block supplied
36593
+ # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
36594
+ # @yieldparam err [StandardError] error object if request failed
36595
+ #
36596
+ # @return [Google::Apis::ComputeAlpha::Operation]
36597
+ #
36598
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
36599
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
36600
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
36601
+ def invalidate_url_map_cache(project, url_map, cache_invalidation_rule_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
36602
+ command = make_simple_command(:post, 'projects/{project}/global/urlMaps/{urlMap}/invalidateCache', options)
36603
+ command.request_representation = Google::Apis::ComputeAlpha::CacheInvalidationRule::Representation
36604
+ command.request_object = cache_invalidation_rule_object
36605
+ command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
36606
+ command.response_class = Google::Apis::ComputeAlpha::Operation
36607
+ command.params['project'] = project unless project.nil?
36608
+ command.params['urlMap'] = url_map unless url_map.nil?
36609
+ command.query['requestId'] = request_id unless request_id.nil?
36610
+ command.query['fields'] = fields unless fields.nil?
36611
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
36612
+ command.query['userIp'] = user_ip unless user_ip.nil?
36613
+ execute_or_queue_command(command, &block)
36614
+ end
36615
+
36616
+ # Retrieves the list of UrlMap resources available to the specified project.
35598
36617
  # @param [String] project
35599
36618
  # Project ID for this request.
35600
- # @param [String] region
35601
- # Name of the region for this request.
35602
36619
  # @param [String] filter
35603
36620
  # A filter expression that filters resources listed in the response. The
35604
36621
  # expression must specify the field name, a comparison operator, and the value
@@ -35647,20 +36664,19 @@ module Google
35647
36664
  # Request-specific options
35648
36665
  #
35649
36666
  # @yield [result, err] Result & error if block supplied
35650
- # @yieldparam result [Google::Apis::ComputeAlpha::TargetVpnGatewayList] parsed result object
36667
+ # @yieldparam result [Google::Apis::ComputeAlpha::UrlMapList] parsed result object
35651
36668
  # @yieldparam err [StandardError] error object if request failed
35652
36669
  #
35653
- # @return [Google::Apis::ComputeAlpha::TargetVpnGatewayList]
36670
+ # @return [Google::Apis::ComputeAlpha::UrlMapList]
35654
36671
  #
35655
36672
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
35656
36673
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
35657
36674
  # @raise [Google::Apis::AuthorizationError] Authorization is required
35658
- def list_target_vpn_gateways(project, region, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
35659
- command = make_simple_command(:get, 'projects/{project}/regions/{region}/targetVpnGateways', options)
35660
- command.response_representation = Google::Apis::ComputeAlpha::TargetVpnGatewayList::Representation
35661
- command.response_class = Google::Apis::ComputeAlpha::TargetVpnGatewayList
36675
+ def list_url_maps(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
36676
+ command = make_simple_command(:get, 'projects/{project}/global/urlMaps', options)
36677
+ command.response_representation = Google::Apis::ComputeAlpha::UrlMapList::Representation
36678
+ command.response_class = Google::Apis::ComputeAlpha::UrlMapList
35662
36679
  command.params['project'] = project unless project.nil?
35663
- command.params['region'] = region unless region.nil?
35664
36680
  command.query['filter'] = filter unless filter.nil?
35665
36681
  command.query['maxResults'] = max_results unless max_results.nil?
35666
36682
  command.query['orderBy'] = order_by unless order_by.nil?
@@ -35672,15 +36688,14 @@ module Google
35672
36688
  execute_or_queue_command(command, &block)
35673
36689
  end
35674
36690
 
35675
- # Sets the labels on a TargetVpnGateway. To learn more about labels, read the
35676
- # Labeling Resources documentation.
36691
+ # Patches the specified UrlMap resource with the data included in the request.
36692
+ # This method supports PATCH semantics and uses the JSON merge patch format and
36693
+ # processing rules.
35677
36694
  # @param [String] project
35678
36695
  # Project ID for this request.
35679
- # @param [String] region
35680
- # The region for this request.
35681
- # @param [String] resource
35682
- # Name or id of the resource for this request.
35683
- # @param [Google::Apis::ComputeAlpha::RegionSetLabelsRequest] region_set_labels_request_object
36696
+ # @param [String] url_map
36697
+ # Name of the UrlMap resource to patch.
36698
+ # @param [Google::Apis::ComputeAlpha::UrlMap] url_map_object
35684
36699
  # @param [String] request_id
35685
36700
  # An optional request ID to identify requests. Specify a unique request ID so
35686
36701
  # that if you must retry your request, the server will know to ignore the
@@ -35711,15 +36726,14 @@ module Google
35711
36726
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
35712
36727
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
35713
36728
  # @raise [Google::Apis::AuthorizationError] Authorization is required
35714
- def set_target_vpn_gateway_labels(project, region, resource, region_set_labels_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
35715
- command = make_simple_command(:post, 'projects/{project}/regions/{region}/targetVpnGateways/{resource}/setLabels', options)
35716
- command.request_representation = Google::Apis::ComputeAlpha::RegionSetLabelsRequest::Representation
35717
- command.request_object = region_set_labels_request_object
36729
+ def patch_url_map(project, url_map, url_map_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
36730
+ command = make_simple_command(:patch, 'projects/{project}/global/urlMaps/{urlMap}', options)
36731
+ command.request_representation = Google::Apis::ComputeAlpha::UrlMap::Representation
36732
+ command.request_object = url_map_object
35718
36733
  command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
35719
36734
  command.response_class = Google::Apis::ComputeAlpha::Operation
35720
36735
  command.params['project'] = project unless project.nil?
35721
- command.params['region'] = region unless region.nil?
35722
- command.params['resource'] = resource unless resource.nil?
36736
+ command.params['urlMap'] = url_map unless url_map.nil?
35723
36737
  command.query['requestId'] = request_id unless request_id.nil?
35724
36738
  command.query['fields'] = fields unless fields.nil?
35725
36739
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -35730,8 +36744,6 @@ module Google
35730
36744
  # Returns permissions that a caller has on the specified resource.
35731
36745
  # @param [String] project
35732
36746
  # Project ID for this request.
35733
- # @param [String] region
35734
- # The name of the region for this request.
35735
36747
  # @param [String] resource
35736
36748
  # Name or id of the resource for this request.
35737
36749
  # @param [Google::Apis::ComputeAlpha::TestPermissionsRequest] test_permissions_request_object
@@ -35754,14 +36766,13 @@ module Google
35754
36766
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
35755
36767
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
35756
36768
  # @raise [Google::Apis::AuthorizationError] Authorization is required
35757
- def test_target_vpn_gateway_iam_permissions(project, region, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
35758
- command = make_simple_command(:post, 'projects/{project}/regions/{region}/targetVpnGateways/{resource}/testIamPermissions', options)
36769
+ def test_url_map_iam_permissions(project, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
36770
+ command = make_simple_command(:post, 'projects/{project}/global/urlMaps/{resource}/testIamPermissions', options)
35759
36771
  command.request_representation = Google::Apis::ComputeAlpha::TestPermissionsRequest::Representation
35760
36772
  command.request_object = test_permissions_request_object
35761
36773
  command.response_representation = Google::Apis::ComputeAlpha::TestPermissionsResponse::Representation
35762
36774
  command.response_class = Google::Apis::ComputeAlpha::TestPermissionsResponse
35763
36775
  command.params['project'] = project unless project.nil?
35764
- command.params['region'] = region unless region.nil?
35765
36776
  command.params['resource'] = resource unless resource.nil?
35766
36777
  command.query['fields'] = fields unless fields.nil?
35767
36778
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -35769,10 +36780,100 @@ module Google
35769
36780
  execute_or_queue_command(command, &block)
35770
36781
  end
35771
36782
 
35772
- # Retrieves the list of all UrlMap resources, regional and global, available to
35773
- # the specified project.
36783
+ # Updates the specified UrlMap resource with the data included in the request.
35774
36784
  # @param [String] project
35775
- # Name of the project scoping this request.
36785
+ # Project ID for this request.
36786
+ # @param [String] url_map
36787
+ # Name of the UrlMap resource to update.
36788
+ # @param [Google::Apis::ComputeAlpha::UrlMap] url_map_object
36789
+ # @param [String] request_id
36790
+ # An optional request ID to identify requests. Specify a unique request ID so
36791
+ # that if you must retry your request, the server will know to ignore the
36792
+ # request if it has already been completed.
36793
+ # For example, consider a situation where you make an initial request and the
36794
+ # request times out. If you make the request again with the same request ID, the
36795
+ # server can check if original operation with the same request ID was received,
36796
+ # and if so, will ignore the second request. This prevents clients from
36797
+ # accidentally creating duplicate commitments.
36798
+ # The request ID must be a valid UUID with the exception that zero UUID is not
36799
+ # supported (00000000-0000-0000-0000-000000000000).
36800
+ # @param [String] fields
36801
+ # Selector specifying which fields to include in a partial response.
36802
+ # @param [String] quota_user
36803
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
36804
+ # characters.
36805
+ # @param [String] user_ip
36806
+ # Deprecated. Please use quotaUser instead.
36807
+ # @param [Google::Apis::RequestOptions] options
36808
+ # Request-specific options
36809
+ #
36810
+ # @yield [result, err] Result & error if block supplied
36811
+ # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
36812
+ # @yieldparam err [StandardError] error object if request failed
36813
+ #
36814
+ # @return [Google::Apis::ComputeAlpha::Operation]
36815
+ #
36816
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
36817
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
36818
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
36819
+ def update_url_map(project, url_map, url_map_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
36820
+ command = make_simple_command(:put, 'projects/{project}/global/urlMaps/{urlMap}', options)
36821
+ command.request_representation = Google::Apis::ComputeAlpha::UrlMap::Representation
36822
+ command.request_object = url_map_object
36823
+ command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
36824
+ command.response_class = Google::Apis::ComputeAlpha::Operation
36825
+ command.params['project'] = project unless project.nil?
36826
+ command.params['urlMap'] = url_map unless url_map.nil?
36827
+ command.query['requestId'] = request_id unless request_id.nil?
36828
+ command.query['fields'] = fields unless fields.nil?
36829
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
36830
+ command.query['userIp'] = user_ip unless user_ip.nil?
36831
+ execute_or_queue_command(command, &block)
36832
+ end
36833
+
36834
+ # Runs static validation for the UrlMap. In particular, the tests of the
36835
+ # provided UrlMap will be run. Calling this method does NOT create the UrlMap.
36836
+ # @param [String] project
36837
+ # Project ID for this request.
36838
+ # @param [String] url_map
36839
+ # Name of the UrlMap resource to be validated as.
36840
+ # @param [Google::Apis::ComputeAlpha::UrlMapsValidateRequest] url_maps_validate_request_object
36841
+ # @param [String] fields
36842
+ # Selector specifying which fields to include in a partial response.
36843
+ # @param [String] quota_user
36844
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
36845
+ # characters.
36846
+ # @param [String] user_ip
36847
+ # Deprecated. Please use quotaUser instead.
36848
+ # @param [Google::Apis::RequestOptions] options
36849
+ # Request-specific options
36850
+ #
36851
+ # @yield [result, err] Result & error if block supplied
36852
+ # @yieldparam result [Google::Apis::ComputeAlpha::UrlMapsValidateResponse] parsed result object
36853
+ # @yieldparam err [StandardError] error object if request failed
36854
+ #
36855
+ # @return [Google::Apis::ComputeAlpha::UrlMapsValidateResponse]
36856
+ #
36857
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
36858
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
36859
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
36860
+ def validate_url_map(project, url_map, url_maps_validate_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
36861
+ command = make_simple_command(:post, 'projects/{project}/global/urlMaps/{urlMap}/validate', options)
36862
+ command.request_representation = Google::Apis::ComputeAlpha::UrlMapsValidateRequest::Representation
36863
+ command.request_object = url_maps_validate_request_object
36864
+ command.response_representation = Google::Apis::ComputeAlpha::UrlMapsValidateResponse::Representation
36865
+ command.response_class = Google::Apis::ComputeAlpha::UrlMapsValidateResponse
36866
+ command.params['project'] = project unless project.nil?
36867
+ command.params['urlMap'] = url_map unless url_map.nil?
36868
+ command.query['fields'] = fields unless fields.nil?
36869
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
36870
+ command.query['userIp'] = user_ip unless user_ip.nil?
36871
+ execute_or_queue_command(command, &block)
36872
+ end
36873
+
36874
+ # Retrieves an aggregated list of VPN gateways.
36875
+ # @param [String] project
36876
+ # Project ID for this request.
35776
36877
  # @param [String] filter
35777
36878
  # A filter expression that filters resources listed in the response. The
35778
36879
  # expression must specify the field name, a comparison operator, and the value
@@ -35828,18 +36929,18 @@ module Google
35828
36929
  # Request-specific options
35829
36930
  #
35830
36931
  # @yield [result, err] Result & error if block supplied
35831
- # @yieldparam result [Google::Apis::ComputeAlpha::UrlMapsAggregatedList] parsed result object
36932
+ # @yieldparam result [Google::Apis::ComputeAlpha::VpnGatewayAggregatedList] parsed result object
35832
36933
  # @yieldparam err [StandardError] error object if request failed
35833
36934
  #
35834
- # @return [Google::Apis::ComputeAlpha::UrlMapsAggregatedList]
36935
+ # @return [Google::Apis::ComputeAlpha::VpnGatewayAggregatedList]
35835
36936
  #
35836
36937
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
35837
36938
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
35838
36939
  # @raise [Google::Apis::AuthorizationError] Authorization is required
35839
- def aggregated_url_map_list(project, filter: nil, include_all_scopes: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
35840
- command = make_simple_command(:get, 'projects/{project}/aggregated/urlMaps', options)
35841
- command.response_representation = Google::Apis::ComputeAlpha::UrlMapsAggregatedList::Representation
35842
- command.response_class = Google::Apis::ComputeAlpha::UrlMapsAggregatedList
36940
+ def aggregated_vpn_gateway_list(project, filter: nil, include_all_scopes: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
36941
+ command = make_simple_command(:get, 'projects/{project}/aggregated/vpnGateways', options)
36942
+ command.response_representation = Google::Apis::ComputeAlpha::VpnGatewayAggregatedList::Representation
36943
+ command.response_class = Google::Apis::ComputeAlpha::VpnGatewayAggregatedList
35843
36944
  command.params['project'] = project unless project.nil?
35844
36945
  command.query['filter'] = filter unless filter.nil?
35845
36946
  command.query['includeAllScopes'] = include_all_scopes unless include_all_scopes.nil?
@@ -35853,11 +36954,13 @@ module Google
35853
36954
  execute_or_queue_command(command, &block)
35854
36955
  end
35855
36956
 
35856
- # Deletes the specified UrlMap resource.
36957
+ # Deletes the specified VPN gateway.
35857
36958
  # @param [String] project
35858
36959
  # Project ID for this request.
35859
- # @param [String] url_map
35860
- # Name of the UrlMap resource to delete.
36960
+ # @param [String] region
36961
+ # Name of the region for this request.
36962
+ # @param [String] vpn_gateway
36963
+ # Name of the VPN gateway to delete.
35861
36964
  # @param [String] request_id
35862
36965
  # An optional request ID to identify requests. Specify a unique request ID so
35863
36966
  # that if you must retry your request, the server will know to ignore the
@@ -35888,12 +36991,13 @@ module Google
35888
36991
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
35889
36992
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
35890
36993
  # @raise [Google::Apis::AuthorizationError] Authorization is required
35891
- def delete_url_map(project, url_map, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
35892
- command = make_simple_command(:delete, 'projects/{project}/global/urlMaps/{urlMap}', options)
36994
+ def delete_vpn_gateway(project, region, vpn_gateway, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
36995
+ command = make_simple_command(:delete, 'projects/{project}/regions/{region}/vpnGateways/{vpnGateway}', options)
35893
36996
  command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
35894
36997
  command.response_class = Google::Apis::ComputeAlpha::Operation
35895
36998
  command.params['project'] = project unless project.nil?
35896
- command.params['urlMap'] = url_map unless url_map.nil?
36999
+ command.params['region'] = region unless region.nil?
37000
+ command.params['vpnGateway'] = vpn_gateway unless vpn_gateway.nil?
35897
37001
  command.query['requestId'] = request_id unless request_id.nil?
35898
37002
  command.query['fields'] = fields unless fields.nil?
35899
37003
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -35901,12 +37005,14 @@ module Google
35901
37005
  execute_or_queue_command(command, &block)
35902
37006
  end
35903
37007
 
35904
- # Returns the specified UrlMap resource. Gets a list of available URL maps by
37008
+ # Returns the specified VPN gateway. Gets a list of available VPN gateways by
35905
37009
  # making a list() request.
35906
37010
  # @param [String] project
35907
37011
  # Project ID for this request.
35908
- # @param [String] url_map
35909
- # Name of the UrlMap resource to return.
37012
+ # @param [String] region
37013
+ # Name of the region for this request.
37014
+ # @param [String] vpn_gateway
37015
+ # Name of the VPN gateway to return.
35910
37016
  # @param [String] fields
35911
37017
  # Selector specifying which fields to include in a partial response.
35912
37018
  # @param [String] quota_user
@@ -35918,42 +37024,34 @@ module Google
35918
37024
  # Request-specific options
35919
37025
  #
35920
37026
  # @yield [result, err] Result & error if block supplied
35921
- # @yieldparam result [Google::Apis::ComputeAlpha::UrlMap] parsed result object
37027
+ # @yieldparam result [Google::Apis::ComputeAlpha::VpnGateway] parsed result object
35922
37028
  # @yieldparam err [StandardError] error object if request failed
35923
37029
  #
35924
- # @return [Google::Apis::ComputeAlpha::UrlMap]
37030
+ # @return [Google::Apis::ComputeAlpha::VpnGateway]
35925
37031
  #
35926
37032
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
35927
37033
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
35928
37034
  # @raise [Google::Apis::AuthorizationError] Authorization is required
35929
- def get_url_map(project, url_map, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
35930
- command = make_simple_command(:get, 'projects/{project}/global/urlMaps/{urlMap}', options)
35931
- command.response_representation = Google::Apis::ComputeAlpha::UrlMap::Representation
35932
- command.response_class = Google::Apis::ComputeAlpha::UrlMap
37035
+ def get_vpn_gateway(project, region, vpn_gateway, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
37036
+ command = make_simple_command(:get, 'projects/{project}/regions/{region}/vpnGateways/{vpnGateway}', options)
37037
+ command.response_representation = Google::Apis::ComputeAlpha::VpnGateway::Representation
37038
+ command.response_class = Google::Apis::ComputeAlpha::VpnGateway
35933
37039
  command.params['project'] = project unless project.nil?
35934
- command.params['urlMap'] = url_map unless url_map.nil?
37040
+ command.params['region'] = region unless region.nil?
37041
+ command.params['vpnGateway'] = vpn_gateway unless vpn_gateway.nil?
35935
37042
  command.query['fields'] = fields unless fields.nil?
35936
37043
  command.query['quotaUser'] = quota_user unless quota_user.nil?
35937
37044
  command.query['userIp'] = user_ip unless user_ip.nil?
35938
37045
  execute_or_queue_command(command, &block)
35939
37046
  end
35940
37047
 
35941
- # Creates a UrlMap resource in the specified project using the data included in
35942
- # the request.
37048
+ # Returns the status for the specified VPN gateway.
35943
37049
  # @param [String] project
35944
37050
  # Project ID for this request.
35945
- # @param [Google::Apis::ComputeAlpha::UrlMap] url_map_object
35946
- # @param [String] request_id
35947
- # An optional request ID to identify requests. Specify a unique request ID so
35948
- # that if you must retry your request, the server will know to ignore the
35949
- # request if it has already been completed.
35950
- # For example, consider a situation where you make an initial request and the
35951
- # request times out. If you make the request again with the same request ID, the
35952
- # server can check if original operation with the same request ID was received,
35953
- # and if so, will ignore the second request. This prevents clients from
35954
- # accidentally creating duplicate commitments.
35955
- # The request ID must be a valid UUID with the exception that zero UUID is not
35956
- # supported (00000000-0000-0000-0000-000000000000).
37051
+ # @param [String] region
37052
+ # Name of the region for this request.
37053
+ # @param [String] vpn_gateway
37054
+ # Name of the VPN gateway to return.
35957
37055
  # @param [String] fields
35958
37056
  # Selector specifying which fields to include in a partial response.
35959
37057
  # @param [String] quota_user
@@ -35965,35 +37063,34 @@ module Google
35965
37063
  # Request-specific options
35966
37064
  #
35967
37065
  # @yield [result, err] Result & error if block supplied
35968
- # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
37066
+ # @yieldparam result [Google::Apis::ComputeAlpha::VpnGatewaysGetStatusResponse] parsed result object
35969
37067
  # @yieldparam err [StandardError] error object if request failed
35970
37068
  #
35971
- # @return [Google::Apis::ComputeAlpha::Operation]
37069
+ # @return [Google::Apis::ComputeAlpha::VpnGatewaysGetStatusResponse]
35972
37070
  #
35973
37071
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
35974
37072
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
35975
37073
  # @raise [Google::Apis::AuthorizationError] Authorization is required
35976
- def insert_url_map(project, url_map_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
35977
- command = make_simple_command(:post, 'projects/{project}/global/urlMaps', options)
35978
- command.request_representation = Google::Apis::ComputeAlpha::UrlMap::Representation
35979
- command.request_object = url_map_object
35980
- command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
35981
- command.response_class = Google::Apis::ComputeAlpha::Operation
37074
+ def get_vpn_gateway_status(project, region, vpn_gateway, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
37075
+ command = make_simple_command(:get, 'projects/{project}/regions/{region}/vpnGateways/{vpnGateway}/getStatus', options)
37076
+ command.response_representation = Google::Apis::ComputeAlpha::VpnGatewaysGetStatusResponse::Representation
37077
+ command.response_class = Google::Apis::ComputeAlpha::VpnGatewaysGetStatusResponse
35982
37078
  command.params['project'] = project unless project.nil?
35983
- command.query['requestId'] = request_id unless request_id.nil?
37079
+ command.params['region'] = region unless region.nil?
37080
+ command.params['vpnGateway'] = vpn_gateway unless vpn_gateway.nil?
35984
37081
  command.query['fields'] = fields unless fields.nil?
35985
37082
  command.query['quotaUser'] = quota_user unless quota_user.nil?
35986
37083
  command.query['userIp'] = user_ip unless user_ip.nil?
35987
37084
  execute_or_queue_command(command, &block)
35988
37085
  end
35989
37086
 
35990
- # Initiates a cache invalidation operation, invalidating the specified path,
35991
- # scoped to the specified UrlMap.
37087
+ # Creates a VPN gateway in the specified project and region using the data
37088
+ # included in the request.
35992
37089
  # @param [String] project
35993
37090
  # Project ID for this request.
35994
- # @param [String] url_map
35995
- # Name of the UrlMap scoping this request.
35996
- # @param [Google::Apis::ComputeAlpha::CacheInvalidationRule] cache_invalidation_rule_object
37091
+ # @param [String] region
37092
+ # Name of the region for this request.
37093
+ # @param [Google::Apis::ComputeAlpha::VpnGateway] vpn_gateway_object
35997
37094
  # @param [String] request_id
35998
37095
  # An optional request ID to identify requests. Specify a unique request ID so
35999
37096
  # that if you must retry your request, the server will know to ignore the
@@ -36024,14 +37121,14 @@ module Google
36024
37121
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
36025
37122
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
36026
37123
  # @raise [Google::Apis::AuthorizationError] Authorization is required
36027
- def invalidate_url_map_cache(project, url_map, cache_invalidation_rule_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
36028
- command = make_simple_command(:post, 'projects/{project}/global/urlMaps/{urlMap}/invalidateCache', options)
36029
- command.request_representation = Google::Apis::ComputeAlpha::CacheInvalidationRule::Representation
36030
- command.request_object = cache_invalidation_rule_object
37124
+ def insert_vpn_gateway(project, region, vpn_gateway_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
37125
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/vpnGateways', options)
37126
+ command.request_representation = Google::Apis::ComputeAlpha::VpnGateway::Representation
37127
+ command.request_object = vpn_gateway_object
36031
37128
  command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
36032
37129
  command.response_class = Google::Apis::ComputeAlpha::Operation
36033
37130
  command.params['project'] = project unless project.nil?
36034
- command.params['urlMap'] = url_map unless url_map.nil?
37131
+ command.params['region'] = region unless region.nil?
36035
37132
  command.query['requestId'] = request_id unless request_id.nil?
36036
37133
  command.query['fields'] = fields unless fields.nil?
36037
37134
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -36039,9 +37136,11 @@ module Google
36039
37136
  execute_or_queue_command(command, &block)
36040
37137
  end
36041
37138
 
36042
- # Retrieves the list of UrlMap resources available to the specified project.
37139
+ # Retrieves a list of VPN gateways available to the specified project and region.
36043
37140
  # @param [String] project
36044
37141
  # Project ID for this request.
37142
+ # @param [String] region
37143
+ # Name of the region for this request.
36045
37144
  # @param [String] filter
36046
37145
  # A filter expression that filters resources listed in the response. The
36047
37146
  # expression must specify the field name, a comparison operator, and the value
@@ -36090,19 +37189,20 @@ module Google
36090
37189
  # Request-specific options
36091
37190
  #
36092
37191
  # @yield [result, err] Result & error if block supplied
36093
- # @yieldparam result [Google::Apis::ComputeAlpha::UrlMapList] parsed result object
37192
+ # @yieldparam result [Google::Apis::ComputeAlpha::VpnGatewayList] parsed result object
36094
37193
  # @yieldparam err [StandardError] error object if request failed
36095
37194
  #
36096
- # @return [Google::Apis::ComputeAlpha::UrlMapList]
37195
+ # @return [Google::Apis::ComputeAlpha::VpnGatewayList]
36097
37196
  #
36098
37197
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
36099
37198
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
36100
37199
  # @raise [Google::Apis::AuthorizationError] Authorization is required
36101
- def list_url_maps(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
36102
- command = make_simple_command(:get, 'projects/{project}/global/urlMaps', options)
36103
- command.response_representation = Google::Apis::ComputeAlpha::UrlMapList::Representation
36104
- command.response_class = Google::Apis::ComputeAlpha::UrlMapList
37200
+ def list_vpn_gateways(project, region, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
37201
+ command = make_simple_command(:get, 'projects/{project}/regions/{region}/vpnGateways', options)
37202
+ command.response_representation = Google::Apis::ComputeAlpha::VpnGatewayList::Representation
37203
+ command.response_class = Google::Apis::ComputeAlpha::VpnGatewayList
36105
37204
  command.params['project'] = project unless project.nil?
37205
+ command.params['region'] = region unless region.nil?
36106
37206
  command.query['filter'] = filter unless filter.nil?
36107
37207
  command.query['maxResults'] = max_results unless max_results.nil?
36108
37208
  command.query['orderBy'] = order_by unless order_by.nil?
@@ -36114,14 +37214,15 @@ module Google
36114
37214
  execute_or_queue_command(command, &block)
36115
37215
  end
36116
37216
 
36117
- # Patches the specified UrlMap resource with the data included in the request.
36118
- # This method supports PATCH semantics and uses the JSON merge patch format and
36119
- # processing rules.
37217
+ # Sets the labels on a VpnGateway. To learn more about labels, read the Labeling
37218
+ # Resources documentation.
36120
37219
  # @param [String] project
36121
37220
  # Project ID for this request.
36122
- # @param [String] url_map
36123
- # Name of the UrlMap resource to patch.
36124
- # @param [Google::Apis::ComputeAlpha::UrlMap] url_map_object
37221
+ # @param [String] region
37222
+ # The region for this request.
37223
+ # @param [String] resource
37224
+ # Name or id of the resource for this request.
37225
+ # @param [Google::Apis::ComputeAlpha::RegionSetLabelsRequest] region_set_labels_request_object
36125
37226
  # @param [String] request_id
36126
37227
  # An optional request ID to identify requests. Specify a unique request ID so
36127
37228
  # that if you must retry your request, the server will know to ignore the
@@ -36152,14 +37253,15 @@ module Google
36152
37253
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
36153
37254
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
36154
37255
  # @raise [Google::Apis::AuthorizationError] Authorization is required
36155
- def patch_url_map(project, url_map, url_map_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
36156
- command = make_simple_command(:patch, 'projects/{project}/global/urlMaps/{urlMap}', options)
36157
- command.request_representation = Google::Apis::ComputeAlpha::UrlMap::Representation
36158
- command.request_object = url_map_object
37256
+ def set_vpn_gateway_labels(project, region, resource, region_set_labels_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
37257
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/vpnGateways/{resource}/setLabels', options)
37258
+ command.request_representation = Google::Apis::ComputeAlpha::RegionSetLabelsRequest::Representation
37259
+ command.request_object = region_set_labels_request_object
36159
37260
  command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
36160
37261
  command.response_class = Google::Apis::ComputeAlpha::Operation
36161
37262
  command.params['project'] = project unless project.nil?
36162
- command.params['urlMap'] = url_map unless url_map.nil?
37263
+ command.params['region'] = region unless region.nil?
37264
+ command.params['resource'] = resource unless resource.nil?
36163
37265
  command.query['requestId'] = request_id unless request_id.nil?
36164
37266
  command.query['fields'] = fields unless fields.nil?
36165
37267
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -36170,6 +37272,8 @@ module Google
36170
37272
  # Returns permissions that a caller has on the specified resource.
36171
37273
  # @param [String] project
36172
37274
  # Project ID for this request.
37275
+ # @param [String] region
37276
+ # The name of the region for this request.
36173
37277
  # @param [String] resource
36174
37278
  # Name or id of the resource for this request.
36175
37279
  # @param [Google::Apis::ComputeAlpha::TestPermissionsRequest] test_permissions_request_object
@@ -36192,13 +37296,14 @@ module Google
36192
37296
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
36193
37297
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
36194
37298
  # @raise [Google::Apis::AuthorizationError] Authorization is required
36195
- def test_url_map_iam_permissions(project, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
36196
- command = make_simple_command(:post, 'projects/{project}/global/urlMaps/{resource}/testIamPermissions', options)
37299
+ def test_vpn_gateway_iam_permissions(project, region, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
37300
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/vpnGateways/{resource}/testIamPermissions', options)
36197
37301
  command.request_representation = Google::Apis::ComputeAlpha::TestPermissionsRequest::Representation
36198
37302
  command.request_object = test_permissions_request_object
36199
37303
  command.response_representation = Google::Apis::ComputeAlpha::TestPermissionsResponse::Representation
36200
37304
  command.response_class = Google::Apis::ComputeAlpha::TestPermissionsResponse
36201
37305
  command.params['project'] = project unless project.nil?
37306
+ command.params['region'] = region unless region.nil?
36202
37307
  command.params['resource'] = resource unless resource.nil?
36203
37308
  command.query['fields'] = fields unless fields.nil?
36204
37309
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -36206,98 +37311,7 @@ module Google
36206
37311
  execute_or_queue_command(command, &block)
36207
37312
  end
36208
37313
 
36209
- # Updates the specified UrlMap resource with the data included in the request.
36210
- # @param [String] project
36211
- # Project ID for this request.
36212
- # @param [String] url_map
36213
- # Name of the UrlMap resource to update.
36214
- # @param [Google::Apis::ComputeAlpha::UrlMap] url_map_object
36215
- # @param [String] request_id
36216
- # An optional request ID to identify requests. Specify a unique request ID so
36217
- # that if you must retry your request, the server will know to ignore the
36218
- # request if it has already been completed.
36219
- # For example, consider a situation where you make an initial request and the
36220
- # request times out. If you make the request again with the same request ID, the
36221
- # server can check if original operation with the same request ID was received,
36222
- # and if so, will ignore the second request. This prevents clients from
36223
- # accidentally creating duplicate commitments.
36224
- # The request ID must be a valid UUID with the exception that zero UUID is not
36225
- # supported (00000000-0000-0000-0000-000000000000).
36226
- # @param [String] fields
36227
- # Selector specifying which fields to include in a partial response.
36228
- # @param [String] quota_user
36229
- # An opaque string that represents a user for quota purposes. Must not exceed 40
36230
- # characters.
36231
- # @param [String] user_ip
36232
- # Deprecated. Please use quotaUser instead.
36233
- # @param [Google::Apis::RequestOptions] options
36234
- # Request-specific options
36235
- #
36236
- # @yield [result, err] Result & error if block supplied
36237
- # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
36238
- # @yieldparam err [StandardError] error object if request failed
36239
- #
36240
- # @return [Google::Apis::ComputeAlpha::Operation]
36241
- #
36242
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
36243
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
36244
- # @raise [Google::Apis::AuthorizationError] Authorization is required
36245
- def update_url_map(project, url_map, url_map_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
36246
- command = make_simple_command(:put, 'projects/{project}/global/urlMaps/{urlMap}', options)
36247
- command.request_representation = Google::Apis::ComputeAlpha::UrlMap::Representation
36248
- command.request_object = url_map_object
36249
- command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
36250
- command.response_class = Google::Apis::ComputeAlpha::Operation
36251
- command.params['project'] = project unless project.nil?
36252
- command.params['urlMap'] = url_map unless url_map.nil?
36253
- command.query['requestId'] = request_id unless request_id.nil?
36254
- command.query['fields'] = fields unless fields.nil?
36255
- command.query['quotaUser'] = quota_user unless quota_user.nil?
36256
- command.query['userIp'] = user_ip unless user_ip.nil?
36257
- execute_or_queue_command(command, &block)
36258
- end
36259
-
36260
- # Runs static validation for the UrlMap. In particular, the tests of the
36261
- # provided UrlMap will be run. Calling this method does NOT create the UrlMap.
36262
- # @param [String] project
36263
- # Project ID for this request.
36264
- # @param [String] url_map
36265
- # Name of the UrlMap resource to be validated as.
36266
- # @param [Google::Apis::ComputeAlpha::UrlMapsValidateRequest] url_maps_validate_request_object
36267
- # @param [String] fields
36268
- # Selector specifying which fields to include in a partial response.
36269
- # @param [String] quota_user
36270
- # An opaque string that represents a user for quota purposes. Must not exceed 40
36271
- # characters.
36272
- # @param [String] user_ip
36273
- # Deprecated. Please use quotaUser instead.
36274
- # @param [Google::Apis::RequestOptions] options
36275
- # Request-specific options
36276
- #
36277
- # @yield [result, err] Result & error if block supplied
36278
- # @yieldparam result [Google::Apis::ComputeAlpha::UrlMapsValidateResponse] parsed result object
36279
- # @yieldparam err [StandardError] error object if request failed
36280
- #
36281
- # @return [Google::Apis::ComputeAlpha::UrlMapsValidateResponse]
36282
- #
36283
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
36284
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
36285
- # @raise [Google::Apis::AuthorizationError] Authorization is required
36286
- def validate_url_map(project, url_map, url_maps_validate_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
36287
- command = make_simple_command(:post, 'projects/{project}/global/urlMaps/{urlMap}/validate', options)
36288
- command.request_representation = Google::Apis::ComputeAlpha::UrlMapsValidateRequest::Representation
36289
- command.request_object = url_maps_validate_request_object
36290
- command.response_representation = Google::Apis::ComputeAlpha::UrlMapsValidateResponse::Representation
36291
- command.response_class = Google::Apis::ComputeAlpha::UrlMapsValidateResponse
36292
- command.params['project'] = project unless project.nil?
36293
- command.params['urlMap'] = url_map unless url_map.nil?
36294
- command.query['fields'] = fields unless fields.nil?
36295
- command.query['quotaUser'] = quota_user unless quota_user.nil?
36296
- command.query['userIp'] = user_ip unless user_ip.nil?
36297
- execute_or_queue_command(command, &block)
36298
- end
36299
-
36300
- # Retrieves an aggregated list of VPN gateways.
37314
+ # Retrieves an aggregated list of VPN tunnels.
36301
37315
  # @param [String] project
36302
37316
  # Project ID for this request.
36303
37317
  # @param [String] filter
@@ -36355,18 +37369,18 @@ module Google
36355
37369
  # Request-specific options
36356
37370
  #
36357
37371
  # @yield [result, err] Result & error if block supplied
36358
- # @yieldparam result [Google::Apis::ComputeAlpha::VpnGatewayAggregatedList] parsed result object
37372
+ # @yieldparam result [Google::Apis::ComputeAlpha::VpnTunnelAggregatedList] parsed result object
36359
37373
  # @yieldparam err [StandardError] error object if request failed
36360
37374
  #
36361
- # @return [Google::Apis::ComputeAlpha::VpnGatewayAggregatedList]
37375
+ # @return [Google::Apis::ComputeAlpha::VpnTunnelAggregatedList]
36362
37376
  #
36363
37377
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
36364
37378
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
36365
37379
  # @raise [Google::Apis::AuthorizationError] Authorization is required
36366
- def aggregated_vpn_gateway_list(project, filter: nil, include_all_scopes: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
36367
- command = make_simple_command(:get, 'projects/{project}/aggregated/vpnGateways', options)
36368
- command.response_representation = Google::Apis::ComputeAlpha::VpnGatewayAggregatedList::Representation
36369
- command.response_class = Google::Apis::ComputeAlpha::VpnGatewayAggregatedList
37380
+ def aggregated_vpn_tunnel_list(project, filter: nil, include_all_scopes: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
37381
+ command = make_simple_command(:get, 'projects/{project}/aggregated/vpnTunnels', options)
37382
+ command.response_representation = Google::Apis::ComputeAlpha::VpnTunnelAggregatedList::Representation
37383
+ command.response_class = Google::Apis::ComputeAlpha::VpnTunnelAggregatedList
36370
37384
  command.params['project'] = project unless project.nil?
36371
37385
  command.query['filter'] = filter unless filter.nil?
36372
37386
  command.query['includeAllScopes'] = include_all_scopes unless include_all_scopes.nil?
@@ -36380,13 +37394,13 @@ module Google
36380
37394
  execute_or_queue_command(command, &block)
36381
37395
  end
36382
37396
 
36383
- # Deletes the specified VPN gateway.
37397
+ # Deletes the specified VpnTunnel resource.
36384
37398
  # @param [String] project
36385
37399
  # Project ID for this request.
36386
37400
  # @param [String] region
36387
37401
  # Name of the region for this request.
36388
- # @param [String] vpn_gateway
36389
- # Name of the VPN gateway to delete.
37402
+ # @param [String] vpn_tunnel
37403
+ # Name of the VpnTunnel resource to delete.
36390
37404
  # @param [String] request_id
36391
37405
  # An optional request ID to identify requests. Specify a unique request ID so
36392
37406
  # that if you must retry your request, the server will know to ignore the
@@ -36417,13 +37431,13 @@ module Google
36417
37431
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
36418
37432
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
36419
37433
  # @raise [Google::Apis::AuthorizationError] Authorization is required
36420
- def delete_vpn_gateway(project, region, vpn_gateway, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
36421
- command = make_simple_command(:delete, 'projects/{project}/regions/{region}/vpnGateways/{vpnGateway}', options)
37434
+ def delete_vpn_tunnel(project, region, vpn_tunnel, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
37435
+ command = make_simple_command(:delete, 'projects/{project}/regions/{region}/vpnTunnels/{vpnTunnel}', options)
36422
37436
  command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
36423
37437
  command.response_class = Google::Apis::ComputeAlpha::Operation
36424
37438
  command.params['project'] = project unless project.nil?
36425
37439
  command.params['region'] = region unless region.nil?
36426
- command.params['vpnGateway'] = vpn_gateway unless vpn_gateway.nil?
37440
+ command.params['vpnTunnel'] = vpn_tunnel unless vpn_tunnel.nil?
36427
37441
  command.query['requestId'] = request_id unless request_id.nil?
36428
37442
  command.query['fields'] = fields unless fields.nil?
36429
37443
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -36431,53 +37445,14 @@ module Google
36431
37445
  execute_or_queue_command(command, &block)
36432
37446
  end
36433
37447
 
36434
- # Returns the specified VPN gateway. Gets a list of available VPN gateways by
36435
- # making a list() request.
36436
- # @param [String] project
36437
- # Project ID for this request.
36438
- # @param [String] region
36439
- # Name of the region for this request.
36440
- # @param [String] vpn_gateway
36441
- # Name of the VPN gateway to return.
36442
- # @param [String] fields
36443
- # Selector specifying which fields to include in a partial response.
36444
- # @param [String] quota_user
36445
- # An opaque string that represents a user for quota purposes. Must not exceed 40
36446
- # characters.
36447
- # @param [String] user_ip
36448
- # Deprecated. Please use quotaUser instead.
36449
- # @param [Google::Apis::RequestOptions] options
36450
- # Request-specific options
36451
- #
36452
- # @yield [result, err] Result & error if block supplied
36453
- # @yieldparam result [Google::Apis::ComputeAlpha::VpnGateway] parsed result object
36454
- # @yieldparam err [StandardError] error object if request failed
36455
- #
36456
- # @return [Google::Apis::ComputeAlpha::VpnGateway]
36457
- #
36458
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
36459
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
36460
- # @raise [Google::Apis::AuthorizationError] Authorization is required
36461
- def get_vpn_gateway(project, region, vpn_gateway, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
36462
- command = make_simple_command(:get, 'projects/{project}/regions/{region}/vpnGateways/{vpnGateway}', options)
36463
- command.response_representation = Google::Apis::ComputeAlpha::VpnGateway::Representation
36464
- command.response_class = Google::Apis::ComputeAlpha::VpnGateway
36465
- command.params['project'] = project unless project.nil?
36466
- command.params['region'] = region unless region.nil?
36467
- command.params['vpnGateway'] = vpn_gateway unless vpn_gateway.nil?
36468
- command.query['fields'] = fields unless fields.nil?
36469
- command.query['quotaUser'] = quota_user unless quota_user.nil?
36470
- command.query['userIp'] = user_ip unless user_ip.nil?
36471
- execute_or_queue_command(command, &block)
36472
- end
36473
-
36474
- # Returns the status for the specified VPN gateway.
37448
+ # Returns the specified VpnTunnel resource. Gets a list of available VPN tunnels
37449
+ # by making a list() request.
36475
37450
  # @param [String] project
36476
37451
  # Project ID for this request.
36477
37452
  # @param [String] region
36478
37453
  # Name of the region for this request.
36479
- # @param [String] vpn_gateway
36480
- # Name of the VPN gateway to return.
37454
+ # @param [String] vpn_tunnel
37455
+ # Name of the VpnTunnel resource to return.
36481
37456
  # @param [String] fields
36482
37457
  # Selector specifying which fields to include in a partial response.
36483
37458
  # @param [String] quota_user
@@ -36489,34 +37464,34 @@ module Google
36489
37464
  # Request-specific options
36490
37465
  #
36491
37466
  # @yield [result, err] Result & error if block supplied
36492
- # @yieldparam result [Google::Apis::ComputeAlpha::VpnGatewaysGetStatusResponse] parsed result object
37467
+ # @yieldparam result [Google::Apis::ComputeAlpha::VpnTunnel] parsed result object
36493
37468
  # @yieldparam err [StandardError] error object if request failed
36494
37469
  #
36495
- # @return [Google::Apis::ComputeAlpha::VpnGatewaysGetStatusResponse]
37470
+ # @return [Google::Apis::ComputeAlpha::VpnTunnel]
36496
37471
  #
36497
37472
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
36498
37473
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
36499
37474
  # @raise [Google::Apis::AuthorizationError] Authorization is required
36500
- def get_vpn_gateway_status(project, region, vpn_gateway, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
36501
- command = make_simple_command(:get, 'projects/{project}/regions/{region}/vpnGateways/{vpnGateway}/getStatus', options)
36502
- command.response_representation = Google::Apis::ComputeAlpha::VpnGatewaysGetStatusResponse::Representation
36503
- command.response_class = Google::Apis::ComputeAlpha::VpnGatewaysGetStatusResponse
37475
+ def get_vpn_tunnel(project, region, vpn_tunnel, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
37476
+ command = make_simple_command(:get, 'projects/{project}/regions/{region}/vpnTunnels/{vpnTunnel}', options)
37477
+ command.response_representation = Google::Apis::ComputeAlpha::VpnTunnel::Representation
37478
+ command.response_class = Google::Apis::ComputeAlpha::VpnTunnel
36504
37479
  command.params['project'] = project unless project.nil?
36505
37480
  command.params['region'] = region unless region.nil?
36506
- command.params['vpnGateway'] = vpn_gateway unless vpn_gateway.nil?
37481
+ command.params['vpnTunnel'] = vpn_tunnel unless vpn_tunnel.nil?
36507
37482
  command.query['fields'] = fields unless fields.nil?
36508
37483
  command.query['quotaUser'] = quota_user unless quota_user.nil?
36509
37484
  command.query['userIp'] = user_ip unless user_ip.nil?
36510
37485
  execute_or_queue_command(command, &block)
36511
37486
  end
36512
37487
 
36513
- # Creates a VPN gateway in the specified project and region using the data
36514
- # included in the request.
37488
+ # Creates a VpnTunnel resource in the specified project and region using the
37489
+ # data included in the request.
36515
37490
  # @param [String] project
36516
37491
  # Project ID for this request.
36517
37492
  # @param [String] region
36518
37493
  # Name of the region for this request.
36519
- # @param [Google::Apis::ComputeAlpha::VpnGateway] vpn_gateway_object
37494
+ # @param [Google::Apis::ComputeAlpha::VpnTunnel] vpn_tunnel_object
36520
37495
  # @param [String] request_id
36521
37496
  # An optional request ID to identify requests. Specify a unique request ID so
36522
37497
  # that if you must retry your request, the server will know to ignore the
@@ -36547,10 +37522,10 @@ module Google
36547
37522
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
36548
37523
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
36549
37524
  # @raise [Google::Apis::AuthorizationError] Authorization is required
36550
- def insert_vpn_gateway(project, region, vpn_gateway_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
36551
- command = make_simple_command(:post, 'projects/{project}/regions/{region}/vpnGateways', options)
36552
- command.request_representation = Google::Apis::ComputeAlpha::VpnGateway::Representation
36553
- command.request_object = vpn_gateway_object
37525
+ def insert_vpn_tunnel(project, region, vpn_tunnel_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
37526
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/vpnTunnels', options)
37527
+ command.request_representation = Google::Apis::ComputeAlpha::VpnTunnel::Representation
37528
+ command.request_object = vpn_tunnel_object
36554
37529
  command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
36555
37530
  command.response_class = Google::Apis::ComputeAlpha::Operation
36556
37531
  command.params['project'] = project unless project.nil?
@@ -36562,7 +37537,8 @@ module Google
36562
37537
  execute_or_queue_command(command, &block)
36563
37538
  end
36564
37539
 
36565
- # Retrieves a list of VPN gateways available to the specified project and region.
37540
+ # Retrieves a list of VpnTunnel resources contained in the specified project and
37541
+ # region.
36566
37542
  # @param [String] project
36567
37543
  # Project ID for this request.
36568
37544
  # @param [String] region
@@ -36615,18 +37591,18 @@ module Google
36615
37591
  # Request-specific options
36616
37592
  #
36617
37593
  # @yield [result, err] Result & error if block supplied
36618
- # @yieldparam result [Google::Apis::ComputeAlpha::VpnGatewayList] parsed result object
37594
+ # @yieldparam result [Google::Apis::ComputeAlpha::VpnTunnelList] parsed result object
36619
37595
  # @yieldparam err [StandardError] error object if request failed
36620
37596
  #
36621
- # @return [Google::Apis::ComputeAlpha::VpnGatewayList]
37597
+ # @return [Google::Apis::ComputeAlpha::VpnTunnelList]
36622
37598
  #
36623
37599
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
36624
37600
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
36625
37601
  # @raise [Google::Apis::AuthorizationError] Authorization is required
36626
- def list_vpn_gateways(project, region, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
36627
- command = make_simple_command(:get, 'projects/{project}/regions/{region}/vpnGateways', options)
36628
- command.response_representation = Google::Apis::ComputeAlpha::VpnGatewayList::Representation
36629
- command.response_class = Google::Apis::ComputeAlpha::VpnGatewayList
37602
+ def list_vpn_tunnels(project, region, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
37603
+ command = make_simple_command(:get, 'projects/{project}/regions/{region}/vpnTunnels', options)
37604
+ command.response_representation = Google::Apis::ComputeAlpha::VpnTunnelList::Representation
37605
+ command.response_class = Google::Apis::ComputeAlpha::VpnTunnelList
36630
37606
  command.params['project'] = project unless project.nil?
36631
37607
  command.params['region'] = region unless region.nil?
36632
37608
  command.query['filter'] = filter unless filter.nil?
@@ -36640,7 +37616,7 @@ module Google
36640
37616
  execute_or_queue_command(command, &block)
36641
37617
  end
36642
37618
 
36643
- # Sets the labels on a VpnGateway. To learn more about labels, read the Labeling
37619
+ # Sets the labels on a VpnTunnel. To learn more about labels, read the Labeling
36644
37620
  # Resources documentation.
36645
37621
  # @param [String] project
36646
37622
  # Project ID for this request.
@@ -36679,8 +37655,8 @@ module Google
36679
37655
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
36680
37656
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
36681
37657
  # @raise [Google::Apis::AuthorizationError] Authorization is required
36682
- def set_vpn_gateway_labels(project, region, resource, region_set_labels_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
36683
- command = make_simple_command(:post, 'projects/{project}/regions/{region}/vpnGateways/{resource}/setLabels', options)
37658
+ def set_vpn_tunnel_labels(project, region, resource, region_set_labels_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
37659
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/vpnTunnels/{resource}/setLabels', options)
36684
37660
  command.request_representation = Google::Apis::ComputeAlpha::RegionSetLabelsRequest::Representation
36685
37661
  command.request_object = region_set_labels_request_object
36686
37662
  command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
@@ -36722,8 +37698,8 @@ module Google
36722
37698
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
36723
37699
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
36724
37700
  # @raise [Google::Apis::AuthorizationError] Authorization is required
36725
- def test_vpn_gateway_iam_permissions(project, region, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
36726
- command = make_simple_command(:post, 'projects/{project}/regions/{region}/vpnGateways/{resource}/testIamPermissions', options)
37701
+ def test_vpn_tunnel_iam_permissions(project, region, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
37702
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/vpnTunnels/{resource}/testIamPermissions', options)
36727
37703
  command.request_representation = Google::Apis::ComputeAlpha::TestPermissionsRequest::Representation
36728
37704
  command.request_object = test_permissions_request_object
36729
37705
  command.response_representation = Google::Apis::ComputeAlpha::TestPermissionsResponse::Representation
@@ -36737,53 +37713,29 @@ module Google
36737
37713
  execute_or_queue_command(command, &block)
36738
37714
  end
36739
37715
 
36740
- # Retrieves an aggregated list of VPN tunnels.
37716
+ # Deletes the specified InPlaceSnapshot resource. Keep in mind that deleting a
37717
+ # single inPlaceSnapshot might not necessarily delete all the data on that
37718
+ # inPlaceSnapshot. If any data on the inPlaceSnapshot that is marked for
37719
+ # deletion is needed for subsequent inPlaceSnapshots, the data will be moved to
37720
+ # the next corresponding inPlaceSnapshot.
37721
+ # For more information, see Deleting inPlaceSnapshots.
36741
37722
  # @param [String] project
36742
37723
  # Project ID for this request.
36743
- # @param [String] filter
36744
- # A filter expression that filters resources listed in the response. The
36745
- # expression must specify the field name, a comparison operator, and the value
36746
- # that you want to use for filtering. The value must be a string, a number, or a
36747
- # boolean. The comparison operator must be either `=`, `!=`, `>`, or `<`.
36748
- # For example, if you are filtering Compute Engine instances, you can exclude
36749
- # instances named `example-instance` by specifying `name != example-instance`.
36750
- # You can also filter nested fields. For example, you could specify `scheduling.
36751
- # automaticRestart = false` to include instances only if they are not scheduled
36752
- # for automatic restarts. You can use filtering on nested fields to filter based
36753
- # on resource labels.
36754
- # To filter on multiple expressions, provide each separate expression within
36755
- # parentheses. For example: ``` (scheduling.automaticRestart = true) (
36756
- # cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND`
36757
- # expression. However, you can include `AND` and `OR` expressions explicitly.
36758
- # For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel
36759
- # Broadwell") AND (scheduling.automaticRestart = true) ```
36760
- # @param [Boolean] include_all_scopes
36761
- # Indicates whether every visible scope for each scope type (zone, region,
36762
- # global) should be included in the response. For new resource types added after
36763
- # this field, the flag has no effect as new resource types will always include
36764
- # every visible scope for each scope type in response. For resource types which
36765
- # predate this field, if this flag is omitted or false, only scopes of the scope
36766
- # types where the resource type is expected to be found will be included.
36767
- # @param [Fixnum] max_results
36768
- # The maximum number of results per page that should be returned. If the number
36769
- # of available results is larger than `maxResults`, Compute Engine returns a `
36770
- # nextPageToken` that can be used to get the next page of results in subsequent
36771
- # list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
36772
- # @param [String] order_by
36773
- # Sorts list results by a certain order. By default, results are returned in
36774
- # alphanumerical order based on the resource name.
36775
- # You can also sort results in descending order based on the creation timestamp
36776
- # using `orderBy="creationTimestamp desc"`. This sorts results based on the `
36777
- # creationTimestamp` field in reverse chronological order (newest result first).
36778
- # Use this to sort resources like operations so that the newest operation is
36779
- # returned first.
36780
- # Currently, only sorting by `name` or `creationTimestamp desc` is supported.
36781
- # @param [String] page_token
36782
- # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
36783
- # by a previous list request to get the next page of results.
36784
- # @param [Boolean] return_partial_success
36785
- # Opt-in for partial success behavior which provides partial results in case of
36786
- # failure. The default value is false and the logic is the same as today.
37724
+ # @param [String] zone
37725
+ # The name of the zone for this request.
37726
+ # @param [String] in_place_snapshot
37727
+ # Name of the InPlaceSnapshot resource to delete.
37728
+ # @param [String] request_id
37729
+ # An optional request ID to identify requests. Specify a unique request ID so
37730
+ # that if you must retry your request, the server will know to ignore the
37731
+ # request if it has already been completed.
37732
+ # For example, consider a situation where you make an initial request and the
37733
+ # request times out. If you make the request again with the same request ID, the
37734
+ # server can check if original operation with the same request ID was received,
37735
+ # and if so, will ignore the second request. This prevents clients from
37736
+ # accidentally creating duplicate commitments.
37737
+ # The request ID must be a valid UUID with the exception that zero UUID is not
37738
+ # supported (00000000-0000-0000-0000-000000000000).
36787
37739
  # @param [String] fields
36788
37740
  # Selector specifying which fields to include in a partial response.
36789
37741
  # @param [String] quota_user
@@ -36795,49 +37747,35 @@ module Google
36795
37747
  # Request-specific options
36796
37748
  #
36797
37749
  # @yield [result, err] Result & error if block supplied
36798
- # @yieldparam result [Google::Apis::ComputeAlpha::VpnTunnelAggregatedList] parsed result object
37750
+ # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
36799
37751
  # @yieldparam err [StandardError] error object if request failed
36800
37752
  #
36801
- # @return [Google::Apis::ComputeAlpha::VpnTunnelAggregatedList]
37753
+ # @return [Google::Apis::ComputeAlpha::Operation]
36802
37754
  #
36803
37755
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
36804
37756
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
36805
37757
  # @raise [Google::Apis::AuthorizationError] Authorization is required
36806
- def aggregated_vpn_tunnel_list(project, filter: nil, include_all_scopes: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
36807
- command = make_simple_command(:get, 'projects/{project}/aggregated/vpnTunnels', options)
36808
- command.response_representation = Google::Apis::ComputeAlpha::VpnTunnelAggregatedList::Representation
36809
- command.response_class = Google::Apis::ComputeAlpha::VpnTunnelAggregatedList
37758
+ def delete_zone_in_place_snapshot(project, zone, in_place_snapshot, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
37759
+ command = make_simple_command(:delete, 'projects/{project}/zones/{zone}/inPlaceSnapshots/{inPlaceSnapshot}', options)
37760
+ command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
37761
+ command.response_class = Google::Apis::ComputeAlpha::Operation
36810
37762
  command.params['project'] = project unless project.nil?
36811
- command.query['filter'] = filter unless filter.nil?
36812
- command.query['includeAllScopes'] = include_all_scopes unless include_all_scopes.nil?
36813
- command.query['maxResults'] = max_results unless max_results.nil?
36814
- command.query['orderBy'] = order_by unless order_by.nil?
36815
- command.query['pageToken'] = page_token unless page_token.nil?
36816
- command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
37763
+ command.params['zone'] = zone unless zone.nil?
37764
+ command.params['inPlaceSnapshot'] = in_place_snapshot unless in_place_snapshot.nil?
37765
+ command.query['requestId'] = request_id unless request_id.nil?
36817
37766
  command.query['fields'] = fields unless fields.nil?
36818
37767
  command.query['quotaUser'] = quota_user unless quota_user.nil?
36819
37768
  command.query['userIp'] = user_ip unless user_ip.nil?
36820
37769
  execute_or_queue_command(command, &block)
36821
37770
  end
36822
37771
 
36823
- # Deletes the specified VpnTunnel resource.
37772
+ # Returns the specified InPlaceSnapshot resource in the specified zone.
36824
37773
  # @param [String] project
36825
37774
  # Project ID for this request.
36826
- # @param [String] region
36827
- # Name of the region for this request.
36828
- # @param [String] vpn_tunnel
36829
- # Name of the VpnTunnel resource to delete.
36830
- # @param [String] request_id
36831
- # An optional request ID to identify requests. Specify a unique request ID so
36832
- # that if you must retry your request, the server will know to ignore the
36833
- # request if it has already been completed.
36834
- # For example, consider a situation where you make an initial request and the
36835
- # request times out. If you make the request again with the same request ID, the
36836
- # server can check if original operation with the same request ID was received,
36837
- # and if so, will ignore the second request. This prevents clients from
36838
- # accidentally creating duplicate commitments.
36839
- # The request ID must be a valid UUID with the exception that zero UUID is not
36840
- # supported (00000000-0000-0000-0000-000000000000).
37775
+ # @param [String] zone
37776
+ # The name of the zone for this request.
37777
+ # @param [String] in_place_snapshot
37778
+ # Name of the InPlaceSnapshot resource to return.
36841
37779
  # @param [String] fields
36842
37780
  # Selector specifying which fields to include in a partial response.
36843
37781
  # @param [String] quota_user
@@ -36849,36 +37787,37 @@ module Google
36849
37787
  # Request-specific options
36850
37788
  #
36851
37789
  # @yield [result, err] Result & error if block supplied
36852
- # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
37790
+ # @yieldparam result [Google::Apis::ComputeAlpha::InPlaceSnapshot] parsed result object
36853
37791
  # @yieldparam err [StandardError] error object if request failed
36854
37792
  #
36855
- # @return [Google::Apis::ComputeAlpha::Operation]
37793
+ # @return [Google::Apis::ComputeAlpha::InPlaceSnapshot]
36856
37794
  #
36857
37795
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
36858
37796
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
36859
37797
  # @raise [Google::Apis::AuthorizationError] Authorization is required
36860
- def delete_vpn_tunnel(project, region, vpn_tunnel, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
36861
- command = make_simple_command(:delete, 'projects/{project}/regions/{region}/vpnTunnels/{vpnTunnel}', options)
36862
- command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
36863
- command.response_class = Google::Apis::ComputeAlpha::Operation
37798
+ def get_zone_in_place_snapshot(project, zone, in_place_snapshot, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
37799
+ command = make_simple_command(:get, 'projects/{project}/zones/{zone}/inPlaceSnapshots/{inPlaceSnapshot}', options)
37800
+ command.response_representation = Google::Apis::ComputeAlpha::InPlaceSnapshot::Representation
37801
+ command.response_class = Google::Apis::ComputeAlpha::InPlaceSnapshot
36864
37802
  command.params['project'] = project unless project.nil?
36865
- command.params['region'] = region unless region.nil?
36866
- command.params['vpnTunnel'] = vpn_tunnel unless vpn_tunnel.nil?
36867
- command.query['requestId'] = request_id unless request_id.nil?
37803
+ command.params['zone'] = zone unless zone.nil?
37804
+ command.params['inPlaceSnapshot'] = in_place_snapshot unless in_place_snapshot.nil?
36868
37805
  command.query['fields'] = fields unless fields.nil?
36869
37806
  command.query['quotaUser'] = quota_user unless quota_user.nil?
36870
37807
  command.query['userIp'] = user_ip unless user_ip.nil?
36871
37808
  execute_or_queue_command(command, &block)
36872
37809
  end
36873
37810
 
36874
- # Returns the specified VpnTunnel resource. Gets a list of available VPN tunnels
36875
- # by making a list() request.
37811
+ # Gets the access control policy for a resource. May be empty if no such policy
37812
+ # or resource exists.
36876
37813
  # @param [String] project
36877
37814
  # Project ID for this request.
36878
- # @param [String] region
36879
- # Name of the region for this request.
36880
- # @param [String] vpn_tunnel
36881
- # Name of the VpnTunnel resource to return.
37815
+ # @param [String] zone
37816
+ # The name of the zone for this request.
37817
+ # @param [String] resource
37818
+ # Name or id of the resource for this request.
37819
+ # @param [Fixnum] options_requested_policy_version
37820
+ # Requested IAM Policy version.
36882
37821
  # @param [String] fields
36883
37822
  # Selector specifying which fields to include in a partial response.
36884
37823
  # @param [String] quota_user
@@ -36890,34 +37829,34 @@ module Google
36890
37829
  # Request-specific options
36891
37830
  #
36892
37831
  # @yield [result, err] Result & error if block supplied
36893
- # @yieldparam result [Google::Apis::ComputeAlpha::VpnTunnel] parsed result object
37832
+ # @yieldparam result [Google::Apis::ComputeAlpha::Policy] parsed result object
36894
37833
  # @yieldparam err [StandardError] error object if request failed
36895
37834
  #
36896
- # @return [Google::Apis::ComputeAlpha::VpnTunnel]
37835
+ # @return [Google::Apis::ComputeAlpha::Policy]
36897
37836
  #
36898
37837
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
36899
37838
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
36900
37839
  # @raise [Google::Apis::AuthorizationError] Authorization is required
36901
- def get_vpn_tunnel(project, region, vpn_tunnel, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
36902
- command = make_simple_command(:get, 'projects/{project}/regions/{region}/vpnTunnels/{vpnTunnel}', options)
36903
- command.response_representation = Google::Apis::ComputeAlpha::VpnTunnel::Representation
36904
- command.response_class = Google::Apis::ComputeAlpha::VpnTunnel
37840
+ def get_zone_in_place_snapshot_iam_policy(project, zone, resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
37841
+ command = make_simple_command(:get, 'projects/{project}/zones/{zone}/inPlaceSnapshots/{resource}/getIamPolicy', options)
37842
+ command.response_representation = Google::Apis::ComputeAlpha::Policy::Representation
37843
+ command.response_class = Google::Apis::ComputeAlpha::Policy
36905
37844
  command.params['project'] = project unless project.nil?
36906
- command.params['region'] = region unless region.nil?
36907
- command.params['vpnTunnel'] = vpn_tunnel unless vpn_tunnel.nil?
37845
+ command.params['zone'] = zone unless zone.nil?
37846
+ command.params['resource'] = resource unless resource.nil?
37847
+ command.query['optionsRequestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
36908
37848
  command.query['fields'] = fields unless fields.nil?
36909
37849
  command.query['quotaUser'] = quota_user unless quota_user.nil?
36910
37850
  command.query['userIp'] = user_ip unless user_ip.nil?
36911
37851
  execute_or_queue_command(command, &block)
36912
37852
  end
36913
37853
 
36914
- # Creates a VpnTunnel resource in the specified project and region using the
36915
- # data included in the request.
37854
+ # Creates an in-place snapshot in the specified zone.
36916
37855
  # @param [String] project
36917
37856
  # Project ID for this request.
36918
- # @param [String] region
36919
- # Name of the region for this request.
36920
- # @param [Google::Apis::ComputeAlpha::VpnTunnel] vpn_tunnel_object
37857
+ # @param [String] zone
37858
+ # Name of the zone for this request.
37859
+ # @param [Google::Apis::ComputeAlpha::InPlaceSnapshot] in_place_snapshot_object
36921
37860
  # @param [String] request_id
36922
37861
  # An optional request ID to identify requests. Specify a unique request ID so
36923
37862
  # that if you must retry your request, the server will know to ignore the
@@ -36948,14 +37887,14 @@ module Google
36948
37887
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
36949
37888
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
36950
37889
  # @raise [Google::Apis::AuthorizationError] Authorization is required
36951
- def insert_vpn_tunnel(project, region, vpn_tunnel_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
36952
- command = make_simple_command(:post, 'projects/{project}/regions/{region}/vpnTunnels', options)
36953
- command.request_representation = Google::Apis::ComputeAlpha::VpnTunnel::Representation
36954
- command.request_object = vpn_tunnel_object
37890
+ def insert_zone_in_place_snapshot(project, zone, in_place_snapshot_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
37891
+ command = make_simple_command(:post, 'projects/{project}/zones/{zone}/inPlaceSnapshots', options)
37892
+ command.request_representation = Google::Apis::ComputeAlpha::InPlaceSnapshot::Representation
37893
+ command.request_object = in_place_snapshot_object
36955
37894
  command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
36956
37895
  command.response_class = Google::Apis::ComputeAlpha::Operation
36957
37896
  command.params['project'] = project unless project.nil?
36958
- command.params['region'] = region unless region.nil?
37897
+ command.params['zone'] = zone unless zone.nil?
36959
37898
  command.query['requestId'] = request_id unless request_id.nil?
36960
37899
  command.query['fields'] = fields unless fields.nil?
36961
37900
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -36963,12 +37902,12 @@ module Google
36963
37902
  execute_or_queue_command(command, &block)
36964
37903
  end
36965
37904
 
36966
- # Retrieves a list of VpnTunnel resources contained in the specified project and
36967
- # region.
37905
+ # Retrieves the list of InPlaceSnapshot resources contained within the specified
37906
+ # zone.
36968
37907
  # @param [String] project
36969
37908
  # Project ID for this request.
36970
- # @param [String] region
36971
- # Name of the region for this request.
37909
+ # @param [String] zone
37910
+ # The name of the zone for this request.
36972
37911
  # @param [String] filter
36973
37912
  # A filter expression that filters resources listed in the response. The
36974
37913
  # expression must specify the field name, a comparison operator, and the value
@@ -37017,20 +37956,20 @@ module Google
37017
37956
  # Request-specific options
37018
37957
  #
37019
37958
  # @yield [result, err] Result & error if block supplied
37020
- # @yieldparam result [Google::Apis::ComputeAlpha::VpnTunnelList] parsed result object
37959
+ # @yieldparam result [Google::Apis::ComputeAlpha::InPlaceSnapshotList] parsed result object
37021
37960
  # @yieldparam err [StandardError] error object if request failed
37022
37961
  #
37023
- # @return [Google::Apis::ComputeAlpha::VpnTunnelList]
37962
+ # @return [Google::Apis::ComputeAlpha::InPlaceSnapshotList]
37024
37963
  #
37025
37964
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
37026
37965
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
37027
37966
  # @raise [Google::Apis::AuthorizationError] Authorization is required
37028
- def list_vpn_tunnels(project, region, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
37029
- command = make_simple_command(:get, 'projects/{project}/regions/{region}/vpnTunnels', options)
37030
- command.response_representation = Google::Apis::ComputeAlpha::VpnTunnelList::Representation
37031
- command.response_class = Google::Apis::ComputeAlpha::VpnTunnelList
37967
+ def list_zone_in_place_snapshots(project, zone, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
37968
+ command = make_simple_command(:get, 'projects/{project}/zones/{zone}/inPlaceSnapshots', options)
37969
+ command.response_representation = Google::Apis::ComputeAlpha::InPlaceSnapshotList::Representation
37970
+ command.response_class = Google::Apis::ComputeAlpha::InPlaceSnapshotList
37032
37971
  command.params['project'] = project unless project.nil?
37033
- command.params['region'] = region unless region.nil?
37972
+ command.params['zone'] = zone unless zone.nil?
37034
37973
  command.query['filter'] = filter unless filter.nil?
37035
37974
  command.query['maxResults'] = max_results unless max_results.nil?
37036
37975
  command.query['orderBy'] = order_by unless order_by.nil?
@@ -37042,15 +37981,58 @@ module Google
37042
37981
  execute_or_queue_command(command, &block)
37043
37982
  end
37044
37983
 
37045
- # Sets the labels on a VpnTunnel. To learn more about labels, read the Labeling
37046
- # Resources documentation.
37984
+ # Sets the access control policy on the specified resource. Replaces any
37985
+ # existing policy.
37047
37986
  # @param [String] project
37048
37987
  # Project ID for this request.
37049
- # @param [String] region
37050
- # The region for this request.
37988
+ # @param [String] zone
37989
+ # The name of the zone for this request.
37051
37990
  # @param [String] resource
37052
37991
  # Name or id of the resource for this request.
37053
- # @param [Google::Apis::ComputeAlpha::RegionSetLabelsRequest] region_set_labels_request_object
37992
+ # @param [Google::Apis::ComputeAlpha::ZoneSetPolicyRequest] zone_set_policy_request_object
37993
+ # @param [String] fields
37994
+ # Selector specifying which fields to include in a partial response.
37995
+ # @param [String] quota_user
37996
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
37997
+ # characters.
37998
+ # @param [String] user_ip
37999
+ # Deprecated. Please use quotaUser instead.
38000
+ # @param [Google::Apis::RequestOptions] options
38001
+ # Request-specific options
38002
+ #
38003
+ # @yield [result, err] Result & error if block supplied
38004
+ # @yieldparam result [Google::Apis::ComputeAlpha::Policy] parsed result object
38005
+ # @yieldparam err [StandardError] error object if request failed
38006
+ #
38007
+ # @return [Google::Apis::ComputeAlpha::Policy]
38008
+ #
38009
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
38010
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
38011
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
38012
+ def set_zone_in_place_snapshot_iam_policy(project, zone, resource, zone_set_policy_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
38013
+ command = make_simple_command(:post, 'projects/{project}/zones/{zone}/inPlaceSnapshots/{resource}/setIamPolicy', options)
38014
+ command.request_representation = Google::Apis::ComputeAlpha::ZoneSetPolicyRequest::Representation
38015
+ command.request_object = zone_set_policy_request_object
38016
+ command.response_representation = Google::Apis::ComputeAlpha::Policy::Representation
38017
+ command.response_class = Google::Apis::ComputeAlpha::Policy
38018
+ command.params['project'] = project unless project.nil?
38019
+ command.params['zone'] = zone unless zone.nil?
38020
+ command.params['resource'] = resource unless resource.nil?
38021
+ command.query['fields'] = fields unless fields.nil?
38022
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
38023
+ command.query['userIp'] = user_ip unless user_ip.nil?
38024
+ execute_or_queue_command(command, &block)
38025
+ end
38026
+
38027
+ # Sets the labels on a inPlaceSnapshot in the given zone. To learn more about
38028
+ # labels, read the Labeling Resources documentation.
38029
+ # @param [String] project
38030
+ # Project ID for this request.
38031
+ # @param [String] zone
38032
+ # The name of the zone for this request.
38033
+ # @param [String] resource
38034
+ # Name or id of the resource for this request.
38035
+ # @param [Google::Apis::ComputeAlpha::ZoneSetLabelsRequest] zone_set_labels_request_object
37054
38036
  # @param [String] request_id
37055
38037
  # An optional request ID to identify requests. Specify a unique request ID so
37056
38038
  # that if you must retry your request, the server will know to ignore the
@@ -37081,14 +38063,14 @@ module Google
37081
38063
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
37082
38064
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
37083
38065
  # @raise [Google::Apis::AuthorizationError] Authorization is required
37084
- def set_vpn_tunnel_labels(project, region, resource, region_set_labels_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
37085
- command = make_simple_command(:post, 'projects/{project}/regions/{region}/vpnTunnels/{resource}/setLabels', options)
37086
- command.request_representation = Google::Apis::ComputeAlpha::RegionSetLabelsRequest::Representation
37087
- command.request_object = region_set_labels_request_object
38066
+ def set_zone_in_place_snapshot_labels(project, zone, resource, zone_set_labels_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
38067
+ command = make_simple_command(:post, 'projects/{project}/zones/{zone}/inPlaceSnapshots/{resource}/setLabels', options)
38068
+ command.request_representation = Google::Apis::ComputeAlpha::ZoneSetLabelsRequest::Representation
38069
+ command.request_object = zone_set_labels_request_object
37088
38070
  command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
37089
38071
  command.response_class = Google::Apis::ComputeAlpha::Operation
37090
38072
  command.params['project'] = project unless project.nil?
37091
- command.params['region'] = region unless region.nil?
38073
+ command.params['zone'] = zone unless zone.nil?
37092
38074
  command.params['resource'] = resource unless resource.nil?
37093
38075
  command.query['requestId'] = request_id unless request_id.nil?
37094
38076
  command.query['fields'] = fields unless fields.nil?
@@ -37100,8 +38082,8 @@ module Google
37100
38082
  # Returns permissions that a caller has on the specified resource.
37101
38083
  # @param [String] project
37102
38084
  # Project ID for this request.
37103
- # @param [String] region
37104
- # The name of the region for this request.
38085
+ # @param [String] zone
38086
+ # The name of the zone for this request.
37105
38087
  # @param [String] resource
37106
38088
  # Name or id of the resource for this request.
37107
38089
  # @param [Google::Apis::ComputeAlpha::TestPermissionsRequest] test_permissions_request_object
@@ -37124,14 +38106,14 @@ module Google
37124
38106
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
37125
38107
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
37126
38108
  # @raise [Google::Apis::AuthorizationError] Authorization is required
37127
- def test_vpn_tunnel_iam_permissions(project, region, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
37128
- command = make_simple_command(:post, 'projects/{project}/regions/{region}/vpnTunnels/{resource}/testIamPermissions', options)
38109
+ def test_zone_in_place_snapshot_iam_permissions(project, zone, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
38110
+ command = make_simple_command(:post, 'projects/{project}/zones/{zone}/inPlaceSnapshots/{resource}/testIamPermissions', options)
37129
38111
  command.request_representation = Google::Apis::ComputeAlpha::TestPermissionsRequest::Representation
37130
38112
  command.request_object = test_permissions_request_object
37131
38113
  command.response_representation = Google::Apis::ComputeAlpha::TestPermissionsResponse::Representation
37132
38114
  command.response_class = Google::Apis::ComputeAlpha::TestPermissionsResponse
37133
38115
  command.params['project'] = project unless project.nil?
37134
- command.params['region'] = region unless region.nil?
38116
+ command.params['zone'] = zone unless zone.nil?
37135
38117
  command.params['resource'] = resource unless resource.nil?
37136
38118
  command.query['fields'] = fields unless fields.nil?
37137
38119
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -37139,18 +38121,18 @@ module Google
37139
38121
  execute_or_queue_command(command, &block)
37140
38122
  end
37141
38123
 
37142
- # Deletes the specified InPlaceSnapshot resource. Keep in mind that deleting a
37143
- # single inPlaceSnapshot might not necessarily delete all the data on that
37144
- # inPlaceSnapshot. If any data on the inPlaceSnapshot that is marked for
37145
- # deletion is needed for subsequent inPlaceSnapshots, the data will be moved to
37146
- # the next corresponding inPlaceSnapshot.
37147
- # For more information, see Deleting inPlaceSnapshots.
38124
+ # Deletes the specified InstantSnapshot resource. Keep in mind that deleting a
38125
+ # single instantSnapshot might not necessarily delete all the data on that
38126
+ # instantSnapshot. If any data on the instantSnapshot that is marked for
38127
+ # deletion is needed for subsequent instantSnapshots, the data will be moved to
38128
+ # the next corresponding instantSnapshot.
38129
+ # For more information, see Deleting instantSnapshots.
37148
38130
  # @param [String] project
37149
38131
  # Project ID for this request.
37150
38132
  # @param [String] zone
37151
38133
  # The name of the zone for this request.
37152
- # @param [String] in_place_snapshot
37153
- # Name of the InPlaceSnapshot resource to delete.
38134
+ # @param [String] instant_snapshot
38135
+ # Name of the InstantSnapshot resource to delete.
37154
38136
  # @param [String] request_id
37155
38137
  # An optional request ID to identify requests. Specify a unique request ID so
37156
38138
  # that if you must retry your request, the server will know to ignore the
@@ -37181,13 +38163,13 @@ module Google
37181
38163
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
37182
38164
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
37183
38165
  # @raise [Google::Apis::AuthorizationError] Authorization is required
37184
- def delete_zone_in_place_snapshot(project, zone, in_place_snapshot, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
37185
- command = make_simple_command(:delete, 'projects/{project}/zones/{zone}/inPlaceSnapshots/{inPlaceSnapshot}', options)
38166
+ def delete_zone_instant_snapshot(project, zone, instant_snapshot, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
38167
+ command = make_simple_command(:delete, 'projects/{project}/zones/{zone}/instantSnapshots/{instantSnapshot}', options)
37186
38168
  command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
37187
38169
  command.response_class = Google::Apis::ComputeAlpha::Operation
37188
38170
  command.params['project'] = project unless project.nil?
37189
38171
  command.params['zone'] = zone unless zone.nil?
37190
- command.params['inPlaceSnapshot'] = in_place_snapshot unless in_place_snapshot.nil?
38172
+ command.params['instantSnapshot'] = instant_snapshot unless instant_snapshot.nil?
37191
38173
  command.query['requestId'] = request_id unless request_id.nil?
37192
38174
  command.query['fields'] = fields unless fields.nil?
37193
38175
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -37195,13 +38177,13 @@ module Google
37195
38177
  execute_or_queue_command(command, &block)
37196
38178
  end
37197
38179
 
37198
- # Returns the specified InPlaceSnapshot resource in the specified zone.
38180
+ # Returns the specified InstantSnapshot resource in the specified zone.
37199
38181
  # @param [String] project
37200
38182
  # Project ID for this request.
37201
38183
  # @param [String] zone
37202
38184
  # The name of the zone for this request.
37203
- # @param [String] in_place_snapshot
37204
- # Name of the InPlaceSnapshot resource to return.
38185
+ # @param [String] instant_snapshot
38186
+ # Name of the InstantSnapshot resource to return.
37205
38187
  # @param [String] fields
37206
38188
  # Selector specifying which fields to include in a partial response.
37207
38189
  # @param [String] quota_user
@@ -37213,21 +38195,21 @@ module Google
37213
38195
  # Request-specific options
37214
38196
  #
37215
38197
  # @yield [result, err] Result & error if block supplied
37216
- # @yieldparam result [Google::Apis::ComputeAlpha::InPlaceSnapshot] parsed result object
38198
+ # @yieldparam result [Google::Apis::ComputeAlpha::InstantSnapshot] parsed result object
37217
38199
  # @yieldparam err [StandardError] error object if request failed
37218
38200
  #
37219
- # @return [Google::Apis::ComputeAlpha::InPlaceSnapshot]
38201
+ # @return [Google::Apis::ComputeAlpha::InstantSnapshot]
37220
38202
  #
37221
38203
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
37222
38204
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
37223
38205
  # @raise [Google::Apis::AuthorizationError] Authorization is required
37224
- def get_zone_in_place_snapshot(project, zone, in_place_snapshot, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
37225
- command = make_simple_command(:get, 'projects/{project}/zones/{zone}/inPlaceSnapshots/{inPlaceSnapshot}', options)
37226
- command.response_representation = Google::Apis::ComputeAlpha::InPlaceSnapshot::Representation
37227
- command.response_class = Google::Apis::ComputeAlpha::InPlaceSnapshot
38206
+ def get_zone_instant_snapshot(project, zone, instant_snapshot, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
38207
+ command = make_simple_command(:get, 'projects/{project}/zones/{zone}/instantSnapshots/{instantSnapshot}', options)
38208
+ command.response_representation = Google::Apis::ComputeAlpha::InstantSnapshot::Representation
38209
+ command.response_class = Google::Apis::ComputeAlpha::InstantSnapshot
37228
38210
  command.params['project'] = project unless project.nil?
37229
38211
  command.params['zone'] = zone unless zone.nil?
37230
- command.params['inPlaceSnapshot'] = in_place_snapshot unless in_place_snapshot.nil?
38212
+ command.params['instantSnapshot'] = instant_snapshot unless instant_snapshot.nil?
37231
38213
  command.query['fields'] = fields unless fields.nil?
37232
38214
  command.query['quotaUser'] = quota_user unless quota_user.nil?
37233
38215
  command.query['userIp'] = user_ip unless user_ip.nil?
@@ -37263,8 +38245,8 @@ module Google
37263
38245
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
37264
38246
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
37265
38247
  # @raise [Google::Apis::AuthorizationError] Authorization is required
37266
- def get_zone_in_place_snapshot_iam_policy(project, zone, resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
37267
- command = make_simple_command(:get, 'projects/{project}/zones/{zone}/inPlaceSnapshots/{resource}/getIamPolicy', options)
38248
+ def get_zone_instant_snapshot_iam_policy(project, zone, resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
38249
+ command = make_simple_command(:get, 'projects/{project}/zones/{zone}/instantSnapshots/{resource}/getIamPolicy', options)
37268
38250
  command.response_representation = Google::Apis::ComputeAlpha::Policy::Representation
37269
38251
  command.response_class = Google::Apis::ComputeAlpha::Policy
37270
38252
  command.params['project'] = project unless project.nil?
@@ -37277,12 +38259,12 @@ module Google
37277
38259
  execute_or_queue_command(command, &block)
37278
38260
  end
37279
38261
 
37280
- # Creates an in-place snapshot in the specified zone.
38262
+ # Creates an instant snapshot in the specified zone.
37281
38263
  # @param [String] project
37282
38264
  # Project ID for this request.
37283
38265
  # @param [String] zone
37284
38266
  # Name of the zone for this request.
37285
- # @param [Google::Apis::ComputeAlpha::InPlaceSnapshot] in_place_snapshot_object
38267
+ # @param [Google::Apis::ComputeAlpha::InstantSnapshot] instant_snapshot_object
37286
38268
  # @param [String] request_id
37287
38269
  # An optional request ID to identify requests. Specify a unique request ID so
37288
38270
  # that if you must retry your request, the server will know to ignore the
@@ -37313,10 +38295,10 @@ module Google
37313
38295
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
37314
38296
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
37315
38297
  # @raise [Google::Apis::AuthorizationError] Authorization is required
37316
- def insert_zone_in_place_snapshot(project, zone, in_place_snapshot_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
37317
- command = make_simple_command(:post, 'projects/{project}/zones/{zone}/inPlaceSnapshots', options)
37318
- command.request_representation = Google::Apis::ComputeAlpha::InPlaceSnapshot::Representation
37319
- command.request_object = in_place_snapshot_object
38298
+ def insert_zone_instant_snapshot(project, zone, instant_snapshot_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
38299
+ command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instantSnapshots', options)
38300
+ command.request_representation = Google::Apis::ComputeAlpha::InstantSnapshot::Representation
38301
+ command.request_object = instant_snapshot_object
37320
38302
  command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
37321
38303
  command.response_class = Google::Apis::ComputeAlpha::Operation
37322
38304
  command.params['project'] = project unless project.nil?
@@ -37328,7 +38310,7 @@ module Google
37328
38310
  execute_or_queue_command(command, &block)
37329
38311
  end
37330
38312
 
37331
- # Retrieves the list of InPlaceSnapshot resources contained within the specified
38313
+ # Retrieves the list of InstantSnapshot resources contained within the specified
37332
38314
  # zone.
37333
38315
  # @param [String] project
37334
38316
  # Project ID for this request.
@@ -37382,18 +38364,18 @@ module Google
37382
38364
  # Request-specific options
37383
38365
  #
37384
38366
  # @yield [result, err] Result & error if block supplied
37385
- # @yieldparam result [Google::Apis::ComputeAlpha::InPlaceSnapshotList] parsed result object
38367
+ # @yieldparam result [Google::Apis::ComputeAlpha::InstantSnapshotList] parsed result object
37386
38368
  # @yieldparam err [StandardError] error object if request failed
37387
38369
  #
37388
- # @return [Google::Apis::ComputeAlpha::InPlaceSnapshotList]
38370
+ # @return [Google::Apis::ComputeAlpha::InstantSnapshotList]
37389
38371
  #
37390
38372
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
37391
38373
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
37392
38374
  # @raise [Google::Apis::AuthorizationError] Authorization is required
37393
- def list_zone_in_place_snapshots(project, zone, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
37394
- command = make_simple_command(:get, 'projects/{project}/zones/{zone}/inPlaceSnapshots', options)
37395
- command.response_representation = Google::Apis::ComputeAlpha::InPlaceSnapshotList::Representation
37396
- command.response_class = Google::Apis::ComputeAlpha::InPlaceSnapshotList
38375
+ def list_zone_instant_snapshots(project, zone, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
38376
+ command = make_simple_command(:get, 'projects/{project}/zones/{zone}/instantSnapshots', options)
38377
+ command.response_representation = Google::Apis::ComputeAlpha::InstantSnapshotList::Representation
38378
+ command.response_class = Google::Apis::ComputeAlpha::InstantSnapshotList
37397
38379
  command.params['project'] = project unless project.nil?
37398
38380
  command.params['zone'] = zone unless zone.nil?
37399
38381
  command.query['filter'] = filter unless filter.nil?
@@ -37435,8 +38417,8 @@ module Google
37435
38417
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
37436
38418
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
37437
38419
  # @raise [Google::Apis::AuthorizationError] Authorization is required
37438
- def set_zone_in_place_snapshot_iam_policy(project, zone, resource, zone_set_policy_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
37439
- command = make_simple_command(:post, 'projects/{project}/zones/{zone}/inPlaceSnapshots/{resource}/setIamPolicy', options)
38420
+ def set_zone_instant_snapshot_iam_policy(project, zone, resource, zone_set_policy_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
38421
+ command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instantSnapshots/{resource}/setIamPolicy', options)
37440
38422
  command.request_representation = Google::Apis::ComputeAlpha::ZoneSetPolicyRequest::Representation
37441
38423
  command.request_object = zone_set_policy_request_object
37442
38424
  command.response_representation = Google::Apis::ComputeAlpha::Policy::Representation
@@ -37450,7 +38432,7 @@ module Google
37450
38432
  execute_or_queue_command(command, &block)
37451
38433
  end
37452
38434
 
37453
- # Sets the labels on a inPlaceSnapshot in the given zone. To learn more about
38435
+ # Sets the labels on a instantSnapshot in the given zone. To learn more about
37454
38436
  # labels, read the Labeling Resources documentation.
37455
38437
  # @param [String] project
37456
38438
  # Project ID for this request.
@@ -37489,8 +38471,8 @@ module Google
37489
38471
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
37490
38472
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
37491
38473
  # @raise [Google::Apis::AuthorizationError] Authorization is required
37492
- def set_zone_in_place_snapshot_labels(project, zone, resource, zone_set_labels_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
37493
- command = make_simple_command(:post, 'projects/{project}/zones/{zone}/inPlaceSnapshots/{resource}/setLabels', options)
38474
+ def set_zone_instant_snapshot_labels(project, zone, resource, zone_set_labels_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
38475
+ command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instantSnapshots/{resource}/setLabels', options)
37494
38476
  command.request_representation = Google::Apis::ComputeAlpha::ZoneSetLabelsRequest::Representation
37495
38477
  command.request_object = zone_set_labels_request_object
37496
38478
  command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
@@ -37532,8 +38514,8 @@ module Google
37532
38514
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
37533
38515
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
37534
38516
  # @raise [Google::Apis::AuthorizationError] Authorization is required
37535
- def test_zone_in_place_snapshot_iam_permissions(project, zone, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
37536
- command = make_simple_command(:post, 'projects/{project}/zones/{zone}/inPlaceSnapshots/{resource}/testIamPermissions', options)
38517
+ def test_zone_instant_snapshot_iam_permissions(project, zone, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
38518
+ command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instantSnapshots/{resource}/testIamPermissions', options)
37537
38519
  command.request_representation = Google::Apis::ComputeAlpha::TestPermissionsRequest::Representation
37538
38520
  command.request_object = test_permissions_request_object
37539
38521
  command.response_representation = Google::Apis::ComputeAlpha::TestPermissionsResponse::Representation