google-api-client 0.43.0 → 0.44.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (696) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +218 -0
  3. data/docs/oauth-server.md +4 -6
  4. data/generated/google/apis/accessapproval_v1.rb +1 -1
  5. data/generated/google/apis/accessapproval_v1/classes.rb +51 -86
  6. data/generated/google/apis/accessapproval_v1/service.rb +93 -132
  7. data/generated/google/apis/accesscontextmanager_v1.rb +1 -1
  8. data/generated/google/apis/accesscontextmanager_v1/classes.rb +198 -236
  9. data/generated/google/apis/accesscontextmanager_v1/service.rb +128 -171
  10. data/generated/google/apis/accesscontextmanager_v1beta.rb +1 -1
  11. data/generated/google/apis/accesscontextmanager_v1beta/classes.rb +153 -184
  12. data/generated/google/apis/accesscontextmanager_v1beta/service.rb +82 -111
  13. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  14. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +17 -6
  15. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +1 -0
  16. data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
  17. data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +47 -2
  18. data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +18 -0
  19. data/generated/google/apis/adexperiencereport_v1.rb +1 -1
  20. data/generated/google/apis/admin_datatransfer_v1.rb +6 -4
  21. data/generated/google/apis/admin_datatransfer_v1/classes.rb +16 -4
  22. data/generated/google/apis/admin_datatransfer_v1/service.rb +30 -48
  23. data/generated/google/apis/admin_directory_v1.rb +6 -8
  24. data/generated/google/apis/admin_directory_v1/classes.rb +224 -243
  25. data/generated/google/apis/admin_directory_v1/representations.rb +14 -40
  26. data/generated/google/apis/admin_directory_v1/service.rb +475 -1026
  27. data/generated/google/apis/admin_reports_v1.rb +6 -5
  28. data/generated/google/apis/admin_reports_v1/classes.rb +31 -33
  29. data/generated/google/apis/admin_reports_v1/service.rb +131 -187
  30. data/generated/google/apis/admob_v1.rb +1 -1
  31. data/generated/google/apis/alertcenter_v1beta1.rb +1 -1
  32. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  33. data/generated/google/apis/androidmanagement_v1.rb +1 -1
  34. data/generated/google/apis/androidmanagement_v1/classes.rb +95 -59
  35. data/generated/google/apis/androidmanagement_v1/representations.rb +17 -0
  36. data/generated/google/apis/androidpublisher_v3.rb +1 -1
  37. data/generated/google/apis/androidpublisher_v3/service.rb +2 -2
  38. data/generated/google/apis/apigee_v1.rb +6 -7
  39. data/generated/google/apis/apigee_v1/classes.rb +205 -75
  40. data/generated/google/apis/apigee_v1/representations.rb +51 -0
  41. data/generated/google/apis/apigee_v1/service.rb +133 -34
  42. data/generated/google/apis/appengine_v1.rb +1 -1
  43. data/generated/google/apis/appengine_v1/classes.rb +45 -35
  44. data/generated/google/apis/appengine_v1/representations.rb +2 -0
  45. data/generated/google/apis/appengine_v1/service.rb +38 -47
  46. data/generated/google/apis/appengine_v1alpha.rb +1 -1
  47. data/generated/google/apis/appengine_v1alpha/classes.rb +9 -11
  48. data/generated/google/apis/appengine_v1beta.rb +1 -1
  49. data/generated/google/apis/appengine_v1beta/classes.rb +45 -35
  50. data/generated/google/apis/appengine_v1beta/representations.rb +2 -0
  51. data/generated/google/apis/appengine_v1beta/service.rb +37 -47
  52. data/generated/google/apis/appsmarket_v2.rb +1 -1
  53. data/generated/google/apis/appsmarket_v2/classes.rb +14 -16
  54. data/generated/google/apis/artifactregistry_v1beta1.rb +1 -1
  55. data/generated/google/apis/artifactregistry_v1beta1/classes.rb +235 -337
  56. data/generated/google/apis/artifactregistry_v1beta1/service.rb +44 -57
  57. data/generated/google/apis/bigquery_v2.rb +1 -1
  58. data/generated/google/apis/bigquery_v2/classes.rb +355 -553
  59. data/generated/google/apis/bigquery_v2/representations.rb +1 -0
  60. data/generated/google/apis/bigquery_v2/service.rb +32 -40
  61. data/generated/google/apis/bigqueryconnection_v1beta1.rb +1 -1
  62. data/generated/google/apis/bigqueryconnection_v1beta1/classes.rb +192 -337
  63. data/generated/google/apis/bigqueryconnection_v1beta1/service.rb +29 -32
  64. data/generated/google/apis/bigquerydatatransfer_v1.rb +1 -1
  65. data/generated/google/apis/bigquerydatatransfer_v1/classes.rb +132 -158
  66. data/generated/google/apis/bigquerydatatransfer_v1/service.rb +232 -282
  67. data/generated/google/apis/bigqueryreservation_v1.rb +1 -1
  68. data/generated/google/apis/bigqueryreservation_v1/classes.rb +116 -123
  69. data/generated/google/apis/bigqueryreservation_v1/representations.rb +2 -0
  70. data/generated/google/apis/bigqueryreservation_v1/service.rb +137 -183
  71. data/generated/google/apis/bigqueryreservation_v1alpha2.rb +1 -1
  72. data/generated/google/apis/bigqueryreservation_v1alpha2/classes.rb +88 -100
  73. data/generated/google/apis/bigqueryreservation_v1alpha2/service.rb +77 -100
  74. data/generated/google/apis/bigqueryreservation_v1beta1.rb +1 -1
  75. data/generated/google/apis/bigqueryreservation_v1beta1/classes.rb +93 -98
  76. data/generated/google/apis/bigqueryreservation_v1beta1/representations.rb +2 -0
  77. data/generated/google/apis/bigqueryreservation_v1beta1/service.rb +114 -151
  78. data/generated/google/apis/bigtableadmin_v1.rb +1 -1
  79. data/generated/google/apis/bigtableadmin_v1/classes.rb +50 -0
  80. data/generated/google/apis/bigtableadmin_v1/representations.rb +29 -0
  81. data/generated/google/apis/bigtableadmin_v2.rb +1 -1
  82. data/generated/google/apis/bigtableadmin_v2/classes.rb +50 -0
  83. data/generated/google/apis/bigtableadmin_v2/representations.rb +29 -0
  84. data/generated/google/apis/billingbudgets_v1beta1.rb +4 -1
  85. data/generated/google/apis/binaryauthorization_v1.rb +1 -1
  86. data/generated/google/apis/binaryauthorization_v1/classes.rb +239 -354
  87. data/generated/google/apis/binaryauthorization_v1/service.rb +74 -89
  88. data/generated/google/apis/binaryauthorization_v1beta1.rb +1 -1
  89. data/generated/google/apis/binaryauthorization_v1beta1/classes.rb +239 -354
  90. data/generated/google/apis/binaryauthorization_v1beta1/service.rb +74 -89
  91. data/generated/google/apis/calendar_v3.rb +1 -1
  92. data/generated/google/apis/chat_v1.rb +1 -1
  93. data/generated/google/apis/chat_v1/classes.rb +90 -115
  94. data/generated/google/apis/chat_v1/service.rb +30 -42
  95. data/generated/google/apis/civicinfo_v2.rb +1 -1
  96. data/generated/google/apis/cloudasset_v1.rb +1 -1
  97. data/generated/google/apis/cloudasset_v1/classes.rb +712 -1039
  98. data/generated/google/apis/cloudasset_v1/service.rb +125 -167
  99. data/generated/google/apis/cloudasset_v1beta1.rb +1 -1
  100. data/generated/google/apis/cloudasset_v1beta1/classes.rb +531 -777
  101. data/generated/google/apis/cloudasset_v1beta1/service.rb +59 -75
  102. data/generated/google/apis/cloudasset_v1p1beta1.rb +1 -1
  103. data/generated/google/apis/cloudasset_v1p1beta1/classes.rb +204 -349
  104. data/generated/google/apis/cloudasset_v1p1beta1/service.rb +35 -47
  105. data/generated/google/apis/cloudasset_v1p4beta1.rb +1 -1
  106. data/generated/google/apis/cloudasset_v1p4beta1/classes.rb +220 -276
  107. data/generated/google/apis/cloudasset_v1p4beta1/service.rb +75 -93
  108. data/generated/google/apis/cloudasset_v1p5beta1.rb +1 -1
  109. data/generated/google/apis/cloudasset_v1p5beta1/classes.rb +481 -720
  110. data/generated/google/apis/cloudasset_v1p5beta1/service.rb +25 -28
  111. data/generated/google/apis/cloudbilling_v1.rb +7 -1
  112. data/generated/google/apis/cloudbilling_v1/classes.rb +284 -445
  113. data/generated/google/apis/cloudbilling_v1/service.rb +104 -124
  114. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  115. data/generated/google/apis/cloudbuild_v1/classes.rb +291 -343
  116. data/generated/google/apis/cloudbuild_v1/representations.rb +1 -0
  117. data/generated/google/apis/cloudbuild_v1/service.rb +48 -63
  118. data/generated/google/apis/cloudbuild_v1alpha1.rb +1 -1
  119. data/generated/google/apis/cloudbuild_v1alpha1/classes.rb +283 -329
  120. data/generated/google/apis/cloudbuild_v1alpha1/representations.rb +1 -0
  121. data/generated/google/apis/cloudbuild_v1alpha1/service.rb +15 -18
  122. data/generated/google/apis/cloudbuild_v1alpha2.rb +1 -1
  123. data/generated/google/apis/cloudbuild_v1alpha2/classes.rb +269 -313
  124. data/generated/google/apis/cloudbuild_v1alpha2/representations.rb +1 -0
  125. data/generated/google/apis/cloudbuild_v1alpha2/service.rb +22 -28
  126. data/generated/google/apis/clouddebugger_v2.rb +1 -1
  127. data/generated/google/apis/clouddebugger_v2/classes.rb +185 -252
  128. data/generated/google/apis/clouddebugger_v2/service.rb +53 -59
  129. data/generated/google/apis/clouderrorreporting_v1beta1.rb +1 -1
  130. data/generated/google/apis/clouderrorreporting_v1beta1/classes.rb +127 -156
  131. data/generated/google/apis/clouderrorreporting_v1beta1/service.rb +53 -69
  132. data/generated/google/apis/cloudfunctions_v1.rb +1 -1
  133. data/generated/google/apis/cloudfunctions_v1/classes.rb +323 -493
  134. data/generated/google/apis/cloudfunctions_v1/service.rb +79 -93
  135. data/generated/google/apis/cloudidentity_v1.rb +1 -1
  136. data/generated/google/apis/cloudidentity_v1/classes.rb +625 -75
  137. data/generated/google/apis/cloudidentity_v1/representations.rb +203 -0
  138. data/generated/google/apis/cloudidentity_v1/service.rb +43 -61
  139. data/generated/google/apis/cloudidentity_v1beta1.rb +4 -1
  140. data/generated/google/apis/cloudidentity_v1beta1/classes.rb +1045 -317
  141. data/generated/google/apis/cloudidentity_v1beta1/representations.rb +331 -22
  142. data/generated/google/apis/cloudidentity_v1beta1/service.rb +742 -96
  143. data/generated/google/apis/cloudiot_v1.rb +1 -1
  144. data/generated/google/apis/cloudiot_v1/classes.rb +263 -373
  145. data/generated/google/apis/cloudiot_v1/service.rb +147 -154
  146. data/generated/google/apis/cloudkms_v1.rb +1 -1
  147. data/generated/google/apis/cloudkms_v1/classes.rb +502 -692
  148. data/generated/google/apis/cloudkms_v1/representations.rb +17 -0
  149. data/generated/google/apis/cloudkms_v1/service.rb +170 -216
  150. data/generated/google/apis/cloudprofiler_v2.rb +1 -1
  151. data/generated/google/apis/cloudprofiler_v2/classes.rb +28 -33
  152. data/generated/google/apis/cloudprofiler_v2/service.rb +17 -19
  153. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  154. data/generated/google/apis/cloudresourcemanager_v1/service.rb +1 -1
  155. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
  156. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +1 -1
  157. data/generated/google/apis/cloudresourcemanager_v2.rb +1 -1
  158. data/generated/google/apis/cloudresourcemanager_v2beta1.rb +1 -1
  159. data/generated/google/apis/cloudscheduler_v1.rb +1 -1
  160. data/generated/google/apis/cloudscheduler_v1/classes.rb +272 -383
  161. data/generated/google/apis/cloudscheduler_v1/service.rb +45 -62
  162. data/generated/google/apis/cloudscheduler_v1beta1.rb +1 -1
  163. data/generated/google/apis/cloudscheduler_v1beta1/classes.rb +273 -384
  164. data/generated/google/apis/cloudscheduler_v1beta1/service.rb +45 -62
  165. data/generated/google/apis/cloudsearch_v1.rb +2 -2
  166. data/generated/google/apis/cloudsearch_v1/classes.rb +650 -781
  167. data/generated/google/apis/cloudsearch_v1/representations.rb +15 -0
  168. data/generated/google/apis/cloudsearch_v1/service.rb +286 -326
  169. data/generated/google/apis/cloudshell_v1.rb +1 -1
  170. data/generated/google/apis/cloudshell_v1/classes.rb +36 -227
  171. data/generated/google/apis/cloudshell_v1/representations.rb +0 -67
  172. data/generated/google/apis/cloudshell_v1/service.rb +21 -25
  173. data/generated/google/apis/cloudshell_v1alpha1.rb +1 -1
  174. data/generated/google/apis/cloudshell_v1alpha1/classes.rb +69 -78
  175. data/generated/google/apis/cloudshell_v1alpha1/service.rb +20 -24
  176. data/generated/google/apis/cloudtasks_v2.rb +1 -1
  177. data/generated/google/apis/cloudtasks_v2/classes.rb +605 -933
  178. data/generated/google/apis/cloudtasks_v2/service.rb +146 -217
  179. data/generated/google/apis/cloudtasks_v2beta2.rb +1 -1
  180. data/generated/google/apis/cloudtasks_v2beta2/classes.rb +602 -964
  181. data/generated/google/apis/cloudtasks_v2beta2/service.rb +178 -270
  182. data/generated/google/apis/cloudtasks_v2beta3.rb +1 -1
  183. data/generated/google/apis/cloudtasks_v2beta3/classes.rb +609 -938
  184. data/generated/google/apis/cloudtasks_v2beta3/service.rb +146 -217
  185. data/generated/google/apis/cloudtrace_v1.rb +1 -1
  186. data/generated/google/apis/cloudtrace_v1/classes.rb +39 -61
  187. data/generated/google/apis/cloudtrace_v1/service.rb +37 -51
  188. data/generated/google/apis/cloudtrace_v2.rb +1 -1
  189. data/generated/google/apis/cloudtrace_v2/classes.rb +92 -107
  190. data/generated/google/apis/cloudtrace_v2/service.rb +8 -11
  191. data/generated/google/apis/cloudtrace_v2beta1.rb +1 -1
  192. data/generated/google/apis/cloudtrace_v2beta1/classes.rb +23 -33
  193. data/generated/google/apis/cloudtrace_v2beta1/service.rb +30 -37
  194. data/generated/google/apis/composer_v1.rb +1 -1
  195. data/generated/google/apis/composer_v1/classes.rb +190 -242
  196. data/generated/google/apis/composer_v1/service.rb +79 -150
  197. data/generated/google/apis/composer_v1beta1.rb +1 -1
  198. data/generated/google/apis/composer_v1beta1/classes.rb +203 -262
  199. data/generated/google/apis/composer_v1beta1/service.rb +92 -179
  200. data/generated/google/apis/compute_alpha.rb +1 -1
  201. data/generated/google/apis/compute_alpha/classes.rb +681 -127
  202. data/generated/google/apis/compute_alpha/representations.rb +110 -6
  203. data/generated/google/apis/compute_alpha/service.rb +695 -692
  204. data/generated/google/apis/compute_beta.rb +1 -1
  205. data/generated/google/apis/compute_beta/classes.rb +570 -70
  206. data/generated/google/apis/compute_beta/representations.rb +112 -1
  207. data/generated/google/apis/compute_beta/service.rb +608 -605
  208. data/generated/google/apis/compute_v1.rb +1 -1
  209. data/generated/google/apis/compute_v1/classes.rb +977 -85
  210. data/generated/google/apis/compute_v1/representations.rb +372 -0
  211. data/generated/google/apis/compute_v1/service.rb +747 -15
  212. data/generated/google/apis/container_v1.rb +1 -1
  213. data/generated/google/apis/container_v1/classes.rb +915 -965
  214. data/generated/google/apis/container_v1/representations.rb +53 -0
  215. data/generated/google/apis/container_v1/service.rb +435 -502
  216. data/generated/google/apis/container_v1beta1.rb +1 -1
  217. data/generated/google/apis/container_v1beta1/classes.rb +1021 -1043
  218. data/generated/google/apis/container_v1beta1/representations.rb +70 -0
  219. data/generated/google/apis/container_v1beta1/service.rb +403 -466
  220. data/generated/google/apis/containeranalysis_v1alpha1.rb +1 -1
  221. data/generated/google/apis/containeranalysis_v1alpha1/classes.rb +456 -596
  222. data/generated/google/apis/containeranalysis_v1alpha1/service.rb +149 -169
  223. data/generated/google/apis/containeranalysis_v1beta1.rb +1 -1
  224. data/generated/google/apis/containeranalysis_v1beta1/classes.rb +454 -613
  225. data/generated/google/apis/containeranalysis_v1beta1/service.rb +75 -90
  226. data/generated/google/apis/content_v2.rb +1 -1
  227. data/generated/google/apis/content_v2/classes.rb +3 -1
  228. data/generated/google/apis/content_v2_1.rb +1 -1
  229. data/generated/google/apis/content_v2_1/classes.rb +93 -2
  230. data/generated/google/apis/content_v2_1/representations.rb +34 -0
  231. data/generated/google/apis/content_v2_1/service.rb +53 -2
  232. data/generated/google/apis/datacatalog_v1beta1.rb +1 -1
  233. data/generated/google/apis/datacatalog_v1beta1/classes.rb +382 -573
  234. data/generated/google/apis/datacatalog_v1beta1/service.rb +319 -440
  235. data/generated/google/apis/dataflow_v1b3.rb +1 -1
  236. data/generated/google/apis/dataflow_v1b3/classes.rb +1015 -973
  237. data/generated/google/apis/dataflow_v1b3/representations.rb +115 -0
  238. data/generated/google/apis/dataflow_v1b3/service.rb +299 -257
  239. data/generated/google/apis/datafusion_v1.rb +5 -8
  240. data/generated/google/apis/datafusion_v1/classes.rb +268 -397
  241. data/generated/google/apis/datafusion_v1/representations.rb +3 -0
  242. data/generated/google/apis/datafusion_v1/service.rb +76 -89
  243. data/generated/google/apis/datafusion_v1beta1.rb +5 -8
  244. data/generated/google/apis/datafusion_v1beta1/classes.rb +268 -397
  245. data/generated/google/apis/datafusion_v1beta1/representations.rb +3 -0
  246. data/generated/google/apis/datafusion_v1beta1/service.rb +81 -95
  247. data/generated/google/apis/dataproc_v1.rb +1 -1
  248. data/generated/google/apis/dataproc_v1/classes.rb +37 -4
  249. data/generated/google/apis/dataproc_v1/representations.rb +16 -0
  250. data/generated/google/apis/dataproc_v1beta2.rb +1 -1
  251. data/generated/google/apis/dataproc_v1beta2/classes.rb +56 -0
  252. data/generated/google/apis/dataproc_v1beta2/representations.rb +31 -0
  253. data/generated/google/apis/datastore_v1.rb +1 -1
  254. data/generated/google/apis/datastore_v1/classes.rb +330 -472
  255. data/generated/google/apis/datastore_v1/service.rb +52 -63
  256. data/generated/google/apis/datastore_v1beta1.rb +1 -1
  257. data/generated/google/apis/datastore_v1beta1/classes.rb +150 -217
  258. data/generated/google/apis/datastore_v1beta1/service.rb +11 -12
  259. data/generated/google/apis/datastore_v1beta3.rb +1 -1
  260. data/generated/google/apis/datastore_v1beta3/classes.rb +255 -371
  261. data/generated/google/apis/datastore_v1beta3/service.rb +1 -2
  262. data/generated/google/apis/dfareporting_v3_3.rb +2 -2
  263. data/generated/google/apis/dfareporting_v3_3/classes.rb +326 -339
  264. data/generated/google/apis/dfareporting_v3_3/representations.rb +42 -0
  265. data/generated/google/apis/dfareporting_v3_3/service.rb +673 -1286
  266. data/generated/google/apis/dfareporting_v3_4.rb +2 -2
  267. data/generated/google/apis/dfareporting_v3_4/classes.rb +348 -350
  268. data/generated/google/apis/dfareporting_v3_4/representations.rb +43 -0
  269. data/generated/google/apis/dfareporting_v3_4/service.rb +708 -1285
  270. data/generated/google/apis/dialogflow_v2.rb +1 -1
  271. data/generated/google/apis/dialogflow_v2/classes.rb +84 -44
  272. data/generated/google/apis/dialogflow_v2/representations.rb +52 -15
  273. data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
  274. data/generated/google/apis/dialogflow_v2beta1/classes.rb +84 -44
  275. data/generated/google/apis/dialogflow_v2beta1/representations.rb +52 -15
  276. data/generated/google/apis/dialogflow_v2beta1/service.rb +37 -0
  277. data/generated/google/apis/{securitycenter_v1p1alpha1.rb → dialogflow_v3beta1.rb} +13 -10
  278. data/generated/google/apis/dialogflow_v3beta1/classes.rb +8183 -0
  279. data/generated/google/apis/dialogflow_v3beta1/representations.rb +3459 -0
  280. data/generated/google/apis/dialogflow_v3beta1/service.rb +2812 -0
  281. data/generated/google/apis/displayvideo_v1.rb +1 -1
  282. data/generated/google/apis/displayvideo_v1/classes.rb +55 -8
  283. data/generated/google/apis/displayvideo_v1/representations.rb +5 -0
  284. data/generated/google/apis/displayvideo_v1/service.rb +48 -36
  285. data/generated/google/apis/dlp_v2.rb +1 -1
  286. data/generated/google/apis/dlp_v2/classes.rb +1076 -1302
  287. data/generated/google/apis/dlp_v2/service.rb +962 -905
  288. data/generated/google/apis/dns_v1.rb +1 -1
  289. data/generated/google/apis/dns_v1/classes.rb +175 -198
  290. data/generated/google/apis/dns_v1/service.rb +82 -97
  291. data/generated/google/apis/dns_v1beta2.rb +1 -1
  292. data/generated/google/apis/dns_v1beta2/classes.rb +180 -205
  293. data/generated/google/apis/dns_v1beta2/service.rb +82 -97
  294. data/generated/google/apis/docs_v1.rb +1 -1
  295. data/generated/google/apis/docs_v1/classes.rb +894 -1229
  296. data/generated/google/apis/docs_v1/service.rb +17 -22
  297. data/generated/google/apis/documentai_v1beta2.rb +1 -1
  298. data/generated/google/apis/documentai_v1beta2/classes.rb +1186 -810
  299. data/generated/google/apis/documentai_v1beta2/representations.rb +303 -0
  300. data/generated/google/apis/documentai_v1beta2/service.rb +22 -24
  301. data/generated/google/apis/doubleclickbidmanager_v1.rb +3 -2
  302. data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +6 -12
  303. data/generated/google/apis/doubleclickbidmanager_v1/service.rb +33 -64
  304. data/generated/google/apis/doubleclickbidmanager_v1_1.rb +3 -2
  305. data/generated/google/apis/doubleclickbidmanager_v1_1/classes.rb +11 -18
  306. data/generated/google/apis/doubleclickbidmanager_v1_1/service.rb +33 -64
  307. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  308. data/generated/google/apis/doubleclicksearch_v2/service.rb +2 -2
  309. data/generated/google/apis/drive_v2.rb +1 -1
  310. data/generated/google/apis/drive_v2/classes.rb +14 -6
  311. data/generated/google/apis/drive_v2/representations.rb +1 -0
  312. data/generated/google/apis/drive_v2/service.rb +79 -15
  313. data/generated/google/apis/drive_v3.rb +1 -1
  314. data/generated/google/apis/drive_v3/classes.rb +14 -6
  315. data/generated/google/apis/drive_v3/representations.rb +1 -0
  316. data/generated/google/apis/drive_v3/service.rb +59 -11
  317. data/generated/google/apis/file_v1.rb +1 -1
  318. data/generated/google/apis/file_v1/classes.rb +154 -173
  319. data/generated/google/apis/file_v1/service.rb +43 -52
  320. data/generated/google/apis/file_v1beta1.rb +1 -1
  321. data/generated/google/apis/file_v1beta1/classes.rb +334 -193
  322. data/generated/google/apis/file_v1beta1/representations.rb +55 -0
  323. data/generated/google/apis/file_v1beta1/service.rb +267 -55
  324. data/generated/google/apis/firebase_v1beta1.rb +1 -1
  325. data/generated/google/apis/firebase_v1beta1/classes.rb +25 -47
  326. data/generated/google/apis/firebase_v1beta1/representations.rb +2 -16
  327. data/generated/google/apis/firebase_v1beta1/service.rb +8 -1
  328. data/generated/google/apis/firebasehosting_v1beta1.rb +1 -1
  329. data/generated/google/apis/firebasehosting_v1beta1/classes.rb +26 -0
  330. data/generated/google/apis/firebasehosting_v1beta1/representations.rb +15 -0
  331. data/generated/google/apis/firebaseml_v1beta2.rb +1 -1
  332. data/generated/google/apis/firebaseml_v1beta2/classes.rb +0 -8
  333. data/generated/google/apis/firebaseml_v1beta2/representations.rb +0 -1
  334. data/generated/google/apis/firebaserules_v1.rb +1 -1
  335. data/generated/google/apis/firebaserules_v1/classes.rb +102 -137
  336. data/generated/google/apis/firebaserules_v1/service.rb +87 -110
  337. data/generated/google/apis/firestore_v1.rb +1 -1
  338. data/generated/google/apis/firestore_v1/classes.rb +402 -498
  339. data/generated/google/apis/firestore_v1/service.rb +165 -201
  340. data/generated/google/apis/firestore_v1beta1.rb +1 -1
  341. data/generated/google/apis/firestore_v1beta1/classes.rb +334 -409
  342. data/generated/google/apis/firestore_v1beta1/service.rb +106 -122
  343. data/generated/google/apis/firestore_v1beta2.rb +1 -1
  344. data/generated/google/apis/firestore_v1beta2/classes.rb +135 -165
  345. data/generated/google/apis/firestore_v1beta2/service.rb +65 -86
  346. data/generated/google/apis/fitness_v1.rb +85 -0
  347. data/generated/google/apis/fitness_v1/classes.rb +982 -0
  348. data/generated/google/apis/fitness_v1/representations.rb +398 -0
  349. data/generated/google/apis/fitness_v1/service.rb +626 -0
  350. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  351. data/generated/google/apis/games_configuration_v1configuration/classes.rb +2 -3
  352. data/generated/google/apis/games_configuration_v1configuration/service.rb +6 -6
  353. data/generated/google/apis/games_management_v1management.rb +2 -3
  354. data/generated/google/apis/games_management_v1management/classes.rb +14 -20
  355. data/generated/google/apis/games_management_v1management/service.rb +35 -36
  356. data/generated/google/apis/games_v1.rb +2 -3
  357. data/generated/google/apis/games_v1/classes.rb +76 -83
  358. data/generated/google/apis/games_v1/representations.rb +2 -0
  359. data/generated/google/apis/games_v1/service.rb +84 -90
  360. data/generated/google/apis/genomics_v1.rb +1 -1
  361. data/generated/google/apis/genomics_v1/classes.rb +70 -76
  362. data/generated/google/apis/genomics_v1/service.rb +28 -43
  363. data/generated/google/apis/genomics_v1alpha2.rb +1 -1
  364. data/generated/google/apis/genomics_v1alpha2/classes.rb +223 -290
  365. data/generated/google/apis/genomics_v1alpha2/service.rb +54 -76
  366. data/generated/google/apis/genomics_v2alpha1.rb +1 -1
  367. data/generated/google/apis/genomics_v2alpha1/classes.rb +252 -275
  368. data/generated/google/apis/genomics_v2alpha1/representations.rb +1 -0
  369. data/generated/google/apis/genomics_v2alpha1/service.rb +47 -66
  370. data/generated/google/apis/gmail_v1.rb +1 -1
  371. data/generated/google/apis/gmail_v1/classes.rb +37 -43
  372. data/generated/google/apis/gmail_v1/service.rb +4 -3
  373. data/generated/google/apis/gmailpostmastertools_v1beta1.rb +2 -2
  374. data/generated/google/apis/gmailpostmastertools_v1beta1/service.rb +1 -1
  375. data/generated/google/apis/groupsmigration_v1.rb +35 -0
  376. data/generated/google/apis/groupsmigration_v1/classes.rb +51 -0
  377. data/generated/google/apis/groupsmigration_v1/representations.rb +40 -0
  378. data/generated/google/apis/groupsmigration_v1/service.rb +100 -0
  379. data/generated/google/apis/healthcare_v1.rb +1 -1
  380. data/generated/google/apis/healthcare_v1/classes.rb +563 -826
  381. data/generated/google/apis/healthcare_v1/service.rb +675 -853
  382. data/generated/google/apis/healthcare_v1beta1.rb +1 -1
  383. data/generated/google/apis/healthcare_v1beta1/classes.rb +828 -1102
  384. data/generated/google/apis/healthcare_v1beta1/representations.rb +20 -0
  385. data/generated/google/apis/healthcare_v1beta1/service.rb +895 -1139
  386. data/generated/google/apis/homegraph_v1.rb +1 -1
  387. data/generated/google/apis/homegraph_v1/classes.rb +76 -164
  388. data/generated/google/apis/homegraph_v1/service.rb +23 -35
  389. data/generated/google/apis/iam_v1.rb +5 -2
  390. data/generated/google/apis/iam_v1/classes.rb +388 -592
  391. data/generated/google/apis/iam_v1/service.rb +429 -555
  392. data/generated/google/apis/iamcredentials_v1.rb +4 -2
  393. data/generated/google/apis/iamcredentials_v1/classes.rb +75 -85
  394. data/generated/google/apis/iamcredentials_v1/service.rb +15 -13
  395. data/generated/google/apis/iap_v1.rb +1 -1
  396. data/generated/google/apis/iap_v1/classes.rb +246 -355
  397. data/generated/google/apis/iap_v1/service.rb +61 -71
  398. data/generated/google/apis/iap_v1beta1.rb +1 -1
  399. data/generated/google/apis/iap_v1beta1/classes.rb +157 -254
  400. data/generated/google/apis/iap_v1beta1/service.rb +17 -19
  401. data/generated/google/apis/indexing_v3.rb +1 -1
  402. data/generated/google/apis/indexing_v3/classes.rb +11 -11
  403. data/generated/google/apis/kgsearch_v1.rb +1 -1
  404. data/generated/google/apis/kgsearch_v1/classes.rb +4 -4
  405. data/generated/google/apis/kgsearch_v1/service.rb +11 -11
  406. data/generated/google/apis/lifesciences_v2beta.rb +1 -1
  407. data/generated/google/apis/lifesciences_v2beta/classes.rb +262 -290
  408. data/generated/google/apis/lifesciences_v2beta/service.rb +30 -42
  409. data/generated/google/apis/localservices_v1.rb +31 -0
  410. data/generated/google/apis/localservices_v1/classes.rb +419 -0
  411. data/generated/google/apis/localservices_v1/representations.rb +172 -0
  412. data/generated/google/apis/localservices_v1/service.rb +199 -0
  413. data/generated/google/apis/logging_v2.rb +1 -1
  414. data/generated/google/apis/logging_v2/classes.rb +174 -214
  415. data/generated/google/apis/logging_v2/representations.rb +15 -0
  416. data/generated/google/apis/logging_v2/service.rb +1017 -584
  417. data/generated/google/apis/manufacturers_v1.rb +1 -1
  418. data/generated/google/apis/manufacturers_v1/classes.rb +99 -109
  419. data/generated/google/apis/manufacturers_v1/service.rb +44 -55
  420. data/generated/google/apis/memcache_v1beta2.rb +1 -1
  421. data/generated/google/apis/memcache_v1beta2/classes.rb +170 -249
  422. data/generated/google/apis/memcache_v1beta2/representations.rb +0 -19
  423. data/generated/google/apis/memcache_v1beta2/service.rb +58 -71
  424. data/generated/google/apis/ml_v1.rb +1 -1
  425. data/generated/google/apis/ml_v1/classes.rb +949 -1144
  426. data/generated/google/apis/ml_v1/representations.rb +64 -0
  427. data/generated/google/apis/ml_v1/service.rb +194 -253
  428. data/generated/google/apis/monitoring_v1.rb +1 -1
  429. data/generated/google/apis/monitoring_v1/classes.rb +103 -26
  430. data/generated/google/apis/monitoring_v1/representations.rb +35 -0
  431. data/generated/google/apis/monitoring_v1/service.rb +10 -11
  432. data/generated/google/apis/monitoring_v3.rb +1 -1
  433. data/generated/google/apis/monitoring_v3/classes.rb +220 -322
  434. data/generated/google/apis/monitoring_v3/service.rb +121 -140
  435. data/generated/google/apis/networkmanagement_v1.rb +1 -1
  436. data/generated/google/apis/networkmanagement_v1/classes.rb +273 -429
  437. data/generated/google/apis/networkmanagement_v1/service.rb +97 -120
  438. data/generated/google/apis/networkmanagement_v1beta1.rb +1 -1
  439. data/generated/google/apis/networkmanagement_v1beta1/classes.rb +388 -429
  440. data/generated/google/apis/networkmanagement_v1beta1/representations.rb +40 -0
  441. data/generated/google/apis/networkmanagement_v1beta1/service.rb +97 -120
  442. data/generated/google/apis/osconfig_v1.rb +1 -1
  443. data/generated/google/apis/osconfig_v1/classes.rb +226 -270
  444. data/generated/google/apis/osconfig_v1/service.rb +22 -27
  445. data/generated/google/apis/osconfig_v1beta.rb +1 -1
  446. data/generated/google/apis/osconfig_v1beta/classes.rb +1031 -411
  447. data/generated/google/apis/osconfig_v1beta/representations.rb +337 -0
  448. data/generated/google/apis/osconfig_v1beta/service.rb +39 -52
  449. data/generated/google/apis/oslogin_v1.rb +1 -1
  450. data/generated/google/apis/oslogin_v1/classes.rb +14 -12
  451. data/generated/google/apis/oslogin_v1/representations.rb +1 -0
  452. data/generated/google/apis/oslogin_v1/service.rb +12 -16
  453. data/generated/google/apis/oslogin_v1alpha.rb +1 -1
  454. data/generated/google/apis/oslogin_v1alpha/classes.rb +14 -12
  455. data/generated/google/apis/oslogin_v1alpha/representations.rb +1 -0
  456. data/generated/google/apis/oslogin_v1alpha/service.rb +14 -14
  457. data/generated/google/apis/oslogin_v1beta.rb +1 -1
  458. data/generated/google/apis/oslogin_v1beta/classes.rb +14 -12
  459. data/generated/google/apis/oslogin_v1beta/representations.rb +1 -0
  460. data/generated/google/apis/oslogin_v1beta/service.rb +12 -16
  461. data/generated/google/apis/pagespeedonline_v5.rb +2 -2
  462. data/generated/google/apis/pagespeedonline_v5/classes.rb +18 -24
  463. data/generated/google/apis/pagespeedonline_v5/service.rb +3 -4
  464. data/generated/google/apis/people_v1.rb +1 -1
  465. data/generated/google/apis/people_v1/classes.rb +121 -12
  466. data/generated/google/apis/people_v1/representations.rb +41 -0
  467. data/generated/google/apis/people_v1/service.rb +39 -39
  468. data/generated/google/apis/playablelocations_v3.rb +1 -1
  469. data/generated/google/apis/playablelocations_v3/classes.rb +108 -155
  470. data/generated/google/apis/playablelocations_v3/service.rb +10 -10
  471. data/generated/google/apis/prod_tt_sasportal_v1alpha1.rb +1 -1
  472. data/generated/google/apis/prod_tt_sasportal_v1alpha1/classes.rb +6 -0
  473. data/generated/google/apis/prod_tt_sasportal_v1alpha1/representations.rb +1 -0
  474. data/generated/google/apis/pubsub_v1.rb +1 -1
  475. data/generated/google/apis/pubsub_v1/classes.rb +392 -518
  476. data/generated/google/apis/pubsub_v1/representations.rb +1 -0
  477. data/generated/google/apis/pubsub_v1/service.rb +220 -246
  478. data/generated/google/apis/pubsub_v1beta1a.rb +1 -1
  479. data/generated/google/apis/pubsub_v1beta1a/classes.rb +71 -86
  480. data/generated/google/apis/pubsub_v1beta1a/service.rb +31 -38
  481. data/generated/google/apis/pubsub_v1beta2.rb +1 -1
  482. data/generated/google/apis/pubsub_v1beta2/classes.rb +244 -354
  483. data/generated/google/apis/pubsub_v1beta2/service.rb +96 -108
  484. data/generated/google/apis/{memcache_v1.rb → pubsublite_v1.rb} +8 -9
  485. data/generated/google/apis/pubsublite_v1/classes.rb +389 -0
  486. data/generated/google/apis/{accessapproval_v1beta1 → pubsublite_v1}/representations.rb +78 -53
  487. data/generated/google/apis/{memcache_v1 → pubsublite_v1}/service.rb +195 -228
  488. data/generated/google/apis/realtimebidding_v1.rb +1 -1
  489. data/generated/google/apis/recommendationengine_v1beta1.rb +1 -1
  490. data/generated/google/apis/recommendationengine_v1beta1/classes.rb +335 -456
  491. data/generated/google/apis/recommendationengine_v1beta1/representations.rb +0 -16
  492. data/generated/google/apis/recommendationengine_v1beta1/service.rb +140 -206
  493. data/generated/google/apis/redis_v1.rb +1 -1
  494. data/generated/google/apis/redis_v1/classes.rb +172 -208
  495. data/generated/google/apis/redis_v1/service.rb +93 -110
  496. data/generated/google/apis/redis_v1beta1.rb +1 -1
  497. data/generated/google/apis/redis_v1beta1/classes.rb +176 -212
  498. data/generated/google/apis/redis_v1beta1/service.rb +93 -110
  499. data/generated/google/apis/remotebuildexecution_v1.rb +1 -1
  500. data/generated/google/apis/remotebuildexecution_v1/classes.rb +951 -1078
  501. data/generated/google/apis/remotebuildexecution_v1/representations.rb +61 -0
  502. data/generated/google/apis/remotebuildexecution_v1/service.rb +26 -33
  503. data/generated/google/apis/remotebuildexecution_v1alpha.rb +1 -1
  504. data/generated/google/apis/remotebuildexecution_v1alpha/classes.rb +946 -1071
  505. data/generated/google/apis/remotebuildexecution_v1alpha/representations.rb +61 -0
  506. data/generated/google/apis/remotebuildexecution_v1alpha/service.rb +103 -65
  507. data/generated/google/apis/remotebuildexecution_v2.rb +1 -1
  508. data/generated/google/apis/remotebuildexecution_v2/classes.rb +1099 -1250
  509. data/generated/google/apis/remotebuildexecution_v2/representations.rb +61 -0
  510. data/generated/google/apis/remotebuildexecution_v2/service.rb +147 -206
  511. data/generated/google/apis/run_v1.rb +1 -1
  512. data/generated/google/apis/run_v1/classes.rb +4 -3
  513. data/generated/google/apis/run_v1/representations.rb +1 -1
  514. data/generated/google/apis/run_v1alpha1.rb +1 -1
  515. data/generated/google/apis/run_v1alpha1/classes.rb +1 -1
  516. data/generated/google/apis/run_v1alpha1/representations.rb +1 -1
  517. data/generated/google/apis/run_v1beta1.rb +1 -1
  518. data/generated/google/apis/run_v1beta1/classes.rb +3 -2
  519. data/generated/google/apis/runtimeconfig_v1beta1.rb +1 -1
  520. data/generated/google/apis/runtimeconfig_v1beta1/classes.rb +295 -412
  521. data/generated/google/apis/runtimeconfig_v1beta1/service.rb +135 -159
  522. data/generated/google/apis/safebrowsing_v4.rb +1 -1
  523. data/generated/google/apis/safebrowsing_v4/classes.rb +55 -64
  524. data/generated/google/apis/safebrowsing_v4/service.rb +4 -4
  525. data/generated/google/apis/sasportal_v1alpha1.rb +1 -1
  526. data/generated/google/apis/sasportal_v1alpha1/classes.rb +6 -0
  527. data/generated/google/apis/sasportal_v1alpha1/representations.rb +1 -0
  528. data/generated/google/apis/script_v1.rb +1 -1
  529. data/generated/google/apis/script_v1/classes.rb +88 -111
  530. data/generated/google/apis/script_v1/service.rb +63 -69
  531. data/generated/google/apis/secretmanager_v1.rb +1 -1
  532. data/generated/google/apis/secretmanager_v1/classes.rb +211 -363
  533. data/generated/google/apis/secretmanager_v1/service.rb +66 -82
  534. data/generated/google/apis/secretmanager_v1beta1.rb +1 -1
  535. data/generated/google/apis/secretmanager_v1beta1/classes.rb +211 -363
  536. data/generated/google/apis/secretmanager_v1beta1/service.rb +66 -82
  537. data/generated/google/apis/securitycenter_v1.rb +1 -1
  538. data/generated/google/apis/securitycenter_v1/classes.rb +16 -6
  539. data/generated/google/apis/securitycenter_v1/representations.rb +1 -0
  540. data/generated/google/apis/securitycenter_v1beta1.rb +1 -1
  541. data/generated/google/apis/securitycenter_v1beta1/classes.rb +21 -9
  542. data/generated/google/apis/securitycenter_v1beta1/representations.rb +1 -0
  543. data/generated/google/apis/{securitycenter_v1p1beta1.rb → securitycenter_v1beta2.rb} +6 -6
  544. data/generated/google/apis/{securitycenter_v1p1alpha1 → securitycenter_v1beta2}/classes.rb +281 -103
  545. data/generated/google/apis/{securitycenter_v1p1alpha1 → securitycenter_v1beta2}/representations.rb +101 -30
  546. data/generated/google/apis/securitycenter_v1beta2/service.rb +1494 -0
  547. data/generated/google/apis/serviceconsumermanagement_v1.rb +1 -1
  548. data/generated/google/apis/serviceconsumermanagement_v1/classes.rb +18 -48
  549. data/generated/google/apis/serviceconsumermanagement_v1beta1.rb +1 -1
  550. data/generated/google/apis/serviceconsumermanagement_v1beta1/classes.rb +19 -49
  551. data/generated/google/apis/servicecontrol_v1.rb +1 -1
  552. data/generated/google/apis/servicecontrol_v1/classes.rb +523 -641
  553. data/generated/google/apis/servicecontrol_v1/service.rb +36 -46
  554. data/generated/google/apis/servicecontrol_v2.rb +1 -1
  555. data/generated/google/apis/servicecontrol_v2/classes.rb +279 -325
  556. data/generated/google/apis/servicecontrol_v2/service.rb +33 -43
  557. data/generated/google/apis/servicedirectory_v1beta1.rb +1 -1
  558. data/generated/google/apis/servicedirectory_v1beta1/classes.rb +214 -333
  559. data/generated/google/apis/servicedirectory_v1beta1/service.rb +94 -129
  560. data/generated/google/apis/servicemanagement_v1.rb +1 -1
  561. data/generated/google/apis/servicemanagement_v1/classes.rb +1266 -2116
  562. data/generated/google/apis/servicemanagement_v1/service.rb +144 -195
  563. data/generated/google/apis/servicenetworking_v1.rb +1 -1
  564. data/generated/google/apis/servicenetworking_v1/classes.rb +93 -48
  565. data/generated/google/apis/servicenetworking_v1/representations.rb +52 -0
  566. data/generated/google/apis/servicenetworking_v1/service.rb +116 -0
  567. data/generated/google/apis/servicenetworking_v1beta.rb +1 -1
  568. data/generated/google/apis/servicenetworking_v1beta/classes.rb +74 -48
  569. data/generated/google/apis/servicenetworking_v1beta/representations.rb +38 -0
  570. data/generated/google/apis/serviceusage_v1.rb +1 -1
  571. data/generated/google/apis/serviceusage_v1/classes.rb +52 -48
  572. data/generated/google/apis/serviceusage_v1/representations.rb +4 -0
  573. data/generated/google/apis/serviceusage_v1/service.rb +5 -1
  574. data/generated/google/apis/serviceusage_v1beta1.rb +1 -1
  575. data/generated/google/apis/serviceusage_v1beta1/classes.rb +87 -49
  576. data/generated/google/apis/serviceusage_v1beta1/representations.rb +8 -0
  577. data/generated/google/apis/sheets_v4.rb +1 -1
  578. data/generated/google/apis/sheets_v4/classes.rb +3932 -5007
  579. data/generated/google/apis/sheets_v4/representations.rb +625 -0
  580. data/generated/google/apis/sheets_v4/service.rb +113 -149
  581. data/generated/google/apis/site_verification_v1.rb +1 -1
  582. data/generated/google/apis/slides_v1.rb +1 -1
  583. data/generated/google/apis/slides_v1/classes.rb +841 -1114
  584. data/generated/google/apis/slides_v1/service.rb +23 -30
  585. data/generated/google/apis/sourcerepo_v1.rb +1 -1
  586. data/generated/google/apis/sourcerepo_v1/classes.rb +6 -6
  587. data/generated/google/apis/spanner_v1.rb +1 -1
  588. data/generated/google/apis/spanner_v1/classes.rb +1546 -2157
  589. data/generated/google/apis/spanner_v1/service.rb +443 -618
  590. data/generated/google/apis/speech_v1.rb +1 -1
  591. data/generated/google/apis/speech_v1/classes.rb +174 -220
  592. data/generated/google/apis/speech_v1/service.rb +27 -32
  593. data/generated/google/apis/speech_v1p1beta1.rb +1 -1
  594. data/generated/google/apis/speech_v1p1beta1/classes.rb +253 -306
  595. data/generated/google/apis/speech_v1p1beta1/service.rb +27 -32
  596. data/generated/google/apis/speech_v2beta1.rb +1 -1
  597. data/generated/google/apis/speech_v2beta1/classes.rb +66 -76
  598. data/generated/google/apis/speech_v2beta1/service.rb +10 -12
  599. data/generated/google/apis/sql_v1beta4.rb +1 -1
  600. data/generated/google/apis/sql_v1beta4/classes.rb +311 -370
  601. data/generated/google/apis/sql_v1beta4/representations.rb +2 -0
  602. data/generated/google/apis/sql_v1beta4/service.rb +51 -56
  603. data/generated/google/apis/storage_v1.rb +1 -1
  604. data/generated/google/apis/storage_v1/classes.rb +8 -7
  605. data/generated/google/apis/storage_v1/representations.rb +2 -2
  606. data/generated/google/apis/storagetransfer_v1.rb +1 -1
  607. data/generated/google/apis/storagetransfer_v1/classes.rb +261 -339
  608. data/generated/google/apis/storagetransfer_v1/service.rb +43 -64
  609. data/generated/google/apis/streetviewpublish_v1.rb +1 -1
  610. data/generated/google/apis/streetviewpublish_v1/classes.rb +106 -148
  611. data/generated/google/apis/streetviewpublish_v1/service.rb +94 -177
  612. data/generated/google/apis/tagmanager_v1.rb +1 -1
  613. data/generated/google/apis/tagmanager_v1/service.rb +2 -2
  614. data/generated/google/apis/tagmanager_v2.rb +1 -1
  615. data/generated/google/apis/tagmanager_v2/service.rb +2 -2
  616. data/generated/google/apis/tasks_v1.rb +1 -1
  617. data/generated/google/apis/tasks_v1/classes.rb +20 -21
  618. data/generated/google/apis/tasks_v1/service.rb +16 -17
  619. data/generated/google/apis/testing_v1.rb +1 -1
  620. data/generated/google/apis/testing_v1/classes.rb +317 -382
  621. data/generated/google/apis/testing_v1/representations.rb +2 -0
  622. data/generated/google/apis/testing_v1/service.rb +22 -28
  623. data/generated/google/apis/texttospeech_v1.rb +1 -1
  624. data/generated/google/apis/texttospeech_v1/classes.rb +51 -57
  625. data/generated/google/apis/texttospeech_v1/service.rb +9 -10
  626. data/generated/google/apis/texttospeech_v1beta1.rb +1 -1
  627. data/generated/google/apis/texttospeech_v1beta1/classes.rb +96 -57
  628. data/generated/google/apis/texttospeech_v1beta1/representations.rb +19 -0
  629. data/generated/google/apis/texttospeech_v1beta1/service.rb +9 -10
  630. data/generated/google/apis/toolresults_v1beta3.rb +1 -1
  631. data/generated/google/apis/toolresults_v1beta3/classes.rb +7 -0
  632. data/generated/google/apis/toolresults_v1beta3/representations.rb +1 -0
  633. data/generated/google/apis/tpu_v1.rb +1 -1
  634. data/generated/google/apis/tpu_v1/classes.rb +11 -0
  635. data/generated/google/apis/tpu_v1/representations.rb +1 -0
  636. data/generated/google/apis/tpu_v1alpha1.rb +1 -1
  637. data/generated/google/apis/tpu_v1alpha1/classes.rb +11 -0
  638. data/generated/google/apis/tpu_v1alpha1/representations.rb +1 -0
  639. data/generated/google/apis/{accessapproval_v1beta1.rb → trafficdirector_v2.rb} +9 -9
  640. data/generated/google/apis/trafficdirector_v2/classes.rb +1347 -0
  641. data/generated/google/apis/trafficdirector_v2/representations.rb +620 -0
  642. data/generated/google/apis/trafficdirector_v2/service.rb +89 -0
  643. data/generated/google/apis/translate_v3.rb +1 -1
  644. data/generated/google/apis/translate_v3/classes.rb +148 -175
  645. data/generated/google/apis/translate_v3/service.rb +122 -151
  646. data/generated/google/apis/translate_v3beta1.rb +1 -1
  647. data/generated/google/apis/translate_v3beta1/classes.rb +149 -170
  648. data/generated/google/apis/translate_v3beta1/service.rb +122 -151
  649. data/generated/google/apis/vectortile_v1.rb +1 -1
  650. data/generated/google/apis/vectortile_v1/classes.rb +185 -267
  651. data/generated/google/apis/vectortile_v1/service.rb +75 -88
  652. data/generated/google/apis/videointelligence_v1.rb +1 -1
  653. data/generated/google/apis/videointelligence_v1/classes.rb +753 -918
  654. data/generated/google/apis/videointelligence_v1/service.rb +40 -48
  655. data/generated/google/apis/videointelligence_v1beta2.rb +1 -1
  656. data/generated/google/apis/videointelligence_v1beta2/classes.rb +748 -911
  657. data/generated/google/apis/videointelligence_v1beta2/service.rb +4 -4
  658. data/generated/google/apis/videointelligence_v1p1beta1.rb +1 -1
  659. data/generated/google/apis/videointelligence_v1p1beta1/classes.rb +748 -911
  660. data/generated/google/apis/videointelligence_v1p1beta1/service.rb +4 -4
  661. data/generated/google/apis/videointelligence_v1p2beta1.rb +1 -1
  662. data/generated/google/apis/videointelligence_v1p2beta1/classes.rb +748 -911
  663. data/generated/google/apis/videointelligence_v1p2beta1/service.rb +4 -4
  664. data/generated/google/apis/videointelligence_v1p3beta1.rb +1 -1
  665. data/generated/google/apis/videointelligence_v1p3beta1/classes.rb +754 -920
  666. data/generated/google/apis/videointelligence_v1p3beta1/service.rb +4 -4
  667. data/generated/google/apis/webfonts_v1.rb +2 -3
  668. data/generated/google/apis/webfonts_v1/classes.rb +1 -2
  669. data/generated/google/apis/webfonts_v1/service.rb +2 -4
  670. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  671. data/generated/google/apis/youtube_v3.rb +1 -1
  672. data/generated/google/apis/youtube_v3/classes.rb +347 -0
  673. data/generated/google/apis/youtube_v3/representations.rb +176 -0
  674. data/generated/google/apis/youtube_v3/service.rb +78 -0
  675. data/lib/google/apis/version.rb +1 -1
  676. metadata +31 -31
  677. data/generated/google/apis/accessapproval_v1beta1/classes.rb +0 -417
  678. data/generated/google/apis/accessapproval_v1beta1/service.rb +0 -857
  679. data/generated/google/apis/dns_v2beta1.rb +0 -43
  680. data/generated/google/apis/dns_v2beta1/classes.rb +0 -1447
  681. data/generated/google/apis/dns_v2beta1/representations.rb +0 -588
  682. data/generated/google/apis/dns_v2beta1/service.rb +0 -928
  683. data/generated/google/apis/memcache_v1/classes.rb +0 -1157
  684. data/generated/google/apis/memcache_v1/representations.rb +0 -471
  685. data/generated/google/apis/oauth2_v2.rb +0 -40
  686. data/generated/google/apis/oauth2_v2/classes.rb +0 -165
  687. data/generated/google/apis/oauth2_v2/representations.rb +0 -68
  688. data/generated/google/apis/oauth2_v2/service.rb +0 -158
  689. data/generated/google/apis/securitycenter_v1p1alpha1/service.rb +0 -207
  690. data/generated/google/apis/securitycenter_v1p1beta1/classes.rb +0 -2059
  691. data/generated/google/apis/securitycenter_v1p1beta1/representations.rb +0 -789
  692. data/generated/google/apis/securitycenter_v1p1beta1/service.rb +0 -1243
  693. data/generated/google/apis/storage_v1beta2.rb +0 -40
  694. data/generated/google/apis/storage_v1beta2/classes.rb +0 -1047
  695. data/generated/google/apis/storage_v1beta2/representations.rb +0 -425
  696. data/generated/google/apis/storage_v1beta2/service.rb +0 -1667
@@ -220,6 +220,12 @@ module Google
220
220
  include Google::Apis::Core::JsonObjectSupport
221
221
  end
222
222
 
223
+ class UndeleteBucketRequest
224
+ class Representation < Google::Apis::Core::JsonRepresentation; end
225
+
226
+ include Google::Apis::Core::JsonObjectSupport
227
+ end
228
+
223
229
  class WriteLogEntriesRequest
224
230
  class Representation < Google::Apis::Core::JsonRepresentation; end
225
231
 
@@ -402,6 +408,7 @@ module Google
402
408
  property :create_time, as: 'createTime'
403
409
  property :description, as: 'description'
404
410
  property :lifecycle_state, as: 'lifecycleState'
411
+ property :locked, as: 'locked'
405
412
  property :name, as: 'name'
406
413
  property :retention_days, as: 'retentionDays'
407
414
  property :update_time, as: 'updateTime'
@@ -505,6 +512,8 @@ module Google
505
512
  property :description, as: 'description'
506
513
  property :destination, as: 'destination'
507
514
  property :disabled, as: 'disabled'
515
+ collection :exclusions, as: 'exclusions', class: Google::Apis::LoggingV2::LogExclusion, decorator: Google::Apis::LoggingV2::LogExclusion::Representation
516
+
508
517
  property :filter, as: 'filter'
509
518
  property :include_children, as: 'includeChildren'
510
519
  property :name, as: 'name'
@@ -629,6 +638,12 @@ module Google
629
638
  end
630
639
  end
631
640
 
641
+ class UndeleteBucketRequest
642
+ # @private
643
+ class Representation < Google::Apis::Core::JsonRepresentation
644
+ end
645
+ end
646
+
632
647
  class WriteLogEntriesRequest
633
648
  # @private
634
649
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -52,13 +52,12 @@ module Google
52
52
 
53
53
  # Gets a bucket (Beta).
54
54
  # @param [String] name
55
- # Required. The resource name of the bucket:
56
- # "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
57
- # "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
58
- # "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[
59
- # BUCKET_ID]"
60
- # "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
61
- # Example: "projects/my-project-id/locations/my-location/buckets/my-bucket-id".
55
+ # Required. The resource name of the bucket: "projects/[PROJECT_ID]/locations/[
56
+ # LOCATION_ID]/buckets/[BUCKET_ID]" "organizations/[ORGANIZATION_ID]/locations/[
57
+ # LOCATION_ID]/buckets/[BUCKET_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]/
58
+ # locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "folders/[FOLDER_ID]/locations/[
59
+ # LOCATION_ID]/buckets/[BUCKET_ID]" Example: "projects/my-project-id/locations/
60
+ # my-location/buckets/my-bucket-id".
62
61
  # @param [String] fields
63
62
  # Selector specifying which fields to include in a partial response.
64
63
  # @param [String] quota_user
@@ -90,12 +89,10 @@ module Google
90
89
  # belonging to that resource can be excluded. You can have up to 10 exclusions
91
90
  # in a resource.
92
91
  # @param [String] parent
93
- # Required. The parent resource in which to create the exclusion:
94
- # "projects/[PROJECT_ID]"
95
- # "organizations/[ORGANIZATION_ID]"
96
- # "billingAccounts/[BILLING_ACCOUNT_ID]"
97
- # "folders/[FOLDER_ID]"
98
- # Examples: "projects/my-logging-project", "organizations/123456789".
92
+ # Required. The parent resource in which to create the exclusion: "projects/[
93
+ # PROJECT_ID]" "organizations/[ORGANIZATION_ID]" "billingAccounts/[
94
+ # BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]" Examples: "projects/my-logging-
95
+ # project", "organizations/123456789".
99
96
  # @param [Google::Apis::LoggingV2::LogExclusion] log_exclusion_object
100
97
  # @param [String] fields
101
98
  # Selector specifying which fields to include in a partial response.
@@ -128,12 +125,11 @@ module Google
128
125
 
129
126
  # Deletes an exclusion.
130
127
  # @param [String] name
131
- # Required. The resource name of an existing exclusion to delete:
132
- # "projects/[PROJECT_ID]/exclusions/[EXCLUSION_ID]"
133
- # "organizations/[ORGANIZATION_ID]/exclusions/[EXCLUSION_ID]"
134
- # "billingAccounts/[BILLING_ACCOUNT_ID]/exclusions/[EXCLUSION_ID]"
135
- # "folders/[FOLDER_ID]/exclusions/[EXCLUSION_ID]"
136
- # Example: "projects/my-project-id/exclusions/my-exclusion-id".
128
+ # Required. The resource name of an existing exclusion to delete: "projects/[
129
+ # PROJECT_ID]/exclusions/[EXCLUSION_ID]" "organizations/[ORGANIZATION_ID]/
130
+ # exclusions/[EXCLUSION_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]/exclusions/[
131
+ # EXCLUSION_ID]" "folders/[FOLDER_ID]/exclusions/[EXCLUSION_ID]" Example: "
132
+ # projects/my-project-id/exclusions/my-exclusion-id".
137
133
  # @param [String] fields
138
134
  # Selector specifying which fields to include in a partial response.
139
135
  # @param [String] quota_user
@@ -163,12 +159,11 @@ module Google
163
159
 
164
160
  # Gets the description of an exclusion.
165
161
  # @param [String] name
166
- # Required. The resource name of an existing exclusion:
167
- # "projects/[PROJECT_ID]/exclusions/[EXCLUSION_ID]"
168
- # "organizations/[ORGANIZATION_ID]/exclusions/[EXCLUSION_ID]"
169
- # "billingAccounts/[BILLING_ACCOUNT_ID]/exclusions/[EXCLUSION_ID]"
170
- # "folders/[FOLDER_ID]/exclusions/[EXCLUSION_ID]"
171
- # Example: "projects/my-project-id/exclusions/my-exclusion-id".
162
+ # Required. The resource name of an existing exclusion: "projects/[PROJECT_ID]/
163
+ # exclusions/[EXCLUSION_ID]" "organizations/[ORGANIZATION_ID]/exclusions/[
164
+ # EXCLUSION_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]/exclusions/[EXCLUSION_ID]"
165
+ # "folders/[FOLDER_ID]/exclusions/[EXCLUSION_ID]" Example: "projects/my-project-
166
+ # id/exclusions/my-exclusion-id".
172
167
  # @param [String] fields
173
168
  # Selector specifying which fields to include in a partial response.
174
169
  # @param [String] quota_user
@@ -198,11 +193,9 @@ module Google
198
193
 
199
194
  # Lists all the exclusions in a parent resource.
200
195
  # @param [String] parent
201
- # Required. The parent resource whose exclusions are to be listed.
202
- # "projects/[PROJECT_ID]"
203
- # "organizations/[ORGANIZATION_ID]"
204
- # "billingAccounts/[BILLING_ACCOUNT_ID]"
205
- # "folders/[FOLDER_ID]"
196
+ # Required. The parent resource whose exclusions are to be listed. "projects/[
197
+ # PROJECT_ID]" "organizations/[ORGANIZATION_ID]" "billingAccounts/[
198
+ # BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]"
206
199
  # @param [Fixnum] page_size
207
200
  # Optional. The maximum number of results to return from this request. Non-
208
201
  # positive values are ignored. The presence of nextPageToken in the response
@@ -243,12 +236,11 @@ module Google
243
236
 
244
237
  # Changes one or more properties of an existing exclusion.
245
238
  # @param [String] name
246
- # Required. The resource name of the exclusion to update:
247
- # "projects/[PROJECT_ID]/exclusions/[EXCLUSION_ID]"
248
- # "organizations/[ORGANIZATION_ID]/exclusions/[EXCLUSION_ID]"
249
- # "billingAccounts/[BILLING_ACCOUNT_ID]/exclusions/[EXCLUSION_ID]"
250
- # "folders/[FOLDER_ID]/exclusions/[EXCLUSION_ID]"
251
- # Example: "projects/my-project-id/exclusions/my-exclusion-id".
239
+ # Required. The resource name of the exclusion to update: "projects/[PROJECT_ID]/
240
+ # exclusions/[EXCLUSION_ID]" "organizations/[ORGANIZATION_ID]/exclusions/[
241
+ # EXCLUSION_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]/exclusions/[EXCLUSION_ID]"
242
+ # "folders/[FOLDER_ID]/exclusions/[EXCLUSION_ID]" Example: "projects/my-project-
243
+ # id/exclusions/my-exclusion-id".
252
244
  # @param [Google::Apis::LoggingV2::LogExclusion] log_exclusion_object
253
245
  # @param [String] update_mask
254
246
  # Required. A non-empty list of fields to change in the existing exclusion. New
@@ -287,15 +279,92 @@ module Google
287
279
  execute_or_queue_command(command, &block)
288
280
  end
289
281
 
282
+ # Creates a bucket that can be used to store log entries. Once a bucket has been
283
+ # created, the region cannot be changed.
284
+ # @param [String] parent
285
+ # Required. The resource in which to create the bucket: "projects/[PROJECT_ID]/
286
+ # locations/[LOCATION_ID]" Example: "projects/my-logging-project/locations/
287
+ # global"
288
+ # @param [Google::Apis::LoggingV2::LogBucket] log_bucket_object
289
+ # @param [String] bucket_id
290
+ # Required. A client-assigned identifier such as "my-bucket". Identifiers are
291
+ # limited to 100 characters and can include only letters, digits, underscores,
292
+ # hyphens, and periods.
293
+ # @param [String] fields
294
+ # Selector specifying which fields to include in a partial response.
295
+ # @param [String] quota_user
296
+ # Available to use for quota purposes for server-side applications. Can be any
297
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
298
+ # @param [Google::Apis::RequestOptions] options
299
+ # Request-specific options
300
+ #
301
+ # @yield [result, err] Result & error if block supplied
302
+ # @yieldparam result [Google::Apis::LoggingV2::LogBucket] parsed result object
303
+ # @yieldparam err [StandardError] error object if request failed
304
+ #
305
+ # @return [Google::Apis::LoggingV2::LogBucket]
306
+ #
307
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
308
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
309
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
310
+ def create_billing_account_location_bucket(parent, log_bucket_object = nil, bucket_id: nil, fields: nil, quota_user: nil, options: nil, &block)
311
+ command = make_simple_command(:post, 'v2/{+parent}/buckets', options)
312
+ command.request_representation = Google::Apis::LoggingV2::LogBucket::Representation
313
+ command.request_object = log_bucket_object
314
+ command.response_representation = Google::Apis::LoggingV2::LogBucket::Representation
315
+ command.response_class = Google::Apis::LoggingV2::LogBucket
316
+ command.params['parent'] = parent unless parent.nil?
317
+ command.query['bucketId'] = bucket_id unless bucket_id.nil?
318
+ command.query['fields'] = fields unless fields.nil?
319
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
320
+ execute_or_queue_command(command, &block)
321
+ end
322
+
323
+ # Deletes a bucket. Moves the bucket to the DELETE_REQUESTED state. After 7 days,
324
+ # the bucket will be purged and all logs in the bucket will be permanently
325
+ # deleted.
326
+ # @param [String] name
327
+ # Required. The full resource name of the bucket to delete. "projects/[
328
+ # PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "organizations/[
329
+ # ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "billingAccounts/
330
+ # [BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "folders/[
331
+ # FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" Example: "projects/my-
332
+ # project-id/locations/my-location/buckets/my-bucket-id".
333
+ # @param [String] fields
334
+ # Selector specifying which fields to include in a partial response.
335
+ # @param [String] quota_user
336
+ # Available to use for quota purposes for server-side applications. Can be any
337
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
338
+ # @param [Google::Apis::RequestOptions] options
339
+ # Request-specific options
340
+ #
341
+ # @yield [result, err] Result & error if block supplied
342
+ # @yieldparam result [Google::Apis::LoggingV2::Empty] parsed result object
343
+ # @yieldparam err [StandardError] error object if request failed
344
+ #
345
+ # @return [Google::Apis::LoggingV2::Empty]
346
+ #
347
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
348
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
349
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
350
+ def delete_billing_account_location_bucket(name, fields: nil, quota_user: nil, options: nil, &block)
351
+ command = make_simple_command(:delete, 'v2/{+name}', options)
352
+ command.response_representation = Google::Apis::LoggingV2::Empty::Representation
353
+ command.response_class = Google::Apis::LoggingV2::Empty
354
+ command.params['name'] = name unless name.nil?
355
+ command.query['fields'] = fields unless fields.nil?
356
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
357
+ execute_or_queue_command(command, &block)
358
+ end
359
+
290
360
  # Lists buckets (Beta).
291
361
  # @param [String] parent
292
- # Required. The parent resource whose buckets are to be listed:
293
- # "projects/[PROJECT_ID]/locations/[LOCATION_ID]"
294
- # "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]"
295
- # "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]"
296
- # "folders/[FOLDER_ID]/locations/[LOCATION_ID]"
297
- # Note: The locations portion of the resource must be specified, but supplying
298
- # the character - in place of LOCATION_ID will return all buckets.
362
+ # Required. The parent resource whose buckets are to be listed: "projects/[
363
+ # PROJECT_ID]/locations/[LOCATION_ID]" "organizations/[ORGANIZATION_ID]/
364
+ # locations/[LOCATION_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[
365
+ # LOCATION_ID]" "folders/[FOLDER_ID]/locations/[LOCATION_ID]" Note: The
366
+ # locations portion of the resource must be specified, but supplying the
367
+ # character - in place of LOCATION_ID will return all buckets.
299
368
  # @param [Fixnum] page_size
300
369
  # Optional. The maximum number of results to return from this request. Non-
301
370
  # positive values are ignored. The presence of nextPageToken in the response
@@ -341,15 +410,13 @@ module Google
341
410
  # FAILED_PRECONDITION will be returned.A buckets region may not be modified
342
411
  # after it is created. This method is in Beta.
343
412
  # @param [String] name
344
- # Required. The full resource name of the bucket to update.
345
- # "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
346
- # "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
347
- # "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[
348
- # BUCKET_ID]"
349
- # "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
350
- # Example: "projects/my-project-id/locations/my-location/buckets/my-bucket-id".
351
- # Also requires permission "resourcemanager.projects.updateLiens" to set the
352
- # locked property
413
+ # Required. The full resource name of the bucket to update. "projects/[
414
+ # PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "organizations/[
415
+ # ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "billingAccounts/
416
+ # [BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "folders/[
417
+ # FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" Example: "projects/my-
418
+ # project-id/locations/my-location/buckets/my-bucket-id". Also requires
419
+ # permission "resourcemanager.projects.updateLiens" to set the locked property
353
420
  # @param [Google::Apis::LoggingV2::LogBucket] log_bucket_object
354
421
  # @param [String] update_mask
355
422
  # Required. Field mask that specifies the fields in bucket that need an update.
@@ -387,19 +454,56 @@ module Google
387
454
  execute_or_queue_command(command, &block)
388
455
  end
389
456
 
457
+ # Undeletes a bucket. A bucket that has been deleted may be undeleted within the
458
+ # grace period of 7 days.
459
+ # @param [String] name
460
+ # Required. The full resource name of the bucket to undelete. "projects/[
461
+ # PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "organizations/[
462
+ # ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "billingAccounts/
463
+ # [BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "folders/[
464
+ # FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" Example: "projects/my-
465
+ # project-id/locations/my-location/buckets/my-bucket-id".
466
+ # @param [Google::Apis::LoggingV2::UndeleteBucketRequest] undelete_bucket_request_object
467
+ # @param [String] fields
468
+ # Selector specifying which fields to include in a partial response.
469
+ # @param [String] quota_user
470
+ # Available to use for quota purposes for server-side applications. Can be any
471
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
472
+ # @param [Google::Apis::RequestOptions] options
473
+ # Request-specific options
474
+ #
475
+ # @yield [result, err] Result & error if block supplied
476
+ # @yieldparam result [Google::Apis::LoggingV2::Empty] parsed result object
477
+ # @yieldparam err [StandardError] error object if request failed
478
+ #
479
+ # @return [Google::Apis::LoggingV2::Empty]
480
+ #
481
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
482
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
483
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
484
+ def undelete_billing_account_location_bucket(name, undelete_bucket_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
485
+ command = make_simple_command(:post, 'v2/{+name}:undelete', options)
486
+ command.request_representation = Google::Apis::LoggingV2::UndeleteBucketRequest::Representation
487
+ command.request_object = undelete_bucket_request_object
488
+ command.response_representation = Google::Apis::LoggingV2::Empty::Representation
489
+ command.response_class = Google::Apis::LoggingV2::Empty
490
+ command.params['name'] = name unless name.nil?
491
+ command.query['fields'] = fields unless fields.nil?
492
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
493
+ execute_or_queue_command(command, &block)
494
+ end
495
+
390
496
  # Deletes all the log entries in a log. The log reappears if it receives new
391
497
  # entries. Log entries written shortly before the delete operation might not be
392
498
  # deleted. Entries received after the delete operation with a timestamp before
393
499
  # the operation will be deleted.
394
500
  # @param [String] log_name
395
- # Required. The resource name of the log to delete:
396
- # "projects/[PROJECT_ID]/logs/[LOG_ID]"
397
- # "organizations/[ORGANIZATION_ID]/logs/[LOG_ID]"
398
- # "billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]"
399
- # "folders/[FOLDER_ID]/logs/[LOG_ID]"
400
- # [LOG_ID] must be URL-encoded. For example, "projects/my-project-id/logs/syslog"
401
- # , "organizations/1234567890/logs/cloudresourcemanager.googleapis.com%
402
- # 2Factivity". For more information about log names, see LogEntry.
501
+ # Required. The resource name of the log to delete: "projects/[PROJECT_ID]/logs/[
502
+ # LOG_ID]" "organizations/[ORGANIZATION_ID]/logs/[LOG_ID]" "billingAccounts/[
503
+ # BILLING_ACCOUNT_ID]/logs/[LOG_ID]" "folders/[FOLDER_ID]/logs/[LOG_ID]" [LOG_ID]
504
+ # must be URL-encoded. For example, "projects/my-project-id/logs/syslog", "
505
+ # organizations/1234567890/logs/cloudresourcemanager.googleapis.com%2Factivity".
506
+ # For more information about log names, see LogEntry.
403
507
  # @param [String] fields
404
508
  # Selector specifying which fields to include in a partial response.
405
509
  # @param [String] quota_user
@@ -430,11 +534,9 @@ module Google
430
534
  # Lists the logs in projects, organizations, folders, or billing accounts. Only
431
535
  # logs that have entries are listed.
432
536
  # @param [String] parent
433
- # Required. The resource name that owns the logs:
434
- # "projects/[PROJECT_ID]"
435
- # "organizations/[ORGANIZATION_ID]"
436
- # "billingAccounts/[BILLING_ACCOUNT_ID]"
437
- # "folders/[FOLDER_ID]"
537
+ # Required. The resource name that owns the logs: "projects/[PROJECT_ID]" "
538
+ # organizations/[ORGANIZATION_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]" "
539
+ # folders/[FOLDER_ID]"
438
540
  # @param [Fixnum] page_size
439
541
  # Optional. The maximum number of results to return from this request. Non-
440
542
  # positive values are ignored. The presence of nextPageToken in the response
@@ -478,12 +580,10 @@ module Google
478
580
  # writer_identity is not permitted to write to the destination. A sink can
479
581
  # export log entries only from the resource owning the sink.
480
582
  # @param [String] parent
481
- # Required. The resource in which to create the sink:
482
- # "projects/[PROJECT_ID]"
483
- # "organizations/[ORGANIZATION_ID]"
484
- # "billingAccounts/[BILLING_ACCOUNT_ID]"
485
- # "folders/[FOLDER_ID]"
486
- # Examples: "projects/my-logging-project", "organizations/123456789".
583
+ # Required. The resource in which to create the sink: "projects/[PROJECT_ID]" "
584
+ # organizations/[ORGANIZATION_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]" "
585
+ # folders/[FOLDER_ID]" Examples: "projects/my-logging-project", "organizations/
586
+ # 123456789".
487
587
  # @param [Google::Apis::LoggingV2::LogSink] log_sink_object
488
588
  # @param [Boolean] unique_writer_identity
489
589
  # Optional. Determines the kind of IAM identity returned as writer_identity in
@@ -529,11 +629,9 @@ module Google
529
629
  # account is also deleted.
530
630
  # @param [String] sink_name
531
631
  # Required. The full resource name of the sink to delete, including the parent
532
- # resource and the sink identifier:
533
- # "projects/[PROJECT_ID]/sinks/[SINK_ID]"
534
- # "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]"
535
- # "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]"
536
- # "folders/[FOLDER_ID]/sinks/[SINK_ID]"
632
+ # resource and the sink identifier: "projects/[PROJECT_ID]/sinks/[SINK_ID]" "
633
+ # organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]" "billingAccounts/[
634
+ # BILLING_ACCOUNT_ID]/sinks/[SINK_ID]" "folders/[FOLDER_ID]/sinks/[SINK_ID]"
537
635
  # Example: "projects/my-project-id/sinks/my-sink-id".
538
636
  # @param [String] fields
539
637
  # Selector specifying which fields to include in a partial response.
@@ -564,11 +662,9 @@ module Google
564
662
 
565
663
  # Gets a sink.
566
664
  # @param [String] sink_name
567
- # Required. The resource name of the sink:
568
- # "projects/[PROJECT_ID]/sinks/[SINK_ID]"
569
- # "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]"
570
- # "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]"
571
- # "folders/[FOLDER_ID]/sinks/[SINK_ID]"
665
+ # Required. The resource name of the sink: "projects/[PROJECT_ID]/sinks/[SINK_ID]
666
+ # " "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]" "billingAccounts/[
667
+ # BILLING_ACCOUNT_ID]/sinks/[SINK_ID]" "folders/[FOLDER_ID]/sinks/[SINK_ID]"
572
668
  # Example: "projects/my-project-id/sinks/my-sink-id".
573
669
  # @param [String] fields
574
670
  # Selector specifying which fields to include in a partial response.
@@ -599,11 +695,9 @@ module Google
599
695
 
600
696
  # Lists sinks.
601
697
  # @param [String] parent
602
- # Required. The parent resource whose sinks are to be listed:
603
- # "projects/[PROJECT_ID]"
604
- # "organizations/[ORGANIZATION_ID]"
605
- # "billingAccounts/[BILLING_ACCOUNT_ID]"
606
- # "folders/[FOLDER_ID]"
698
+ # Required. The parent resource whose sinks are to be listed: "projects/[
699
+ # PROJECT_ID]" "organizations/[ORGANIZATION_ID]" "billingAccounts/[
700
+ # BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]"
607
701
  # @param [Fixnum] page_size
608
702
  # Optional. The maximum number of results to return from this request. Non-
609
703
  # positive values are ignored. The presence of nextPageToken in the response
@@ -647,23 +741,20 @@ module Google
647
741
  # also have a new writer_identity; see the unique_writer_identity field.
648
742
  # @param [String] sink_name
649
743
  # Required. The full resource name of the sink to update, including the parent
650
- # resource and the sink identifier:
651
- # "projects/[PROJECT_ID]/sinks/[SINK_ID]"
652
- # "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]"
653
- # "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]"
654
- # "folders/[FOLDER_ID]/sinks/[SINK_ID]"
744
+ # resource and the sink identifier: "projects/[PROJECT_ID]/sinks/[SINK_ID]" "
745
+ # organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]" "billingAccounts/[
746
+ # BILLING_ACCOUNT_ID]/sinks/[SINK_ID]" "folders/[FOLDER_ID]/sinks/[SINK_ID]"
655
747
  # Example: "projects/my-project-id/sinks/my-sink-id".
656
748
  # @param [Google::Apis::LoggingV2::LogSink] log_sink_object
657
749
  # @param [Boolean] unique_writer_identity
658
750
  # Optional. See sinks.create for a description of this field. When updating a
659
751
  # sink, the effect of this field on the value of writer_identity in the updated
660
- # sink depends on both the old and new values of this field:
661
- # If the old and new values of this field are both false or both true, then
662
- # there is no change to the sink's writer_identity.
663
- # If the old value is false and the new value is true, then writer_identity is
664
- # changed to a unique service account.
665
- # It is an error if the old value is true and the new value is set to false or
666
- # defaulted to false.
752
+ # sink depends on both the old and new values of this field: If the old and new
753
+ # values of this field are both false or both true, then there is no change to
754
+ # the sink's writer_identity. If the old value is false and the new value is
755
+ # true, then writer_identity is changed to a unique service account. It is an
756
+ # error if the old value is true and the new value is set to false or defaulted
757
+ # to false.
667
758
  # @param [String] update_mask
668
759
  # Optional. Field mask that specifies the fields in sink that need an update. A
669
760
  # sink field will be overwritten if, and only if, it is in the update mask. name
@@ -709,23 +800,20 @@ module Google
709
800
  # also have a new writer_identity; see the unique_writer_identity field.
710
801
  # @param [String] sink_name
711
802
  # Required. The full resource name of the sink to update, including the parent
712
- # resource and the sink identifier:
713
- # "projects/[PROJECT_ID]/sinks/[SINK_ID]"
714
- # "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]"
715
- # "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]"
716
- # "folders/[FOLDER_ID]/sinks/[SINK_ID]"
803
+ # resource and the sink identifier: "projects/[PROJECT_ID]/sinks/[SINK_ID]" "
804
+ # organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]" "billingAccounts/[
805
+ # BILLING_ACCOUNT_ID]/sinks/[SINK_ID]" "folders/[FOLDER_ID]/sinks/[SINK_ID]"
717
806
  # Example: "projects/my-project-id/sinks/my-sink-id".
718
807
  # @param [Google::Apis::LoggingV2::LogSink] log_sink_object
719
808
  # @param [Boolean] unique_writer_identity
720
809
  # Optional. See sinks.create for a description of this field. When updating a
721
810
  # sink, the effect of this field on the value of writer_identity in the updated
722
- # sink depends on both the old and new values of this field:
723
- # If the old and new values of this field are both false or both true, then
724
- # there is no change to the sink's writer_identity.
725
- # If the old value is false and the new value is true, then writer_identity is
726
- # changed to a unique service account.
727
- # It is an error if the old value is true and the new value is set to false or
728
- # defaulted to false.
811
+ # sink depends on both the old and new values of this field: If the old and new
812
+ # values of this field are both false or both true, then there is no change to
813
+ # the sink's writer_identity. If the old value is false and the new value is
814
+ # true, then writer_identity is changed to a unique service account. It is an
815
+ # error if the old value is true and the new value is set to false or defaulted
816
+ # to false.
729
817
  # @param [String] update_mask
730
818
  # Optional. Field mask that specifies the fields in sink that need an update. A
731
819
  # sink field will be overwritten if, and only if, it is in the update mask. name
@@ -836,12 +924,10 @@ module Google
836
924
  # belonging to that resource can be excluded. You can have up to 10 exclusions
837
925
  # in a resource.
838
926
  # @param [String] parent
839
- # Required. The parent resource in which to create the exclusion:
840
- # "projects/[PROJECT_ID]"
841
- # "organizations/[ORGANIZATION_ID]"
842
- # "billingAccounts/[BILLING_ACCOUNT_ID]"
843
- # "folders/[FOLDER_ID]"
844
- # Examples: "projects/my-logging-project", "organizations/123456789".
927
+ # Required. The parent resource in which to create the exclusion: "projects/[
928
+ # PROJECT_ID]" "organizations/[ORGANIZATION_ID]" "billingAccounts/[
929
+ # BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]" Examples: "projects/my-logging-
930
+ # project", "organizations/123456789".
845
931
  # @param [Google::Apis::LoggingV2::LogExclusion] log_exclusion_object
846
932
  # @param [String] fields
847
933
  # Selector specifying which fields to include in a partial response.
@@ -874,12 +960,11 @@ module Google
874
960
 
875
961
  # Deletes an exclusion.
876
962
  # @param [String] name
877
- # Required. The resource name of an existing exclusion to delete:
878
- # "projects/[PROJECT_ID]/exclusions/[EXCLUSION_ID]"
879
- # "organizations/[ORGANIZATION_ID]/exclusions/[EXCLUSION_ID]"
880
- # "billingAccounts/[BILLING_ACCOUNT_ID]/exclusions/[EXCLUSION_ID]"
881
- # "folders/[FOLDER_ID]/exclusions/[EXCLUSION_ID]"
882
- # Example: "projects/my-project-id/exclusions/my-exclusion-id".
963
+ # Required. The resource name of an existing exclusion to delete: "projects/[
964
+ # PROJECT_ID]/exclusions/[EXCLUSION_ID]" "organizations/[ORGANIZATION_ID]/
965
+ # exclusions/[EXCLUSION_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]/exclusions/[
966
+ # EXCLUSION_ID]" "folders/[FOLDER_ID]/exclusions/[EXCLUSION_ID]" Example: "
967
+ # projects/my-project-id/exclusions/my-exclusion-id".
883
968
  # @param [String] fields
884
969
  # Selector specifying which fields to include in a partial response.
885
970
  # @param [String] quota_user
@@ -909,12 +994,11 @@ module Google
909
994
 
910
995
  # Gets the description of an exclusion.
911
996
  # @param [String] name
912
- # Required. The resource name of an existing exclusion:
913
- # "projects/[PROJECT_ID]/exclusions/[EXCLUSION_ID]"
914
- # "organizations/[ORGANIZATION_ID]/exclusions/[EXCLUSION_ID]"
915
- # "billingAccounts/[BILLING_ACCOUNT_ID]/exclusions/[EXCLUSION_ID]"
916
- # "folders/[FOLDER_ID]/exclusions/[EXCLUSION_ID]"
917
- # Example: "projects/my-project-id/exclusions/my-exclusion-id".
997
+ # Required. The resource name of an existing exclusion: "projects/[PROJECT_ID]/
998
+ # exclusions/[EXCLUSION_ID]" "organizations/[ORGANIZATION_ID]/exclusions/[
999
+ # EXCLUSION_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]/exclusions/[EXCLUSION_ID]"
1000
+ # "folders/[FOLDER_ID]/exclusions/[EXCLUSION_ID]" Example: "projects/my-project-
1001
+ # id/exclusions/my-exclusion-id".
918
1002
  # @param [String] fields
919
1003
  # Selector specifying which fields to include in a partial response.
920
1004
  # @param [String] quota_user
@@ -944,11 +1028,9 @@ module Google
944
1028
 
945
1029
  # Lists all the exclusions in a parent resource.
946
1030
  # @param [String] parent
947
- # Required. The parent resource whose exclusions are to be listed.
948
- # "projects/[PROJECT_ID]"
949
- # "organizations/[ORGANIZATION_ID]"
950
- # "billingAccounts/[BILLING_ACCOUNT_ID]"
951
- # "folders/[FOLDER_ID]"
1031
+ # Required. The parent resource whose exclusions are to be listed. "projects/[
1032
+ # PROJECT_ID]" "organizations/[ORGANIZATION_ID]" "billingAccounts/[
1033
+ # BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]"
952
1034
  # @param [Fixnum] page_size
953
1035
  # Optional. The maximum number of results to return from this request. Non-
954
1036
  # positive values are ignored. The presence of nextPageToken in the response
@@ -989,12 +1071,11 @@ module Google
989
1071
 
990
1072
  # Changes one or more properties of an existing exclusion.
991
1073
  # @param [String] name
992
- # Required. The resource name of the exclusion to update:
993
- # "projects/[PROJECT_ID]/exclusions/[EXCLUSION_ID]"
994
- # "organizations/[ORGANIZATION_ID]/exclusions/[EXCLUSION_ID]"
995
- # "billingAccounts/[BILLING_ACCOUNT_ID]/exclusions/[EXCLUSION_ID]"
996
- # "folders/[FOLDER_ID]/exclusions/[EXCLUSION_ID]"
997
- # Example: "projects/my-project-id/exclusions/my-exclusion-id".
1074
+ # Required. The resource name of the exclusion to update: "projects/[PROJECT_ID]/
1075
+ # exclusions/[EXCLUSION_ID]" "organizations/[ORGANIZATION_ID]/exclusions/[
1076
+ # EXCLUSION_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]/exclusions/[EXCLUSION_ID]"
1077
+ # "folders/[FOLDER_ID]/exclusions/[EXCLUSION_ID]" Example: "projects/my-project-
1078
+ # id/exclusions/my-exclusion-id".
998
1079
  # @param [Google::Apis::LoggingV2::LogExclusion] log_exclusion_object
999
1080
  # @param [String] update_mask
1000
1081
  # Required. A non-empty list of fields to change in the existing exclusion. New
@@ -1037,12 +1118,10 @@ module Google
1037
1118
  # belonging to that resource can be excluded. You can have up to 10 exclusions
1038
1119
  # in a resource.
1039
1120
  # @param [String] parent
1040
- # Required. The parent resource in which to create the exclusion:
1041
- # "projects/[PROJECT_ID]"
1042
- # "organizations/[ORGANIZATION_ID]"
1043
- # "billingAccounts/[BILLING_ACCOUNT_ID]"
1044
- # "folders/[FOLDER_ID]"
1045
- # Examples: "projects/my-logging-project", "organizations/123456789".
1121
+ # Required. The parent resource in which to create the exclusion: "projects/[
1122
+ # PROJECT_ID]" "organizations/[ORGANIZATION_ID]" "billingAccounts/[
1123
+ # BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]" Examples: "projects/my-logging-
1124
+ # project", "organizations/123456789".
1046
1125
  # @param [Google::Apis::LoggingV2::LogExclusion] log_exclusion_object
1047
1126
  # @param [String] fields
1048
1127
  # Selector specifying which fields to include in a partial response.
@@ -1075,12 +1154,11 @@ module Google
1075
1154
 
1076
1155
  # Deletes an exclusion.
1077
1156
  # @param [String] name
1078
- # Required. The resource name of an existing exclusion to delete:
1079
- # "projects/[PROJECT_ID]/exclusions/[EXCLUSION_ID]"
1080
- # "organizations/[ORGANIZATION_ID]/exclusions/[EXCLUSION_ID]"
1081
- # "billingAccounts/[BILLING_ACCOUNT_ID]/exclusions/[EXCLUSION_ID]"
1082
- # "folders/[FOLDER_ID]/exclusions/[EXCLUSION_ID]"
1083
- # Example: "projects/my-project-id/exclusions/my-exclusion-id".
1157
+ # Required. The resource name of an existing exclusion to delete: "projects/[
1158
+ # PROJECT_ID]/exclusions/[EXCLUSION_ID]" "organizations/[ORGANIZATION_ID]/
1159
+ # exclusions/[EXCLUSION_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]/exclusions/[
1160
+ # EXCLUSION_ID]" "folders/[FOLDER_ID]/exclusions/[EXCLUSION_ID]" Example: "
1161
+ # projects/my-project-id/exclusions/my-exclusion-id".
1084
1162
  # @param [String] fields
1085
1163
  # Selector specifying which fields to include in a partial response.
1086
1164
  # @param [String] quota_user
@@ -1110,12 +1188,11 @@ module Google
1110
1188
 
1111
1189
  # Gets the description of an exclusion.
1112
1190
  # @param [String] name
1113
- # Required. The resource name of an existing exclusion:
1114
- # "projects/[PROJECT_ID]/exclusions/[EXCLUSION_ID]"
1115
- # "organizations/[ORGANIZATION_ID]/exclusions/[EXCLUSION_ID]"
1116
- # "billingAccounts/[BILLING_ACCOUNT_ID]/exclusions/[EXCLUSION_ID]"
1117
- # "folders/[FOLDER_ID]/exclusions/[EXCLUSION_ID]"
1118
- # Example: "projects/my-project-id/exclusions/my-exclusion-id".
1191
+ # Required. The resource name of an existing exclusion: "projects/[PROJECT_ID]/
1192
+ # exclusions/[EXCLUSION_ID]" "organizations/[ORGANIZATION_ID]/exclusions/[
1193
+ # EXCLUSION_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]/exclusions/[EXCLUSION_ID]"
1194
+ # "folders/[FOLDER_ID]/exclusions/[EXCLUSION_ID]" Example: "projects/my-project-
1195
+ # id/exclusions/my-exclusion-id".
1119
1196
  # @param [String] fields
1120
1197
  # Selector specifying which fields to include in a partial response.
1121
1198
  # @param [String] quota_user
@@ -1145,11 +1222,9 @@ module Google
1145
1222
 
1146
1223
  # Lists all the exclusions in a parent resource.
1147
1224
  # @param [String] parent
1148
- # Required. The parent resource whose exclusions are to be listed.
1149
- # "projects/[PROJECT_ID]"
1150
- # "organizations/[ORGANIZATION_ID]"
1151
- # "billingAccounts/[BILLING_ACCOUNT_ID]"
1152
- # "folders/[FOLDER_ID]"
1225
+ # Required. The parent resource whose exclusions are to be listed. "projects/[
1226
+ # PROJECT_ID]" "organizations/[ORGANIZATION_ID]" "billingAccounts/[
1227
+ # BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]"
1153
1228
  # @param [Fixnum] page_size
1154
1229
  # Optional. The maximum number of results to return from this request. Non-
1155
1230
  # positive values are ignored. The presence of nextPageToken in the response
@@ -1190,12 +1265,11 @@ module Google
1190
1265
 
1191
1266
  # Changes one or more properties of an existing exclusion.
1192
1267
  # @param [String] name
1193
- # Required. The resource name of the exclusion to update:
1194
- # "projects/[PROJECT_ID]/exclusions/[EXCLUSION_ID]"
1195
- # "organizations/[ORGANIZATION_ID]/exclusions/[EXCLUSION_ID]"
1196
- # "billingAccounts/[BILLING_ACCOUNT_ID]/exclusions/[EXCLUSION_ID]"
1197
- # "folders/[FOLDER_ID]/exclusions/[EXCLUSION_ID]"
1198
- # Example: "projects/my-project-id/exclusions/my-exclusion-id".
1268
+ # Required. The resource name of the exclusion to update: "projects/[PROJECT_ID]/
1269
+ # exclusions/[EXCLUSION_ID]" "organizations/[ORGANIZATION_ID]/exclusions/[
1270
+ # EXCLUSION_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]/exclusions/[EXCLUSION_ID]"
1271
+ # "folders/[FOLDER_ID]/exclusions/[EXCLUSION_ID]" Example: "projects/my-project-
1272
+ # id/exclusions/my-exclusion-id".
1199
1273
  # @param [Google::Apis::LoggingV2::LogExclusion] log_exclusion_object
1200
1274
  # @param [String] update_mask
1201
1275
  # Required. A non-empty list of fields to change in the existing exclusion. New
@@ -1234,15 +1308,92 @@ module Google
1234
1308
  execute_or_queue_command(command, &block)
1235
1309
  end
1236
1310
 
1311
+ # Creates a bucket that can be used to store log entries. Once a bucket has been
1312
+ # created, the region cannot be changed.
1313
+ # @param [String] parent
1314
+ # Required. The resource in which to create the bucket: "projects/[PROJECT_ID]/
1315
+ # locations/[LOCATION_ID]" Example: "projects/my-logging-project/locations/
1316
+ # global"
1317
+ # @param [Google::Apis::LoggingV2::LogBucket] log_bucket_object
1318
+ # @param [String] bucket_id
1319
+ # Required. A client-assigned identifier such as "my-bucket". Identifiers are
1320
+ # limited to 100 characters and can include only letters, digits, underscores,
1321
+ # hyphens, and periods.
1322
+ # @param [String] fields
1323
+ # Selector specifying which fields to include in a partial response.
1324
+ # @param [String] quota_user
1325
+ # Available to use for quota purposes for server-side applications. Can be any
1326
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1327
+ # @param [Google::Apis::RequestOptions] options
1328
+ # Request-specific options
1329
+ #
1330
+ # @yield [result, err] Result & error if block supplied
1331
+ # @yieldparam result [Google::Apis::LoggingV2::LogBucket] parsed result object
1332
+ # @yieldparam err [StandardError] error object if request failed
1333
+ #
1334
+ # @return [Google::Apis::LoggingV2::LogBucket]
1335
+ #
1336
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1337
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1338
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1339
+ def create_folder_location_bucket(parent, log_bucket_object = nil, bucket_id: nil, fields: nil, quota_user: nil, options: nil, &block)
1340
+ command = make_simple_command(:post, 'v2/{+parent}/buckets', options)
1341
+ command.request_representation = Google::Apis::LoggingV2::LogBucket::Representation
1342
+ command.request_object = log_bucket_object
1343
+ command.response_representation = Google::Apis::LoggingV2::LogBucket::Representation
1344
+ command.response_class = Google::Apis::LoggingV2::LogBucket
1345
+ command.params['parent'] = parent unless parent.nil?
1346
+ command.query['bucketId'] = bucket_id unless bucket_id.nil?
1347
+ command.query['fields'] = fields unless fields.nil?
1348
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1349
+ execute_or_queue_command(command, &block)
1350
+ end
1351
+
1352
+ # Deletes a bucket. Moves the bucket to the DELETE_REQUESTED state. After 7 days,
1353
+ # the bucket will be purged and all logs in the bucket will be permanently
1354
+ # deleted.
1355
+ # @param [String] name
1356
+ # Required. The full resource name of the bucket to delete. "projects/[
1357
+ # PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "organizations/[
1358
+ # ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "billingAccounts/
1359
+ # [BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "folders/[
1360
+ # FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" Example: "projects/my-
1361
+ # project-id/locations/my-location/buckets/my-bucket-id".
1362
+ # @param [String] fields
1363
+ # Selector specifying which fields to include in a partial response.
1364
+ # @param [String] quota_user
1365
+ # Available to use for quota purposes for server-side applications. Can be any
1366
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1367
+ # @param [Google::Apis::RequestOptions] options
1368
+ # Request-specific options
1369
+ #
1370
+ # @yield [result, err] Result & error if block supplied
1371
+ # @yieldparam result [Google::Apis::LoggingV2::Empty] parsed result object
1372
+ # @yieldparam err [StandardError] error object if request failed
1373
+ #
1374
+ # @return [Google::Apis::LoggingV2::Empty]
1375
+ #
1376
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1377
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1378
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1379
+ def delete_folder_location_bucket(name, fields: nil, quota_user: nil, options: nil, &block)
1380
+ command = make_simple_command(:delete, 'v2/{+name}', options)
1381
+ command.response_representation = Google::Apis::LoggingV2::Empty::Representation
1382
+ command.response_class = Google::Apis::LoggingV2::Empty
1383
+ command.params['name'] = name unless name.nil?
1384
+ command.query['fields'] = fields unless fields.nil?
1385
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1386
+ execute_or_queue_command(command, &block)
1387
+ end
1388
+
1237
1389
  # Gets a bucket (Beta).
1238
1390
  # @param [String] name
1239
- # Required. The resource name of the bucket:
1240
- # "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
1241
- # "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
1242
- # "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[
1243
- # BUCKET_ID]"
1244
- # "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
1245
- # Example: "projects/my-project-id/locations/my-location/buckets/my-bucket-id".
1391
+ # Required. The resource name of the bucket: "projects/[PROJECT_ID]/locations/[
1392
+ # LOCATION_ID]/buckets/[BUCKET_ID]" "organizations/[ORGANIZATION_ID]/locations/[
1393
+ # LOCATION_ID]/buckets/[BUCKET_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]/
1394
+ # locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "folders/[FOLDER_ID]/locations/[
1395
+ # LOCATION_ID]/buckets/[BUCKET_ID]" Example: "projects/my-project-id/locations/
1396
+ # my-location/buckets/my-bucket-id".
1246
1397
  # @param [String] fields
1247
1398
  # Selector specifying which fields to include in a partial response.
1248
1399
  # @param [String] quota_user
@@ -1272,13 +1423,12 @@ module Google
1272
1423
 
1273
1424
  # Lists buckets (Beta).
1274
1425
  # @param [String] parent
1275
- # Required. The parent resource whose buckets are to be listed:
1276
- # "projects/[PROJECT_ID]/locations/[LOCATION_ID]"
1277
- # "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]"
1278
- # "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]"
1279
- # "folders/[FOLDER_ID]/locations/[LOCATION_ID]"
1280
- # Note: The locations portion of the resource must be specified, but supplying
1281
- # the character - in place of LOCATION_ID will return all buckets.
1426
+ # Required. The parent resource whose buckets are to be listed: "projects/[
1427
+ # PROJECT_ID]/locations/[LOCATION_ID]" "organizations/[ORGANIZATION_ID]/
1428
+ # locations/[LOCATION_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[
1429
+ # LOCATION_ID]" "folders/[FOLDER_ID]/locations/[LOCATION_ID]" Note: The
1430
+ # locations portion of the resource must be specified, but supplying the
1431
+ # character - in place of LOCATION_ID will return all buckets.
1282
1432
  # @param [Fixnum] page_size
1283
1433
  # Optional. The maximum number of results to return from this request. Non-
1284
1434
  # positive values are ignored. The presence of nextPageToken in the response
@@ -1324,15 +1474,13 @@ module Google
1324
1474
  # FAILED_PRECONDITION will be returned.A buckets region may not be modified
1325
1475
  # after it is created. This method is in Beta.
1326
1476
  # @param [String] name
1327
- # Required. The full resource name of the bucket to update.
1328
- # "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
1329
- # "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
1330
- # "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[
1331
- # BUCKET_ID]"
1332
- # "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
1333
- # Example: "projects/my-project-id/locations/my-location/buckets/my-bucket-id".
1334
- # Also requires permission "resourcemanager.projects.updateLiens" to set the
1335
- # locked property
1477
+ # Required. The full resource name of the bucket to update. "projects/[
1478
+ # PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "organizations/[
1479
+ # ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "billingAccounts/
1480
+ # [BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "folders/[
1481
+ # FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" Example: "projects/my-
1482
+ # project-id/locations/my-location/buckets/my-bucket-id". Also requires
1483
+ # permission "resourcemanager.projects.updateLiens" to set the locked property
1336
1484
  # @param [Google::Apis::LoggingV2::LogBucket] log_bucket_object
1337
1485
  # @param [String] update_mask
1338
1486
  # Required. Field mask that specifies the fields in bucket that need an update.
@@ -1370,19 +1518,56 @@ module Google
1370
1518
  execute_or_queue_command(command, &block)
1371
1519
  end
1372
1520
 
1521
+ # Undeletes a bucket. A bucket that has been deleted may be undeleted within the
1522
+ # grace period of 7 days.
1523
+ # @param [String] name
1524
+ # Required. The full resource name of the bucket to undelete. "projects/[
1525
+ # PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "organizations/[
1526
+ # ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "billingAccounts/
1527
+ # [BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "folders/[
1528
+ # FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" Example: "projects/my-
1529
+ # project-id/locations/my-location/buckets/my-bucket-id".
1530
+ # @param [Google::Apis::LoggingV2::UndeleteBucketRequest] undelete_bucket_request_object
1531
+ # @param [String] fields
1532
+ # Selector specifying which fields to include in a partial response.
1533
+ # @param [String] quota_user
1534
+ # Available to use for quota purposes for server-side applications. Can be any
1535
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1536
+ # @param [Google::Apis::RequestOptions] options
1537
+ # Request-specific options
1538
+ #
1539
+ # @yield [result, err] Result & error if block supplied
1540
+ # @yieldparam result [Google::Apis::LoggingV2::Empty] parsed result object
1541
+ # @yieldparam err [StandardError] error object if request failed
1542
+ #
1543
+ # @return [Google::Apis::LoggingV2::Empty]
1544
+ #
1545
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1546
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1547
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1548
+ def undelete_folder_location_bucket(name, undelete_bucket_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1549
+ command = make_simple_command(:post, 'v2/{+name}:undelete', options)
1550
+ command.request_representation = Google::Apis::LoggingV2::UndeleteBucketRequest::Representation
1551
+ command.request_object = undelete_bucket_request_object
1552
+ command.response_representation = Google::Apis::LoggingV2::Empty::Representation
1553
+ command.response_class = Google::Apis::LoggingV2::Empty
1554
+ command.params['name'] = name unless name.nil?
1555
+ command.query['fields'] = fields unless fields.nil?
1556
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1557
+ execute_or_queue_command(command, &block)
1558
+ end
1559
+
1373
1560
  # Deletes all the log entries in a log. The log reappears if it receives new
1374
1561
  # entries. Log entries written shortly before the delete operation might not be
1375
1562
  # deleted. Entries received after the delete operation with a timestamp before
1376
1563
  # the operation will be deleted.
1377
1564
  # @param [String] log_name
1378
- # Required. The resource name of the log to delete:
1379
- # "projects/[PROJECT_ID]/logs/[LOG_ID]"
1380
- # "organizations/[ORGANIZATION_ID]/logs/[LOG_ID]"
1381
- # "billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]"
1382
- # "folders/[FOLDER_ID]/logs/[LOG_ID]"
1383
- # [LOG_ID] must be URL-encoded. For example, "projects/my-project-id/logs/syslog"
1384
- # , "organizations/1234567890/logs/cloudresourcemanager.googleapis.com%
1385
- # 2Factivity". For more information about log names, see LogEntry.
1565
+ # Required. The resource name of the log to delete: "projects/[PROJECT_ID]/logs/[
1566
+ # LOG_ID]" "organizations/[ORGANIZATION_ID]/logs/[LOG_ID]" "billingAccounts/[
1567
+ # BILLING_ACCOUNT_ID]/logs/[LOG_ID]" "folders/[FOLDER_ID]/logs/[LOG_ID]" [LOG_ID]
1568
+ # must be URL-encoded. For example, "projects/my-project-id/logs/syslog", "
1569
+ # organizations/1234567890/logs/cloudresourcemanager.googleapis.com%2Factivity".
1570
+ # For more information about log names, see LogEntry.
1386
1571
  # @param [String] fields
1387
1572
  # Selector specifying which fields to include in a partial response.
1388
1573
  # @param [String] quota_user
@@ -1413,11 +1598,9 @@ module Google
1413
1598
  # Lists the logs in projects, organizations, folders, or billing accounts. Only
1414
1599
  # logs that have entries are listed.
1415
1600
  # @param [String] parent
1416
- # Required. The resource name that owns the logs:
1417
- # "projects/[PROJECT_ID]"
1418
- # "organizations/[ORGANIZATION_ID]"
1419
- # "billingAccounts/[BILLING_ACCOUNT_ID]"
1420
- # "folders/[FOLDER_ID]"
1601
+ # Required. The resource name that owns the logs: "projects/[PROJECT_ID]" "
1602
+ # organizations/[ORGANIZATION_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]" "
1603
+ # folders/[FOLDER_ID]"
1421
1604
  # @param [Fixnum] page_size
1422
1605
  # Optional. The maximum number of results to return from this request. Non-
1423
1606
  # positive values are ignored. The presence of nextPageToken in the response
@@ -1461,12 +1644,10 @@ module Google
1461
1644
  # writer_identity is not permitted to write to the destination. A sink can
1462
1645
  # export log entries only from the resource owning the sink.
1463
1646
  # @param [String] parent
1464
- # Required. The resource in which to create the sink:
1465
- # "projects/[PROJECT_ID]"
1466
- # "organizations/[ORGANIZATION_ID]"
1467
- # "billingAccounts/[BILLING_ACCOUNT_ID]"
1468
- # "folders/[FOLDER_ID]"
1469
- # Examples: "projects/my-logging-project", "organizations/123456789".
1647
+ # Required. The resource in which to create the sink: "projects/[PROJECT_ID]" "
1648
+ # organizations/[ORGANIZATION_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]" "
1649
+ # folders/[FOLDER_ID]" Examples: "projects/my-logging-project", "organizations/
1650
+ # 123456789".
1470
1651
  # @param [Google::Apis::LoggingV2::LogSink] log_sink_object
1471
1652
  # @param [Boolean] unique_writer_identity
1472
1653
  # Optional. Determines the kind of IAM identity returned as writer_identity in
@@ -1512,11 +1693,9 @@ module Google
1512
1693
  # account is also deleted.
1513
1694
  # @param [String] sink_name
1514
1695
  # Required. The full resource name of the sink to delete, including the parent
1515
- # resource and the sink identifier:
1516
- # "projects/[PROJECT_ID]/sinks/[SINK_ID]"
1517
- # "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]"
1518
- # "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]"
1519
- # "folders/[FOLDER_ID]/sinks/[SINK_ID]"
1696
+ # resource and the sink identifier: "projects/[PROJECT_ID]/sinks/[SINK_ID]" "
1697
+ # organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]" "billingAccounts/[
1698
+ # BILLING_ACCOUNT_ID]/sinks/[SINK_ID]" "folders/[FOLDER_ID]/sinks/[SINK_ID]"
1520
1699
  # Example: "projects/my-project-id/sinks/my-sink-id".
1521
1700
  # @param [String] fields
1522
1701
  # Selector specifying which fields to include in a partial response.
@@ -1547,11 +1726,9 @@ module Google
1547
1726
 
1548
1727
  # Gets a sink.
1549
1728
  # @param [String] sink_name
1550
- # Required. The resource name of the sink:
1551
- # "projects/[PROJECT_ID]/sinks/[SINK_ID]"
1552
- # "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]"
1553
- # "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]"
1554
- # "folders/[FOLDER_ID]/sinks/[SINK_ID]"
1729
+ # Required. The resource name of the sink: "projects/[PROJECT_ID]/sinks/[SINK_ID]
1730
+ # " "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]" "billingAccounts/[
1731
+ # BILLING_ACCOUNT_ID]/sinks/[SINK_ID]" "folders/[FOLDER_ID]/sinks/[SINK_ID]"
1555
1732
  # Example: "projects/my-project-id/sinks/my-sink-id".
1556
1733
  # @param [String] fields
1557
1734
  # Selector specifying which fields to include in a partial response.
@@ -1582,11 +1759,9 @@ module Google
1582
1759
 
1583
1760
  # Lists sinks.
1584
1761
  # @param [String] parent
1585
- # Required. The parent resource whose sinks are to be listed:
1586
- # "projects/[PROJECT_ID]"
1587
- # "organizations/[ORGANIZATION_ID]"
1588
- # "billingAccounts/[BILLING_ACCOUNT_ID]"
1589
- # "folders/[FOLDER_ID]"
1762
+ # Required. The parent resource whose sinks are to be listed: "projects/[
1763
+ # PROJECT_ID]" "organizations/[ORGANIZATION_ID]" "billingAccounts/[
1764
+ # BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]"
1590
1765
  # @param [Fixnum] page_size
1591
1766
  # Optional. The maximum number of results to return from this request. Non-
1592
1767
  # positive values are ignored. The presence of nextPageToken in the response
@@ -1630,23 +1805,20 @@ module Google
1630
1805
  # also have a new writer_identity; see the unique_writer_identity field.
1631
1806
  # @param [String] sink_name
1632
1807
  # Required. The full resource name of the sink to update, including the parent
1633
- # resource and the sink identifier:
1634
- # "projects/[PROJECT_ID]/sinks/[SINK_ID]"
1635
- # "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]"
1636
- # "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]"
1637
- # "folders/[FOLDER_ID]/sinks/[SINK_ID]"
1808
+ # resource and the sink identifier: "projects/[PROJECT_ID]/sinks/[SINK_ID]" "
1809
+ # organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]" "billingAccounts/[
1810
+ # BILLING_ACCOUNT_ID]/sinks/[SINK_ID]" "folders/[FOLDER_ID]/sinks/[SINK_ID]"
1638
1811
  # Example: "projects/my-project-id/sinks/my-sink-id".
1639
1812
  # @param [Google::Apis::LoggingV2::LogSink] log_sink_object
1640
1813
  # @param [Boolean] unique_writer_identity
1641
1814
  # Optional. See sinks.create for a description of this field. When updating a
1642
1815
  # sink, the effect of this field on the value of writer_identity in the updated
1643
- # sink depends on both the old and new values of this field:
1644
- # If the old and new values of this field are both false or both true, then
1645
- # there is no change to the sink's writer_identity.
1646
- # If the old value is false and the new value is true, then writer_identity is
1647
- # changed to a unique service account.
1648
- # It is an error if the old value is true and the new value is set to false or
1649
- # defaulted to false.
1816
+ # sink depends on both the old and new values of this field: If the old and new
1817
+ # values of this field are both false or both true, then there is no change to
1818
+ # the sink's writer_identity. If the old value is false and the new value is
1819
+ # true, then writer_identity is changed to a unique service account. It is an
1820
+ # error if the old value is true and the new value is set to false or defaulted
1821
+ # to false.
1650
1822
  # @param [String] update_mask
1651
1823
  # Optional. Field mask that specifies the fields in sink that need an update. A
1652
1824
  # sink field will be overwritten if, and only if, it is in the update mask. name
@@ -1692,23 +1864,20 @@ module Google
1692
1864
  # also have a new writer_identity; see the unique_writer_identity field.
1693
1865
  # @param [String] sink_name
1694
1866
  # Required. The full resource name of the sink to update, including the parent
1695
- # resource and the sink identifier:
1696
- # "projects/[PROJECT_ID]/sinks/[SINK_ID]"
1697
- # "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]"
1698
- # "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]"
1699
- # "folders/[FOLDER_ID]/sinks/[SINK_ID]"
1867
+ # resource and the sink identifier: "projects/[PROJECT_ID]/sinks/[SINK_ID]" "
1868
+ # organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]" "billingAccounts/[
1869
+ # BILLING_ACCOUNT_ID]/sinks/[SINK_ID]" "folders/[FOLDER_ID]/sinks/[SINK_ID]"
1700
1870
  # Example: "projects/my-project-id/sinks/my-sink-id".
1701
1871
  # @param [Google::Apis::LoggingV2::LogSink] log_sink_object
1702
1872
  # @param [Boolean] unique_writer_identity
1703
1873
  # Optional. See sinks.create for a description of this field. When updating a
1704
1874
  # sink, the effect of this field on the value of writer_identity in the updated
1705
- # sink depends on both the old and new values of this field:
1706
- # If the old and new values of this field are both false or both true, then
1707
- # there is no change to the sink's writer_identity.
1708
- # If the old value is false and the new value is true, then writer_identity is
1709
- # changed to a unique service account.
1710
- # It is an error if the old value is true and the new value is set to false or
1711
- # defaulted to false.
1875
+ # sink depends on both the old and new values of this field: If the old and new
1876
+ # values of this field are both false or both true, then there is no change to
1877
+ # the sink's writer_identity. If the old value is false and the new value is
1878
+ # true, then writer_identity is changed to a unique service account. It is an
1879
+ # error if the old value is true and the new value is set to false or defaulted
1880
+ # to false.
1712
1881
  # @param [String] update_mask
1713
1882
  # Optional. Field mask that specifies the fields in sink that need an update. A
1714
1883
  # sink field will be overwritten if, and only if, it is in the update mask. name
@@ -1749,15 +1918,92 @@ module Google
1749
1918
  execute_or_queue_command(command, &block)
1750
1919
  end
1751
1920
 
1921
+ # Creates a bucket that can be used to store log entries. Once a bucket has been
1922
+ # created, the region cannot be changed.
1923
+ # @param [String] parent
1924
+ # Required. The resource in which to create the bucket: "projects/[PROJECT_ID]/
1925
+ # locations/[LOCATION_ID]" Example: "projects/my-logging-project/locations/
1926
+ # global"
1927
+ # @param [Google::Apis::LoggingV2::LogBucket] log_bucket_object
1928
+ # @param [String] bucket_id
1929
+ # Required. A client-assigned identifier such as "my-bucket". Identifiers are
1930
+ # limited to 100 characters and can include only letters, digits, underscores,
1931
+ # hyphens, and periods.
1932
+ # @param [String] fields
1933
+ # Selector specifying which fields to include in a partial response.
1934
+ # @param [String] quota_user
1935
+ # Available to use for quota purposes for server-side applications. Can be any
1936
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1937
+ # @param [Google::Apis::RequestOptions] options
1938
+ # Request-specific options
1939
+ #
1940
+ # @yield [result, err] Result & error if block supplied
1941
+ # @yieldparam result [Google::Apis::LoggingV2::LogBucket] parsed result object
1942
+ # @yieldparam err [StandardError] error object if request failed
1943
+ #
1944
+ # @return [Google::Apis::LoggingV2::LogBucket]
1945
+ #
1946
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1947
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1948
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1949
+ def create_location_bucket(parent, log_bucket_object = nil, bucket_id: nil, fields: nil, quota_user: nil, options: nil, &block)
1950
+ command = make_simple_command(:post, 'v2/{+parent}/buckets', options)
1951
+ command.request_representation = Google::Apis::LoggingV2::LogBucket::Representation
1952
+ command.request_object = log_bucket_object
1953
+ command.response_representation = Google::Apis::LoggingV2::LogBucket::Representation
1954
+ command.response_class = Google::Apis::LoggingV2::LogBucket
1955
+ command.params['parent'] = parent unless parent.nil?
1956
+ command.query['bucketId'] = bucket_id unless bucket_id.nil?
1957
+ command.query['fields'] = fields unless fields.nil?
1958
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1959
+ execute_or_queue_command(command, &block)
1960
+ end
1961
+
1962
+ # Deletes a bucket. Moves the bucket to the DELETE_REQUESTED state. After 7 days,
1963
+ # the bucket will be purged and all logs in the bucket will be permanently
1964
+ # deleted.
1965
+ # @param [String] name
1966
+ # Required. The full resource name of the bucket to delete. "projects/[
1967
+ # PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "organizations/[
1968
+ # ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "billingAccounts/
1969
+ # [BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "folders/[
1970
+ # FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" Example: "projects/my-
1971
+ # project-id/locations/my-location/buckets/my-bucket-id".
1972
+ # @param [String] fields
1973
+ # Selector specifying which fields to include in a partial response.
1974
+ # @param [String] quota_user
1975
+ # Available to use for quota purposes for server-side applications. Can be any
1976
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1977
+ # @param [Google::Apis::RequestOptions] options
1978
+ # Request-specific options
1979
+ #
1980
+ # @yield [result, err] Result & error if block supplied
1981
+ # @yieldparam result [Google::Apis::LoggingV2::Empty] parsed result object
1982
+ # @yieldparam err [StandardError] error object if request failed
1983
+ #
1984
+ # @return [Google::Apis::LoggingV2::Empty]
1985
+ #
1986
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1987
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1988
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1989
+ def delete_location_bucket(name, fields: nil, quota_user: nil, options: nil, &block)
1990
+ command = make_simple_command(:delete, 'v2/{+name}', options)
1991
+ command.response_representation = Google::Apis::LoggingV2::Empty::Representation
1992
+ command.response_class = Google::Apis::LoggingV2::Empty
1993
+ command.params['name'] = name unless name.nil?
1994
+ command.query['fields'] = fields unless fields.nil?
1995
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1996
+ execute_or_queue_command(command, &block)
1997
+ end
1998
+
1752
1999
  # Gets a bucket (Beta).
1753
2000
  # @param [String] name
1754
- # Required. The resource name of the bucket:
1755
- # "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
1756
- # "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
1757
- # "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[
1758
- # BUCKET_ID]"
1759
- # "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
1760
- # Example: "projects/my-project-id/locations/my-location/buckets/my-bucket-id".
2001
+ # Required. The resource name of the bucket: "projects/[PROJECT_ID]/locations/[
2002
+ # LOCATION_ID]/buckets/[BUCKET_ID]" "organizations/[ORGANIZATION_ID]/locations/[
2003
+ # LOCATION_ID]/buckets/[BUCKET_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]/
2004
+ # locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "folders/[FOLDER_ID]/locations/[
2005
+ # LOCATION_ID]/buckets/[BUCKET_ID]" Example: "projects/my-project-id/locations/
2006
+ # my-location/buckets/my-bucket-id".
1761
2007
  # @param [String] fields
1762
2008
  # Selector specifying which fields to include in a partial response.
1763
2009
  # @param [String] quota_user
@@ -1787,13 +2033,12 @@ module Google
1787
2033
 
1788
2034
  # Lists buckets (Beta).
1789
2035
  # @param [String] parent
1790
- # Required. The parent resource whose buckets are to be listed:
1791
- # "projects/[PROJECT_ID]/locations/[LOCATION_ID]"
1792
- # "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]"
1793
- # "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]"
1794
- # "folders/[FOLDER_ID]/locations/[LOCATION_ID]"
1795
- # Note: The locations portion of the resource must be specified, but supplying
1796
- # the character - in place of LOCATION_ID will return all buckets.
2036
+ # Required. The parent resource whose buckets are to be listed: "projects/[
2037
+ # PROJECT_ID]/locations/[LOCATION_ID]" "organizations/[ORGANIZATION_ID]/
2038
+ # locations/[LOCATION_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[
2039
+ # LOCATION_ID]" "folders/[FOLDER_ID]/locations/[LOCATION_ID]" Note: The
2040
+ # locations portion of the resource must be specified, but supplying the
2041
+ # character - in place of LOCATION_ID will return all buckets.
1797
2042
  # @param [Fixnum] page_size
1798
2043
  # Optional. The maximum number of results to return from this request. Non-
1799
2044
  # positive values are ignored. The presence of nextPageToken in the response
@@ -1839,15 +2084,13 @@ module Google
1839
2084
  # FAILED_PRECONDITION will be returned.A buckets region may not be modified
1840
2085
  # after it is created. This method is in Beta.
1841
2086
  # @param [String] name
1842
- # Required. The full resource name of the bucket to update.
1843
- # "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
1844
- # "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
1845
- # "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[
1846
- # BUCKET_ID]"
1847
- # "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
1848
- # Example: "projects/my-project-id/locations/my-location/buckets/my-bucket-id".
1849
- # Also requires permission "resourcemanager.projects.updateLiens" to set the
1850
- # locked property
2087
+ # Required. The full resource name of the bucket to update. "projects/[
2088
+ # PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "organizations/[
2089
+ # ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "billingAccounts/
2090
+ # [BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "folders/[
2091
+ # FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" Example: "projects/my-
2092
+ # project-id/locations/my-location/buckets/my-bucket-id". Also requires
2093
+ # permission "resourcemanager.projects.updateLiens" to set the locked property
1851
2094
  # @param [Google::Apis::LoggingV2::LogBucket] log_bucket_object
1852
2095
  # @param [String] update_mask
1853
2096
  # Required. Field mask that specifies the fields in bucket that need an update.
@@ -1885,19 +2128,56 @@ module Google
1885
2128
  execute_or_queue_command(command, &block)
1886
2129
  end
1887
2130
 
2131
+ # Undeletes a bucket. A bucket that has been deleted may be undeleted within the
2132
+ # grace period of 7 days.
2133
+ # @param [String] name
2134
+ # Required. The full resource name of the bucket to undelete. "projects/[
2135
+ # PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "organizations/[
2136
+ # ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "billingAccounts/
2137
+ # [BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "folders/[
2138
+ # FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" Example: "projects/my-
2139
+ # project-id/locations/my-location/buckets/my-bucket-id".
2140
+ # @param [Google::Apis::LoggingV2::UndeleteBucketRequest] undelete_bucket_request_object
2141
+ # @param [String] fields
2142
+ # Selector specifying which fields to include in a partial response.
2143
+ # @param [String] quota_user
2144
+ # Available to use for quota purposes for server-side applications. Can be any
2145
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2146
+ # @param [Google::Apis::RequestOptions] options
2147
+ # Request-specific options
2148
+ #
2149
+ # @yield [result, err] Result & error if block supplied
2150
+ # @yieldparam result [Google::Apis::LoggingV2::Empty] parsed result object
2151
+ # @yieldparam err [StandardError] error object if request failed
2152
+ #
2153
+ # @return [Google::Apis::LoggingV2::Empty]
2154
+ #
2155
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2156
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2157
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2158
+ def undelete_location_bucket(name, undelete_bucket_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2159
+ command = make_simple_command(:post, 'v2/{+name}:undelete', options)
2160
+ command.request_representation = Google::Apis::LoggingV2::UndeleteBucketRequest::Representation
2161
+ command.request_object = undelete_bucket_request_object
2162
+ command.response_representation = Google::Apis::LoggingV2::Empty::Representation
2163
+ command.response_class = Google::Apis::LoggingV2::Empty
2164
+ command.params['name'] = name unless name.nil?
2165
+ command.query['fields'] = fields unless fields.nil?
2166
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2167
+ execute_or_queue_command(command, &block)
2168
+ end
2169
+
1888
2170
  # Deletes all the log entries in a log. The log reappears if it receives new
1889
2171
  # entries. Log entries written shortly before the delete operation might not be
1890
2172
  # deleted. Entries received after the delete operation with a timestamp before
1891
2173
  # the operation will be deleted.
1892
2174
  # @param [String] log_name
1893
- # Required. The resource name of the log to delete:
1894
- # "projects/[PROJECT_ID]/logs/[LOG_ID]"
1895
- # "organizations/[ORGANIZATION_ID]/logs/[LOG_ID]"
1896
- # "billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]"
1897
- # "folders/[FOLDER_ID]/logs/[LOG_ID]"
1898
- # [LOG_ID] must be URL-encoded. For example, "projects/my-project-id/logs/syslog"
1899
- # , "organizations/1234567890/logs/cloudresourcemanager.googleapis.com%
1900
- # 2Factivity". For more information about log names, see LogEntry.
2175
+ # Required. The resource name of the log to delete: "projects/[PROJECT_ID]/logs/[
2176
+ # LOG_ID]" "organizations/[ORGANIZATION_ID]/logs/[LOG_ID]" "billingAccounts/[
2177
+ # BILLING_ACCOUNT_ID]/logs/[LOG_ID]" "folders/[FOLDER_ID]/logs/[LOG_ID]" [LOG_ID]
2178
+ # must be URL-encoded. For example, "projects/my-project-id/logs/syslog", "
2179
+ # organizations/1234567890/logs/cloudresourcemanager.googleapis.com%2Factivity".
2180
+ # For more information about log names, see LogEntry.
1901
2181
  # @param [String] fields
1902
2182
  # Selector specifying which fields to include in a partial response.
1903
2183
  # @param [String] quota_user
@@ -1928,11 +2208,9 @@ module Google
1928
2208
  # Lists the logs in projects, organizations, folders, or billing accounts. Only
1929
2209
  # logs that have entries are listed.
1930
2210
  # @param [String] parent
1931
- # Required. The resource name that owns the logs:
1932
- # "projects/[PROJECT_ID]"
1933
- # "organizations/[ORGANIZATION_ID]"
1934
- # "billingAccounts/[BILLING_ACCOUNT_ID]"
1935
- # "folders/[FOLDER_ID]"
2211
+ # Required. The resource name that owns the logs: "projects/[PROJECT_ID]" "
2212
+ # organizations/[ORGANIZATION_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]" "
2213
+ # folders/[FOLDER_ID]"
1936
2214
  # @param [Fixnum] page_size
1937
2215
  # Optional. The maximum number of results to return from this request. Non-
1938
2216
  # positive values are ignored. The presence of nextPageToken in the response
@@ -2015,14 +2293,12 @@ module Google
2015
2293
  # Enabling CMEK for Logs Router (https://cloud.google.com/logging/docs/routing/
2016
2294
  # managed-encryption) for more information.
2017
2295
  # @param [String] name
2018
- # Required. The resource for which to retrieve CMEK settings.
2019
- # "projects/[PROJECT_ID]/cmekSettings"
2020
- # "organizations/[ORGANIZATION_ID]/cmekSettings"
2021
- # "billingAccounts/[BILLING_ACCOUNT_ID]/cmekSettings"
2022
- # "folders/[FOLDER_ID]/cmekSettings"
2023
- # Example: "organizations/12345/cmekSettings".Note: CMEK for the Logs Router can
2024
- # currently only be configured for GCP organizations. Once configured, it
2025
- # applies to all projects and folders in the GCP organization.
2296
+ # Required. The resource for which to retrieve CMEK settings. "projects/[
2297
+ # PROJECT_ID]/cmekSettings" "organizations/[ORGANIZATION_ID]/cmekSettings" "
2298
+ # billingAccounts/[BILLING_ACCOUNT_ID]/cmekSettings" "folders/[FOLDER_ID]/
2299
+ # cmekSettings" Example: "organizations/12345/cmekSettings".Note: CMEK for the
2300
+ # Logs Router can currently only be configured for GCP organizations. Once
2301
+ # configured, it applies to all projects and folders in the GCP organization.
2026
2302
  # @param [String] fields
2027
2303
  # Selector specifying which fields to include in a partial response.
2028
2304
  # @param [String] quota_user
@@ -2059,14 +2335,12 @@ module Google
2059
2335
  # is disabled.See Enabling CMEK for Logs Router (https://cloud.google.com/
2060
2336
  # logging/docs/routing/managed-encryption) for more information.
2061
2337
  # @param [String] name
2062
- # Required. The resource name for the CMEK settings to update.
2063
- # "projects/[PROJECT_ID]/cmekSettings"
2064
- # "organizations/[ORGANIZATION_ID]/cmekSettings"
2065
- # "billingAccounts/[BILLING_ACCOUNT_ID]/cmekSettings"
2066
- # "folders/[FOLDER_ID]/cmekSettings"
2067
- # Example: "organizations/12345/cmekSettings".Note: CMEK for the Logs Router can
2068
- # currently only be configured for GCP organizations. Once configured, it
2069
- # applies to all projects and folders in the GCP organization.
2338
+ # Required. The resource name for the CMEK settings to update. "projects/[
2339
+ # PROJECT_ID]/cmekSettings" "organizations/[ORGANIZATION_ID]/cmekSettings" "
2340
+ # billingAccounts/[BILLING_ACCOUNT_ID]/cmekSettings" "folders/[FOLDER_ID]/
2341
+ # cmekSettings" Example: "organizations/12345/cmekSettings".Note: CMEK for the
2342
+ # Logs Router can currently only be configured for GCP organizations. Once
2343
+ # configured, it applies to all projects and folders in the GCP organization.
2070
2344
  # @param [Google::Apis::LoggingV2::CmekSettings] cmek_settings_object
2071
2345
  # @param [String] update_mask
2072
2346
  # Optional. Field mask identifying which fields from cmek_settings should be
@@ -2107,12 +2381,10 @@ module Google
2107
2381
  # belonging to that resource can be excluded. You can have up to 10 exclusions
2108
2382
  # in a resource.
2109
2383
  # @param [String] parent
2110
- # Required. The parent resource in which to create the exclusion:
2111
- # "projects/[PROJECT_ID]"
2112
- # "organizations/[ORGANIZATION_ID]"
2113
- # "billingAccounts/[BILLING_ACCOUNT_ID]"
2114
- # "folders/[FOLDER_ID]"
2115
- # Examples: "projects/my-logging-project", "organizations/123456789".
2384
+ # Required. The parent resource in which to create the exclusion: "projects/[
2385
+ # PROJECT_ID]" "organizations/[ORGANIZATION_ID]" "billingAccounts/[
2386
+ # BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]" Examples: "projects/my-logging-
2387
+ # project", "organizations/123456789".
2116
2388
  # @param [Google::Apis::LoggingV2::LogExclusion] log_exclusion_object
2117
2389
  # @param [String] fields
2118
2390
  # Selector specifying which fields to include in a partial response.
@@ -2145,12 +2417,11 @@ module Google
2145
2417
 
2146
2418
  # Deletes an exclusion.
2147
2419
  # @param [String] name
2148
- # Required. The resource name of an existing exclusion to delete:
2149
- # "projects/[PROJECT_ID]/exclusions/[EXCLUSION_ID]"
2150
- # "organizations/[ORGANIZATION_ID]/exclusions/[EXCLUSION_ID]"
2151
- # "billingAccounts/[BILLING_ACCOUNT_ID]/exclusions/[EXCLUSION_ID]"
2152
- # "folders/[FOLDER_ID]/exclusions/[EXCLUSION_ID]"
2153
- # Example: "projects/my-project-id/exclusions/my-exclusion-id".
2420
+ # Required. The resource name of an existing exclusion to delete: "projects/[
2421
+ # PROJECT_ID]/exclusions/[EXCLUSION_ID]" "organizations/[ORGANIZATION_ID]/
2422
+ # exclusions/[EXCLUSION_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]/exclusions/[
2423
+ # EXCLUSION_ID]" "folders/[FOLDER_ID]/exclusions/[EXCLUSION_ID]" Example: "
2424
+ # projects/my-project-id/exclusions/my-exclusion-id".
2154
2425
  # @param [String] fields
2155
2426
  # Selector specifying which fields to include in a partial response.
2156
2427
  # @param [String] quota_user
@@ -2180,12 +2451,11 @@ module Google
2180
2451
 
2181
2452
  # Gets the description of an exclusion.
2182
2453
  # @param [String] name
2183
- # Required. The resource name of an existing exclusion:
2184
- # "projects/[PROJECT_ID]/exclusions/[EXCLUSION_ID]"
2185
- # "organizations/[ORGANIZATION_ID]/exclusions/[EXCLUSION_ID]"
2186
- # "billingAccounts/[BILLING_ACCOUNT_ID]/exclusions/[EXCLUSION_ID]"
2187
- # "folders/[FOLDER_ID]/exclusions/[EXCLUSION_ID]"
2188
- # Example: "projects/my-project-id/exclusions/my-exclusion-id".
2454
+ # Required. The resource name of an existing exclusion: "projects/[PROJECT_ID]/
2455
+ # exclusions/[EXCLUSION_ID]" "organizations/[ORGANIZATION_ID]/exclusions/[
2456
+ # EXCLUSION_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]/exclusions/[EXCLUSION_ID]"
2457
+ # "folders/[FOLDER_ID]/exclusions/[EXCLUSION_ID]" Example: "projects/my-project-
2458
+ # id/exclusions/my-exclusion-id".
2189
2459
  # @param [String] fields
2190
2460
  # Selector specifying which fields to include in a partial response.
2191
2461
  # @param [String] quota_user
@@ -2215,11 +2485,9 @@ module Google
2215
2485
 
2216
2486
  # Lists all the exclusions in a parent resource.
2217
2487
  # @param [String] parent
2218
- # Required. The parent resource whose exclusions are to be listed.
2219
- # "projects/[PROJECT_ID]"
2220
- # "organizations/[ORGANIZATION_ID]"
2221
- # "billingAccounts/[BILLING_ACCOUNT_ID]"
2222
- # "folders/[FOLDER_ID]"
2488
+ # Required. The parent resource whose exclusions are to be listed. "projects/[
2489
+ # PROJECT_ID]" "organizations/[ORGANIZATION_ID]" "billingAccounts/[
2490
+ # BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]"
2223
2491
  # @param [Fixnum] page_size
2224
2492
  # Optional. The maximum number of results to return from this request. Non-
2225
2493
  # positive values are ignored. The presence of nextPageToken in the response
@@ -2260,12 +2528,11 @@ module Google
2260
2528
 
2261
2529
  # Changes one or more properties of an existing exclusion.
2262
2530
  # @param [String] name
2263
- # Required. The resource name of the exclusion to update:
2264
- # "projects/[PROJECT_ID]/exclusions/[EXCLUSION_ID]"
2265
- # "organizations/[ORGANIZATION_ID]/exclusions/[EXCLUSION_ID]"
2266
- # "billingAccounts/[BILLING_ACCOUNT_ID]/exclusions/[EXCLUSION_ID]"
2267
- # "folders/[FOLDER_ID]/exclusions/[EXCLUSION_ID]"
2268
- # Example: "projects/my-project-id/exclusions/my-exclusion-id".
2531
+ # Required. The resource name of the exclusion to update: "projects/[PROJECT_ID]/
2532
+ # exclusions/[EXCLUSION_ID]" "organizations/[ORGANIZATION_ID]/exclusions/[
2533
+ # EXCLUSION_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]/exclusions/[EXCLUSION_ID]"
2534
+ # "folders/[FOLDER_ID]/exclusions/[EXCLUSION_ID]" Example: "projects/my-project-
2535
+ # id/exclusions/my-exclusion-id".
2269
2536
  # @param [Google::Apis::LoggingV2::LogExclusion] log_exclusion_object
2270
2537
  # @param [String] update_mask
2271
2538
  # Required. A non-empty list of fields to change in the existing exclusion. New
@@ -2304,15 +2571,92 @@ module Google
2304
2571
  execute_or_queue_command(command, &block)
2305
2572
  end
2306
2573
 
2574
+ # Creates a bucket that can be used to store log entries. Once a bucket has been
2575
+ # created, the region cannot be changed.
2576
+ # @param [String] parent
2577
+ # Required. The resource in which to create the bucket: "projects/[PROJECT_ID]/
2578
+ # locations/[LOCATION_ID]" Example: "projects/my-logging-project/locations/
2579
+ # global"
2580
+ # @param [Google::Apis::LoggingV2::LogBucket] log_bucket_object
2581
+ # @param [String] bucket_id
2582
+ # Required. A client-assigned identifier such as "my-bucket". Identifiers are
2583
+ # limited to 100 characters and can include only letters, digits, underscores,
2584
+ # hyphens, and periods.
2585
+ # @param [String] fields
2586
+ # Selector specifying which fields to include in a partial response.
2587
+ # @param [String] quota_user
2588
+ # Available to use for quota purposes for server-side applications. Can be any
2589
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2590
+ # @param [Google::Apis::RequestOptions] options
2591
+ # Request-specific options
2592
+ #
2593
+ # @yield [result, err] Result & error if block supplied
2594
+ # @yieldparam result [Google::Apis::LoggingV2::LogBucket] parsed result object
2595
+ # @yieldparam err [StandardError] error object if request failed
2596
+ #
2597
+ # @return [Google::Apis::LoggingV2::LogBucket]
2598
+ #
2599
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2600
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2601
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2602
+ def create_organization_location_bucket(parent, log_bucket_object = nil, bucket_id: nil, fields: nil, quota_user: nil, options: nil, &block)
2603
+ command = make_simple_command(:post, 'v2/{+parent}/buckets', options)
2604
+ command.request_representation = Google::Apis::LoggingV2::LogBucket::Representation
2605
+ command.request_object = log_bucket_object
2606
+ command.response_representation = Google::Apis::LoggingV2::LogBucket::Representation
2607
+ command.response_class = Google::Apis::LoggingV2::LogBucket
2608
+ command.params['parent'] = parent unless parent.nil?
2609
+ command.query['bucketId'] = bucket_id unless bucket_id.nil?
2610
+ command.query['fields'] = fields unless fields.nil?
2611
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2612
+ execute_or_queue_command(command, &block)
2613
+ end
2614
+
2615
+ # Deletes a bucket. Moves the bucket to the DELETE_REQUESTED state. After 7 days,
2616
+ # the bucket will be purged and all logs in the bucket will be permanently
2617
+ # deleted.
2618
+ # @param [String] name
2619
+ # Required. The full resource name of the bucket to delete. "projects/[
2620
+ # PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "organizations/[
2621
+ # ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "billingAccounts/
2622
+ # [BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "folders/[
2623
+ # FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" Example: "projects/my-
2624
+ # project-id/locations/my-location/buckets/my-bucket-id".
2625
+ # @param [String] fields
2626
+ # Selector specifying which fields to include in a partial response.
2627
+ # @param [String] quota_user
2628
+ # Available to use for quota purposes for server-side applications. Can be any
2629
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2630
+ # @param [Google::Apis::RequestOptions] options
2631
+ # Request-specific options
2632
+ #
2633
+ # @yield [result, err] Result & error if block supplied
2634
+ # @yieldparam result [Google::Apis::LoggingV2::Empty] parsed result object
2635
+ # @yieldparam err [StandardError] error object if request failed
2636
+ #
2637
+ # @return [Google::Apis::LoggingV2::Empty]
2638
+ #
2639
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2640
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2641
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2642
+ def delete_organization_location_bucket(name, fields: nil, quota_user: nil, options: nil, &block)
2643
+ command = make_simple_command(:delete, 'v2/{+name}', options)
2644
+ command.response_representation = Google::Apis::LoggingV2::Empty::Representation
2645
+ command.response_class = Google::Apis::LoggingV2::Empty
2646
+ command.params['name'] = name unless name.nil?
2647
+ command.query['fields'] = fields unless fields.nil?
2648
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2649
+ execute_or_queue_command(command, &block)
2650
+ end
2651
+
2307
2652
  # Gets a bucket (Beta).
2308
2653
  # @param [String] name
2309
- # Required. The resource name of the bucket:
2310
- # "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
2311
- # "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
2312
- # "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[
2313
- # BUCKET_ID]"
2314
- # "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
2315
- # Example: "projects/my-project-id/locations/my-location/buckets/my-bucket-id".
2654
+ # Required. The resource name of the bucket: "projects/[PROJECT_ID]/locations/[
2655
+ # LOCATION_ID]/buckets/[BUCKET_ID]" "organizations/[ORGANIZATION_ID]/locations/[
2656
+ # LOCATION_ID]/buckets/[BUCKET_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]/
2657
+ # locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "folders/[FOLDER_ID]/locations/[
2658
+ # LOCATION_ID]/buckets/[BUCKET_ID]" Example: "projects/my-project-id/locations/
2659
+ # my-location/buckets/my-bucket-id".
2316
2660
  # @param [String] fields
2317
2661
  # Selector specifying which fields to include in a partial response.
2318
2662
  # @param [String] quota_user
@@ -2342,13 +2686,12 @@ module Google
2342
2686
 
2343
2687
  # Lists buckets (Beta).
2344
2688
  # @param [String] parent
2345
- # Required. The parent resource whose buckets are to be listed:
2346
- # "projects/[PROJECT_ID]/locations/[LOCATION_ID]"
2347
- # "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]"
2348
- # "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]"
2349
- # "folders/[FOLDER_ID]/locations/[LOCATION_ID]"
2350
- # Note: The locations portion of the resource must be specified, but supplying
2351
- # the character - in place of LOCATION_ID will return all buckets.
2689
+ # Required. The parent resource whose buckets are to be listed: "projects/[
2690
+ # PROJECT_ID]/locations/[LOCATION_ID]" "organizations/[ORGANIZATION_ID]/
2691
+ # locations/[LOCATION_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[
2692
+ # LOCATION_ID]" "folders/[FOLDER_ID]/locations/[LOCATION_ID]" Note: The
2693
+ # locations portion of the resource must be specified, but supplying the
2694
+ # character - in place of LOCATION_ID will return all buckets.
2352
2695
  # @param [Fixnum] page_size
2353
2696
  # Optional. The maximum number of results to return from this request. Non-
2354
2697
  # positive values are ignored. The presence of nextPageToken in the response
@@ -2394,15 +2737,13 @@ module Google
2394
2737
  # FAILED_PRECONDITION will be returned.A buckets region may not be modified
2395
2738
  # after it is created. This method is in Beta.
2396
2739
  # @param [String] name
2397
- # Required. The full resource name of the bucket to update.
2398
- # "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
2399
- # "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
2400
- # "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[
2401
- # BUCKET_ID]"
2402
- # "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
2403
- # Example: "projects/my-project-id/locations/my-location/buckets/my-bucket-id".
2404
- # Also requires permission "resourcemanager.projects.updateLiens" to set the
2405
- # locked property
2740
+ # Required. The full resource name of the bucket to update. "projects/[
2741
+ # PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "organizations/[
2742
+ # ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "billingAccounts/
2743
+ # [BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "folders/[
2744
+ # FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" Example: "projects/my-
2745
+ # project-id/locations/my-location/buckets/my-bucket-id". Also requires
2746
+ # permission "resourcemanager.projects.updateLiens" to set the locked property
2406
2747
  # @param [Google::Apis::LoggingV2::LogBucket] log_bucket_object
2407
2748
  # @param [String] update_mask
2408
2749
  # Required. Field mask that specifies the fields in bucket that need an update.
@@ -2440,19 +2781,56 @@ module Google
2440
2781
  execute_or_queue_command(command, &block)
2441
2782
  end
2442
2783
 
2784
+ # Undeletes a bucket. A bucket that has been deleted may be undeleted within the
2785
+ # grace period of 7 days.
2786
+ # @param [String] name
2787
+ # Required. The full resource name of the bucket to undelete. "projects/[
2788
+ # PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "organizations/[
2789
+ # ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "billingAccounts/
2790
+ # [BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "folders/[
2791
+ # FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" Example: "projects/my-
2792
+ # project-id/locations/my-location/buckets/my-bucket-id".
2793
+ # @param [Google::Apis::LoggingV2::UndeleteBucketRequest] undelete_bucket_request_object
2794
+ # @param [String] fields
2795
+ # Selector specifying which fields to include in a partial response.
2796
+ # @param [String] quota_user
2797
+ # Available to use for quota purposes for server-side applications. Can be any
2798
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2799
+ # @param [Google::Apis::RequestOptions] options
2800
+ # Request-specific options
2801
+ #
2802
+ # @yield [result, err] Result & error if block supplied
2803
+ # @yieldparam result [Google::Apis::LoggingV2::Empty] parsed result object
2804
+ # @yieldparam err [StandardError] error object if request failed
2805
+ #
2806
+ # @return [Google::Apis::LoggingV2::Empty]
2807
+ #
2808
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2809
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2810
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2811
+ def undelete_organization_location_bucket(name, undelete_bucket_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2812
+ command = make_simple_command(:post, 'v2/{+name}:undelete', options)
2813
+ command.request_representation = Google::Apis::LoggingV2::UndeleteBucketRequest::Representation
2814
+ command.request_object = undelete_bucket_request_object
2815
+ command.response_representation = Google::Apis::LoggingV2::Empty::Representation
2816
+ command.response_class = Google::Apis::LoggingV2::Empty
2817
+ command.params['name'] = name unless name.nil?
2818
+ command.query['fields'] = fields unless fields.nil?
2819
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2820
+ execute_or_queue_command(command, &block)
2821
+ end
2822
+
2443
2823
  # Deletes all the log entries in a log. The log reappears if it receives new
2444
2824
  # entries. Log entries written shortly before the delete operation might not be
2445
2825
  # deleted. Entries received after the delete operation with a timestamp before
2446
2826
  # the operation will be deleted.
2447
2827
  # @param [String] log_name
2448
- # Required. The resource name of the log to delete:
2449
- # "projects/[PROJECT_ID]/logs/[LOG_ID]"
2450
- # "organizations/[ORGANIZATION_ID]/logs/[LOG_ID]"
2451
- # "billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]"
2452
- # "folders/[FOLDER_ID]/logs/[LOG_ID]"
2453
- # [LOG_ID] must be URL-encoded. For example, "projects/my-project-id/logs/syslog"
2454
- # , "organizations/1234567890/logs/cloudresourcemanager.googleapis.com%
2455
- # 2Factivity". For more information about log names, see LogEntry.
2828
+ # Required. The resource name of the log to delete: "projects/[PROJECT_ID]/logs/[
2829
+ # LOG_ID]" "organizations/[ORGANIZATION_ID]/logs/[LOG_ID]" "billingAccounts/[
2830
+ # BILLING_ACCOUNT_ID]/logs/[LOG_ID]" "folders/[FOLDER_ID]/logs/[LOG_ID]" [LOG_ID]
2831
+ # must be URL-encoded. For example, "projects/my-project-id/logs/syslog", "
2832
+ # organizations/1234567890/logs/cloudresourcemanager.googleapis.com%2Factivity".
2833
+ # For more information about log names, see LogEntry.
2456
2834
  # @param [String] fields
2457
2835
  # Selector specifying which fields to include in a partial response.
2458
2836
  # @param [String] quota_user
@@ -2483,11 +2861,9 @@ module Google
2483
2861
  # Lists the logs in projects, organizations, folders, or billing accounts. Only
2484
2862
  # logs that have entries are listed.
2485
2863
  # @param [String] parent
2486
- # Required. The resource name that owns the logs:
2487
- # "projects/[PROJECT_ID]"
2488
- # "organizations/[ORGANIZATION_ID]"
2489
- # "billingAccounts/[BILLING_ACCOUNT_ID]"
2490
- # "folders/[FOLDER_ID]"
2864
+ # Required. The resource name that owns the logs: "projects/[PROJECT_ID]" "
2865
+ # organizations/[ORGANIZATION_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]" "
2866
+ # folders/[FOLDER_ID]"
2491
2867
  # @param [Fixnum] page_size
2492
2868
  # Optional. The maximum number of results to return from this request. Non-
2493
2869
  # positive values are ignored. The presence of nextPageToken in the response
@@ -2531,12 +2907,10 @@ module Google
2531
2907
  # writer_identity is not permitted to write to the destination. A sink can
2532
2908
  # export log entries only from the resource owning the sink.
2533
2909
  # @param [String] parent
2534
- # Required. The resource in which to create the sink:
2535
- # "projects/[PROJECT_ID]"
2536
- # "organizations/[ORGANIZATION_ID]"
2537
- # "billingAccounts/[BILLING_ACCOUNT_ID]"
2538
- # "folders/[FOLDER_ID]"
2539
- # Examples: "projects/my-logging-project", "organizations/123456789".
2910
+ # Required. The resource in which to create the sink: "projects/[PROJECT_ID]" "
2911
+ # organizations/[ORGANIZATION_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]" "
2912
+ # folders/[FOLDER_ID]" Examples: "projects/my-logging-project", "organizations/
2913
+ # 123456789".
2540
2914
  # @param [Google::Apis::LoggingV2::LogSink] log_sink_object
2541
2915
  # @param [Boolean] unique_writer_identity
2542
2916
  # Optional. Determines the kind of IAM identity returned as writer_identity in
@@ -2582,11 +2956,9 @@ module Google
2582
2956
  # account is also deleted.
2583
2957
  # @param [String] sink_name
2584
2958
  # Required. The full resource name of the sink to delete, including the parent
2585
- # resource and the sink identifier:
2586
- # "projects/[PROJECT_ID]/sinks/[SINK_ID]"
2587
- # "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]"
2588
- # "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]"
2589
- # "folders/[FOLDER_ID]/sinks/[SINK_ID]"
2959
+ # resource and the sink identifier: "projects/[PROJECT_ID]/sinks/[SINK_ID]" "
2960
+ # organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]" "billingAccounts/[
2961
+ # BILLING_ACCOUNT_ID]/sinks/[SINK_ID]" "folders/[FOLDER_ID]/sinks/[SINK_ID]"
2590
2962
  # Example: "projects/my-project-id/sinks/my-sink-id".
2591
2963
  # @param [String] fields
2592
2964
  # Selector specifying which fields to include in a partial response.
@@ -2617,11 +2989,9 @@ module Google
2617
2989
 
2618
2990
  # Gets a sink.
2619
2991
  # @param [String] sink_name
2620
- # Required. The resource name of the sink:
2621
- # "projects/[PROJECT_ID]/sinks/[SINK_ID]"
2622
- # "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]"
2623
- # "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]"
2624
- # "folders/[FOLDER_ID]/sinks/[SINK_ID]"
2992
+ # Required. The resource name of the sink: "projects/[PROJECT_ID]/sinks/[SINK_ID]
2993
+ # " "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]" "billingAccounts/[
2994
+ # BILLING_ACCOUNT_ID]/sinks/[SINK_ID]" "folders/[FOLDER_ID]/sinks/[SINK_ID]"
2625
2995
  # Example: "projects/my-project-id/sinks/my-sink-id".
2626
2996
  # @param [String] fields
2627
2997
  # Selector specifying which fields to include in a partial response.
@@ -2652,11 +3022,9 @@ module Google
2652
3022
 
2653
3023
  # Lists sinks.
2654
3024
  # @param [String] parent
2655
- # Required. The parent resource whose sinks are to be listed:
2656
- # "projects/[PROJECT_ID]"
2657
- # "organizations/[ORGANIZATION_ID]"
2658
- # "billingAccounts/[BILLING_ACCOUNT_ID]"
2659
- # "folders/[FOLDER_ID]"
3025
+ # Required. The parent resource whose sinks are to be listed: "projects/[
3026
+ # PROJECT_ID]" "organizations/[ORGANIZATION_ID]" "billingAccounts/[
3027
+ # BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]"
2660
3028
  # @param [Fixnum] page_size
2661
3029
  # Optional. The maximum number of results to return from this request. Non-
2662
3030
  # positive values are ignored. The presence of nextPageToken in the response
@@ -2700,23 +3068,20 @@ module Google
2700
3068
  # also have a new writer_identity; see the unique_writer_identity field.
2701
3069
  # @param [String] sink_name
2702
3070
  # Required. The full resource name of the sink to update, including the parent
2703
- # resource and the sink identifier:
2704
- # "projects/[PROJECT_ID]/sinks/[SINK_ID]"
2705
- # "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]"
2706
- # "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]"
2707
- # "folders/[FOLDER_ID]/sinks/[SINK_ID]"
3071
+ # resource and the sink identifier: "projects/[PROJECT_ID]/sinks/[SINK_ID]" "
3072
+ # organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]" "billingAccounts/[
3073
+ # BILLING_ACCOUNT_ID]/sinks/[SINK_ID]" "folders/[FOLDER_ID]/sinks/[SINK_ID]"
2708
3074
  # Example: "projects/my-project-id/sinks/my-sink-id".
2709
3075
  # @param [Google::Apis::LoggingV2::LogSink] log_sink_object
2710
3076
  # @param [Boolean] unique_writer_identity
2711
3077
  # Optional. See sinks.create for a description of this field. When updating a
2712
3078
  # sink, the effect of this field on the value of writer_identity in the updated
2713
- # sink depends on both the old and new values of this field:
2714
- # If the old and new values of this field are both false or both true, then
2715
- # there is no change to the sink's writer_identity.
2716
- # If the old value is false and the new value is true, then writer_identity is
2717
- # changed to a unique service account.
2718
- # It is an error if the old value is true and the new value is set to false or
2719
- # defaulted to false.
3079
+ # sink depends on both the old and new values of this field: If the old and new
3080
+ # values of this field are both false or both true, then there is no change to
3081
+ # the sink's writer_identity. If the old value is false and the new value is
3082
+ # true, then writer_identity is changed to a unique service account. It is an
3083
+ # error if the old value is true and the new value is set to false or defaulted
3084
+ # to false.
2720
3085
  # @param [String] update_mask
2721
3086
  # Optional. Field mask that specifies the fields in sink that need an update. A
2722
3087
  # sink field will be overwritten if, and only if, it is in the update mask. name
@@ -2762,23 +3127,20 @@ module Google
2762
3127
  # also have a new writer_identity; see the unique_writer_identity field.
2763
3128
  # @param [String] sink_name
2764
3129
  # Required. The full resource name of the sink to update, including the parent
2765
- # resource and the sink identifier:
2766
- # "projects/[PROJECT_ID]/sinks/[SINK_ID]"
2767
- # "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]"
2768
- # "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]"
2769
- # "folders/[FOLDER_ID]/sinks/[SINK_ID]"
3130
+ # resource and the sink identifier: "projects/[PROJECT_ID]/sinks/[SINK_ID]" "
3131
+ # organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]" "billingAccounts/[
3132
+ # BILLING_ACCOUNT_ID]/sinks/[SINK_ID]" "folders/[FOLDER_ID]/sinks/[SINK_ID]"
2770
3133
  # Example: "projects/my-project-id/sinks/my-sink-id".
2771
3134
  # @param [Google::Apis::LoggingV2::LogSink] log_sink_object
2772
3135
  # @param [Boolean] unique_writer_identity
2773
3136
  # Optional. See sinks.create for a description of this field. When updating a
2774
3137
  # sink, the effect of this field on the value of writer_identity in the updated
2775
- # sink depends on both the old and new values of this field:
2776
- # If the old and new values of this field are both false or both true, then
2777
- # there is no change to the sink's writer_identity.
2778
- # If the old value is false and the new value is true, then writer_identity is
2779
- # changed to a unique service account.
2780
- # It is an error if the old value is true and the new value is set to false or
2781
- # defaulted to false.
3138
+ # sink depends on both the old and new values of this field: If the old and new
3139
+ # values of this field are both false or both true, then there is no change to
3140
+ # the sink's writer_identity. If the old value is false and the new value is
3141
+ # true, then writer_identity is changed to a unique service account. It is an
3142
+ # error if the old value is true and the new value is set to false or defaulted
3143
+ # to false.
2782
3144
  # @param [String] update_mask
2783
3145
  # Optional. Field mask that specifies the fields in sink that need an update. A
2784
3146
  # sink field will be overwritten if, and only if, it is in the update mask. name
@@ -2823,12 +3185,10 @@ module Google
2823
3185
  # belonging to that resource can be excluded. You can have up to 10 exclusions
2824
3186
  # in a resource.
2825
3187
  # @param [String] parent
2826
- # Required. The parent resource in which to create the exclusion:
2827
- # "projects/[PROJECT_ID]"
2828
- # "organizations/[ORGANIZATION_ID]"
2829
- # "billingAccounts/[BILLING_ACCOUNT_ID]"
2830
- # "folders/[FOLDER_ID]"
2831
- # Examples: "projects/my-logging-project", "organizations/123456789".
3188
+ # Required. The parent resource in which to create the exclusion: "projects/[
3189
+ # PROJECT_ID]" "organizations/[ORGANIZATION_ID]" "billingAccounts/[
3190
+ # BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]" Examples: "projects/my-logging-
3191
+ # project", "organizations/123456789".
2832
3192
  # @param [Google::Apis::LoggingV2::LogExclusion] log_exclusion_object
2833
3193
  # @param [String] fields
2834
3194
  # Selector specifying which fields to include in a partial response.
@@ -2861,12 +3221,11 @@ module Google
2861
3221
 
2862
3222
  # Deletes an exclusion.
2863
3223
  # @param [String] name
2864
- # Required. The resource name of an existing exclusion to delete:
2865
- # "projects/[PROJECT_ID]/exclusions/[EXCLUSION_ID]"
2866
- # "organizations/[ORGANIZATION_ID]/exclusions/[EXCLUSION_ID]"
2867
- # "billingAccounts/[BILLING_ACCOUNT_ID]/exclusions/[EXCLUSION_ID]"
2868
- # "folders/[FOLDER_ID]/exclusions/[EXCLUSION_ID]"
2869
- # Example: "projects/my-project-id/exclusions/my-exclusion-id".
3224
+ # Required. The resource name of an existing exclusion to delete: "projects/[
3225
+ # PROJECT_ID]/exclusions/[EXCLUSION_ID]" "organizations/[ORGANIZATION_ID]/
3226
+ # exclusions/[EXCLUSION_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]/exclusions/[
3227
+ # EXCLUSION_ID]" "folders/[FOLDER_ID]/exclusions/[EXCLUSION_ID]" Example: "
3228
+ # projects/my-project-id/exclusions/my-exclusion-id".
2870
3229
  # @param [String] fields
2871
3230
  # Selector specifying which fields to include in a partial response.
2872
3231
  # @param [String] quota_user
@@ -2896,12 +3255,11 @@ module Google
2896
3255
 
2897
3256
  # Gets the description of an exclusion.
2898
3257
  # @param [String] name
2899
- # Required. The resource name of an existing exclusion:
2900
- # "projects/[PROJECT_ID]/exclusions/[EXCLUSION_ID]"
2901
- # "organizations/[ORGANIZATION_ID]/exclusions/[EXCLUSION_ID]"
2902
- # "billingAccounts/[BILLING_ACCOUNT_ID]/exclusions/[EXCLUSION_ID]"
2903
- # "folders/[FOLDER_ID]/exclusions/[EXCLUSION_ID]"
2904
- # Example: "projects/my-project-id/exclusions/my-exclusion-id".
3258
+ # Required. The resource name of an existing exclusion: "projects/[PROJECT_ID]/
3259
+ # exclusions/[EXCLUSION_ID]" "organizations/[ORGANIZATION_ID]/exclusions/[
3260
+ # EXCLUSION_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]/exclusions/[EXCLUSION_ID]"
3261
+ # "folders/[FOLDER_ID]/exclusions/[EXCLUSION_ID]" Example: "projects/my-project-
3262
+ # id/exclusions/my-exclusion-id".
2905
3263
  # @param [String] fields
2906
3264
  # Selector specifying which fields to include in a partial response.
2907
3265
  # @param [String] quota_user
@@ -2931,11 +3289,9 @@ module Google
2931
3289
 
2932
3290
  # Lists all the exclusions in a parent resource.
2933
3291
  # @param [String] parent
2934
- # Required. The parent resource whose exclusions are to be listed.
2935
- # "projects/[PROJECT_ID]"
2936
- # "organizations/[ORGANIZATION_ID]"
2937
- # "billingAccounts/[BILLING_ACCOUNT_ID]"
2938
- # "folders/[FOLDER_ID]"
3292
+ # Required. The parent resource whose exclusions are to be listed. "projects/[
3293
+ # PROJECT_ID]" "organizations/[ORGANIZATION_ID]" "billingAccounts/[
3294
+ # BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]"
2939
3295
  # @param [Fixnum] page_size
2940
3296
  # Optional. The maximum number of results to return from this request. Non-
2941
3297
  # positive values are ignored. The presence of nextPageToken in the response
@@ -2976,12 +3332,11 @@ module Google
2976
3332
 
2977
3333
  # Changes one or more properties of an existing exclusion.
2978
3334
  # @param [String] name
2979
- # Required. The resource name of the exclusion to update:
2980
- # "projects/[PROJECT_ID]/exclusions/[EXCLUSION_ID]"
2981
- # "organizations/[ORGANIZATION_ID]/exclusions/[EXCLUSION_ID]"
2982
- # "billingAccounts/[BILLING_ACCOUNT_ID]/exclusions/[EXCLUSION_ID]"
2983
- # "folders/[FOLDER_ID]/exclusions/[EXCLUSION_ID]"
2984
- # Example: "projects/my-project-id/exclusions/my-exclusion-id".
3335
+ # Required. The resource name of the exclusion to update: "projects/[PROJECT_ID]/
3336
+ # exclusions/[EXCLUSION_ID]" "organizations/[ORGANIZATION_ID]/exclusions/[
3337
+ # EXCLUSION_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]/exclusions/[EXCLUSION_ID]"
3338
+ # "folders/[FOLDER_ID]/exclusions/[EXCLUSION_ID]" Example: "projects/my-project-
3339
+ # id/exclusions/my-exclusion-id".
2985
3340
  # @param [Google::Apis::LoggingV2::LogExclusion] log_exclusion_object
2986
3341
  # @param [String] update_mask
2987
3342
  # Required. A non-empty list of fields to change in the existing exclusion. New
@@ -3020,15 +3375,92 @@ module Google
3020
3375
  execute_or_queue_command(command, &block)
3021
3376
  end
3022
3377
 
3378
+ # Creates a bucket that can be used to store log entries. Once a bucket has been
3379
+ # created, the region cannot be changed.
3380
+ # @param [String] parent
3381
+ # Required. The resource in which to create the bucket: "projects/[PROJECT_ID]/
3382
+ # locations/[LOCATION_ID]" Example: "projects/my-logging-project/locations/
3383
+ # global"
3384
+ # @param [Google::Apis::LoggingV2::LogBucket] log_bucket_object
3385
+ # @param [String] bucket_id
3386
+ # Required. A client-assigned identifier such as "my-bucket". Identifiers are
3387
+ # limited to 100 characters and can include only letters, digits, underscores,
3388
+ # hyphens, and periods.
3389
+ # @param [String] fields
3390
+ # Selector specifying which fields to include in a partial response.
3391
+ # @param [String] quota_user
3392
+ # Available to use for quota purposes for server-side applications. Can be any
3393
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3394
+ # @param [Google::Apis::RequestOptions] options
3395
+ # Request-specific options
3396
+ #
3397
+ # @yield [result, err] Result & error if block supplied
3398
+ # @yieldparam result [Google::Apis::LoggingV2::LogBucket] parsed result object
3399
+ # @yieldparam err [StandardError] error object if request failed
3400
+ #
3401
+ # @return [Google::Apis::LoggingV2::LogBucket]
3402
+ #
3403
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3404
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3405
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3406
+ def create_project_location_bucket(parent, log_bucket_object = nil, bucket_id: nil, fields: nil, quota_user: nil, options: nil, &block)
3407
+ command = make_simple_command(:post, 'v2/{+parent}/buckets', options)
3408
+ command.request_representation = Google::Apis::LoggingV2::LogBucket::Representation
3409
+ command.request_object = log_bucket_object
3410
+ command.response_representation = Google::Apis::LoggingV2::LogBucket::Representation
3411
+ command.response_class = Google::Apis::LoggingV2::LogBucket
3412
+ command.params['parent'] = parent unless parent.nil?
3413
+ command.query['bucketId'] = bucket_id unless bucket_id.nil?
3414
+ command.query['fields'] = fields unless fields.nil?
3415
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3416
+ execute_or_queue_command(command, &block)
3417
+ end
3418
+
3419
+ # Deletes a bucket. Moves the bucket to the DELETE_REQUESTED state. After 7 days,
3420
+ # the bucket will be purged and all logs in the bucket will be permanently
3421
+ # deleted.
3422
+ # @param [String] name
3423
+ # Required. The full resource name of the bucket to delete. "projects/[
3424
+ # PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "organizations/[
3425
+ # ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "billingAccounts/
3426
+ # [BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "folders/[
3427
+ # FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" Example: "projects/my-
3428
+ # project-id/locations/my-location/buckets/my-bucket-id".
3429
+ # @param [String] fields
3430
+ # Selector specifying which fields to include in a partial response.
3431
+ # @param [String] quota_user
3432
+ # Available to use for quota purposes for server-side applications. Can be any
3433
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3434
+ # @param [Google::Apis::RequestOptions] options
3435
+ # Request-specific options
3436
+ #
3437
+ # @yield [result, err] Result & error if block supplied
3438
+ # @yieldparam result [Google::Apis::LoggingV2::Empty] parsed result object
3439
+ # @yieldparam err [StandardError] error object if request failed
3440
+ #
3441
+ # @return [Google::Apis::LoggingV2::Empty]
3442
+ #
3443
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3444
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3445
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3446
+ def delete_project_location_bucket(name, fields: nil, quota_user: nil, options: nil, &block)
3447
+ command = make_simple_command(:delete, 'v2/{+name}', options)
3448
+ command.response_representation = Google::Apis::LoggingV2::Empty::Representation
3449
+ command.response_class = Google::Apis::LoggingV2::Empty
3450
+ command.params['name'] = name unless name.nil?
3451
+ command.query['fields'] = fields unless fields.nil?
3452
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3453
+ execute_or_queue_command(command, &block)
3454
+ end
3455
+
3023
3456
  # Gets a bucket (Beta).
3024
3457
  # @param [String] name
3025
- # Required. The resource name of the bucket:
3026
- # "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
3027
- # "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
3028
- # "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[
3029
- # BUCKET_ID]"
3030
- # "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
3031
- # Example: "projects/my-project-id/locations/my-location/buckets/my-bucket-id".
3458
+ # Required. The resource name of the bucket: "projects/[PROJECT_ID]/locations/[
3459
+ # LOCATION_ID]/buckets/[BUCKET_ID]" "organizations/[ORGANIZATION_ID]/locations/[
3460
+ # LOCATION_ID]/buckets/[BUCKET_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]/
3461
+ # locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "folders/[FOLDER_ID]/locations/[
3462
+ # LOCATION_ID]/buckets/[BUCKET_ID]" Example: "projects/my-project-id/locations/
3463
+ # my-location/buckets/my-bucket-id".
3032
3464
  # @param [String] fields
3033
3465
  # Selector specifying which fields to include in a partial response.
3034
3466
  # @param [String] quota_user
@@ -3058,13 +3490,12 @@ module Google
3058
3490
 
3059
3491
  # Lists buckets (Beta).
3060
3492
  # @param [String] parent
3061
- # Required. The parent resource whose buckets are to be listed:
3062
- # "projects/[PROJECT_ID]/locations/[LOCATION_ID]"
3063
- # "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]"
3064
- # "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]"
3065
- # "folders/[FOLDER_ID]/locations/[LOCATION_ID]"
3066
- # Note: The locations portion of the resource must be specified, but supplying
3067
- # the character - in place of LOCATION_ID will return all buckets.
3493
+ # Required. The parent resource whose buckets are to be listed: "projects/[
3494
+ # PROJECT_ID]/locations/[LOCATION_ID]" "organizations/[ORGANIZATION_ID]/
3495
+ # locations/[LOCATION_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[
3496
+ # LOCATION_ID]" "folders/[FOLDER_ID]/locations/[LOCATION_ID]" Note: The
3497
+ # locations portion of the resource must be specified, but supplying the
3498
+ # character - in place of LOCATION_ID will return all buckets.
3068
3499
  # @param [Fixnum] page_size
3069
3500
  # Optional. The maximum number of results to return from this request. Non-
3070
3501
  # positive values are ignored. The presence of nextPageToken in the response
@@ -3110,15 +3541,13 @@ module Google
3110
3541
  # FAILED_PRECONDITION will be returned.A buckets region may not be modified
3111
3542
  # after it is created. This method is in Beta.
3112
3543
  # @param [String] name
3113
- # Required. The full resource name of the bucket to update.
3114
- # "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
3115
- # "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
3116
- # "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[
3117
- # BUCKET_ID]"
3118
- # "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
3119
- # Example: "projects/my-project-id/locations/my-location/buckets/my-bucket-id".
3120
- # Also requires permission "resourcemanager.projects.updateLiens" to set the
3121
- # locked property
3544
+ # Required. The full resource name of the bucket to update. "projects/[
3545
+ # PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "organizations/[
3546
+ # ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "billingAccounts/
3547
+ # [BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "folders/[
3548
+ # FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" Example: "projects/my-
3549
+ # project-id/locations/my-location/buckets/my-bucket-id". Also requires
3550
+ # permission "resourcemanager.projects.updateLiens" to set the locked property
3122
3551
  # @param [Google::Apis::LoggingV2::LogBucket] log_bucket_object
3123
3552
  # @param [String] update_mask
3124
3553
  # Required. Field mask that specifies the fields in bucket that need an update.
@@ -3156,19 +3585,56 @@ module Google
3156
3585
  execute_or_queue_command(command, &block)
3157
3586
  end
3158
3587
 
3588
+ # Undeletes a bucket. A bucket that has been deleted may be undeleted within the
3589
+ # grace period of 7 days.
3590
+ # @param [String] name
3591
+ # Required. The full resource name of the bucket to undelete. "projects/[
3592
+ # PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "organizations/[
3593
+ # ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "billingAccounts/
3594
+ # [BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "folders/[
3595
+ # FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" Example: "projects/my-
3596
+ # project-id/locations/my-location/buckets/my-bucket-id".
3597
+ # @param [Google::Apis::LoggingV2::UndeleteBucketRequest] undelete_bucket_request_object
3598
+ # @param [String] fields
3599
+ # Selector specifying which fields to include in a partial response.
3600
+ # @param [String] quota_user
3601
+ # Available to use for quota purposes for server-side applications. Can be any
3602
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3603
+ # @param [Google::Apis::RequestOptions] options
3604
+ # Request-specific options
3605
+ #
3606
+ # @yield [result, err] Result & error if block supplied
3607
+ # @yieldparam result [Google::Apis::LoggingV2::Empty] parsed result object
3608
+ # @yieldparam err [StandardError] error object if request failed
3609
+ #
3610
+ # @return [Google::Apis::LoggingV2::Empty]
3611
+ #
3612
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3613
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3614
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3615
+ def undelete_project_location_bucket(name, undelete_bucket_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
3616
+ command = make_simple_command(:post, 'v2/{+name}:undelete', options)
3617
+ command.request_representation = Google::Apis::LoggingV2::UndeleteBucketRequest::Representation
3618
+ command.request_object = undelete_bucket_request_object
3619
+ command.response_representation = Google::Apis::LoggingV2::Empty::Representation
3620
+ command.response_class = Google::Apis::LoggingV2::Empty
3621
+ command.params['name'] = name unless name.nil?
3622
+ command.query['fields'] = fields unless fields.nil?
3623
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3624
+ execute_or_queue_command(command, &block)
3625
+ end
3626
+
3159
3627
  # Deletes all the log entries in a log. The log reappears if it receives new
3160
3628
  # entries. Log entries written shortly before the delete operation might not be
3161
3629
  # deleted. Entries received after the delete operation with a timestamp before
3162
3630
  # the operation will be deleted.
3163
3631
  # @param [String] log_name
3164
- # Required. The resource name of the log to delete:
3165
- # "projects/[PROJECT_ID]/logs/[LOG_ID]"
3166
- # "organizations/[ORGANIZATION_ID]/logs/[LOG_ID]"
3167
- # "billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]"
3168
- # "folders/[FOLDER_ID]/logs/[LOG_ID]"
3169
- # [LOG_ID] must be URL-encoded. For example, "projects/my-project-id/logs/syslog"
3170
- # , "organizations/1234567890/logs/cloudresourcemanager.googleapis.com%
3171
- # 2Factivity". For more information about log names, see LogEntry.
3632
+ # Required. The resource name of the log to delete: "projects/[PROJECT_ID]/logs/[
3633
+ # LOG_ID]" "organizations/[ORGANIZATION_ID]/logs/[LOG_ID]" "billingAccounts/[
3634
+ # BILLING_ACCOUNT_ID]/logs/[LOG_ID]" "folders/[FOLDER_ID]/logs/[LOG_ID]" [LOG_ID]
3635
+ # must be URL-encoded. For example, "projects/my-project-id/logs/syslog", "
3636
+ # organizations/1234567890/logs/cloudresourcemanager.googleapis.com%2Factivity".
3637
+ # For more information about log names, see LogEntry.
3172
3638
  # @param [String] fields
3173
3639
  # Selector specifying which fields to include in a partial response.
3174
3640
  # @param [String] quota_user
@@ -3199,11 +3665,9 @@ module Google
3199
3665
  # Lists the logs in projects, organizations, folders, or billing accounts. Only
3200
3666
  # logs that have entries are listed.
3201
3667
  # @param [String] parent
3202
- # Required. The resource name that owns the logs:
3203
- # "projects/[PROJECT_ID]"
3204
- # "organizations/[ORGANIZATION_ID]"
3205
- # "billingAccounts/[BILLING_ACCOUNT_ID]"
3206
- # "folders/[FOLDER_ID]"
3668
+ # Required. The resource name that owns the logs: "projects/[PROJECT_ID]" "
3669
+ # organizations/[ORGANIZATION_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]" "
3670
+ # folders/[FOLDER_ID]"
3207
3671
  # @param [Fixnum] page_size
3208
3672
  # Optional. The maximum number of results to return from this request. Non-
3209
3673
  # positive values are ignored. The presence of nextPageToken in the response
@@ -3244,9 +3708,8 @@ module Google
3244
3708
 
3245
3709
  # Creates a logs-based metric.
3246
3710
  # @param [String] parent
3247
- # Required. The resource name of the project in which to create the metric:
3248
- # "projects/[PROJECT_ID]"
3249
- # The new metric must be provided in the request.
3711
+ # Required. The resource name of the project in which to create the metric: "
3712
+ # projects/[PROJECT_ID]" The new metric must be provided in the request.
3250
3713
  # @param [Google::Apis::LoggingV2::LogMetric] log_metric_object
3251
3714
  # @param [String] fields
3252
3715
  # Selector specifying which fields to include in a partial response.
@@ -3279,8 +3742,8 @@ module Google
3279
3742
 
3280
3743
  # Deletes a logs-based metric.
3281
3744
  # @param [String] metric_name
3282
- # Required. The resource name of the metric to delete:
3283
- # "projects/[PROJECT_ID]/metrics/[METRIC_ID]"
3745
+ # Required. The resource name of the metric to delete: "projects/[PROJECT_ID]/
3746
+ # metrics/[METRIC_ID]"
3284
3747
  # @param [String] fields
3285
3748
  # Selector specifying which fields to include in a partial response.
3286
3749
  # @param [String] quota_user
@@ -3310,8 +3773,8 @@ module Google
3310
3773
 
3311
3774
  # Gets a logs-based metric.
3312
3775
  # @param [String] metric_name
3313
- # Required. The resource name of the desired metric:
3314
- # "projects/[PROJECT_ID]/metrics/[METRIC_ID]"
3776
+ # Required. The resource name of the desired metric: "projects/[PROJECT_ID]/
3777
+ # metrics/[METRIC_ID]"
3315
3778
  # @param [String] fields
3316
3779
  # Selector specifying which fields to include in a partial response.
3317
3780
  # @param [String] quota_user
@@ -3341,8 +3804,8 @@ module Google
3341
3804
 
3342
3805
  # Lists logs-based metrics.
3343
3806
  # @param [String] parent
3344
- # Required. The name of the project containing the metrics:
3345
- # "projects/[PROJECT_ID]"
3807
+ # Required. The name of the project containing the metrics: "projects/[
3808
+ # PROJECT_ID]"
3346
3809
  # @param [Fixnum] page_size
3347
3810
  # Optional. The maximum number of results to return from this request. Non-
3348
3811
  # positive values are ignored. The presence of nextPageToken in the response
@@ -3383,11 +3846,10 @@ module Google
3383
3846
 
3384
3847
  # Creates or updates a logs-based metric.
3385
3848
  # @param [String] metric_name
3386
- # Required. The resource name of the metric to update:
3387
- # "projects/[PROJECT_ID]/metrics/[METRIC_ID]"
3388
- # The updated metric must be provided in the request and it's name field must be
3389
- # the same as [METRIC_ID] If the metric does not exist in [PROJECT_ID], then a
3390
- # new metric is created.
3849
+ # Required. The resource name of the metric to update: "projects/[PROJECT_ID]/
3850
+ # metrics/[METRIC_ID]" The updated metric must be provided in the request and it'
3851
+ # s name field must be the same as [METRIC_ID] If the metric does not exist in [
3852
+ # PROJECT_ID], then a new metric is created.
3391
3853
  # @param [Google::Apis::LoggingV2::LogMetric] log_metric_object
3392
3854
  # @param [String] fields
3393
3855
  # Selector specifying which fields to include in a partial response.
@@ -3423,12 +3885,10 @@ module Google
3423
3885
  # writer_identity is not permitted to write to the destination. A sink can
3424
3886
  # export log entries only from the resource owning the sink.
3425
3887
  # @param [String] parent
3426
- # Required. The resource in which to create the sink:
3427
- # "projects/[PROJECT_ID]"
3428
- # "organizations/[ORGANIZATION_ID]"
3429
- # "billingAccounts/[BILLING_ACCOUNT_ID]"
3430
- # "folders/[FOLDER_ID]"
3431
- # Examples: "projects/my-logging-project", "organizations/123456789".
3888
+ # Required. The resource in which to create the sink: "projects/[PROJECT_ID]" "
3889
+ # organizations/[ORGANIZATION_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]" "
3890
+ # folders/[FOLDER_ID]" Examples: "projects/my-logging-project", "organizations/
3891
+ # 123456789".
3432
3892
  # @param [Google::Apis::LoggingV2::LogSink] log_sink_object
3433
3893
  # @param [Boolean] unique_writer_identity
3434
3894
  # Optional. Determines the kind of IAM identity returned as writer_identity in
@@ -3474,11 +3934,9 @@ module Google
3474
3934
  # account is also deleted.
3475
3935
  # @param [String] sink_name
3476
3936
  # Required. The full resource name of the sink to delete, including the parent
3477
- # resource and the sink identifier:
3478
- # "projects/[PROJECT_ID]/sinks/[SINK_ID]"
3479
- # "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]"
3480
- # "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]"
3481
- # "folders/[FOLDER_ID]/sinks/[SINK_ID]"
3937
+ # resource and the sink identifier: "projects/[PROJECT_ID]/sinks/[SINK_ID]" "
3938
+ # organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]" "billingAccounts/[
3939
+ # BILLING_ACCOUNT_ID]/sinks/[SINK_ID]" "folders/[FOLDER_ID]/sinks/[SINK_ID]"
3482
3940
  # Example: "projects/my-project-id/sinks/my-sink-id".
3483
3941
  # @param [String] fields
3484
3942
  # Selector specifying which fields to include in a partial response.
@@ -3509,11 +3967,9 @@ module Google
3509
3967
 
3510
3968
  # Gets a sink.
3511
3969
  # @param [String] sink_name
3512
- # Required. The resource name of the sink:
3513
- # "projects/[PROJECT_ID]/sinks/[SINK_ID]"
3514
- # "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]"
3515
- # "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]"
3516
- # "folders/[FOLDER_ID]/sinks/[SINK_ID]"
3970
+ # Required. The resource name of the sink: "projects/[PROJECT_ID]/sinks/[SINK_ID]
3971
+ # " "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]" "billingAccounts/[
3972
+ # BILLING_ACCOUNT_ID]/sinks/[SINK_ID]" "folders/[FOLDER_ID]/sinks/[SINK_ID]"
3517
3973
  # Example: "projects/my-project-id/sinks/my-sink-id".
3518
3974
  # @param [String] fields
3519
3975
  # Selector specifying which fields to include in a partial response.
@@ -3544,11 +4000,9 @@ module Google
3544
4000
 
3545
4001
  # Lists sinks.
3546
4002
  # @param [String] parent
3547
- # Required. The parent resource whose sinks are to be listed:
3548
- # "projects/[PROJECT_ID]"
3549
- # "organizations/[ORGANIZATION_ID]"
3550
- # "billingAccounts/[BILLING_ACCOUNT_ID]"
3551
- # "folders/[FOLDER_ID]"
4003
+ # Required. The parent resource whose sinks are to be listed: "projects/[
4004
+ # PROJECT_ID]" "organizations/[ORGANIZATION_ID]" "billingAccounts/[
4005
+ # BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]"
3552
4006
  # @param [Fixnum] page_size
3553
4007
  # Optional. The maximum number of results to return from this request. Non-
3554
4008
  # positive values are ignored. The presence of nextPageToken in the response
@@ -3592,23 +4046,20 @@ module Google
3592
4046
  # also have a new writer_identity; see the unique_writer_identity field.
3593
4047
  # @param [String] sink_name
3594
4048
  # Required. The full resource name of the sink to update, including the parent
3595
- # resource and the sink identifier:
3596
- # "projects/[PROJECT_ID]/sinks/[SINK_ID]"
3597
- # "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]"
3598
- # "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]"
3599
- # "folders/[FOLDER_ID]/sinks/[SINK_ID]"
4049
+ # resource and the sink identifier: "projects/[PROJECT_ID]/sinks/[SINK_ID]" "
4050
+ # organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]" "billingAccounts/[
4051
+ # BILLING_ACCOUNT_ID]/sinks/[SINK_ID]" "folders/[FOLDER_ID]/sinks/[SINK_ID]"
3600
4052
  # Example: "projects/my-project-id/sinks/my-sink-id".
3601
4053
  # @param [Google::Apis::LoggingV2::LogSink] log_sink_object
3602
4054
  # @param [Boolean] unique_writer_identity
3603
4055
  # Optional. See sinks.create for a description of this field. When updating a
3604
4056
  # sink, the effect of this field on the value of writer_identity in the updated
3605
- # sink depends on both the old and new values of this field:
3606
- # If the old and new values of this field are both false or both true, then
3607
- # there is no change to the sink's writer_identity.
3608
- # If the old value is false and the new value is true, then writer_identity is
3609
- # changed to a unique service account.
3610
- # It is an error if the old value is true and the new value is set to false or
3611
- # defaulted to false.
4057
+ # sink depends on both the old and new values of this field: If the old and new
4058
+ # values of this field are both false or both true, then there is no change to
4059
+ # the sink's writer_identity. If the old value is false and the new value is
4060
+ # true, then writer_identity is changed to a unique service account. It is an
4061
+ # error if the old value is true and the new value is set to false or defaulted
4062
+ # to false.
3612
4063
  # @param [String] update_mask
3613
4064
  # Optional. Field mask that specifies the fields in sink that need an update. A
3614
4065
  # sink field will be overwritten if, and only if, it is in the update mask. name
@@ -3654,23 +4105,20 @@ module Google
3654
4105
  # also have a new writer_identity; see the unique_writer_identity field.
3655
4106
  # @param [String] sink_name
3656
4107
  # Required. The full resource name of the sink to update, including the parent
3657
- # resource and the sink identifier:
3658
- # "projects/[PROJECT_ID]/sinks/[SINK_ID]"
3659
- # "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]"
3660
- # "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]"
3661
- # "folders/[FOLDER_ID]/sinks/[SINK_ID]"
4108
+ # resource and the sink identifier: "projects/[PROJECT_ID]/sinks/[SINK_ID]" "
4109
+ # organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]" "billingAccounts/[
4110
+ # BILLING_ACCOUNT_ID]/sinks/[SINK_ID]" "folders/[FOLDER_ID]/sinks/[SINK_ID]"
3662
4111
  # Example: "projects/my-project-id/sinks/my-sink-id".
3663
4112
  # @param [Google::Apis::LoggingV2::LogSink] log_sink_object
3664
4113
  # @param [Boolean] unique_writer_identity
3665
4114
  # Optional. See sinks.create for a description of this field. When updating a
3666
4115
  # sink, the effect of this field on the value of writer_identity in the updated
3667
- # sink depends on both the old and new values of this field:
3668
- # If the old and new values of this field are both false or both true, then
3669
- # there is no change to the sink's writer_identity.
3670
- # If the old value is false and the new value is true, then writer_identity is
3671
- # changed to a unique service account.
3672
- # It is an error if the old value is true and the new value is set to false or
3673
- # defaulted to false.
4116
+ # sink depends on both the old and new values of this field: If the old and new
4117
+ # values of this field are both false or both true, then there is no change to
4118
+ # the sink's writer_identity. If the old value is false and the new value is
4119
+ # true, then writer_identity is changed to a unique service account. It is an
4120
+ # error if the old value is true and the new value is set to false or defaulted
4121
+ # to false.
3674
4122
  # @param [String] update_mask
3675
4123
  # Optional. Field mask that specifies the fields in sink that need an update. A
3676
4124
  # sink field will be overwritten if, and only if, it is in the update mask. name
@@ -3716,12 +4164,10 @@ module Google
3716
4164
  # writer_identity is not permitted to write to the destination. A sink can
3717
4165
  # export log entries only from the resource owning the sink.
3718
4166
  # @param [String] parent
3719
- # Required. The resource in which to create the sink:
3720
- # "projects/[PROJECT_ID]"
3721
- # "organizations/[ORGANIZATION_ID]"
3722
- # "billingAccounts/[BILLING_ACCOUNT_ID]"
3723
- # "folders/[FOLDER_ID]"
3724
- # Examples: "projects/my-logging-project", "organizations/123456789".
4167
+ # Required. The resource in which to create the sink: "projects/[PROJECT_ID]" "
4168
+ # organizations/[ORGANIZATION_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]" "
4169
+ # folders/[FOLDER_ID]" Examples: "projects/my-logging-project", "organizations/
4170
+ # 123456789".
3725
4171
  # @param [Google::Apis::LoggingV2::LogSink] log_sink_object
3726
4172
  # @param [Boolean] unique_writer_identity
3727
4173
  # Optional. Determines the kind of IAM identity returned as writer_identity in
@@ -3767,11 +4213,9 @@ module Google
3767
4213
  # account is also deleted.
3768
4214
  # @param [String] sink_name
3769
4215
  # Required. The full resource name of the sink to delete, including the parent
3770
- # resource and the sink identifier:
3771
- # "projects/[PROJECT_ID]/sinks/[SINK_ID]"
3772
- # "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]"
3773
- # "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]"
3774
- # "folders/[FOLDER_ID]/sinks/[SINK_ID]"
4216
+ # resource and the sink identifier: "projects/[PROJECT_ID]/sinks/[SINK_ID]" "
4217
+ # organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]" "billingAccounts/[
4218
+ # BILLING_ACCOUNT_ID]/sinks/[SINK_ID]" "folders/[FOLDER_ID]/sinks/[SINK_ID]"
3775
4219
  # Example: "projects/my-project-id/sinks/my-sink-id".
3776
4220
  # @param [String] fields
3777
4221
  # Selector specifying which fields to include in a partial response.
@@ -3802,11 +4246,9 @@ module Google
3802
4246
 
3803
4247
  # Gets a sink.
3804
4248
  # @param [String] sink_name
3805
- # Required. The resource name of the sink:
3806
- # "projects/[PROJECT_ID]/sinks/[SINK_ID]"
3807
- # "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]"
3808
- # "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]"
3809
- # "folders/[FOLDER_ID]/sinks/[SINK_ID]"
4249
+ # Required. The resource name of the sink: "projects/[PROJECT_ID]/sinks/[SINK_ID]
4250
+ # " "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]" "billingAccounts/[
4251
+ # BILLING_ACCOUNT_ID]/sinks/[SINK_ID]" "folders/[FOLDER_ID]/sinks/[SINK_ID]"
3810
4252
  # Example: "projects/my-project-id/sinks/my-sink-id".
3811
4253
  # @param [String] fields
3812
4254
  # Selector specifying which fields to include in a partial response.
@@ -3837,11 +4279,9 @@ module Google
3837
4279
 
3838
4280
  # Lists sinks.
3839
4281
  # @param [String] parent
3840
- # Required. The parent resource whose sinks are to be listed:
3841
- # "projects/[PROJECT_ID]"
3842
- # "organizations/[ORGANIZATION_ID]"
3843
- # "billingAccounts/[BILLING_ACCOUNT_ID]"
3844
- # "folders/[FOLDER_ID]"
4282
+ # Required. The parent resource whose sinks are to be listed: "projects/[
4283
+ # PROJECT_ID]" "organizations/[ORGANIZATION_ID]" "billingAccounts/[
4284
+ # BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]"
3845
4285
  # @param [Fixnum] page_size
3846
4286
  # Optional. The maximum number of results to return from this request. Non-
3847
4287
  # positive values are ignored. The presence of nextPageToken in the response
@@ -3885,23 +4325,20 @@ module Google
3885
4325
  # also have a new writer_identity; see the unique_writer_identity field.
3886
4326
  # @param [String] sink_name
3887
4327
  # Required. The full resource name of the sink to update, including the parent
3888
- # resource and the sink identifier:
3889
- # "projects/[PROJECT_ID]/sinks/[SINK_ID]"
3890
- # "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]"
3891
- # "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]"
3892
- # "folders/[FOLDER_ID]/sinks/[SINK_ID]"
4328
+ # resource and the sink identifier: "projects/[PROJECT_ID]/sinks/[SINK_ID]" "
4329
+ # organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]" "billingAccounts/[
4330
+ # BILLING_ACCOUNT_ID]/sinks/[SINK_ID]" "folders/[FOLDER_ID]/sinks/[SINK_ID]"
3893
4331
  # Example: "projects/my-project-id/sinks/my-sink-id".
3894
4332
  # @param [Google::Apis::LoggingV2::LogSink] log_sink_object
3895
4333
  # @param [Boolean] unique_writer_identity
3896
4334
  # Optional. See sinks.create for a description of this field. When updating a
3897
4335
  # sink, the effect of this field on the value of writer_identity in the updated
3898
- # sink depends on both the old and new values of this field:
3899
- # If the old and new values of this field are both false or both true, then
3900
- # there is no change to the sink's writer_identity.
3901
- # If the old value is false and the new value is true, then writer_identity is
3902
- # changed to a unique service account.
3903
- # It is an error if the old value is true and the new value is set to false or
3904
- # defaulted to false.
4336
+ # sink depends on both the old and new values of this field: If the old and new
4337
+ # values of this field are both false or both true, then there is no change to
4338
+ # the sink's writer_identity. If the old value is false and the new value is
4339
+ # true, then writer_identity is changed to a unique service account. It is an
4340
+ # error if the old value is true and the new value is set to false or defaulted
4341
+ # to false.
3905
4342
  # @param [String] update_mask
3906
4343
  # Optional. Field mask that specifies the fields in sink that need an update. A
3907
4344
  # sink field will be overwritten if, and only if, it is in the update mask. name
@@ -3948,14 +4385,12 @@ module Google
3948
4385
  # Enabling CMEK for Logs Router (https://cloud.google.com/logging/docs/routing/
3949
4386
  # managed-encryption) for more information.
3950
4387
  # @param [String] name
3951
- # Required. The resource for which to retrieve CMEK settings.
3952
- # "projects/[PROJECT_ID]/cmekSettings"
3953
- # "organizations/[ORGANIZATION_ID]/cmekSettings"
3954
- # "billingAccounts/[BILLING_ACCOUNT_ID]/cmekSettings"
3955
- # "folders/[FOLDER_ID]/cmekSettings"
3956
- # Example: "organizations/12345/cmekSettings".Note: CMEK for the Logs Router can
3957
- # currently only be configured for GCP organizations. Once configured, it
3958
- # applies to all projects and folders in the GCP organization.
4388
+ # Required. The resource for which to retrieve CMEK settings. "projects/[
4389
+ # PROJECT_ID]/cmekSettings" "organizations/[ORGANIZATION_ID]/cmekSettings" "
4390
+ # billingAccounts/[BILLING_ACCOUNT_ID]/cmekSettings" "folders/[FOLDER_ID]/
4391
+ # cmekSettings" Example: "organizations/12345/cmekSettings".Note: CMEK for the
4392
+ # Logs Router can currently only be configured for GCP organizations. Once
4393
+ # configured, it applies to all projects and folders in the GCP organization.
3959
4394
  # @param [String] fields
3960
4395
  # Selector specifying which fields to include in a partial response.
3961
4396
  # @param [String] quota_user
@@ -3992,14 +4427,12 @@ module Google
3992
4427
  # is disabled.See Enabling CMEK for Logs Router (https://cloud.google.com/
3993
4428
  # logging/docs/routing/managed-encryption) for more information.
3994
4429
  # @param [String] name
3995
- # Required. The resource name for the CMEK settings to update.
3996
- # "projects/[PROJECT_ID]/cmekSettings"
3997
- # "organizations/[ORGANIZATION_ID]/cmekSettings"
3998
- # "billingAccounts/[BILLING_ACCOUNT_ID]/cmekSettings"
3999
- # "folders/[FOLDER_ID]/cmekSettings"
4000
- # Example: "organizations/12345/cmekSettings".Note: CMEK for the Logs Router can
4001
- # currently only be configured for GCP organizations. Once configured, it
4002
- # applies to all projects and folders in the GCP organization.
4430
+ # Required. The resource name for the CMEK settings to update. "projects/[
4431
+ # PROJECT_ID]/cmekSettings" "organizations/[ORGANIZATION_ID]/cmekSettings" "
4432
+ # billingAccounts/[BILLING_ACCOUNT_ID]/cmekSettings" "folders/[FOLDER_ID]/
4433
+ # cmekSettings" Example: "organizations/12345/cmekSettings".Note: CMEK for the
4434
+ # Logs Router can currently only be configured for GCP organizations. Once
4435
+ # configured, it applies to all projects and folders in the GCP organization.
4003
4436
  # @param [Google::Apis::LoggingV2::CmekSettings] cmek_settings_object
4004
4437
  # @param [String] update_mask
4005
4438
  # Optional. Field mask identifying which fields from cmek_settings should be